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