@doordeck/doordeck-headless-sdk 0.113.0 → 0.115.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.
- package/kotlin/Kermit-kermit-core.js +52 -51
- package/kotlin/Kermit-kermit.js +3 -3
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1900 -1682
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +6 -6
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +13 -13
- package/kotlin/doordeck-sdk.d.ts +1578 -292
- package/kotlin/doordeck-sdk.js +911 -1027
- package/kotlin/kotlin-kotlin-stdlib.js +584 -713
- package/kotlin/kotlinx-atomicfu.js +5 -5
- package/kotlin/kotlinx-coroutines-core.js +246 -243
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +12 -12
- package/kotlin/kotlinx-io-kotlinx-io-core.js +104 -104
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +126 -117
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1216 -1214
- package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js → ktor-ktor-client-auth.js} +283 -286
- package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js → ktor-ktor-client-content-negotiation.js} +169 -169
- package/kotlin/{ktor-ktor-client-ktor-client-core.js → ktor-ktor-client-core.js} +2515 -2518
- package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js → ktor-ktor-client-logging.js} +926 -831
- package/kotlin/{ktor-ktor-shared-ktor-events.js → ktor-ktor-events.js} +9 -9
- package/kotlin/{ktor-ktor-http-ktor-http-cio.js → ktor-ktor-http-cio.js} +371 -370
- package/kotlin/ktor-ktor-http.js +867 -952
- package/kotlin/ktor-ktor-io.js +389 -411
- package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js → ktor-ktor-serialization-kotlinx-json.js} +7 -7
- package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js → ktor-ktor-serialization-kotlinx.js} +150 -150
- package/kotlin/{ktor-ktor-shared-ktor-serialization.js → ktor-ktor-serialization.js} +75 -75
- package/kotlin/ktor-ktor-utils.js +117 -92
- package/kotlin/{ktor-ktor-shared-ktor-websockets.js → ktor-ktor-websockets.js} +52 -52
- package/package.json +3 -3
- /package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js → ktor-ktor-client-encoding.js} +0 -0
- /package/kotlin/{ktor-ktor-shared-ktor-sse.js → ktor-ktor-sse.js} +0 -0
- /package/kotlin/{ktor-ktor-shared-ktor-websocket-serialization.js → ktor-ktor-websocket-serialization.js} +0 -0
|
@@ -3,67 +3,67 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var EmptySerializersModule = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.vb;
|
|
7
|
+
var initMetadataForObject = kotlin_kotlin.$_$.za;
|
|
8
8
|
var VOID = kotlin_kotlin.$_$.h;
|
|
9
9
|
var Unit_instance = kotlin_kotlin.$_$.k5;
|
|
10
10
|
var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
12
|
-
var toString = kotlin_kotlin.$_$.
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ta;
|
|
12
|
+
var toString = kotlin_kotlin.$_$.zb;
|
|
13
13
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
14
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
15
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
14
|
+
var charSequenceLength = kotlin_kotlin.$_$.ia;
|
|
15
|
+
var charSequenceGet = kotlin_kotlin.$_$.ha;
|
|
16
16
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t2;
|
|
17
|
-
var equals = kotlin_kotlin.$_$.
|
|
18
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
19
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
20
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
21
|
-
var Enum = kotlin_kotlin.$_$.
|
|
17
|
+
var equals = kotlin_kotlin.$_$.ma;
|
|
18
|
+
var THROW_CCE = kotlin_kotlin.$_$.vf;
|
|
19
|
+
var getStringHashCode = kotlin_kotlin.$_$.ra;
|
|
20
|
+
var toString_0 = kotlin_kotlin.$_$.yg;
|
|
21
|
+
var Enum = kotlin_kotlin.$_$.kf;
|
|
22
22
|
var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
23
23
|
var CompositeDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
24
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
25
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
24
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.xa;
|
|
25
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ua;
|
|
26
26
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
27
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
27
|
+
var hashCode = kotlin_kotlin.$_$.sa;
|
|
28
28
|
var joinToString = kotlin_kotlin.$_$.p7;
|
|
29
29
|
var KtMap = kotlin_kotlin.$_$.u5;
|
|
30
30
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
31
31
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
32
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
32
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.oa;
|
|
33
33
|
var KtList = kotlin_kotlin.$_$.r5;
|
|
34
|
-
var toDouble = kotlin_kotlin.$_$.
|
|
34
|
+
var toDouble = kotlin_kotlin.$_$.le;
|
|
35
35
|
var StringCompanionObject_instance = kotlin_kotlin.$_$.z4;
|
|
36
36
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
37
37
|
var InlinePrimitiveDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
38
38
|
var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
39
39
|
var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1;
|
|
40
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
40
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ug;
|
|
41
41
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m2;
|
|
42
|
-
var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
43
42
|
var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
44
43
|
var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1;
|
|
44
|
+
var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
45
45
|
var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
46
46
|
var ENUM_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
47
47
|
var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
|
|
48
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
49
|
-
var toULongOrNull = kotlin_kotlin.$_$.
|
|
50
|
-
var ULong = kotlin_kotlin.$_$.
|
|
48
|
+
var toLongOrNull = kotlin_kotlin.$_$.oe;
|
|
49
|
+
var toULongOrNull = kotlin_kotlin.$_$.te;
|
|
50
|
+
var ULong = kotlin_kotlin.$_$.dg;
|
|
51
51
|
var Companion_getInstance = kotlin_kotlin.$_$.i5;
|
|
52
52
|
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
|
|
53
53
|
var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.a4;
|
|
54
|
-
var toDoubleOrNull = kotlin_kotlin.$_$.
|
|
55
|
-
var toBooleanStrictOrNull = kotlin_kotlin.$_$.
|
|
56
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
54
|
+
var toDoubleOrNull = kotlin_kotlin.$_$.ke;
|
|
55
|
+
var toBooleanStrictOrNull = kotlin_kotlin.$_$.he;
|
|
56
|
+
var isInterface = kotlin_kotlin.$_$.ib;
|
|
57
57
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
58
|
-
var
|
|
58
|
+
var KProperty1 = kotlin_kotlin.$_$.nc;
|
|
59
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.qa;
|
|
60
|
+
var lazy = kotlin_kotlin.$_$.tg;
|
|
59
61
|
var get_isNullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
|
|
60
62
|
var get_isInline = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1;
|
|
61
63
|
var get_annotations = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1;
|
|
62
|
-
var KProperty1 = kotlin_kotlin.$_$.mc;
|
|
63
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.pa;
|
|
64
64
|
var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
|
|
65
65
|
var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
66
|
-
var toLong = kotlin_kotlin.$_$.
|
|
66
|
+
var toLong = kotlin_kotlin.$_$.xb;
|
|
67
67
|
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.q3;
|
|
68
68
|
var UInt__toString_impl_dbgl21 = kotlin_kotlin.$_$.s3;
|
|
69
69
|
var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.z3;
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
var UShort__toString_impl_edaoee = kotlin_kotlin.$_$.k4;
|
|
75
75
|
var ElementMarker = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
|
|
76
76
|
var captureStack = kotlin_kotlin.$_$.da;
|
|
77
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
78
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
79
|
-
var coerceAtMost = kotlin_kotlin.$_$.
|
|
77
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.ja;
|
|
78
|
+
var coerceAtLeast = kotlin_kotlin.$_$.dc;
|
|
79
|
+
var coerceAtMost = kotlin_kotlin.$_$.ec;
|
|
80
80
|
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p2;
|
|
81
81
|
var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
|
|
82
82
|
var Collection = kotlin_kotlin.$_$.m5;
|
|
@@ -97,14 +97,14 @@
|
|
|
97
97
|
var ENUM = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1;
|
|
98
98
|
var contextual = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
99
99
|
var SerializersModuleCollector = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
100
|
-
var DeepRecursiveFunction = kotlin_kotlin.$_$.
|
|
101
|
-
var invoke = kotlin_kotlin.$_$.
|
|
100
|
+
var DeepRecursiveFunction = kotlin_kotlin.$_$.if;
|
|
101
|
+
var invoke = kotlin_kotlin.$_$.og;
|
|
102
102
|
var CoroutineImpl = kotlin_kotlin.$_$.v9;
|
|
103
|
-
var DeepRecursiveScope = kotlin_kotlin.$_$.
|
|
104
|
-
var Unit = kotlin_kotlin.$_$.
|
|
103
|
+
var DeepRecursiveScope = kotlin_kotlin.$_$.jf;
|
|
104
|
+
var Unit = kotlin_kotlin.$_$.gg;
|
|
105
105
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f9;
|
|
106
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
107
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
106
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ya;
|
|
107
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.va;
|
|
108
108
|
var SealedClassSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
|
|
109
109
|
var jsonCachedSerialNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
110
110
|
var AbstractDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
@@ -112,24 +112,25 @@
|
|
|
112
112
|
var DeserializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l2;
|
|
113
113
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
114
114
|
var findPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2;
|
|
115
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
116
|
-
var substringBefore = kotlin_kotlin.$_$.
|
|
117
|
-
var removeSuffix = kotlin_kotlin.$_$.
|
|
118
|
-
var substringAfter = kotlin_kotlin.$_$.
|
|
119
|
-
var contains = kotlin_kotlin.$_$.
|
|
120
|
-
var plus = kotlin_kotlin.$_$.
|
|
115
|
+
var ensureNotNull = kotlin_kotlin.$_$.ng;
|
|
116
|
+
var substringBefore = kotlin_kotlin.$_$.be;
|
|
117
|
+
var removeSuffix = kotlin_kotlin.$_$.pd;
|
|
118
|
+
var substringAfter = kotlin_kotlin.$_$.ae;
|
|
119
|
+
var contains = kotlin_kotlin.$_$.tc;
|
|
120
|
+
var plus = kotlin_kotlin.$_$.vg;
|
|
121
121
|
var MissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
|
|
122
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
123
|
-
var isFinite = kotlin_kotlin.$_$.
|
|
124
|
-
var isFinite_0 = kotlin_kotlin.$_$.
|
|
125
|
-
var
|
|
122
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.nf;
|
|
123
|
+
var isFinite = kotlin_kotlin.$_$.qg;
|
|
124
|
+
var isFinite_0 = kotlin_kotlin.$_$.pg;
|
|
125
|
+
var charCodeAt = kotlin_kotlin.$_$.ga;
|
|
126
|
+
var toUInt = kotlin_kotlin.$_$.se;
|
|
126
127
|
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.r3;
|
|
127
|
-
var toULong = kotlin_kotlin.$_$.
|
|
128
|
-
var toUByte = kotlin_kotlin.$_$.
|
|
128
|
+
var toULong = kotlin_kotlin.$_$.ue;
|
|
129
|
+
var toUByte = kotlin_kotlin.$_$.re;
|
|
129
130
|
var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.g3;
|
|
130
|
-
var toUShort = kotlin_kotlin.$_$.
|
|
131
|
+
var toUShort = kotlin_kotlin.$_$.ve;
|
|
131
132
|
var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.j4;
|
|
132
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
133
|
+
var objectCreate = kotlin_kotlin.$_$.ub;
|
|
133
134
|
var AbstractEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1;
|
|
134
135
|
var OBJECT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
135
136
|
var findPolymorphicSerializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t2;
|
|
@@ -143,31 +144,32 @@
|
|
|
143
144
|
var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
|
|
144
145
|
var setOf = kotlin_kotlin.$_$.j8;
|
|
145
146
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.z2;
|
|
146
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
147
|
-
var equals_0 = kotlin_kotlin.$_$.
|
|
148
|
-
var toByte = kotlin_kotlin.$_$.
|
|
149
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
147
|
+
var numberToChar = kotlin_kotlin.$_$.qb;
|
|
148
|
+
var equals_0 = kotlin_kotlin.$_$.bd;
|
|
149
|
+
var toByte = kotlin_kotlin.$_$.wb;
|
|
150
|
+
var startsWith = kotlin_kotlin.$_$.wd;
|
|
150
151
|
var NamedValueDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
151
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
152
|
-
var ClosedRange = kotlin_kotlin.$_$.
|
|
153
|
-
var contains_0 = kotlin_kotlin.$_$.
|
|
154
|
-
var single = kotlin_kotlin.$_$.
|
|
155
|
-
var Char = kotlin_kotlin.$_$.
|
|
152
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.pb;
|
|
153
|
+
var ClosedRange = kotlin_kotlin.$_$.cc;
|
|
154
|
+
var contains_0 = kotlin_kotlin.$_$.gc;
|
|
155
|
+
var single = kotlin_kotlin.$_$.td;
|
|
156
|
+
var Char = kotlin_kotlin.$_$.ff;
|
|
156
157
|
var emptySet = kotlin_kotlin.$_$.b7;
|
|
157
158
|
var plus_0 = kotlin_kotlin.$_$.a8;
|
|
158
|
-
var toInt = kotlin_kotlin.$_$.
|
|
159
|
+
var toInt = kotlin_kotlin.$_$.ne;
|
|
159
160
|
var toList = kotlin_kotlin.$_$.t8;
|
|
160
161
|
var enumEntries = kotlin_kotlin.$_$.x9;
|
|
161
162
|
var getContextualDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1;
|
|
162
163
|
var last = kotlin_kotlin.$_$.u7;
|
|
163
164
|
var removeLast = kotlin_kotlin.$_$.g8;
|
|
164
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
165
|
-
var Long = kotlin_kotlin.$_$.
|
|
165
|
+
var lastIndexOf = kotlin_kotlin.$_$.kd;
|
|
166
|
+
var Long = kotlin_kotlin.$_$.pf;
|
|
166
167
|
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.v2;
|
|
167
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
168
|
+
var numberToLong = kotlin_kotlin.$_$.tb;
|
|
168
169
|
var charArray = kotlin_kotlin.$_$.fa;
|
|
169
|
-
var indexOf = kotlin_kotlin.$_$.
|
|
170
|
-
var indexOf_0 = kotlin_kotlin.$_$.
|
|
170
|
+
var indexOf = kotlin_kotlin.$_$.ed;
|
|
171
|
+
var indexOf_0 = kotlin_kotlin.$_$.fd;
|
|
172
|
+
var substring = kotlin_kotlin.$_$.ee;
|
|
171
173
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.i1;
|
|
172
174
|
var HashMap_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
173
175
|
//endregion
|
|
@@ -184,18 +186,18 @@
|
|
|
184
186
|
initMetadataForInterface(JsonDecoder, 'JsonDecoder', VOID, VOID, [Decoder, CompositeDecoder]);
|
|
185
187
|
initMetadataForCompanion(Companion);
|
|
186
188
|
initMetadataForClass(JsonElement, 'JsonElement', VOID, VOID, VOID, VOID, VOID, {0: JsonElementSerializer_getInstance});
|
|
189
|
+
initMetadataForClass(JsonObject, 'JsonObject', VOID, JsonElement, [JsonElement, KtMap], VOID, VOID, {0: JsonObjectSerializer_getInstance});
|
|
187
190
|
initMetadataForCompanion(Companion_0);
|
|
188
|
-
initMetadataForClass(JsonPrimitive, 'JsonPrimitive', VOID, JsonElement, VOID, VOID, VOID, {0: JsonPrimitiveSerializer_getInstance});
|
|
189
191
|
initMetadataForCompanion(Companion_1);
|
|
190
|
-
initMetadataForClass(
|
|
192
|
+
initMetadataForClass(JsonPrimitive, 'JsonPrimitive', VOID, JsonElement, VOID, VOID, VOID, {0: JsonPrimitiveSerializer_getInstance});
|
|
191
193
|
initMetadataForObject(JsonNull, 'JsonNull', VOID, JsonPrimitive, [JsonPrimitive, SerializerFactory], VOID, VOID, {0: JsonNullSerializer_getInstance});
|
|
192
194
|
initMetadataForClass(JsonLiteral, 'JsonLiteral', VOID, JsonPrimitive);
|
|
193
195
|
initMetadataForCompanion(Companion_2);
|
|
194
196
|
initMetadataForClass(JsonArray, 'JsonArray', VOID, JsonElement, [JsonElement, KtList], VOID, VOID, {0: JsonArraySerializer_getInstance});
|
|
195
197
|
initMetadataForObject(JsonElementSerializer, 'JsonElementSerializer', VOID, VOID, [KSerializer]);
|
|
196
|
-
initMetadataForObject(JsonPrimitiveSerializer, 'JsonPrimitiveSerializer', VOID, VOID, [KSerializer]);
|
|
197
198
|
initMetadataForObject(JsonObjectDescriptor, 'JsonObjectDescriptor', VOID, VOID, [SerialDescriptor]);
|
|
198
199
|
initMetadataForObject(JsonObjectSerializer, 'JsonObjectSerializer', VOID, VOID, [KSerializer]);
|
|
200
|
+
initMetadataForObject(JsonPrimitiveSerializer, 'JsonPrimitiveSerializer', VOID, VOID, [KSerializer]);
|
|
199
201
|
initMetadataForObject(JsonArrayDescriptor, 'JsonArrayDescriptor', VOID, VOID, [SerialDescriptor]);
|
|
200
202
|
initMetadataForObject(JsonArraySerializer, 'JsonArraySerializer', VOID, VOID, [KSerializer]);
|
|
201
203
|
initMetadataForObject(JsonNullSerializer, 'JsonNullSerializer', VOID, VOID, [KSerializer]);
|
|
@@ -214,8 +216,8 @@
|
|
|
214
216
|
initMetadataForClass(JsonPath, 'JsonPath', JsonPath);
|
|
215
217
|
initMetadataForClass(JsonSerializersModuleValidator, 'JsonSerializersModuleValidator', VOID, VOID, [SerializersModuleCollector]);
|
|
216
218
|
initMetadataForLambda(JsonTreeReader$readDeepRecursive$slambda, CoroutineImpl, VOID, [2]);
|
|
217
|
-
initMetadataForCoroutine($readObjectCOROUTINE
|
|
218
|
-
initMetadataForClass(JsonTreeReader, 'JsonTreeReader', VOID, VOID, VOID, [
|
|
219
|
+
initMetadataForCoroutine($readObjectCOROUTINE$, CoroutineImpl);
|
|
220
|
+
initMetadataForClass(JsonTreeReader, 'JsonTreeReader', VOID, VOID, VOID, [1]);
|
|
219
221
|
initMetadataForClass(Key, 'Key', Key);
|
|
220
222
|
initMetadataForClass(DescriptorSchemaCache, 'DescriptorSchemaCache', DescriptorSchemaCache);
|
|
221
223
|
initMetadataForClass(DiscriminatorHolder, 'DiscriminatorHolder');
|
|
@@ -246,12 +248,12 @@
|
|
|
246
248
|
}
|
|
247
249
|
function Json(configuration, serializersModule) {
|
|
248
250
|
Default_getInstance();
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
251
|
+
this.e5o_1 = configuration;
|
|
252
|
+
this.f5o_1 = serializersModule;
|
|
253
|
+
this.g5o_1 = new DescriptorSchemaCache();
|
|
252
254
|
}
|
|
253
255
|
protoOf(Json).a23 = function () {
|
|
254
|
-
return this.
|
|
256
|
+
return this.f5o_1;
|
|
255
257
|
};
|
|
256
258
|
protoOf(Json).b20 = function (serializer, value) {
|
|
257
259
|
var result = new JsonToStringWriter();
|
|
@@ -266,66 +268,66 @@
|
|
|
266
268
|
var lexer = StringJsonLexer_0(this, string);
|
|
267
269
|
var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.y1y(), null);
|
|
268
270
|
var result = input.k22(deserializer);
|
|
269
|
-
lexer.
|
|
271
|
+
lexer.v5o();
|
|
270
272
|
return result;
|
|
271
273
|
};
|
|
272
|
-
protoOf(Json).
|
|
274
|
+
protoOf(Json).h5o = function (string) {
|
|
273
275
|
return this.c20(JsonElementSerializer_getInstance(), string);
|
|
274
276
|
};
|
|
275
277
|
function Json_0(from, builderAction) {
|
|
276
278
|
from = from === VOID ? Default_getInstance() : from;
|
|
277
279
|
var builder = new JsonBuilder(from);
|
|
278
280
|
builderAction(builder);
|
|
279
|
-
var conf = builder.
|
|
280
|
-
return new JsonImpl(conf, builder.
|
|
281
|
+
var conf = builder.o5p();
|
|
282
|
+
return new JsonImpl(conf, builder.n5p_1);
|
|
281
283
|
}
|
|
282
284
|
function JsonBuilder(json) {
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
}
|
|
302
|
-
protoOf(JsonBuilder).
|
|
303
|
-
if (this.
|
|
285
|
+
this.w5o_1 = json.e5o_1.p5p_1;
|
|
286
|
+
this.x5o_1 = json.e5o_1.u5p_1;
|
|
287
|
+
this.y5o_1 = json.e5o_1.q5p_1;
|
|
288
|
+
this.z5o_1 = json.e5o_1.r5p_1;
|
|
289
|
+
this.a5p_1 = json.e5o_1.t5p_1;
|
|
290
|
+
this.b5p_1 = json.e5o_1.v5p_1;
|
|
291
|
+
this.c5p_1 = json.e5o_1.w5p_1;
|
|
292
|
+
this.d5p_1 = json.e5o_1.y5p_1;
|
|
293
|
+
this.e5p_1 = json.e5o_1.f5q_1;
|
|
294
|
+
this.f5p_1 = json.e5o_1.a5q_1;
|
|
295
|
+
this.g5p_1 = json.e5o_1.b5q_1;
|
|
296
|
+
this.h5p_1 = json.e5o_1.c5q_1;
|
|
297
|
+
this.i5p_1 = json.e5o_1.d5q_1;
|
|
298
|
+
this.j5p_1 = json.e5o_1.e5q_1;
|
|
299
|
+
this.k5p_1 = json.e5o_1.z5p_1;
|
|
300
|
+
this.l5p_1 = json.e5o_1.s5p_1;
|
|
301
|
+
this.m5p_1 = json.e5o_1.x5p_1;
|
|
302
|
+
this.n5p_1 = json.a23();
|
|
303
|
+
}
|
|
304
|
+
protoOf(JsonBuilder).o5p = function () {
|
|
305
|
+
if (this.m5p_1) {
|
|
304
306
|
// Inline function 'kotlin.require' call
|
|
305
|
-
if (!(this.
|
|
307
|
+
if (!(this.d5p_1 === 'type')) {
|
|
306
308
|
var message = 'Class discriminator should not be specified when array polymorphism is specified';
|
|
307
309
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
308
310
|
}
|
|
309
311
|
// Inline function 'kotlin.require' call
|
|
310
|
-
if (!this.
|
|
312
|
+
if (!this.e5p_1.equals(ClassDiscriminatorMode_POLYMORPHIC_getInstance())) {
|
|
311
313
|
var message_0 = 'useArrayPolymorphism option can only be used if classDiscriminatorMode in a default POLYMORPHIC state.';
|
|
312
314
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
313
315
|
}
|
|
314
316
|
}
|
|
315
|
-
if (!this.
|
|
317
|
+
if (!this.a5p_1) {
|
|
316
318
|
// Inline function 'kotlin.require' call
|
|
317
|
-
if (!(this.
|
|
319
|
+
if (!(this.b5p_1 === ' ')) {
|
|
318
320
|
var message_1 = 'Indent should not be specified when default printing mode is used';
|
|
319
321
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
320
322
|
}
|
|
321
|
-
} else if (!(this.
|
|
322
|
-
var
|
|
323
|
+
} else if (!(this.b5p_1 === ' ')) {
|
|
324
|
+
var tmp0 = this.b5p_1;
|
|
323
325
|
var tmp$ret$7;
|
|
324
326
|
$l$block: {
|
|
325
327
|
// Inline function 'kotlin.text.all' call
|
|
326
328
|
var inductionVariable = 0;
|
|
327
|
-
while (inductionVariable < charSequenceLength(
|
|
328
|
-
var element = charSequenceGet(
|
|
329
|
+
while (inductionVariable < charSequenceLength(tmp0)) {
|
|
330
|
+
var element = charSequenceGet(tmp0, inductionVariable);
|
|
329
331
|
inductionVariable = inductionVariable + 1 | 0;
|
|
330
332
|
if (!(element === _Char___init__impl__6a9atx(32) || element === _Char___init__impl__6a9atx(9) || element === _Char___init__impl__6a9atx(13) || element === _Char___init__impl__6a9atx(10))) {
|
|
331
333
|
tmp$ret$7 = false;
|
|
@@ -337,16 +339,16 @@
|
|
|
337
339
|
var allWhitespaces = tmp$ret$7;
|
|
338
340
|
// Inline function 'kotlin.require' call
|
|
339
341
|
if (!allWhitespaces) {
|
|
340
|
-
var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.
|
|
342
|
+
var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.b5p_1;
|
|
341
343
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
342
344
|
}
|
|
343
345
|
}
|
|
344
|
-
return new JsonConfiguration(this.
|
|
346
|
+
return new JsonConfiguration(this.w5o_1, this.y5o_1, this.z5o_1, this.l5p_1, this.a5p_1, this.x5o_1, this.b5p_1, this.c5p_1, this.m5p_1, this.d5p_1, this.k5p_1, this.f5p_1, this.g5p_1, this.h5p_1, this.i5p_1, this.j5p_1, this.e5p_1);
|
|
345
347
|
};
|
|
346
348
|
function validateConfiguration($this) {
|
|
347
349
|
if (equals($this.a23(), EmptySerializersModule()))
|
|
348
350
|
return Unit_instance;
|
|
349
|
-
var collector = new JsonSerializersModuleValidator($this.
|
|
351
|
+
var collector = new JsonSerializersModuleValidator($this.e5o_1);
|
|
350
352
|
$this.a23().t2i(collector);
|
|
351
353
|
}
|
|
352
354
|
function JsonImpl(configuration, module_0) {
|
|
@@ -354,21 +356,21 @@
|
|
|
354
356
|
validateConfiguration(this);
|
|
355
357
|
}
|
|
356
358
|
function JsonClassDiscriminator(discriminator) {
|
|
357
|
-
this.
|
|
359
|
+
this.g5q_1 = discriminator;
|
|
358
360
|
}
|
|
359
361
|
protoOf(JsonClassDiscriminator).equals = function (other) {
|
|
360
362
|
if (!(other instanceof JsonClassDiscriminator))
|
|
361
363
|
return false;
|
|
362
364
|
var tmp0_other_with_cast = other instanceof JsonClassDiscriminator ? other : THROW_CCE();
|
|
363
|
-
if (!(this.
|
|
365
|
+
if (!(this.g5q_1 === tmp0_other_with_cast.g5q_1))
|
|
364
366
|
return false;
|
|
365
367
|
return true;
|
|
366
368
|
};
|
|
367
369
|
protoOf(JsonClassDiscriminator).hashCode = function () {
|
|
368
|
-
return imul(getStringHashCode('discriminator'), 127) ^ getStringHashCode(this.
|
|
370
|
+
return imul(getStringHashCode('discriminator'), 127) ^ getStringHashCode(this.g5q_1);
|
|
369
371
|
};
|
|
370
372
|
protoOf(JsonClassDiscriminator).toString = function () {
|
|
371
|
-
return '@kotlinx.serialization.json.JsonClassDiscriminator(' + 'discriminator=' + this.
|
|
373
|
+
return '@kotlinx.serialization.json.JsonClassDiscriminator(' + 'discriminator=' + this.g5q_1 + ')';
|
|
372
374
|
};
|
|
373
375
|
function JsonIgnoreUnknownKeys() {
|
|
374
376
|
}
|
|
@@ -392,26 +394,26 @@
|
|
|
392
394
|
allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
|
|
393
395
|
allowComments = allowComments === VOID ? false : allowComments;
|
|
394
396
|
classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
397
|
+
this.p5p_1 = encodeDefaults;
|
|
398
|
+
this.q5p_1 = ignoreUnknownKeys;
|
|
399
|
+
this.r5p_1 = isLenient;
|
|
400
|
+
this.s5p_1 = allowStructuredMapKeys;
|
|
401
|
+
this.t5p_1 = prettyPrint;
|
|
402
|
+
this.u5p_1 = explicitNulls;
|
|
403
|
+
this.v5p_1 = prettyPrintIndent;
|
|
404
|
+
this.w5p_1 = coerceInputValues;
|
|
405
|
+
this.x5p_1 = useArrayPolymorphism;
|
|
406
|
+
this.y5p_1 = classDiscriminator;
|
|
407
|
+
this.z5p_1 = allowSpecialFloatingPointValues;
|
|
408
|
+
this.a5q_1 = useAlternativeNames;
|
|
409
|
+
this.b5q_1 = namingStrategy;
|
|
410
|
+
this.c5q_1 = decodeEnumsCaseInsensitive;
|
|
411
|
+
this.d5q_1 = allowTrailingComma;
|
|
412
|
+
this.e5q_1 = allowComments;
|
|
413
|
+
this.f5q_1 = classDiscriminatorMode;
|
|
412
414
|
}
|
|
413
415
|
protoOf(JsonConfiguration).toString = function () {
|
|
414
|
-
return 'JsonConfiguration(encodeDefaults=' + this.
|
|
416
|
+
return 'JsonConfiguration(encodeDefaults=' + this.p5p_1 + ', ignoreUnknownKeys=' + this.q5p_1 + ', isLenient=' + this.r5p_1 + ', ' + ('allowStructuredMapKeys=' + this.s5p_1 + ', prettyPrint=' + this.t5p_1 + ', explicitNulls=' + this.u5p_1 + ', ') + ("prettyPrintIndent='" + this.v5p_1 + "', coerceInputValues=" + this.w5p_1 + ', useArrayPolymorphism=' + this.x5p_1 + ', ') + ("classDiscriminator='" + this.y5p_1 + "', allowSpecialFloatingPointValues=" + this.z5p_1 + ', ') + ('useAlternativeNames=' + this.a5q_1 + ', namingStrategy=' + toString_0(this.b5q_1) + ', decodeEnumsCaseInsensitive=' + this.c5q_1 + ', ') + ('allowTrailingComma=' + this.d5q_1 + ', allowComments=' + this.e5q_1 + ', classDiscriminatorMode=' + this.f5q_1.toString() + ')');
|
|
415
417
|
};
|
|
416
418
|
var ClassDiscriminatorMode_NONE_instance;
|
|
417
419
|
var ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance;
|
|
@@ -449,37 +451,6 @@
|
|
|
449
451
|
function Companion_getInstance_3() {
|
|
450
452
|
return Companion_instance;
|
|
451
453
|
}
|
|
452
|
-
function JsonElement() {
|
|
453
|
-
}
|
|
454
|
-
function Companion_0() {
|
|
455
|
-
}
|
|
456
|
-
var Companion_instance_0;
|
|
457
|
-
function Companion_getInstance_4() {
|
|
458
|
-
return Companion_instance_0;
|
|
459
|
-
}
|
|
460
|
-
function JsonPrimitive() {
|
|
461
|
-
JsonElement.call(this);
|
|
462
|
-
}
|
|
463
|
-
protoOf(JsonPrimitive).toString = function () {
|
|
464
|
-
return this.i5q();
|
|
465
|
-
};
|
|
466
|
-
function get_jsonPrimitive(_this__u8e3s4) {
|
|
467
|
-
_init_properties_JsonElement_kt__7cbdc2();
|
|
468
|
-
var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonPrimitive ? _this__u8e3s4 : null;
|
|
469
|
-
var tmp;
|
|
470
|
-
if (tmp0_elvis_lhs == null) {
|
|
471
|
-
error(_this__u8e3s4, 'JsonPrimitive');
|
|
472
|
-
} else {
|
|
473
|
-
tmp = tmp0_elvis_lhs;
|
|
474
|
-
}
|
|
475
|
-
return tmp;
|
|
476
|
-
}
|
|
477
|
-
function Companion_1() {
|
|
478
|
-
}
|
|
479
|
-
var Companion_instance_1;
|
|
480
|
-
function Companion_getInstance_5() {
|
|
481
|
-
return Companion_instance_1;
|
|
482
|
-
}
|
|
483
454
|
function JsonObject$toString$lambda(_destruct__k2r9zo) {
|
|
484
455
|
// Inline function 'kotlin.collections.component1' call
|
|
485
456
|
var k = _destruct__k2r9zo.y();
|
|
@@ -560,6 +531,37 @@
|
|
|
560
531
|
}
|
|
561
532
|
return tmp;
|
|
562
533
|
}
|
|
534
|
+
function Companion_0() {
|
|
535
|
+
}
|
|
536
|
+
var Companion_instance_0;
|
|
537
|
+
function Companion_getInstance_4() {
|
|
538
|
+
return Companion_instance_0;
|
|
539
|
+
}
|
|
540
|
+
function JsonElement() {
|
|
541
|
+
}
|
|
542
|
+
function Companion_1() {
|
|
543
|
+
}
|
|
544
|
+
var Companion_instance_1;
|
|
545
|
+
function Companion_getInstance_5() {
|
|
546
|
+
return Companion_instance_1;
|
|
547
|
+
}
|
|
548
|
+
function JsonPrimitive() {
|
|
549
|
+
JsonElement.call(this);
|
|
550
|
+
}
|
|
551
|
+
protoOf(JsonPrimitive).toString = function () {
|
|
552
|
+
return this.l5q();
|
|
553
|
+
};
|
|
554
|
+
function get_jsonPrimitive(_this__u8e3s4) {
|
|
555
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
556
|
+
var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonPrimitive ? _this__u8e3s4 : null;
|
|
557
|
+
var tmp;
|
|
558
|
+
if (tmp0_elvis_lhs == null) {
|
|
559
|
+
error(_this__u8e3s4, 'JsonPrimitive');
|
|
560
|
+
} else {
|
|
561
|
+
tmp = tmp0_elvis_lhs;
|
|
562
|
+
}
|
|
563
|
+
return tmp;
|
|
564
|
+
}
|
|
563
565
|
function error(_this__u8e3s4, element) {
|
|
564
566
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
565
567
|
throw IllegalArgumentException_init_$Create$('Element ' + toString(getKClassFromExpression(_this__u8e3s4)) + ' is not a ' + element);
|
|
@@ -567,16 +569,16 @@
|
|
|
567
569
|
function JsonNull() {
|
|
568
570
|
JsonNull_instance = this;
|
|
569
571
|
JsonPrimitive.call(this);
|
|
570
|
-
this.
|
|
572
|
+
this.m5q_1 = 'null';
|
|
571
573
|
}
|
|
572
|
-
protoOf(JsonNull).
|
|
573
|
-
return this.
|
|
574
|
+
protoOf(JsonNull).l5q = function () {
|
|
575
|
+
return this.m5q_1;
|
|
574
576
|
};
|
|
575
|
-
protoOf(JsonNull).
|
|
577
|
+
protoOf(JsonNull).n5q = function () {
|
|
576
578
|
return JsonNullSerializer_getInstance();
|
|
577
579
|
};
|
|
578
580
|
protoOf(JsonNull).a2b = function (typeParamsSerializers) {
|
|
579
|
-
return this.
|
|
581
|
+
return this.n5q();
|
|
580
582
|
};
|
|
581
583
|
var JsonNull_instance;
|
|
582
584
|
function JsonNull_getInstance() {
|
|
@@ -593,31 +595,31 @@
|
|
|
593
595
|
function JsonLiteral(body, isString, coerceToInlineType) {
|
|
594
596
|
coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
|
|
595
597
|
JsonPrimitive.call(this);
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
if (!(this.
|
|
598
|
+
this.o5q_1 = isString;
|
|
599
|
+
this.p5q_1 = coerceToInlineType;
|
|
600
|
+
this.q5q_1 = toString(body);
|
|
601
|
+
if (!(this.p5q_1 == null)) {
|
|
600
602
|
// Inline function 'kotlin.require' call
|
|
601
603
|
// Inline function 'kotlin.require' call
|
|
602
|
-
if (!this.
|
|
604
|
+
if (!this.p5q_1.q20()) {
|
|
603
605
|
var message = 'Failed requirement.';
|
|
604
606
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
605
607
|
}
|
|
606
608
|
}
|
|
607
609
|
}
|
|
608
|
-
protoOf(JsonLiteral).
|
|
609
|
-
return this.
|
|
610
|
+
protoOf(JsonLiteral).l5q = function () {
|
|
611
|
+
return this.q5q_1;
|
|
610
612
|
};
|
|
611
613
|
protoOf(JsonLiteral).toString = function () {
|
|
612
614
|
var tmp;
|
|
613
|
-
if (this.
|
|
615
|
+
if (this.o5q_1) {
|
|
614
616
|
// Inline function 'kotlin.text.buildString' call
|
|
615
617
|
// Inline function 'kotlin.apply' call
|
|
616
618
|
var this_0 = StringBuilder_init_$Create$();
|
|
617
|
-
printQuoted(this_0, this.
|
|
619
|
+
printQuoted(this_0, this.q5q_1);
|
|
618
620
|
tmp = this_0.toString();
|
|
619
621
|
} else {
|
|
620
|
-
tmp = this.
|
|
622
|
+
tmp = this.q5q_1;
|
|
621
623
|
}
|
|
622
624
|
return tmp;
|
|
623
625
|
};
|
|
@@ -628,15 +630,15 @@
|
|
|
628
630
|
return false;
|
|
629
631
|
if (!(other instanceof JsonLiteral))
|
|
630
632
|
THROW_CCE();
|
|
631
|
-
if (!(this.
|
|
633
|
+
if (!(this.o5q_1 === other.o5q_1))
|
|
632
634
|
return false;
|
|
633
|
-
if (!(this.
|
|
635
|
+
if (!(this.q5q_1 === other.q5q_1))
|
|
634
636
|
return false;
|
|
635
637
|
return true;
|
|
636
638
|
};
|
|
637
639
|
protoOf(JsonLiteral).hashCode = function () {
|
|
638
|
-
var result = getBooleanHashCode(this.
|
|
639
|
-
result = imul(31, result) + getStringHashCode(this.
|
|
640
|
+
var result = getBooleanHashCode(this.o5q_1);
|
|
641
|
+
result = imul(31, result) + getStringHashCode(this.q5q_1) | 0;
|
|
640
642
|
return result;
|
|
641
643
|
};
|
|
642
644
|
function Companion_2() {
|
|
@@ -647,90 +649,90 @@
|
|
|
647
649
|
}
|
|
648
650
|
function JsonArray(content) {
|
|
649
651
|
JsonElement.call(this);
|
|
650
|
-
this.
|
|
652
|
+
this.r5q_1 = content;
|
|
651
653
|
}
|
|
652
654
|
protoOf(JsonArray).equals = function (other) {
|
|
653
|
-
return equals(this.
|
|
655
|
+
return equals(this.r5q_1, other);
|
|
654
656
|
};
|
|
655
657
|
protoOf(JsonArray).hashCode = function () {
|
|
656
|
-
return hashCode(this.
|
|
658
|
+
return hashCode(this.r5q_1);
|
|
657
659
|
};
|
|
658
660
|
protoOf(JsonArray).toString = function () {
|
|
659
|
-
return joinToString(this.
|
|
661
|
+
return joinToString(this.r5q_1, ',', '[', ']');
|
|
660
662
|
};
|
|
661
663
|
protoOf(JsonArray).h = function () {
|
|
662
|
-
return this.
|
|
664
|
+
return this.r5q_1.h();
|
|
663
665
|
};
|
|
664
|
-
protoOf(JsonArray).
|
|
665
|
-
return this.
|
|
666
|
+
protoOf(JsonArray).s5q = function (element) {
|
|
667
|
+
return this.r5q_1.x1(element);
|
|
666
668
|
};
|
|
667
669
|
protoOf(JsonArray).x1 = function (element) {
|
|
668
670
|
if (!(element instanceof JsonElement))
|
|
669
671
|
return false;
|
|
670
|
-
return this.
|
|
672
|
+
return this.s5q(element instanceof JsonElement ? element : THROW_CCE());
|
|
671
673
|
};
|
|
672
674
|
protoOf(JsonArray).p = function () {
|
|
673
|
-
return this.
|
|
675
|
+
return this.r5q_1.p();
|
|
674
676
|
};
|
|
675
|
-
protoOf(JsonArray).
|
|
676
|
-
return this.
|
|
677
|
+
protoOf(JsonArray).t5q = function (elements) {
|
|
678
|
+
return this.r5q_1.y1(elements);
|
|
677
679
|
};
|
|
678
680
|
protoOf(JsonArray).y1 = function (elements) {
|
|
679
|
-
return this.
|
|
681
|
+
return this.t5q(elements);
|
|
680
682
|
};
|
|
681
683
|
protoOf(JsonArray).u = function (index) {
|
|
682
|
-
return this.
|
|
684
|
+
return this.r5q_1.u(index);
|
|
683
685
|
};
|
|
684
|
-
protoOf(JsonArray).
|
|
685
|
-
return this.
|
|
686
|
+
protoOf(JsonArray).u5q = function (element) {
|
|
687
|
+
return this.r5q_1.z1(element);
|
|
686
688
|
};
|
|
687
689
|
protoOf(JsonArray).z1 = function (element) {
|
|
688
690
|
if (!(element instanceof JsonElement))
|
|
689
691
|
return -1;
|
|
690
|
-
return this.
|
|
692
|
+
return this.u5q(element instanceof JsonElement ? element : THROW_CCE());
|
|
691
693
|
};
|
|
692
|
-
protoOf(JsonArray).
|
|
693
|
-
return this.
|
|
694
|
+
protoOf(JsonArray).v5q = function (element) {
|
|
695
|
+
return this.r5q_1.a2(element);
|
|
694
696
|
};
|
|
695
697
|
protoOf(JsonArray).a2 = function (element) {
|
|
696
698
|
if (!(element instanceof JsonElement))
|
|
697
699
|
return -1;
|
|
698
|
-
return this.
|
|
700
|
+
return this.v5q(element instanceof JsonElement ? element : THROW_CCE());
|
|
699
701
|
};
|
|
700
702
|
protoOf(JsonArray).b2 = function () {
|
|
701
|
-
return this.
|
|
703
|
+
return this.r5q_1.b2();
|
|
702
704
|
};
|
|
703
705
|
protoOf(JsonArray).v = function (index) {
|
|
704
|
-
return this.
|
|
706
|
+
return this.r5q_1.v(index);
|
|
705
707
|
};
|
|
706
708
|
protoOf(JsonArray).c2 = function (fromIndex, toIndex) {
|
|
707
|
-
return this.
|
|
709
|
+
return this.r5q_1.c2(fromIndex, toIndex);
|
|
708
710
|
};
|
|
709
711
|
protoOf(JsonArray).asJsReadonlyArrayView = function () {
|
|
710
|
-
return this.
|
|
712
|
+
return this.r5q_1.asJsReadonlyArrayView();
|
|
711
713
|
};
|
|
712
714
|
protoOf(JsonArray).s = function () {
|
|
713
|
-
return this.
|
|
715
|
+
return this.r5q_1.s();
|
|
714
716
|
};
|
|
715
717
|
function get_booleanOrNull(_this__u8e3s4) {
|
|
716
718
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
717
|
-
return toBooleanStrictOrNull_0(_this__u8e3s4.
|
|
719
|
+
return toBooleanStrictOrNull_0(_this__u8e3s4.l5q());
|
|
718
720
|
}
|
|
719
721
|
function parseLongImpl(_this__u8e3s4) {
|
|
720
722
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
721
|
-
return (new StringJsonLexer(_this__u8e3s4.
|
|
723
|
+
return (new StringJsonLexer(_this__u8e3s4.l5q())).w5q();
|
|
722
724
|
}
|
|
723
725
|
function get_float(_this__u8e3s4) {
|
|
724
726
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
725
727
|
// Inline function 'kotlin.text.toFloat' call
|
|
726
|
-
var this_0 = _this__u8e3s4.
|
|
728
|
+
var this_0 = _this__u8e3s4.l5q();
|
|
727
729
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
728
730
|
// Inline function 'kotlin.js.asDynamic' call
|
|
729
731
|
return toDouble(this_0);
|
|
730
732
|
}
|
|
731
733
|
function get_double(_this__u8e3s4) {
|
|
732
734
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
733
|
-
return toDouble(_this__u8e3s4.
|
|
735
|
+
return toDouble(_this__u8e3s4.l5q());
|
|
734
736
|
}
|
|
735
737
|
function get_contentOrNull(_this__u8e3s4) {
|
|
736
738
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
@@ -738,7 +740,7 @@
|
|
|
738
740
|
if (_this__u8e3s4 instanceof JsonNull) {
|
|
739
741
|
tmp = null;
|
|
740
742
|
} else {
|
|
741
|
-
tmp = _this__u8e3s4.
|
|
743
|
+
tmp = _this__u8e3s4.l5q();
|
|
742
744
|
}
|
|
743
745
|
return tmp;
|
|
744
746
|
}
|
|
@@ -758,30 +760,30 @@
|
|
|
758
760
|
return Unit_instance;
|
|
759
761
|
}
|
|
760
762
|
function JsonElementSerializer$descriptor$lambda$lambda() {
|
|
761
|
-
return JsonPrimitiveSerializer_getInstance().
|
|
763
|
+
return JsonPrimitiveSerializer_getInstance().x5q_1;
|
|
762
764
|
}
|
|
763
765
|
function JsonElementSerializer$descriptor$lambda$lambda_0() {
|
|
764
|
-
return JsonNullSerializer_getInstance().
|
|
766
|
+
return JsonNullSerializer_getInstance().y5q_1;
|
|
765
767
|
}
|
|
766
768
|
function JsonElementSerializer$descriptor$lambda$lambda_1() {
|
|
767
|
-
return JsonLiteralSerializer_getInstance().
|
|
769
|
+
return JsonLiteralSerializer_getInstance().z5q_1;
|
|
768
770
|
}
|
|
769
771
|
function JsonElementSerializer$descriptor$lambda$lambda_2() {
|
|
770
|
-
return JsonObjectSerializer_getInstance().
|
|
772
|
+
return JsonObjectSerializer_getInstance().a5r_1;
|
|
771
773
|
}
|
|
772
774
|
function JsonElementSerializer$descriptor$lambda$lambda_3() {
|
|
773
|
-
return JsonArraySerializer_getInstance().
|
|
775
|
+
return JsonArraySerializer_getInstance().b5r_1;
|
|
774
776
|
}
|
|
775
777
|
function JsonElementSerializer() {
|
|
776
778
|
JsonElementSerializer_instance = this;
|
|
777
779
|
var tmp = this;
|
|
778
780
|
var tmp_0 = SEALED_getInstance();
|
|
779
|
-
tmp.
|
|
781
|
+
tmp.c5r_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
|
|
780
782
|
}
|
|
781
783
|
protoOf(JsonElementSerializer).y1y = function () {
|
|
782
|
-
return this.
|
|
784
|
+
return this.c5r_1;
|
|
783
785
|
};
|
|
784
|
-
protoOf(JsonElementSerializer).
|
|
786
|
+
protoOf(JsonElementSerializer).d5r = function (encoder, value) {
|
|
785
787
|
verify(encoder);
|
|
786
788
|
if (value instanceof JsonPrimitive) {
|
|
787
789
|
encoder.d24(JsonPrimitiveSerializer_getInstance(), value);
|
|
@@ -798,11 +800,11 @@
|
|
|
798
800
|
}
|
|
799
801
|
};
|
|
800
802
|
protoOf(JsonElementSerializer).z1y = function (encoder, value) {
|
|
801
|
-
return this.
|
|
803
|
+
return this.d5r(encoder, value instanceof JsonElement ? value : THROW_CCE());
|
|
802
804
|
};
|
|
803
805
|
protoOf(JsonElementSerializer).a1z = function (decoder) {
|
|
804
806
|
var input = asJsonDecoder(decoder);
|
|
805
|
-
return input.
|
|
807
|
+
return input.i5q();
|
|
806
808
|
};
|
|
807
809
|
var JsonElementSerializer_instance;
|
|
808
810
|
function JsonElementSerializer_getInstance() {
|
|
@@ -810,41 +812,6 @@
|
|
|
810
812
|
new JsonElementSerializer();
|
|
811
813
|
return JsonElementSerializer_instance;
|
|
812
814
|
}
|
|
813
|
-
function JsonPrimitiveSerializer() {
|
|
814
|
-
JsonPrimitiveSerializer_instance = this;
|
|
815
|
-
this.w5q_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
|
|
816
|
-
}
|
|
817
|
-
protoOf(JsonPrimitiveSerializer).y1y = function () {
|
|
818
|
-
return this.w5q_1;
|
|
819
|
-
};
|
|
820
|
-
protoOf(JsonPrimitiveSerializer).d5r = function (encoder, value) {
|
|
821
|
-
verify(encoder);
|
|
822
|
-
var tmp;
|
|
823
|
-
if (value instanceof JsonNull) {
|
|
824
|
-
encoder.d24(JsonNullSerializer_getInstance(), JsonNull_getInstance());
|
|
825
|
-
tmp = Unit_instance;
|
|
826
|
-
} else {
|
|
827
|
-
var tmp_0 = JsonLiteralSerializer_getInstance();
|
|
828
|
-
encoder.d24(tmp_0, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
829
|
-
tmp = Unit_instance;
|
|
830
|
-
}
|
|
831
|
-
return tmp;
|
|
832
|
-
};
|
|
833
|
-
protoOf(JsonPrimitiveSerializer).z1y = function (encoder, value) {
|
|
834
|
-
return this.d5r(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
|
|
835
|
-
};
|
|
836
|
-
protoOf(JsonPrimitiveSerializer).a1z = function (decoder) {
|
|
837
|
-
var result = asJsonDecoder(decoder).h5q();
|
|
838
|
-
if (!(result instanceof JsonPrimitive))
|
|
839
|
-
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
840
|
-
return result;
|
|
841
|
-
};
|
|
842
|
-
var JsonPrimitiveSerializer_instance;
|
|
843
|
-
function JsonPrimitiveSerializer_getInstance() {
|
|
844
|
-
if (JsonPrimitiveSerializer_instance == null)
|
|
845
|
-
new JsonPrimitiveSerializer();
|
|
846
|
-
return JsonPrimitiveSerializer_instance;
|
|
847
|
-
}
|
|
848
815
|
function JsonObjectDescriptor() {
|
|
849
816
|
JsonObjectDescriptor_instance = this;
|
|
850
817
|
this.e5r_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).y1y();
|
|
@@ -891,10 +858,10 @@
|
|
|
891
858
|
}
|
|
892
859
|
function JsonObjectSerializer() {
|
|
893
860
|
JsonObjectSerializer_instance = this;
|
|
894
|
-
this.
|
|
861
|
+
this.a5r_1 = JsonObjectDescriptor_getInstance();
|
|
895
862
|
}
|
|
896
863
|
protoOf(JsonObjectSerializer).y1y = function () {
|
|
897
|
-
return this.
|
|
864
|
+
return this.a5r_1;
|
|
898
865
|
};
|
|
899
866
|
protoOf(JsonObjectSerializer).g5r = function (encoder, value) {
|
|
900
867
|
verify(encoder);
|
|
@@ -913,43 +880,78 @@
|
|
|
913
880
|
new JsonObjectSerializer();
|
|
914
881
|
return JsonObjectSerializer_instance;
|
|
915
882
|
}
|
|
883
|
+
function JsonPrimitiveSerializer() {
|
|
884
|
+
JsonPrimitiveSerializer_instance = this;
|
|
885
|
+
this.x5q_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
|
|
886
|
+
}
|
|
887
|
+
protoOf(JsonPrimitiveSerializer).y1y = function () {
|
|
888
|
+
return this.x5q_1;
|
|
889
|
+
};
|
|
890
|
+
protoOf(JsonPrimitiveSerializer).h5r = function (encoder, value) {
|
|
891
|
+
verify(encoder);
|
|
892
|
+
var tmp;
|
|
893
|
+
if (value instanceof JsonNull) {
|
|
894
|
+
encoder.d24(JsonNullSerializer_getInstance(), JsonNull_getInstance());
|
|
895
|
+
tmp = Unit_instance;
|
|
896
|
+
} else {
|
|
897
|
+
var tmp_0 = JsonLiteralSerializer_getInstance();
|
|
898
|
+
encoder.d24(tmp_0, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
899
|
+
tmp = Unit_instance;
|
|
900
|
+
}
|
|
901
|
+
return tmp;
|
|
902
|
+
};
|
|
903
|
+
protoOf(JsonPrimitiveSerializer).z1y = function (encoder, value) {
|
|
904
|
+
return this.h5r(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
|
|
905
|
+
};
|
|
906
|
+
protoOf(JsonPrimitiveSerializer).a1z = function (decoder) {
|
|
907
|
+
var result = asJsonDecoder(decoder).i5q();
|
|
908
|
+
if (!(result instanceof JsonPrimitive))
|
|
909
|
+
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
910
|
+
return result;
|
|
911
|
+
};
|
|
912
|
+
var JsonPrimitiveSerializer_instance;
|
|
913
|
+
function JsonPrimitiveSerializer_getInstance() {
|
|
914
|
+
if (JsonPrimitiveSerializer_instance == null)
|
|
915
|
+
new JsonPrimitiveSerializer();
|
|
916
|
+
return JsonPrimitiveSerializer_instance;
|
|
917
|
+
}
|
|
916
918
|
function JsonArrayDescriptor() {
|
|
917
919
|
JsonArrayDescriptor_instance = this;
|
|
918
|
-
this.
|
|
919
|
-
this.
|
|
920
|
+
this.i5r_1 = ListSerializer(JsonElementSerializer_getInstance()).y1y();
|
|
921
|
+
this.j5r_1 = 'kotlinx.serialization.json.JsonArray';
|
|
920
922
|
}
|
|
921
923
|
protoOf(JsonArrayDescriptor).z1z = function () {
|
|
922
|
-
return this.
|
|
924
|
+
return this.j5r_1;
|
|
923
925
|
};
|
|
924
926
|
protoOf(JsonArrayDescriptor).t20 = function (index) {
|
|
925
|
-
return this.
|
|
927
|
+
return this.i5r_1.t20(index);
|
|
926
928
|
};
|
|
927
929
|
protoOf(JsonArrayDescriptor).u20 = function (name) {
|
|
928
|
-
return this.
|
|
930
|
+
return this.i5r_1.u20(name);
|
|
929
931
|
};
|
|
930
932
|
protoOf(JsonArrayDescriptor).v20 = function (index) {
|
|
931
|
-
return this.
|
|
933
|
+
return this.i5r_1.v20(index);
|
|
932
934
|
};
|
|
933
935
|
protoOf(JsonArrayDescriptor).w20 = function (index) {
|
|
934
|
-
return this.
|
|
936
|
+
return this.i5r_1.w20(index);
|
|
935
937
|
};
|
|
936
938
|
protoOf(JsonArrayDescriptor).x20 = function (index) {
|
|
937
|
-
return this.
|
|
939
|
+
return this.i5r_1.x20(index);
|
|
938
940
|
};
|
|
939
941
|
protoOf(JsonArrayDescriptor).p20 = function () {
|
|
940
|
-
return this.
|
|
942
|
+
return this.i5r_1.p20();
|
|
941
943
|
};
|
|
942
944
|
protoOf(JsonArrayDescriptor).l20 = function () {
|
|
943
|
-
return this.
|
|
945
|
+
return this.i5r_1.l20();
|
|
944
946
|
};
|
|
945
947
|
protoOf(JsonArrayDescriptor).q20 = function () {
|
|
946
|
-
return this.
|
|
948
|
+
return this.i5r_1.q20();
|
|
947
949
|
};
|
|
948
950
|
protoOf(JsonArrayDescriptor).r20 = function () {
|
|
949
|
-
return this.
|
|
951
|
+
return this.i5r_1.r20();
|
|
950
952
|
};
|
|
951
953
|
protoOf(JsonArrayDescriptor).s20 = function () {
|
|
952
|
-
return this.
|
|
954
|
+
return this.i5r_1.s20();
|
|
953
955
|
};
|
|
954
956
|
var JsonArrayDescriptor_instance;
|
|
955
957
|
function JsonArrayDescriptor_getInstance() {
|
|
@@ -959,17 +961,17 @@
|
|
|
959
961
|
}
|
|
960
962
|
function JsonArraySerializer() {
|
|
961
963
|
JsonArraySerializer_instance = this;
|
|
962
|
-
this.
|
|
964
|
+
this.b5r_1 = JsonArrayDescriptor_getInstance();
|
|
963
965
|
}
|
|
964
966
|
protoOf(JsonArraySerializer).y1y = function () {
|
|
965
|
-
return this.
|
|
967
|
+
return this.b5r_1;
|
|
966
968
|
};
|
|
967
|
-
protoOf(JsonArraySerializer).
|
|
969
|
+
protoOf(JsonArraySerializer).k5r = function (encoder, value) {
|
|
968
970
|
verify(encoder);
|
|
969
971
|
ListSerializer(JsonElementSerializer_getInstance()).z1y(encoder, value);
|
|
970
972
|
};
|
|
971
973
|
protoOf(JsonArraySerializer).z1y = function (encoder, value) {
|
|
972
|
-
return this.
|
|
974
|
+
return this.k5r(encoder, value instanceof JsonArray ? value : THROW_CCE());
|
|
973
975
|
};
|
|
974
976
|
protoOf(JsonArraySerializer).a1z = function (decoder) {
|
|
975
977
|
verify_0(decoder);
|
|
@@ -986,17 +988,17 @@
|
|
|
986
988
|
}
|
|
987
989
|
function JsonNullSerializer() {
|
|
988
990
|
JsonNullSerializer_instance = this;
|
|
989
|
-
this.
|
|
991
|
+
this.y5q_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
|
|
990
992
|
}
|
|
991
993
|
protoOf(JsonNullSerializer).y1y = function () {
|
|
992
|
-
return this.
|
|
994
|
+
return this.y5q_1;
|
|
993
995
|
};
|
|
994
|
-
protoOf(JsonNullSerializer).
|
|
996
|
+
protoOf(JsonNullSerializer).l5r = function (encoder, value) {
|
|
995
997
|
verify(encoder);
|
|
996
998
|
encoder.g23();
|
|
997
999
|
};
|
|
998
1000
|
protoOf(JsonNullSerializer).z1y = function (encoder, value) {
|
|
999
|
-
return this.
|
|
1001
|
+
return this.l5r(encoder, value instanceof JsonNull ? value : THROW_CCE());
|
|
1000
1002
|
};
|
|
1001
1003
|
protoOf(JsonNullSerializer).a1z = function (decoder) {
|
|
1002
1004
|
verify_0(decoder);
|
|
@@ -1014,27 +1016,27 @@
|
|
|
1014
1016
|
}
|
|
1015
1017
|
function JsonLiteralSerializer() {
|
|
1016
1018
|
JsonLiteralSerializer_instance = this;
|
|
1017
|
-
this.
|
|
1019
|
+
this.z5q_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
|
|
1018
1020
|
}
|
|
1019
1021
|
protoOf(JsonLiteralSerializer).y1y = function () {
|
|
1020
|
-
return this.
|
|
1022
|
+
return this.z5q_1;
|
|
1021
1023
|
};
|
|
1022
|
-
protoOf(JsonLiteralSerializer).
|
|
1024
|
+
protoOf(JsonLiteralSerializer).m5r = function (encoder, value) {
|
|
1023
1025
|
verify(encoder);
|
|
1024
|
-
if (value.
|
|
1025
|
-
return encoder.p23(value.
|
|
1026
|
+
if (value.o5q_1) {
|
|
1027
|
+
return encoder.p23(value.q5q_1);
|
|
1026
1028
|
}
|
|
1027
|
-
if (!(value.
|
|
1028
|
-
return encoder.r23(value.
|
|
1029
|
+
if (!(value.p5q_1 == null)) {
|
|
1030
|
+
return encoder.r23(value.p5q_1).p23(value.q5q_1);
|
|
1029
1031
|
}
|
|
1030
|
-
var tmp0_safe_receiver = toLongOrNull(value.
|
|
1032
|
+
var tmp0_safe_receiver = toLongOrNull(value.q5q_1);
|
|
1031
1033
|
if (tmp0_safe_receiver == null)
|
|
1032
1034
|
null;
|
|
1033
1035
|
else {
|
|
1034
1036
|
// Inline function 'kotlin.let' call
|
|
1035
1037
|
return encoder.l23(tmp0_safe_receiver);
|
|
1036
1038
|
}
|
|
1037
|
-
var tmp1_safe_receiver = toULongOrNull(value.
|
|
1039
|
+
var tmp1_safe_receiver = toULongOrNull(value.q5q_1);
|
|
1038
1040
|
var tmp = tmp1_safe_receiver;
|
|
1039
1041
|
if ((tmp == null ? null : new ULong(tmp)) == null)
|
|
1040
1042
|
null;
|
|
@@ -1048,27 +1050,27 @@
|
|
|
1048
1050
|
tmp_1.l23(tmp$ret$1);
|
|
1049
1051
|
return Unit_instance;
|
|
1050
1052
|
}
|
|
1051
|
-
var tmp2_safe_receiver = toDoubleOrNull(value.
|
|
1053
|
+
var tmp2_safe_receiver = toDoubleOrNull(value.q5q_1);
|
|
1052
1054
|
if (tmp2_safe_receiver == null)
|
|
1053
1055
|
null;
|
|
1054
1056
|
else {
|
|
1055
1057
|
// Inline function 'kotlin.let' call
|
|
1056
1058
|
return encoder.n23(tmp2_safe_receiver);
|
|
1057
1059
|
}
|
|
1058
|
-
var tmp3_safe_receiver = toBooleanStrictOrNull(value.
|
|
1060
|
+
var tmp3_safe_receiver = toBooleanStrictOrNull(value.q5q_1);
|
|
1059
1061
|
if (tmp3_safe_receiver == null)
|
|
1060
1062
|
null;
|
|
1061
1063
|
else {
|
|
1062
1064
|
// Inline function 'kotlin.let' call
|
|
1063
1065
|
return encoder.h23(tmp3_safe_receiver);
|
|
1064
1066
|
}
|
|
1065
|
-
encoder.p23(value.
|
|
1067
|
+
encoder.p23(value.q5q_1);
|
|
1066
1068
|
};
|
|
1067
1069
|
protoOf(JsonLiteralSerializer).z1y = function (encoder, value) {
|
|
1068
|
-
return this.
|
|
1070
|
+
return this.m5r(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
1069
1071
|
};
|
|
1070
1072
|
protoOf(JsonLiteralSerializer).a1z = function (decoder) {
|
|
1071
|
-
var result = asJsonDecoder(decoder).
|
|
1073
|
+
var result = asJsonDecoder(decoder).i5q();
|
|
1072
1074
|
if (!(result instanceof JsonLiteral))
|
|
1073
1075
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
1074
1076
|
return result;
|
|
@@ -1106,13 +1108,19 @@
|
|
|
1106
1108
|
return tmp;
|
|
1107
1109
|
}
|
|
1108
1110
|
function _get_original__l7ku1m($this) {
|
|
1109
|
-
var tmp0 = $this.
|
|
1111
|
+
var tmp0 = $this.n5r_1;
|
|
1112
|
+
var tmp = KProperty1;
|
|
1110
1113
|
// Inline function 'kotlin.getValue' call
|
|
1111
|
-
original$
|
|
1114
|
+
getPropertyCallableRef('original', 1, tmp, defer$o$_get_original_$ref_3cje7k(), null);
|
|
1112
1115
|
return tmp0.z();
|
|
1113
1116
|
}
|
|
1117
|
+
function defer$o$_get_original_$ref_3cje7k() {
|
|
1118
|
+
return function (p0) {
|
|
1119
|
+
return _get_original__l7ku1m(p0);
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1114
1122
|
function defer$1($deferred) {
|
|
1115
|
-
this.
|
|
1123
|
+
this.n5r_1 = lazy($deferred);
|
|
1116
1124
|
}
|
|
1117
1125
|
protoOf(defer$1).z1z = function () {
|
|
1118
1126
|
return _get_original__l7ku1m(this).z1z();
|
|
@@ -1138,188 +1146,184 @@
|
|
|
1138
1146
|
protoOf(defer$1).x20 = function (index) {
|
|
1139
1147
|
return _get_original__l7ku1m(this).x20(index);
|
|
1140
1148
|
};
|
|
1141
|
-
function original$factory() {
|
|
1142
|
-
return getPropertyCallableRef('original', 1, KProperty1, function (receiver) {
|
|
1143
|
-
return _get_original__l7ku1m(receiver);
|
|
1144
|
-
}, null);
|
|
1145
|
-
}
|
|
1146
1149
|
function JsonEncoder() {
|
|
1147
1150
|
}
|
|
1148
1151
|
function Composer(writer) {
|
|
1149
|
-
this.
|
|
1150
|
-
this.
|
|
1152
|
+
this.o5r_1 = writer;
|
|
1153
|
+
this.p5r_1 = true;
|
|
1151
1154
|
}
|
|
1152
|
-
protoOf(Composer).p5r = function () {
|
|
1153
|
-
this.o5r_1 = true;
|
|
1154
|
-
};
|
|
1155
1155
|
protoOf(Composer).q5r = function () {
|
|
1156
|
-
|
|
1156
|
+
this.p5r_1 = true;
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(Composer).r5r = function () {
|
|
1159
|
-
|
|
1159
|
+
return Unit_instance;
|
|
1160
1160
|
};
|
|
1161
1161
|
protoOf(Composer).s5r = function () {
|
|
1162
|
-
this.
|
|
1162
|
+
this.p5r_1 = false;
|
|
1163
1163
|
};
|
|
1164
1164
|
protoOf(Composer).t5r = function () {
|
|
1165
|
-
|
|
1165
|
+
this.p5r_1 = false;
|
|
1166
1166
|
};
|
|
1167
|
-
protoOf(Composer).u5r = function (
|
|
1168
|
-
return
|
|
1167
|
+
protoOf(Composer).u5r = function () {
|
|
1168
|
+
return Unit_instance;
|
|
1169
1169
|
};
|
|
1170
|
-
protoOf(Composer).
|
|
1171
|
-
return this.
|
|
1170
|
+
protoOf(Composer).v5r = function (v) {
|
|
1171
|
+
return this.o5r_1.w5r(v);
|
|
1172
1172
|
};
|
|
1173
|
-
protoOf(Composer).
|
|
1174
|
-
return this.
|
|
1173
|
+
protoOf(Composer).x5r = function (v) {
|
|
1174
|
+
return this.o5r_1.y5r(v);
|
|
1175
1175
|
};
|
|
1176
1176
|
protoOf(Composer).z5r = function (v) {
|
|
1177
|
-
return this.
|
|
1177
|
+
return this.o5r_1.y5r(v.toString());
|
|
1178
1178
|
};
|
|
1179
1179
|
protoOf(Composer).a5s = function (v) {
|
|
1180
|
-
return this.
|
|
1180
|
+
return this.o5r_1.y5r(v.toString());
|
|
1181
1181
|
};
|
|
1182
|
-
protoOf(Composer).
|
|
1183
|
-
return this.
|
|
1182
|
+
protoOf(Composer).b5s = function (v) {
|
|
1183
|
+
return this.o5r_1.c5s(toLong(v));
|
|
1184
1184
|
};
|
|
1185
1185
|
protoOf(Composer).d5s = function (v) {
|
|
1186
|
-
return this.
|
|
1186
|
+
return this.o5r_1.c5s(toLong(v));
|
|
1187
1187
|
};
|
|
1188
1188
|
protoOf(Composer).e5s = function (v) {
|
|
1189
|
-
return this.
|
|
1189
|
+
return this.o5r_1.c5s(toLong(v));
|
|
1190
1190
|
};
|
|
1191
1191
|
protoOf(Composer).f5s = function (v) {
|
|
1192
|
-
return this.
|
|
1192
|
+
return this.o5r_1.c5s(v);
|
|
1193
|
+
};
|
|
1194
|
+
protoOf(Composer).g5s = function (v) {
|
|
1195
|
+
return this.o5r_1.y5r(v.toString());
|
|
1193
1196
|
};
|
|
1194
|
-
protoOf(Composer).
|
|
1195
|
-
return this.
|
|
1197
|
+
protoOf(Composer).h5s = function (value) {
|
|
1198
|
+
return this.o5r_1.i5s(value);
|
|
1196
1199
|
};
|
|
1197
1200
|
function Composer_0(sb, json) {
|
|
1198
|
-
return json.
|
|
1201
|
+
return json.e5o_1.t5p_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
|
|
1199
1202
|
}
|
|
1200
1203
|
function ComposerForUnsignedNumbers(writer, forceQuoting) {
|
|
1201
1204
|
Composer.call(this, writer);
|
|
1202
|
-
this.
|
|
1205
|
+
this.l5s_1 = forceQuoting;
|
|
1203
1206
|
}
|
|
1204
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1205
|
-
if (this.
|
|
1207
|
+
protoOf(ComposerForUnsignedNumbers).e5s = function (v) {
|
|
1208
|
+
if (this.l5s_1) {
|
|
1206
1209
|
// Inline function 'kotlin.toUInt' call
|
|
1207
1210
|
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
1208
|
-
this.
|
|
1211
|
+
this.h5s(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
1209
1212
|
} else {
|
|
1210
1213
|
// Inline function 'kotlin.toUInt' call
|
|
1211
1214
|
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
1212
|
-
this.
|
|
1215
|
+
this.x5r(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
1213
1216
|
}
|
|
1214
1217
|
};
|
|
1215
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1216
|
-
if (this.
|
|
1218
|
+
protoOf(ComposerForUnsignedNumbers).f5s = function (v) {
|
|
1219
|
+
if (this.l5s_1) {
|
|
1217
1220
|
// Inline function 'kotlin.toULong' call
|
|
1218
1221
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
1219
|
-
this.
|
|
1222
|
+
this.h5s(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
1220
1223
|
} else {
|
|
1221
1224
|
// Inline function 'kotlin.toULong' call
|
|
1222
1225
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
1223
|
-
this.
|
|
1226
|
+
this.x5r(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
1224
1227
|
}
|
|
1225
1228
|
};
|
|
1226
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1227
|
-
if (this.
|
|
1229
|
+
protoOf(ComposerForUnsignedNumbers).b5s = function (v) {
|
|
1230
|
+
if (this.l5s_1) {
|
|
1228
1231
|
// Inline function 'kotlin.toUByte' call
|
|
1229
1232
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
1230
|
-
this.
|
|
1233
|
+
this.h5s(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
1231
1234
|
} else {
|
|
1232
1235
|
// Inline function 'kotlin.toUByte' call
|
|
1233
1236
|
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
1234
|
-
this.
|
|
1237
|
+
this.x5r(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
1235
1238
|
}
|
|
1236
1239
|
};
|
|
1237
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1238
|
-
if (this.
|
|
1240
|
+
protoOf(ComposerForUnsignedNumbers).d5s = function (v) {
|
|
1241
|
+
if (this.l5s_1) {
|
|
1239
1242
|
// Inline function 'kotlin.toUShort' call
|
|
1240
1243
|
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
1241
|
-
this.
|
|
1244
|
+
this.h5s(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
1242
1245
|
} else {
|
|
1243
1246
|
// Inline function 'kotlin.toUShort' call
|
|
1244
1247
|
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
1245
|
-
this.
|
|
1248
|
+
this.x5r(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
1246
1249
|
}
|
|
1247
1250
|
};
|
|
1248
1251
|
function ComposerForUnquotedLiterals(writer, forceQuoting) {
|
|
1249
1252
|
Composer.call(this, writer);
|
|
1250
|
-
this.
|
|
1253
|
+
this.o5s_1 = forceQuoting;
|
|
1251
1254
|
}
|
|
1252
|
-
protoOf(ComposerForUnquotedLiterals).
|
|
1253
|
-
if (this.
|
|
1254
|
-
protoOf(Composer).
|
|
1255
|
+
protoOf(ComposerForUnquotedLiterals).h5s = function (value) {
|
|
1256
|
+
if (this.o5s_1) {
|
|
1257
|
+
protoOf(Composer).h5s.call(this, value);
|
|
1255
1258
|
} else {
|
|
1256
|
-
protoOf(Composer).
|
|
1259
|
+
protoOf(Composer).x5r.call(this, value);
|
|
1257
1260
|
}
|
|
1258
1261
|
};
|
|
1259
1262
|
function ComposerWithPrettyPrint(writer, json) {
|
|
1260
1263
|
Composer.call(this, writer);
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1264
|
+
this.r5s_1 = json;
|
|
1265
|
+
this.s5s_1 = 0;
|
|
1263
1266
|
}
|
|
1264
|
-
protoOf(ComposerWithPrettyPrint).p5r = function () {
|
|
1265
|
-
this.o5r_1 = true;
|
|
1266
|
-
this.r5s_1 = this.r5s_1 + 1 | 0;
|
|
1267
|
-
};
|
|
1268
1267
|
protoOf(ComposerWithPrettyPrint).q5r = function () {
|
|
1269
|
-
this.
|
|
1268
|
+
this.p5r_1 = true;
|
|
1269
|
+
this.s5s_1 = this.s5s_1 + 1 | 0;
|
|
1270
1270
|
};
|
|
1271
1271
|
protoOf(ComposerWithPrettyPrint).r5r = function () {
|
|
1272
|
-
this.
|
|
1273
|
-
|
|
1272
|
+
this.s5s_1 = this.s5s_1 - 1 | 0;
|
|
1273
|
+
};
|
|
1274
|
+
protoOf(ComposerWithPrettyPrint).s5r = function () {
|
|
1275
|
+
this.p5r_1 = false;
|
|
1276
|
+
this.x5r('\n');
|
|
1274
1277
|
// Inline function 'kotlin.repeat' call
|
|
1275
|
-
var times = this.
|
|
1278
|
+
var times = this.s5s_1;
|
|
1276
1279
|
var inductionVariable = 0;
|
|
1277
1280
|
if (inductionVariable < times)
|
|
1278
1281
|
do {
|
|
1279
1282
|
var index = inductionVariable;
|
|
1280
1283
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1281
|
-
this.
|
|
1284
|
+
this.x5r(this.r5s_1.e5o_1.v5p_1);
|
|
1282
1285
|
}
|
|
1283
1286
|
while (inductionVariable < times);
|
|
1284
1287
|
};
|
|
1285
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1286
|
-
if (this.
|
|
1287
|
-
this.
|
|
1288
|
+
protoOf(ComposerWithPrettyPrint).t5r = function () {
|
|
1289
|
+
if (this.p5r_1)
|
|
1290
|
+
this.p5r_1 = false;
|
|
1288
1291
|
else {
|
|
1289
|
-
this.
|
|
1292
|
+
this.s5r();
|
|
1290
1293
|
}
|
|
1291
1294
|
};
|
|
1292
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1293
|
-
this.
|
|
1295
|
+
protoOf(ComposerWithPrettyPrint).u5r = function () {
|
|
1296
|
+
this.v5r(_Char___init__impl__6a9atx(32));
|
|
1294
1297
|
};
|
|
1295
1298
|
function readIfAbsent($this, descriptor, index) {
|
|
1296
|
-
$this.
|
|
1297
|
-
return $this.
|
|
1299
|
+
$this.u5s_1 = (!descriptor.x20(index) && descriptor.w20(index).l20());
|
|
1300
|
+
return $this.u5s_1;
|
|
1298
1301
|
}
|
|
1299
|
-
function JsonElementMarker$readIfAbsent$ref(
|
|
1300
|
-
var l = function (
|
|
1301
|
-
|
|
1302
|
+
function JsonElementMarker$readIfAbsent$ref(p0) {
|
|
1303
|
+
var l = function (_this__u8e3s4, p0_0) {
|
|
1304
|
+
var tmp0 = p0;
|
|
1305
|
+
return readIfAbsent(tmp0, _this__u8e3s4, p0_0);
|
|
1302
1306
|
};
|
|
1303
1307
|
l.callableName = 'readIfAbsent';
|
|
1304
1308
|
return l;
|
|
1305
1309
|
}
|
|
1306
1310
|
function JsonElementMarker(descriptor) {
|
|
1307
1311
|
var tmp = this;
|
|
1308
|
-
tmp.
|
|
1309
|
-
this.
|
|
1312
|
+
tmp.t5s_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
|
|
1313
|
+
this.u5s_1 = false;
|
|
1310
1314
|
}
|
|
1311
|
-
protoOf(JsonElementMarker).
|
|
1312
|
-
this.
|
|
1315
|
+
protoOf(JsonElementMarker).v5s = function (index) {
|
|
1316
|
+
this.t5s_1.r28(index);
|
|
1313
1317
|
};
|
|
1314
|
-
protoOf(JsonElementMarker).
|
|
1315
|
-
return this.
|
|
1318
|
+
protoOf(JsonElementMarker).w5s = function () {
|
|
1319
|
+
return this.t5s_1.s28();
|
|
1316
1320
|
};
|
|
1317
1321
|
function invalidTrailingComma(_this__u8e3s4, entity) {
|
|
1318
1322
|
entity = entity === VOID ? 'object' : entity;
|
|
1319
|
-
_this__u8e3s4.
|
|
1323
|
+
_this__u8e3s4.x5s('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.r5o_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingComma = true' in 'Json {}' builder to support them.");
|
|
1320
1324
|
}
|
|
1321
1325
|
function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
|
|
1322
|
-
_this__u8e3s4.
|
|
1326
|
+
_this__u8e3s4.y5s('Unexpected special floating-point value ' + toString(result) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification', VOID, "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'");
|
|
1323
1327
|
}
|
|
1324
1328
|
function JsonEncodingException(message) {
|
|
1325
1329
|
JsonException.call(this, message);
|
|
@@ -1357,10 +1361,10 @@
|
|
|
1357
1361
|
var end = offset + 30 | 0;
|
|
1358
1362
|
var prefix = start_0 <= 0 ? '' : '.....';
|
|
1359
1363
|
var suffix = end >= charSequenceLength(_this__u8e3s4) ? '' : '.....';
|
|
1360
|
-
var
|
|
1364
|
+
var tmp2 = coerceAtLeast(start_0, 0);
|
|
1361
1365
|
// Inline function 'kotlin.text.substring' call
|
|
1362
1366
|
var endIndex_0 = coerceAtMost(end, charSequenceLength(_this__u8e3s4));
|
|
1363
|
-
return prefix + toString(charSequenceSubSequence(_this__u8e3s4,
|
|
1367
|
+
return prefix + toString(charSequenceSubSequence(_this__u8e3s4, tmp2, endIndex_0)) + suffix;
|
|
1364
1368
|
}
|
|
1365
1369
|
function InvalidFloatingPointEncoded(value, output) {
|
|
1366
1370
|
return new JsonEncodingException('Unexpected special floating-point value ' + toString(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(minify(output))));
|
|
@@ -1385,7 +1389,7 @@
|
|
|
1385
1389
|
function ignoreUnknownKeys(_this__u8e3s4, json) {
|
|
1386
1390
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1387
1391
|
var tmp;
|
|
1388
|
-
if (json.
|
|
1392
|
+
if (json.e5o_1.q5p_1) {
|
|
1389
1393
|
tmp = true;
|
|
1390
1394
|
} else {
|
|
1391
1395
|
var tmp0 = _this__u8e3s4.s20();
|
|
@@ -1430,7 +1434,7 @@
|
|
|
1430
1434
|
var index = _this__u8e3s4.u20(name);
|
|
1431
1435
|
if (!(index === -3))
|
|
1432
1436
|
return index;
|
|
1433
|
-
if (!json.
|
|
1437
|
+
if (!json.e5o_1.a5q_1)
|
|
1434
1438
|
return index;
|
|
1435
1439
|
return getJsonNameIndexSlowPath(_this__u8e3s4, json, name);
|
|
1436
1440
|
}
|
|
@@ -1449,17 +1453,17 @@
|
|
|
1449
1453
|
}
|
|
1450
1454
|
function namingStrategy(_this__u8e3s4, json) {
|
|
1451
1455
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1452
|
-
return equals(_this__u8e3s4.p20(), CLASS_getInstance()) ? json.
|
|
1456
|
+
return equals(_this__u8e3s4.p20(), CLASS_getInstance()) ? json.e5o_1.b5q_1 : null;
|
|
1453
1457
|
}
|
|
1454
1458
|
function deserializationNamesMap(_this__u8e3s4, descriptor) {
|
|
1455
1459
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1456
1460
|
var tmp = get_schemaCache(_this__u8e3s4);
|
|
1457
1461
|
var tmp_0 = get_JsonDeserializationNamesKey();
|
|
1458
|
-
return tmp.
|
|
1462
|
+
return tmp.a5t(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
|
|
1459
1463
|
}
|
|
1460
1464
|
function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
|
|
1461
1465
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1462
|
-
return _this__u8e3s4.
|
|
1466
|
+
return _this__u8e3s4.e5o_1.c5q_1 && equals(descriptor.p20(), ENUM_getInstance());
|
|
1463
1467
|
}
|
|
1464
1468
|
function getJsonNameIndexSlowPath(_this__u8e3s4, json, name) {
|
|
1465
1469
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1470,7 +1474,7 @@
|
|
|
1470
1474
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1471
1475
|
var tmp = get_schemaCache(json);
|
|
1472
1476
|
var tmp_0 = get_JsonSerializationNamesKey();
|
|
1473
|
-
return tmp.
|
|
1477
|
+
return tmp.a5t(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
1474
1478
|
}
|
|
1475
1479
|
function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
1476
1480
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1496,7 +1500,7 @@
|
|
|
1496
1500
|
}
|
|
1497
1501
|
}
|
|
1498
1502
|
var tmp0_safe_receiver = singleOrNull(destination);
|
|
1499
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1503
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b5t_1;
|
|
1500
1504
|
if (tmp1_safe_receiver == null)
|
|
1501
1505
|
null;
|
|
1502
1506
|
else {
|
|
@@ -1523,7 +1527,7 @@
|
|
|
1523
1527
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1524
1528
|
tmp_0 = _this__u8e3s4.t20(i).toLowerCase();
|
|
1525
1529
|
} else if (!(strategyForClasses == null)) {
|
|
1526
|
-
tmp_0 = strategyForClasses.
|
|
1530
|
+
tmp_0 = strategyForClasses.c5t(_this__u8e3s4, i, _this__u8e3s4.t20(i));
|
|
1527
1531
|
} else {
|
|
1528
1532
|
tmp_0 = null;
|
|
1529
1533
|
}
|
|
@@ -1569,7 +1573,7 @@
|
|
|
1569
1573
|
while (tmp < tmp_0) {
|
|
1570
1574
|
var tmp_2 = tmp;
|
|
1571
1575
|
var baseName = $this_serializationNamesIndices.t20(tmp_2);
|
|
1572
|
-
tmp_1[tmp_2] = $strategy.
|
|
1576
|
+
tmp_1[tmp_2] = $strategy.c5t($this_serializationNamesIndices, tmp_2, baseName);
|
|
1573
1577
|
tmp = tmp + 1 | 0;
|
|
1574
1578
|
}
|
|
1575
1579
|
return tmp_1;
|
|
@@ -1590,14 +1594,14 @@
|
|
|
1590
1594
|
return Tombstone_instance;
|
|
1591
1595
|
}
|
|
1592
1596
|
function resize($this) {
|
|
1593
|
-
var newSize = imul($this.
|
|
1594
|
-
$this.
|
|
1595
|
-
$this.
|
|
1597
|
+
var newSize = imul($this.f5t_1, 2);
|
|
1598
|
+
$this.d5t_1 = copyOf($this.d5t_1, newSize);
|
|
1599
|
+
$this.e5t_1 = copyOf_0($this.e5t_1, newSize);
|
|
1596
1600
|
}
|
|
1597
1601
|
function JsonPath() {
|
|
1598
1602
|
var tmp = this;
|
|
1599
1603
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1600
|
-
tmp.
|
|
1604
|
+
tmp.d5t_1 = Array(8);
|
|
1601
1605
|
var tmp_0 = this;
|
|
1602
1606
|
var tmp_1 = 0;
|
|
1603
1607
|
var tmp_2 = new Int32Array(8);
|
|
@@ -1605,71 +1609,71 @@
|
|
|
1605
1609
|
tmp_2[tmp_1] = -1;
|
|
1606
1610
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1607
1611
|
}
|
|
1608
|
-
tmp_0.
|
|
1609
|
-
this.
|
|
1612
|
+
tmp_0.e5t_1 = tmp_2;
|
|
1613
|
+
this.f5t_1 = -1;
|
|
1610
1614
|
}
|
|
1611
|
-
protoOf(JsonPath).
|
|
1612
|
-
this.
|
|
1613
|
-
var depth = this.
|
|
1614
|
-
if (depth === this.
|
|
1615
|
+
protoOf(JsonPath).g5t = function (sd) {
|
|
1616
|
+
this.f5t_1 = this.f5t_1 + 1 | 0;
|
|
1617
|
+
var depth = this.f5t_1;
|
|
1618
|
+
if (depth === this.d5t_1.length) {
|
|
1615
1619
|
resize(this);
|
|
1616
1620
|
}
|
|
1617
|
-
this.
|
|
1621
|
+
this.d5t_1[depth] = sd;
|
|
1618
1622
|
};
|
|
1619
|
-
protoOf(JsonPath).
|
|
1620
|
-
this.
|
|
1623
|
+
protoOf(JsonPath).h5t = function (index) {
|
|
1624
|
+
this.e5t_1[this.f5t_1] = index;
|
|
1621
1625
|
};
|
|
1622
|
-
protoOf(JsonPath).
|
|
1626
|
+
protoOf(JsonPath).i5t = function (key) {
|
|
1623
1627
|
var tmp;
|
|
1624
|
-
if (!(this.
|
|
1625
|
-
this.
|
|
1626
|
-
tmp = this.
|
|
1628
|
+
if (!(this.e5t_1[this.f5t_1] === -2)) {
|
|
1629
|
+
this.f5t_1 = this.f5t_1 + 1 | 0;
|
|
1630
|
+
tmp = this.f5t_1 === this.d5t_1.length;
|
|
1627
1631
|
} else {
|
|
1628
1632
|
tmp = false;
|
|
1629
1633
|
}
|
|
1630
1634
|
if (tmp) {
|
|
1631
1635
|
resize(this);
|
|
1632
1636
|
}
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1637
|
+
this.d5t_1[this.f5t_1] = key;
|
|
1638
|
+
this.e5t_1[this.f5t_1] = -2;
|
|
1635
1639
|
};
|
|
1636
|
-
protoOf(JsonPath).
|
|
1637
|
-
if (this.
|
|
1638
|
-
this.
|
|
1640
|
+
protoOf(JsonPath).j5t = function () {
|
|
1641
|
+
if (this.e5t_1[this.f5t_1] === -2) {
|
|
1642
|
+
this.d5t_1[this.f5t_1] = Tombstone_instance;
|
|
1639
1643
|
}
|
|
1640
1644
|
};
|
|
1641
|
-
protoOf(JsonPath).
|
|
1642
|
-
var depth = this.
|
|
1643
|
-
if (this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1645
|
+
protoOf(JsonPath).k5t = function () {
|
|
1646
|
+
var depth = this.f5t_1;
|
|
1647
|
+
if (this.e5t_1[depth] === -2) {
|
|
1648
|
+
this.e5t_1[depth] = -1;
|
|
1649
|
+
this.f5t_1 = this.f5t_1 - 1 | 0;
|
|
1646
1650
|
}
|
|
1647
|
-
if (!(this.
|
|
1648
|
-
this.
|
|
1651
|
+
if (!(this.f5t_1 === -1)) {
|
|
1652
|
+
this.f5t_1 = this.f5t_1 - 1 | 0;
|
|
1649
1653
|
}
|
|
1650
1654
|
};
|
|
1651
|
-
protoOf(JsonPath).
|
|
1655
|
+
protoOf(JsonPath).l5t = function () {
|
|
1652
1656
|
// Inline function 'kotlin.text.buildString' call
|
|
1653
1657
|
// Inline function 'kotlin.apply' call
|
|
1654
1658
|
var this_0 = StringBuilder_init_$Create$();
|
|
1655
1659
|
this_0.r8('$');
|
|
1656
1660
|
// Inline function 'kotlin.repeat' call
|
|
1657
|
-
var times = this.
|
|
1661
|
+
var times = this.f5t_1 + 1 | 0;
|
|
1658
1662
|
var inductionVariable = 0;
|
|
1659
1663
|
if (inductionVariable < times)
|
|
1660
1664
|
do {
|
|
1661
1665
|
var index = inductionVariable;
|
|
1662
1666
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1663
|
-
var element = this.
|
|
1667
|
+
var element = this.d5t_1[index];
|
|
1664
1668
|
if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
|
|
1665
1669
|
if (equals(element.p20(), LIST_getInstance())) {
|
|
1666
|
-
if (!(this.
|
|
1670
|
+
if (!(this.e5t_1[index] === -1)) {
|
|
1667
1671
|
this_0.r8('[');
|
|
1668
|
-
this_0.dd(this.
|
|
1672
|
+
this_0.dd(this.e5t_1[index]);
|
|
1669
1673
|
this_0.r8(']');
|
|
1670
1674
|
}
|
|
1671
1675
|
} else {
|
|
1672
|
-
var idx = this.
|
|
1676
|
+
var idx = this.e5t_1[index];
|
|
1673
1677
|
if (idx >= 0) {
|
|
1674
1678
|
this_0.r8('.');
|
|
1675
1679
|
this_0.r8(element.t20(idx));
|
|
@@ -1689,7 +1693,7 @@
|
|
|
1689
1693
|
return this_0.toString();
|
|
1690
1694
|
};
|
|
1691
1695
|
protoOf(JsonPath).toString = function () {
|
|
1692
|
-
return this.
|
|
1696
|
+
return this.l5t();
|
|
1693
1697
|
};
|
|
1694
1698
|
function checkKind($this, descriptor, actualClass) {
|
|
1695
1699
|
var kind = descriptor.p20();
|
|
@@ -1702,9 +1706,9 @@
|
|
|
1702
1706
|
if (tmp) {
|
|
1703
1707
|
throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.kb() + " can't be registered as a subclass for polymorphic serialization " + ('because its kind ' + kind.toString() + ' is not concrete. To work with multiple hierarchies, register it as a base class.'));
|
|
1704
1708
|
}
|
|
1705
|
-
if ($this.
|
|
1709
|
+
if ($this.n5t_1)
|
|
1706
1710
|
return Unit_instance;
|
|
1707
|
-
if (!$this.
|
|
1711
|
+
if (!$this.o5t_1)
|
|
1708
1712
|
return Unit_instance;
|
|
1709
1713
|
var tmp_0;
|
|
1710
1714
|
var tmp_1;
|
|
@@ -1730,23 +1734,23 @@
|
|
|
1730
1734
|
var i = inductionVariable;
|
|
1731
1735
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1732
1736
|
var name = descriptor.t20(i);
|
|
1733
|
-
if (name === $this.
|
|
1737
|
+
if (name === $this.m5t_1) {
|
|
1734
1738
|
throw IllegalArgumentException_init_$Create$('Polymorphic serializer for ' + toString(actualClass) + " has property '" + name + "' that conflicts " + 'with JSON class discriminator. You can either change class discriminator in JsonConfiguration, rename property with @SerialName annotation or fall back to array polymorphism');
|
|
1735
1739
|
}
|
|
1736
1740
|
}
|
|
1737
1741
|
while (inductionVariable < last);
|
|
1738
1742
|
}
|
|
1739
1743
|
function JsonSerializersModuleValidator(configuration) {
|
|
1740
|
-
this.
|
|
1741
|
-
this.
|
|
1742
|
-
this.
|
|
1744
|
+
this.m5t_1 = configuration.y5p_1;
|
|
1745
|
+
this.n5t_1 = configuration.x5p_1;
|
|
1746
|
+
this.o5t_1 = !configuration.f5q_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
1743
1747
|
}
|
|
1744
1748
|
protoOf(JsonSerializersModuleValidator).c2j = function (kClass, provider) {
|
|
1745
1749
|
};
|
|
1746
1750
|
protoOf(JsonSerializersModuleValidator).f2j = function (baseClass, actualClass, actualSerializer) {
|
|
1747
1751
|
var descriptor = actualSerializer.y1y();
|
|
1748
1752
|
checkKind(this, descriptor, actualClass);
|
|
1749
|
-
if (!this.
|
|
1753
|
+
if (!this.n5t_1 && this.o5t_1) {
|
|
1750
1754
|
checkDiscriminatorCollisions(this, descriptor, actualClass);
|
|
1751
1755
|
}
|
|
1752
1756
|
};
|
|
@@ -1764,81 +1768,81 @@
|
|
|
1764
1768
|
}
|
|
1765
1769
|
function readObject($this) {
|
|
1766
1770
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
|
|
1767
|
-
var lastToken = $this.
|
|
1768
|
-
if ($this.
|
|
1769
|
-
$this.
|
|
1771
|
+
var lastToken = $this.y5t_1.c5u(6);
|
|
1772
|
+
if ($this.y5t_1.d5u() === 4) {
|
|
1773
|
+
$this.y5t_1.y5s('Unexpected leading comma');
|
|
1770
1774
|
}
|
|
1771
1775
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
1772
1776
|
var result = LinkedHashMap_init_$Create$();
|
|
1773
|
-
$l$loop: while ($this.
|
|
1774
|
-
var key = $this.
|
|
1775
|
-
$this.
|
|
1776
|
-
var element = $this.
|
|
1777
|
+
$l$loop: while ($this.y5t_1.e5u()) {
|
|
1778
|
+
var key = $this.z5t_1 ? $this.y5t_1.g5u() : $this.y5t_1.f5u();
|
|
1779
|
+
$this.y5t_1.c5u(5);
|
|
1780
|
+
var element = $this.h5u();
|
|
1777
1781
|
// Inline function 'kotlin.collections.set' call
|
|
1778
1782
|
result.n2(key, element);
|
|
1779
|
-
lastToken = $this.
|
|
1783
|
+
lastToken = $this.y5t_1.i5u();
|
|
1780
1784
|
var tmp0_subject = lastToken;
|
|
1781
1785
|
if (tmp0_subject !== 4)
|
|
1782
1786
|
if (tmp0_subject === 7)
|
|
1783
1787
|
break $l$loop;
|
|
1784
1788
|
else {
|
|
1785
|
-
$this.
|
|
1789
|
+
$this.y5t_1.y5s('Expected end of the object or comma');
|
|
1786
1790
|
}
|
|
1787
1791
|
}
|
|
1788
1792
|
if (lastToken === 6) {
|
|
1789
|
-
$this.
|
|
1793
|
+
$this.y5t_1.c5u(7);
|
|
1790
1794
|
} else if (lastToken === 4) {
|
|
1791
|
-
if (!$this.
|
|
1792
|
-
invalidTrailingComma($this.
|
|
1795
|
+
if (!$this.a5u_1) {
|
|
1796
|
+
invalidTrailingComma($this.y5t_1);
|
|
1793
1797
|
}
|
|
1794
|
-
$this.
|
|
1798
|
+
$this.y5t_1.c5u(7);
|
|
1795
1799
|
}
|
|
1796
1800
|
return new JsonObject(result);
|
|
1797
1801
|
}
|
|
1798
1802
|
function readObject_0($this, _this__u8e3s4, $completion) {
|
|
1799
|
-
var tmp = new $readObjectCOROUTINE$
|
|
1803
|
+
var tmp = new $readObjectCOROUTINE$($this, _this__u8e3s4, $completion);
|
|
1800
1804
|
tmp.i9_1 = Unit_instance;
|
|
1801
1805
|
tmp.j9_1 = null;
|
|
1802
1806
|
return tmp.o9();
|
|
1803
1807
|
}
|
|
1804
1808
|
function readArray($this) {
|
|
1805
|
-
var lastToken = $this.
|
|
1806
|
-
if ($this.
|
|
1807
|
-
$this.
|
|
1809
|
+
var lastToken = $this.y5t_1.i5u();
|
|
1810
|
+
if ($this.y5t_1.d5u() === 4) {
|
|
1811
|
+
$this.y5t_1.y5s('Unexpected leading comma');
|
|
1808
1812
|
}
|
|
1809
1813
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1810
1814
|
var result = ArrayList_init_$Create$();
|
|
1811
|
-
while ($this.
|
|
1812
|
-
var element = $this.
|
|
1815
|
+
while ($this.y5t_1.e5u()) {
|
|
1816
|
+
var element = $this.h5u();
|
|
1813
1817
|
result.k(element);
|
|
1814
|
-
lastToken = $this.
|
|
1818
|
+
lastToken = $this.y5t_1.i5u();
|
|
1815
1819
|
if (!(lastToken === 4)) {
|
|
1816
|
-
var tmp0 = $this.
|
|
1820
|
+
var tmp0 = $this.y5t_1;
|
|
1817
1821
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
1818
1822
|
var condition = lastToken === 9;
|
|
1819
|
-
var position = tmp0.
|
|
1823
|
+
var position = tmp0.r5o_1;
|
|
1820
1824
|
if (!condition) {
|
|
1821
1825
|
var tmp$ret$1 = 'Expected end of the array or comma';
|
|
1822
|
-
tmp0.
|
|
1826
|
+
tmp0.y5s(tmp$ret$1, position);
|
|
1823
1827
|
}
|
|
1824
1828
|
}
|
|
1825
1829
|
}
|
|
1826
1830
|
if (lastToken === 8) {
|
|
1827
|
-
$this.
|
|
1831
|
+
$this.y5t_1.c5u(9);
|
|
1828
1832
|
} else if (lastToken === 4) {
|
|
1829
|
-
if (!$this.
|
|
1830
|
-
invalidTrailingComma($this.
|
|
1833
|
+
if (!$this.a5u_1) {
|
|
1834
|
+
invalidTrailingComma($this.y5t_1, 'array');
|
|
1831
1835
|
}
|
|
1832
|
-
$this.
|
|
1836
|
+
$this.y5t_1.c5u(9);
|
|
1833
1837
|
}
|
|
1834
1838
|
return new JsonArray(result);
|
|
1835
1839
|
}
|
|
1836
1840
|
function readValue($this, isString) {
|
|
1837
1841
|
var tmp;
|
|
1838
|
-
if ($this.
|
|
1839
|
-
tmp = $this.
|
|
1842
|
+
if ($this.z5t_1 || !isString) {
|
|
1843
|
+
tmp = $this.y5t_1.g5u();
|
|
1840
1844
|
} else {
|
|
1841
|
-
tmp = $this.
|
|
1845
|
+
tmp = $this.y5t_1.f5u();
|
|
1842
1846
|
}
|
|
1843
1847
|
var string = tmp;
|
|
1844
1848
|
if (!isString && string === 'null')
|
|
@@ -1849,18 +1853,18 @@
|
|
|
1849
1853
|
return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance);
|
|
1850
1854
|
}
|
|
1851
1855
|
function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
|
|
1852
|
-
this.
|
|
1856
|
+
this.g5v_1 = this$0;
|
|
1853
1857
|
CoroutineImpl.call(this, resultContinuation);
|
|
1854
1858
|
}
|
|
1855
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1856
|
-
var tmp = this.
|
|
1859
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).l5v = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1860
|
+
var tmp = this.m5v($this$DeepRecursiveFunction, it, $completion);
|
|
1857
1861
|
tmp.i9_1 = Unit_instance;
|
|
1858
1862
|
tmp.j9_1 = null;
|
|
1859
1863
|
return tmp.o9();
|
|
1860
1864
|
};
|
|
1861
1865
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).da = function (p1, p2, $completion) {
|
|
1862
1866
|
var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
|
|
1863
|
-
return this.
|
|
1867
|
+
return this.l5v(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
|
|
1864
1868
|
};
|
|
1865
1869
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).o9 = function () {
|
|
1866
1870
|
var suspendResult = this.i9_1;
|
|
@@ -1870,32 +1874,32 @@
|
|
|
1870
1874
|
switch (tmp) {
|
|
1871
1875
|
case 0:
|
|
1872
1876
|
this.h9_1 = 3;
|
|
1873
|
-
this.
|
|
1874
|
-
if (this.
|
|
1875
|
-
this.
|
|
1877
|
+
this.j5v_1 = this.g5v_1.y5t_1.d5u();
|
|
1878
|
+
if (this.j5v_1 === 1) {
|
|
1879
|
+
this.k5v_1 = readValue(this.g5v_1, true);
|
|
1876
1880
|
this.g9_1 = 2;
|
|
1877
1881
|
continue $sm;
|
|
1878
1882
|
} else {
|
|
1879
|
-
if (this.
|
|
1880
|
-
this.
|
|
1883
|
+
if (this.j5v_1 === 0) {
|
|
1884
|
+
this.k5v_1 = readValue(this.g5v_1, false);
|
|
1881
1885
|
this.g9_1 = 2;
|
|
1882
1886
|
continue $sm;
|
|
1883
1887
|
} else {
|
|
1884
|
-
if (this.
|
|
1888
|
+
if (this.j5v_1 === 6) {
|
|
1885
1889
|
this.g9_1 = 1;
|
|
1886
|
-
suspendResult = readObject_0(this.
|
|
1890
|
+
suspendResult = readObject_0(this.g5v_1, this.h5v_1, this);
|
|
1887
1891
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1888
1892
|
return suspendResult;
|
|
1889
1893
|
}
|
|
1890
1894
|
continue $sm;
|
|
1891
1895
|
} else {
|
|
1892
|
-
if (this.
|
|
1893
|
-
this.
|
|
1896
|
+
if (this.j5v_1 === 8) {
|
|
1897
|
+
this.k5v_1 = readArray(this.g5v_1);
|
|
1894
1898
|
this.g9_1 = 2;
|
|
1895
1899
|
continue $sm;
|
|
1896
1900
|
} else {
|
|
1897
1901
|
var tmp_0 = this;
|
|
1898
|
-
this.
|
|
1902
|
+
this.g5v_1.y5t_1.y5s("Can't begin reading element, unexpected token");
|
|
1899
1903
|
}
|
|
1900
1904
|
}
|
|
1901
1905
|
}
|
|
@@ -1903,11 +1907,11 @@
|
|
|
1903
1907
|
|
|
1904
1908
|
break;
|
|
1905
1909
|
case 1:
|
|
1906
|
-
this.
|
|
1910
|
+
this.k5v_1 = suspendResult;
|
|
1907
1911
|
this.g9_1 = 2;
|
|
1908
1912
|
continue $sm;
|
|
1909
1913
|
case 2:
|
|
1910
|
-
return this.
|
|
1914
|
+
return this.k5v_1;
|
|
1911
1915
|
case 3:
|
|
1912
1916
|
throw this.j9_1;
|
|
1913
1917
|
}
|
|
@@ -1922,26 +1926,26 @@
|
|
|
1922
1926
|
}
|
|
1923
1927
|
while (true);
|
|
1924
1928
|
};
|
|
1925
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1926
|
-
var i = new JsonTreeReader$readDeepRecursive$slambda(this.
|
|
1927
|
-
i.
|
|
1928
|
-
i.
|
|
1929
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).m5v = function ($this$DeepRecursiveFunction, it, completion) {
|
|
1930
|
+
var i = new JsonTreeReader$readDeepRecursive$slambda(this.g5v_1, completion);
|
|
1931
|
+
i.h5v_1 = $this$DeepRecursiveFunction;
|
|
1932
|
+
i.i5v_1 = it;
|
|
1929
1933
|
return i;
|
|
1930
1934
|
};
|
|
1931
1935
|
function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
|
|
1932
1936
|
var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
|
|
1933
1937
|
var l = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1934
|
-
return i.
|
|
1938
|
+
return i.l5v($this$DeepRecursiveFunction, it, $completion);
|
|
1935
1939
|
};
|
|
1936
1940
|
l.$arity = 2;
|
|
1937
1941
|
return l;
|
|
1938
1942
|
}
|
|
1939
|
-
function $readObjectCOROUTINE$
|
|
1943
|
+
function $readObjectCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
1940
1944
|
CoroutineImpl.call(this, resultContinuation);
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1945
|
+
this.r5u_1 = _this__u8e3s4;
|
|
1946
|
+
this.s5u_1 = _this__u8e3s4_0;
|
|
1943
1947
|
}
|
|
1944
|
-
protoOf($readObjectCOROUTINE$
|
|
1948
|
+
protoOf($readObjectCOROUTINE$).o9 = function () {
|
|
1945
1949
|
var suspendResult = this.i9_1;
|
|
1946
1950
|
$sm: do
|
|
1947
1951
|
try {
|
|
@@ -1950,27 +1954,27 @@
|
|
|
1950
1954
|
case 0:
|
|
1951
1955
|
this.h9_1 = 5;
|
|
1952
1956
|
var tmp_0 = this;
|
|
1953
|
-
tmp_0.
|
|
1954
|
-
this.
|
|
1955
|
-
this.
|
|
1956
|
-
if (this.
|
|
1957
|
-
this.
|
|
1957
|
+
tmp_0.t5u_1 = this.r5u_1;
|
|
1958
|
+
this.u5u_1 = this.t5u_1;
|
|
1959
|
+
this.v5u_1 = this.u5u_1.y5t_1.c5u(6);
|
|
1960
|
+
if (this.u5u_1.y5t_1.d5u() === 4) {
|
|
1961
|
+
this.u5u_1.y5t_1.y5s('Unexpected leading comma');
|
|
1958
1962
|
}
|
|
1959
1963
|
|
|
1960
1964
|
var tmp_1 = this;
|
|
1961
|
-
tmp_1.
|
|
1965
|
+
tmp_1.w5u_1 = LinkedHashMap_init_$Create$();
|
|
1962
1966
|
this.g9_1 = 1;
|
|
1963
1967
|
continue $sm;
|
|
1964
1968
|
case 1:
|
|
1965
|
-
if (!this.
|
|
1969
|
+
if (!this.u5u_1.y5t_1.e5u()) {
|
|
1966
1970
|
this.g9_1 = 4;
|
|
1967
1971
|
continue $sm;
|
|
1968
1972
|
}
|
|
1969
1973
|
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1974
|
+
this.x5u_1 = this.u5u_1.z5t_1 ? this.u5u_1.y5t_1.g5u() : this.u5u_1.y5t_1.f5u();
|
|
1975
|
+
this.u5u_1.y5t_1.c5u(5);
|
|
1972
1976
|
this.g9_1 = 2;
|
|
1973
|
-
suspendResult = this.
|
|
1977
|
+
suspendResult = this.s5u_1.el(Unit_instance, this);
|
|
1974
1978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1975
1979
|
return suspendResult;
|
|
1976
1980
|
}
|
|
@@ -1978,11 +1982,11 @@
|
|
|
1978
1982
|
continue $sm;
|
|
1979
1983
|
case 2:
|
|
1980
1984
|
var element = suspendResult;
|
|
1981
|
-
var tmp0 = this.
|
|
1982
|
-
var key = this.
|
|
1985
|
+
var tmp0 = this.w5u_1;
|
|
1986
|
+
var key = this.x5u_1;
|
|
1983
1987
|
tmp0.n2(key, element);
|
|
1984
|
-
this.
|
|
1985
|
-
var tmp0_subject = this.
|
|
1988
|
+
this.v5u_1 = this.u5u_1.y5t_1.i5u();
|
|
1989
|
+
var tmp0_subject = this.v5u_1;
|
|
1986
1990
|
if (tmp0_subject === 4) {
|
|
1987
1991
|
this.g9_1 = 3;
|
|
1988
1992
|
continue $sm;
|
|
@@ -1991,7 +1995,7 @@
|
|
|
1991
1995
|
this.g9_1 = 4;
|
|
1992
1996
|
continue $sm;
|
|
1993
1997
|
} else {
|
|
1994
|
-
this.
|
|
1998
|
+
this.u5u_1.y5t_1.y5s('Expected end of the object or comma');
|
|
1995
1999
|
}
|
|
1996
2000
|
}
|
|
1997
2001
|
|
|
@@ -2000,16 +2004,16 @@
|
|
|
2000
2004
|
this.g9_1 = 1;
|
|
2001
2005
|
continue $sm;
|
|
2002
2006
|
case 4:
|
|
2003
|
-
if (this.
|
|
2004
|
-
this.
|
|
2005
|
-
} else if (this.
|
|
2006
|
-
if (!this.
|
|
2007
|
-
invalidTrailingComma(this.
|
|
2007
|
+
if (this.v5u_1 === 6) {
|
|
2008
|
+
this.u5u_1.y5t_1.c5u(7);
|
|
2009
|
+
} else if (this.v5u_1 === 4) {
|
|
2010
|
+
if (!this.u5u_1.a5u_1) {
|
|
2011
|
+
invalidTrailingComma(this.u5u_1.y5t_1);
|
|
2008
2012
|
}
|
|
2009
|
-
this.
|
|
2013
|
+
this.u5u_1.y5t_1.c5u(7);
|
|
2010
2014
|
}
|
|
2011
2015
|
|
|
2012
|
-
return new JsonObject(this.
|
|
2016
|
+
return new JsonObject(this.w5u_1);
|
|
2013
2017
|
case 5:
|
|
2014
2018
|
throw this.j9_1;
|
|
2015
2019
|
}
|
|
@@ -2025,13 +2029,13 @@
|
|
|
2025
2029
|
while (true);
|
|
2026
2030
|
};
|
|
2027
2031
|
function JsonTreeReader(configuration, lexer) {
|
|
2028
|
-
this.
|
|
2029
|
-
this.
|
|
2030
|
-
this.
|
|
2031
|
-
this.
|
|
2032
|
+
this.y5t_1 = lexer;
|
|
2033
|
+
this.z5t_1 = configuration.r5p_1;
|
|
2034
|
+
this.a5u_1 = configuration.d5q_1;
|
|
2035
|
+
this.b5u_1 = 0;
|
|
2032
2036
|
}
|
|
2033
|
-
protoOf(JsonTreeReader).
|
|
2034
|
-
var token = this.
|
|
2037
|
+
protoOf(JsonTreeReader).h5u = function () {
|
|
2038
|
+
var token = this.y5t_1.d5u();
|
|
2035
2039
|
var tmp;
|
|
2036
2040
|
if (token === 1) {
|
|
2037
2041
|
tmp = readValue(this, true);
|
|
@@ -2039,19 +2043,19 @@
|
|
|
2039
2043
|
tmp = readValue(this, false);
|
|
2040
2044
|
} else if (token === 6) {
|
|
2041
2045
|
var tmp_0;
|
|
2042
|
-
this.
|
|
2043
|
-
if (this.
|
|
2046
|
+
this.b5u_1 = this.b5u_1 + 1 | 0;
|
|
2047
|
+
if (this.b5u_1 === 200) {
|
|
2044
2048
|
tmp_0 = readDeepRecursive(this);
|
|
2045
2049
|
} else {
|
|
2046
2050
|
tmp_0 = readObject(this);
|
|
2047
2051
|
}
|
|
2048
2052
|
var result = tmp_0;
|
|
2049
|
-
this.
|
|
2053
|
+
this.b5u_1 = this.b5u_1 - 1 | 0;
|
|
2050
2054
|
tmp = result;
|
|
2051
2055
|
} else if (token === 8) {
|
|
2052
2056
|
tmp = readArray(this);
|
|
2053
2057
|
} else {
|
|
2054
|
-
this.
|
|
2058
|
+
this.y5t_1.y5s('Cannot read Json element because of unexpected ' + tokenDescription(token));
|
|
2055
2059
|
}
|
|
2056
2060
|
return tmp;
|
|
2057
2061
|
};
|
|
@@ -2060,9 +2064,9 @@
|
|
|
2060
2064
|
while (_iterator__ex2g4s.q()) {
|
|
2061
2065
|
var annotation = _iterator__ex2g4s.r();
|
|
2062
2066
|
if (annotation instanceof JsonClassDiscriminator)
|
|
2063
|
-
return annotation.
|
|
2067
|
+
return annotation.g5q_1;
|
|
2064
2068
|
}
|
|
2065
|
-
return json.
|
|
2069
|
+
return json.e5o_1.y5p_1;
|
|
2066
2070
|
}
|
|
2067
2071
|
function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
|
|
2068
2072
|
if (!(serializer instanceof SealedClassSerializer))
|
|
@@ -2098,11 +2102,11 @@
|
|
|
2098
2102
|
function Key() {
|
|
2099
2103
|
}
|
|
2100
2104
|
function DescriptorSchemaCache() {
|
|
2101
|
-
this.
|
|
2105
|
+
this.z5s_1 = createMapForCache(16);
|
|
2102
2106
|
}
|
|
2103
|
-
protoOf(DescriptorSchemaCache).
|
|
2107
|
+
protoOf(DescriptorSchemaCache).n5v = function (descriptor, key, value) {
|
|
2104
2108
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2105
|
-
var this_0 = this.
|
|
2109
|
+
var this_0 = this.z5s_1;
|
|
2106
2110
|
var value_0 = this_0.k2(descriptor);
|
|
2107
2111
|
var tmp;
|
|
2108
2112
|
if (value_0 == null) {
|
|
@@ -2112,14 +2116,14 @@
|
|
|
2112
2116
|
} else {
|
|
2113
2117
|
tmp = value_0;
|
|
2114
2118
|
}
|
|
2115
|
-
var
|
|
2116
|
-
var
|
|
2119
|
+
var tmp0 = tmp;
|
|
2120
|
+
var tmp2 = key instanceof Key ? key : THROW_CCE();
|
|
2117
2121
|
// Inline function 'kotlin.collections.set' call
|
|
2118
2122
|
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
2119
|
-
|
|
2123
|
+
tmp0.n2(tmp2, value_1);
|
|
2120
2124
|
};
|
|
2121
|
-
protoOf(DescriptorSchemaCache).
|
|
2122
|
-
var tmp0_safe_receiver = this.
|
|
2125
|
+
protoOf(DescriptorSchemaCache).a5t = function (descriptor, key, defaultValue) {
|
|
2126
|
+
var tmp0_safe_receiver = this.o5v(descriptor, key);
|
|
2123
2127
|
if (tmp0_safe_receiver == null)
|
|
2124
2128
|
null;
|
|
2125
2129
|
else {
|
|
@@ -2127,11 +2131,11 @@
|
|
|
2127
2131
|
return tmp0_safe_receiver;
|
|
2128
2132
|
}
|
|
2129
2133
|
var value = defaultValue();
|
|
2130
|
-
this.
|
|
2134
|
+
this.n5v(descriptor, key, value);
|
|
2131
2135
|
return value;
|
|
2132
2136
|
};
|
|
2133
|
-
protoOf(DescriptorSchemaCache).
|
|
2134
|
-
var tmp0_safe_receiver = this.
|
|
2137
|
+
protoOf(DescriptorSchemaCache).o5v = function (descriptor, key) {
|
|
2138
|
+
var tmp0_safe_receiver = this.z5s_1.k2(descriptor);
|
|
2135
2139
|
var tmp;
|
|
2136
2140
|
if (tmp0_safe_receiver == null) {
|
|
2137
2141
|
tmp = null;
|
|
@@ -2142,13 +2146,13 @@
|
|
|
2142
2146
|
return !(tmp_0 == null) ? tmp_0 : null;
|
|
2143
2147
|
};
|
|
2144
2148
|
function DiscriminatorHolder(discriminatorToSkip) {
|
|
2145
|
-
this.
|
|
2149
|
+
this.p5v_1 = discriminatorToSkip;
|
|
2146
2150
|
}
|
|
2147
2151
|
function trySkip($this, _this__u8e3s4, unknownKey) {
|
|
2148
2152
|
if (_this__u8e3s4 == null)
|
|
2149
2153
|
return false;
|
|
2150
|
-
if (_this__u8e3s4.
|
|
2151
|
-
_this__u8e3s4.
|
|
2154
|
+
if (_this__u8e3s4.p5v_1 === unknownKey) {
|
|
2155
|
+
_this__u8e3s4.p5v_1 = null;
|
|
2152
2156
|
return true;
|
|
2153
2157
|
}
|
|
2154
2158
|
return false;
|
|
@@ -2158,55 +2162,55 @@
|
|
|
2158
2162
|
}
|
|
2159
2163
|
}
|
|
2160
2164
|
function checkLeadingComma($this) {
|
|
2161
|
-
if ($this.
|
|
2162
|
-
$this.
|
|
2165
|
+
if ($this.l5o_1.d5u() === 4) {
|
|
2166
|
+
$this.l5o_1.y5s('Unexpected leading comma');
|
|
2163
2167
|
}
|
|
2164
2168
|
}
|
|
2165
2169
|
function decodeMapIndex($this) {
|
|
2166
2170
|
var hasComma = false;
|
|
2167
|
-
var decodingKey = !(($this.
|
|
2171
|
+
var decodingKey = !(($this.n5o_1 % 2 | 0) === 0);
|
|
2168
2172
|
if (decodingKey) {
|
|
2169
|
-
if (!($this.
|
|
2170
|
-
hasComma = $this.
|
|
2173
|
+
if (!($this.n5o_1 === -1)) {
|
|
2174
|
+
hasComma = $this.l5o_1.r5v();
|
|
2171
2175
|
}
|
|
2172
2176
|
} else {
|
|
2173
|
-
$this.
|
|
2177
|
+
$this.l5o_1.q5v(_Char___init__impl__6a9atx(58));
|
|
2174
2178
|
}
|
|
2175
2179
|
var tmp;
|
|
2176
|
-
if ($this.
|
|
2180
|
+
if ($this.l5o_1.e5u()) {
|
|
2177
2181
|
if (decodingKey) {
|
|
2178
|
-
if ($this.
|
|
2179
|
-
var tmp0 = $this.
|
|
2182
|
+
if ($this.n5o_1 === -1) {
|
|
2183
|
+
var tmp0 = $this.l5o_1;
|
|
2180
2184
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
2181
2185
|
var condition = !hasComma;
|
|
2182
|
-
var position = tmp0.
|
|
2186
|
+
var position = tmp0.r5o_1;
|
|
2183
2187
|
if (!condition) {
|
|
2184
2188
|
var tmp$ret$0 = 'Unexpected leading comma';
|
|
2185
|
-
tmp0.
|
|
2189
|
+
tmp0.y5s(tmp$ret$0, position);
|
|
2186
2190
|
}
|
|
2187
2191
|
} else {
|
|
2188
|
-
var
|
|
2192
|
+
var tmp0_0 = $this.l5o_1;
|
|
2189
2193
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
2190
2194
|
var condition_0 = hasComma;
|
|
2191
|
-
var position_0 =
|
|
2195
|
+
var position_0 = tmp0_0.r5o_1;
|
|
2192
2196
|
if (!condition_0) {
|
|
2193
2197
|
var tmp$ret$2 = 'Expected comma after the key-value pair';
|
|
2194
|
-
|
|
2198
|
+
tmp0_0.y5s(tmp$ret$2, position_0);
|
|
2195
2199
|
}
|
|
2196
2200
|
}
|
|
2197
2201
|
}
|
|
2198
|
-
$this.
|
|
2199
|
-
tmp = $this.
|
|
2202
|
+
$this.n5o_1 = $this.n5o_1 + 1 | 0;
|
|
2203
|
+
tmp = $this.n5o_1;
|
|
2200
2204
|
} else {
|
|
2201
|
-
if (hasComma && !$this.
|
|
2202
|
-
invalidTrailingComma($this.
|
|
2205
|
+
if (hasComma && !$this.j5o_1.e5o_1.d5q_1) {
|
|
2206
|
+
invalidTrailingComma($this.l5o_1);
|
|
2203
2207
|
}
|
|
2204
2208
|
tmp = -1;
|
|
2205
2209
|
}
|
|
2206
2210
|
return tmp;
|
|
2207
2211
|
}
|
|
2208
2212
|
function coerceInputValue($this, descriptor, index) {
|
|
2209
|
-
var tmp0 = $this.
|
|
2213
|
+
var tmp0 = $this.j5o_1;
|
|
2210
2214
|
var tmp$ret$1;
|
|
2211
2215
|
$l$block_2: {
|
|
2212
2216
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
@@ -2214,7 +2218,7 @@
|
|
|
2214
2218
|
var elementDescriptor = descriptor.w20(index);
|
|
2215
2219
|
var tmp;
|
|
2216
2220
|
if (isOptional && !elementDescriptor.l20()) {
|
|
2217
|
-
tmp = $this.
|
|
2221
|
+
tmp = $this.l5o_1.s5v(true);
|
|
2218
2222
|
} else {
|
|
2219
2223
|
tmp = false;
|
|
2220
2224
|
}
|
|
@@ -2225,7 +2229,7 @@
|
|
|
2225
2229
|
if (equals(elementDescriptor.p20(), ENUM_getInstance())) {
|
|
2226
2230
|
var tmp_0;
|
|
2227
2231
|
if (elementDescriptor.l20()) {
|
|
2228
|
-
tmp_0 = $this.
|
|
2232
|
+
tmp_0 = $this.l5o_1.s5v(false);
|
|
2229
2233
|
} else {
|
|
2230
2234
|
tmp_0 = false;
|
|
2231
2235
|
}
|
|
@@ -2233,7 +2237,7 @@
|
|
|
2233
2237
|
tmp$ret$1 = false;
|
|
2234
2238
|
break $l$block_2;
|
|
2235
2239
|
}
|
|
2236
|
-
var tmp0_elvis_lhs = $this.
|
|
2240
|
+
var tmp0_elvis_lhs = $this.l5o_1.t5v($this.p5o_1.r5p_1);
|
|
2237
2241
|
var tmp_1;
|
|
2238
2242
|
if (tmp0_elvis_lhs == null) {
|
|
2239
2243
|
tmp$ret$1 = false;
|
|
@@ -2243,9 +2247,9 @@
|
|
|
2243
2247
|
}
|
|
2244
2248
|
var enumValue = tmp_1;
|
|
2245
2249
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
2246
|
-
var coerceToNull = !tmp0.
|
|
2250
|
+
var coerceToNull = !tmp0.e5o_1.u5p_1 && elementDescriptor.l20();
|
|
2247
2251
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
2248
|
-
$this.
|
|
2252
|
+
$this.l5o_1.f5u();
|
|
2249
2253
|
tmp$ret$1 = true;
|
|
2250
2254
|
break $l$block_2;
|
|
2251
2255
|
}
|
|
@@ -2255,24 +2259,24 @@
|
|
|
2255
2259
|
return tmp$ret$1;
|
|
2256
2260
|
}
|
|
2257
2261
|
function decodeObjectIndex($this, descriptor) {
|
|
2258
|
-
var hasComma = $this.
|
|
2259
|
-
while ($this.
|
|
2262
|
+
var hasComma = $this.l5o_1.r5v();
|
|
2263
|
+
while ($this.l5o_1.e5u()) {
|
|
2260
2264
|
hasComma = false;
|
|
2261
2265
|
var key = decodeStringKey($this);
|
|
2262
|
-
$this.
|
|
2263
|
-
var index = getJsonNameIndex(descriptor, $this.
|
|
2266
|
+
$this.l5o_1.q5v(_Char___init__impl__6a9atx(58));
|
|
2267
|
+
var index = getJsonNameIndex(descriptor, $this.j5o_1, key);
|
|
2264
2268
|
var tmp;
|
|
2265
2269
|
if (!(index === -3)) {
|
|
2266
2270
|
var tmp_0;
|
|
2267
|
-
if ($this.
|
|
2268
|
-
hasComma = $this.
|
|
2271
|
+
if ($this.p5o_1.w5p_1 && coerceInputValue($this, descriptor, index)) {
|
|
2272
|
+
hasComma = $this.l5o_1.r5v();
|
|
2269
2273
|
tmp_0 = false;
|
|
2270
2274
|
} else {
|
|
2271
|
-
var tmp0_safe_receiver = $this.
|
|
2275
|
+
var tmp0_safe_receiver = $this.q5o_1;
|
|
2272
2276
|
if (tmp0_safe_receiver == null)
|
|
2273
2277
|
null;
|
|
2274
2278
|
else {
|
|
2275
|
-
tmp0_safe_receiver.
|
|
2279
|
+
tmp0_safe_receiver.v5s(index);
|
|
2276
2280
|
}
|
|
2277
2281
|
return index;
|
|
2278
2282
|
}
|
|
@@ -2285,34 +2289,34 @@
|
|
|
2285
2289
|
hasComma = handleUnknown($this, descriptor, key);
|
|
2286
2290
|
}
|
|
2287
2291
|
}
|
|
2288
|
-
if (hasComma && !$this.
|
|
2289
|
-
invalidTrailingComma($this.
|
|
2292
|
+
if (hasComma && !$this.j5o_1.e5o_1.d5q_1) {
|
|
2293
|
+
invalidTrailingComma($this.l5o_1);
|
|
2290
2294
|
}
|
|
2291
|
-
var tmp1_safe_receiver = $this.
|
|
2292
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2295
|
+
var tmp1_safe_receiver = $this.q5o_1;
|
|
2296
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w5s();
|
|
2293
2297
|
return tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2294
2298
|
}
|
|
2295
2299
|
function handleUnknown($this, descriptor, key) {
|
|
2296
|
-
if (ignoreUnknownKeys(descriptor, $this.
|
|
2297
|
-
$this.
|
|
2300
|
+
if (ignoreUnknownKeys(descriptor, $this.j5o_1) || trySkip($this, $this.o5o_1, key)) {
|
|
2301
|
+
$this.l5o_1.v5v($this.p5o_1.r5p_1);
|
|
2298
2302
|
} else {
|
|
2299
|
-
$this.
|
|
2300
|
-
$this.
|
|
2303
|
+
$this.l5o_1.s5o_1.k5t();
|
|
2304
|
+
$this.l5o_1.u5v(key);
|
|
2301
2305
|
}
|
|
2302
|
-
return $this.
|
|
2306
|
+
return $this.l5o_1.r5v();
|
|
2303
2307
|
}
|
|
2304
2308
|
function decodeListIndex($this) {
|
|
2305
|
-
var hasComma = $this.
|
|
2309
|
+
var hasComma = $this.l5o_1.r5v();
|
|
2306
2310
|
var tmp;
|
|
2307
|
-
if ($this.
|
|
2308
|
-
if (!($this.
|
|
2309
|
-
$this.
|
|
2311
|
+
if ($this.l5o_1.e5u()) {
|
|
2312
|
+
if (!($this.n5o_1 === -1) && !hasComma) {
|
|
2313
|
+
$this.l5o_1.y5s('Expected end of the array or comma');
|
|
2310
2314
|
}
|
|
2311
|
-
$this.
|
|
2312
|
-
tmp = $this.
|
|
2315
|
+
$this.n5o_1 = $this.n5o_1 + 1 | 0;
|
|
2316
|
+
tmp = $this.n5o_1;
|
|
2313
2317
|
} else {
|
|
2314
|
-
if (hasComma && !$this.
|
|
2315
|
-
invalidTrailingComma($this.
|
|
2318
|
+
if (hasComma && !$this.j5o_1.e5o_1.d5q_1) {
|
|
2319
|
+
invalidTrailingComma($this.l5o_1, 'array');
|
|
2316
2320
|
}
|
|
2317
2321
|
tmp = -1;
|
|
2318
2322
|
}
|
|
@@ -2320,32 +2324,32 @@
|
|
|
2320
2324
|
}
|
|
2321
2325
|
function decodeStringKey($this) {
|
|
2322
2326
|
var tmp;
|
|
2323
|
-
if ($this.
|
|
2324
|
-
tmp = $this.
|
|
2327
|
+
if ($this.p5o_1.r5p_1) {
|
|
2328
|
+
tmp = $this.l5o_1.x5v();
|
|
2325
2329
|
} else {
|
|
2326
|
-
tmp = $this.
|
|
2330
|
+
tmp = $this.l5o_1.w5v();
|
|
2327
2331
|
}
|
|
2328
2332
|
return tmp;
|
|
2329
2333
|
}
|
|
2330
2334
|
function StreamingJsonDecoder(json, mode, lexer, descriptor, discriminatorHolder) {
|
|
2331
2335
|
AbstractDecoder.call(this);
|
|
2332
|
-
this.
|
|
2333
|
-
this.
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2338
|
-
this.
|
|
2339
|
-
this.
|
|
2340
|
-
}
|
|
2341
|
-
protoOf(StreamingJsonDecoder).
|
|
2342
|
-
return this.
|
|
2336
|
+
this.j5o_1 = json;
|
|
2337
|
+
this.k5o_1 = mode;
|
|
2338
|
+
this.l5o_1 = lexer;
|
|
2339
|
+
this.m5o_1 = this.j5o_1.a23();
|
|
2340
|
+
this.n5o_1 = -1;
|
|
2341
|
+
this.o5o_1 = discriminatorHolder;
|
|
2342
|
+
this.p5o_1 = this.j5o_1.e5o_1;
|
|
2343
|
+
this.q5o_1 = this.p5o_1.u5p_1 ? null : new JsonElementMarker(descriptor);
|
|
2344
|
+
}
|
|
2345
|
+
protoOf(StreamingJsonDecoder).h5q = function () {
|
|
2346
|
+
return this.j5o_1;
|
|
2343
2347
|
};
|
|
2344
2348
|
protoOf(StreamingJsonDecoder).a23 = function () {
|
|
2345
|
-
return this.
|
|
2349
|
+
return this.m5o_1;
|
|
2346
2350
|
};
|
|
2347
|
-
protoOf(StreamingJsonDecoder).
|
|
2348
|
-
return (new JsonTreeReader(this.
|
|
2351
|
+
protoOf(StreamingJsonDecoder).i5q = function () {
|
|
2352
|
+
return (new JsonTreeReader(this.j5o_1.e5o_1, this.l5o_1)).h5u();
|
|
2349
2353
|
};
|
|
2350
2354
|
protoOf(StreamingJsonDecoder).k22 = function (deserializer) {
|
|
2351
2355
|
try {
|
|
@@ -2353,37 +2357,37 @@
|
|
|
2353
2357
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
2354
2358
|
tmp = true;
|
|
2355
2359
|
} else {
|
|
2356
|
-
tmp = this.
|
|
2360
|
+
tmp = this.j5o_1.e5o_1.x5p_1;
|
|
2357
2361
|
}
|
|
2358
2362
|
if (tmp) {
|
|
2359
2363
|
return deserializer.a1z(this);
|
|
2360
2364
|
}
|
|
2361
|
-
var discriminator = classDiscriminator(deserializer.y1y(), this.
|
|
2362
|
-
var tmp0_elvis_lhs = this.
|
|
2365
|
+
var discriminator = classDiscriminator(deserializer.y1y(), this.j5o_1);
|
|
2366
|
+
var tmp0_elvis_lhs = this.l5o_1.y5v(discriminator, this.p5o_1.r5p_1);
|
|
2363
2367
|
var tmp_0;
|
|
2364
2368
|
if (tmp0_elvis_lhs == null) {
|
|
2365
|
-
var
|
|
2369
|
+
var tmp2 = isInterface(deserializer, DeserializationStrategy) ? deserializer : THROW_CCE();
|
|
2366
2370
|
var tmp$ret$0;
|
|
2367
2371
|
$l$block: {
|
|
2368
2372
|
// Inline function 'kotlinx.serialization.json.internal.decodeSerializableValuePolymorphic' call
|
|
2369
2373
|
var tmp_1;
|
|
2370
|
-
if (!(
|
|
2374
|
+
if (!(tmp2 instanceof AbstractPolymorphicSerializer)) {
|
|
2371
2375
|
tmp_1 = true;
|
|
2372
2376
|
} else {
|
|
2373
|
-
tmp_1 = this.
|
|
2377
|
+
tmp_1 = this.h5q().e5o_1.x5p_1;
|
|
2374
2378
|
}
|
|
2375
2379
|
if (tmp_1) {
|
|
2376
|
-
tmp$ret$0 =
|
|
2380
|
+
tmp$ret$0 = tmp2.a1z(this);
|
|
2377
2381
|
break $l$block;
|
|
2378
2382
|
}
|
|
2379
|
-
var discriminator_0 = classDiscriminator(
|
|
2380
|
-
var tmp0 = this.
|
|
2383
|
+
var discriminator_0 = classDiscriminator(tmp2.y1y(), this.h5q());
|
|
2384
|
+
var tmp0 = this.i5q();
|
|
2381
2385
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2382
|
-
var serialName =
|
|
2386
|
+
var serialName = tmp2.y1y().z1z();
|
|
2383
2387
|
if (!(tmp0 instanceof JsonObject)) {
|
|
2384
2388
|
var tmp_2 = getKClass(JsonObject).kb();
|
|
2385
2389
|
var tmp_3 = getKClassFromExpression(tmp0).kb();
|
|
2386
|
-
var tmp$ret$1 = this.
|
|
2390
|
+
var tmp$ret$1 = this.l5o_1.s5o_1.l5t();
|
|
2387
2391
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString(tmp0));
|
|
2388
2392
|
}
|
|
2389
2393
|
var jsonTree = tmp0;
|
|
@@ -2392,7 +2396,7 @@
|
|
|
2392
2396
|
var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
|
|
2393
2397
|
var tmp_4;
|
|
2394
2398
|
try {
|
|
2395
|
-
tmp_4 = findPolymorphicSerializer(
|
|
2399
|
+
tmp_4 = findPolymorphicSerializer(tmp2, this, type);
|
|
2396
2400
|
} catch ($p) {
|
|
2397
2401
|
var tmp_5;
|
|
2398
2402
|
if ($p instanceof SerializationException) {
|
|
@@ -2404,7 +2408,7 @@
|
|
|
2404
2408
|
}
|
|
2405
2409
|
var tmp_6 = tmp_4;
|
|
2406
2410
|
var actualSerializer = isInterface(tmp_6, DeserializationStrategy) ? tmp_6 : THROW_CCE();
|
|
2407
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
2411
|
+
tmp$ret$0 = readPolymorphicJson(this.h5q(), discriminator_0, jsonTree, actualSerializer);
|
|
2408
2412
|
}
|
|
2409
2413
|
return tmp$ret$0;
|
|
2410
2414
|
} else {
|
|
@@ -2420,7 +2424,7 @@
|
|
|
2420
2424
|
var it_0 = $p;
|
|
2421
2425
|
var message = removeSuffix(substringBefore(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10)), '.');
|
|
2422
2426
|
var hint = substringAfter(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10), '');
|
|
2423
|
-
this.
|
|
2427
|
+
this.l5o_1.y5s(message, VOID, hint);
|
|
2424
2428
|
} else {
|
|
2425
2429
|
throw $p;
|
|
2426
2430
|
}
|
|
@@ -2428,37 +2432,37 @@
|
|
|
2428
2432
|
}
|
|
2429
2433
|
var tmp_9 = tmp_7;
|
|
2430
2434
|
var actualSerializer_0 = isInterface(tmp_9, DeserializationStrategy) ? tmp_9 : THROW_CCE();
|
|
2431
|
-
this.
|
|
2435
|
+
this.o5o_1 = new DiscriminatorHolder(discriminator);
|
|
2432
2436
|
return actualSerializer_0.a1z(this);
|
|
2433
2437
|
} catch ($p) {
|
|
2434
2438
|
if ($p instanceof MissingFieldException) {
|
|
2435
2439
|
var e = $p;
|
|
2436
2440
|
if (contains(ensureNotNull(e.message), 'at path'))
|
|
2437
2441
|
throw e;
|
|
2438
|
-
throw new MissingFieldException(e.f20_1, plus(e.message, ' at path: ') + this.
|
|
2442
|
+
throw new MissingFieldException(e.f20_1, plus(e.message, ' at path: ') + this.l5o_1.s5o_1.l5t(), e);
|
|
2439
2443
|
} else {
|
|
2440
2444
|
throw $p;
|
|
2441
2445
|
}
|
|
2442
2446
|
}
|
|
2443
2447
|
};
|
|
2444
2448
|
protoOf(StreamingJsonDecoder).l22 = function (descriptor) {
|
|
2445
|
-
var newMode = switchMode(this.
|
|
2446
|
-
this.
|
|
2447
|
-
this.
|
|
2449
|
+
var newMode = switchMode(this.j5o_1, descriptor);
|
|
2450
|
+
this.l5o_1.s5o_1.g5t(descriptor);
|
|
2451
|
+
this.l5o_1.q5v(newMode.b5w_1);
|
|
2448
2452
|
checkLeadingComma(this);
|
|
2449
2453
|
var tmp;
|
|
2450
2454
|
switch (newMode.r2_1) {
|
|
2451
2455
|
case 1:
|
|
2452
2456
|
case 2:
|
|
2453
2457
|
case 3:
|
|
2454
|
-
tmp = new StreamingJsonDecoder(this.
|
|
2458
|
+
tmp = new StreamingJsonDecoder(this.j5o_1, newMode, this.l5o_1, descriptor, this.o5o_1);
|
|
2455
2459
|
break;
|
|
2456
2460
|
default:
|
|
2457
2461
|
var tmp_0;
|
|
2458
|
-
if (this.
|
|
2462
|
+
if (this.k5o_1.equals(newMode) && this.j5o_1.e5o_1.u5p_1) {
|
|
2459
2463
|
tmp_0 = this;
|
|
2460
2464
|
} else {
|
|
2461
|
-
tmp_0 = new StreamingJsonDecoder(this.
|
|
2465
|
+
tmp_0 = new StreamingJsonDecoder(this.j5o_1, newMode, this.l5o_1, descriptor, this.o5o_1);
|
|
2462
2466
|
}
|
|
2463
2467
|
|
|
2464
2468
|
tmp = tmp_0;
|
|
@@ -2467,21 +2471,21 @@
|
|
|
2467
2471
|
return tmp;
|
|
2468
2472
|
};
|
|
2469
2473
|
protoOf(StreamingJsonDecoder).m22 = function (descriptor) {
|
|
2470
|
-
if (descriptor.r20() === 0 && ignoreUnknownKeys(descriptor, this.
|
|
2474
|
+
if (descriptor.r20() === 0 && ignoreUnknownKeys(descriptor, this.j5o_1)) {
|
|
2471
2475
|
skipLeftoverElements(this, descriptor);
|
|
2472
2476
|
}
|
|
2473
|
-
if (this.
|
|
2474
|
-
invalidTrailingComma(this.
|
|
2477
|
+
if (this.l5o_1.r5v() && !this.j5o_1.e5o_1.d5q_1) {
|
|
2478
|
+
invalidTrailingComma(this.l5o_1, '');
|
|
2475
2479
|
}
|
|
2476
|
-
this.
|
|
2477
|
-
this.
|
|
2480
|
+
this.l5o_1.q5v(this.k5o_1.c5w_1);
|
|
2481
|
+
this.l5o_1.s5o_1.k5t();
|
|
2478
2482
|
};
|
|
2479
2483
|
protoOf(StreamingJsonDecoder).w21 = function () {
|
|
2480
2484
|
var tmp;
|
|
2481
|
-
var tmp0_safe_receiver = this.
|
|
2482
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2485
|
+
var tmp0_safe_receiver = this.q5o_1;
|
|
2486
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u5s_1;
|
|
2483
2487
|
if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
|
|
2484
|
-
tmp = !this.
|
|
2488
|
+
tmp = !this.l5o_1.d5w();
|
|
2485
2489
|
} else {
|
|
2486
2490
|
tmp = false;
|
|
2487
2491
|
}
|
|
@@ -2491,19 +2495,19 @@
|
|
|
2491
2495
|
return null;
|
|
2492
2496
|
};
|
|
2493
2497
|
protoOf(StreamingJsonDecoder).x22 = function (descriptor, index, deserializer, previousValue) {
|
|
2494
|
-
var isMapKey = this.
|
|
2498
|
+
var isMapKey = this.k5o_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
|
|
2495
2499
|
if (isMapKey) {
|
|
2496
|
-
this.
|
|
2500
|
+
this.l5o_1.s5o_1.j5t();
|
|
2497
2501
|
}
|
|
2498
2502
|
var value = protoOf(AbstractDecoder).x22.call(this, descriptor, index, deserializer, previousValue);
|
|
2499
2503
|
if (isMapKey) {
|
|
2500
|
-
this.
|
|
2504
|
+
this.l5o_1.s5o_1.i5t(value);
|
|
2501
2505
|
}
|
|
2502
2506
|
return value;
|
|
2503
2507
|
};
|
|
2504
2508
|
protoOf(StreamingJsonDecoder).c23 = function (descriptor) {
|
|
2505
2509
|
var index;
|
|
2506
|
-
switch (this.
|
|
2510
|
+
switch (this.k5o_1.r2_1) {
|
|
2507
2511
|
case 0:
|
|
2508
2512
|
index = decodeObjectIndex(this, descriptor);
|
|
2509
2513
|
break;
|
|
@@ -2514,44 +2518,44 @@
|
|
|
2514
2518
|
index = decodeListIndex(this);
|
|
2515
2519
|
break;
|
|
2516
2520
|
}
|
|
2517
|
-
if (!this.
|
|
2518
|
-
this.
|
|
2521
|
+
if (!this.k5o_1.equals(WriteMode_MAP_getInstance())) {
|
|
2522
|
+
this.l5o_1.s5o_1.h5t(index);
|
|
2519
2523
|
}
|
|
2520
2524
|
return index;
|
|
2521
2525
|
};
|
|
2522
2526
|
protoOf(StreamingJsonDecoder).y21 = function () {
|
|
2523
|
-
return this.
|
|
2527
|
+
return this.l5o_1.e5w();
|
|
2524
2528
|
};
|
|
2525
2529
|
protoOf(StreamingJsonDecoder).z21 = function () {
|
|
2526
|
-
var value = this.
|
|
2530
|
+
var value = this.l5o_1.f5w();
|
|
2527
2531
|
if (!value.equals(toLong(value.p3()))) {
|
|
2528
|
-
this.
|
|
2532
|
+
this.l5o_1.y5s("Failed to parse byte for input '" + value.toString() + "'");
|
|
2529
2533
|
}
|
|
2530
2534
|
return value.p3();
|
|
2531
2535
|
};
|
|
2532
2536
|
protoOf(StreamingJsonDecoder).a22 = function () {
|
|
2533
|
-
var value = this.
|
|
2537
|
+
var value = this.l5o_1.f5w();
|
|
2534
2538
|
if (!value.equals(toLong(value.q3()))) {
|
|
2535
|
-
this.
|
|
2539
|
+
this.l5o_1.y5s("Failed to parse short for input '" + value.toString() + "'");
|
|
2536
2540
|
}
|
|
2537
2541
|
return value.q3();
|
|
2538
2542
|
};
|
|
2539
2543
|
protoOf(StreamingJsonDecoder).b22 = function () {
|
|
2540
|
-
var value = this.
|
|
2544
|
+
var value = this.l5o_1.f5w();
|
|
2541
2545
|
if (!value.equals(toLong(value.j1()))) {
|
|
2542
|
-
this.
|
|
2546
|
+
this.l5o_1.y5s("Failed to parse int for input '" + value.toString() + "'");
|
|
2543
2547
|
}
|
|
2544
2548
|
return value.j1();
|
|
2545
2549
|
};
|
|
2546
2550
|
protoOf(StreamingJsonDecoder).c22 = function () {
|
|
2547
|
-
return this.
|
|
2551
|
+
return this.l5o_1.f5w();
|
|
2548
2552
|
};
|
|
2549
2553
|
protoOf(StreamingJsonDecoder).d22 = function () {
|
|
2550
|
-
var tmp0 = this.
|
|
2554
|
+
var tmp0 = this.l5o_1;
|
|
2551
2555
|
var tmp$ret$4;
|
|
2552
2556
|
$l$block: {
|
|
2553
2557
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2554
|
-
var input = tmp0.
|
|
2558
|
+
var input = tmp0.g5u();
|
|
2555
2559
|
try {
|
|
2556
2560
|
// Inline function 'kotlin.text.toFloat' call
|
|
2557
2561
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -2561,82 +2565,82 @@
|
|
|
2561
2565
|
} catch ($p) {
|
|
2562
2566
|
if ($p instanceof IllegalArgumentException) {
|
|
2563
2567
|
var e = $p;
|
|
2564
|
-
tmp0.
|
|
2568
|
+
tmp0.y5s("Failed to parse type '" + 'float' + "' for input '" + input + "'");
|
|
2565
2569
|
} else {
|
|
2566
2570
|
throw $p;
|
|
2567
2571
|
}
|
|
2568
2572
|
}
|
|
2569
2573
|
}
|
|
2570
2574
|
var result = tmp$ret$4;
|
|
2571
|
-
var specialFp = this.
|
|
2575
|
+
var specialFp = this.j5o_1.e5o_1.z5p_1;
|
|
2572
2576
|
if (specialFp || isFinite(result))
|
|
2573
2577
|
return result;
|
|
2574
|
-
throwInvalidFloatingPointDecoded(this.
|
|
2578
|
+
throwInvalidFloatingPointDecoded(this.l5o_1, result);
|
|
2575
2579
|
};
|
|
2576
2580
|
protoOf(StreamingJsonDecoder).e22 = function () {
|
|
2577
|
-
var tmp0 = this.
|
|
2581
|
+
var tmp0 = this.l5o_1;
|
|
2578
2582
|
var tmp$ret$1;
|
|
2579
2583
|
$l$block: {
|
|
2580
2584
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2581
|
-
var input = tmp0.
|
|
2585
|
+
var input = tmp0.g5u();
|
|
2582
2586
|
try {
|
|
2583
2587
|
tmp$ret$1 = toDouble(input);
|
|
2584
2588
|
break $l$block;
|
|
2585
2589
|
} catch ($p) {
|
|
2586
2590
|
if ($p instanceof IllegalArgumentException) {
|
|
2587
2591
|
var e = $p;
|
|
2588
|
-
tmp0.
|
|
2592
|
+
tmp0.y5s("Failed to parse type '" + 'double' + "' for input '" + input + "'");
|
|
2589
2593
|
} else {
|
|
2590
2594
|
throw $p;
|
|
2591
2595
|
}
|
|
2592
2596
|
}
|
|
2593
2597
|
}
|
|
2594
2598
|
var result = tmp$ret$1;
|
|
2595
|
-
var specialFp = this.
|
|
2599
|
+
var specialFp = this.j5o_1.e5o_1.z5p_1;
|
|
2596
2600
|
if (specialFp || isFinite_0(result))
|
|
2597
2601
|
return result;
|
|
2598
|
-
throwInvalidFloatingPointDecoded(this.
|
|
2602
|
+
throwInvalidFloatingPointDecoded(this.l5o_1, result);
|
|
2599
2603
|
};
|
|
2600
2604
|
protoOf(StreamingJsonDecoder).f22 = function () {
|
|
2601
|
-
var string = this.
|
|
2605
|
+
var string = this.l5o_1.g5u();
|
|
2602
2606
|
if (!(string.length === 1)) {
|
|
2603
|
-
this.
|
|
2607
|
+
this.l5o_1.y5s("Expected single char, but got '" + string + "'");
|
|
2604
2608
|
}
|
|
2605
|
-
return
|
|
2609
|
+
return charCodeAt(string, 0);
|
|
2606
2610
|
};
|
|
2607
2611
|
protoOf(StreamingJsonDecoder).g22 = function () {
|
|
2608
2612
|
var tmp;
|
|
2609
|
-
if (this.
|
|
2610
|
-
tmp = this.
|
|
2613
|
+
if (this.p5o_1.r5p_1) {
|
|
2614
|
+
tmp = this.l5o_1.x5v();
|
|
2611
2615
|
} else {
|
|
2612
|
-
tmp = this.
|
|
2616
|
+
tmp = this.l5o_1.f5u();
|
|
2613
2617
|
}
|
|
2614
2618
|
return tmp;
|
|
2615
2619
|
};
|
|
2616
2620
|
protoOf(StreamingJsonDecoder).i22 = function (descriptor) {
|
|
2617
|
-
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.
|
|
2621
|
+
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.l5o_1, this.j5o_1) : protoOf(AbstractDecoder).i22.call(this, descriptor);
|
|
2618
2622
|
};
|
|
2619
2623
|
protoOf(StreamingJsonDecoder).h22 = function (enumDescriptor) {
|
|
2620
|
-
return getJsonNameIndexOrThrow(enumDescriptor, this.
|
|
2624
|
+
return getJsonNameIndexOrThrow(enumDescriptor, this.j5o_1, this.g22(), ' at path ' + this.l5o_1.s5o_1.l5t());
|
|
2621
2625
|
};
|
|
2622
2626
|
function JsonDecoderForUnsignedTypes(lexer, json) {
|
|
2623
2627
|
AbstractDecoder.call(this);
|
|
2624
|
-
this.
|
|
2625
|
-
this.
|
|
2628
|
+
this.g5w_1 = lexer;
|
|
2629
|
+
this.h5w_1 = json.a23();
|
|
2626
2630
|
}
|
|
2627
2631
|
protoOf(JsonDecoderForUnsignedTypes).a23 = function () {
|
|
2628
|
-
return this.
|
|
2632
|
+
return this.h5w_1;
|
|
2629
2633
|
};
|
|
2630
2634
|
protoOf(JsonDecoderForUnsignedTypes).c23 = function (descriptor) {
|
|
2631
2635
|
var message = 'unsupported';
|
|
2632
2636
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2633
2637
|
};
|
|
2634
2638
|
protoOf(JsonDecoderForUnsignedTypes).b22 = function () {
|
|
2635
|
-
var tmp0 = this.
|
|
2639
|
+
var tmp0 = this.g5w_1;
|
|
2636
2640
|
var tmp$ret$2;
|
|
2637
2641
|
$l$block: {
|
|
2638
2642
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2639
|
-
var input = tmp0.
|
|
2643
|
+
var input = tmp0.g5u();
|
|
2640
2644
|
try {
|
|
2641
2645
|
// Inline function 'kotlin.UInt.toInt' call
|
|
2642
2646
|
var this_0 = toUInt(input);
|
|
@@ -2645,7 +2649,7 @@
|
|
|
2645
2649
|
} catch ($p) {
|
|
2646
2650
|
if ($p instanceof IllegalArgumentException) {
|
|
2647
2651
|
var e = $p;
|
|
2648
|
-
tmp0.
|
|
2652
|
+
tmp0.y5s("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
|
|
2649
2653
|
} else {
|
|
2650
2654
|
throw $p;
|
|
2651
2655
|
}
|
|
@@ -2654,11 +2658,11 @@
|
|
|
2654
2658
|
return tmp$ret$2;
|
|
2655
2659
|
};
|
|
2656
2660
|
protoOf(JsonDecoderForUnsignedTypes).c22 = function () {
|
|
2657
|
-
var tmp0 = this.
|
|
2661
|
+
var tmp0 = this.g5w_1;
|
|
2658
2662
|
var tmp$ret$2;
|
|
2659
2663
|
$l$block: {
|
|
2660
2664
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2661
|
-
var input = tmp0.
|
|
2665
|
+
var input = tmp0.g5u();
|
|
2662
2666
|
try {
|
|
2663
2667
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2664
2668
|
var this_0 = toULong(input);
|
|
@@ -2667,7 +2671,7 @@
|
|
|
2667
2671
|
} catch ($p) {
|
|
2668
2672
|
if ($p instanceof IllegalArgumentException) {
|
|
2669
2673
|
var e = $p;
|
|
2670
|
-
tmp0.
|
|
2674
|
+
tmp0.y5s("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
|
|
2671
2675
|
} else {
|
|
2672
2676
|
throw $p;
|
|
2673
2677
|
}
|
|
@@ -2676,11 +2680,11 @@
|
|
|
2676
2680
|
return tmp$ret$2;
|
|
2677
2681
|
};
|
|
2678
2682
|
protoOf(JsonDecoderForUnsignedTypes).z21 = function () {
|
|
2679
|
-
var tmp0 = this.
|
|
2683
|
+
var tmp0 = this.g5w_1;
|
|
2680
2684
|
var tmp$ret$2;
|
|
2681
2685
|
$l$block: {
|
|
2682
2686
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2683
|
-
var input = tmp0.
|
|
2687
|
+
var input = tmp0.g5u();
|
|
2684
2688
|
try {
|
|
2685
2689
|
// Inline function 'kotlin.UByte.toByte' call
|
|
2686
2690
|
var this_0 = toUByte(input);
|
|
@@ -2689,7 +2693,7 @@
|
|
|
2689
2693
|
} catch ($p) {
|
|
2690
2694
|
if ($p instanceof IllegalArgumentException) {
|
|
2691
2695
|
var e = $p;
|
|
2692
|
-
tmp0.
|
|
2696
|
+
tmp0.y5s("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
|
|
2693
2697
|
} else {
|
|
2694
2698
|
throw $p;
|
|
2695
2699
|
}
|
|
@@ -2698,11 +2702,11 @@
|
|
|
2698
2702
|
return tmp$ret$2;
|
|
2699
2703
|
};
|
|
2700
2704
|
protoOf(JsonDecoderForUnsignedTypes).a22 = function () {
|
|
2701
|
-
var tmp0 = this.
|
|
2705
|
+
var tmp0 = this.g5w_1;
|
|
2702
2706
|
var tmp$ret$2;
|
|
2703
2707
|
$l$block: {
|
|
2704
2708
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2705
|
-
var input = tmp0.
|
|
2709
|
+
var input = tmp0.g5u();
|
|
2706
2710
|
try {
|
|
2707
2711
|
// Inline function 'kotlin.UShort.toShort' call
|
|
2708
2712
|
var this_0 = toUShort(input);
|
|
@@ -2711,7 +2715,7 @@
|
|
|
2711
2715
|
} catch ($p) {
|
|
2712
2716
|
if ($p instanceof IllegalArgumentException) {
|
|
2713
2717
|
var e = $p;
|
|
2714
|
-
tmp0.
|
|
2718
|
+
tmp0.y5s("Failed to parse type '" + 'UShort' + "' for input '" + input + "'");
|
|
2715
2719
|
} else {
|
|
2716
2720
|
throw $p;
|
|
2717
2721
|
}
|
|
@@ -2732,53 +2736,53 @@
|
|
|
2732
2736
|
return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
|
|
2733
2737
|
}
|
|
2734
2738
|
function encodeTypeInfo($this, discriminator, serialName) {
|
|
2735
|
-
$this.
|
|
2739
|
+
$this.p5t_1.s5r();
|
|
2736
2740
|
$this.p23(discriminator);
|
|
2737
|
-
$this.
|
|
2738
|
-
$this.
|
|
2741
|
+
$this.p5t_1.v5r(_Char___init__impl__6a9atx(58));
|
|
2742
|
+
$this.p5t_1.u5r();
|
|
2739
2743
|
$this.p23(serialName);
|
|
2740
2744
|
}
|
|
2741
2745
|
function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
|
|
2742
2746
|
AbstractEncoder.call(this);
|
|
2743
|
-
this.
|
|
2744
|
-
this.
|
|
2745
|
-
this.
|
|
2746
|
-
this.
|
|
2747
|
-
this.
|
|
2748
|
-
this.
|
|
2749
|
-
this.
|
|
2750
|
-
this.v5t_1 = null;
|
|
2747
|
+
this.p5t_1 = composer;
|
|
2748
|
+
this.q5t_1 = json;
|
|
2749
|
+
this.r5t_1 = mode;
|
|
2750
|
+
this.s5t_1 = modeReuseCache;
|
|
2751
|
+
this.t5t_1 = this.q5t_1.a23();
|
|
2752
|
+
this.u5t_1 = this.q5t_1.e5o_1;
|
|
2753
|
+
this.v5t_1 = false;
|
|
2751
2754
|
this.w5t_1 = null;
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2755
|
+
this.x5t_1 = null;
|
|
2756
|
+
var i = this.r5t_1.r2_1;
|
|
2757
|
+
if (!(this.s5t_1 == null)) {
|
|
2758
|
+
if (!(this.s5t_1[i] === null) || !(this.s5t_1[i] === this)) {
|
|
2759
|
+
this.s5t_1[i] = this;
|
|
2756
2760
|
}
|
|
2757
2761
|
}
|
|
2758
2762
|
}
|
|
2759
|
-
protoOf(StreamingJsonEncoder).
|
|
2760
|
-
return this.
|
|
2763
|
+
protoOf(StreamingJsonEncoder).h5q = function () {
|
|
2764
|
+
return this.q5t_1;
|
|
2761
2765
|
};
|
|
2762
2766
|
protoOf(StreamingJsonEncoder).a23 = function () {
|
|
2763
|
-
return this.
|
|
2767
|
+
return this.t5t_1;
|
|
2764
2768
|
};
|
|
2765
2769
|
protoOf(StreamingJsonEncoder).i24 = function (descriptor, index) {
|
|
2766
|
-
return this.
|
|
2770
|
+
return this.u5t_1.p5p_1;
|
|
2767
2771
|
};
|
|
2768
2772
|
protoOf(StreamingJsonEncoder).d24 = function (serializer, value) {
|
|
2769
2773
|
$l$block: {
|
|
2770
2774
|
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
2771
|
-
if (this.
|
|
2775
|
+
if (this.h5q().e5o_1.x5p_1) {
|
|
2772
2776
|
serializer.z1y(this, value);
|
|
2773
2777
|
break $l$block;
|
|
2774
2778
|
}
|
|
2775
2779
|
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
2776
2780
|
var tmp;
|
|
2777
2781
|
if (isPolymorphicSerializer) {
|
|
2778
|
-
tmp = !this.
|
|
2782
|
+
tmp = !this.h5q().e5o_1.f5q_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
2779
2783
|
} else {
|
|
2780
2784
|
var tmp_0;
|
|
2781
|
-
switch (this.
|
|
2785
|
+
switch (this.h5q().e5o_1.f5q_1.r2_1) {
|
|
2782
2786
|
case 0:
|
|
2783
2787
|
case 2:
|
|
2784
2788
|
tmp_0 = false;
|
|
@@ -2796,7 +2800,7 @@
|
|
|
2796
2800
|
tmp = tmp_0;
|
|
2797
2801
|
}
|
|
2798
2802
|
var needDiscriminator = tmp;
|
|
2799
|
-
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.y1y(), this.
|
|
2803
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.y1y(), this.h5q()) : null;
|
|
2800
2804
|
var tmp_1;
|
|
2801
2805
|
if (isPolymorphicSerializer) {
|
|
2802
2806
|
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
@@ -2821,93 +2825,93 @@
|
|
|
2821
2825
|
var actualSerializer = tmp_1;
|
|
2822
2826
|
if (!(baseClassDiscriminator == null)) {
|
|
2823
2827
|
var serialName = actualSerializer.y1y().z1z();
|
|
2824
|
-
this.
|
|
2825
|
-
this.
|
|
2828
|
+
this.w5t_1 = baseClassDiscriminator;
|
|
2829
|
+
this.x5t_1 = serialName;
|
|
2826
2830
|
}
|
|
2827
2831
|
actualSerializer.z1y(this, value);
|
|
2828
2832
|
}
|
|
2829
2833
|
};
|
|
2830
2834
|
protoOf(StreamingJsonEncoder).l22 = function (descriptor) {
|
|
2831
|
-
var newMode = switchMode(this.
|
|
2832
|
-
if (!(newMode.
|
|
2833
|
-
this.
|
|
2834
|
-
this.
|
|
2835
|
+
var newMode = switchMode(this.q5t_1, descriptor);
|
|
2836
|
+
if (!(newMode.b5w_1 === _Char___init__impl__6a9atx(0))) {
|
|
2837
|
+
this.p5t_1.v5r(newMode.b5w_1);
|
|
2838
|
+
this.p5t_1.q5r();
|
|
2835
2839
|
}
|
|
2836
|
-
var discriminator = this.
|
|
2840
|
+
var discriminator = this.w5t_1;
|
|
2837
2841
|
if (!(discriminator == null)) {
|
|
2838
|
-
var tmp0_elvis_lhs = this.
|
|
2842
|
+
var tmp0_elvis_lhs = this.x5t_1;
|
|
2839
2843
|
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.z1z() : tmp0_elvis_lhs);
|
|
2840
|
-
this.v5t_1 = null;
|
|
2841
2844
|
this.w5t_1 = null;
|
|
2845
|
+
this.x5t_1 = null;
|
|
2842
2846
|
}
|
|
2843
|
-
if (this.
|
|
2847
|
+
if (this.r5t_1.equals(newMode)) {
|
|
2844
2848
|
return this;
|
|
2845
2849
|
}
|
|
2846
|
-
var tmp1_safe_receiver = this.
|
|
2850
|
+
var tmp1_safe_receiver = this.s5t_1;
|
|
2847
2851
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[newMode.r2_1];
|
|
2848
|
-
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.
|
|
2852
|
+
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.p5t_1, this.q5t_1, newMode, this.s5t_1) : tmp2_elvis_lhs;
|
|
2849
2853
|
};
|
|
2850
2854
|
protoOf(StreamingJsonEncoder).m22 = function (descriptor) {
|
|
2851
|
-
if (!(this.
|
|
2852
|
-
this.
|
|
2853
|
-
this.
|
|
2854
|
-
this.
|
|
2855
|
+
if (!(this.r5t_1.c5w_1 === _Char___init__impl__6a9atx(0))) {
|
|
2856
|
+
this.p5t_1.r5r();
|
|
2857
|
+
this.p5t_1.t5r();
|
|
2858
|
+
this.p5t_1.v5r(this.r5t_1.c5w_1);
|
|
2855
2859
|
}
|
|
2856
2860
|
};
|
|
2857
2861
|
protoOf(StreamingJsonEncoder).e23 = function (descriptor, index) {
|
|
2858
|
-
switch (this.
|
|
2862
|
+
switch (this.r5t_1.r2_1) {
|
|
2859
2863
|
case 1:
|
|
2860
|
-
if (!this.
|
|
2861
|
-
this.
|
|
2864
|
+
if (!this.p5t_1.p5r_1) {
|
|
2865
|
+
this.p5t_1.v5r(_Char___init__impl__6a9atx(44));
|
|
2862
2866
|
}
|
|
2863
2867
|
|
|
2864
|
-
this.
|
|
2868
|
+
this.p5t_1.s5r();
|
|
2865
2869
|
break;
|
|
2866
2870
|
case 2:
|
|
2867
|
-
if (!this.
|
|
2871
|
+
if (!this.p5t_1.p5r_1) {
|
|
2868
2872
|
var tmp = this;
|
|
2869
2873
|
var tmp_0;
|
|
2870
2874
|
if ((index % 2 | 0) === 0) {
|
|
2871
|
-
this.
|
|
2872
|
-
this.
|
|
2875
|
+
this.p5t_1.v5r(_Char___init__impl__6a9atx(44));
|
|
2876
|
+
this.p5t_1.s5r();
|
|
2873
2877
|
tmp_0 = true;
|
|
2874
2878
|
} else {
|
|
2875
|
-
this.
|
|
2876
|
-
this.
|
|
2879
|
+
this.p5t_1.v5r(_Char___init__impl__6a9atx(58));
|
|
2880
|
+
this.p5t_1.u5r();
|
|
2877
2881
|
tmp_0 = false;
|
|
2878
2882
|
}
|
|
2879
|
-
tmp.
|
|
2883
|
+
tmp.v5t_1 = tmp_0;
|
|
2880
2884
|
} else {
|
|
2881
|
-
this.
|
|
2882
|
-
this.
|
|
2885
|
+
this.v5t_1 = true;
|
|
2886
|
+
this.p5t_1.s5r();
|
|
2883
2887
|
}
|
|
2884
2888
|
|
|
2885
2889
|
break;
|
|
2886
2890
|
case 3:
|
|
2887
2891
|
if (index === 0)
|
|
2888
|
-
this.
|
|
2892
|
+
this.v5t_1 = true;
|
|
2889
2893
|
if (index === 1) {
|
|
2890
|
-
this.
|
|
2891
|
-
this.
|
|
2892
|
-
this.
|
|
2894
|
+
this.p5t_1.v5r(_Char___init__impl__6a9atx(44));
|
|
2895
|
+
this.p5t_1.u5r();
|
|
2896
|
+
this.v5t_1 = false;
|
|
2893
2897
|
}
|
|
2894
2898
|
|
|
2895
2899
|
break;
|
|
2896
2900
|
default:
|
|
2897
|
-
if (!this.
|
|
2898
|
-
this.
|
|
2901
|
+
if (!this.p5t_1.p5r_1) {
|
|
2902
|
+
this.p5t_1.v5r(_Char___init__impl__6a9atx(44));
|
|
2899
2903
|
}
|
|
2900
2904
|
|
|
2901
|
-
this.
|
|
2902
|
-
this.p23(getJsonElementName(descriptor, this.
|
|
2903
|
-
this.
|
|
2904
|
-
this.
|
|
2905
|
+
this.p5t_1.s5r();
|
|
2906
|
+
this.p23(getJsonElementName(descriptor, this.q5t_1, index));
|
|
2907
|
+
this.p5t_1.v5r(_Char___init__impl__6a9atx(58));
|
|
2908
|
+
this.p5t_1.u5r();
|
|
2905
2909
|
break;
|
|
2906
2910
|
}
|
|
2907
2911
|
return true;
|
|
2908
2912
|
};
|
|
2909
2913
|
protoOf(StreamingJsonEncoder).e24 = function (descriptor, index, serializer, value) {
|
|
2910
|
-
if (!(value == null) || this.
|
|
2914
|
+
if (!(value == null) || this.u5t_1.u5p_1) {
|
|
2911
2915
|
protoOf(AbstractEncoder).e24.call(this, descriptor, index, serializer, value);
|
|
2912
2916
|
}
|
|
2913
2917
|
};
|
|
@@ -2916,32 +2920,32 @@
|
|
|
2916
2920
|
if (get_isUnsignedNumber(descriptor)) {
|
|
2917
2921
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2918
2922
|
var tmp_0;
|
|
2919
|
-
var tmp_1 = this.
|
|
2923
|
+
var tmp_1 = this.p5t_1;
|
|
2920
2924
|
if (tmp_1 instanceof ComposerForUnsignedNumbers) {
|
|
2921
|
-
tmp_0 = this.
|
|
2925
|
+
tmp_0 = this.p5t_1;
|
|
2922
2926
|
} else {
|
|
2923
|
-
var
|
|
2924
|
-
var p1 = this.
|
|
2925
|
-
tmp_0 = new ComposerForUnsignedNumbers(
|
|
2927
|
+
var tmp0 = this.p5t_1.o5r_1;
|
|
2928
|
+
var p1 = this.v5t_1;
|
|
2929
|
+
tmp_0 = new ComposerForUnsignedNumbers(tmp0, p1);
|
|
2926
2930
|
}
|
|
2927
2931
|
var tmp$ret$1 = tmp_0;
|
|
2928
|
-
tmp = new StreamingJsonEncoder(tmp$ret$1, this.
|
|
2932
|
+
tmp = new StreamingJsonEncoder(tmp$ret$1, this.q5t_1, this.r5t_1, null);
|
|
2929
2933
|
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
2930
2934
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2931
2935
|
var tmp_2;
|
|
2932
|
-
var tmp_3 = this.
|
|
2936
|
+
var tmp_3 = this.p5t_1;
|
|
2933
2937
|
if (tmp_3 instanceof ComposerForUnquotedLiterals) {
|
|
2934
|
-
tmp_2 = this.
|
|
2938
|
+
tmp_2 = this.p5t_1;
|
|
2935
2939
|
} else {
|
|
2936
|
-
var
|
|
2937
|
-
var p1_0 = this.
|
|
2938
|
-
tmp_2 = new ComposerForUnquotedLiterals(
|
|
2940
|
+
var tmp0_0 = this.p5t_1.o5r_1;
|
|
2941
|
+
var p1_0 = this.v5t_1;
|
|
2942
|
+
tmp_2 = new ComposerForUnquotedLiterals(tmp0_0, p1_0);
|
|
2939
2943
|
}
|
|
2940
2944
|
var tmp$ret$3 = tmp_2;
|
|
2941
|
-
tmp = new StreamingJsonEncoder(tmp$ret$3, this.
|
|
2942
|
-
} else if (!(this.
|
|
2945
|
+
tmp = new StreamingJsonEncoder(tmp$ret$3, this.q5t_1, this.r5t_1, null);
|
|
2946
|
+
} else if (!(this.w5t_1 == null)) {
|
|
2943
2947
|
// Inline function 'kotlin.apply' call
|
|
2944
|
-
this.
|
|
2948
|
+
this.x5t_1 = descriptor.z1z();
|
|
2945
2949
|
tmp = this;
|
|
2946
2950
|
} else {
|
|
2947
2951
|
tmp = protoOf(AbstractEncoder).r23.call(this, descriptor);
|
|
@@ -2949,68 +2953,68 @@
|
|
|
2949
2953
|
return tmp;
|
|
2950
2954
|
};
|
|
2951
2955
|
protoOf(StreamingJsonEncoder).g23 = function () {
|
|
2952
|
-
this.
|
|
2956
|
+
this.p5t_1.x5r('null');
|
|
2953
2957
|
};
|
|
2954
2958
|
protoOf(StreamingJsonEncoder).h23 = function (value) {
|
|
2955
|
-
if (this.
|
|
2959
|
+
if (this.v5t_1) {
|
|
2956
2960
|
this.p23(value.toString());
|
|
2957
2961
|
} else {
|
|
2958
|
-
this.
|
|
2962
|
+
this.p5t_1.g5s(value);
|
|
2959
2963
|
}
|
|
2960
2964
|
};
|
|
2961
2965
|
protoOf(StreamingJsonEncoder).i23 = function (value) {
|
|
2962
|
-
if (this.
|
|
2966
|
+
if (this.v5t_1) {
|
|
2963
2967
|
this.p23(value.toString());
|
|
2964
2968
|
} else {
|
|
2965
|
-
this.
|
|
2969
|
+
this.p5t_1.b5s(value);
|
|
2966
2970
|
}
|
|
2967
2971
|
};
|
|
2968
2972
|
protoOf(StreamingJsonEncoder).j23 = function (value) {
|
|
2969
|
-
if (this.
|
|
2973
|
+
if (this.v5t_1) {
|
|
2970
2974
|
this.p23(value.toString());
|
|
2971
2975
|
} else {
|
|
2972
|
-
this.
|
|
2976
|
+
this.p5t_1.d5s(value);
|
|
2973
2977
|
}
|
|
2974
2978
|
};
|
|
2975
2979
|
protoOf(StreamingJsonEncoder).k23 = function (value) {
|
|
2976
|
-
if (this.
|
|
2980
|
+
if (this.v5t_1) {
|
|
2977
2981
|
this.p23(value.toString());
|
|
2978
2982
|
} else {
|
|
2979
|
-
this.
|
|
2983
|
+
this.p5t_1.e5s(value);
|
|
2980
2984
|
}
|
|
2981
2985
|
};
|
|
2982
2986
|
protoOf(StreamingJsonEncoder).l23 = function (value) {
|
|
2983
|
-
if (this.
|
|
2987
|
+
if (this.v5t_1) {
|
|
2984
2988
|
this.p23(value.toString());
|
|
2985
2989
|
} else {
|
|
2986
|
-
this.
|
|
2990
|
+
this.p5t_1.f5s(value);
|
|
2987
2991
|
}
|
|
2988
2992
|
};
|
|
2989
2993
|
protoOf(StreamingJsonEncoder).m23 = function (value) {
|
|
2990
|
-
if (this.
|
|
2994
|
+
if (this.v5t_1) {
|
|
2991
2995
|
this.p23(value.toString());
|
|
2992
2996
|
} else {
|
|
2993
|
-
this.
|
|
2997
|
+
this.p5t_1.z5r(value);
|
|
2994
2998
|
}
|
|
2995
|
-
if (!this.
|
|
2996
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
2999
|
+
if (!this.u5t_1.z5p_1 && !isFinite(value)) {
|
|
3000
|
+
throw InvalidFloatingPointEncoded(value, toString(this.p5t_1.o5r_1));
|
|
2997
3001
|
}
|
|
2998
3002
|
};
|
|
2999
3003
|
protoOf(StreamingJsonEncoder).n23 = function (value) {
|
|
3000
|
-
if (this.
|
|
3004
|
+
if (this.v5t_1) {
|
|
3001
3005
|
this.p23(value.toString());
|
|
3002
3006
|
} else {
|
|
3003
|
-
this.
|
|
3007
|
+
this.p5t_1.a5s(value);
|
|
3004
3008
|
}
|
|
3005
|
-
if (!this.
|
|
3006
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
3009
|
+
if (!this.u5t_1.z5p_1 && !isFinite_0(value)) {
|
|
3010
|
+
throw InvalidFloatingPointEncoded(value, toString(this.p5t_1.o5r_1));
|
|
3007
3011
|
}
|
|
3008
3012
|
};
|
|
3009
3013
|
protoOf(StreamingJsonEncoder).o23 = function (value) {
|
|
3010
3014
|
this.p23(toString_1(value));
|
|
3011
3015
|
};
|
|
3012
3016
|
protoOf(StreamingJsonEncoder).p23 = function (value) {
|
|
3013
|
-
return this.
|
|
3017
|
+
return this.p5t_1.h5s(value);
|
|
3014
3018
|
};
|
|
3015
3019
|
protoOf(StreamingJsonEncoder).q23 = function (enumDescriptor, index) {
|
|
3016
3020
|
this.p23(enumDescriptor.t20(index));
|
|
@@ -3065,7 +3069,7 @@
|
|
|
3065
3069
|
var i = inductionVariable;
|
|
3066
3070
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3067
3071
|
// Inline function 'kotlin.code' call
|
|
3068
|
-
var this_0 =
|
|
3072
|
+
var this_0 = charCodeAt(value, i);
|
|
3069
3073
|
var c = Char__toInt_impl_vasixd(this_0);
|
|
3070
3074
|
if (c < get_ESCAPE_STRINGS().length && !(get_ESCAPE_STRINGS()[c] == null)) {
|
|
3071
3075
|
_this__u8e3s4.ad(value, lastPos, i);
|
|
@@ -3184,42 +3188,42 @@
|
|
|
3184
3188
|
}
|
|
3185
3189
|
function unparsedPrimitive($this, literal, primitive, tag) {
|
|
3186
3190
|
var type = startsWith(primitive, 'i') ? 'an ' + primitive : 'a ' + primitive;
|
|
3187
|
-
throw JsonDecodingException_0(-1, "Failed to parse literal '" + literal.toString() + "' as " + type + ' value at element: ' + $this.
|
|
3191
|
+
throw JsonDecodingException_0(-1, "Failed to parse literal '" + literal.toString() + "' as " + type + ' value at element: ' + $this.o5w(tag), toString($this.p5w()));
|
|
3188
3192
|
}
|
|
3189
3193
|
function AbstractJsonTreeDecoder(json, value, polymorphicDiscriminator) {
|
|
3190
3194
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
3191
3195
|
NamedValueDecoder.call(this);
|
|
3192
|
-
this.
|
|
3193
|
-
this.
|
|
3194
|
-
this.
|
|
3195
|
-
this.
|
|
3196
|
+
this.k5w_1 = json;
|
|
3197
|
+
this.l5w_1 = value;
|
|
3198
|
+
this.m5w_1 = polymorphicDiscriminator;
|
|
3199
|
+
this.n5w_1 = this.h5q().e5o_1;
|
|
3196
3200
|
}
|
|
3197
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3198
|
-
return this.
|
|
3201
|
+
protoOf(AbstractJsonTreeDecoder).h5q = function () {
|
|
3202
|
+
return this.k5w_1;
|
|
3199
3203
|
};
|
|
3200
3204
|
protoOf(AbstractJsonTreeDecoder).z = function () {
|
|
3201
|
-
return this.
|
|
3205
|
+
return this.l5w_1;
|
|
3202
3206
|
};
|
|
3203
3207
|
protoOf(AbstractJsonTreeDecoder).a23 = function () {
|
|
3204
|
-
return this.
|
|
3208
|
+
return this.h5q().a23();
|
|
3205
3209
|
};
|
|
3206
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3210
|
+
protoOf(AbstractJsonTreeDecoder).p5w = function () {
|
|
3207
3211
|
var tmp0_safe_receiver = this.s2g();
|
|
3208
3212
|
var tmp;
|
|
3209
3213
|
if (tmp0_safe_receiver == null) {
|
|
3210
3214
|
tmp = null;
|
|
3211
3215
|
} else {
|
|
3212
3216
|
// Inline function 'kotlin.let' call
|
|
3213
|
-
tmp = this.
|
|
3217
|
+
tmp = this.q5w(tmp0_safe_receiver);
|
|
3214
3218
|
}
|
|
3215
3219
|
var tmp1_elvis_lhs = tmp;
|
|
3216
3220
|
return tmp1_elvis_lhs == null ? this.z() : tmp1_elvis_lhs;
|
|
3217
3221
|
};
|
|
3218
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3222
|
+
protoOf(AbstractJsonTreeDecoder).o5w = function (currentTag) {
|
|
3219
3223
|
return this.u2g() + ('.' + currentTag);
|
|
3220
3224
|
};
|
|
3221
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3222
|
-
return this.
|
|
3225
|
+
protoOf(AbstractJsonTreeDecoder).i5q = function () {
|
|
3226
|
+
return this.p5w();
|
|
3223
3227
|
};
|
|
3224
3228
|
protoOf(AbstractJsonTreeDecoder).k22 = function (deserializer) {
|
|
3225
3229
|
var tmp$ret$0;
|
|
@@ -3229,14 +3233,14 @@
|
|
|
3229
3233
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
3230
3234
|
tmp = true;
|
|
3231
3235
|
} else {
|
|
3232
|
-
tmp = this.
|
|
3236
|
+
tmp = this.h5q().e5o_1.x5p_1;
|
|
3233
3237
|
}
|
|
3234
3238
|
if (tmp) {
|
|
3235
3239
|
tmp$ret$0 = deserializer.a1z(this);
|
|
3236
3240
|
break $l$block;
|
|
3237
3241
|
}
|
|
3238
|
-
var discriminator = classDiscriminator(deserializer.y1y(), this.
|
|
3239
|
-
var tmp0 = this.
|
|
3242
|
+
var discriminator = classDiscriminator(deserializer.y1y(), this.h5q());
|
|
3243
|
+
var tmp0 = this.i5q();
|
|
3240
3244
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3241
3245
|
var serialName = deserializer.y1y().z1z();
|
|
3242
3246
|
if (!(tmp0 instanceof JsonObject)) {
|
|
@@ -3263,7 +3267,7 @@
|
|
|
3263
3267
|
}
|
|
3264
3268
|
var tmp_4 = tmp_2;
|
|
3265
3269
|
var actualSerializer = isInterface(tmp_4, DeserializationStrategy) ? tmp_4 : THROW_CCE();
|
|
3266
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
3270
|
+
tmp$ret$0 = readPolymorphicJson(this.h5q(), discriminator, jsonTree, actualSerializer);
|
|
3267
3271
|
}
|
|
3268
3272
|
return tmp$ret$0;
|
|
3269
3273
|
};
|
|
@@ -3271,7 +3275,7 @@
|
|
|
3271
3275
|
return childName;
|
|
3272
3276
|
};
|
|
3273
3277
|
protoOf(AbstractJsonTreeDecoder).l22 = function (descriptor) {
|
|
3274
|
-
var currentObject = this.
|
|
3278
|
+
var currentObject = this.p5w();
|
|
3275
3279
|
var tmp0_subject = descriptor.p20();
|
|
3276
3280
|
var tmp;
|
|
3277
3281
|
var tmp_0;
|
|
@@ -3281,7 +3285,7 @@
|
|
|
3281
3285
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
3282
3286
|
}
|
|
3283
3287
|
if (tmp_0) {
|
|
3284
|
-
var tmp_1 = this.
|
|
3288
|
+
var tmp_1 = this.h5q();
|
|
3285
3289
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3286
3290
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3287
3291
|
var serialName = descriptor.z1z();
|
|
@@ -3295,7 +3299,7 @@
|
|
|
3295
3299
|
} else {
|
|
3296
3300
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
3297
3301
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
3298
|
-
var this_0 = this.
|
|
3302
|
+
var this_0 = this.h5q();
|
|
3299
3303
|
var keyDescriptor = carrierDescriptor(descriptor.w20(0), this_0.a23());
|
|
3300
3304
|
var keyKind = keyDescriptor.p20();
|
|
3301
3305
|
var tmp_4;
|
|
@@ -3306,7 +3310,7 @@
|
|
|
3306
3310
|
tmp_5 = equals(keyKind, ENUM_getInstance());
|
|
3307
3311
|
}
|
|
3308
3312
|
if (tmp_5) {
|
|
3309
|
-
var tmp_6 = this.
|
|
3313
|
+
var tmp_6 = this.h5q();
|
|
3310
3314
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3311
3315
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3312
3316
|
var serialName_0 = descriptor.z1z();
|
|
@@ -3318,8 +3322,8 @@
|
|
|
3318
3322
|
}
|
|
3319
3323
|
tmp_4 = new JsonTreeMapDecoder(tmp_6, currentObject);
|
|
3320
3324
|
} else {
|
|
3321
|
-
if (this_0.
|
|
3322
|
-
var tmp_9 = this.
|
|
3325
|
+
if (this_0.e5o_1.s5p_1) {
|
|
3326
|
+
var tmp_9 = this.h5q();
|
|
3323
3327
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3324
3328
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3325
3329
|
var serialName_1 = descriptor.z1z();
|
|
@@ -3336,7 +3340,7 @@
|
|
|
3336
3340
|
}
|
|
3337
3341
|
tmp = tmp_4;
|
|
3338
3342
|
} else {
|
|
3339
|
-
var tmp_12 = this.
|
|
3343
|
+
var tmp_12 = this.h5q();
|
|
3340
3344
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3341
3345
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3342
3346
|
var serialName_2 = descriptor.z1z();
|
|
@@ -3346,7 +3350,7 @@
|
|
|
3346
3350
|
var tmp$ret$12 = this.u2g();
|
|
3347
3351
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_13 + ', but had ' + tmp_14 + ' as the serialized body of ' + serialName_2 + ' at element: ' + tmp$ret$12, toString(currentObject));
|
|
3348
3352
|
}
|
|
3349
|
-
tmp = new JsonTreeDecoder(tmp_12, currentObject, this.
|
|
3353
|
+
tmp = new JsonTreeDecoder(tmp_12, currentObject, this.m5w_1);
|
|
3350
3354
|
}
|
|
3351
3355
|
}
|
|
3352
3356
|
return tmp;
|
|
@@ -3354,44 +3358,44 @@
|
|
|
3354
3358
|
protoOf(AbstractJsonTreeDecoder).m22 = function (descriptor) {
|
|
3355
3359
|
};
|
|
3356
3360
|
protoOf(AbstractJsonTreeDecoder).w21 = function () {
|
|
3357
|
-
var tmp = this.
|
|
3361
|
+
var tmp = this.p5w();
|
|
3358
3362
|
return !(tmp instanceof JsonNull);
|
|
3359
3363
|
};
|
|
3360
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3361
|
-
var tmp = this.
|
|
3364
|
+
protoOf(AbstractJsonTreeDecoder).r5w = function (tag, enumDescriptor) {
|
|
3365
|
+
var tmp = this.h5q();
|
|
3362
3366
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3363
|
-
var
|
|
3367
|
+
var tmp2 = this.q5w(tag);
|
|
3364
3368
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3365
3369
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3366
3370
|
var serialName = enumDescriptor.z1z();
|
|
3367
|
-
if (!(
|
|
3371
|
+
if (!(tmp2 instanceof JsonPrimitive)) {
|
|
3368
3372
|
var tmp_0 = getKClass(JsonPrimitive).kb();
|
|
3369
|
-
var tmp_1 = getKClassFromExpression(
|
|
3370
|
-
var tmp$ret$0 = this.
|
|
3371
|
-
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(
|
|
3373
|
+
var tmp_1 = getKClassFromExpression(tmp2).kb();
|
|
3374
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3375
|
+
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3372
3376
|
}
|
|
3373
|
-
return getJsonNameIndexOrThrow(enumDescriptor, tmp,
|
|
3377
|
+
return getJsonNameIndexOrThrow(enumDescriptor, tmp, tmp2.l5q());
|
|
3374
3378
|
};
|
|
3375
3379
|
protoOf(AbstractJsonTreeDecoder).g2h = function (tag, enumDescriptor) {
|
|
3376
|
-
return this.
|
|
3380
|
+
return this.r5w((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor);
|
|
3377
3381
|
};
|
|
3378
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3379
|
-
return !(this.
|
|
3382
|
+
protoOf(AbstractJsonTreeDecoder).s5w = function (tag) {
|
|
3383
|
+
return !(this.q5w(tag) === JsonNull_getInstance());
|
|
3380
3384
|
};
|
|
3381
3385
|
protoOf(AbstractJsonTreeDecoder).w2g = function (tag) {
|
|
3382
|
-
return this.
|
|
3386
|
+
return this.s5w((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3383
3387
|
};
|
|
3384
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3388
|
+
protoOf(AbstractJsonTreeDecoder).t5w = function (tag) {
|
|
3385
3389
|
var tmp$ret$4;
|
|
3386
3390
|
$l$block: {
|
|
3387
3391
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3388
3392
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3389
3393
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3390
|
-
var value = this.
|
|
3394
|
+
var value = this.q5w(tag);
|
|
3391
3395
|
if (!(value instanceof JsonPrimitive)) {
|
|
3392
3396
|
var tmp = getKClass(JsonPrimitive).kb();
|
|
3393
3397
|
var tmp_0 = getKClassFromExpression(value).kb();
|
|
3394
|
-
var tmp$ret$0 = this.
|
|
3398
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3395
3399
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'boolean' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3396
3400
|
}
|
|
3397
3401
|
var literal = value;
|
|
@@ -3417,19 +3421,19 @@
|
|
|
3417
3421
|
return tmp$ret$4;
|
|
3418
3422
|
};
|
|
3419
3423
|
protoOf(AbstractJsonTreeDecoder).x2g = function (tag) {
|
|
3420
|
-
return this.
|
|
3424
|
+
return this.t5w((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3421
3425
|
};
|
|
3422
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3426
|
+
protoOf(AbstractJsonTreeDecoder).u5w = function (tag) {
|
|
3423
3427
|
var tmp$ret$5;
|
|
3424
3428
|
$l$block: {
|
|
3425
3429
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3426
3430
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3427
3431
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3428
|
-
var value = this.
|
|
3432
|
+
var value = this.q5w(tag);
|
|
3429
3433
|
if (!(value instanceof JsonPrimitive)) {
|
|
3430
3434
|
var tmp = getKClass(JsonPrimitive).kb();
|
|
3431
3435
|
var tmp_0 = getKClassFromExpression(value).kb();
|
|
3432
|
-
var tmp$ret$0 = this.
|
|
3436
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3433
3437
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'byte' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3434
3438
|
}
|
|
3435
3439
|
var literal = value;
|
|
@@ -3464,19 +3468,19 @@
|
|
|
3464
3468
|
return tmp$ret$5;
|
|
3465
3469
|
};
|
|
3466
3470
|
protoOf(AbstractJsonTreeDecoder).y2g = function (tag) {
|
|
3467
|
-
return this.
|
|
3471
|
+
return this.u5w((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3468
3472
|
};
|
|
3469
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3473
|
+
protoOf(AbstractJsonTreeDecoder).v5w = function (tag) {
|
|
3470
3474
|
var tmp$ret$5;
|
|
3471
3475
|
$l$block: {
|
|
3472
3476
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3473
3477
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3474
3478
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3475
|
-
var value = this.
|
|
3479
|
+
var value = this.q5w(tag);
|
|
3476
3480
|
if (!(value instanceof JsonPrimitive)) {
|
|
3477
3481
|
var tmp = getKClass(JsonPrimitive).kb();
|
|
3478
3482
|
var tmp_0 = getKClassFromExpression(value).kb();
|
|
3479
|
-
var tmp$ret$0 = this.
|
|
3483
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3480
3484
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'short' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3481
3485
|
}
|
|
3482
3486
|
var literal = value;
|
|
@@ -3511,19 +3515,19 @@
|
|
|
3511
3515
|
return tmp$ret$5;
|
|
3512
3516
|
};
|
|
3513
3517
|
protoOf(AbstractJsonTreeDecoder).z2g = function (tag) {
|
|
3514
|
-
return this.
|
|
3518
|
+
return this.v5w((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3515
3519
|
};
|
|
3516
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3520
|
+
protoOf(AbstractJsonTreeDecoder).w5w = function (tag) {
|
|
3517
3521
|
var tmp$ret$5;
|
|
3518
3522
|
$l$block: {
|
|
3519
3523
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3520
3524
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3521
3525
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3522
|
-
var value = this.
|
|
3526
|
+
var value = this.q5w(tag);
|
|
3523
3527
|
if (!(value instanceof JsonPrimitive)) {
|
|
3524
3528
|
var tmp = getKClass(JsonPrimitive).kb();
|
|
3525
3529
|
var tmp_0 = getKClassFromExpression(value).kb();
|
|
3526
|
-
var tmp$ret$0 = this.
|
|
3530
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3527
3531
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'int' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3528
3532
|
}
|
|
3529
3533
|
var literal = value;
|
|
@@ -3558,19 +3562,19 @@
|
|
|
3558
3562
|
return tmp$ret$5;
|
|
3559
3563
|
};
|
|
3560
3564
|
protoOf(AbstractJsonTreeDecoder).a2h = function (tag) {
|
|
3561
|
-
return this.
|
|
3565
|
+
return this.w5w((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3562
3566
|
};
|
|
3563
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3567
|
+
protoOf(AbstractJsonTreeDecoder).x5w = function (tag) {
|
|
3564
3568
|
var tmp$ret$4;
|
|
3565
3569
|
$l$block: {
|
|
3566
3570
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3567
3571
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3568
3572
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3569
|
-
var value = this.
|
|
3573
|
+
var value = this.q5w(tag);
|
|
3570
3574
|
if (!(value instanceof JsonPrimitive)) {
|
|
3571
3575
|
var tmp = getKClass(JsonPrimitive).kb();
|
|
3572
3576
|
var tmp_0 = getKClassFromExpression(value).kb();
|
|
3573
|
-
var tmp$ret$0 = this.
|
|
3577
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3574
3578
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'long' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3575
3579
|
}
|
|
3576
3580
|
var literal = value;
|
|
@@ -3596,19 +3600,19 @@
|
|
|
3596
3600
|
return tmp$ret$4;
|
|
3597
3601
|
};
|
|
3598
3602
|
protoOf(AbstractJsonTreeDecoder).b2h = function (tag) {
|
|
3599
|
-
return this.
|
|
3603
|
+
return this.x5w((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3600
3604
|
};
|
|
3601
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3605
|
+
protoOf(AbstractJsonTreeDecoder).y5w = function (tag) {
|
|
3602
3606
|
var tmp$ret$4;
|
|
3603
3607
|
$l$block: {
|
|
3604
3608
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3605
3609
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3606
3610
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3607
|
-
var value = this.
|
|
3611
|
+
var value = this.q5w(tag);
|
|
3608
3612
|
if (!(value instanceof JsonPrimitive)) {
|
|
3609
3613
|
var tmp = getKClass(JsonPrimitive).kb();
|
|
3610
3614
|
var tmp_0 = getKClassFromExpression(value).kb();
|
|
3611
|
-
var tmp$ret$0 = this.
|
|
3615
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3612
3616
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'float' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3613
3617
|
}
|
|
3614
3618
|
var literal = value;
|
|
@@ -3632,25 +3636,25 @@
|
|
|
3632
3636
|
}
|
|
3633
3637
|
}
|
|
3634
3638
|
var result = tmp$ret$4;
|
|
3635
|
-
var specialFp = this.
|
|
3639
|
+
var specialFp = this.h5q().e5o_1.z5p_1;
|
|
3636
3640
|
if (specialFp || isFinite(result))
|
|
3637
3641
|
return result;
|
|
3638
|
-
throw InvalidFloatingPointDecoded(result, tag, toString(this.
|
|
3642
|
+
throw InvalidFloatingPointDecoded(result, tag, toString(this.p5w()));
|
|
3639
3643
|
};
|
|
3640
3644
|
protoOf(AbstractJsonTreeDecoder).c2h = function (tag) {
|
|
3641
|
-
return this.
|
|
3645
|
+
return this.y5w((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3642
3646
|
};
|
|
3643
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3647
|
+
protoOf(AbstractJsonTreeDecoder).z5w = function (tag) {
|
|
3644
3648
|
var tmp$ret$4;
|
|
3645
3649
|
$l$block: {
|
|
3646
3650
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3647
3651
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3648
3652
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3649
|
-
var value = this.
|
|
3653
|
+
var value = this.q5w(tag);
|
|
3650
3654
|
if (!(value instanceof JsonPrimitive)) {
|
|
3651
3655
|
var tmp = getKClass(JsonPrimitive).kb();
|
|
3652
3656
|
var tmp_0 = getKClassFromExpression(value).kb();
|
|
3653
|
-
var tmp$ret$0 = this.
|
|
3657
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3654
3658
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'double' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3655
3659
|
}
|
|
3656
3660
|
var literal = value;
|
|
@@ -3674,30 +3678,30 @@
|
|
|
3674
3678
|
}
|
|
3675
3679
|
}
|
|
3676
3680
|
var result = tmp$ret$4;
|
|
3677
|
-
var specialFp = this.
|
|
3681
|
+
var specialFp = this.h5q().e5o_1.z5p_1;
|
|
3678
3682
|
if (specialFp || isFinite_0(result))
|
|
3679
3683
|
return result;
|
|
3680
|
-
throw InvalidFloatingPointDecoded(result, tag, toString(this.
|
|
3684
|
+
throw InvalidFloatingPointDecoded(result, tag, toString(this.p5w()));
|
|
3681
3685
|
};
|
|
3682
3686
|
protoOf(AbstractJsonTreeDecoder).d2h = function (tag) {
|
|
3683
|
-
return this.
|
|
3687
|
+
return this.z5w((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3684
3688
|
};
|
|
3685
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3689
|
+
protoOf(AbstractJsonTreeDecoder).a5x = function (tag) {
|
|
3686
3690
|
var tmp$ret$4;
|
|
3687
3691
|
$l$block: {
|
|
3688
3692
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3689
3693
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3690
3694
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3691
|
-
var value = this.
|
|
3695
|
+
var value = this.q5w(tag);
|
|
3692
3696
|
if (!(value instanceof JsonPrimitive)) {
|
|
3693
3697
|
var tmp = getKClass(JsonPrimitive).kb();
|
|
3694
3698
|
var tmp_0 = getKClassFromExpression(value).kb();
|
|
3695
|
-
var tmp$ret$0 = this.
|
|
3699
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3696
3700
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'char' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3697
3701
|
}
|
|
3698
3702
|
var literal = value;
|
|
3699
3703
|
try {
|
|
3700
|
-
var tmp0_elvis_lhs = new Char(single(literal.
|
|
3704
|
+
var tmp0_elvis_lhs = new Char(single(literal.l5q()));
|
|
3701
3705
|
var tmp_1;
|
|
3702
3706
|
if (tmp0_elvis_lhs == null) {
|
|
3703
3707
|
unparsedPrimitive(this, literal, 'char', tag);
|
|
@@ -3718,80 +3722,80 @@
|
|
|
3718
3722
|
return tmp$ret$4;
|
|
3719
3723
|
};
|
|
3720
3724
|
protoOf(AbstractJsonTreeDecoder).e2h = function (tag) {
|
|
3721
|
-
return this.
|
|
3725
|
+
return this.a5x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3722
3726
|
};
|
|
3723
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3727
|
+
protoOf(AbstractJsonTreeDecoder).b5x = function (tag) {
|
|
3724
3728
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3725
3729
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3726
|
-
var value = this.
|
|
3730
|
+
var value = this.q5w(tag);
|
|
3727
3731
|
if (!(value instanceof JsonPrimitive)) {
|
|
3728
3732
|
var tmp = getKClass(JsonPrimitive).kb();
|
|
3729
3733
|
var tmp_0 = getKClassFromExpression(value).kb();
|
|
3730
|
-
var tmp$ret$0 = this.
|
|
3734
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3731
3735
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'string' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3732
3736
|
}
|
|
3733
3737
|
var value_0 = value;
|
|
3734
3738
|
if (!(value_0 instanceof JsonLiteral))
|
|
3735
|
-
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.
|
|
3736
|
-
if (!value_0.
|
|
3737
|
-
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.
|
|
3739
|
+
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.o5w(tag), toString(this.p5w()));
|
|
3740
|
+
if (!value_0.o5q_1 && !this.h5q().e5o_1.r5p_1) {
|
|
3741
|
+
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.o5w(tag) + ".\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString(this.p5w()));
|
|
3738
3742
|
}
|
|
3739
|
-
return value_0.
|
|
3743
|
+
return value_0.q5q_1;
|
|
3740
3744
|
};
|
|
3741
3745
|
protoOf(AbstractJsonTreeDecoder).f2h = function (tag) {
|
|
3742
|
-
return this.
|
|
3746
|
+
return this.b5x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3743
3747
|
};
|
|
3744
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3748
|
+
protoOf(AbstractJsonTreeDecoder).c5x = function (tag, inlineDescriptor) {
|
|
3745
3749
|
var tmp;
|
|
3746
3750
|
if (get_isUnsignedNumber(inlineDescriptor)) {
|
|
3747
|
-
var tmp_0 = this.
|
|
3751
|
+
var tmp_0 = this.h5q();
|
|
3748
3752
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3749
|
-
var
|
|
3753
|
+
var tmp2 = this.q5w(tag);
|
|
3750
3754
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3751
3755
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3752
3756
|
var serialName = inlineDescriptor.z1z();
|
|
3753
|
-
if (!(
|
|
3757
|
+
if (!(tmp2 instanceof JsonPrimitive)) {
|
|
3754
3758
|
var tmp_1 = getKClass(JsonPrimitive).kb();
|
|
3755
|
-
var tmp_2 = getKClassFromExpression(
|
|
3756
|
-
var tmp$ret$0 = this.
|
|
3757
|
-
throw JsonDecodingException_0(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(
|
|
3759
|
+
var tmp_2 = getKClassFromExpression(tmp2).kb();
|
|
3760
|
+
var tmp$ret$0 = this.o5w(tag);
|
|
3761
|
+
throw JsonDecodingException_0(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3758
3762
|
}
|
|
3759
|
-
var lexer = StringJsonLexer_0(tmp_0,
|
|
3760
|
-
tmp = new JsonDecoderForUnsignedTypes(lexer, this.
|
|
3763
|
+
var lexer = StringJsonLexer_0(tmp_0, tmp2.l5q());
|
|
3764
|
+
tmp = new JsonDecoderForUnsignedTypes(lexer, this.h5q());
|
|
3761
3765
|
} else {
|
|
3762
3766
|
tmp = protoOf(NamedValueDecoder).h2h.call(this, tag, inlineDescriptor);
|
|
3763
3767
|
}
|
|
3764
3768
|
return tmp;
|
|
3765
3769
|
};
|
|
3766
3770
|
protoOf(AbstractJsonTreeDecoder).h2h = function (tag, inlineDescriptor) {
|
|
3767
|
-
return this.
|
|
3771
|
+
return this.c5x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
|
|
3768
3772
|
};
|
|
3769
3773
|
protoOf(AbstractJsonTreeDecoder).i22 = function (descriptor) {
|
|
3770
|
-
return !(this.s2g() == null) ? protoOf(NamedValueDecoder).i22.call(this, descriptor) : (new JsonPrimitiveDecoder(this.
|
|
3774
|
+
return !(this.s2g() == null) ? protoOf(NamedValueDecoder).i22.call(this, descriptor) : (new JsonPrimitiveDecoder(this.h5q(), this.z(), this.m5w_1)).i22(descriptor);
|
|
3771
3775
|
};
|
|
3772
3776
|
function setForceNull($this, descriptor, index) {
|
|
3773
|
-
$this.
|
|
3774
|
-
return $this.
|
|
3777
|
+
$this.m5x_1 = (!$this.h5q().e5o_1.u5p_1 && !descriptor.x20(index) && descriptor.w20(index).l20());
|
|
3778
|
+
return $this.m5x_1;
|
|
3775
3779
|
}
|
|
3776
3780
|
function JsonTreeDecoder(json, value, polymorphicDiscriminator, polyDescriptor) {
|
|
3777
3781
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
3778
3782
|
polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor;
|
|
3779
3783
|
AbstractJsonTreeDecoder.call(this, json, value, polymorphicDiscriminator);
|
|
3780
|
-
this.
|
|
3781
|
-
this.
|
|
3782
|
-
this.
|
|
3783
|
-
this.
|
|
3784
|
+
this.j5x_1 = value;
|
|
3785
|
+
this.k5x_1 = polyDescriptor;
|
|
3786
|
+
this.l5x_1 = 0;
|
|
3787
|
+
this.m5x_1 = false;
|
|
3784
3788
|
}
|
|
3785
3789
|
protoOf(JsonTreeDecoder).z = function () {
|
|
3786
|
-
return this.
|
|
3790
|
+
return this.j5x_1;
|
|
3787
3791
|
};
|
|
3788
3792
|
protoOf(JsonTreeDecoder).c23 = function (descriptor) {
|
|
3789
|
-
$l$loop: while (this.
|
|
3790
|
-
var _unary__edvuaz = this.
|
|
3791
|
-
this.
|
|
3793
|
+
$l$loop: while (this.l5x_1 < descriptor.r20()) {
|
|
3794
|
+
var _unary__edvuaz = this.l5x_1;
|
|
3795
|
+
this.l5x_1 = _unary__edvuaz + 1 | 0;
|
|
3792
3796
|
var name = this.n2g(descriptor, _unary__edvuaz);
|
|
3793
|
-
var index = this.
|
|
3794
|
-
this.
|
|
3797
|
+
var index = this.l5x_1 - 1 | 0;
|
|
3798
|
+
this.m5x_1 = false;
|
|
3795
3799
|
var tmp;
|
|
3796
3800
|
// Inline function 'kotlin.collections.contains' call
|
|
3797
3801
|
// Inline function 'kotlin.collections.containsKey' call
|
|
@@ -3802,9 +3806,9 @@
|
|
|
3802
3806
|
tmp = setForceNull(this, descriptor, index);
|
|
3803
3807
|
}
|
|
3804
3808
|
if (tmp) {
|
|
3805
|
-
if (!this.
|
|
3809
|
+
if (!this.n5w_1.w5p_1)
|
|
3806
3810
|
return index;
|
|
3807
|
-
var
|
|
3811
|
+
var tmp0 = this.h5q();
|
|
3808
3812
|
var tmp$ret$3;
|
|
3809
3813
|
$l$block_2: {
|
|
3810
3814
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
@@ -3812,7 +3816,7 @@
|
|
|
3812
3816
|
var elementDescriptor = descriptor.w20(index);
|
|
3813
3817
|
var tmp_0;
|
|
3814
3818
|
if (isOptional && !elementDescriptor.l20()) {
|
|
3815
|
-
var tmp_1 = this.
|
|
3819
|
+
var tmp_1 = this.n5x(name);
|
|
3816
3820
|
tmp_0 = tmp_1 instanceof JsonNull;
|
|
3817
3821
|
} else {
|
|
3818
3822
|
tmp_0 = false;
|
|
@@ -3824,7 +3828,7 @@
|
|
|
3824
3828
|
if (equals(elementDescriptor.p20(), ENUM_getInstance())) {
|
|
3825
3829
|
var tmp_2;
|
|
3826
3830
|
if (elementDescriptor.l20()) {
|
|
3827
|
-
var tmp_3 = this.
|
|
3831
|
+
var tmp_3 = this.n5x(name);
|
|
3828
3832
|
tmp_2 = tmp_3 instanceof JsonNull;
|
|
3829
3833
|
} else {
|
|
3830
3834
|
tmp_2 = false;
|
|
@@ -3833,7 +3837,7 @@
|
|
|
3833
3837
|
tmp$ret$3 = false;
|
|
3834
3838
|
break $l$block_2;
|
|
3835
3839
|
}
|
|
3836
|
-
var tmp_4 = this.
|
|
3840
|
+
var tmp_4 = this.n5x(name);
|
|
3837
3841
|
var tmp0_safe_receiver = tmp_4 instanceof JsonPrimitive ? tmp_4 : null;
|
|
3838
3842
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver);
|
|
3839
3843
|
var tmp_5;
|
|
@@ -3844,8 +3848,8 @@
|
|
|
3844
3848
|
tmp_5 = tmp0_elvis_lhs;
|
|
3845
3849
|
}
|
|
3846
3850
|
var enumValue = tmp_5;
|
|
3847
|
-
var enumIndex = getJsonNameIndex(elementDescriptor,
|
|
3848
|
-
var coerceToNull = !
|
|
3851
|
+
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
3852
|
+
var coerceToNull = !tmp0.e5o_1.u5p_1 && elementDescriptor.l20();
|
|
3849
3853
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
3850
3854
|
if (setForceNull(this, descriptor, index))
|
|
3851
3855
|
return index;
|
|
@@ -3863,18 +3867,18 @@
|
|
|
3863
3867
|
return -1;
|
|
3864
3868
|
};
|
|
3865
3869
|
protoOf(JsonTreeDecoder).w21 = function () {
|
|
3866
|
-
return !this.
|
|
3870
|
+
return !this.m5x_1 && protoOf(AbstractJsonTreeDecoder).w21.call(this);
|
|
3867
3871
|
};
|
|
3868
3872
|
protoOf(JsonTreeDecoder).o2g = function (descriptor, index) {
|
|
3869
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3873
|
+
var strategy = namingStrategy(descriptor, this.h5q());
|
|
3870
3874
|
var baseName = descriptor.t20(index);
|
|
3871
3875
|
if (strategy == null) {
|
|
3872
|
-
if (!this.
|
|
3876
|
+
if (!this.n5w_1.a5q_1)
|
|
3873
3877
|
return baseName;
|
|
3874
3878
|
if (this.z().l2().x1(baseName))
|
|
3875
3879
|
return baseName;
|
|
3876
3880
|
}
|
|
3877
|
-
var deserializationNamesMap_0 = deserializationNamesMap(this.
|
|
3881
|
+
var deserializationNamesMap_0 = deserializationNamesMap(this.h5q(), descriptor);
|
|
3878
3882
|
// Inline function 'kotlin.collections.find' call
|
|
3879
3883
|
var tmp0 = this.z().l2();
|
|
3880
3884
|
var tmp$ret$1;
|
|
@@ -3897,35 +3901,35 @@
|
|
|
3897
3901
|
// Inline function 'kotlin.let' call
|
|
3898
3902
|
return tmp0_safe_receiver;
|
|
3899
3903
|
}
|
|
3900
|
-
var fallbackName = strategy == null ? null : strategy.
|
|
3904
|
+
var fallbackName = strategy == null ? null : strategy.c5t(descriptor, index, baseName);
|
|
3901
3905
|
return fallbackName == null ? baseName : fallbackName;
|
|
3902
3906
|
};
|
|
3903
|
-
protoOf(JsonTreeDecoder).
|
|
3907
|
+
protoOf(JsonTreeDecoder).q5w = function (tag) {
|
|
3904
3908
|
return getValue(this.z(), tag);
|
|
3905
3909
|
};
|
|
3906
|
-
protoOf(JsonTreeDecoder).
|
|
3910
|
+
protoOf(JsonTreeDecoder).n5x = function (tag) {
|
|
3907
3911
|
return this.z().m2m(tag);
|
|
3908
3912
|
};
|
|
3909
3913
|
protoOf(JsonTreeDecoder).l22 = function (descriptor) {
|
|
3910
|
-
if (descriptor === this.
|
|
3911
|
-
var tmp = this.
|
|
3912
|
-
var
|
|
3914
|
+
if (descriptor === this.k5x_1) {
|
|
3915
|
+
var tmp = this.h5q();
|
|
3916
|
+
var tmp2 = this.p5w();
|
|
3913
3917
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3914
3918
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3915
|
-
var serialName = this.
|
|
3916
|
-
if (!(
|
|
3919
|
+
var serialName = this.k5x_1.z1z();
|
|
3920
|
+
if (!(tmp2 instanceof JsonObject)) {
|
|
3917
3921
|
var tmp_0 = getKClass(JsonObject).kb();
|
|
3918
|
-
var tmp_1 = getKClassFromExpression(
|
|
3922
|
+
var tmp_1 = getKClassFromExpression(tmp2).kb();
|
|
3919
3923
|
var tmp$ret$0 = this.u2g();
|
|
3920
|
-
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(
|
|
3924
|
+
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3921
3925
|
}
|
|
3922
|
-
return new JsonTreeDecoder(tmp,
|
|
3926
|
+
return new JsonTreeDecoder(tmp, tmp2, this.m5w_1, this.k5x_1);
|
|
3923
3927
|
}
|
|
3924
3928
|
return protoOf(AbstractJsonTreeDecoder).l22.call(this, descriptor);
|
|
3925
3929
|
};
|
|
3926
3930
|
protoOf(JsonTreeDecoder).m22 = function (descriptor) {
|
|
3927
3931
|
var tmp;
|
|
3928
|
-
if (ignoreUnknownKeys(descriptor, this.
|
|
3932
|
+
if (ignoreUnknownKeys(descriptor, this.h5q())) {
|
|
3929
3933
|
tmp = true;
|
|
3930
3934
|
} else {
|
|
3931
3935
|
var tmp_0 = descriptor.p20();
|
|
@@ -3933,15 +3937,15 @@
|
|
|
3933
3937
|
}
|
|
3934
3938
|
if (tmp)
|
|
3935
3939
|
return Unit_instance;
|
|
3936
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3940
|
+
var strategy = namingStrategy(descriptor, this.h5q());
|
|
3937
3941
|
var tmp_1;
|
|
3938
|
-
if (strategy == null && !this.
|
|
3942
|
+
if (strategy == null && !this.n5w_1.a5q_1) {
|
|
3939
3943
|
tmp_1 = jsonCachedSerialNames(descriptor);
|
|
3940
3944
|
} else if (!(strategy == null)) {
|
|
3941
|
-
tmp_1 = deserializationNamesMap(this.
|
|
3945
|
+
tmp_1 = deserializationNamesMap(this.h5q(), descriptor).l2();
|
|
3942
3946
|
} else {
|
|
3943
3947
|
var tmp_2 = jsonCachedSerialNames(descriptor);
|
|
3944
|
-
var tmp0_safe_receiver = get_schemaCache(this.
|
|
3948
|
+
var tmp0_safe_receiver = get_schemaCache(this.h5q()).o5v(descriptor, get_JsonDeserializationNamesKey());
|
|
3945
3949
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3946
3950
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l2();
|
|
3947
3951
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
@@ -3951,76 +3955,76 @@
|
|
|
3951
3955
|
var _iterator__ex2g4s = this.z().l2().p();
|
|
3952
3956
|
while (_iterator__ex2g4s.q()) {
|
|
3953
3957
|
var key = _iterator__ex2g4s.r();
|
|
3954
|
-
if (!names.x1(key) && !(key === this.
|
|
3958
|
+
if (!names.x1(key) && !(key === this.m5w_1)) {
|
|
3955
3959
|
throw JsonDecodingException_1(-1, "Encountered an unknown key '" + key + "' at element: " + this.u2g() + '\n' + "Use 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString(minify(this.z().toString()))));
|
|
3956
3960
|
}
|
|
3957
3961
|
}
|
|
3958
3962
|
};
|
|
3959
3963
|
function JsonTreeListDecoder(json, value) {
|
|
3960
3964
|
AbstractJsonTreeDecoder.call(this, json, value);
|
|
3961
|
-
this.
|
|
3962
|
-
this.
|
|
3963
|
-
this.
|
|
3965
|
+
this.u5x_1 = value;
|
|
3966
|
+
this.v5x_1 = this.u5x_1.s();
|
|
3967
|
+
this.w5x_1 = -1;
|
|
3964
3968
|
}
|
|
3965
3969
|
protoOf(JsonTreeListDecoder).z = function () {
|
|
3966
|
-
return this.
|
|
3970
|
+
return this.u5x_1;
|
|
3967
3971
|
};
|
|
3968
3972
|
protoOf(JsonTreeListDecoder).o2g = function (descriptor, index) {
|
|
3969
3973
|
return index.toString();
|
|
3970
3974
|
};
|
|
3971
|
-
protoOf(JsonTreeListDecoder).
|
|
3972
|
-
return this.
|
|
3975
|
+
protoOf(JsonTreeListDecoder).q5w = function (tag) {
|
|
3976
|
+
return this.u5x_1.u(toInt(tag));
|
|
3973
3977
|
};
|
|
3974
3978
|
protoOf(JsonTreeListDecoder).c23 = function (descriptor) {
|
|
3975
|
-
while (this.
|
|
3976
|
-
this.
|
|
3977
|
-
return this.
|
|
3979
|
+
while (this.w5x_1 < (this.v5x_1 - 1 | 0)) {
|
|
3980
|
+
this.w5x_1 = this.w5x_1 + 1 | 0;
|
|
3981
|
+
return this.w5x_1;
|
|
3978
3982
|
}
|
|
3979
3983
|
return -1;
|
|
3980
3984
|
};
|
|
3981
3985
|
function JsonPrimitiveDecoder(json, value, polymorphicDiscriminator) {
|
|
3982
3986
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
3983
3987
|
AbstractJsonTreeDecoder.call(this, json, value, polymorphicDiscriminator);
|
|
3984
|
-
this.
|
|
3988
|
+
this.d5y_1 = value;
|
|
3985
3989
|
this.i2h('primitive');
|
|
3986
3990
|
}
|
|
3987
3991
|
protoOf(JsonPrimitiveDecoder).z = function () {
|
|
3988
|
-
return this.
|
|
3992
|
+
return this.d5y_1;
|
|
3989
3993
|
};
|
|
3990
3994
|
protoOf(JsonPrimitiveDecoder).c23 = function (descriptor) {
|
|
3991
3995
|
return 0;
|
|
3992
3996
|
};
|
|
3993
|
-
protoOf(JsonPrimitiveDecoder).
|
|
3997
|
+
protoOf(JsonPrimitiveDecoder).q5w = function (tag) {
|
|
3994
3998
|
// Inline function 'kotlin.require' call
|
|
3995
3999
|
if (!(tag === 'primitive')) {
|
|
3996
4000
|
var message = "This input can only handle primitives with 'primitive' tag";
|
|
3997
4001
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3998
4002
|
}
|
|
3999
|
-
return this.
|
|
4003
|
+
return this.d5y_1;
|
|
4000
4004
|
};
|
|
4001
4005
|
function JsonTreeMapDecoder(json, value) {
|
|
4002
4006
|
JsonTreeDecoder.call(this, json, value);
|
|
4003
|
-
this.
|
|
4004
|
-
this.
|
|
4005
|
-
this.
|
|
4006
|
-
this.
|
|
4007
|
+
this.o5y_1 = value;
|
|
4008
|
+
this.p5y_1 = toList(this.o5y_1.l2());
|
|
4009
|
+
this.q5y_1 = imul(this.p5y_1.s(), 2);
|
|
4010
|
+
this.r5y_1 = -1;
|
|
4007
4011
|
}
|
|
4008
4012
|
protoOf(JsonTreeMapDecoder).z = function () {
|
|
4009
|
-
return this.
|
|
4013
|
+
return this.o5y_1;
|
|
4010
4014
|
};
|
|
4011
4015
|
protoOf(JsonTreeMapDecoder).o2g = function (descriptor, index) {
|
|
4012
4016
|
var i = index / 2 | 0;
|
|
4013
|
-
return this.
|
|
4017
|
+
return this.p5y_1.u(i);
|
|
4014
4018
|
};
|
|
4015
4019
|
protoOf(JsonTreeMapDecoder).c23 = function (descriptor) {
|
|
4016
|
-
while (this.
|
|
4017
|
-
this.
|
|
4018
|
-
return this.
|
|
4020
|
+
while (this.r5y_1 < (this.q5y_1 - 1 | 0)) {
|
|
4021
|
+
this.r5y_1 = this.r5y_1 + 1 | 0;
|
|
4022
|
+
return this.r5y_1;
|
|
4019
4023
|
}
|
|
4020
4024
|
return -1;
|
|
4021
4025
|
};
|
|
4022
|
-
protoOf(JsonTreeMapDecoder).
|
|
4023
|
-
return (this.
|
|
4026
|
+
protoOf(JsonTreeMapDecoder).q5w = function (tag) {
|
|
4027
|
+
return (this.r5y_1 % 2 | 0) === 0 ? JsonPrimitive_0(tag) : getValue(this.o5y_1, tag);
|
|
4024
4028
|
};
|
|
4025
4029
|
protoOf(JsonTreeMapDecoder).m22 = function (descriptor) {
|
|
4026
4030
|
};
|
|
@@ -4052,8 +4056,8 @@
|
|
|
4052
4056
|
var $ENTRIES;
|
|
4053
4057
|
function WriteMode(name, ordinal, begin, end) {
|
|
4054
4058
|
Enum.call(this, name, ordinal);
|
|
4055
|
-
this.
|
|
4056
|
-
this.
|
|
4059
|
+
this.b5w_1 = begin;
|
|
4060
|
+
this.c5w_1 = end;
|
|
4057
4061
|
}
|
|
4058
4062
|
function switchMode(_this__u8e3s4, desc) {
|
|
4059
4063
|
var tmp0_subject = desc.p20();
|
|
@@ -4078,7 +4082,7 @@
|
|
|
4078
4082
|
if (tmp_1) {
|
|
4079
4083
|
tmp_0 = WriteMode_MAP_getInstance();
|
|
4080
4084
|
} else {
|
|
4081
|
-
if (_this__u8e3s4.
|
|
4085
|
+
if (_this__u8e3s4.e5o_1.s5p_1) {
|
|
4082
4086
|
tmp_0 = WriteMode_LIST_getInstance();
|
|
4083
4087
|
} else {
|
|
4084
4088
|
throw InvalidKeyKindException(keyDescriptor);
|
|
@@ -4122,56 +4126,56 @@
|
|
|
4122
4126
|
return WriteMode_POLY_OBJ_instance;
|
|
4123
4127
|
}
|
|
4124
4128
|
function appendEscape($this, lastPosition, current) {
|
|
4125
|
-
$this.
|
|
4129
|
+
$this.s5y(lastPosition, current);
|
|
4126
4130
|
return appendEsc($this, current + 1 | 0);
|
|
4127
4131
|
}
|
|
4128
4132
|
function decodedString($this, lastPosition, currentPosition) {
|
|
4129
|
-
$this.
|
|
4130
|
-
var result = $this.
|
|
4131
|
-
$this.
|
|
4133
|
+
$this.s5y(lastPosition, currentPosition);
|
|
4134
|
+
var result = $this.u5o_1.toString();
|
|
4135
|
+
$this.u5o_1.gd(0);
|
|
4132
4136
|
return result;
|
|
4133
4137
|
}
|
|
4134
4138
|
function takePeeked($this) {
|
|
4135
4139
|
// Inline function 'kotlin.also' call
|
|
4136
|
-
var this_0 = ensureNotNull($this.
|
|
4137
|
-
$this.
|
|
4140
|
+
var this_0 = ensureNotNull($this.t5o_1);
|
|
4141
|
+
$this.t5o_1 = null;
|
|
4138
4142
|
return this_0;
|
|
4139
4143
|
}
|
|
4140
4144
|
function wasUnquotedString($this) {
|
|
4141
|
-
return !(charSequenceGet($this.
|
|
4145
|
+
return !(charSequenceGet($this.t5y(), $this.r5o_1 - 1 | 0) === _Char___init__impl__6a9atx(34));
|
|
4142
4146
|
}
|
|
4143
4147
|
function appendEsc($this, startPosition) {
|
|
4144
4148
|
var currentPosition = startPosition;
|
|
4145
|
-
currentPosition = $this.
|
|
4149
|
+
currentPosition = $this.u5y(currentPosition);
|
|
4146
4150
|
if (currentPosition === -1) {
|
|
4147
|
-
$this.
|
|
4151
|
+
$this.y5s('Expected escape sequence to continue, got EOF');
|
|
4148
4152
|
}
|
|
4149
|
-
var tmp = $this.
|
|
4153
|
+
var tmp = $this.t5y();
|
|
4150
4154
|
var _unary__edvuaz = currentPosition;
|
|
4151
4155
|
currentPosition = _unary__edvuaz + 1 | 0;
|
|
4152
4156
|
var currentChar = charSequenceGet(tmp, _unary__edvuaz);
|
|
4153
4157
|
if (currentChar === _Char___init__impl__6a9atx(117)) {
|
|
4154
|
-
return appendHex($this, $this.
|
|
4158
|
+
return appendHex($this, $this.t5y(), currentPosition);
|
|
4155
4159
|
}
|
|
4156
4160
|
// Inline function 'kotlin.code' call
|
|
4157
4161
|
var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
|
|
4158
4162
|
var c = escapeToChar(tmp$ret$0);
|
|
4159
4163
|
if (c === _Char___init__impl__6a9atx(0)) {
|
|
4160
|
-
$this.
|
|
4164
|
+
$this.y5s("Invalid escaped char '" + toString_1(currentChar) + "'");
|
|
4161
4165
|
}
|
|
4162
|
-
$this.
|
|
4166
|
+
$this.u5o_1.s8(c);
|
|
4163
4167
|
return currentPosition;
|
|
4164
4168
|
}
|
|
4165
4169
|
function appendHex($this, source, startPos) {
|
|
4166
4170
|
if ((startPos + 4 | 0) >= charSequenceLength(source)) {
|
|
4167
|
-
$this.
|
|
4168
|
-
$this.
|
|
4169
|
-
if (($this.
|
|
4170
|
-
$this.
|
|
4171
|
+
$this.r5o_1 = startPos;
|
|
4172
|
+
$this.v5y();
|
|
4173
|
+
if (($this.r5o_1 + 4 | 0) >= charSequenceLength(source)) {
|
|
4174
|
+
$this.y5s('Unexpected EOF during unicode escape');
|
|
4171
4175
|
}
|
|
4172
|
-
return appendHex($this, source, $this.
|
|
4176
|
+
return appendHex($this, source, $this.r5o_1);
|
|
4173
4177
|
}
|
|
4174
|
-
$this.
|
|
4178
|
+
$this.u5o_1.s8(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));
|
|
4175
4179
|
return startPos + 4 | 0;
|
|
4176
4180
|
}
|
|
4177
4181
|
function fromHexChar($this, source, currentPosition) {
|
|
@@ -4196,16 +4200,16 @@
|
|
|
4196
4200
|
var this_2 = _Char___init__impl__6a9atx(65);
|
|
4197
4201
|
tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0;
|
|
4198
4202
|
} else {
|
|
4199
|
-
$this.
|
|
4203
|
+
$this.y5s("Invalid toHexChar char '" + toString_1(character) + "' in unicode escape");
|
|
4200
4204
|
}
|
|
4201
4205
|
return tmp;
|
|
4202
4206
|
}
|
|
4203
4207
|
function consumeBoolean2($this, start) {
|
|
4204
|
-
var current = $this.
|
|
4205
|
-
if (current >= charSequenceLength($this.
|
|
4206
|
-
$this.
|
|
4208
|
+
var current = $this.u5y(start);
|
|
4209
|
+
if (current >= charSequenceLength($this.t5y()) || current === -1) {
|
|
4210
|
+
$this.y5s('EOF');
|
|
4207
4211
|
}
|
|
4208
|
-
var tmp = $this.
|
|
4212
|
+
var tmp = $this.t5y();
|
|
4209
4213
|
var _unary__edvuaz = current;
|
|
4210
4214
|
current = _unary__edvuaz + 1 | 0;
|
|
4211
4215
|
// Inline function 'kotlin.code' call
|
|
@@ -4224,14 +4228,14 @@
|
|
|
4224
4228
|
consumeBooleanLiteral($this, 'alse', current);
|
|
4225
4229
|
tmp_0 = false;
|
|
4226
4230
|
} else {
|
|
4227
|
-
$this.
|
|
4231
|
+
$this.y5s("Expected valid boolean literal prefix, but had '" + $this.g5u() + "'");
|
|
4228
4232
|
}
|
|
4229
4233
|
}
|
|
4230
4234
|
return tmp_0;
|
|
4231
4235
|
}
|
|
4232
4236
|
function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
4233
|
-
if ((charSequenceLength($this.
|
|
4234
|
-
$this.
|
|
4237
|
+
if ((charSequenceLength($this.t5y()) - current | 0) < literalSuffix.length) {
|
|
4238
|
+
$this.y5s('Unexpected end of boolean literal');
|
|
4235
4239
|
}
|
|
4236
4240
|
var inductionVariable = 0;
|
|
4237
4241
|
var last = charSequenceLength(literalSuffix) - 1 | 0;
|
|
@@ -4239,17 +4243,17 @@
|
|
|
4239
4243
|
do {
|
|
4240
4244
|
var i = inductionVariable;
|
|
4241
4245
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4242
|
-
var expected =
|
|
4243
|
-
var actual = charSequenceGet($this.
|
|
4246
|
+
var expected = charCodeAt(literalSuffix, i);
|
|
4247
|
+
var actual = charSequenceGet($this.t5y(), current + i | 0);
|
|
4244
4248
|
// Inline function 'kotlin.code' call
|
|
4245
4249
|
var tmp = Char__toInt_impl_vasixd(expected);
|
|
4246
4250
|
// Inline function 'kotlin.code' call
|
|
4247
4251
|
if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
|
|
4248
|
-
$this.
|
|
4252
|
+
$this.y5s("Expected valid boolean literal prefix, but had '" + $this.g5u() + "'");
|
|
4249
4253
|
}
|
|
4250
4254
|
}
|
|
4251
4255
|
while (inductionVariable <= last);
|
|
4252
|
-
$this.
|
|
4256
|
+
$this.r5o_1 = current + literalSuffix.length | 0;
|
|
4253
4257
|
}
|
|
4254
4258
|
function consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive) {
|
|
4255
4259
|
var tmp;
|
|
@@ -4273,77 +4277,77 @@
|
|
|
4273
4277
|
return tmp;
|
|
4274
4278
|
}
|
|
4275
4279
|
function AbstractJsonLexer() {
|
|
4276
|
-
this.
|
|
4277
|
-
this.
|
|
4278
|
-
this.
|
|
4279
|
-
this.
|
|
4280
|
+
this.r5o_1 = 0;
|
|
4281
|
+
this.s5o_1 = new JsonPath();
|
|
4282
|
+
this.t5o_1 = null;
|
|
4283
|
+
this.u5o_1 = StringBuilder_init_$Create$();
|
|
4280
4284
|
}
|
|
4281
|
-
protoOf(AbstractJsonLexer).
|
|
4285
|
+
protoOf(AbstractJsonLexer).v5y = function () {
|
|
4282
4286
|
};
|
|
4283
|
-
protoOf(AbstractJsonLexer).
|
|
4284
|
-
var current = this.
|
|
4285
|
-
var source = this.
|
|
4287
|
+
protoOf(AbstractJsonLexer).r5v = function () {
|
|
4288
|
+
var current = this.w5y();
|
|
4289
|
+
var source = this.t5y();
|
|
4286
4290
|
if (current >= charSequenceLength(source) || current === -1)
|
|
4287
4291
|
return false;
|
|
4288
4292
|
if (charSequenceGet(source, current) === _Char___init__impl__6a9atx(44)) {
|
|
4289
|
-
this.
|
|
4293
|
+
this.r5o_1 = this.r5o_1 + 1 | 0;
|
|
4290
4294
|
return true;
|
|
4291
4295
|
}
|
|
4292
4296
|
return false;
|
|
4293
4297
|
};
|
|
4294
|
-
protoOf(AbstractJsonLexer).
|
|
4298
|
+
protoOf(AbstractJsonLexer).x5y = function (c) {
|
|
4295
4299
|
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;
|
|
4296
4300
|
};
|
|
4297
|
-
protoOf(AbstractJsonLexer).
|
|
4298
|
-
var nextToken = this.
|
|
4301
|
+
protoOf(AbstractJsonLexer).v5o = function () {
|
|
4302
|
+
var nextToken = this.i5u();
|
|
4299
4303
|
if (!(nextToken === 10)) {
|
|
4300
|
-
this.
|
|
4304
|
+
this.y5s('Expected EOF after parsing, but had ' + toString_1(charSequenceGet(this.t5y(), this.r5o_1 - 1 | 0)) + ' instead');
|
|
4301
4305
|
}
|
|
4302
4306
|
};
|
|
4303
|
-
protoOf(AbstractJsonLexer).
|
|
4304
|
-
var token = this.
|
|
4307
|
+
protoOf(AbstractJsonLexer).c5u = function (expected) {
|
|
4308
|
+
var token = this.i5u();
|
|
4305
4309
|
if (!(token === expected)) {
|
|
4306
4310
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4307
4311
|
var expected_0 = tokenDescription(expected);
|
|
4308
|
-
var position = true ? this.
|
|
4309
|
-
var s = this.
|
|
4312
|
+
var position = true ? this.r5o_1 - 1 | 0 : this.r5o_1;
|
|
4313
|
+
var s = this.r5o_1 === charSequenceLength(this.t5y()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.t5y(), position));
|
|
4310
4314
|
var tmp$ret$0 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4311
|
-
this.
|
|
4315
|
+
this.y5s(tmp$ret$0, position);
|
|
4312
4316
|
}
|
|
4313
4317
|
return token;
|
|
4314
4318
|
};
|
|
4315
|
-
protoOf(AbstractJsonLexer).
|
|
4316
|
-
if (this.
|
|
4319
|
+
protoOf(AbstractJsonLexer).y5y = function (expected) {
|
|
4320
|
+
if (this.r5o_1 > 0 && expected === _Char___init__impl__6a9atx(34)) {
|
|
4317
4321
|
var tmp$ret$1;
|
|
4318
4322
|
$l$block: {
|
|
4319
4323
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.withPositionRollback' call
|
|
4320
|
-
var snapshot = this.
|
|
4324
|
+
var snapshot = this.r5o_1;
|
|
4321
4325
|
try {
|
|
4322
|
-
this.
|
|
4323
|
-
tmp$ret$1 = this.
|
|
4326
|
+
this.r5o_1 = this.r5o_1 - 1 | 0;
|
|
4327
|
+
tmp$ret$1 = this.g5u();
|
|
4324
4328
|
break $l$block;
|
|
4325
4329
|
}finally {
|
|
4326
|
-
this.
|
|
4330
|
+
this.r5o_1 = snapshot;
|
|
4327
4331
|
}
|
|
4328
4332
|
}
|
|
4329
4333
|
var inputLiteral = tmp$ret$1;
|
|
4330
4334
|
if (inputLiteral === 'null') {
|
|
4331
|
-
this.
|
|
4335
|
+
this.x5s("Expected string literal but 'null' literal was found", this.r5o_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.");
|
|
4332
4336
|
}
|
|
4333
4337
|
}
|
|
4334
4338
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4335
4339
|
var expectedToken = charToTokenClass(expected);
|
|
4336
4340
|
var expected_0 = tokenDescription(expectedToken);
|
|
4337
|
-
var position = true ? this.
|
|
4338
|
-
var s = this.
|
|
4341
|
+
var position = true ? this.r5o_1 - 1 | 0 : this.r5o_1;
|
|
4342
|
+
var s = this.r5o_1 === charSequenceLength(this.t5y()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.t5y(), position));
|
|
4339
4343
|
var tmp$ret$2 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4340
|
-
this.
|
|
4344
|
+
this.y5s(tmp$ret$2, position);
|
|
4341
4345
|
};
|
|
4342
|
-
protoOf(AbstractJsonLexer).
|
|
4343
|
-
var source = this.
|
|
4344
|
-
var cpos = this.
|
|
4346
|
+
protoOf(AbstractJsonLexer).d5u = function () {
|
|
4347
|
+
var source = this.t5y();
|
|
4348
|
+
var cpos = this.r5o_1;
|
|
4345
4349
|
$l$loop_0: while (true) {
|
|
4346
|
-
cpos = this.
|
|
4350
|
+
cpos = this.u5y(cpos);
|
|
4347
4351
|
if (cpos === -1)
|
|
4348
4352
|
break $l$loop_0;
|
|
4349
4353
|
var ch = charSequenceGet(source, cpos);
|
|
@@ -4351,16 +4355,16 @@
|
|
|
4351
4355
|
cpos = cpos + 1 | 0;
|
|
4352
4356
|
continue $l$loop_0;
|
|
4353
4357
|
}
|
|
4354
|
-
this.
|
|
4358
|
+
this.r5o_1 = cpos;
|
|
4355
4359
|
return charToTokenClass(ch);
|
|
4356
4360
|
}
|
|
4357
|
-
this.
|
|
4361
|
+
this.r5o_1 = cpos;
|
|
4358
4362
|
return 10;
|
|
4359
4363
|
};
|
|
4360
|
-
protoOf(AbstractJsonLexer).
|
|
4361
|
-
var current = this.
|
|
4362
|
-
current = this.
|
|
4363
|
-
var len = charSequenceLength(this.
|
|
4364
|
+
protoOf(AbstractJsonLexer).s5v = function (doConsume) {
|
|
4365
|
+
var current = this.w5y();
|
|
4366
|
+
current = this.u5y(current);
|
|
4367
|
+
var len = charSequenceLength(this.t5y()) - current | 0;
|
|
4364
4368
|
if (len < 4 || current === -1)
|
|
4365
4369
|
return false;
|
|
4366
4370
|
var inductionVariable = 0;
|
|
@@ -4368,50 +4372,50 @@
|
|
|
4368
4372
|
do {
|
|
4369
4373
|
var i = inductionVariable;
|
|
4370
4374
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4371
|
-
if (!(
|
|
4375
|
+
if (!(charCodeAt('null', i) === charSequenceGet(this.t5y(), current + i | 0)))
|
|
4372
4376
|
return false;
|
|
4373
4377
|
}
|
|
4374
4378
|
while (inductionVariable <= 3);
|
|
4375
|
-
if (len > 4 && charToTokenClass(charSequenceGet(this.
|
|
4379
|
+
if (len > 4 && charToTokenClass(charSequenceGet(this.t5y(), current + 4 | 0)) === 0)
|
|
4376
4380
|
return false;
|
|
4377
4381
|
if (doConsume) {
|
|
4378
|
-
this.
|
|
4382
|
+
this.r5o_1 = current + 4 | 0;
|
|
4379
4383
|
}
|
|
4380
4384
|
return true;
|
|
4381
4385
|
};
|
|
4382
|
-
protoOf(AbstractJsonLexer).
|
|
4386
|
+
protoOf(AbstractJsonLexer).d5w = function (doConsume, $super) {
|
|
4383
4387
|
doConsume = doConsume === VOID ? true : doConsume;
|
|
4384
|
-
return $super === VOID ? this.
|
|
4388
|
+
return $super === VOID ? this.s5v(doConsume) : $super.s5v.call(this, doConsume);
|
|
4385
4389
|
};
|
|
4386
|
-
protoOf(AbstractJsonLexer).
|
|
4387
|
-
var token = this.
|
|
4390
|
+
protoOf(AbstractJsonLexer).t5v = function (isLenient) {
|
|
4391
|
+
var token = this.d5u();
|
|
4388
4392
|
var tmp;
|
|
4389
4393
|
if (isLenient) {
|
|
4390
4394
|
if (!(token === 1) && !(token === 0))
|
|
4391
4395
|
return null;
|
|
4392
|
-
tmp = this.
|
|
4396
|
+
tmp = this.g5u();
|
|
4393
4397
|
} else {
|
|
4394
4398
|
if (!(token === 1))
|
|
4395
4399
|
return null;
|
|
4396
|
-
tmp = this.
|
|
4400
|
+
tmp = this.f5u();
|
|
4397
4401
|
}
|
|
4398
4402
|
var string = tmp;
|
|
4399
|
-
this.
|
|
4403
|
+
this.t5o_1 = string;
|
|
4400
4404
|
return string;
|
|
4401
4405
|
};
|
|
4402
|
-
protoOf(AbstractJsonLexer).
|
|
4403
|
-
this.
|
|
4406
|
+
protoOf(AbstractJsonLexer).z5y = function () {
|
|
4407
|
+
this.t5o_1 = null;
|
|
4404
4408
|
};
|
|
4405
4409
|
protoOf(AbstractJsonLexer).f1h = function (startPos, endPos) {
|
|
4406
4410
|
// Inline function 'kotlin.text.substring' call
|
|
4407
|
-
var this_0 = this.
|
|
4411
|
+
var this_0 = this.t5y();
|
|
4408
4412
|
return toString(charSequenceSubSequence(this_0, startPos, endPos));
|
|
4409
4413
|
};
|
|
4410
|
-
protoOf(AbstractJsonLexer).
|
|
4411
|
-
if (!(this.
|
|
4414
|
+
protoOf(AbstractJsonLexer).f5u = function () {
|
|
4415
|
+
if (!(this.t5o_1 == null)) {
|
|
4412
4416
|
return takePeeked(this);
|
|
4413
4417
|
}
|
|
4414
|
-
return this.
|
|
4418
|
+
return this.w5v();
|
|
4415
4419
|
};
|
|
4416
4420
|
protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, current) {
|
|
4417
4421
|
var currentPosition = current;
|
|
@@ -4421,19 +4425,19 @@
|
|
|
4421
4425
|
while (!(char === _Char___init__impl__6a9atx(34))) {
|
|
4422
4426
|
if (char === _Char___init__impl__6a9atx(92)) {
|
|
4423
4427
|
usedAppend = true;
|
|
4424
|
-
currentPosition = this.
|
|
4428
|
+
currentPosition = this.u5y(appendEscape(this, lastPosition, currentPosition));
|
|
4425
4429
|
if (currentPosition === -1) {
|
|
4426
|
-
this.
|
|
4430
|
+
this.y5s('Unexpected EOF', currentPosition);
|
|
4427
4431
|
}
|
|
4428
4432
|
lastPosition = currentPosition;
|
|
4429
4433
|
} else {
|
|
4430
4434
|
currentPosition = currentPosition + 1 | 0;
|
|
4431
4435
|
if (currentPosition >= charSequenceLength(source)) {
|
|
4432
4436
|
usedAppend = true;
|
|
4433
|
-
this.
|
|
4434
|
-
currentPosition = this.
|
|
4437
|
+
this.s5y(lastPosition, currentPosition);
|
|
4438
|
+
currentPosition = this.u5y(currentPosition);
|
|
4435
4439
|
if (currentPosition === -1) {
|
|
4436
|
-
this.
|
|
4440
|
+
this.y5s('Unexpected EOF', currentPosition);
|
|
4437
4441
|
}
|
|
4438
4442
|
lastPosition = currentPosition;
|
|
4439
4443
|
}
|
|
@@ -4447,40 +4451,40 @@
|
|
|
4447
4451
|
tmp = decodedString(this, lastPosition, currentPosition);
|
|
4448
4452
|
}
|
|
4449
4453
|
var string = tmp;
|
|
4450
|
-
this.
|
|
4454
|
+
this.r5o_1 = currentPosition + 1 | 0;
|
|
4451
4455
|
return string;
|
|
4452
4456
|
};
|
|
4453
|
-
protoOf(AbstractJsonLexer).
|
|
4454
|
-
var result = this.
|
|
4457
|
+
protoOf(AbstractJsonLexer).x5v = function () {
|
|
4458
|
+
var result = this.g5u();
|
|
4455
4459
|
if (result === 'null' && wasUnquotedString(this)) {
|
|
4456
|
-
this.
|
|
4460
|
+
this.y5s("Unexpected 'null' value instead of string literal");
|
|
4457
4461
|
}
|
|
4458
4462
|
return result;
|
|
4459
4463
|
};
|
|
4460
|
-
protoOf(AbstractJsonLexer).
|
|
4461
|
-
if (!(this.
|
|
4464
|
+
protoOf(AbstractJsonLexer).g5u = function () {
|
|
4465
|
+
if (!(this.t5o_1 == null)) {
|
|
4462
4466
|
return takePeeked(this);
|
|
4463
4467
|
}
|
|
4464
|
-
var current = this.
|
|
4465
|
-
if (current >= charSequenceLength(this.
|
|
4466
|
-
this.
|
|
4468
|
+
var current = this.w5y();
|
|
4469
|
+
if (current >= charSequenceLength(this.t5y()) || current === -1) {
|
|
4470
|
+
this.y5s('EOF', current);
|
|
4467
4471
|
}
|
|
4468
|
-
var token = charToTokenClass(charSequenceGet(this.
|
|
4472
|
+
var token = charToTokenClass(charSequenceGet(this.t5y(), current));
|
|
4469
4473
|
if (token === 1) {
|
|
4470
|
-
return this.
|
|
4474
|
+
return this.f5u();
|
|
4471
4475
|
}
|
|
4472
4476
|
if (!(token === 0)) {
|
|
4473
|
-
this.
|
|
4477
|
+
this.y5s('Expected beginning of the string, but got ' + toString_1(charSequenceGet(this.t5y(), current)));
|
|
4474
4478
|
}
|
|
4475
4479
|
var usedAppend = false;
|
|
4476
|
-
while (charToTokenClass(charSequenceGet(this.
|
|
4480
|
+
while (charToTokenClass(charSequenceGet(this.t5y(), current)) === 0) {
|
|
4477
4481
|
current = current + 1 | 0;
|
|
4478
|
-
if (current >= charSequenceLength(this.
|
|
4482
|
+
if (current >= charSequenceLength(this.t5y())) {
|
|
4479
4483
|
usedAppend = true;
|
|
4480
|
-
this.
|
|
4481
|
-
var eof = this.
|
|
4484
|
+
this.s5y(this.r5o_1, current);
|
|
4485
|
+
var eof = this.u5y(current);
|
|
4482
4486
|
if (eof === -1) {
|
|
4483
|
-
this.
|
|
4487
|
+
this.r5o_1 = current;
|
|
4484
4488
|
return decodedString(this, 0, 0);
|
|
4485
4489
|
} else {
|
|
4486
4490
|
current = eof;
|
|
@@ -4489,32 +4493,32 @@
|
|
|
4489
4493
|
}
|
|
4490
4494
|
var tmp;
|
|
4491
4495
|
if (!usedAppend) {
|
|
4492
|
-
tmp = this.f1h(this.
|
|
4496
|
+
tmp = this.f1h(this.r5o_1, current);
|
|
4493
4497
|
} else {
|
|
4494
|
-
tmp = decodedString(this, this.
|
|
4498
|
+
tmp = decodedString(this, this.r5o_1, current);
|
|
4495
4499
|
}
|
|
4496
4500
|
var result = tmp;
|
|
4497
|
-
this.
|
|
4501
|
+
this.r5o_1 = current;
|
|
4498
4502
|
return result;
|
|
4499
4503
|
};
|
|
4500
|
-
protoOf(AbstractJsonLexer).
|
|
4501
|
-
this.
|
|
4504
|
+
protoOf(AbstractJsonLexer).s5y = function (fromIndex, toIndex) {
|
|
4505
|
+
this.u5o_1.ad(this.t5y(), fromIndex, toIndex);
|
|
4502
4506
|
};
|
|
4503
|
-
protoOf(AbstractJsonLexer).
|
|
4507
|
+
protoOf(AbstractJsonLexer).v5v = function (allowLenientStrings) {
|
|
4504
4508
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4505
4509
|
var tokenStack = ArrayList_init_$Create$();
|
|
4506
|
-
var lastToken = this.
|
|
4510
|
+
var lastToken = this.d5u();
|
|
4507
4511
|
if (!(lastToken === 8) && !(lastToken === 6)) {
|
|
4508
|
-
this.
|
|
4512
|
+
this.g5u();
|
|
4509
4513
|
return Unit_instance;
|
|
4510
4514
|
}
|
|
4511
4515
|
$l$loop: while (true) {
|
|
4512
|
-
lastToken = this.
|
|
4516
|
+
lastToken = this.d5u();
|
|
4513
4517
|
if (lastToken === 1) {
|
|
4514
4518
|
if (allowLenientStrings)
|
|
4515
|
-
this.
|
|
4519
|
+
this.g5u();
|
|
4516
4520
|
else
|
|
4517
|
-
this.
|
|
4521
|
+
this.w5v();
|
|
4518
4522
|
continue $l$loop;
|
|
4519
4523
|
}
|
|
4520
4524
|
var tmp0_subject = lastToken;
|
|
@@ -4522,29 +4526,29 @@
|
|
|
4522
4526
|
tokenStack.k(lastToken);
|
|
4523
4527
|
} else if (tmp0_subject === 9) {
|
|
4524
4528
|
if (!(last(tokenStack) === 8))
|
|
4525
|
-
throw JsonDecodingException_0(this.
|
|
4529
|
+
throw JsonDecodingException_0(this.r5o_1, 'found ] instead of } at path: ' + this.s5o_1.toString(), this.t5y());
|
|
4526
4530
|
removeLast(tokenStack);
|
|
4527
4531
|
} else if (tmp0_subject === 7) {
|
|
4528
4532
|
if (!(last(tokenStack) === 6))
|
|
4529
|
-
throw JsonDecodingException_0(this.
|
|
4533
|
+
throw JsonDecodingException_0(this.r5o_1, 'found } instead of ] at path: ' + this.s5o_1.toString(), this.t5y());
|
|
4530
4534
|
removeLast(tokenStack);
|
|
4531
4535
|
} else if (tmp0_subject === 10) {
|
|
4532
|
-
this.
|
|
4536
|
+
this.y5s('Unexpected end of input due to malformed JSON during ignoring unknown keys');
|
|
4533
4537
|
}
|
|
4534
|
-
this.
|
|
4538
|
+
this.i5u();
|
|
4535
4539
|
if (tokenStack.s() === 0)
|
|
4536
4540
|
return Unit_instance;
|
|
4537
4541
|
}
|
|
4538
4542
|
};
|
|
4539
4543
|
protoOf(AbstractJsonLexer).toString = function () {
|
|
4540
|
-
return "JsonReader(source='" + toString(this.
|
|
4544
|
+
return "JsonReader(source='" + toString(this.t5y()) + "', currentPosition=" + this.r5o_1 + ')';
|
|
4541
4545
|
};
|
|
4542
|
-
protoOf(AbstractJsonLexer).
|
|
4543
|
-
var processed = this.f1h(0, this.
|
|
4546
|
+
protoOf(AbstractJsonLexer).u5v = function (key) {
|
|
4547
|
+
var processed = this.f1h(0, this.r5o_1);
|
|
4544
4548
|
var lastIndexOf_0 = lastIndexOf(processed, key);
|
|
4545
|
-
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.
|
|
4549
|
+
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.s5o_1.l5t() + "\nUse 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString(minify(this.t5y(), lastIndexOf_0))));
|
|
4546
4550
|
};
|
|
4547
|
-
protoOf(AbstractJsonLexer).
|
|
4551
|
+
protoOf(AbstractJsonLexer).x5s = function (message, position, hint) {
|
|
4548
4552
|
var tmp;
|
|
4549
4553
|
// Inline function 'kotlin.text.isEmpty' call
|
|
4550
4554
|
if (charSequenceLength(hint) === 0) {
|
|
@@ -4553,24 +4557,24 @@
|
|
|
4553
4557
|
tmp = '\n' + hint;
|
|
4554
4558
|
}
|
|
4555
4559
|
var hintMessage = tmp;
|
|
4556
|
-
throw JsonDecodingException_0(position, message + ' at path: ' + this.
|
|
4560
|
+
throw JsonDecodingException_0(position, message + ' at path: ' + this.s5o_1.l5t() + hintMessage, this.t5y());
|
|
4557
4561
|
};
|
|
4558
|
-
protoOf(AbstractJsonLexer).
|
|
4559
|
-
position = position === VOID ? this.
|
|
4562
|
+
protoOf(AbstractJsonLexer).y5s = function (message, position, hint, $super) {
|
|
4563
|
+
position = position === VOID ? this.r5o_1 : position;
|
|
4560
4564
|
hint = hint === VOID ? '' : hint;
|
|
4561
|
-
return $super === VOID ? this.
|
|
4565
|
+
return $super === VOID ? this.x5s(message, position, hint) : $super.x5s.call(this, message, position, hint);
|
|
4562
4566
|
};
|
|
4563
|
-
protoOf(AbstractJsonLexer).
|
|
4564
|
-
var current = this.
|
|
4565
|
-
current = this.
|
|
4566
|
-
if (current >= charSequenceLength(this.
|
|
4567
|
-
this.
|
|
4567
|
+
protoOf(AbstractJsonLexer).f5w = function () {
|
|
4568
|
+
var current = this.w5y();
|
|
4569
|
+
current = this.u5y(current);
|
|
4570
|
+
if (current >= charSequenceLength(this.t5y()) || current === -1) {
|
|
4571
|
+
this.y5s('EOF');
|
|
4568
4572
|
}
|
|
4569
4573
|
var tmp;
|
|
4570
|
-
if (charSequenceGet(this.
|
|
4574
|
+
if (charSequenceGet(this.t5y(), current) === _Char___init__impl__6a9atx(34)) {
|
|
4571
4575
|
current = current + 1 | 0;
|
|
4572
|
-
if (current === charSequenceLength(this.
|
|
4573
|
-
this.
|
|
4576
|
+
if (current === charSequenceLength(this.t5y())) {
|
|
4577
|
+
this.y5s('EOF');
|
|
4574
4578
|
}
|
|
4575
4579
|
tmp = true;
|
|
4576
4580
|
} else {
|
|
@@ -4583,11 +4587,11 @@
|
|
|
4583
4587
|
var isExponentPositive = false;
|
|
4584
4588
|
var hasExponent = false;
|
|
4585
4589
|
var start = current;
|
|
4586
|
-
$l$loop_4: while (!(current === charSequenceLength(this.
|
|
4587
|
-
var ch = charSequenceGet(this.
|
|
4590
|
+
$l$loop_4: while (!(current === charSequenceLength(this.t5y()))) {
|
|
4591
|
+
var ch = charSequenceGet(this.t5y(), current);
|
|
4588
4592
|
if ((ch === _Char___init__impl__6a9atx(101) || ch === _Char___init__impl__6a9atx(69)) && !hasExponent) {
|
|
4589
4593
|
if (current === start) {
|
|
4590
|
-
this.
|
|
4594
|
+
this.y5s('Unexpected symbol ' + toString_1(ch) + ' in numeric literal');
|
|
4591
4595
|
}
|
|
4592
4596
|
isExponentPositive = true;
|
|
4593
4597
|
hasExponent = true;
|
|
@@ -4596,7 +4600,7 @@
|
|
|
4596
4600
|
}
|
|
4597
4601
|
if (ch === _Char___init__impl__6a9atx(45) && hasExponent) {
|
|
4598
4602
|
if (current === start) {
|
|
4599
|
-
this.
|
|
4603
|
+
this.y5s("Unexpected symbol '-' in numeric literal");
|
|
4600
4604
|
}
|
|
4601
4605
|
isExponentPositive = false;
|
|
4602
4606
|
current = current + 1 | 0;
|
|
@@ -4604,7 +4608,7 @@
|
|
|
4604
4608
|
}
|
|
4605
4609
|
if (ch === _Char___init__impl__6a9atx(43) && hasExponent) {
|
|
4606
4610
|
if (current === start) {
|
|
4607
|
-
this.
|
|
4611
|
+
this.y5s("Unexpected symbol '+' in numeric literal");
|
|
4608
4612
|
}
|
|
4609
4613
|
isExponentPositive = true;
|
|
4610
4614
|
current = current + 1 | 0;
|
|
@@ -4612,7 +4616,7 @@
|
|
|
4612
4616
|
}
|
|
4613
4617
|
if (ch === _Char___init__impl__6a9atx(45)) {
|
|
4614
4618
|
if (!(current === start)) {
|
|
4615
|
-
this.
|
|
4619
|
+
this.y5s("Unexpected symbol '-' in numeric literal");
|
|
4616
4620
|
}
|
|
4617
4621
|
isNegative = true;
|
|
4618
4622
|
current = current + 1 | 0;
|
|
@@ -4624,7 +4628,7 @@
|
|
|
4624
4628
|
current = current + 1 | 0;
|
|
4625
4629
|
var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
|
|
4626
4630
|
if (!(0 <= digit ? digit <= 9 : false)) {
|
|
4627
|
-
this.
|
|
4631
|
+
this.y5s("Unexpected symbol '" + toString_1(ch) + "' in numeric literal");
|
|
4628
4632
|
}
|
|
4629
4633
|
if (hasExponent) {
|
|
4630
4634
|
// Inline function 'kotlin.Long.times' call
|
|
@@ -4636,31 +4640,31 @@
|
|
|
4636
4640
|
// Inline function 'kotlin.Long.minus' call
|
|
4637
4641
|
accumulator = accumulator.b3(toLong(10)).a3(toLong(digit));
|
|
4638
4642
|
if (accumulator.e1(new Long(0, 0)) > 0) {
|
|
4639
|
-
this.
|
|
4643
|
+
this.y5s('Numeric value overflow');
|
|
4640
4644
|
}
|
|
4641
4645
|
}
|
|
4642
4646
|
var hasChars = !(current === start);
|
|
4643
4647
|
if (start === current || (isNegative && start === (current - 1 | 0))) {
|
|
4644
|
-
this.
|
|
4648
|
+
this.y5s('Expected numeric literal');
|
|
4645
4649
|
}
|
|
4646
4650
|
if (hasQuotation) {
|
|
4647
4651
|
if (!hasChars) {
|
|
4648
|
-
this.
|
|
4652
|
+
this.y5s('EOF');
|
|
4649
4653
|
}
|
|
4650
|
-
if (!(charSequenceGet(this.
|
|
4651
|
-
this.
|
|
4654
|
+
if (!(charSequenceGet(this.t5y(), current) === _Char___init__impl__6a9atx(34))) {
|
|
4655
|
+
this.y5s('Expected closing quotation mark');
|
|
4652
4656
|
}
|
|
4653
4657
|
current = current + 1 | 0;
|
|
4654
4658
|
}
|
|
4655
|
-
this.
|
|
4659
|
+
this.r5o_1 = current;
|
|
4656
4660
|
if (hasExponent) {
|
|
4657
4661
|
var doubleAccumulator = accumulator.r3() * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive);
|
|
4658
4662
|
if (doubleAccumulator > (new Long(-1, 2147483647)).r3() || doubleAccumulator < (new Long(0, -2147483648)).r3()) {
|
|
4659
|
-
this.
|
|
4663
|
+
this.y5s('Numeric value overflow');
|
|
4660
4664
|
}
|
|
4661
4665
|
// Inline function 'kotlin.math.floor' call
|
|
4662
4666
|
if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
|
|
4663
|
-
this.
|
|
4667
|
+
this.y5s("Can't convert " + doubleAccumulator + ' to Long');
|
|
4664
4668
|
}
|
|
4665
4669
|
accumulator = numberToLong(doubleAccumulator);
|
|
4666
4670
|
}
|
|
@@ -4670,30 +4674,30 @@
|
|
|
4670
4674
|
} else if (!accumulator.equals(new Long(0, -2147483648))) {
|
|
4671
4675
|
tmp_0 = accumulator.g3();
|
|
4672
4676
|
} else {
|
|
4673
|
-
this.
|
|
4677
|
+
this.y5s('Numeric value overflow');
|
|
4674
4678
|
}
|
|
4675
4679
|
return tmp_0;
|
|
4676
4680
|
};
|
|
4677
|
-
protoOf(AbstractJsonLexer).
|
|
4678
|
-
var result = this.
|
|
4679
|
-
var next = this.
|
|
4681
|
+
protoOf(AbstractJsonLexer).w5q = function () {
|
|
4682
|
+
var result = this.f5w();
|
|
4683
|
+
var next = this.i5u();
|
|
4680
4684
|
if (!(next === 10)) {
|
|
4681
4685
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4682
4686
|
var expected = tokenDescription(10);
|
|
4683
|
-
var position = true ? this.
|
|
4684
|
-
var s = this.
|
|
4687
|
+
var position = true ? this.r5o_1 - 1 | 0 : this.r5o_1;
|
|
4688
|
+
var s = this.r5o_1 === charSequenceLength(this.t5y()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.t5y(), position));
|
|
4685
4689
|
var tmp$ret$0 = "Expected input to contain a single valid number, but got '" + s + "' after it";
|
|
4686
|
-
this.
|
|
4690
|
+
this.y5s(tmp$ret$0, position);
|
|
4687
4691
|
}
|
|
4688
4692
|
return result;
|
|
4689
4693
|
};
|
|
4690
|
-
protoOf(AbstractJsonLexer).
|
|
4691
|
-
var current = this.
|
|
4692
|
-
if (current === charSequenceLength(this.
|
|
4693
|
-
this.
|
|
4694
|
+
protoOf(AbstractJsonLexer).e5w = function () {
|
|
4695
|
+
var current = this.w5y();
|
|
4696
|
+
if (current === charSequenceLength(this.t5y())) {
|
|
4697
|
+
this.y5s('EOF');
|
|
4694
4698
|
}
|
|
4695
4699
|
var tmp;
|
|
4696
|
-
if (charSequenceGet(this.
|
|
4700
|
+
if (charSequenceGet(this.t5y(), current) === _Char___init__impl__6a9atx(34)) {
|
|
4697
4701
|
current = current + 1 | 0;
|
|
4698
4702
|
tmp = true;
|
|
4699
4703
|
} else {
|
|
@@ -4702,13 +4706,13 @@
|
|
|
4702
4706
|
var hasQuotation = tmp;
|
|
4703
4707
|
var result = consumeBoolean2(this, current);
|
|
4704
4708
|
if (hasQuotation) {
|
|
4705
|
-
if (this.
|
|
4706
|
-
this.
|
|
4709
|
+
if (this.r5o_1 === charSequenceLength(this.t5y())) {
|
|
4710
|
+
this.y5s('EOF');
|
|
4707
4711
|
}
|
|
4708
|
-
if (!(charSequenceGet(this.
|
|
4709
|
-
this.
|
|
4712
|
+
if (!(charSequenceGet(this.t5y(), this.r5o_1) === _Char___init__impl__6a9atx(34))) {
|
|
4713
|
+
this.y5s('Expected closing quotation mark');
|
|
4710
4714
|
}
|
|
4711
|
-
this.
|
|
4715
|
+
this.r5o_1 = this.r5o_1 + 1 | 0;
|
|
4712
4716
|
}
|
|
4713
4717
|
return result;
|
|
4714
4718
|
};
|
|
@@ -4716,7 +4720,7 @@
|
|
|
4716
4720
|
var tmp;
|
|
4717
4721
|
// Inline function 'kotlin.code' call
|
|
4718
4722
|
if (Char__toInt_impl_vasixd(c) < 126) {
|
|
4719
|
-
var tmp_0 = CharMappings_getInstance().
|
|
4723
|
+
var tmp_0 = CharMappings_getInstance().b5z_1;
|
|
4720
4724
|
// Inline function 'kotlin.code' call
|
|
4721
4725
|
tmp = tmp_0[Char__toInt_impl_vasixd(c)];
|
|
4722
4726
|
} else {
|
|
@@ -4728,7 +4732,7 @@
|
|
|
4728
4732
|
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';
|
|
4729
4733
|
}
|
|
4730
4734
|
function escapeToChar(c) {
|
|
4731
|
-
return c < 117 ? CharMappings_getInstance().
|
|
4735
|
+
return c < 117 ? CharMappings_getInstance().a5z_1[c] : _Char___init__impl__6a9atx(0);
|
|
4732
4736
|
}
|
|
4733
4737
|
function initEscape($this) {
|
|
4734
4738
|
var inductionVariable = 0;
|
|
@@ -4774,7 +4778,7 @@
|
|
|
4774
4778
|
if (!(esc === _Char___init__impl__6a9atx(117))) {
|
|
4775
4779
|
// Inline function 'kotlin.code' call
|
|
4776
4780
|
var tmp$ret$0 = Char__toInt_impl_vasixd(esc);
|
|
4777
|
-
$this.
|
|
4781
|
+
$this.a5z_1[tmp$ret$0] = numberToChar(c);
|
|
4778
4782
|
}
|
|
4779
4783
|
}
|
|
4780
4784
|
function initC2ESC_0($this, c, esc) {
|
|
@@ -4783,7 +4787,7 @@
|
|
|
4783
4787
|
return initC2ESC($this, tmp$ret$0, esc);
|
|
4784
4788
|
}
|
|
4785
4789
|
function initC2TC($this, c, cl) {
|
|
4786
|
-
$this.
|
|
4790
|
+
$this.b5z_1[c] = cl;
|
|
4787
4791
|
}
|
|
4788
4792
|
function initC2TC_0($this, c, cl) {
|
|
4789
4793
|
// Inline function 'kotlin.code' call
|
|
@@ -4792,8 +4796,8 @@
|
|
|
4792
4796
|
}
|
|
4793
4797
|
function CharMappings() {
|
|
4794
4798
|
CharMappings_instance = this;
|
|
4795
|
-
this.
|
|
4796
|
-
this.
|
|
4799
|
+
this.a5z_1 = charArray(117);
|
|
4800
|
+
this.b5z_1 = new Int8Array(126);
|
|
4797
4801
|
initEscape(this);
|
|
4798
4802
|
initCharToToken(this);
|
|
4799
4803
|
}
|
|
@@ -4806,57 +4810,57 @@
|
|
|
4806
4810
|
function StringJsonLexerWithComments(source) {
|
|
4807
4811
|
StringJsonLexer.call(this, source);
|
|
4808
4812
|
}
|
|
4809
|
-
protoOf(StringJsonLexerWithComments).
|
|
4810
|
-
var source = this.
|
|
4811
|
-
var cpos = this.
|
|
4813
|
+
protoOf(StringJsonLexerWithComments).i5u = function () {
|
|
4814
|
+
var source = this.t5y();
|
|
4815
|
+
var cpos = this.w5y();
|
|
4812
4816
|
if (cpos >= source.length || cpos === -1)
|
|
4813
4817
|
return 10;
|
|
4814
|
-
this.
|
|
4815
|
-
return charToTokenClass(
|
|
4818
|
+
this.r5o_1 = cpos + 1 | 0;
|
|
4819
|
+
return charToTokenClass(charCodeAt(source, cpos));
|
|
4816
4820
|
};
|
|
4817
|
-
protoOf(StringJsonLexerWithComments).
|
|
4818
|
-
var current = this.
|
|
4819
|
-
if (current >= this.
|
|
4821
|
+
protoOf(StringJsonLexerWithComments).e5u = function () {
|
|
4822
|
+
var current = this.w5y();
|
|
4823
|
+
if (current >= this.t5y().length || current === -1)
|
|
4820
4824
|
return false;
|
|
4821
|
-
return this.
|
|
4825
|
+
return this.x5y(charCodeAt(this.t5y(), current));
|
|
4822
4826
|
};
|
|
4823
|
-
protoOf(StringJsonLexerWithComments).
|
|
4824
|
-
var source = this.
|
|
4825
|
-
var current = this.
|
|
4827
|
+
protoOf(StringJsonLexerWithComments).q5v = function (expected) {
|
|
4828
|
+
var source = this.t5y();
|
|
4829
|
+
var current = this.w5y();
|
|
4826
4830
|
if (current >= source.length || current === -1) {
|
|
4827
|
-
this.
|
|
4828
|
-
this.
|
|
4831
|
+
this.r5o_1 = -1;
|
|
4832
|
+
this.y5y(expected);
|
|
4829
4833
|
}
|
|
4830
|
-
var c =
|
|
4831
|
-
this.
|
|
4834
|
+
var c = charCodeAt(source, current);
|
|
4835
|
+
this.r5o_1 = current + 1 | 0;
|
|
4832
4836
|
if (c === expected)
|
|
4833
4837
|
return Unit_instance;
|
|
4834
4838
|
else {
|
|
4835
|
-
this.
|
|
4839
|
+
this.y5y(expected);
|
|
4836
4840
|
}
|
|
4837
4841
|
};
|
|
4838
|
-
protoOf(StringJsonLexerWithComments).
|
|
4839
|
-
var source = this.
|
|
4840
|
-
var cpos = this.
|
|
4842
|
+
protoOf(StringJsonLexerWithComments).d5u = function () {
|
|
4843
|
+
var source = this.t5y();
|
|
4844
|
+
var cpos = this.w5y();
|
|
4841
4845
|
if (cpos >= source.length || cpos === -1)
|
|
4842
4846
|
return 10;
|
|
4843
|
-
this.
|
|
4844
|
-
return charToTokenClass(
|
|
4847
|
+
this.r5o_1 = cpos;
|
|
4848
|
+
return charToTokenClass(charCodeAt(source, cpos));
|
|
4845
4849
|
};
|
|
4846
|
-
protoOf(StringJsonLexerWithComments).
|
|
4847
|
-
var current = this.
|
|
4850
|
+
protoOf(StringJsonLexerWithComments).w5y = function () {
|
|
4851
|
+
var current = this.r5o_1;
|
|
4848
4852
|
if (current === -1)
|
|
4849
4853
|
return current;
|
|
4850
|
-
var source = this.
|
|
4854
|
+
var source = this.t5y();
|
|
4851
4855
|
$l$loop_1: while (current < source.length) {
|
|
4852
|
-
var c =
|
|
4856
|
+
var c = charCodeAt(source, current);
|
|
4853
4857
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
4854
4858
|
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)) {
|
|
4855
4859
|
current = current + 1 | 0;
|
|
4856
4860
|
continue $l$loop_1;
|
|
4857
4861
|
}
|
|
4858
4862
|
if (c === _Char___init__impl__6a9atx(47) && (current + 1 | 0) < source.length) {
|
|
4859
|
-
var tmp0_subject =
|
|
4863
|
+
var tmp0_subject = charCodeAt(source, current + 1 | 0);
|
|
4860
4864
|
if (tmp0_subject === _Char___init__impl__6a9atx(47)) {
|
|
4861
4865
|
current = indexOf_0(source, _Char___init__impl__6a9atx(10), current + 2 | 0);
|
|
4862
4866
|
if (current === -1) {
|
|
@@ -4868,8 +4872,8 @@
|
|
|
4868
4872
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(42)) {
|
|
4869
4873
|
current = indexOf(source, '*/', current + 2 | 0);
|
|
4870
4874
|
if (current === -1) {
|
|
4871
|
-
this.
|
|
4872
|
-
this.
|
|
4875
|
+
this.r5o_1 = source.length;
|
|
4876
|
+
this.y5s('Expected end of the block comment: "*/", but had EOF instead');
|
|
4873
4877
|
} else {
|
|
4874
4878
|
current = current + 2 | 0;
|
|
4875
4879
|
}
|
|
@@ -4878,60 +4882,60 @@
|
|
|
4878
4882
|
}
|
|
4879
4883
|
break $l$loop_1;
|
|
4880
4884
|
}
|
|
4881
|
-
this.
|
|
4885
|
+
this.r5o_1 = current;
|
|
4882
4886
|
return current;
|
|
4883
4887
|
};
|
|
4884
4888
|
function StringJsonLexer(source) {
|
|
4885
4889
|
AbstractJsonLexer.call(this);
|
|
4886
|
-
this.
|
|
4890
|
+
this.l5z_1 = source;
|
|
4887
4891
|
}
|
|
4888
|
-
protoOf(StringJsonLexer).
|
|
4889
|
-
return this.
|
|
4892
|
+
protoOf(StringJsonLexer).t5y = function () {
|
|
4893
|
+
return this.l5z_1;
|
|
4890
4894
|
};
|
|
4891
|
-
protoOf(StringJsonLexer).
|
|
4892
|
-
return position < this.
|
|
4895
|
+
protoOf(StringJsonLexer).u5y = function (position) {
|
|
4896
|
+
return position < this.t5y().length ? position : -1;
|
|
4893
4897
|
};
|
|
4894
|
-
protoOf(StringJsonLexer).
|
|
4895
|
-
var source = this.
|
|
4896
|
-
var cpos = this.
|
|
4898
|
+
protoOf(StringJsonLexer).i5u = function () {
|
|
4899
|
+
var source = this.t5y();
|
|
4900
|
+
var cpos = this.r5o_1;
|
|
4897
4901
|
$l$loop: while (!(cpos === -1) && cpos < source.length) {
|
|
4898
4902
|
var _unary__edvuaz = cpos;
|
|
4899
4903
|
cpos = _unary__edvuaz + 1 | 0;
|
|
4900
|
-
var c =
|
|
4904
|
+
var c = charCodeAt(source, _unary__edvuaz);
|
|
4901
4905
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
4902
4906
|
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))
|
|
4903
4907
|
continue $l$loop;
|
|
4904
|
-
this.
|
|
4908
|
+
this.r5o_1 = cpos;
|
|
4905
4909
|
return charToTokenClass(c);
|
|
4906
4910
|
}
|
|
4907
|
-
this.
|
|
4911
|
+
this.r5o_1 = source.length;
|
|
4908
4912
|
return 10;
|
|
4909
4913
|
};
|
|
4910
|
-
protoOf(StringJsonLexer).
|
|
4911
|
-
var current = this.
|
|
4914
|
+
protoOf(StringJsonLexer).e5u = function () {
|
|
4915
|
+
var current = this.r5o_1;
|
|
4912
4916
|
if (current === -1)
|
|
4913
4917
|
return false;
|
|
4914
|
-
var source = this.
|
|
4918
|
+
var source = this.t5y();
|
|
4915
4919
|
$l$loop: while (current < source.length) {
|
|
4916
|
-
var c =
|
|
4920
|
+
var c = charCodeAt(source, current);
|
|
4917
4921
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
4918
4922
|
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)) {
|
|
4919
4923
|
current = current + 1 | 0;
|
|
4920
4924
|
continue $l$loop;
|
|
4921
4925
|
}
|
|
4922
|
-
this.
|
|
4923
|
-
return this.
|
|
4926
|
+
this.r5o_1 = current;
|
|
4927
|
+
return this.x5y(c);
|
|
4924
4928
|
}
|
|
4925
|
-
this.
|
|
4929
|
+
this.r5o_1 = current;
|
|
4926
4930
|
return false;
|
|
4927
4931
|
};
|
|
4928
|
-
protoOf(StringJsonLexer).
|
|
4929
|
-
var current = this.
|
|
4932
|
+
protoOf(StringJsonLexer).w5y = function () {
|
|
4933
|
+
var current = this.r5o_1;
|
|
4930
4934
|
if (current === -1)
|
|
4931
4935
|
return current;
|
|
4932
|
-
var source = this.
|
|
4936
|
+
var source = this.t5y();
|
|
4933
4937
|
$l$loop: while (current < source.length) {
|
|
4934
|
-
var c =
|
|
4938
|
+
var c = charCodeAt(source, current);
|
|
4935
4939
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
4936
4940
|
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)) {
|
|
4937
4941
|
current = current + 1 | 0;
|
|
@@ -4939,101 +4943,99 @@
|
|
|
4939
4943
|
break $l$loop;
|
|
4940
4944
|
}
|
|
4941
4945
|
}
|
|
4942
|
-
this.
|
|
4946
|
+
this.r5o_1 = current;
|
|
4943
4947
|
return current;
|
|
4944
4948
|
};
|
|
4945
|
-
protoOf(StringJsonLexer).
|
|
4946
|
-
if (this.
|
|
4947
|
-
this.
|
|
4949
|
+
protoOf(StringJsonLexer).q5v = function (expected) {
|
|
4950
|
+
if (this.r5o_1 === -1) {
|
|
4951
|
+
this.y5y(expected);
|
|
4948
4952
|
}
|
|
4949
|
-
var source = this.
|
|
4950
|
-
var cpos = this.
|
|
4953
|
+
var source = this.t5y();
|
|
4954
|
+
var cpos = this.r5o_1;
|
|
4951
4955
|
$l$loop: while (cpos < source.length) {
|
|
4952
4956
|
var _unary__edvuaz = cpos;
|
|
4953
4957
|
cpos = _unary__edvuaz + 1 | 0;
|
|
4954
|
-
var c =
|
|
4958
|
+
var c = charCodeAt(source, _unary__edvuaz);
|
|
4955
4959
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
4956
4960
|
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))
|
|
4957
4961
|
continue $l$loop;
|
|
4958
|
-
this.
|
|
4962
|
+
this.r5o_1 = cpos;
|
|
4959
4963
|
if (c === expected)
|
|
4960
4964
|
return Unit_instance;
|
|
4961
|
-
this.
|
|
4965
|
+
this.y5y(expected);
|
|
4962
4966
|
}
|
|
4963
|
-
this.
|
|
4964
|
-
this.
|
|
4967
|
+
this.r5o_1 = -1;
|
|
4968
|
+
this.y5y(expected);
|
|
4965
4969
|
};
|
|
4966
|
-
protoOf(StringJsonLexer).
|
|
4967
|
-
this.
|
|
4968
|
-
var current = this.
|
|
4969
|
-
var closingQuote = indexOf_0(this.
|
|
4970
|
+
protoOf(StringJsonLexer).w5v = function () {
|
|
4971
|
+
this.q5v(_Char___init__impl__6a9atx(34));
|
|
4972
|
+
var current = this.r5o_1;
|
|
4973
|
+
var closingQuote = indexOf_0(this.t5y(), _Char___init__impl__6a9atx(34), current);
|
|
4970
4974
|
if (closingQuote === -1) {
|
|
4971
|
-
this.
|
|
4975
|
+
this.g5u();
|
|
4972
4976
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4973
4977
|
var expected = tokenDescription(1);
|
|
4974
|
-
var position = false ? this.
|
|
4975
|
-
var s = this.
|
|
4978
|
+
var position = false ? this.r5o_1 - 1 | 0 : this.r5o_1;
|
|
4979
|
+
var s = this.r5o_1 === charSequenceLength(this.t5y()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.t5y(), position));
|
|
4976
4980
|
var tmp$ret$0 = 'Expected ' + expected + ", but had '" + s + "' instead";
|
|
4977
|
-
this.
|
|
4981
|
+
this.y5s(tmp$ret$0, position);
|
|
4978
4982
|
}
|
|
4979
4983
|
var inductionVariable = current;
|
|
4980
4984
|
if (inductionVariable < closingQuote)
|
|
4981
4985
|
do {
|
|
4982
4986
|
var i = inductionVariable;
|
|
4983
4987
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4984
|
-
if (
|
|
4985
|
-
return this.consumeString2(this.
|
|
4988
|
+
if (charCodeAt(this.t5y(), i) === _Char___init__impl__6a9atx(92)) {
|
|
4989
|
+
return this.consumeString2(this.t5y(), this.r5o_1, i);
|
|
4986
4990
|
}
|
|
4987
4991
|
}
|
|
4988
4992
|
while (inductionVariable < closingQuote);
|
|
4989
|
-
this.
|
|
4990
|
-
|
|
4991
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
4992
|
-
return this.s5y().substring(current, closingQuote);
|
|
4993
|
+
this.r5o_1 = closingQuote + 1 | 0;
|
|
4994
|
+
return substring(this.t5y(), current, closingQuote);
|
|
4993
4995
|
};
|
|
4994
|
-
protoOf(StringJsonLexer).
|
|
4995
|
-
var positionSnapshot = this.
|
|
4996
|
+
protoOf(StringJsonLexer).y5v = function (keyToMatch, isLenient) {
|
|
4997
|
+
var positionSnapshot = this.r5o_1;
|
|
4996
4998
|
try {
|
|
4997
|
-
if (!(this.
|
|
4999
|
+
if (!(this.i5u() === 6))
|
|
4998
5000
|
return null;
|
|
4999
|
-
var firstKey = this.
|
|
5001
|
+
var firstKey = this.t5v(isLenient);
|
|
5000
5002
|
if (!(firstKey === keyToMatch))
|
|
5001
5003
|
return null;
|
|
5002
|
-
this.
|
|
5003
|
-
if (!(this.
|
|
5004
|
+
this.z5y();
|
|
5005
|
+
if (!(this.i5u() === 5))
|
|
5004
5006
|
return null;
|
|
5005
|
-
return this.
|
|
5007
|
+
return this.t5v(isLenient);
|
|
5006
5008
|
}finally {
|
|
5007
|
-
this.
|
|
5008
|
-
this.
|
|
5009
|
+
this.r5o_1 = positionSnapshot;
|
|
5010
|
+
this.z5y();
|
|
5009
5011
|
}
|
|
5010
5012
|
};
|
|
5011
5013
|
function StringJsonLexer_0(json, source) {
|
|
5012
|
-
return !json.
|
|
5014
|
+
return !json.e5o_1.e5q_1 ? new StringJsonLexer(source) : new StringJsonLexerWithComments(source);
|
|
5013
5015
|
}
|
|
5014
5016
|
function get_schemaCache(_this__u8e3s4) {
|
|
5015
|
-
return _this__u8e3s4.
|
|
5017
|
+
return _this__u8e3s4.g5o_1;
|
|
5016
5018
|
}
|
|
5017
5019
|
function JsonToStringWriter() {
|
|
5018
|
-
this.
|
|
5020
|
+
this.i5o_1 = StringBuilder_init_$Create$_0(128);
|
|
5019
5021
|
}
|
|
5020
|
-
protoOf(JsonToStringWriter).
|
|
5021
|
-
this.
|
|
5022
|
+
protoOf(JsonToStringWriter).c5s = function (value) {
|
|
5023
|
+
this.i5o_1.ed(value);
|
|
5022
5024
|
};
|
|
5023
|
-
protoOf(JsonToStringWriter).
|
|
5024
|
-
this.
|
|
5025
|
+
protoOf(JsonToStringWriter).w5r = function (char) {
|
|
5026
|
+
this.i5o_1.s8(char);
|
|
5025
5027
|
};
|
|
5026
|
-
protoOf(JsonToStringWriter).
|
|
5027
|
-
this.
|
|
5028
|
+
protoOf(JsonToStringWriter).y5r = function (text) {
|
|
5029
|
+
this.i5o_1.r8(text);
|
|
5028
5030
|
};
|
|
5029
|
-
protoOf(JsonToStringWriter).
|
|
5030
|
-
printQuoted(this.
|
|
5031
|
+
protoOf(JsonToStringWriter).i5s = function (text) {
|
|
5032
|
+
printQuoted(this.i5o_1, text);
|
|
5031
5033
|
};
|
|
5032
5034
|
protoOf(JsonToStringWriter).q1e = function () {
|
|
5033
|
-
this.
|
|
5035
|
+
this.i5o_1.hd();
|
|
5034
5036
|
};
|
|
5035
5037
|
protoOf(JsonToStringWriter).toString = function () {
|
|
5036
|
-
return this.
|
|
5038
|
+
return this.i5o_1.toString();
|
|
5037
5039
|
};
|
|
5038
5040
|
function createMapForCache(initialCapacity) {
|
|
5039
5041
|
return HashMap_init_$Create$(initialCapacity);
|