mrs-toolbox-cli 0.0.87 → 0.0.90

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