git-digger 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +5138 -0
  2. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  3. package/kotlin/bin/digger +3 -0
  4. package/kotlin/clikt-clikt.js +6305 -0
  5. package/kotlin/clikt-clikt.js.map +1 -0
  6. package/kotlin/colormath-root-colormath.js +1628 -0
  7. package/kotlin/colormath-root-colormath.js.map +1 -0
  8. package/kotlin/kotlin-kotlin-stdlib.js +11335 -0
  9. package/kotlin/kotlin-kotlin-stdlib.js.map +1 -0
  10. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
  11. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +3460 -0
  13. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  14. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1137 -0
  15. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  16. package/kotlin/markdown.js +6759 -0
  17. package/kotlin/markdown.js.map +1 -0
  18. package/kotlin/mordant-mordant.js +11999 -0
  19. package/kotlin/mordant-mordant.js.map +1 -0
  20. package/kotlin/tools-digger-cli.js +568 -0
  21. package/kotlin/tools-digger-cli.js.map +1 -0
  22. package/kotlin/tools-digger-core.js +657 -0
  23. package/kotlin/tools-digger-core.js.map +1 -0
  24. package/kotlin/tools-digger-json.js +253 -0
  25. package/kotlin/tools-digger-json.js.map +1 -0
  26. package/kotlin/tools-digger-model.js +106 -0
  27. package/kotlin/tools-digger-model.js.map +1 -0
  28. package/kotlin/tools-git-adapter.js +233 -0
  29. package/kotlin/tools-git-adapter.js.map +1 -0
  30. package/package.json +31 -0
@@ -0,0 +1,1137 @@
1
+ (function (_, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_kotlin) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var EmptySerializersModule = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
5
+ var protoOf = kotlin_kotlin.$_$.y8;
6
+ var objectMeta = kotlin_kotlin.$_$.x8;
7
+ var setMetadataFor = kotlin_kotlin.$_$.z8;
8
+ var Unit_instance = kotlin_kotlin.$_$.l3;
9
+ var classMeta = kotlin_kotlin.$_$.u7;
10
+ var VOID = kotlin_kotlin.$_$.g;
11
+ var Enum = kotlin_kotlin.$_$.bc;
12
+ var StringCompanionObject_instance = kotlin_kotlin.$_$.b3;
13
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
14
+ var InlinePrimitiveDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
15
+ var toLong = kotlin_kotlin.$_$.a9;
16
+ var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.g2;
17
+ var UInt__toString_impl_dbgl21 = kotlin_kotlin.$_$.i2;
18
+ var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.l2;
19
+ var ULong__toString_impl_f9au7k = kotlin_kotlin.$_$.n2;
20
+ var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.b2;
21
+ var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.d2;
22
+ var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.q2;
23
+ var UShort__toString_impl_edaoee = kotlin_kotlin.$_$.s2;
24
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s1;
25
+ var captureStack = kotlin_kotlin.$_$.o7;
26
+ var toString = kotlin_kotlin.$_$.b9;
27
+ var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
28
+ var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
29
+ var charSequenceLength = kotlin_kotlin.$_$.s7;
30
+ var charSequenceSubSequence = kotlin_kotlin.$_$.t7;
31
+ var coerceAtLeast = kotlin_kotlin.$_$.g9;
32
+ var coerceAtMost = kotlin_kotlin.$_$.i9;
33
+ var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
34
+ var equals = kotlin_kotlin.$_$.w7;
35
+ var fillArrayVal = kotlin_kotlin.$_$.x7;
36
+ var SealedClassSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1;
37
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j1;
38
+ var jsonCachedSerialNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
39
+ var ENUM = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
40
+ var PrimitiveKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
41
+ var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
42
+ var THROW_CCE = kotlin_kotlin.$_$.jc;
43
+ var objectCreate = kotlin_kotlin.$_$.w8;
44
+ var ensureNotNull = kotlin_kotlin.$_$.xc;
45
+ var AbstractEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
46
+ var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
47
+ var OBJECT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
48
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.cd;
49
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.f1;
50
+ var findPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1;
51
+ var SerializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1;
52
+ var isInterface = kotlin_kotlin.$_$.m8;
53
+ var isFinite = kotlin_kotlin.$_$.zc;
54
+ var isFinite_0 = kotlin_kotlin.$_$.yc;
55
+ var toString_0 = kotlin_kotlin.$_$.w1;
56
+ var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
57
+ var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
58
+ var Companion_getInstance = kotlin_kotlin.$_$.i3;
59
+ var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
60
+ var Companion_getInstance_0 = kotlin_kotlin.$_$.j3;
61
+ var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
62
+ var Companion_getInstance_1 = kotlin_kotlin.$_$.h3;
63
+ var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
64
+ var Companion_getInstance_2 = kotlin_kotlin.$_$.k3;
65
+ var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
66
+ var setOf = kotlin_kotlin.$_$.i6;
67
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.v1;
68
+ var numberToChar = kotlin_kotlin.$_$.s8;
69
+ var charSequenceGet = kotlin_kotlin.$_$.r7;
70
+ var enumEntries = kotlin_kotlin.$_$.i7;
71
+ var ENUM_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
72
+ var MAP_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
73
+ var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
74
+ var getContextualDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
75
+ var CONTEXTUAL_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
76
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.w;
77
+ var HashMap_init_$Create$ = kotlin_kotlin.$_$.n;
78
+ //endregion
79
+ //region block: pre-declaration
80
+ setMetadataFor(Json, 'Json', classMeta);
81
+ setMetadataFor(Default, 'Default', objectMeta, Json);
82
+ setMetadataFor(JsonClassDiscriminator, 'JsonClassDiscriminator', classMeta);
83
+ setMetadataFor(JsonConfiguration, 'JsonConfiguration', classMeta);
84
+ setMetadataFor(ClassDiscriminatorMode, 'ClassDiscriminatorMode', classMeta, Enum);
85
+ setMetadataFor(Composer, 'Composer', classMeta);
86
+ setMetadataFor(ComposerForUnsignedNumbers, 'ComposerForUnsignedNumbers', classMeta, Composer);
87
+ setMetadataFor(ComposerForUnquotedLiterals, 'ComposerForUnquotedLiterals', classMeta, Composer);
88
+ setMetadataFor(ComposerWithPrettyPrint, 'ComposerWithPrettyPrint', classMeta, Composer);
89
+ setMetadataFor(JsonException, 'JsonException', classMeta, SerializationException);
90
+ setMetadataFor(JsonEncodingException, 'JsonEncodingException', classMeta, JsonException);
91
+ setMetadataFor(Key, 'Key', classMeta, VOID, VOID, Key);
92
+ setMetadataFor(DescriptorSchemaCache, 'DescriptorSchemaCache', classMeta, VOID, VOID, DescriptorSchemaCache);
93
+ setMetadataFor(StreamingJsonEncoder, 'StreamingJsonEncoder', classMeta, AbstractEncoder, [Encoder, CompositeEncoder, AbstractEncoder]);
94
+ setMetadataFor(WriteMode, 'WriteMode', classMeta, Enum);
95
+ setMetadataFor(JsonToStringWriter, 'JsonToStringWriter', classMeta, VOID, VOID, JsonToStringWriter);
96
+ //endregion
97
+ function Default() {
98
+ Default_instance = this;
99
+ Json.call(this, new JsonConfiguration(), EmptySerializersModule());
100
+ }
101
+ var Default_instance;
102
+ function Default_getInstance() {
103
+ if (Default_instance == null)
104
+ new Default();
105
+ return Default_instance;
106
+ }
107
+ function Json(configuration, serializersModule) {
108
+ Default_getInstance();
109
+ this.b19_1 = configuration;
110
+ this.c19_1 = serializersModule;
111
+ this.d19_1 = new DescriptorSchemaCache();
112
+ }
113
+ protoOf(Json).mk = function () {
114
+ return this.c19_1;
115
+ };
116
+ protoOf(Json).e19 = function (serializer, value) {
117
+ var result = new JsonToStringWriter();
118
+ try {
119
+ encodeByWriter(this, result, serializer, value);
120
+ return result.toString();
121
+ }finally {
122
+ result.g19();
123
+ }
124
+ };
125
+ function JsonClassDiscriminator() {
126
+ }
127
+ function JsonConfiguration(encodeDefaults, ignoreUnknownKeys, isLenient, allowStructuredMapKeys, prettyPrint, explicitNulls, prettyPrintIndent, coerceInputValues, useArrayPolymorphism, classDiscriminator, allowSpecialFloatingPointValues, useAlternativeNames, namingStrategy, decodeEnumsCaseInsensitive, allowTrailingComma, classDiscriminatorMode) {
128
+ encodeDefaults = encodeDefaults === VOID ? false : encodeDefaults;
129
+ ignoreUnknownKeys = ignoreUnknownKeys === VOID ? false : ignoreUnknownKeys;
130
+ isLenient = isLenient === VOID ? false : isLenient;
131
+ allowStructuredMapKeys = allowStructuredMapKeys === VOID ? false : allowStructuredMapKeys;
132
+ prettyPrint = prettyPrint === VOID ? false : prettyPrint;
133
+ explicitNulls = explicitNulls === VOID ? true : explicitNulls;
134
+ prettyPrintIndent = prettyPrintIndent === VOID ? ' ' : prettyPrintIndent;
135
+ coerceInputValues = coerceInputValues === VOID ? false : coerceInputValues;
136
+ useArrayPolymorphism = useArrayPolymorphism === VOID ? false : useArrayPolymorphism;
137
+ classDiscriminator = classDiscriminator === VOID ? 'type' : classDiscriminator;
138
+ allowSpecialFloatingPointValues = allowSpecialFloatingPointValues === VOID ? false : allowSpecialFloatingPointValues;
139
+ useAlternativeNames = useAlternativeNames === VOID ? true : useAlternativeNames;
140
+ namingStrategy = namingStrategy === VOID ? null : namingStrategy;
141
+ decodeEnumsCaseInsensitive = decodeEnumsCaseInsensitive === VOID ? false : decodeEnumsCaseInsensitive;
142
+ allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
143
+ classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
144
+ this.h19_1 = encodeDefaults;
145
+ this.i19_1 = ignoreUnknownKeys;
146
+ this.j19_1 = isLenient;
147
+ this.k19_1 = allowStructuredMapKeys;
148
+ this.l19_1 = prettyPrint;
149
+ this.m19_1 = explicitNulls;
150
+ this.n19_1 = prettyPrintIndent;
151
+ this.o19_1 = coerceInputValues;
152
+ this.p19_1 = useArrayPolymorphism;
153
+ this.q19_1 = classDiscriminator;
154
+ this.r19_1 = allowSpecialFloatingPointValues;
155
+ this.s19_1 = useAlternativeNames;
156
+ this.t19_1 = namingStrategy;
157
+ this.u19_1 = decodeEnumsCaseInsensitive;
158
+ this.v19_1 = allowTrailingComma;
159
+ this.w19_1 = classDiscriminatorMode;
160
+ }
161
+ protoOf(JsonConfiguration).toString = function () {
162
+ return 'JsonConfiguration(encodeDefaults=' + this.h19_1 + ', ignoreUnknownKeys=' + this.i19_1 + ', isLenient=' + this.j19_1 + ', ' + ('allowStructuredMapKeys=' + this.k19_1 + ', prettyPrint=' + this.l19_1 + ', explicitNulls=' + this.m19_1 + ', ') + ("prettyPrintIndent='" + this.n19_1 + "', coerceInputValues=" + this.o19_1 + ', useArrayPolymorphism=' + this.p19_1 + ', ') + ("classDiscriminator='" + this.q19_1 + "', allowSpecialFloatingPointValues=" + this.r19_1 + ', ') + ('useAlternativeNames=' + this.s19_1 + ', namingStrategy=' + this.t19_1 + ', decodeEnumsCaseInsensitive=' + this.u19_1 + ', ') + ('allowTrailingComma=' + this.v19_1 + ', classDiscriminatorMode=' + this.w19_1 + ')');
163
+ };
164
+ var ClassDiscriminatorMode_NONE_instance;
165
+ var ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance;
166
+ var ClassDiscriminatorMode_POLYMORPHIC_instance;
167
+ var ClassDiscriminatorMode_entriesInitialized;
168
+ function ClassDiscriminatorMode_initEntries() {
169
+ if (ClassDiscriminatorMode_entriesInitialized)
170
+ return Unit_instance;
171
+ ClassDiscriminatorMode_entriesInitialized = true;
172
+ ClassDiscriminatorMode_NONE_instance = new ClassDiscriminatorMode('NONE', 0);
173
+ ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance = new ClassDiscriminatorMode('ALL_JSON_OBJECTS', 1);
174
+ ClassDiscriminatorMode_POLYMORPHIC_instance = new ClassDiscriminatorMode('POLYMORPHIC', 2);
175
+ }
176
+ function ClassDiscriminatorMode(name, ordinal) {
177
+ Enum.call(this, name, ordinal);
178
+ }
179
+ function ClassDiscriminatorMode_NONE_getInstance() {
180
+ ClassDiscriminatorMode_initEntries();
181
+ return ClassDiscriminatorMode_NONE_instance;
182
+ }
183
+ function ClassDiscriminatorMode_POLYMORPHIC_getInstance() {
184
+ ClassDiscriminatorMode_initEntries();
185
+ return ClassDiscriminatorMode_POLYMORPHIC_instance;
186
+ }
187
+ function get_jsonUnquotedLiteralDescriptor() {
188
+ _init_properties_JsonElement_kt__7cbdc2();
189
+ return jsonUnquotedLiteralDescriptor;
190
+ }
191
+ var jsonUnquotedLiteralDescriptor;
192
+ var properties_initialized_JsonElement_kt_abxy8s;
193
+ function _init_properties_JsonElement_kt__7cbdc2() {
194
+ if (!properties_initialized_JsonElement_kt_abxy8s) {
195
+ properties_initialized_JsonElement_kt_abxy8s = true;
196
+ jsonUnquotedLiteralDescriptor = InlinePrimitiveDescriptor('kotlinx.serialization.json.JsonUnquotedLiteral', serializer(StringCompanionObject_instance));
197
+ }
198
+ }
199
+ function Composer(writer) {
200
+ this.x19_1 = writer;
201
+ this.y19_1 = true;
202
+ }
203
+ protoOf(Composer).z19 = function () {
204
+ this.y19_1 = true;
205
+ };
206
+ protoOf(Composer).a1a = function () {
207
+ return Unit_instance;
208
+ };
209
+ protoOf(Composer).b1a = function () {
210
+ this.y19_1 = false;
211
+ };
212
+ protoOf(Composer).c1a = function () {
213
+ this.y19_1 = false;
214
+ };
215
+ protoOf(Composer).d1a = function () {
216
+ return Unit_instance;
217
+ };
218
+ protoOf(Composer).e1a = function (v) {
219
+ return this.x19_1.f1a(v);
220
+ };
221
+ protoOf(Composer).g1a = function (v) {
222
+ return this.x19_1.h1a(v);
223
+ };
224
+ protoOf(Composer).i1a = function (v) {
225
+ return this.x19_1.h1a(v.toString());
226
+ };
227
+ protoOf(Composer).j1a = function (v) {
228
+ return this.x19_1.h1a(v.toString());
229
+ };
230
+ protoOf(Composer).k1a = function (v) {
231
+ return this.x19_1.l1a(toLong(v));
232
+ };
233
+ protoOf(Composer).m1a = function (v) {
234
+ return this.x19_1.l1a(toLong(v));
235
+ };
236
+ protoOf(Composer).n1a = function (v) {
237
+ return this.x19_1.l1a(toLong(v));
238
+ };
239
+ protoOf(Composer).o1a = function (v) {
240
+ return this.x19_1.l1a(v);
241
+ };
242
+ protoOf(Composer).p1a = function (v) {
243
+ return this.x19_1.h1a(v.toString());
244
+ };
245
+ protoOf(Composer).q1a = function (value) {
246
+ return this.x19_1.r1a(value);
247
+ };
248
+ function Composer_0(sb, json) {
249
+ return json.b19_1.l19_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
250
+ }
251
+ function ComposerForUnsignedNumbers(writer, forceQuoting) {
252
+ Composer.call(this, writer);
253
+ this.u1a_1 = forceQuoting;
254
+ }
255
+ protoOf(ComposerForUnsignedNumbers).n1a = function (v) {
256
+ if (this.u1a_1) {
257
+ // Inline function 'kotlin.toUInt' call
258
+ var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
259
+ this.q1a(UInt__toString_impl_dbgl21(tmp$ret$0));
260
+ } else {
261
+ // Inline function 'kotlin.toUInt' call
262
+ var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
263
+ this.g1a(UInt__toString_impl_dbgl21(tmp$ret$1));
264
+ }
265
+ };
266
+ protoOf(ComposerForUnsignedNumbers).o1a = function (v) {
267
+ if (this.u1a_1) {
268
+ // Inline function 'kotlin.toULong' call
269
+ var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
270
+ this.q1a(ULong__toString_impl_f9au7k(tmp$ret$0));
271
+ } else {
272
+ // Inline function 'kotlin.toULong' call
273
+ var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
274
+ this.g1a(ULong__toString_impl_f9au7k(tmp$ret$1));
275
+ }
276
+ };
277
+ protoOf(ComposerForUnsignedNumbers).k1a = function (v) {
278
+ if (this.u1a_1) {
279
+ // Inline function 'kotlin.toUByte' call
280
+ var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
281
+ this.q1a(UByte__toString_impl_v72jg(tmp$ret$0));
282
+ } else {
283
+ // Inline function 'kotlin.toUByte' call
284
+ var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
285
+ this.g1a(UByte__toString_impl_v72jg(tmp$ret$1));
286
+ }
287
+ };
288
+ protoOf(ComposerForUnsignedNumbers).m1a = function (v) {
289
+ if (this.u1a_1) {
290
+ // Inline function 'kotlin.toUShort' call
291
+ var tmp$ret$0 = _UShort___init__impl__jigrne(v);
292
+ this.q1a(UShort__toString_impl_edaoee(tmp$ret$0));
293
+ } else {
294
+ // Inline function 'kotlin.toUShort' call
295
+ var tmp$ret$1 = _UShort___init__impl__jigrne(v);
296
+ this.g1a(UShort__toString_impl_edaoee(tmp$ret$1));
297
+ }
298
+ };
299
+ function ComposerForUnquotedLiterals(writer, forceQuoting) {
300
+ Composer.call(this, writer);
301
+ this.x1a_1 = forceQuoting;
302
+ }
303
+ protoOf(ComposerForUnquotedLiterals).q1a = function (value) {
304
+ if (this.x1a_1) {
305
+ protoOf(Composer).q1a.call(this, value);
306
+ } else {
307
+ protoOf(Composer).g1a.call(this, value);
308
+ }
309
+ };
310
+ function ComposerWithPrettyPrint(writer, json) {
311
+ Composer.call(this, writer);
312
+ this.a1b_1 = json;
313
+ this.b1b_1 = 0;
314
+ }
315
+ protoOf(ComposerWithPrettyPrint).z19 = function () {
316
+ this.y19_1 = true;
317
+ this.b1b_1 = this.b1b_1 + 1 | 0;
318
+ };
319
+ protoOf(ComposerWithPrettyPrint).a1a = function () {
320
+ this.b1b_1 = this.b1b_1 - 1 | 0;
321
+ };
322
+ protoOf(ComposerWithPrettyPrint).b1a = function () {
323
+ this.y19_1 = false;
324
+ this.g1a('\n');
325
+ // Inline function 'kotlin.repeat' call
326
+ var times = this.b1b_1;
327
+ // Inline function 'kotlin.contracts.contract' call
328
+ var inductionVariable = 0;
329
+ if (inductionVariable < times)
330
+ do {
331
+ var index = inductionVariable;
332
+ inductionVariable = inductionVariable + 1 | 0;
333
+ // Inline function 'kotlinx.serialization.json.internal.ComposerWithPrettyPrint.nextItem.<anonymous>' call
334
+ this.g1a(this.a1b_1.b19_1.n19_1);
335
+ }
336
+ while (inductionVariable < times);
337
+ };
338
+ protoOf(ComposerWithPrettyPrint).c1a = function () {
339
+ if (this.y19_1)
340
+ this.y19_1 = false;
341
+ else {
342
+ this.b1a();
343
+ }
344
+ };
345
+ protoOf(ComposerWithPrettyPrint).d1a = function () {
346
+ this.e1a(_Char___init__impl__6a9atx(32));
347
+ };
348
+ function JsonEncodingException(message) {
349
+ JsonException.call(this, message);
350
+ captureStack(this, JsonEncodingException);
351
+ }
352
+ function InvalidKeyKindException(keyDescriptor) {
353
+ return new JsonEncodingException("Value of type '" + keyDescriptor.ii() + "' 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.mi() + "'.\n") + get_allowStructuredMapKeysHint());
354
+ }
355
+ function InvalidFloatingPointEncoded(value, output) {
356
+ 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)));
357
+ }
358
+ function JsonException(message) {
359
+ SerializationException_init_$Init$(message, this);
360
+ captureStack(this, JsonException);
361
+ }
362
+ function minify(_this__u8e3s4, offset) {
363
+ offset = offset === VOID ? -1 : offset;
364
+ if (charSequenceLength(_this__u8e3s4) < 200)
365
+ return _this__u8e3s4;
366
+ if (offset === -1) {
367
+ var start = charSequenceLength(_this__u8e3s4) - 60 | 0;
368
+ if (start <= 0)
369
+ return _this__u8e3s4;
370
+ // Inline function 'kotlin.text.substring' call
371
+ var endIndex = charSequenceLength(_this__u8e3s4);
372
+ return '.....' + toString(charSequenceSubSequence(_this__u8e3s4, start, endIndex));
373
+ }
374
+ var start_0 = offset - 30 | 0;
375
+ var end = offset + 30 | 0;
376
+ var prefix = start_0 <= 0 ? '' : '.....';
377
+ var suffix = end >= charSequenceLength(_this__u8e3s4) ? '' : '.....';
378
+ // Inline function 'kotlin.text.substring' call
379
+ var startIndex = coerceAtLeast(start_0, 0);
380
+ var endIndex_0 = coerceAtMost(end, charSequenceLength(_this__u8e3s4));
381
+ return prefix + toString(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex_0)) + suffix;
382
+ }
383
+ var JsonDeserializationNamesKey;
384
+ function get_JsonSerializationNamesKey() {
385
+ _init_properties_JsonNamesMap_kt__cbbp0k();
386
+ return JsonSerializationNamesKey;
387
+ }
388
+ var JsonSerializationNamesKey;
389
+ function getJsonElementName(_this__u8e3s4, json, index) {
390
+ _init_properties_JsonNamesMap_kt__cbbp0k();
391
+ var strategy = namingStrategy(_this__u8e3s4, json);
392
+ return strategy == null ? _this__u8e3s4.oi(index) : serializationNamesIndices(_this__u8e3s4, json, strategy)[index];
393
+ }
394
+ function namingStrategy(_this__u8e3s4, json) {
395
+ _init_properties_JsonNamesMap_kt__cbbp0k();
396
+ return equals(_this__u8e3s4.mi(), CLASS_getInstance()) ? json.b19_1.t19_1 : null;
397
+ }
398
+ function serializationNamesIndices(_this__u8e3s4, json, strategy) {
399
+ _init_properties_JsonNamesMap_kt__cbbp0k();
400
+ var tmp = get_schemaCache(json);
401
+ var tmp_0 = get_JsonSerializationNamesKey();
402
+ return tmp.d1b(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
403
+ }
404
+ function serializationNamesIndices$lambda($this_serializationNamesIndices, $strategy) {
405
+ return function () {
406
+ var tmp = 0;
407
+ var tmp_0 = $this_serializationNamesIndices.ki();
408
+ // Inline function 'kotlin.arrayOfNulls' call
409
+ var tmp_1 = fillArrayVal(Array(tmp_0), null);
410
+ while (tmp < tmp_0) {
411
+ var tmp_2 = tmp;
412
+ var baseName = $this_serializationNamesIndices.oi(tmp_2);
413
+ tmp_1[tmp_2] = $strategy.e1b($this_serializationNamesIndices, tmp_2, baseName);
414
+ tmp = tmp + 1 | 0;
415
+ }
416
+ return tmp_1;
417
+ };
418
+ }
419
+ var properties_initialized_JsonNamesMap_kt_ljpf42;
420
+ function _init_properties_JsonNamesMap_kt__cbbp0k() {
421
+ if (!properties_initialized_JsonNamesMap_kt_ljpf42) {
422
+ properties_initialized_JsonNamesMap_kt_ljpf42 = true;
423
+ JsonDeserializationNamesKey = new Key();
424
+ JsonSerializationNamesKey = new Key();
425
+ }
426
+ }
427
+ function encodeByWriter(json, writer, serializer, value) {
428
+ var tmp = WriteMode_OBJ_getInstance();
429
+ // Inline function 'kotlin.arrayOfNulls' call
430
+ var size = get_entries().l();
431
+ var tmp$ret$0 = fillArrayVal(Array(size), null);
432
+ var encoder = StreamingJsonEncoder_init_$Create$(writer, json, tmp, tmp$ret$0);
433
+ encoder.jk(serializer, value);
434
+ }
435
+ function classDiscriminator(_this__u8e3s4, json) {
436
+ var tmp0_iterator = _this__u8e3s4.ji().r();
437
+ while (tmp0_iterator.s()) {
438
+ var annotation = tmp0_iterator.u();
439
+ if (annotation instanceof JsonClassDiscriminator)
440
+ return annotation.n1b_1;
441
+ }
442
+ return json.b19_1.q19_1;
443
+ }
444
+ function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
445
+ if (!(serializer instanceof SealedClassSerializer))
446
+ return Unit_instance;
447
+ if (jsonCachedSerialNames(actualSerializer.jh()).n(classDiscriminator)) {
448
+ var baseName = serializer.jh().ii();
449
+ var actualName = actualSerializer.jh().ii();
450
+ // Inline function 'kotlin.error' call
451
+ 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';
452
+ throw IllegalStateException_init_$Create$(toString(message));
453
+ }
454
+ }
455
+ function checkKind(kind) {
456
+ if (kind instanceof ENUM) {
457
+ // Inline function 'kotlin.error' call
458
+ var message = "Enums cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
459
+ throw IllegalStateException_init_$Create$(toString(message));
460
+ }
461
+ if (kind instanceof PrimitiveKind) {
462
+ // Inline function 'kotlin.error' call
463
+ var message_0 = "Primitives cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
464
+ throw IllegalStateException_init_$Create$(toString(message_0));
465
+ }
466
+ if (kind instanceof PolymorphicKind) {
467
+ // Inline function 'kotlin.error' call
468
+ var message_1 = 'Actual serializer for polymorphic cannot be polymorphic itself';
469
+ throw IllegalStateException_init_$Create$(toString(message_1));
470
+ }
471
+ }
472
+ function validateIfSealed$accessor$1ad0flx(serializer, actualSerializer, classDiscriminator) {
473
+ return validateIfSealed(serializer, actualSerializer, classDiscriminator);
474
+ }
475
+ function Key() {
476
+ }
477
+ function DescriptorSchemaCache() {
478
+ this.c1b_1 = createMapForCache(16);
479
+ }
480
+ protoOf(DescriptorSchemaCache).o1b = function (descriptor, key, value) {
481
+ // Inline function 'kotlin.collections.set' call
482
+ // Inline function 'kotlin.collections.getOrPut' call
483
+ var this_0 = this.c1b_1;
484
+ var value_0 = this_0.s2(descriptor);
485
+ var tmp;
486
+ if (value_0 == null) {
487
+ // Inline function 'kotlinx.serialization.json.internal.DescriptorSchemaCache.set.<anonymous>' call
488
+ var answer = createMapForCache(2);
489
+ this_0.j2(descriptor, answer);
490
+ tmp = answer;
491
+ } else {
492
+ tmp = value_0;
493
+ }
494
+ var this_1 = tmp;
495
+ var key_0 = key instanceof Key ? key : THROW_CCE();
496
+ var value_1 = !(value == null) ? value : THROW_CCE();
497
+ this_1.j2(key_0, value_1);
498
+ };
499
+ protoOf(DescriptorSchemaCache).d1b = function (descriptor, key, defaultValue) {
500
+ var tmp0_safe_receiver = this.p1b(descriptor, key);
501
+ if (tmp0_safe_receiver == null)
502
+ null;
503
+ else {
504
+ // Inline function 'kotlin.let' call
505
+ // Inline function 'kotlin.contracts.contract' call
506
+ return tmp0_safe_receiver;
507
+ }
508
+ var value = defaultValue();
509
+ this.o1b(descriptor, key, value);
510
+ return value;
511
+ };
512
+ protoOf(DescriptorSchemaCache).p1b = function (descriptor, key) {
513
+ var tmp0_safe_receiver = this.c1b_1.s2(descriptor);
514
+ var tmp;
515
+ if (tmp0_safe_receiver == null) {
516
+ tmp = null;
517
+ } else {
518
+ tmp = tmp0_safe_receiver.s2(key instanceof Key ? key : THROW_CCE());
519
+ }
520
+ var tmp_0 = tmp;
521
+ return !(tmp_0 == null) ? tmp_0 : null;
522
+ };
523
+ function get_unsignedNumberDescriptors() {
524
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
525
+ return unsignedNumberDescriptors;
526
+ }
527
+ var unsignedNumberDescriptors;
528
+ function StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, $this) {
529
+ StreamingJsonEncoder.call($this, Composer_0(output, json), json, mode, modeReuseCache);
530
+ return $this;
531
+ }
532
+ function StreamingJsonEncoder_init_$Create$(output, json, mode, modeReuseCache) {
533
+ return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
534
+ }
535
+ function encodeTypeInfo($this, descriptor) {
536
+ $this.f1b_1.b1a();
537
+ $this.wj(ensureNotNull($this.m1b_1));
538
+ $this.f1b_1.e1a(get_COLON());
539
+ $this.f1b_1.d1a();
540
+ $this.wj(descriptor.ii());
541
+ }
542
+ function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
543
+ AbstractEncoder.call(this);
544
+ this.f1b_1 = composer;
545
+ this.g1b_1 = json;
546
+ this.h1b_1 = mode;
547
+ this.i1b_1 = modeReuseCache;
548
+ this.j1b_1 = this.g1b_1.mk();
549
+ this.k1b_1 = this.g1b_1.b19_1;
550
+ this.l1b_1 = false;
551
+ this.m1b_1 = null;
552
+ var i = this.h1b_1.a9_1;
553
+ if (!(this.i1b_1 == null)) {
554
+ if (!(this.i1b_1[i] === null) ? true : !(this.i1b_1[i] === this)) {
555
+ this.i1b_1[i] = this;
556
+ }
557
+ }
558
+ }
559
+ protoOf(StreamingJsonEncoder).q1b = function () {
560
+ return this.g1b_1;
561
+ };
562
+ protoOf(StreamingJsonEncoder).mk = function () {
563
+ return this.j1b_1;
564
+ };
565
+ protoOf(StreamingJsonEncoder).pk = function (descriptor, index) {
566
+ return this.k1b_1.h19_1;
567
+ };
568
+ protoOf(StreamingJsonEncoder).jk = function (serializer, value) {
569
+ $l$block: {
570
+ // Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
571
+ if (this.q1b().b19_1.p19_1) {
572
+ serializer.kh(this, value);
573
+ break $l$block;
574
+ }
575
+ var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
576
+ var tmp;
577
+ if (isPolymorphicSerializer) {
578
+ tmp = !this.q1b().b19_1.w19_1.equals(ClassDiscriminatorMode_NONE_getInstance());
579
+ } else {
580
+ var tmp_0;
581
+ switch (this.q1b().b19_1.w19_1.a9_1) {
582
+ case 0:
583
+ case 2:
584
+ tmp_0 = false;
585
+ break;
586
+ case 1:
587
+ // Inline function 'kotlin.let' call
588
+
589
+ // Inline function 'kotlin.contracts.contract' call
590
+
591
+ // Inline function 'kotlinx.serialization.json.internal.encodePolymorphically.<anonymous>' call
592
+
593
+ var it = serializer.jh().mi();
594
+ tmp_0 = equals(it, CLASS_getInstance()) ? true : equals(it, OBJECT_getInstance());
595
+ break;
596
+ default:
597
+ noWhenBranchMatchedException();
598
+ break;
599
+ }
600
+ tmp = tmp_0;
601
+ }
602
+ var needDiscriminator = tmp;
603
+ var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.jh(), this.q1b()) : null;
604
+ var tmp_1;
605
+ if (isPolymorphicSerializer) {
606
+ var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
607
+ $l$block_0: {
608
+ // Inline function 'kotlin.requireNotNull' call
609
+ // Inline function 'kotlin.contracts.contract' call
610
+ if (value == null) {
611
+ // Inline function 'kotlinx.serialization.json.internal.encodePolymorphically.<anonymous>' call
612
+ var message = 'Value for serializer ' + serializer.jh() + ' should always be non-null. Please report issue to the kotlinx.serialization tracker.';
613
+ throw IllegalArgumentException_init_$Create$(toString(message));
614
+ } else {
615
+ break $l$block_0;
616
+ }
617
+ }
618
+ var actual = findPolymorphicSerializer(casted, this, value);
619
+ if (!(baseClassDiscriminator == null)) {
620
+ validateIfSealed$accessor$1ad0flx(serializer, actual, baseClassDiscriminator);
621
+ }
622
+ checkKind(actual.jh().mi());
623
+ tmp_1 = isInterface(actual, SerializationStrategy) ? actual : THROW_CCE();
624
+ } else {
625
+ tmp_1 = serializer;
626
+ }
627
+ var actualSerializer = tmp_1;
628
+ if (!(baseClassDiscriminator == null)) {
629
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue.<anonymous>' call
630
+ this.m1b_1 = baseClassDiscriminator;
631
+ }
632
+ actualSerializer.kh(this, value);
633
+ }
634
+ };
635
+ protoOf(StreamingJsonEncoder).jj = function (descriptor) {
636
+ var newMode = switchMode(this.g1b_1, descriptor);
637
+ if (!(newMode.t1b_1 === get_INVALID())) {
638
+ this.f1b_1.e1a(newMode.t1b_1);
639
+ this.f1b_1.z19();
640
+ }
641
+ if (!(this.m1b_1 == null)) {
642
+ encodeTypeInfo(this, descriptor);
643
+ this.m1b_1 = null;
644
+ }
645
+ if (this.h1b_1.equals(newMode)) {
646
+ return this;
647
+ }
648
+ var tmp0_safe_receiver = this.i1b_1;
649
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver[newMode.a9_1];
650
+ return tmp1_elvis_lhs == null ? new StreamingJsonEncoder(this.f1b_1, this.g1b_1, newMode, this.i1b_1) : tmp1_elvis_lhs;
651
+ };
652
+ protoOf(StreamingJsonEncoder).kj = function (descriptor) {
653
+ if (!(this.h1b_1.u1b_1 === get_INVALID())) {
654
+ this.f1b_1.a1a();
655
+ this.f1b_1.c1a();
656
+ this.f1b_1.e1a(this.h1b_1.u1b_1);
657
+ }
658
+ };
659
+ protoOf(StreamingJsonEncoder).lj = function (descriptor, index) {
660
+ switch (this.h1b_1.a9_1) {
661
+ case 1:
662
+ if (!this.f1b_1.y19_1) {
663
+ this.f1b_1.e1a(get_COMMA());
664
+ }
665
+
666
+ this.f1b_1.b1a();
667
+ break;
668
+ case 2:
669
+ if (!this.f1b_1.y19_1) {
670
+ var tmp = this;
671
+ var tmp_0;
672
+ if ((index % 2 | 0) === 0) {
673
+ this.f1b_1.e1a(get_COMMA());
674
+ this.f1b_1.b1a();
675
+ tmp_0 = true;
676
+ } else {
677
+ this.f1b_1.e1a(get_COLON());
678
+ this.f1b_1.d1a();
679
+ tmp_0 = false;
680
+ }
681
+ tmp.l1b_1 = tmp_0;
682
+ } else {
683
+ this.l1b_1 = true;
684
+ this.f1b_1.b1a();
685
+ }
686
+
687
+ break;
688
+ case 3:
689
+ if (index === 0)
690
+ this.l1b_1 = true;
691
+ if (index === 1) {
692
+ this.f1b_1.e1a(get_COMMA());
693
+ this.f1b_1.d1a();
694
+ this.l1b_1 = false;
695
+ }
696
+
697
+ break;
698
+ default:
699
+ if (!this.f1b_1.y19_1) {
700
+ this.f1b_1.e1a(get_COMMA());
701
+ }
702
+
703
+ this.f1b_1.b1a();
704
+ this.wj(getJsonElementName(descriptor, this.g1b_1, index));
705
+ this.f1b_1.e1a(get_COLON());
706
+ this.f1b_1.d1a();
707
+ break;
708
+ }
709
+ return true;
710
+ };
711
+ protoOf(StreamingJsonEncoder).kk = function (descriptor, index, serializer, value) {
712
+ if (!(value == null) ? true : this.k1b_1.m19_1) {
713
+ protoOf(AbstractEncoder).kk.call(this, descriptor, index, serializer, value);
714
+ }
715
+ };
716
+ protoOf(StreamingJsonEncoder).xj = function (descriptor) {
717
+ var tmp;
718
+ if (get_isUnsignedNumber(descriptor)) {
719
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
720
+ var tmp_0;
721
+ var tmp_1 = this.f1b_1;
722
+ if (tmp_1 instanceof ComposerForUnsignedNumbers) {
723
+ tmp_0 = this.f1b_1;
724
+ } else {
725
+ tmp_0 = new ComposerForUnsignedNumbers(this.f1b_1.x19_1, this.l1b_1);
726
+ }
727
+ var tmp$ret$1 = tmp_0;
728
+ tmp = new StreamingJsonEncoder(tmp$ret$1, this.g1b_1, this.h1b_1, null);
729
+ } else if (get_isUnquotedLiteral(descriptor)) {
730
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
731
+ var tmp_2;
732
+ var tmp_3 = this.f1b_1;
733
+ if (tmp_3 instanceof ComposerForUnquotedLiterals) {
734
+ tmp_2 = this.f1b_1;
735
+ } else {
736
+ tmp_2 = new ComposerForUnquotedLiterals(this.f1b_1.x19_1, this.l1b_1);
737
+ }
738
+ var tmp$ret$3 = tmp_2;
739
+ tmp = new StreamingJsonEncoder(tmp$ret$3, this.g1b_1, this.h1b_1, null);
740
+ } else {
741
+ tmp = protoOf(AbstractEncoder).xj.call(this, descriptor);
742
+ }
743
+ return tmp;
744
+ };
745
+ protoOf(StreamingJsonEncoder).nj = function () {
746
+ this.f1b_1.g1a(get_NULL());
747
+ };
748
+ protoOf(StreamingJsonEncoder).oj = function (value) {
749
+ if (this.l1b_1) {
750
+ this.wj(value.toString());
751
+ } else {
752
+ this.f1b_1.p1a(value);
753
+ }
754
+ };
755
+ protoOf(StreamingJsonEncoder).pj = function (value) {
756
+ if (this.l1b_1) {
757
+ this.wj(value.toString());
758
+ } else {
759
+ this.f1b_1.k1a(value);
760
+ }
761
+ };
762
+ protoOf(StreamingJsonEncoder).qj = function (value) {
763
+ if (this.l1b_1) {
764
+ this.wj(value.toString());
765
+ } else {
766
+ this.f1b_1.m1a(value);
767
+ }
768
+ };
769
+ protoOf(StreamingJsonEncoder).rj = function (value) {
770
+ if (this.l1b_1) {
771
+ this.wj(value.toString());
772
+ } else {
773
+ this.f1b_1.n1a(value);
774
+ }
775
+ };
776
+ protoOf(StreamingJsonEncoder).sj = function (value) {
777
+ if (this.l1b_1) {
778
+ this.wj(value.toString());
779
+ } else {
780
+ this.f1b_1.o1a(value);
781
+ }
782
+ };
783
+ protoOf(StreamingJsonEncoder).tj = function (value) {
784
+ if (this.l1b_1) {
785
+ this.wj(value.toString());
786
+ } else {
787
+ this.f1b_1.i1a(value);
788
+ }
789
+ if (!this.k1b_1.r19_1 ? !isFinite(value) : false) {
790
+ throw InvalidFloatingPointEncoded(value, toString(this.f1b_1.x19_1));
791
+ }
792
+ };
793
+ protoOf(StreamingJsonEncoder).uj = function (value) {
794
+ if (this.l1b_1) {
795
+ this.wj(value.toString());
796
+ } else {
797
+ this.f1b_1.j1a(value);
798
+ }
799
+ if (!this.k1b_1.r19_1 ? !isFinite_0(value) : false) {
800
+ throw InvalidFloatingPointEncoded(value, toString(this.f1b_1.x19_1));
801
+ }
802
+ };
803
+ protoOf(StreamingJsonEncoder).vj = function (value) {
804
+ this.wj(toString_0(value));
805
+ };
806
+ protoOf(StreamingJsonEncoder).wj = function (value) {
807
+ return this.f1b_1.q1a(value);
808
+ };
809
+ function get_isUnsignedNumber(_this__u8e3s4) {
810
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
811
+ return _this__u8e3s4.li() ? get_unsignedNumberDescriptors().n(_this__u8e3s4) : false;
812
+ }
813
+ function get_isUnquotedLiteral(_this__u8e3s4) {
814
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
815
+ return _this__u8e3s4.li() ? equals(_this__u8e3s4, get_jsonUnquotedLiteralDescriptor()) : false;
816
+ }
817
+ var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
818
+ function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
819
+ if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
820
+ properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
821
+ unsignedNumberDescriptors = setOf([serializer_0(Companion_getInstance()).jh(), serializer_1(Companion_getInstance_0()).jh(), serializer_2(Companion_getInstance_1()).jh(), serializer_3(Companion_getInstance_2()).jh()]);
822
+ }
823
+ }
824
+ function get_ESCAPE_STRINGS() {
825
+ _init_properties_StringOps_kt__fcy1db();
826
+ return ESCAPE_STRINGS;
827
+ }
828
+ var ESCAPE_STRINGS;
829
+ var ESCAPE_MARKERS;
830
+ function toHexChar(i) {
831
+ _init_properties_StringOps_kt__fcy1db();
832
+ var d = i & 15;
833
+ var tmp;
834
+ if (d < 10) {
835
+ // Inline function 'kotlin.code' call
836
+ var this_0 = _Char___init__impl__6a9atx(48);
837
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
838
+ tmp = numberToChar(d + tmp$ret$0 | 0);
839
+ } else {
840
+ var tmp_0 = d - 10 | 0;
841
+ // Inline function 'kotlin.code' call
842
+ var this_1 = _Char___init__impl__6a9atx(97);
843
+ var tmp$ret$1 = Char__toInt_impl_vasixd(this_1);
844
+ tmp = numberToChar(tmp_0 + tmp$ret$1 | 0);
845
+ }
846
+ return tmp;
847
+ }
848
+ function printQuoted(_this__u8e3s4, value) {
849
+ _init_properties_StringOps_kt__fcy1db();
850
+ _this__u8e3s4.g5(get_STRING());
851
+ var lastPos = 0;
852
+ var inductionVariable = 0;
853
+ var last = charSequenceLength(value) - 1 | 0;
854
+ if (inductionVariable <= last)
855
+ do {
856
+ var i = inductionVariable;
857
+ inductionVariable = inductionVariable + 1 | 0;
858
+ // Inline function 'kotlin.code' call
859
+ var this_0 = charSequenceGet(value, i);
860
+ var c = Char__toInt_impl_vasixd(this_0);
861
+ if (c < get_ESCAPE_STRINGS().length ? !(get_ESCAPE_STRINGS()[c] == null) : false) {
862
+ _this__u8e3s4.r7(value, lastPos, i);
863
+ _this__u8e3s4.f5(get_ESCAPE_STRINGS()[c]);
864
+ lastPos = i + 1 | 0;
865
+ }
866
+ }
867
+ while (inductionVariable <= last);
868
+ if (!(lastPos === 0)) {
869
+ _this__u8e3s4.r7(value, lastPos, value.length);
870
+ } else {
871
+ _this__u8e3s4.f5(value);
872
+ }
873
+ _this__u8e3s4.g5(get_STRING());
874
+ }
875
+ var properties_initialized_StringOps_kt_wzaea7;
876
+ function _init_properties_StringOps_kt__fcy1db() {
877
+ if (!properties_initialized_StringOps_kt_wzaea7) {
878
+ properties_initialized_StringOps_kt_wzaea7 = true;
879
+ // Inline function 'kotlin.apply' call
880
+ // Inline function 'kotlin.arrayOfNulls' call
881
+ var this_0 = fillArrayVal(Array(93), null);
882
+ // Inline function 'kotlin.contracts.contract' call
883
+ // Inline function 'kotlinx.serialization.json.internal.ESCAPE_STRINGS.<anonymous>' call
884
+ var inductionVariable = 0;
885
+ if (inductionVariable <= 31)
886
+ do {
887
+ var c = inductionVariable;
888
+ inductionVariable = inductionVariable + 1 | 0;
889
+ var c1 = toHexChar(c >> 12);
890
+ var c2 = toHexChar(c >> 8);
891
+ var c3 = toHexChar(c >> 4);
892
+ var c4 = toHexChar(c);
893
+ this_0[c] = '\\u' + toString_0(c1) + toString_0(c2) + toString_0(c3) + toString_0(c4);
894
+ }
895
+ while (inductionVariable <= 31);
896
+ // Inline function 'kotlin.code' call
897
+ var this_1 = _Char___init__impl__6a9atx(34);
898
+ this_0[Char__toInt_impl_vasixd(this_1)] = '\\"';
899
+ // Inline function 'kotlin.code' call
900
+ var this_2 = _Char___init__impl__6a9atx(92);
901
+ this_0[Char__toInt_impl_vasixd(this_2)] = '\\\\';
902
+ // Inline function 'kotlin.code' call
903
+ var this_3 = _Char___init__impl__6a9atx(9);
904
+ this_0[Char__toInt_impl_vasixd(this_3)] = '\\t';
905
+ // Inline function 'kotlin.code' call
906
+ var this_4 = _Char___init__impl__6a9atx(8);
907
+ this_0[Char__toInt_impl_vasixd(this_4)] = '\\b';
908
+ // Inline function 'kotlin.code' call
909
+ var this_5 = _Char___init__impl__6a9atx(10);
910
+ this_0[Char__toInt_impl_vasixd(this_5)] = '\\n';
911
+ // Inline function 'kotlin.code' call
912
+ var this_6 = _Char___init__impl__6a9atx(13);
913
+ this_0[Char__toInt_impl_vasixd(this_6)] = '\\r';
914
+ this_0[12] = '\\f';
915
+ ESCAPE_STRINGS = this_0;
916
+ // Inline function 'kotlin.apply' call
917
+ var this_7 = new Int8Array(93);
918
+ // Inline function 'kotlin.contracts.contract' call
919
+ // Inline function 'kotlinx.serialization.json.internal.ESCAPE_MARKERS.<anonymous>' call
920
+ var inductionVariable_0 = 0;
921
+ if (inductionVariable_0 <= 31)
922
+ do {
923
+ var c_0 = inductionVariable_0;
924
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
925
+ this_7[c_0] = 1;
926
+ }
927
+ while (inductionVariable_0 <= 31);
928
+ // Inline function 'kotlin.code' call
929
+ var this_8 = _Char___init__impl__6a9atx(34);
930
+ this_7[Char__toInt_impl_vasixd(this_8)] = 34;
931
+ // Inline function 'kotlin.code' call
932
+ var this_9 = _Char___init__impl__6a9atx(92);
933
+ this_7[Char__toInt_impl_vasixd(this_9)] = 92;
934
+ // Inline function 'kotlin.code' call
935
+ var this_10 = _Char___init__impl__6a9atx(9);
936
+ this_7[Char__toInt_impl_vasixd(this_10)] = 116;
937
+ // Inline function 'kotlin.code' call
938
+ var this_11 = _Char___init__impl__6a9atx(8);
939
+ this_7[Char__toInt_impl_vasixd(this_11)] = 98;
940
+ // Inline function 'kotlin.code' call
941
+ var this_12 = _Char___init__impl__6a9atx(10);
942
+ this_7[Char__toInt_impl_vasixd(this_12)] = 110;
943
+ // Inline function 'kotlin.code' call
944
+ var this_13 = _Char___init__impl__6a9atx(13);
945
+ this_7[Char__toInt_impl_vasixd(this_13)] = 114;
946
+ this_7[12] = 102;
947
+ ESCAPE_MARKERS = this_7;
948
+ }
949
+ }
950
+ var WriteMode_OBJ_instance;
951
+ var WriteMode_LIST_instance;
952
+ var WriteMode_MAP_instance;
953
+ var WriteMode_POLY_OBJ_instance;
954
+ function values() {
955
+ return [WriteMode_OBJ_getInstance(), WriteMode_LIST_getInstance(), WriteMode_MAP_getInstance(), WriteMode_POLY_OBJ_getInstance()];
956
+ }
957
+ function get_entries() {
958
+ if ($ENTRIES == null)
959
+ $ENTRIES = enumEntries(values());
960
+ return $ENTRIES;
961
+ }
962
+ var WriteMode_entriesInitialized;
963
+ function WriteMode_initEntries() {
964
+ if (WriteMode_entriesInitialized)
965
+ return Unit_instance;
966
+ WriteMode_entriesInitialized = true;
967
+ WriteMode_OBJ_instance = new WriteMode('OBJ', 0, get_BEGIN_OBJ(), get_END_OBJ());
968
+ WriteMode_LIST_instance = new WriteMode('LIST', 1, get_BEGIN_LIST(), get_END_LIST());
969
+ WriteMode_MAP_instance = new WriteMode('MAP', 2, get_BEGIN_OBJ(), get_END_OBJ());
970
+ WriteMode_POLY_OBJ_instance = new WriteMode('POLY_OBJ', 3, get_BEGIN_LIST(), get_END_LIST());
971
+ }
972
+ var $ENTRIES;
973
+ function WriteMode(name, ordinal, begin, end) {
974
+ Enum.call(this, name, ordinal);
975
+ this.t1b_1 = begin;
976
+ this.u1b_1 = end;
977
+ }
978
+ function switchMode(_this__u8e3s4, desc) {
979
+ var tmp0_subject = desc.mi();
980
+ var tmp;
981
+ if (tmp0_subject instanceof PolymorphicKind) {
982
+ tmp = WriteMode_POLY_OBJ_getInstance();
983
+ } else {
984
+ if (equals(tmp0_subject, LIST_getInstance())) {
985
+ tmp = WriteMode_LIST_getInstance();
986
+ } else {
987
+ if (equals(tmp0_subject, MAP_getInstance())) {
988
+ // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
989
+ var keyDescriptor = carrierDescriptor(desc.ni(0), _this__u8e3s4.mk());
990
+ var keyKind = keyDescriptor.mi();
991
+ var tmp_0;
992
+ var tmp_1;
993
+ if (keyKind instanceof PrimitiveKind) {
994
+ tmp_1 = true;
995
+ } else {
996
+ tmp_1 = equals(keyKind, ENUM_getInstance());
997
+ }
998
+ if (tmp_1) {
999
+ // Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
1000
+ tmp_0 = WriteMode_MAP_getInstance();
1001
+ } else {
1002
+ if (_this__u8e3s4.b19_1.k19_1) {
1003
+ // Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
1004
+ tmp_0 = WriteMode_LIST_getInstance();
1005
+ } else {
1006
+ throw InvalidKeyKindException(keyDescriptor);
1007
+ }
1008
+ }
1009
+ tmp = tmp_0;
1010
+ } else {
1011
+ tmp = WriteMode_OBJ_getInstance();
1012
+ }
1013
+ }
1014
+ }
1015
+ return tmp;
1016
+ }
1017
+ function carrierDescriptor(_this__u8e3s4, module_0) {
1018
+ var tmp;
1019
+ if (equals(_this__u8e3s4.mi(), CONTEXTUAL_getInstance())) {
1020
+ var tmp0_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4);
1021
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : carrierDescriptor(tmp0_safe_receiver, module_0);
1022
+ tmp = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
1023
+ } else if (_this__u8e3s4.li()) {
1024
+ tmp = carrierDescriptor(_this__u8e3s4.ni(0), module_0);
1025
+ } else {
1026
+ tmp = _this__u8e3s4;
1027
+ }
1028
+ return tmp;
1029
+ }
1030
+ function WriteMode_OBJ_getInstance() {
1031
+ WriteMode_initEntries();
1032
+ return WriteMode_OBJ_instance;
1033
+ }
1034
+ function WriteMode_LIST_getInstance() {
1035
+ WriteMode_initEntries();
1036
+ return WriteMode_LIST_instance;
1037
+ }
1038
+ function WriteMode_MAP_getInstance() {
1039
+ WriteMode_initEntries();
1040
+ return WriteMode_MAP_instance;
1041
+ }
1042
+ function WriteMode_POLY_OBJ_getInstance() {
1043
+ WriteMode_initEntries();
1044
+ return WriteMode_POLY_OBJ_instance;
1045
+ }
1046
+ function get_STRING() {
1047
+ return STRING;
1048
+ }
1049
+ var STRING;
1050
+ function get_COLON() {
1051
+ return COLON;
1052
+ }
1053
+ var COLON;
1054
+ function get_BEGIN_OBJ() {
1055
+ return BEGIN_OBJ;
1056
+ }
1057
+ var BEGIN_OBJ;
1058
+ function get_END_OBJ() {
1059
+ return END_OBJ;
1060
+ }
1061
+ var END_OBJ;
1062
+ function get_BEGIN_LIST() {
1063
+ return BEGIN_LIST;
1064
+ }
1065
+ var BEGIN_LIST;
1066
+ function get_END_LIST() {
1067
+ return END_LIST;
1068
+ }
1069
+ var END_LIST;
1070
+ function get_INVALID() {
1071
+ return INVALID;
1072
+ }
1073
+ var INVALID;
1074
+ function get_COMMA() {
1075
+ return COMMA;
1076
+ }
1077
+ var COMMA;
1078
+ function get_NULL() {
1079
+ return NULL;
1080
+ }
1081
+ var NULL;
1082
+ function get_specialFlowingValuesHint() {
1083
+ return specialFlowingValuesHint;
1084
+ }
1085
+ var specialFlowingValuesHint;
1086
+ function get_allowStructuredMapKeysHint() {
1087
+ return allowStructuredMapKeysHint;
1088
+ }
1089
+ var allowStructuredMapKeysHint;
1090
+ function get_schemaCache(_this__u8e3s4) {
1091
+ return _this__u8e3s4.d19_1;
1092
+ }
1093
+ function JsonToStringWriter() {
1094
+ this.f19_1 = StringBuilder_init_$Create$(128);
1095
+ }
1096
+ protoOf(JsonToStringWriter).l1a = function (value) {
1097
+ this.f19_1.u7(value);
1098
+ };
1099
+ protoOf(JsonToStringWriter).f1a = function (char) {
1100
+ this.f19_1.g5(char);
1101
+ };
1102
+ protoOf(JsonToStringWriter).h1a = function (text) {
1103
+ this.f19_1.f5(text);
1104
+ };
1105
+ protoOf(JsonToStringWriter).r1a = function (text) {
1106
+ printQuoted(this.f19_1, text);
1107
+ };
1108
+ protoOf(JsonToStringWriter).g19 = function () {
1109
+ this.f19_1.w7();
1110
+ };
1111
+ protoOf(JsonToStringWriter).toString = function () {
1112
+ return this.f19_1.toString();
1113
+ };
1114
+ function createMapForCache(initialCapacity) {
1115
+ return HashMap_init_$Create$(initialCapacity);
1116
+ }
1117
+ //region block: init
1118
+ STRING = _Char___init__impl__6a9atx(34);
1119
+ COLON = _Char___init__impl__6a9atx(58);
1120
+ BEGIN_OBJ = _Char___init__impl__6a9atx(123);
1121
+ END_OBJ = _Char___init__impl__6a9atx(125);
1122
+ BEGIN_LIST = _Char___init__impl__6a9atx(91);
1123
+ END_LIST = _Char___init__impl__6a9atx(93);
1124
+ INVALID = _Char___init__impl__6a9atx(0);
1125
+ COMMA = _Char___init__impl__6a9atx(44);
1126
+ NULL = 'null';
1127
+ specialFlowingValuesHint = "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'";
1128
+ allowStructuredMapKeysHint = "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.";
1129
+ //endregion
1130
+ //region block: exports
1131
+ _.$_$ = _.$_$ || {};
1132
+ _.$_$.a = Default_getInstance;
1133
+ //endregion
1134
+ return _;
1135
+ }(module.exports, require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlin-kotlin-stdlib.js')));
1136
+
1137
+ //# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-json.js.map