@flock/wirespec 0.8.13 → 0.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +292 -292
- package/kotlin-openapi-bindings.js +3235 -3234
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1217 -1217
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +969 -969
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +80 -80
- package/wirespec-src-compiler-core.js +1082 -1055
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +38 -38
- package/wirespec-src-openapi.js +364 -364
- package/wirespec-src-openapi.js.map +1 -1
|
@@ -227,21 +227,21 @@
|
|
|
227
227
|
}
|
|
228
228
|
function Json(configuration, serializersModule) {
|
|
229
229
|
Default_getInstance();
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
232
|
-
this.
|
|
230
|
+
this.x12_1 = configuration;
|
|
231
|
+
this.y12_1 = serializersModule;
|
|
232
|
+
this.z12_1 = new DescriptorSchemaCache();
|
|
233
233
|
}
|
|
234
|
-
protoOf(Json).
|
|
235
|
-
return this.
|
|
234
|
+
protoOf(Json).oq = function () {
|
|
235
|
+
return this.y12_1;
|
|
236
236
|
};
|
|
237
|
-
protoOf(Json).
|
|
237
|
+
protoOf(Json).a13 = function (deserializer, string) {
|
|
238
238
|
var lexer = new StringJsonLexer(string);
|
|
239
|
-
var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.
|
|
240
|
-
var result = input.
|
|
241
|
-
lexer.
|
|
239
|
+
var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.bn(), null);
|
|
240
|
+
var result = input.yp(deserializer);
|
|
241
|
+
lexer.o13();
|
|
242
242
|
return result;
|
|
243
243
|
};
|
|
244
|
-
protoOf(Json).
|
|
244
|
+
protoOf(Json).b13 = function (deserializer, element) {
|
|
245
245
|
return readJson(this, element, deserializer);
|
|
246
246
|
};
|
|
247
247
|
function Json_0(from, builderAction) {
|
|
@@ -249,47 +249,47 @@
|
|
|
249
249
|
var builder = new JsonBuilder(from);
|
|
250
250
|
builderAction(builder);
|
|
251
251
|
var conf = builder.xb();
|
|
252
|
-
return new JsonImpl(conf, builder.
|
|
252
|
+
return new JsonImpl(conf, builder.c14_1);
|
|
253
253
|
}
|
|
254
254
|
function JsonBuilder(json) {
|
|
255
|
-
this.
|
|
256
|
-
this.
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
264
|
-
this.
|
|
265
|
-
this.
|
|
266
|
-
this.
|
|
267
|
-
this.
|
|
268
|
-
this.
|
|
255
|
+
this.p13_1 = json.x12_1.d14_1;
|
|
256
|
+
this.q13_1 = json.x12_1.i14_1;
|
|
257
|
+
this.r13_1 = json.x12_1.e14_1;
|
|
258
|
+
this.s13_1 = json.x12_1.f14_1;
|
|
259
|
+
this.t13_1 = json.x12_1.g14_1;
|
|
260
|
+
this.u13_1 = json.x12_1.h14_1;
|
|
261
|
+
this.v13_1 = json.x12_1.j14_1;
|
|
262
|
+
this.w13_1 = json.x12_1.k14_1;
|
|
263
|
+
this.x13_1 = json.x12_1.l14_1;
|
|
264
|
+
this.y13_1 = json.x12_1.m14_1;
|
|
265
|
+
this.z13_1 = json.x12_1.n14_1;
|
|
266
|
+
this.a14_1 = json.x12_1.o14_1;
|
|
267
|
+
this.b14_1 = json.x12_1.p14_1;
|
|
268
|
+
this.c14_1 = json.oq();
|
|
269
269
|
}
|
|
270
270
|
protoOf(JsonBuilder).xb = function () {
|
|
271
|
-
if (this.
|
|
271
|
+
if (this.x13_1) {
|
|
272
272
|
// Inline function 'kotlin.require' call
|
|
273
273
|
// Inline function 'kotlin.contracts.contract' call
|
|
274
|
-
if (!(this.
|
|
274
|
+
if (!(this.y13_1 === 'type')) {
|
|
275
275
|
// Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
|
|
276
276
|
var message = 'Class discriminator should not be specified when array polymorphism is specified';
|
|
277
277
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
if (!this.
|
|
280
|
+
if (!this.u13_1) {
|
|
281
281
|
// Inline function 'kotlin.require' call
|
|
282
282
|
// Inline function 'kotlin.contracts.contract' call
|
|
283
|
-
if (!(this.
|
|
283
|
+
if (!(this.v13_1 === ' ')) {
|
|
284
284
|
// Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
|
|
285
285
|
var message_0 = 'Indent should not be specified when default printing mode is used';
|
|
286
286
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
287
287
|
}
|
|
288
|
-
} else if (!(this.
|
|
288
|
+
} else if (!(this.v13_1 === ' ')) {
|
|
289
289
|
var tmp$ret$3;
|
|
290
290
|
$l$block: {
|
|
291
291
|
// Inline function 'kotlin.text.all' call
|
|
292
|
-
var indexedObject = this.
|
|
292
|
+
var indexedObject = this.v13_1;
|
|
293
293
|
var inductionVariable = 0;
|
|
294
294
|
var last = indexedObject.length;
|
|
295
295
|
while (inductionVariable < last) {
|
|
@@ -308,17 +308,17 @@
|
|
|
308
308
|
// Inline function 'kotlin.contracts.contract' call
|
|
309
309
|
if (!allWhitespaces) {
|
|
310
310
|
// Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
|
|
311
|
-
var message_1 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.
|
|
311
|
+
var message_1 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.v13_1;
|
|
312
312
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
return new JsonConfiguration(this.
|
|
315
|
+
return new JsonConfiguration(this.p13_1, this.r13_1, this.s13_1, this.t13_1, this.u13_1, this.q13_1, this.v13_1, this.w13_1, this.x13_1, this.y13_1, this.z13_1, this.a14_1, this.b14_1);
|
|
316
316
|
};
|
|
317
317
|
function validateConfiguration($this) {
|
|
318
|
-
if (equals($this.
|
|
318
|
+
if (equals($this.oq(), EmptySerializersModule()))
|
|
319
319
|
return Unit_getInstance();
|
|
320
|
-
var collector = new PolymorphismValidator($this.
|
|
321
|
-
$this.
|
|
320
|
+
var collector = new PolymorphismValidator($this.x12_1.l14_1, $this.x12_1.m14_1);
|
|
321
|
+
$this.oq().g12(collector);
|
|
322
322
|
}
|
|
323
323
|
function JsonImpl(configuration, module_0) {
|
|
324
324
|
Json.call(this, configuration, module_0);
|
|
@@ -342,22 +342,22 @@
|
|
|
342
342
|
allowSpecialFloatingPointValues = allowSpecialFloatingPointValues === VOID ? false : allowSpecialFloatingPointValues;
|
|
343
343
|
useAlternativeNames = useAlternativeNames === VOID ? true : useAlternativeNames;
|
|
344
344
|
namingStrategy = namingStrategy === VOID ? null : namingStrategy;
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
352
|
-
this.
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
345
|
+
this.d14_1 = encodeDefaults;
|
|
346
|
+
this.e14_1 = ignoreUnknownKeys;
|
|
347
|
+
this.f14_1 = isLenient;
|
|
348
|
+
this.g14_1 = allowStructuredMapKeys;
|
|
349
|
+
this.h14_1 = prettyPrint;
|
|
350
|
+
this.i14_1 = explicitNulls;
|
|
351
|
+
this.j14_1 = prettyPrintIndent;
|
|
352
|
+
this.k14_1 = coerceInputValues;
|
|
353
|
+
this.l14_1 = useArrayPolymorphism;
|
|
354
|
+
this.m14_1 = classDiscriminator;
|
|
355
|
+
this.n14_1 = allowSpecialFloatingPointValues;
|
|
356
|
+
this.o14_1 = useAlternativeNames;
|
|
357
|
+
this.p14_1 = namingStrategy;
|
|
358
358
|
}
|
|
359
359
|
protoOf(JsonConfiguration).toString = function () {
|
|
360
|
-
return 'JsonConfiguration(encodeDefaults=' + this.
|
|
360
|
+
return 'JsonConfiguration(encodeDefaults=' + this.d14_1 + ', ignoreUnknownKeys=' + this.e14_1 + ', isLenient=' + this.f14_1 + ', ' + ('allowStructuredMapKeys=' + this.g14_1 + ', prettyPrint=' + this.h14_1 + ', explicitNulls=' + this.i14_1 + ', ') + ("prettyPrintIndent='" + this.j14_1 + "', coerceInputValues=" + this.k14_1 + ', useArrayPolymorphism=' + this.l14_1 + ', ') + ("classDiscriminator='" + this.m14_1 + "', allowSpecialFloatingPointValues=" + this.n14_1 + ', useAlternativeNames=' + this.o14_1 + ', ') + ('namingStrategy=' + this.p14_1 + ')');
|
|
361
361
|
};
|
|
362
362
|
function JsonDecoder() {
|
|
363
363
|
}
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
JsonElement.call(this);
|
|
377
377
|
}
|
|
378
378
|
protoOf(JsonPrimitive).toString = function () {
|
|
379
|
-
return this.
|
|
379
|
+
return this.s14();
|
|
380
380
|
};
|
|
381
381
|
function Companion_0() {
|
|
382
382
|
Companion_instance_0 = this;
|
|
@@ -418,44 +418,44 @@
|
|
|
418
418
|
function JsonObject(content) {
|
|
419
419
|
Companion_getInstance_7();
|
|
420
420
|
JsonElement.call(this);
|
|
421
|
-
this.
|
|
421
|
+
this.t14_1 = content;
|
|
422
422
|
}
|
|
423
423
|
protoOf(JsonObject).u = function () {
|
|
424
|
-
return this.
|
|
424
|
+
return this.t14_1.u();
|
|
425
425
|
};
|
|
426
426
|
protoOf(JsonObject).o2 = function () {
|
|
427
|
-
return this.
|
|
427
|
+
return this.t14_1.o2();
|
|
428
428
|
};
|
|
429
429
|
protoOf(JsonObject).f = function () {
|
|
430
|
-
return this.
|
|
430
|
+
return this.t14_1.f();
|
|
431
431
|
};
|
|
432
|
-
protoOf(JsonObject).
|
|
433
|
-
return this.
|
|
432
|
+
protoOf(JsonObject).u14 = function (key) {
|
|
433
|
+
return this.t14_1.j2(key);
|
|
434
434
|
};
|
|
435
435
|
protoOf(JsonObject).j2 = function (key) {
|
|
436
436
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
437
437
|
return false;
|
|
438
|
-
return this.
|
|
438
|
+
return this.u14((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
439
439
|
};
|
|
440
|
-
protoOf(JsonObject).
|
|
441
|
-
return this.
|
|
440
|
+
protoOf(JsonObject).v14 = function (key) {
|
|
441
|
+
return this.t14_1.n2(key);
|
|
442
442
|
};
|
|
443
443
|
protoOf(JsonObject).n2 = function (key) {
|
|
444
444
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
445
445
|
return null;
|
|
446
|
-
return this.
|
|
446
|
+
return this.v14((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
447
447
|
};
|
|
448
448
|
protoOf(JsonObject).g = function () {
|
|
449
|
-
return this.
|
|
449
|
+
return this.t14_1.g();
|
|
450
450
|
};
|
|
451
451
|
protoOf(JsonObject).equals = function (other) {
|
|
452
|
-
return equals(this.
|
|
452
|
+
return equals(this.t14_1, other);
|
|
453
453
|
};
|
|
454
454
|
protoOf(JsonObject).hashCode = function () {
|
|
455
|
-
return hashCode(this.
|
|
455
|
+
return hashCode(this.t14_1);
|
|
456
456
|
};
|
|
457
457
|
protoOf(JsonObject).toString = function () {
|
|
458
|
-
var tmp = this.
|
|
458
|
+
var tmp = this.t14_1.u();
|
|
459
459
|
return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
|
|
460
460
|
};
|
|
461
461
|
function get_jsonObject(_this__u8e3s4) {
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
}
|
|
472
472
|
function get_boolean(_this__u8e3s4) {
|
|
473
473
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
474
|
-
var tmp0_elvis_lhs = toBooleanStrictOrNull(_this__u8e3s4.
|
|
474
|
+
var tmp0_elvis_lhs = toBooleanStrictOrNull(_this__u8e3s4.s14());
|
|
475
475
|
var tmp;
|
|
476
476
|
if (tmp0_elvis_lhs == null) {
|
|
477
477
|
throw IllegalStateException_init_$Create$('' + _this__u8e3s4 + ' does not represent a Boolean');
|
|
@@ -492,58 +492,58 @@
|
|
|
492
492
|
function JsonArray(content) {
|
|
493
493
|
Companion_getInstance_8();
|
|
494
494
|
JsonElement.call(this);
|
|
495
|
-
this.
|
|
495
|
+
this.w14_1 = content;
|
|
496
496
|
}
|
|
497
497
|
protoOf(JsonArray).f = function () {
|
|
498
|
-
return this.
|
|
498
|
+
return this.w14_1.f();
|
|
499
499
|
};
|
|
500
|
-
protoOf(JsonArray).
|
|
501
|
-
return this.
|
|
500
|
+
protoOf(JsonArray).x14 = function (element) {
|
|
501
|
+
return this.w14_1.j1(element);
|
|
502
502
|
};
|
|
503
503
|
protoOf(JsonArray).j1 = function (element) {
|
|
504
504
|
if (!(element instanceof JsonElement))
|
|
505
505
|
return false;
|
|
506
|
-
return this.
|
|
506
|
+
return this.x14(element instanceof JsonElement ? element : THROW_CCE());
|
|
507
507
|
};
|
|
508
|
-
protoOf(JsonArray).
|
|
509
|
-
return this.
|
|
508
|
+
protoOf(JsonArray).y14 = function (elements) {
|
|
509
|
+
return this.w14_1.k1(elements);
|
|
510
510
|
};
|
|
511
511
|
protoOf(JsonArray).k1 = function (elements) {
|
|
512
|
-
return this.
|
|
512
|
+
return this.y14(elements);
|
|
513
513
|
};
|
|
514
514
|
protoOf(JsonArray).h = function (index) {
|
|
515
|
-
return this.
|
|
515
|
+
return this.w14_1.h(index);
|
|
516
516
|
};
|
|
517
517
|
protoOf(JsonArray).g = function () {
|
|
518
|
-
return this.
|
|
518
|
+
return this.w14_1.g();
|
|
519
519
|
};
|
|
520
520
|
protoOf(JsonArray).c = function () {
|
|
521
|
-
return this.
|
|
521
|
+
return this.w14_1.c();
|
|
522
522
|
};
|
|
523
523
|
protoOf(JsonArray).q1 = function () {
|
|
524
|
-
return this.
|
|
524
|
+
return this.w14_1.q1();
|
|
525
525
|
};
|
|
526
526
|
protoOf(JsonArray).i = function (index) {
|
|
527
|
-
return this.
|
|
527
|
+
return this.w14_1.i(index);
|
|
528
528
|
};
|
|
529
529
|
protoOf(JsonArray).s = function (fromIndex, toIndex) {
|
|
530
|
-
return this.
|
|
530
|
+
return this.w14_1.s(fromIndex, toIndex);
|
|
531
531
|
};
|
|
532
532
|
protoOf(JsonArray).equals = function (other) {
|
|
533
|
-
return equals(this.
|
|
533
|
+
return equals(this.w14_1, other);
|
|
534
534
|
};
|
|
535
535
|
protoOf(JsonArray).hashCode = function () {
|
|
536
|
-
return hashCode(this.
|
|
536
|
+
return hashCode(this.w14_1);
|
|
537
537
|
};
|
|
538
538
|
protoOf(JsonArray).toString = function () {
|
|
539
|
-
return joinToString(this.
|
|
539
|
+
return joinToString(this.w14_1, ',', '[', ']');
|
|
540
540
|
};
|
|
541
541
|
function error(_this__u8e3s4, element) {
|
|
542
542
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
543
543
|
throw IllegalArgumentException_init_$Create$('Element ' + getKClassFromExpression(_this__u8e3s4) + ' is not a ' + element);
|
|
544
544
|
}
|
|
545
545
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
546
|
-
return $this.
|
|
546
|
+
return $this.a15_1.w();
|
|
547
547
|
}
|
|
548
548
|
function JsonNull$_anonymous__enib48() {
|
|
549
549
|
return JsonNullSerializer_getInstance();
|
|
@@ -551,19 +551,19 @@
|
|
|
551
551
|
function JsonNull() {
|
|
552
552
|
JsonNull_instance = this;
|
|
553
553
|
JsonPrimitive.call(this);
|
|
554
|
-
this.
|
|
554
|
+
this.z14_1 = 'null';
|
|
555
555
|
var tmp = this;
|
|
556
556
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
557
|
-
tmp.
|
|
557
|
+
tmp.a15_1 = lazy(tmp_0, JsonNull$_anonymous__enib48);
|
|
558
558
|
}
|
|
559
|
-
protoOf(JsonNull).
|
|
560
|
-
return this.
|
|
559
|
+
protoOf(JsonNull).s14 = function () {
|
|
560
|
+
return this.z14_1;
|
|
561
561
|
};
|
|
562
|
-
protoOf(JsonNull).
|
|
562
|
+
protoOf(JsonNull).b15 = function () {
|
|
563
563
|
return _get_$cachedSerializer__te6jhj(this);
|
|
564
564
|
};
|
|
565
|
-
protoOf(JsonNull).
|
|
566
|
-
return this.
|
|
565
|
+
protoOf(JsonNull).iw = function (typeParamsSerializers) {
|
|
566
|
+
return this.b15();
|
|
567
567
|
};
|
|
568
568
|
var JsonNull_instance;
|
|
569
569
|
function JsonNull_getInstance() {
|
|
@@ -574,37 +574,37 @@
|
|
|
574
574
|
function JsonLiteral(body, isString, coerceToInlineType) {
|
|
575
575
|
coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
|
|
576
576
|
JsonPrimitive.call(this);
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
if (!(this.
|
|
577
|
+
this.c15_1 = isString;
|
|
578
|
+
this.d15_1 = coerceToInlineType;
|
|
579
|
+
this.e15_1 = toString(body);
|
|
580
|
+
if (!(this.d15_1 == null)) {
|
|
581
581
|
// Inline function 'kotlin.require' call
|
|
582
582
|
// Inline function 'kotlin.contracts.contract' call
|
|
583
583
|
// Inline function 'kotlin.require' call
|
|
584
584
|
// Inline function 'kotlin.contracts.contract' call
|
|
585
|
-
if (!this.
|
|
585
|
+
if (!this.d15_1.fo()) {
|
|
586
586
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
587
587
|
var message = 'Failed requirement.';
|
|
588
588
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
protoOf(JsonLiteral).
|
|
593
|
-
return this.
|
|
592
|
+
protoOf(JsonLiteral).s14 = function () {
|
|
593
|
+
return this.e15_1;
|
|
594
594
|
};
|
|
595
595
|
protoOf(JsonLiteral).toString = function () {
|
|
596
596
|
var tmp;
|
|
597
|
-
if (this.
|
|
597
|
+
if (this.c15_1) {
|
|
598
598
|
// Inline function 'kotlin.text.buildString' call
|
|
599
599
|
// Inline function 'kotlin.contracts.contract' call
|
|
600
600
|
// Inline function 'kotlin.apply' call
|
|
601
601
|
var tmp0_apply = StringBuilder_init_$Create$();
|
|
602
602
|
// Inline function 'kotlin.contracts.contract' call
|
|
603
603
|
// Inline function 'kotlinx.serialization.json.JsonLiteral.toString.<anonymous>' call
|
|
604
|
-
printQuoted(tmp0_apply, this.
|
|
604
|
+
printQuoted(tmp0_apply, this.e15_1);
|
|
605
605
|
tmp = tmp0_apply.toString();
|
|
606
606
|
} else {
|
|
607
|
-
tmp = this.
|
|
607
|
+
tmp = this.e15_1;
|
|
608
608
|
}
|
|
609
609
|
return tmp;
|
|
610
610
|
};
|
|
@@ -615,20 +615,20 @@
|
|
|
615
615
|
return false;
|
|
616
616
|
if (!(other instanceof JsonLiteral))
|
|
617
617
|
THROW_CCE();
|
|
618
|
-
if (!(this.
|
|
618
|
+
if (!(this.c15_1 === other.c15_1))
|
|
619
619
|
return false;
|
|
620
|
-
if (!(this.
|
|
620
|
+
if (!(this.e15_1 === other.e15_1))
|
|
621
621
|
return false;
|
|
622
622
|
return true;
|
|
623
623
|
};
|
|
624
624
|
protoOf(JsonLiteral).hashCode = function () {
|
|
625
|
-
var result = this.
|
|
626
|
-
result = imul(31, result) + getStringHashCode(this.
|
|
625
|
+
var result = this.c15_1 | 0;
|
|
626
|
+
result = imul(31, result) + getStringHashCode(this.e15_1) | 0;
|
|
627
627
|
return result;
|
|
628
628
|
};
|
|
629
629
|
function get_booleanOrNull(_this__u8e3s4) {
|
|
630
630
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
631
|
-
return toBooleanStrictOrNull(_this__u8e3s4.
|
|
631
|
+
return toBooleanStrictOrNull(_this__u8e3s4.s14());
|
|
632
632
|
}
|
|
633
633
|
function JsonPrimitive_0(value) {
|
|
634
634
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
@@ -638,23 +638,23 @@
|
|
|
638
638
|
}
|
|
639
639
|
function get_int(_this__u8e3s4) {
|
|
640
640
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
641
|
-
return toInt(_this__u8e3s4.
|
|
641
|
+
return toInt(_this__u8e3s4.s14());
|
|
642
642
|
}
|
|
643
643
|
function get_long(_this__u8e3s4) {
|
|
644
644
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
645
|
-
return toLong(_this__u8e3s4.
|
|
645
|
+
return toLong(_this__u8e3s4.s14());
|
|
646
646
|
}
|
|
647
647
|
function get_float(_this__u8e3s4) {
|
|
648
648
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
649
649
|
// Inline function 'kotlin.text.toFloat' call
|
|
650
|
-
var tmp0_toFloat = _this__u8e3s4.
|
|
650
|
+
var tmp0_toFloat = _this__u8e3s4.s14();
|
|
651
651
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
652
652
|
// Inline function 'kotlin.js.asDynamic' call
|
|
653
653
|
return toDouble(tmp0_toFloat);
|
|
654
654
|
}
|
|
655
655
|
function get_double(_this__u8e3s4) {
|
|
656
656
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
657
|
-
return toDouble(_this__u8e3s4.
|
|
657
|
+
return toDouble(_this__u8e3s4.s14());
|
|
658
658
|
}
|
|
659
659
|
function get_contentOrNull(_this__u8e3s4) {
|
|
660
660
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
if (_this__u8e3s4 instanceof JsonNull) {
|
|
663
663
|
tmp = null;
|
|
664
664
|
} else {
|
|
665
|
-
tmp = _this__u8e3s4.
|
|
665
|
+
tmp = _this__u8e3s4.s14();
|
|
666
666
|
}
|
|
667
667
|
return tmp;
|
|
668
668
|
}
|
|
@@ -685,40 +685,40 @@
|
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) {
|
|
688
|
-
$this$buildSerialDescriptor.
|
|
689
|
-
$this$buildSerialDescriptor.
|
|
690
|
-
$this$buildSerialDescriptor.
|
|
691
|
-
$this$buildSerialDescriptor.
|
|
692
|
-
$this$buildSerialDescriptor.
|
|
688
|
+
$this$buildSerialDescriptor.ln('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda));
|
|
689
|
+
$this$buildSerialDescriptor.ln('JsonNull', defer(JsonElementSerializer$descriptor$lambda$lambda_0));
|
|
690
|
+
$this$buildSerialDescriptor.ln('JsonLiteral', defer(JsonElementSerializer$descriptor$lambda$lambda_1));
|
|
691
|
+
$this$buildSerialDescriptor.ln('JsonObject', defer(JsonElementSerializer$descriptor$lambda$lambda_2));
|
|
692
|
+
$this$buildSerialDescriptor.ln('JsonArray', defer(JsonElementSerializer$descriptor$lambda$lambda_3));
|
|
693
693
|
return Unit_getInstance();
|
|
694
694
|
}
|
|
695
695
|
function JsonElementSerializer$descriptor$lambda$lambda() {
|
|
696
|
-
return JsonPrimitiveSerializer_getInstance().
|
|
696
|
+
return JsonPrimitiveSerializer_getInstance().f15_1;
|
|
697
697
|
}
|
|
698
698
|
function JsonElementSerializer$descriptor$lambda$lambda_0() {
|
|
699
|
-
return JsonNullSerializer_getInstance().
|
|
699
|
+
return JsonNullSerializer_getInstance().g15_1;
|
|
700
700
|
}
|
|
701
701
|
function JsonElementSerializer$descriptor$lambda$lambda_1() {
|
|
702
|
-
return JsonLiteralSerializer_getInstance().
|
|
702
|
+
return JsonLiteralSerializer_getInstance().h15_1;
|
|
703
703
|
}
|
|
704
704
|
function JsonElementSerializer$descriptor$lambda$lambda_2() {
|
|
705
|
-
return JsonObjectSerializer_getInstance().
|
|
705
|
+
return JsonObjectSerializer_getInstance().i15_1;
|
|
706
706
|
}
|
|
707
707
|
function JsonElementSerializer$descriptor$lambda$lambda_3() {
|
|
708
|
-
return JsonArraySerializer_getInstance().
|
|
708
|
+
return JsonArraySerializer_getInstance().j15_1;
|
|
709
709
|
}
|
|
710
710
|
function JsonElementSerializer() {
|
|
711
711
|
JsonElementSerializer_instance = this;
|
|
712
712
|
var tmp = this;
|
|
713
713
|
var tmp_0 = SEALED_getInstance();
|
|
714
|
-
tmp.
|
|
714
|
+
tmp.k15_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
|
|
715
715
|
}
|
|
716
|
-
protoOf(JsonElementSerializer).
|
|
717
|
-
return this.
|
|
716
|
+
protoOf(JsonElementSerializer).bn = function () {
|
|
717
|
+
return this.k15_1;
|
|
718
718
|
};
|
|
719
|
-
protoOf(JsonElementSerializer).
|
|
719
|
+
protoOf(JsonElementSerializer).cn = function (decoder) {
|
|
720
720
|
var input = asJsonDecoder(decoder);
|
|
721
|
-
return input.
|
|
721
|
+
return input.r14();
|
|
722
722
|
};
|
|
723
723
|
var JsonElementSerializer_instance;
|
|
724
724
|
function JsonElementSerializer_getInstance() {
|
|
@@ -728,13 +728,13 @@
|
|
|
728
728
|
}
|
|
729
729
|
function JsonPrimitiveSerializer() {
|
|
730
730
|
JsonPrimitiveSerializer_instance = this;
|
|
731
|
-
this.
|
|
731
|
+
this.f15_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
|
|
732
732
|
}
|
|
733
|
-
protoOf(JsonPrimitiveSerializer).
|
|
734
|
-
return this.
|
|
733
|
+
protoOf(JsonPrimitiveSerializer).bn = function () {
|
|
734
|
+
return this.f15_1;
|
|
735
735
|
};
|
|
736
|
-
protoOf(JsonPrimitiveSerializer).
|
|
737
|
-
var result = asJsonDecoder(decoder).
|
|
736
|
+
protoOf(JsonPrimitiveSerializer).cn = function (decoder) {
|
|
737
|
+
var result = asJsonDecoder(decoder).r14();
|
|
738
738
|
if (!(result instanceof JsonPrimitive))
|
|
739
739
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + getKClassFromExpression(result), toString(result));
|
|
740
740
|
return result;
|
|
@@ -747,41 +747,41 @@
|
|
|
747
747
|
}
|
|
748
748
|
function JsonObjectDescriptor() {
|
|
749
749
|
JsonObjectDescriptor_instance = this;
|
|
750
|
-
this.
|
|
751
|
-
this.
|
|
750
|
+
this.l15_1 = MapSerializer(serializer(StringCompanionObject_getInstance()), JsonElementSerializer_getInstance()).bn();
|
|
751
|
+
this.m15_1 = 'kotlinx.serialization.json.JsonObject';
|
|
752
752
|
}
|
|
753
|
-
protoOf(JsonObjectDescriptor).co = function () {
|
|
754
|
-
return this.k15_1.co();
|
|
755
|
-
};
|
|
756
753
|
protoOf(JsonObjectDescriptor).do = function () {
|
|
757
|
-
return this.
|
|
754
|
+
return this.l15_1.do();
|
|
758
755
|
};
|
|
759
756
|
protoOf(JsonObjectDescriptor).eo = function () {
|
|
760
|
-
return this.
|
|
761
|
-
};
|
|
762
|
-
protoOf(JsonObjectDescriptor).xn = function () {
|
|
763
|
-
return this.k15_1.xn();
|
|
757
|
+
return this.l15_1.eo();
|
|
764
758
|
};
|
|
765
759
|
protoOf(JsonObjectDescriptor).fo = function () {
|
|
766
|
-
return this.
|
|
760
|
+
return this.l15_1.fo();
|
|
761
|
+
};
|
|
762
|
+
protoOf(JsonObjectDescriptor).yn = function () {
|
|
763
|
+
return this.l15_1.yn();
|
|
767
764
|
};
|
|
768
|
-
protoOf(JsonObjectDescriptor).go = function (
|
|
769
|
-
return this.
|
|
765
|
+
protoOf(JsonObjectDescriptor).go = function () {
|
|
766
|
+
return this.l15_1.go();
|
|
770
767
|
};
|
|
771
768
|
protoOf(JsonObjectDescriptor).ho = function (index) {
|
|
772
|
-
return this.
|
|
769
|
+
return this.l15_1.ho(index);
|
|
773
770
|
};
|
|
774
|
-
protoOf(JsonObjectDescriptor).io = function (
|
|
775
|
-
return this.
|
|
771
|
+
protoOf(JsonObjectDescriptor).io = function (index) {
|
|
772
|
+
return this.l15_1.io(index);
|
|
776
773
|
};
|
|
777
|
-
protoOf(JsonObjectDescriptor).jo = function (
|
|
778
|
-
return this.
|
|
774
|
+
protoOf(JsonObjectDescriptor).jo = function (name) {
|
|
775
|
+
return this.l15_1.jo(name);
|
|
779
776
|
};
|
|
780
777
|
protoOf(JsonObjectDescriptor).ko = function (index) {
|
|
781
|
-
return this.
|
|
778
|
+
return this.l15_1.ko(index);
|
|
782
779
|
};
|
|
783
|
-
protoOf(JsonObjectDescriptor).
|
|
784
|
-
return this.l15_1;
|
|
780
|
+
protoOf(JsonObjectDescriptor).lo = function (index) {
|
|
781
|
+
return this.l15_1.lo(index);
|
|
782
|
+
};
|
|
783
|
+
protoOf(JsonObjectDescriptor).co = function () {
|
|
784
|
+
return this.m15_1;
|
|
785
785
|
};
|
|
786
786
|
var JsonObjectDescriptor_instance;
|
|
787
787
|
function JsonObjectDescriptor_getInstance() {
|
|
@@ -791,14 +791,14 @@
|
|
|
791
791
|
}
|
|
792
792
|
function JsonObjectSerializer() {
|
|
793
793
|
JsonObjectSerializer_instance = this;
|
|
794
|
-
this.
|
|
794
|
+
this.i15_1 = JsonObjectDescriptor_getInstance();
|
|
795
795
|
}
|
|
796
|
-
protoOf(JsonObjectSerializer).
|
|
797
|
-
return this.
|
|
796
|
+
protoOf(JsonObjectSerializer).bn = function () {
|
|
797
|
+
return this.i15_1;
|
|
798
798
|
};
|
|
799
|
-
protoOf(JsonObjectSerializer).
|
|
799
|
+
protoOf(JsonObjectSerializer).cn = function (decoder) {
|
|
800
800
|
verify(decoder);
|
|
801
|
-
return new JsonObject(MapSerializer(serializer(StringCompanionObject_getInstance()), JsonElementSerializer_getInstance()).
|
|
801
|
+
return new JsonObject(MapSerializer(serializer(StringCompanionObject_getInstance()), JsonElementSerializer_getInstance()).cn(decoder));
|
|
802
802
|
};
|
|
803
803
|
var JsonObjectSerializer_instance;
|
|
804
804
|
function JsonObjectSerializer_getInstance() {
|
|
@@ -808,41 +808,41 @@
|
|
|
808
808
|
}
|
|
809
809
|
function JsonArrayDescriptor() {
|
|
810
810
|
JsonArrayDescriptor_instance = this;
|
|
811
|
-
this.
|
|
812
|
-
this.
|
|
811
|
+
this.n15_1 = ListSerializer(JsonElementSerializer_getInstance()).bn();
|
|
812
|
+
this.o15_1 = 'kotlinx.serialization.json.JsonArray';
|
|
813
813
|
}
|
|
814
|
-
protoOf(JsonArrayDescriptor).co = function () {
|
|
815
|
-
return this.m15_1.co();
|
|
816
|
-
};
|
|
817
814
|
protoOf(JsonArrayDescriptor).do = function () {
|
|
818
|
-
return this.
|
|
815
|
+
return this.n15_1.do();
|
|
819
816
|
};
|
|
820
817
|
protoOf(JsonArrayDescriptor).eo = function () {
|
|
821
|
-
return this.
|
|
822
|
-
};
|
|
823
|
-
protoOf(JsonArrayDescriptor).xn = function () {
|
|
824
|
-
return this.m15_1.xn();
|
|
818
|
+
return this.n15_1.eo();
|
|
825
819
|
};
|
|
826
820
|
protoOf(JsonArrayDescriptor).fo = function () {
|
|
827
|
-
return this.
|
|
821
|
+
return this.n15_1.fo();
|
|
822
|
+
};
|
|
823
|
+
protoOf(JsonArrayDescriptor).yn = function () {
|
|
824
|
+
return this.n15_1.yn();
|
|
828
825
|
};
|
|
829
|
-
protoOf(JsonArrayDescriptor).go = function (
|
|
830
|
-
return this.
|
|
826
|
+
protoOf(JsonArrayDescriptor).go = function () {
|
|
827
|
+
return this.n15_1.go();
|
|
831
828
|
};
|
|
832
829
|
protoOf(JsonArrayDescriptor).ho = function (index) {
|
|
833
|
-
return this.
|
|
830
|
+
return this.n15_1.ho(index);
|
|
834
831
|
};
|
|
835
|
-
protoOf(JsonArrayDescriptor).io = function (
|
|
836
|
-
return this.
|
|
832
|
+
protoOf(JsonArrayDescriptor).io = function (index) {
|
|
833
|
+
return this.n15_1.io(index);
|
|
837
834
|
};
|
|
838
|
-
protoOf(JsonArrayDescriptor).jo = function (
|
|
839
|
-
return this.
|
|
835
|
+
protoOf(JsonArrayDescriptor).jo = function (name) {
|
|
836
|
+
return this.n15_1.jo(name);
|
|
840
837
|
};
|
|
841
838
|
protoOf(JsonArrayDescriptor).ko = function (index) {
|
|
842
|
-
return this.
|
|
839
|
+
return this.n15_1.ko(index);
|
|
843
840
|
};
|
|
844
|
-
protoOf(JsonArrayDescriptor).
|
|
845
|
-
return this.n15_1;
|
|
841
|
+
protoOf(JsonArrayDescriptor).lo = function (index) {
|
|
842
|
+
return this.n15_1.lo(index);
|
|
843
|
+
};
|
|
844
|
+
protoOf(JsonArrayDescriptor).co = function () {
|
|
845
|
+
return this.o15_1;
|
|
846
846
|
};
|
|
847
847
|
var JsonArrayDescriptor_instance;
|
|
848
848
|
function JsonArrayDescriptor_getInstance() {
|
|
@@ -852,14 +852,14 @@
|
|
|
852
852
|
}
|
|
853
853
|
function JsonArraySerializer() {
|
|
854
854
|
JsonArraySerializer_instance = this;
|
|
855
|
-
this.
|
|
855
|
+
this.j15_1 = JsonArrayDescriptor_getInstance();
|
|
856
856
|
}
|
|
857
|
-
protoOf(JsonArraySerializer).
|
|
858
|
-
return this.
|
|
857
|
+
protoOf(JsonArraySerializer).bn = function () {
|
|
858
|
+
return this.j15_1;
|
|
859
859
|
};
|
|
860
|
-
protoOf(JsonArraySerializer).
|
|
860
|
+
protoOf(JsonArraySerializer).cn = function (decoder) {
|
|
861
861
|
verify(decoder);
|
|
862
|
-
return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).
|
|
862
|
+
return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).cn(decoder));
|
|
863
863
|
};
|
|
864
864
|
var JsonArraySerializer_instance;
|
|
865
865
|
function JsonArraySerializer_getInstance() {
|
|
@@ -872,17 +872,17 @@
|
|
|
872
872
|
}
|
|
873
873
|
function JsonNullSerializer() {
|
|
874
874
|
JsonNullSerializer_instance = this;
|
|
875
|
-
this.
|
|
875
|
+
this.g15_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
|
|
876
876
|
}
|
|
877
|
-
protoOf(JsonNullSerializer).
|
|
878
|
-
return this.
|
|
877
|
+
protoOf(JsonNullSerializer).bn = function () {
|
|
878
|
+
return this.g15_1;
|
|
879
879
|
};
|
|
880
|
-
protoOf(JsonNullSerializer).
|
|
880
|
+
protoOf(JsonNullSerializer).cn = function (decoder) {
|
|
881
881
|
verify(decoder);
|
|
882
|
-
if (decoder.
|
|
882
|
+
if (decoder.kp()) {
|
|
883
883
|
throw new JsonDecodingException("Expected 'null' literal");
|
|
884
884
|
}
|
|
885
|
-
decoder.
|
|
885
|
+
decoder.lp();
|
|
886
886
|
return JsonNull_getInstance();
|
|
887
887
|
};
|
|
888
888
|
var JsonNullSerializer_instance;
|
|
@@ -893,13 +893,13 @@
|
|
|
893
893
|
}
|
|
894
894
|
function JsonLiteralSerializer() {
|
|
895
895
|
JsonLiteralSerializer_instance = this;
|
|
896
|
-
this.
|
|
896
|
+
this.h15_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
|
|
897
897
|
}
|
|
898
|
-
protoOf(JsonLiteralSerializer).
|
|
899
|
-
return this.
|
|
898
|
+
protoOf(JsonLiteralSerializer).bn = function () {
|
|
899
|
+
return this.h15_1;
|
|
900
900
|
};
|
|
901
|
-
protoOf(JsonLiteralSerializer).
|
|
902
|
-
var result = asJsonDecoder(decoder).
|
|
901
|
+
protoOf(JsonLiteralSerializer).cn = function (decoder) {
|
|
902
|
+
var result = asJsonDecoder(decoder).r14();
|
|
903
903
|
if (!(result instanceof JsonLiteral))
|
|
904
904
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + getKClassFromExpression(result), toString(result));
|
|
905
905
|
return result;
|
|
@@ -926,34 +926,34 @@
|
|
|
926
926
|
function _get_original__l7ku1m($this) {
|
|
927
927
|
// Inline function 'kotlin.getValue' call
|
|
928
928
|
original$factory();
|
|
929
|
-
return $this.
|
|
929
|
+
return $this.p15_1.w();
|
|
930
930
|
}
|
|
931
931
|
function defer$1($deferred) {
|
|
932
|
-
this.
|
|
932
|
+
this.p15_1 = lazy_0($deferred);
|
|
933
933
|
}
|
|
934
|
-
protoOf(defer$1).
|
|
935
|
-
return _get_original__l7ku1m(this).
|
|
936
|
-
};
|
|
937
|
-
protoOf(defer$1).fo = function () {
|
|
938
|
-
return _get_original__l7ku1m(this).fo();
|
|
934
|
+
protoOf(defer$1).co = function () {
|
|
935
|
+
return _get_original__l7ku1m(this).co();
|
|
939
936
|
};
|
|
940
|
-
protoOf(defer$1).
|
|
941
|
-
return _get_original__l7ku1m(this).
|
|
937
|
+
protoOf(defer$1).go = function () {
|
|
938
|
+
return _get_original__l7ku1m(this).go();
|
|
942
939
|
};
|
|
943
|
-
protoOf(defer$1).
|
|
944
|
-
return _get_original__l7ku1m(this).
|
|
940
|
+
protoOf(defer$1).eo = function () {
|
|
941
|
+
return _get_original__l7ku1m(this).eo();
|
|
945
942
|
};
|
|
946
|
-
protoOf(defer$1).
|
|
947
|
-
return _get_original__l7ku1m(this).
|
|
943
|
+
protoOf(defer$1).ko = function (index) {
|
|
944
|
+
return _get_original__l7ku1m(this).ko(index);
|
|
948
945
|
};
|
|
949
|
-
protoOf(defer$1).
|
|
950
|
-
return _get_original__l7ku1m(this).
|
|
946
|
+
protoOf(defer$1).jo = function (name) {
|
|
947
|
+
return _get_original__l7ku1m(this).jo(name);
|
|
951
948
|
};
|
|
952
949
|
protoOf(defer$1).ho = function (index) {
|
|
953
950
|
return _get_original__l7ku1m(this).ho(index);
|
|
954
951
|
};
|
|
955
|
-
protoOf(defer$1).
|
|
956
|
-
return _get_original__l7ku1m(this).
|
|
952
|
+
protoOf(defer$1).io = function (index) {
|
|
953
|
+
return _get_original__l7ku1m(this).io(index);
|
|
954
|
+
};
|
|
955
|
+
protoOf(defer$1).lo = function (index) {
|
|
956
|
+
return _get_original__l7ku1m(this).lo(index);
|
|
957
957
|
};
|
|
958
958
|
function original$factory() {
|
|
959
959
|
return getPropertyCallableRef('original', 1, KProperty1, function (receiver) {
|
|
@@ -961,8 +961,8 @@
|
|
|
961
961
|
}, null);
|
|
962
962
|
}
|
|
963
963
|
function readIfAbsent($this, descriptor, index) {
|
|
964
|
-
$this.
|
|
965
|
-
return $this.
|
|
964
|
+
$this.r15_1 = !descriptor.lo(index) ? descriptor.io(index).yn() : false;
|
|
965
|
+
return $this.r15_1;
|
|
966
966
|
}
|
|
967
967
|
function JsonElementMarker$readIfAbsent$ref($boundThis) {
|
|
968
968
|
var l = function (p0, p1) {
|
|
@@ -973,14 +973,14 @@
|
|
|
973
973
|
}
|
|
974
974
|
function JsonElementMarker(descriptor) {
|
|
975
975
|
var tmp = this;
|
|
976
|
-
tmp.
|
|
977
|
-
this.
|
|
976
|
+
tmp.q15_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
|
|
977
|
+
this.r15_1 = false;
|
|
978
978
|
}
|
|
979
|
-
protoOf(JsonElementMarker).
|
|
980
|
-
this.
|
|
979
|
+
protoOf(JsonElementMarker).bu = function (index) {
|
|
980
|
+
this.q15_1.bu(index);
|
|
981
981
|
};
|
|
982
|
-
protoOf(JsonElementMarker).
|
|
983
|
-
return this.
|
|
982
|
+
protoOf(JsonElementMarker).cu = function () {
|
|
983
|
+
return this.q15_1.cu();
|
|
984
984
|
};
|
|
985
985
|
function JsonDecodingException(message) {
|
|
986
986
|
JsonException.call(this, message);
|
|
@@ -1018,14 +1018,14 @@
|
|
|
1018
1018
|
return prefix + toString(charSequenceSubSequence(_this__u8e3s4, tmp1_substring, tmp2_substring)) + suffix;
|
|
1019
1019
|
}
|
|
1020
1020
|
function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
|
|
1021
|
-
_this__u8e3s4.
|
|
1021
|
+
_this__u8e3s4.s15('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());
|
|
1022
1022
|
}
|
|
1023
1023
|
function JsonEncodingException(message) {
|
|
1024
1024
|
JsonException.call(this, message);
|
|
1025
1025
|
captureStack(this, JsonEncodingException);
|
|
1026
1026
|
}
|
|
1027
1027
|
function InvalidKeyKindException(keyDescriptor) {
|
|
1028
|
-
return new JsonEncodingException("Value of type '" + keyDescriptor.
|
|
1028
|
+
return new JsonEncodingException("Value of type '" + keyDescriptor.co() + "' 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.go() + "'.\n") + get_allowStructuredMapKeysHint());
|
|
1029
1029
|
}
|
|
1030
1030
|
function InvalidFloatingPointDecoded(value, key, output) {
|
|
1031
1031
|
return JsonDecodingException_1(-1, unexpectedFpErrorMessage(value, key, output));
|
|
@@ -1047,11 +1047,11 @@
|
|
|
1047
1047
|
var strategy = namingStrategy(_this__u8e3s4, json);
|
|
1048
1048
|
if (!(strategy == null))
|
|
1049
1049
|
return getJsonNameIndex$getJsonNameIndexSlowPath(json, _this__u8e3s4, name);
|
|
1050
|
-
var index = _this__u8e3s4.
|
|
1050
|
+
var index = _this__u8e3s4.jo(name);
|
|
1051
1051
|
Companion_getInstance();
|
|
1052
1052
|
if (!(index === -3))
|
|
1053
1053
|
return index;
|
|
1054
|
-
if (!json.
|
|
1054
|
+
if (!json.x12_1.o14_1)
|
|
1055
1055
|
return index;
|
|
1056
1056
|
return getJsonNameIndex$getJsonNameIndexSlowPath(json, _this__u8e3s4, name);
|
|
1057
1057
|
}
|
|
@@ -1061,18 +1061,18 @@
|
|
|
1061
1061
|
var index = getJsonNameIndex(_this__u8e3s4, json, name);
|
|
1062
1062
|
Companion_getInstance();
|
|
1063
1063
|
if (index === -3)
|
|
1064
|
-
throw SerializationException_init_$Create$(_this__u8e3s4.
|
|
1064
|
+
throw SerializationException_init_$Create$(_this__u8e3s4.co() + " does not contain element with name '" + name + "'" + suffix);
|
|
1065
1065
|
return index;
|
|
1066
1066
|
}
|
|
1067
1067
|
function namingStrategy(_this__u8e3s4, json) {
|
|
1068
1068
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1069
|
-
return equals(_this__u8e3s4.
|
|
1069
|
+
return equals(_this__u8e3s4.go(), CLASS_getInstance()) ? json.x12_1.p14_1 : null;
|
|
1070
1070
|
}
|
|
1071
1071
|
function deserializationNamesMap(_this__u8e3s4, descriptor) {
|
|
1072
1072
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1073
1073
|
var tmp = get_schemaCache(_this__u8e3s4);
|
|
1074
1074
|
var tmp_0 = get_JsonDeserializationNamesKey();
|
|
1075
|
-
return tmp.
|
|
1075
|
+
return tmp.u15(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
|
|
1076
1076
|
}
|
|
1077
1077
|
function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
1078
1078
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1080,13 +1080,13 @@
|
|
|
1080
1080
|
var builder = LinkedHashMap_init_$Create$();
|
|
1081
1081
|
var strategy = namingStrategy(_this__u8e3s4, json);
|
|
1082
1082
|
var inductionVariable = 0;
|
|
1083
|
-
var last = _this__u8e3s4.
|
|
1083
|
+
var last = _this__u8e3s4.eo();
|
|
1084
1084
|
if (inductionVariable < last)
|
|
1085
1085
|
do {
|
|
1086
1086
|
var i = inductionVariable;
|
|
1087
1087
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1088
1088
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1089
|
-
var tmp0_filterIsInstance = _this__u8e3s4.
|
|
1089
|
+
var tmp0_filterIsInstance = _this__u8e3s4.ho(i);
|
|
1090
1090
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1091
1091
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
1092
1092
|
var tmp0_iterator = tmp0_filterIsInstance.c();
|
|
@@ -1097,7 +1097,7 @@
|
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
1099
|
var tmp1_safe_receiver = singleOrNull(tmp0_filterIsInstanceTo);
|
|
1100
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1100
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v15_1;
|
|
1101
1101
|
if (tmp2_safe_receiver == null)
|
|
1102
1102
|
null;
|
|
1103
1103
|
else {
|
|
@@ -1114,7 +1114,7 @@
|
|
|
1114
1114
|
else {
|
|
1115
1115
|
// Inline function 'kotlin.let' call
|
|
1116
1116
|
// Inline function 'kotlin.contracts.contract' call
|
|
1117
|
-
buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, strategy.
|
|
1117
|
+
buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, strategy.w15(_this__u8e3s4, i, _this__u8e3s4.ko(i)), i);
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
while (inductionVariable < last);
|
|
@@ -1143,7 +1143,7 @@
|
|
|
1143
1143
|
// Inline function 'kotlin.collections.contains' call
|
|
1144
1144
|
// Inline function 'kotlin.collections.containsKey' call
|
|
1145
1145
|
if ((isInterface(_this__u8e3s4, Map) ? _this__u8e3s4 : THROW_CCE()).j2(name)) {
|
|
1146
|
-
throw new JsonException("The suggested name '" + name + "' for property " + $this_buildDeserializationNamesMap.
|
|
1146
|
+
throw new JsonException("The suggested name '" + name + "' for property " + $this_buildDeserializationNamesMap.ko(index) + ' is already one of the names for property ' + ($this_buildDeserializationNamesMap.ko(getValue(_this__u8e3s4, name)) + ' in ' + $this_buildDeserializationNamesMap));
|
|
1147
1147
|
}
|
|
1148
1148
|
// Inline function 'kotlin.collections.set' call
|
|
1149
1149
|
_this__u8e3s4.l3(name, index);
|
|
@@ -1171,14 +1171,14 @@
|
|
|
1171
1171
|
return Tombstone_instance;
|
|
1172
1172
|
}
|
|
1173
1173
|
function resize($this) {
|
|
1174
|
-
var newSize = imul($this.
|
|
1175
|
-
$this.
|
|
1176
|
-
$this.
|
|
1174
|
+
var newSize = imul($this.z15_1, 2);
|
|
1175
|
+
$this.x15_1 = copyOf($this.x15_1, newSize);
|
|
1176
|
+
$this.y15_1 = copyOf_0($this.y15_1, newSize);
|
|
1177
1177
|
}
|
|
1178
1178
|
function JsonPath() {
|
|
1179
1179
|
var tmp = this;
|
|
1180
1180
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1181
|
-
tmp.
|
|
1181
|
+
tmp.x15_1 = fillArrayVal(Array(8), null);
|
|
1182
1182
|
var tmp_0 = this;
|
|
1183
1183
|
var tmp_1 = 0;
|
|
1184
1184
|
var tmp_2 = new Int32Array(8);
|
|
@@ -1186,50 +1186,50 @@
|
|
|
1186
1186
|
tmp_2[tmp_1] = -1;
|
|
1187
1187
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1188
1188
|
}
|
|
1189
|
-
tmp_0.
|
|
1190
|
-
this.
|
|
1189
|
+
tmp_0.y15_1 = tmp_2;
|
|
1190
|
+
this.z15_1 = -1;
|
|
1191
1191
|
}
|
|
1192
|
-
protoOf(JsonPath).
|
|
1193
|
-
this.
|
|
1194
|
-
var depth = this.
|
|
1195
|
-
if (depth === this.
|
|
1192
|
+
protoOf(JsonPath).a16 = function (sd) {
|
|
1193
|
+
this.z15_1 = this.z15_1 + 1 | 0;
|
|
1194
|
+
var depth = this.z15_1;
|
|
1195
|
+
if (depth === this.x15_1.length) {
|
|
1196
1196
|
resize(this);
|
|
1197
1197
|
}
|
|
1198
|
-
this.
|
|
1198
|
+
this.x15_1[depth] = sd;
|
|
1199
1199
|
};
|
|
1200
|
-
protoOf(JsonPath).
|
|
1201
|
-
this.
|
|
1200
|
+
protoOf(JsonPath).b16 = function (index) {
|
|
1201
|
+
this.y15_1[this.z15_1] = index;
|
|
1202
1202
|
};
|
|
1203
|
-
protoOf(JsonPath).
|
|
1203
|
+
protoOf(JsonPath).c16 = function (key) {
|
|
1204
1204
|
var tmp;
|
|
1205
|
-
if (!(this.
|
|
1206
|
-
this.
|
|
1207
|
-
tmp = this.
|
|
1205
|
+
if (!(this.y15_1[this.z15_1] === -2)) {
|
|
1206
|
+
this.z15_1 = this.z15_1 + 1 | 0;
|
|
1207
|
+
tmp = this.z15_1 === this.x15_1.length;
|
|
1208
1208
|
} else {
|
|
1209
1209
|
tmp = false;
|
|
1210
1210
|
}
|
|
1211
1211
|
if (tmp) {
|
|
1212
1212
|
resize(this);
|
|
1213
1213
|
}
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1214
|
+
this.x15_1[this.z15_1] = key;
|
|
1215
|
+
this.y15_1[this.z15_1] = -2;
|
|
1216
1216
|
};
|
|
1217
|
-
protoOf(JsonPath).
|
|
1218
|
-
if (this.
|
|
1219
|
-
this.
|
|
1217
|
+
protoOf(JsonPath).d16 = function () {
|
|
1218
|
+
if (this.y15_1[this.z15_1] === -2) {
|
|
1219
|
+
this.x15_1[this.z15_1] = Tombstone_getInstance();
|
|
1220
1220
|
}
|
|
1221
1221
|
};
|
|
1222
|
-
protoOf(JsonPath).
|
|
1223
|
-
var depth = this.
|
|
1224
|
-
if (this.
|
|
1225
|
-
this.
|
|
1226
|
-
this.
|
|
1222
|
+
protoOf(JsonPath).e16 = function () {
|
|
1223
|
+
var depth = this.z15_1;
|
|
1224
|
+
if (this.y15_1[depth] === -2) {
|
|
1225
|
+
this.y15_1[depth] = -1;
|
|
1226
|
+
this.z15_1 = this.z15_1 - 1 | 0;
|
|
1227
1227
|
}
|
|
1228
|
-
if (!(this.
|
|
1229
|
-
this.
|
|
1228
|
+
if (!(this.z15_1 === -1)) {
|
|
1229
|
+
this.z15_1 = this.z15_1 - 1 | 0;
|
|
1230
1230
|
}
|
|
1231
1231
|
};
|
|
1232
|
-
protoOf(JsonPath).
|
|
1232
|
+
protoOf(JsonPath).f16 = function () {
|
|
1233
1233
|
// Inline function 'kotlin.text.buildString' call
|
|
1234
1234
|
// Inline function 'kotlin.contracts.contract' call
|
|
1235
1235
|
// Inline function 'kotlin.apply' call
|
|
@@ -1238,7 +1238,7 @@
|
|
|
1238
1238
|
// Inline function 'kotlinx.serialization.json.internal.JsonPath.getPath.<anonymous>' call
|
|
1239
1239
|
tmp0_apply.a6('$');
|
|
1240
1240
|
// Inline function 'kotlin.repeat' call
|
|
1241
|
-
var tmp0_repeat = this.
|
|
1241
|
+
var tmp0_repeat = this.z15_1 + 1 | 0;
|
|
1242
1242
|
// Inline function 'kotlin.contracts.contract' call
|
|
1243
1243
|
var inductionVariable = 0;
|
|
1244
1244
|
if (inductionVariable < tmp0_repeat)
|
|
@@ -1246,19 +1246,19 @@
|
|
|
1246
1246
|
var index = inductionVariable;
|
|
1247
1247
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1248
1248
|
// Inline function 'kotlinx.serialization.json.internal.JsonPath.getPath.<anonymous>.<anonymous>' call
|
|
1249
|
-
var element = this.
|
|
1249
|
+
var element = this.x15_1[index];
|
|
1250
1250
|
if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
|
|
1251
|
-
if (equals(element.
|
|
1252
|
-
if (!(this.
|
|
1251
|
+
if (equals(element.go(), LIST_getInstance())) {
|
|
1252
|
+
if (!(this.y15_1[index] === -1)) {
|
|
1253
1253
|
tmp0_apply.a6('[');
|
|
1254
|
-
tmp0_apply.z5(this.
|
|
1254
|
+
tmp0_apply.z5(this.y15_1[index]);
|
|
1255
1255
|
tmp0_apply.a6(']');
|
|
1256
1256
|
}
|
|
1257
1257
|
} else {
|
|
1258
|
-
var idx = this.
|
|
1258
|
+
var idx = this.y15_1[index];
|
|
1259
1259
|
if (idx >= 0) {
|
|
1260
1260
|
tmp0_apply.a6('.');
|
|
1261
|
-
tmp0_apply.a6(element.
|
|
1261
|
+
tmp0_apply.a6(element.ko(idx));
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
1264
|
} else {
|
|
@@ -1275,36 +1275,36 @@
|
|
|
1275
1275
|
return tmp0_apply.toString();
|
|
1276
1276
|
};
|
|
1277
1277
|
protoOf(JsonPath).toString = function () {
|
|
1278
|
-
return this.
|
|
1278
|
+
return this.f16();
|
|
1279
1279
|
};
|
|
1280
1280
|
function readObject($this) {
|
|
1281
1281
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
|
|
1282
|
-
var lastToken = $this.
|
|
1283
|
-
if ($this.
|
|
1284
|
-
$this.
|
|
1282
|
+
var lastToken = $this.g16_1.j16(get_TC_BEGIN_OBJ());
|
|
1283
|
+
if ($this.g16_1.k16() === get_TC_COMMA()) {
|
|
1284
|
+
$this.g16_1.s15('Unexpected leading comma');
|
|
1285
1285
|
}
|
|
1286
1286
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
1287
1287
|
var result = LinkedHashMap_init_$Create$();
|
|
1288
|
-
$l$loop: while ($this.
|
|
1289
|
-
var key = $this.
|
|
1290
|
-
$this.
|
|
1288
|
+
$l$loop: while ($this.g16_1.l16()) {
|
|
1289
|
+
var key = $this.h16_1 ? $this.g16_1.n16() : $this.g16_1.m16();
|
|
1290
|
+
$this.g16_1.j16(get_TC_COLON());
|
|
1291
1291
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObject.<anonymous>' call
|
|
1292
|
-
var element = $this.
|
|
1292
|
+
var element = $this.o16();
|
|
1293
1293
|
// Inline function 'kotlin.collections.set' call
|
|
1294
1294
|
result.l3(key, element);
|
|
1295
|
-
lastToken = $this.
|
|
1295
|
+
lastToken = $this.g16_1.p16();
|
|
1296
1296
|
var tmp0_subject = lastToken;
|
|
1297
1297
|
if (tmp0_subject !== get_TC_COMMA())
|
|
1298
1298
|
if (tmp0_subject === get_TC_END_OBJ())
|
|
1299
1299
|
break $l$loop;
|
|
1300
1300
|
else {
|
|
1301
|
-
$this.
|
|
1301
|
+
$this.g16_1.s15('Expected end of the object or comma');
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
if (lastToken === get_TC_BEGIN_OBJ()) {
|
|
1305
|
-
$this.
|
|
1305
|
+
$this.g16_1.j16(get_TC_END_OBJ());
|
|
1306
1306
|
} else if (lastToken === get_TC_COMMA()) {
|
|
1307
|
-
$this.
|
|
1307
|
+
$this.g16_1.s15('Unexpected trailing comma');
|
|
1308
1308
|
}
|
|
1309
1309
|
return new JsonObject(result);
|
|
1310
1310
|
}
|
|
@@ -1315,42 +1315,42 @@
|
|
|
1315
1315
|
return tmp.ig();
|
|
1316
1316
|
}
|
|
1317
1317
|
function readArray($this) {
|
|
1318
|
-
var lastToken = $this.
|
|
1319
|
-
if ($this.
|
|
1320
|
-
$this.
|
|
1318
|
+
var lastToken = $this.g16_1.p16();
|
|
1319
|
+
if ($this.g16_1.k16() === get_TC_COMMA()) {
|
|
1320
|
+
$this.g16_1.s15('Unexpected leading comma');
|
|
1321
1321
|
}
|
|
1322
1322
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1323
1323
|
var result = ArrayList_init_$Create$();
|
|
1324
|
-
while ($this.
|
|
1325
|
-
var element = $this.
|
|
1324
|
+
while ($this.g16_1.l16()) {
|
|
1325
|
+
var element = $this.o16();
|
|
1326
1326
|
result.a(element);
|
|
1327
|
-
lastToken = $this.
|
|
1327
|
+
lastToken = $this.g16_1.p16();
|
|
1328
1328
|
if (!(lastToken === get_TC_COMMA())) {
|
|
1329
1329
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
1330
|
-
var tmp0_require = $this.
|
|
1330
|
+
var tmp0_require = $this.g16_1;
|
|
1331
1331
|
var tmp1_require = lastToken === get_TC_END_LIST();
|
|
1332
|
-
var tmp2_require = tmp0_require.
|
|
1332
|
+
var tmp2_require = tmp0_require.k13_1;
|
|
1333
1333
|
if (!tmp1_require) {
|
|
1334
1334
|
var tmp$ret$1;
|
|
1335
1335
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readArray.<anonymous>' call
|
|
1336
1336
|
tmp$ret$1 = 'Expected end of the array or comma';
|
|
1337
|
-
tmp0_require.
|
|
1337
|
+
tmp0_require.s15(tmp$ret$1, tmp2_require);
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
if (lastToken === get_TC_BEGIN_LIST()) {
|
|
1342
|
-
$this.
|
|
1342
|
+
$this.g16_1.j16(get_TC_END_LIST());
|
|
1343
1343
|
} else if (lastToken === get_TC_COMMA()) {
|
|
1344
|
-
$this.
|
|
1344
|
+
$this.g16_1.s15('Unexpected trailing comma');
|
|
1345
1345
|
}
|
|
1346
1346
|
return new JsonArray(result);
|
|
1347
1347
|
}
|
|
1348
1348
|
function readValue($this, isString) {
|
|
1349
1349
|
var tmp;
|
|
1350
|
-
if ($this.
|
|
1351
|
-
tmp = $this.
|
|
1350
|
+
if ($this.h16_1 ? true : !isString) {
|
|
1351
|
+
tmp = $this.g16_1.n16();
|
|
1352
1352
|
} else {
|
|
1353
|
-
tmp = $this.
|
|
1353
|
+
tmp = $this.g16_1.m16();
|
|
1354
1354
|
}
|
|
1355
1355
|
var string = tmp;
|
|
1356
1356
|
if (!isString ? string === get_NULL() : false)
|
|
@@ -1361,18 +1361,18 @@
|
|
|
1361
1361
|
return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_getInstance());
|
|
1362
1362
|
}
|
|
1363
1363
|
function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
|
|
1364
|
-
this.
|
|
1364
|
+
this.l17_1 = this$0;
|
|
1365
1365
|
CoroutineImpl.call(this, resultContinuation);
|
|
1366
1366
|
}
|
|
1367
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1368
|
-
var tmp = this.
|
|
1367
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).q17 = function ($this$$receiver, it, $completion) {
|
|
1368
|
+
var tmp = this.r17($this$$receiver, it, $completion);
|
|
1369
1369
|
tmp.cg_1 = Unit_getInstance();
|
|
1370
1370
|
tmp.dg_1 = null;
|
|
1371
1371
|
return tmp.ig();
|
|
1372
1372
|
};
|
|
1373
1373
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).o6 = function (p1, p2, $completion) {
|
|
1374
1374
|
var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
|
|
1375
|
-
return this.
|
|
1375
|
+
return this.q17(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
|
|
1376
1376
|
};
|
|
1377
1377
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).ig = function () {
|
|
1378
1378
|
var suspendResult = this.cg_1;
|
|
@@ -1382,32 +1382,32 @@
|
|
|
1382
1382
|
switch (tmp) {
|
|
1383
1383
|
case 0:
|
|
1384
1384
|
this.bg_1 = 3;
|
|
1385
|
-
this.
|
|
1386
|
-
if (this.
|
|
1387
|
-
this.
|
|
1385
|
+
this.o17_1 = this.l17_1.g16_1.k16();
|
|
1386
|
+
if (this.o17_1 === get_TC_STRING()) {
|
|
1387
|
+
this.p17_1 = readValue(this.l17_1, true);
|
|
1388
1388
|
this.ag_1 = 2;
|
|
1389
1389
|
continue $sm;
|
|
1390
1390
|
} else {
|
|
1391
|
-
if (this.
|
|
1392
|
-
this.
|
|
1391
|
+
if (this.o17_1 === get_TC_OTHER()) {
|
|
1392
|
+
this.p17_1 = readValue(this.l17_1, false);
|
|
1393
1393
|
this.ag_1 = 2;
|
|
1394
1394
|
continue $sm;
|
|
1395
1395
|
} else {
|
|
1396
|
-
if (this.
|
|
1396
|
+
if (this.o17_1 === get_TC_BEGIN_OBJ()) {
|
|
1397
1397
|
this.ag_1 = 1;
|
|
1398
|
-
suspendResult = readObject_0(this.
|
|
1398
|
+
suspendResult = readObject_0(this.m17_1, this.l17_1, this);
|
|
1399
1399
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1400
1400
|
return suspendResult;
|
|
1401
1401
|
}
|
|
1402
1402
|
continue $sm;
|
|
1403
1403
|
} else {
|
|
1404
|
-
if (this.
|
|
1405
|
-
this.
|
|
1404
|
+
if (this.o17_1 === get_TC_BEGIN_LIST()) {
|
|
1405
|
+
this.p17_1 = readArray(this.l17_1);
|
|
1406
1406
|
this.ag_1 = 2;
|
|
1407
1407
|
continue $sm;
|
|
1408
1408
|
} else {
|
|
1409
1409
|
var tmp_0 = this;
|
|
1410
|
-
this.
|
|
1410
|
+
this.l17_1.g16_1.s15("Can't begin reading element, unexpected token");
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
@@ -1415,11 +1415,11 @@
|
|
|
1415
1415
|
|
|
1416
1416
|
break;
|
|
1417
1417
|
case 1:
|
|
1418
|
-
this.
|
|
1418
|
+
this.p17_1 = suspendResult;
|
|
1419
1419
|
this.ag_1 = 2;
|
|
1420
1420
|
continue $sm;
|
|
1421
1421
|
case 2:
|
|
1422
|
-
return this.
|
|
1422
|
+
return this.p17_1;
|
|
1423
1423
|
case 3:
|
|
1424
1424
|
throw this.dg_1;
|
|
1425
1425
|
}
|
|
@@ -1434,24 +1434,24 @@
|
|
|
1434
1434
|
}
|
|
1435
1435
|
while (true);
|
|
1436
1436
|
};
|
|
1437
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1438
|
-
var i = new JsonTreeReader$readDeepRecursive$slambda(this.
|
|
1439
|
-
i.
|
|
1440
|
-
i.
|
|
1437
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).r17 = function ($this$$receiver, it, completion) {
|
|
1438
|
+
var i = new JsonTreeReader$readDeepRecursive$slambda(this.l17_1, completion);
|
|
1439
|
+
i.m17_1 = $this$$receiver;
|
|
1440
|
+
i.n17_1 = it;
|
|
1441
1441
|
return i;
|
|
1442
1442
|
};
|
|
1443
1443
|
function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
|
|
1444
1444
|
var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
|
|
1445
1445
|
var l = function ($this$$receiver, it, $completion) {
|
|
1446
|
-
return i.
|
|
1446
|
+
return i.q17($this$$receiver, it, $completion);
|
|
1447
1447
|
};
|
|
1448
1448
|
l.$arity = 2;
|
|
1449
1449
|
return l;
|
|
1450
1450
|
}
|
|
1451
1451
|
function $readObjectCOROUTINE$0(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
1452
1452
|
CoroutineImpl.call(this, resultContinuation);
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1453
|
+
this.y16_1 = _this__u8e3s4;
|
|
1454
|
+
this.z16_1 = _this__u8e3s4_0;
|
|
1455
1455
|
}
|
|
1456
1456
|
protoOf($readObjectCOROUTINE$0).ig = function () {
|
|
1457
1457
|
var suspendResult = this.cg_1;
|
|
@@ -1461,25 +1461,25 @@
|
|
|
1461
1461
|
switch (tmp) {
|
|
1462
1462
|
case 0:
|
|
1463
1463
|
this.bg_1 = 5;
|
|
1464
|
-
this.
|
|
1465
|
-
if (this.
|
|
1466
|
-
this.
|
|
1464
|
+
this.a17_1 = this.y16_1.g16_1.j16(get_TC_BEGIN_OBJ());
|
|
1465
|
+
if (this.y16_1.g16_1.k16() === get_TC_COMMA()) {
|
|
1466
|
+
this.y16_1.g16_1.s15('Unexpected leading comma');
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
1469
|
var tmp_0 = this;
|
|
1470
|
-
tmp_0.
|
|
1470
|
+
tmp_0.b17_1 = LinkedHashMap_init_$Create$();
|
|
1471
1471
|
this.ag_1 = 1;
|
|
1472
1472
|
continue $sm;
|
|
1473
1473
|
case 1:
|
|
1474
|
-
if (!this.
|
|
1474
|
+
if (!this.y16_1.g16_1.l16()) {
|
|
1475
1475
|
this.ag_1 = 4;
|
|
1476
1476
|
continue $sm;
|
|
1477
1477
|
}
|
|
1478
1478
|
|
|
1479
|
-
this.
|
|
1480
|
-
this.
|
|
1479
|
+
this.c17_1 = this.y16_1.h16_1 ? this.y16_1.g16_1.n16() : this.y16_1.g16_1.m16();
|
|
1480
|
+
this.y16_1.g16_1.j16(get_TC_COLON());
|
|
1481
1481
|
this.ag_1 = 2;
|
|
1482
|
-
suspendResult = this.
|
|
1482
|
+
suspendResult = this.z16_1.g6(Unit_getInstance(), this);
|
|
1483
1483
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1484
1484
|
return suspendResult;
|
|
1485
1485
|
}
|
|
@@ -1487,9 +1487,9 @@
|
|
|
1487
1487
|
continue $sm;
|
|
1488
1488
|
case 2:
|
|
1489
1489
|
var element = suspendResult;
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
var tmp0_subject = this.
|
|
1490
|
+
this.b17_1.l3(this.c17_1, element);
|
|
1491
|
+
this.a17_1 = this.y16_1.g16_1.p16();
|
|
1492
|
+
var tmp0_subject = this.a17_1;
|
|
1493
1493
|
if (tmp0_subject === get_TC_COMMA()) {
|
|
1494
1494
|
this.ag_1 = 3;
|
|
1495
1495
|
continue $sm;
|
|
@@ -1498,7 +1498,7 @@
|
|
|
1498
1498
|
this.ag_1 = 4;
|
|
1499
1499
|
continue $sm;
|
|
1500
1500
|
} else {
|
|
1501
|
-
this.
|
|
1501
|
+
this.y16_1.g16_1.s15('Expected end of the object or comma');
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
1504
|
|
|
@@ -1507,13 +1507,13 @@
|
|
|
1507
1507
|
this.ag_1 = 1;
|
|
1508
1508
|
continue $sm;
|
|
1509
1509
|
case 4:
|
|
1510
|
-
if (this.
|
|
1511
|
-
this.
|
|
1512
|
-
} else if (this.
|
|
1513
|
-
this.
|
|
1510
|
+
if (this.a17_1 === get_TC_BEGIN_OBJ()) {
|
|
1511
|
+
this.y16_1.g16_1.j16(get_TC_END_OBJ());
|
|
1512
|
+
} else if (this.a17_1 === get_TC_COMMA()) {
|
|
1513
|
+
this.y16_1.g16_1.s15('Unexpected trailing comma');
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
|
-
return new JsonObject(this.
|
|
1516
|
+
return new JsonObject(this.b17_1);
|
|
1517
1517
|
case 5:
|
|
1518
1518
|
throw this.dg_1;
|
|
1519
1519
|
}
|
|
@@ -1529,12 +1529,12 @@
|
|
|
1529
1529
|
while (true);
|
|
1530
1530
|
};
|
|
1531
1531
|
function JsonTreeReader(configuration, lexer) {
|
|
1532
|
-
this.
|
|
1533
|
-
this.
|
|
1534
|
-
this.
|
|
1532
|
+
this.g16_1 = lexer;
|
|
1533
|
+
this.h16_1 = configuration.f14_1;
|
|
1534
|
+
this.i16_1 = 0;
|
|
1535
1535
|
}
|
|
1536
|
-
protoOf(JsonTreeReader).
|
|
1537
|
-
var token = this.
|
|
1536
|
+
protoOf(JsonTreeReader).o16 = function () {
|
|
1537
|
+
var token = this.g16_1.k16();
|
|
1538
1538
|
var tmp;
|
|
1539
1539
|
if (token === get_TC_STRING()) {
|
|
1540
1540
|
tmp = readValue(this, true);
|
|
@@ -1542,53 +1542,53 @@
|
|
|
1542
1542
|
tmp = readValue(this, false);
|
|
1543
1543
|
} else if (token === get_TC_BEGIN_OBJ()) {
|
|
1544
1544
|
var tmp_0;
|
|
1545
|
-
this.
|
|
1546
|
-
if (this.
|
|
1545
|
+
this.i16_1 = this.i16_1 + 1 | 0;
|
|
1546
|
+
if (this.i16_1 === 200) {
|
|
1547
1547
|
tmp_0 = readDeepRecursive(this);
|
|
1548
1548
|
} else {
|
|
1549
1549
|
tmp_0 = readObject(this);
|
|
1550
1550
|
}
|
|
1551
1551
|
var result = tmp_0;
|
|
1552
|
-
this.
|
|
1552
|
+
this.i16_1 = this.i16_1 - 1 | 0;
|
|
1553
1553
|
tmp = result;
|
|
1554
1554
|
} else if (token === get_TC_BEGIN_LIST()) {
|
|
1555
1555
|
tmp = readArray(this);
|
|
1556
1556
|
} else {
|
|
1557
|
-
this.
|
|
1557
|
+
this.g16_1.s15('Cannot begin reading element, unexpected token: ' + token);
|
|
1558
1558
|
}
|
|
1559
1559
|
return tmp;
|
|
1560
1560
|
};
|
|
1561
1561
|
function classDiscriminator(_this__u8e3s4, json) {
|
|
1562
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
1562
|
+
var tmp0_iterator = _this__u8e3s4.do().c();
|
|
1563
1563
|
while (tmp0_iterator.d()) {
|
|
1564
1564
|
var annotation = tmp0_iterator.e();
|
|
1565
1565
|
if (annotation instanceof JsonClassDiscriminator)
|
|
1566
|
-
return annotation.
|
|
1566
|
+
return annotation.s17_1;
|
|
1567
1567
|
}
|
|
1568
|
-
return json.
|
|
1568
|
+
return json.x12_1.m14_1;
|
|
1569
1569
|
}
|
|
1570
1570
|
function decodeSerializableValuePolymorphic(_this__u8e3s4, deserializer) {
|
|
1571
1571
|
var tmp;
|
|
1572
1572
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
1573
1573
|
tmp = true;
|
|
1574
1574
|
} else {
|
|
1575
|
-
tmp = _this__u8e3s4.
|
|
1575
|
+
tmp = _this__u8e3s4.q14().x12_1.l14_1;
|
|
1576
1576
|
}
|
|
1577
1577
|
if (tmp) {
|
|
1578
|
-
return deserializer.
|
|
1578
|
+
return deserializer.cn(_this__u8e3s4);
|
|
1579
1579
|
}
|
|
1580
|
-
var discriminator = classDiscriminator(deserializer.
|
|
1580
|
+
var discriminator = classDiscriminator(deserializer.bn(), _this__u8e3s4.q14());
|
|
1581
1581
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
1582
|
-
var tmp0_cast = _this__u8e3s4.
|
|
1583
|
-
var tmp1_cast = deserializer.
|
|
1582
|
+
var tmp0_cast = _this__u8e3s4.r14();
|
|
1583
|
+
var tmp1_cast = deserializer.bn();
|
|
1584
1584
|
if (!(tmp0_cast instanceof JsonObject)) {
|
|
1585
|
-
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + tmp1_cast.
|
|
1585
|
+
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + tmp1_cast.co() + ', but had ' + getKClassFromExpression(tmp0_cast));
|
|
1586
1586
|
}
|
|
1587
1587
|
var jsonTree = tmp0_cast;
|
|
1588
|
-
var tmp0_safe_receiver = jsonTree.
|
|
1588
|
+
var tmp0_safe_receiver = jsonTree.v14(discriminator);
|
|
1589
1589
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
1590
|
-
var type = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1591
|
-
var tmp2_elvis_lhs = deserializer.
|
|
1590
|
+
var type = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s14();
|
|
1591
|
+
var tmp2_elvis_lhs = deserializer.qn(_this__u8e3s4, type);
|
|
1592
1592
|
var tmp_0;
|
|
1593
1593
|
if (tmp2_elvis_lhs == null) {
|
|
1594
1594
|
throwSerializerNotFound(type, jsonTree);
|
|
@@ -1596,7 +1596,7 @@
|
|
|
1596
1596
|
tmp_0 = tmp2_elvis_lhs;
|
|
1597
1597
|
}
|
|
1598
1598
|
var actualSerializer = tmp_0;
|
|
1599
|
-
var tmp_1 = _this__u8e3s4.
|
|
1599
|
+
var tmp_1 = _this__u8e3s4.q14();
|
|
1600
1600
|
return readPolymorphicJson(tmp_1, discriminator, jsonTree, isInterface(actualSerializer, DeserializationStrategy) ? actualSerializer : THROW_CCE());
|
|
1601
1601
|
}
|
|
1602
1602
|
function throwSerializerNotFound(type, jsonTree) {
|
|
@@ -1604,7 +1604,7 @@
|
|
|
1604
1604
|
throw JsonDecodingException_0(-1, 'Polymorphic serializer was not found for ' + suffix, jsonTree.toString());
|
|
1605
1605
|
}
|
|
1606
1606
|
function checkKind($this, descriptor, actualClass) {
|
|
1607
|
-
var kind = descriptor.
|
|
1607
|
+
var kind = descriptor.go();
|
|
1608
1608
|
var tmp;
|
|
1609
1609
|
if (kind instanceof PolymorphicKind) {
|
|
1610
1610
|
tmp = true;
|
|
@@ -1614,7 +1614,7 @@
|
|
|
1614
1614
|
if (tmp) {
|
|
1615
1615
|
throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.kc() + " 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.'));
|
|
1616
1616
|
}
|
|
1617
|
-
if ($this.
|
|
1617
|
+
if ($this.t17_1)
|
|
1618
1618
|
return Unit_getInstance();
|
|
1619
1619
|
var tmp_0;
|
|
1620
1620
|
var tmp_1;
|
|
@@ -1634,44 +1634,44 @@
|
|
|
1634
1634
|
}
|
|
1635
1635
|
function checkDiscriminatorCollisions($this, descriptor, actualClass) {
|
|
1636
1636
|
var inductionVariable = 0;
|
|
1637
|
-
var last = descriptor.
|
|
1637
|
+
var last = descriptor.eo();
|
|
1638
1638
|
if (inductionVariable < last)
|
|
1639
1639
|
do {
|
|
1640
1640
|
var i = inductionVariable;
|
|
1641
1641
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1642
|
-
var name = descriptor.
|
|
1643
|
-
if (name === $this.
|
|
1642
|
+
var name = descriptor.ko(i);
|
|
1643
|
+
if (name === $this.u17_1) {
|
|
1644
1644
|
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');
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
while (inductionVariable < last);
|
|
1648
1648
|
}
|
|
1649
1649
|
function PolymorphismValidator(useArrayPolymorphism, discriminator) {
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1650
|
+
this.t17_1 = useArrayPolymorphism;
|
|
1651
|
+
this.u17_1 = discriminator;
|
|
1652
1652
|
}
|
|
1653
|
-
protoOf(PolymorphismValidator).
|
|
1653
|
+
protoOf(PolymorphismValidator).o12 = function (kClass, provider) {
|
|
1654
1654
|
};
|
|
1655
|
-
protoOf(PolymorphismValidator).
|
|
1656
|
-
var descriptor = actualSerializer.
|
|
1655
|
+
protoOf(PolymorphismValidator).r12 = function (baseClass, actualClass, actualSerializer) {
|
|
1656
|
+
var descriptor = actualSerializer.bn();
|
|
1657
1657
|
checkKind(this, descriptor, actualClass);
|
|
1658
|
-
if (!this.
|
|
1658
|
+
if (!this.t17_1) {
|
|
1659
1659
|
checkDiscriminatorCollisions(this, descriptor, actualClass);
|
|
1660
1660
|
}
|
|
1661
1661
|
};
|
|
1662
|
-
protoOf(PolymorphismValidator).
|
|
1662
|
+
protoOf(PolymorphismValidator).s12 = function (baseClass, defaultSerializerProvider) {
|
|
1663
1663
|
};
|
|
1664
|
-
protoOf(PolymorphismValidator).
|
|
1664
|
+
protoOf(PolymorphismValidator).t12 = function (baseClass, defaultDeserializerProvider) {
|
|
1665
1665
|
};
|
|
1666
1666
|
function Key() {
|
|
1667
1667
|
}
|
|
1668
1668
|
function DescriptorSchemaCache() {
|
|
1669
|
-
this.
|
|
1669
|
+
this.t15_1 = createMapForCache(16);
|
|
1670
1670
|
}
|
|
1671
|
-
protoOf(DescriptorSchemaCache).
|
|
1671
|
+
protoOf(DescriptorSchemaCache).v17 = function (descriptor, key, value) {
|
|
1672
1672
|
// Inline function 'kotlin.collections.set' call
|
|
1673
1673
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1674
|
-
var tmp0_getOrPut = this.
|
|
1674
|
+
var tmp0_getOrPut = this.t15_1;
|
|
1675
1675
|
var value_0 = tmp0_getOrPut.n2(descriptor);
|
|
1676
1676
|
var tmp;
|
|
1677
1677
|
if (value_0 == null) {
|
|
@@ -1687,8 +1687,8 @@
|
|
|
1687
1687
|
var tmp3_set = isObject(value) ? value : THROW_CCE();
|
|
1688
1688
|
tmp1_set.l3(tmp2_set, tmp3_set);
|
|
1689
1689
|
};
|
|
1690
|
-
protoOf(DescriptorSchemaCache).
|
|
1691
|
-
var tmp0_safe_receiver = this.
|
|
1690
|
+
protoOf(DescriptorSchemaCache).u15 = function (descriptor, key, defaultValue) {
|
|
1691
|
+
var tmp0_safe_receiver = this.w17(descriptor, key);
|
|
1692
1692
|
if (tmp0_safe_receiver == null)
|
|
1693
1693
|
null;
|
|
1694
1694
|
else {
|
|
@@ -1697,11 +1697,11 @@
|
|
|
1697
1697
|
return tmp0_safe_receiver;
|
|
1698
1698
|
}
|
|
1699
1699
|
var value = defaultValue();
|
|
1700
|
-
this.
|
|
1700
|
+
this.v17(descriptor, key, value);
|
|
1701
1701
|
return value;
|
|
1702
1702
|
};
|
|
1703
|
-
protoOf(DescriptorSchemaCache).
|
|
1704
|
-
var tmp0_safe_receiver = this.
|
|
1703
|
+
protoOf(DescriptorSchemaCache).w17 = function (descriptor, key) {
|
|
1704
|
+
var tmp0_safe_receiver = this.t15_1.n2(descriptor);
|
|
1705
1705
|
var tmp;
|
|
1706
1706
|
if (tmp0_safe_receiver == null) {
|
|
1707
1707
|
tmp = null;
|
|
@@ -1712,20 +1712,20 @@
|
|
|
1712
1712
|
return isObject(tmp_0) ? tmp_0 : null;
|
|
1713
1713
|
};
|
|
1714
1714
|
function DiscriminatorHolder(discriminatorToSkip) {
|
|
1715
|
-
this.
|
|
1715
|
+
this.x17_1 = discriminatorToSkip;
|
|
1716
1716
|
}
|
|
1717
1717
|
function trySkip(_this__u8e3s4, $this, unknownKey) {
|
|
1718
1718
|
if (_this__u8e3s4 == null)
|
|
1719
1719
|
return false;
|
|
1720
|
-
if (_this__u8e3s4.
|
|
1721
|
-
_this__u8e3s4.
|
|
1720
|
+
if (_this__u8e3s4.x17_1 === unknownKey) {
|
|
1721
|
+
_this__u8e3s4.x17_1 = null;
|
|
1722
1722
|
return true;
|
|
1723
1723
|
}
|
|
1724
1724
|
return false;
|
|
1725
1725
|
}
|
|
1726
1726
|
function skipLeftoverElements($this, descriptor) {
|
|
1727
1727
|
$l$loop: while (true) {
|
|
1728
|
-
var tmp = $this.
|
|
1728
|
+
var tmp = $this.qq(descriptor);
|
|
1729
1729
|
Companion_getInstance();
|
|
1730
1730
|
if (!!(tmp === -1)) {
|
|
1731
1731
|
break $l$loop;
|
|
@@ -1733,52 +1733,52 @@
|
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
function checkLeadingComma($this) {
|
|
1736
|
-
if ($this.
|
|
1737
|
-
$this.
|
|
1736
|
+
if ($this.e13_1.k16() === get_TC_COMMA()) {
|
|
1737
|
+
$this.e13_1.s15('Unexpected leading comma');
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
function decodeMapIndex($this) {
|
|
1741
1741
|
var hasComma = false;
|
|
1742
|
-
var decodingKey = !(($this.
|
|
1742
|
+
var decodingKey = !(($this.g13_1 % 2 | 0) === 0);
|
|
1743
1743
|
if (decodingKey) {
|
|
1744
|
-
if (!($this.
|
|
1745
|
-
hasComma = $this.
|
|
1744
|
+
if (!($this.g13_1 === -1)) {
|
|
1745
|
+
hasComma = $this.e13_1.z17();
|
|
1746
1746
|
}
|
|
1747
1747
|
} else {
|
|
1748
|
-
$this.
|
|
1748
|
+
$this.e13_1.y17(get_COLON());
|
|
1749
1749
|
}
|
|
1750
1750
|
var tmp;
|
|
1751
|
-
if ($this.
|
|
1751
|
+
if ($this.e13_1.l16()) {
|
|
1752
1752
|
if (decodingKey) {
|
|
1753
|
-
if ($this.
|
|
1753
|
+
if ($this.g13_1 === -1) {
|
|
1754
1754
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
1755
|
-
var tmp0_require = $this.
|
|
1755
|
+
var tmp0_require = $this.e13_1;
|
|
1756
1756
|
var tmp1_require = !hasComma;
|
|
1757
|
-
var tmp2_require = tmp0_require.
|
|
1757
|
+
var tmp2_require = tmp0_require.k13_1;
|
|
1758
1758
|
if (!tmp1_require) {
|
|
1759
1759
|
var tmp$ret$0;
|
|
1760
1760
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.<anonymous>' call
|
|
1761
1761
|
tmp$ret$0 = 'Unexpected trailing comma';
|
|
1762
|
-
tmp0_require.
|
|
1762
|
+
tmp0_require.s15(tmp$ret$0, tmp2_require);
|
|
1763
1763
|
}
|
|
1764
1764
|
} else {
|
|
1765
1765
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
1766
|
-
var tmp3_require = $this.
|
|
1766
|
+
var tmp3_require = $this.e13_1;
|
|
1767
1767
|
var tmp4_require = hasComma;
|
|
1768
|
-
var tmp5_require = tmp3_require.
|
|
1768
|
+
var tmp5_require = tmp3_require.k13_1;
|
|
1769
1769
|
if (!tmp4_require) {
|
|
1770
1770
|
var tmp$ret$1;
|
|
1771
1771
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.<anonymous>' call
|
|
1772
1772
|
tmp$ret$1 = 'Expected comma after the key-value pair';
|
|
1773
|
-
tmp3_require.
|
|
1773
|
+
tmp3_require.s15(tmp$ret$1, tmp5_require);
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
|
-
$this.
|
|
1778
|
-
tmp = $this.
|
|
1777
|
+
$this.g13_1 = $this.g13_1 + 1 | 0;
|
|
1778
|
+
tmp = $this.g13_1;
|
|
1779
1779
|
} else {
|
|
1780
1780
|
if (hasComma) {
|
|
1781
|
-
$this.
|
|
1781
|
+
$this.e13_1.s15("Expected '}', but had ',' instead");
|
|
1782
1782
|
}
|
|
1783
1783
|
Companion_getInstance();
|
|
1784
1784
|
tmp = -1;
|
|
@@ -1789,12 +1789,12 @@
|
|
|
1789
1789
|
var tmp$ret$1;
|
|
1790
1790
|
$l$block_2: {
|
|
1791
1791
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
1792
|
-
var tmp0_tryCoerceValue = $this.
|
|
1793
|
-
var tmp1_tryCoerceValue = descriptor.
|
|
1792
|
+
var tmp0_tryCoerceValue = $this.c13_1;
|
|
1793
|
+
var tmp1_tryCoerceValue = descriptor.io(index);
|
|
1794
1794
|
var tmp;
|
|
1795
|
-
if (!tmp1_tryCoerceValue.
|
|
1795
|
+
if (!tmp1_tryCoerceValue.yn()) {
|
|
1796
1796
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
|
|
1797
|
-
tmp = $this.
|
|
1797
|
+
tmp = $this.e13_1.a18(true);
|
|
1798
1798
|
} else {
|
|
1799
1799
|
tmp = false;
|
|
1800
1800
|
}
|
|
@@ -1802,11 +1802,11 @@
|
|
|
1802
1802
|
tmp$ret$1 = true;
|
|
1803
1803
|
break $l$block_2;
|
|
1804
1804
|
}
|
|
1805
|
-
if (equals(tmp1_tryCoerceValue.
|
|
1805
|
+
if (equals(tmp1_tryCoerceValue.go(), ENUM_getInstance())) {
|
|
1806
1806
|
var tmp_0;
|
|
1807
|
-
if (tmp1_tryCoerceValue.
|
|
1807
|
+
if (tmp1_tryCoerceValue.yn()) {
|
|
1808
1808
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
|
|
1809
|
-
tmp_0 = $this.
|
|
1809
|
+
tmp_0 = $this.e13_1.a18(false);
|
|
1810
1810
|
} else {
|
|
1811
1811
|
tmp_0 = false;
|
|
1812
1812
|
}
|
|
@@ -1815,7 +1815,7 @@
|
|
|
1815
1815
|
break $l$block_2;
|
|
1816
1816
|
}
|
|
1817
1817
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
|
|
1818
|
-
var tmp0_elvis_lhs = $this.
|
|
1818
|
+
var tmp0_elvis_lhs = $this.e13_1.b18($this.i13_1.f14_1);
|
|
1819
1819
|
var tmp_1;
|
|
1820
1820
|
if (tmp0_elvis_lhs == null) {
|
|
1821
1821
|
tmp$ret$1 = false;
|
|
@@ -1828,7 +1828,7 @@
|
|
|
1828
1828
|
Companion_getInstance();
|
|
1829
1829
|
if (enumIndex === -3) {
|
|
1830
1830
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
|
|
1831
|
-
$this.
|
|
1831
|
+
$this.e13_1.m16();
|
|
1832
1832
|
tmp$ret$1 = true;
|
|
1833
1833
|
break $l$block_2;
|
|
1834
1834
|
}
|
|
@@ -1838,25 +1838,25 @@
|
|
|
1838
1838
|
return tmp$ret$1;
|
|
1839
1839
|
}
|
|
1840
1840
|
function decodeObjectIndex($this, descriptor) {
|
|
1841
|
-
var hasComma = $this.
|
|
1842
|
-
while ($this.
|
|
1841
|
+
var hasComma = $this.e13_1.z17();
|
|
1842
|
+
while ($this.e13_1.l16()) {
|
|
1843
1843
|
hasComma = false;
|
|
1844
1844
|
var key = decodeStringKey($this);
|
|
1845
|
-
$this.
|
|
1846
|
-
var index = getJsonNameIndex(descriptor, $this.
|
|
1845
|
+
$this.e13_1.y17(get_COLON());
|
|
1846
|
+
var index = getJsonNameIndex(descriptor, $this.c13_1, key);
|
|
1847
1847
|
var tmp;
|
|
1848
1848
|
Companion_getInstance();
|
|
1849
1849
|
if (!(index === -3)) {
|
|
1850
1850
|
var tmp_0;
|
|
1851
|
-
if ($this.
|
|
1852
|
-
hasComma = $this.
|
|
1851
|
+
if ($this.i13_1.k14_1 ? coerceInputValue($this, descriptor, index) : false) {
|
|
1852
|
+
hasComma = $this.e13_1.z17();
|
|
1853
1853
|
tmp_0 = false;
|
|
1854
1854
|
} else {
|
|
1855
|
-
var tmp0_safe_receiver = $this.
|
|
1855
|
+
var tmp0_safe_receiver = $this.j13_1;
|
|
1856
1856
|
if (tmp0_safe_receiver == null)
|
|
1857
1857
|
null;
|
|
1858
1858
|
else {
|
|
1859
|
-
tmp0_safe_receiver.
|
|
1859
|
+
tmp0_safe_receiver.bu(index);
|
|
1860
1860
|
}
|
|
1861
1861
|
return index;
|
|
1862
1862
|
}
|
|
@@ -1870,10 +1870,10 @@
|
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
1872
|
if (hasComma) {
|
|
1873
|
-
$this.
|
|
1873
|
+
$this.e13_1.s15('Unexpected trailing comma');
|
|
1874
1874
|
}
|
|
1875
|
-
var tmp1_safe_receiver = $this.
|
|
1876
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1875
|
+
var tmp1_safe_receiver = $this.j13_1;
|
|
1876
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.cu();
|
|
1877
1877
|
var tmp_1;
|
|
1878
1878
|
if (tmp2_elvis_lhs == null) {
|
|
1879
1879
|
Companion_getInstance();
|
|
@@ -1884,25 +1884,25 @@
|
|
|
1884
1884
|
return tmp_1;
|
|
1885
1885
|
}
|
|
1886
1886
|
function handleUnknown($this, key) {
|
|
1887
|
-
if ($this.
|
|
1888
|
-
$this.
|
|
1887
|
+
if ($this.i13_1.e14_1 ? true : trySkip($this.h13_1, $this, key)) {
|
|
1888
|
+
$this.e13_1.d18($this.i13_1.f14_1);
|
|
1889
1889
|
} else {
|
|
1890
|
-
$this.
|
|
1890
|
+
$this.e13_1.c18(key);
|
|
1891
1891
|
}
|
|
1892
|
-
return $this.
|
|
1892
|
+
return $this.e13_1.z17();
|
|
1893
1893
|
}
|
|
1894
1894
|
function decodeListIndex($this) {
|
|
1895
|
-
var hasComma = $this.
|
|
1895
|
+
var hasComma = $this.e13_1.z17();
|
|
1896
1896
|
var tmp;
|
|
1897
|
-
if ($this.
|
|
1898
|
-
if (!($this.
|
|
1899
|
-
$this.
|
|
1897
|
+
if ($this.e13_1.l16()) {
|
|
1898
|
+
if (!($this.g13_1 === -1) ? !hasComma : false) {
|
|
1899
|
+
$this.e13_1.s15('Expected end of the array or comma');
|
|
1900
1900
|
}
|
|
1901
|
-
$this.
|
|
1902
|
-
tmp = $this.
|
|
1901
|
+
$this.g13_1 = $this.g13_1 + 1 | 0;
|
|
1902
|
+
tmp = $this.g13_1;
|
|
1903
1903
|
} else {
|
|
1904
1904
|
if (hasComma) {
|
|
1905
|
-
$this.
|
|
1905
|
+
$this.e13_1.s15('Unexpected trailing comma');
|
|
1906
1906
|
}
|
|
1907
1907
|
Companion_getInstance();
|
|
1908
1908
|
tmp = -1;
|
|
@@ -1911,55 +1911,55 @@
|
|
|
1911
1911
|
}
|
|
1912
1912
|
function decodeStringKey($this) {
|
|
1913
1913
|
var tmp;
|
|
1914
|
-
if ($this.
|
|
1915
|
-
tmp = $this.
|
|
1914
|
+
if ($this.i13_1.f14_1) {
|
|
1915
|
+
tmp = $this.e13_1.f18();
|
|
1916
1916
|
} else {
|
|
1917
|
-
tmp = $this.
|
|
1917
|
+
tmp = $this.e13_1.e18();
|
|
1918
1918
|
}
|
|
1919
1919
|
return tmp;
|
|
1920
1920
|
}
|
|
1921
1921
|
function StreamingJsonDecoder(json, mode, lexer, descriptor, discriminatorHolder) {
|
|
1922
1922
|
AbstractDecoder.call(this);
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1926
|
-
this.
|
|
1927
|
-
this.
|
|
1928
|
-
this.
|
|
1929
|
-
this.
|
|
1930
|
-
this.
|
|
1923
|
+
this.c13_1 = json;
|
|
1924
|
+
this.d13_1 = mode;
|
|
1925
|
+
this.e13_1 = lexer;
|
|
1926
|
+
this.f13_1 = this.c13_1.oq();
|
|
1927
|
+
this.g13_1 = -1;
|
|
1928
|
+
this.h13_1 = discriminatorHolder;
|
|
1929
|
+
this.i13_1 = this.c13_1.x12_1;
|
|
1930
|
+
this.j13_1 = this.i13_1.i14_1 ? null : new JsonElementMarker(descriptor);
|
|
1931
1931
|
}
|
|
1932
|
-
protoOf(StreamingJsonDecoder).
|
|
1933
|
-
return this.
|
|
1932
|
+
protoOf(StreamingJsonDecoder).q14 = function () {
|
|
1933
|
+
return this.c13_1;
|
|
1934
1934
|
};
|
|
1935
|
-
protoOf(StreamingJsonDecoder).
|
|
1936
|
-
return this.
|
|
1935
|
+
protoOf(StreamingJsonDecoder).oq = function () {
|
|
1936
|
+
return this.f13_1;
|
|
1937
1937
|
};
|
|
1938
|
-
protoOf(StreamingJsonDecoder).
|
|
1939
|
-
return (new JsonTreeReader(this.
|
|
1938
|
+
protoOf(StreamingJsonDecoder).r14 = function () {
|
|
1939
|
+
return (new JsonTreeReader(this.c13_1.x12_1, this.e13_1)).o16();
|
|
1940
1940
|
};
|
|
1941
|
-
protoOf(StreamingJsonDecoder).
|
|
1941
|
+
protoOf(StreamingJsonDecoder).yp = function (deserializer) {
|
|
1942
1942
|
try {
|
|
1943
1943
|
var tmp;
|
|
1944
1944
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
1945
1945
|
tmp = true;
|
|
1946
1946
|
} else {
|
|
1947
|
-
tmp = this.
|
|
1947
|
+
tmp = this.c13_1.x12_1.l14_1;
|
|
1948
1948
|
}
|
|
1949
1949
|
if (tmp) {
|
|
1950
|
-
return deserializer.
|
|
1950
|
+
return deserializer.cn(this);
|
|
1951
1951
|
}
|
|
1952
|
-
var discriminator = classDiscriminator(deserializer.
|
|
1953
|
-
var type = this.
|
|
1952
|
+
var discriminator = classDiscriminator(deserializer.bn(), this.c13_1);
|
|
1953
|
+
var type = this.e13_1.g18(discriminator, this.i13_1.f14_1);
|
|
1954
1954
|
var actualSerializer = null;
|
|
1955
1955
|
if (!(type == null)) {
|
|
1956
|
-
actualSerializer = deserializer.
|
|
1956
|
+
actualSerializer = deserializer.qn(this, type);
|
|
1957
1957
|
}
|
|
1958
1958
|
if (actualSerializer == null) {
|
|
1959
1959
|
return decodeSerializableValuePolymorphic(this, isInterface(deserializer, DeserializationStrategy) ? deserializer : THROW_CCE());
|
|
1960
1960
|
}
|
|
1961
|
-
this.
|
|
1962
|
-
var tmp_0 = actualSerializer.
|
|
1961
|
+
this.h13_1 = new DiscriminatorHolder(discriminator);
|
|
1962
|
+
var tmp_0 = actualSerializer.cn(this);
|
|
1963
1963
|
var result = isObject(tmp_0) ? tmp_0 : THROW_CCE();
|
|
1964
1964
|
return result;
|
|
1965
1965
|
} catch ($p) {
|
|
@@ -1967,30 +1967,30 @@
|
|
|
1967
1967
|
var e = $p;
|
|
1968
1968
|
if (contains(ensureNotNull(e.message), 'at path'))
|
|
1969
1969
|
throw e;
|
|
1970
|
-
throw new MissingFieldException(e.
|
|
1970
|
+
throw new MissingFieldException(e.rn_1, plus(e.message, ' at path: ') + this.e13_1.l13_1.f16(), e);
|
|
1971
1971
|
} else {
|
|
1972
1972
|
throw $p;
|
|
1973
1973
|
}
|
|
1974
1974
|
}
|
|
1975
1975
|
};
|
|
1976
|
-
protoOf(StreamingJsonDecoder).
|
|
1977
|
-
var newMode = switchMode(this.
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
1976
|
+
protoOf(StreamingJsonDecoder).zp = function (descriptor) {
|
|
1977
|
+
var newMode = switchMode(this.c13_1, descriptor);
|
|
1978
|
+
this.e13_1.l13_1.a16(descriptor);
|
|
1979
|
+
this.e13_1.y17(newMode.j18_1);
|
|
1980
1980
|
checkLeadingComma(this);
|
|
1981
1981
|
var tmp;
|
|
1982
1982
|
switch (newMode.r4_1) {
|
|
1983
1983
|
case 1:
|
|
1984
1984
|
case 2:
|
|
1985
1985
|
case 3:
|
|
1986
|
-
tmp = new StreamingJsonDecoder(this.
|
|
1986
|
+
tmp = new StreamingJsonDecoder(this.c13_1, newMode, this.e13_1, descriptor, this.h13_1);
|
|
1987
1987
|
break;
|
|
1988
1988
|
default:
|
|
1989
1989
|
var tmp_0;
|
|
1990
|
-
if (this.
|
|
1990
|
+
if (this.d13_1.equals(newMode) ? this.c13_1.x12_1.i14_1 : false) {
|
|
1991
1991
|
tmp_0 = this;
|
|
1992
1992
|
} else {
|
|
1993
|
-
tmp_0 = new StreamingJsonDecoder(this.
|
|
1993
|
+
tmp_0 = new StreamingJsonDecoder(this.c13_1, newMode, this.e13_1, descriptor, this.h13_1);
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
1996
|
tmp = tmp_0;
|
|
@@ -1998,41 +1998,41 @@
|
|
|
1998
1998
|
}
|
|
1999
1999
|
return tmp;
|
|
2000
2000
|
};
|
|
2001
|
-
protoOf(StreamingJsonDecoder).
|
|
2002
|
-
if (this.
|
|
2001
|
+
protoOf(StreamingJsonDecoder).aq = function (descriptor) {
|
|
2002
|
+
if (this.c13_1.x12_1.e14_1 ? descriptor.eo() === 0 : false) {
|
|
2003
2003
|
skipLeftoverElements(this, descriptor);
|
|
2004
2004
|
}
|
|
2005
|
-
this.
|
|
2006
|
-
this.
|
|
2005
|
+
this.e13_1.y17(this.d13_1.k18_1);
|
|
2006
|
+
this.e13_1.l13_1.e16();
|
|
2007
2007
|
};
|
|
2008
|
-
protoOf(StreamingJsonDecoder).
|
|
2008
|
+
protoOf(StreamingJsonDecoder).kp = function () {
|
|
2009
2009
|
var tmp;
|
|
2010
|
-
var tmp0_safe_receiver = this.
|
|
2011
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2010
|
+
var tmp0_safe_receiver = this.j13_1;
|
|
2011
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r15_1;
|
|
2012
2012
|
if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
|
|
2013
|
-
tmp = !this.
|
|
2013
|
+
tmp = !this.e13_1.l18();
|
|
2014
2014
|
} else {
|
|
2015
2015
|
tmp = false;
|
|
2016
2016
|
}
|
|
2017
2017
|
return tmp;
|
|
2018
2018
|
};
|
|
2019
|
-
protoOf(StreamingJsonDecoder).
|
|
2019
|
+
protoOf(StreamingJsonDecoder).lp = function () {
|
|
2020
2020
|
return null;
|
|
2021
2021
|
};
|
|
2022
|
-
protoOf(StreamingJsonDecoder).
|
|
2023
|
-
var isMapKey = this.
|
|
2022
|
+
protoOf(StreamingJsonDecoder).lq = function (descriptor, index, deserializer, previousValue) {
|
|
2023
|
+
var isMapKey = this.d13_1.equals(WriteMode_MAP_getInstance()) ? (index & 1) === 0 : false;
|
|
2024
2024
|
if (isMapKey) {
|
|
2025
|
-
this.
|
|
2025
|
+
this.e13_1.l13_1.d16();
|
|
2026
2026
|
}
|
|
2027
|
-
var value = protoOf(AbstractDecoder).
|
|
2027
|
+
var value = protoOf(AbstractDecoder).lq.call(this, descriptor, index, deserializer, previousValue);
|
|
2028
2028
|
if (isMapKey) {
|
|
2029
|
-
this.
|
|
2029
|
+
this.e13_1.l13_1.c16(value);
|
|
2030
2030
|
}
|
|
2031
2031
|
return value;
|
|
2032
2032
|
};
|
|
2033
|
-
protoOf(StreamingJsonDecoder).
|
|
2033
|
+
protoOf(StreamingJsonDecoder).qq = function (descriptor) {
|
|
2034
2034
|
var index;
|
|
2035
|
-
switch (this.
|
|
2035
|
+
switch (this.d13_1.r4_1) {
|
|
2036
2036
|
case 0:
|
|
2037
2037
|
index = decodeObjectIndex(this, descriptor);
|
|
2038
2038
|
break;
|
|
@@ -2043,50 +2043,50 @@
|
|
|
2043
2043
|
index = decodeListIndex(this);
|
|
2044
2044
|
break;
|
|
2045
2045
|
}
|
|
2046
|
-
if (!this.
|
|
2047
|
-
this.
|
|
2046
|
+
if (!this.d13_1.equals(WriteMode_MAP_getInstance())) {
|
|
2047
|
+
this.e13_1.l13_1.b16(index);
|
|
2048
2048
|
}
|
|
2049
2049
|
return index;
|
|
2050
2050
|
};
|
|
2051
|
-
protoOf(StreamingJsonDecoder).
|
|
2051
|
+
protoOf(StreamingJsonDecoder).mp = function () {
|
|
2052
2052
|
var tmp;
|
|
2053
|
-
if (this.
|
|
2054
|
-
tmp = this.
|
|
2053
|
+
if (this.i13_1.f14_1) {
|
|
2054
|
+
tmp = this.e13_1.n18();
|
|
2055
2055
|
} else {
|
|
2056
|
-
tmp = this.
|
|
2056
|
+
tmp = this.e13_1.m18();
|
|
2057
2057
|
}
|
|
2058
2058
|
return tmp;
|
|
2059
2059
|
};
|
|
2060
|
-
protoOf(StreamingJsonDecoder).
|
|
2061
|
-
var value = this.
|
|
2060
|
+
protoOf(StreamingJsonDecoder).np = function () {
|
|
2061
|
+
var value = this.e13_1.o18();
|
|
2062
2062
|
if (!value.equals(toLong_0(value.rf()))) {
|
|
2063
|
-
this.
|
|
2063
|
+
this.e13_1.s15("Failed to parse byte for input '" + toString(value) + "'");
|
|
2064
2064
|
}
|
|
2065
2065
|
return value.rf();
|
|
2066
2066
|
};
|
|
2067
|
-
protoOf(StreamingJsonDecoder).
|
|
2068
|
-
var value = this.
|
|
2067
|
+
protoOf(StreamingJsonDecoder).op = function () {
|
|
2068
|
+
var value = this.e13_1.o18();
|
|
2069
2069
|
if (!value.equals(toLong_0(value.sf()))) {
|
|
2070
|
-
this.
|
|
2070
|
+
this.e13_1.s15("Failed to parse short for input '" + toString(value) + "'");
|
|
2071
2071
|
}
|
|
2072
2072
|
return value.sf();
|
|
2073
2073
|
};
|
|
2074
|
-
protoOf(StreamingJsonDecoder).
|
|
2075
|
-
var value = this.
|
|
2074
|
+
protoOf(StreamingJsonDecoder).pp = function () {
|
|
2075
|
+
var value = this.e13_1.o18();
|
|
2076
2076
|
if (!value.equals(toLong_0(value.r5()))) {
|
|
2077
|
-
this.
|
|
2077
|
+
this.e13_1.s15("Failed to parse int for input '" + toString(value) + "'");
|
|
2078
2078
|
}
|
|
2079
2079
|
return value.r5();
|
|
2080
2080
|
};
|
|
2081
|
-
protoOf(StreamingJsonDecoder).pp = function () {
|
|
2082
|
-
return this.d13_1.n18();
|
|
2083
|
-
};
|
|
2084
2081
|
protoOf(StreamingJsonDecoder).qp = function () {
|
|
2082
|
+
return this.e13_1.o18();
|
|
2083
|
+
};
|
|
2084
|
+
protoOf(StreamingJsonDecoder).rp = function () {
|
|
2085
2085
|
var tmp$ret$4;
|
|
2086
2086
|
$l$block: {
|
|
2087
2087
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2088
|
-
var tmp0_parseString = this.
|
|
2089
|
-
var input = tmp0_parseString.
|
|
2088
|
+
var tmp0_parseString = this.e13_1;
|
|
2089
|
+
var input = tmp0_parseString.n16();
|
|
2090
2090
|
try {
|
|
2091
2091
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeFloat.<anonymous>' call
|
|
2092
2092
|
// Inline function 'kotlin.text.toFloat' call
|
|
@@ -2097,24 +2097,24 @@
|
|
|
2097
2097
|
} catch ($p) {
|
|
2098
2098
|
if ($p instanceof IllegalArgumentException) {
|
|
2099
2099
|
var e = $p;
|
|
2100
|
-
tmp0_parseString.
|
|
2100
|
+
tmp0_parseString.s15("Failed to parse type 'float' for input '" + input + "'");
|
|
2101
2101
|
} else {
|
|
2102
2102
|
throw $p;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
2106
|
var result = tmp$ret$4;
|
|
2107
|
-
var specialFp = this.
|
|
2107
|
+
var specialFp = this.c13_1.x12_1.n14_1;
|
|
2108
2108
|
if (specialFp ? true : isFinite(result))
|
|
2109
2109
|
return result;
|
|
2110
|
-
throwInvalidFloatingPointDecoded(this.
|
|
2110
|
+
throwInvalidFloatingPointDecoded(this.e13_1, result);
|
|
2111
2111
|
};
|
|
2112
|
-
protoOf(StreamingJsonDecoder).
|
|
2112
|
+
protoOf(StreamingJsonDecoder).sp = function () {
|
|
2113
2113
|
var tmp$ret$1;
|
|
2114
2114
|
$l$block: {
|
|
2115
2115
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2116
|
-
var tmp0_parseString = this.
|
|
2117
|
-
var input = tmp0_parseString.
|
|
2116
|
+
var tmp0_parseString = this.e13_1;
|
|
2117
|
+
var input = tmp0_parseString.n16();
|
|
2118
2118
|
try {
|
|
2119
2119
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeDouble.<anonymous>' call
|
|
2120
2120
|
tmp$ret$1 = toDouble(input);
|
|
@@ -2122,57 +2122,57 @@
|
|
|
2122
2122
|
} catch ($p) {
|
|
2123
2123
|
if ($p instanceof IllegalArgumentException) {
|
|
2124
2124
|
var e = $p;
|
|
2125
|
-
tmp0_parseString.
|
|
2125
|
+
tmp0_parseString.s15("Failed to parse type 'double' for input '" + input + "'");
|
|
2126
2126
|
} else {
|
|
2127
2127
|
throw $p;
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
2131
|
var result = tmp$ret$1;
|
|
2132
|
-
var specialFp = this.
|
|
2132
|
+
var specialFp = this.c13_1.x12_1.n14_1;
|
|
2133
2133
|
if (specialFp ? true : isFinite_0(result))
|
|
2134
2134
|
return result;
|
|
2135
|
-
throwInvalidFloatingPointDecoded(this.
|
|
2135
|
+
throwInvalidFloatingPointDecoded(this.e13_1, result);
|
|
2136
2136
|
};
|
|
2137
|
-
protoOf(StreamingJsonDecoder).
|
|
2138
|
-
var string = this.
|
|
2137
|
+
protoOf(StreamingJsonDecoder).tp = function () {
|
|
2138
|
+
var string = this.e13_1.n16();
|
|
2139
2139
|
if (!(string.length === 1)) {
|
|
2140
|
-
this.
|
|
2140
|
+
this.e13_1.s15("Expected single char, but got '" + string + "'");
|
|
2141
2141
|
}
|
|
2142
2142
|
return charSequenceGet(string, 0);
|
|
2143
2143
|
};
|
|
2144
|
-
protoOf(StreamingJsonDecoder).
|
|
2144
|
+
protoOf(StreamingJsonDecoder).up = function () {
|
|
2145
2145
|
var tmp;
|
|
2146
|
-
if (this.
|
|
2147
|
-
tmp = this.
|
|
2146
|
+
if (this.i13_1.f14_1) {
|
|
2147
|
+
tmp = this.e13_1.f18();
|
|
2148
2148
|
} else {
|
|
2149
|
-
tmp = this.
|
|
2149
|
+
tmp = this.e13_1.m16();
|
|
2150
2150
|
}
|
|
2151
2151
|
return tmp;
|
|
2152
2152
|
};
|
|
2153
|
-
protoOf(StreamingJsonDecoder).
|
|
2154
|
-
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.
|
|
2153
|
+
protoOf(StreamingJsonDecoder).wp = function (descriptor) {
|
|
2154
|
+
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.e13_1, this.c13_1) : protoOf(AbstractDecoder).wp.call(this, descriptor);
|
|
2155
2155
|
};
|
|
2156
|
-
protoOf(StreamingJsonDecoder).
|
|
2157
|
-
return getJsonNameIndexOrThrow(enumDescriptor, this.
|
|
2156
|
+
protoOf(StreamingJsonDecoder).vp = function (enumDescriptor) {
|
|
2157
|
+
return getJsonNameIndexOrThrow(enumDescriptor, this.c13_1, this.up(), ' at path ' + this.e13_1.l13_1.f16());
|
|
2158
2158
|
};
|
|
2159
2159
|
function JsonDecoderForUnsignedTypes(lexer, json) {
|
|
2160
2160
|
AbstractDecoder.call(this);
|
|
2161
|
-
this.
|
|
2162
|
-
this.
|
|
2161
|
+
this.p18_1 = lexer;
|
|
2162
|
+
this.q18_1 = json.oq();
|
|
2163
2163
|
}
|
|
2164
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2165
|
-
return this.
|
|
2164
|
+
protoOf(JsonDecoderForUnsignedTypes).oq = function () {
|
|
2165
|
+
return this.q18_1;
|
|
2166
2166
|
};
|
|
2167
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2167
|
+
protoOf(JsonDecoderForUnsignedTypes).qq = function (descriptor) {
|
|
2168
2168
|
throw IllegalStateException_init_$Create$('unsupported');
|
|
2169
2169
|
};
|
|
2170
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2170
|
+
protoOf(JsonDecoderForUnsignedTypes).pp = function () {
|
|
2171
2171
|
var tmp$ret$2;
|
|
2172
2172
|
$l$block: {
|
|
2173
2173
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2174
|
-
var tmp0_parseString = this.
|
|
2175
|
-
var input = tmp0_parseString.
|
|
2174
|
+
var tmp0_parseString = this.p18_1;
|
|
2175
|
+
var input = tmp0_parseString.n16();
|
|
2176
2176
|
try {
|
|
2177
2177
|
// Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeInt.<anonymous>' call
|
|
2178
2178
|
// Inline function 'kotlin.UInt.toInt' call
|
|
@@ -2182,7 +2182,7 @@
|
|
|
2182
2182
|
} catch ($p) {
|
|
2183
2183
|
if ($p instanceof IllegalArgumentException) {
|
|
2184
2184
|
var e = $p;
|
|
2185
|
-
tmp0_parseString.
|
|
2185
|
+
tmp0_parseString.s15("Failed to parse type 'UInt' for input '" + input + "'");
|
|
2186
2186
|
} else {
|
|
2187
2187
|
throw $p;
|
|
2188
2188
|
}
|
|
@@ -2190,12 +2190,12 @@
|
|
|
2190
2190
|
}
|
|
2191
2191
|
return tmp$ret$2;
|
|
2192
2192
|
};
|
|
2193
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2193
|
+
protoOf(JsonDecoderForUnsignedTypes).qp = function () {
|
|
2194
2194
|
var tmp$ret$2;
|
|
2195
2195
|
$l$block: {
|
|
2196
2196
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2197
|
-
var tmp0_parseString = this.
|
|
2198
|
-
var input = tmp0_parseString.
|
|
2197
|
+
var tmp0_parseString = this.p18_1;
|
|
2198
|
+
var input = tmp0_parseString.n16();
|
|
2199
2199
|
try {
|
|
2200
2200
|
// Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeLong.<anonymous>' call
|
|
2201
2201
|
// Inline function 'kotlin.ULong.toLong' call
|
|
@@ -2205,7 +2205,7 @@
|
|
|
2205
2205
|
} catch ($p) {
|
|
2206
2206
|
if ($p instanceof IllegalArgumentException) {
|
|
2207
2207
|
var e = $p;
|
|
2208
|
-
tmp0_parseString.
|
|
2208
|
+
tmp0_parseString.s15("Failed to parse type 'ULong' for input '" + input + "'");
|
|
2209
2209
|
} else {
|
|
2210
2210
|
throw $p;
|
|
2211
2211
|
}
|
|
@@ -2213,12 +2213,12 @@
|
|
|
2213
2213
|
}
|
|
2214
2214
|
return tmp$ret$2;
|
|
2215
2215
|
};
|
|
2216
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2216
|
+
protoOf(JsonDecoderForUnsignedTypes).np = function () {
|
|
2217
2217
|
var tmp$ret$2;
|
|
2218
2218
|
$l$block: {
|
|
2219
2219
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2220
|
-
var tmp0_parseString = this.
|
|
2221
|
-
var input = tmp0_parseString.
|
|
2220
|
+
var tmp0_parseString = this.p18_1;
|
|
2221
|
+
var input = tmp0_parseString.n16();
|
|
2222
2222
|
try {
|
|
2223
2223
|
// Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeByte.<anonymous>' call
|
|
2224
2224
|
// Inline function 'kotlin.UByte.toByte' call
|
|
@@ -2228,7 +2228,7 @@
|
|
|
2228
2228
|
} catch ($p) {
|
|
2229
2229
|
if ($p instanceof IllegalArgumentException) {
|
|
2230
2230
|
var e = $p;
|
|
2231
|
-
tmp0_parseString.
|
|
2231
|
+
tmp0_parseString.s15("Failed to parse type 'UByte' for input '" + input + "'");
|
|
2232
2232
|
} else {
|
|
2233
2233
|
throw $p;
|
|
2234
2234
|
}
|
|
@@ -2236,12 +2236,12 @@
|
|
|
2236
2236
|
}
|
|
2237
2237
|
return tmp$ret$2;
|
|
2238
2238
|
};
|
|
2239
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2239
|
+
protoOf(JsonDecoderForUnsignedTypes).op = function () {
|
|
2240
2240
|
var tmp$ret$2;
|
|
2241
2241
|
$l$block: {
|
|
2242
2242
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2243
|
-
var tmp0_parseString = this.
|
|
2244
|
-
var input = tmp0_parseString.
|
|
2243
|
+
var tmp0_parseString = this.p18_1;
|
|
2244
|
+
var input = tmp0_parseString.n16();
|
|
2245
2245
|
try {
|
|
2246
2246
|
// Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeShort.<anonymous>' call
|
|
2247
2247
|
// Inline function 'kotlin.UShort.toShort' call
|
|
@@ -2251,7 +2251,7 @@
|
|
|
2251
2251
|
} catch ($p) {
|
|
2252
2252
|
if ($p instanceof IllegalArgumentException) {
|
|
2253
2253
|
var e = $p;
|
|
2254
|
-
tmp0_parseString.
|
|
2254
|
+
tmp0_parseString.s15("Failed to parse type 'UShort' for input '" + input + "'");
|
|
2255
2255
|
} else {
|
|
2256
2256
|
throw $p;
|
|
2257
2257
|
}
|
|
@@ -2266,13 +2266,13 @@
|
|
|
2266
2266
|
var unsignedNumberDescriptors;
|
|
2267
2267
|
function get_isUnsignedNumber(_this__u8e3s4) {
|
|
2268
2268
|
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
2269
|
-
return _this__u8e3s4.
|
|
2269
|
+
return _this__u8e3s4.fo() ? get_unsignedNumberDescriptors().j1(_this__u8e3s4) : false;
|
|
2270
2270
|
}
|
|
2271
2271
|
var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
|
|
2272
2272
|
function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
|
|
2273
2273
|
if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
|
|
2274
2274
|
properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
|
|
2275
|
-
unsignedNumberDescriptors = setOf([serializer_0(Companion_getInstance_0()).
|
|
2275
|
+
unsignedNumberDescriptors = setOf([serializer_0(Companion_getInstance_0()).bn(), serializer_1(Companion_getInstance_1()).bn(), serializer_2(Companion_getInstance_2()).bn(), serializer_3(Companion_getInstance_3()).bn()]);
|
|
2276
2276
|
}
|
|
2277
2277
|
}
|
|
2278
2278
|
function get_ESCAPE_STRINGS() {
|
|
@@ -2424,10 +2424,10 @@
|
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
2426
|
var input = tmp;
|
|
2427
|
-
return input.
|
|
2427
|
+
return input.yp(deserializer);
|
|
2428
2428
|
}
|
|
2429
2429
|
function currentObject($this) {
|
|
2430
|
-
var tmp0_safe_receiver = $this.
|
|
2430
|
+
var tmp0_safe_receiver = $this.s10();
|
|
2431
2431
|
var tmp;
|
|
2432
2432
|
if (tmp0_safe_receiver == null) {
|
|
2433
2433
|
tmp = null;
|
|
@@ -2435,7 +2435,7 @@
|
|
|
2435
2435
|
// Inline function 'kotlin.let' call
|
|
2436
2436
|
// Inline function 'kotlin.contracts.contract' call
|
|
2437
2437
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.currentObject.<anonymous>' call
|
|
2438
|
-
tmp = $this.
|
|
2438
|
+
tmp = $this.w18(tmp0_safe_receiver);
|
|
2439
2439
|
}
|
|
2440
2440
|
var tmp1_elvis_lhs = tmp;
|
|
2441
2441
|
return tmp1_elvis_lhs == null ? $this.w() : tmp1_elvis_lhs;
|
|
@@ -2455,31 +2455,31 @@
|
|
|
2455
2455
|
}
|
|
2456
2456
|
function AbstractJsonTreeDecoder(json, value) {
|
|
2457
2457
|
NamedValueDecoder.call(this);
|
|
2458
|
-
this.
|
|
2459
|
-
this.
|
|
2460
|
-
this.
|
|
2458
|
+
this.t18_1 = json;
|
|
2459
|
+
this.u18_1 = value;
|
|
2460
|
+
this.v18_1 = this.q14().x12_1;
|
|
2461
2461
|
}
|
|
2462
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2463
|
-
return this.
|
|
2462
|
+
protoOf(AbstractJsonTreeDecoder).q14 = function () {
|
|
2463
|
+
return this.t18_1;
|
|
2464
2464
|
};
|
|
2465
2465
|
protoOf(AbstractJsonTreeDecoder).w = function () {
|
|
2466
|
-
return this.
|
|
2466
|
+
return this.u18_1;
|
|
2467
2467
|
};
|
|
2468
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2469
|
-
return this.
|
|
2468
|
+
protoOf(AbstractJsonTreeDecoder).oq = function () {
|
|
2469
|
+
return this.q14().oq();
|
|
2470
2470
|
};
|
|
2471
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2471
|
+
protoOf(AbstractJsonTreeDecoder).r14 = function () {
|
|
2472
2472
|
return currentObject(this);
|
|
2473
2473
|
};
|
|
2474
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2474
|
+
protoOf(AbstractJsonTreeDecoder).yp = function (deserializer) {
|
|
2475
2475
|
return decodeSerializableValuePolymorphic(this, deserializer);
|
|
2476
2476
|
};
|
|
2477
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2477
|
+
protoOf(AbstractJsonTreeDecoder).t10 = function (parentName, childName) {
|
|
2478
2478
|
return childName;
|
|
2479
2479
|
};
|
|
2480
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2480
|
+
protoOf(AbstractJsonTreeDecoder).zp = function (descriptor) {
|
|
2481
2481
|
var currentObject_0 = currentObject(this);
|
|
2482
|
-
var tmp0_subject = descriptor.
|
|
2482
|
+
var tmp0_subject = descriptor.go();
|
|
2483
2483
|
var tmp;
|
|
2484
2484
|
var tmp_0;
|
|
2485
2485
|
if (equals(tmp0_subject, LIST_getInstance())) {
|
|
@@ -2488,18 +2488,18 @@
|
|
|
2488
2488
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
2489
2489
|
}
|
|
2490
2490
|
if (tmp_0) {
|
|
2491
|
-
var tmp_1 = this.
|
|
2491
|
+
var tmp_1 = this.q14();
|
|
2492
2492
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2493
2493
|
if (!(currentObject_0 instanceof JsonArray)) {
|
|
2494
|
-
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonArray) + ' as the serialized body of ' + descriptor.
|
|
2494
|
+
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonArray) + ' as the serialized body of ' + descriptor.co() + ', but had ' + getKClassFromExpression(currentObject_0));
|
|
2495
2495
|
}
|
|
2496
2496
|
tmp = new JsonTreeListDecoder(tmp_1, currentObject_0);
|
|
2497
2497
|
} else {
|
|
2498
2498
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
2499
2499
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
2500
|
-
var tmp0_selectMapMode = this.
|
|
2501
|
-
var keyDescriptor = carrierDescriptor(descriptor.
|
|
2502
|
-
var keyKind = keyDescriptor.
|
|
2500
|
+
var tmp0_selectMapMode = this.q14();
|
|
2501
|
+
var keyDescriptor = carrierDescriptor(descriptor.io(0), tmp0_selectMapMode.oq());
|
|
2502
|
+
var keyKind = keyDescriptor.go();
|
|
2503
2503
|
var tmp_2;
|
|
2504
2504
|
var tmp_3;
|
|
2505
2505
|
if (keyKind instanceof PrimitiveKind) {
|
|
@@ -2509,19 +2509,19 @@
|
|
|
2509
2509
|
}
|
|
2510
2510
|
if (tmp_3) {
|
|
2511
2511
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure.<anonymous>' call
|
|
2512
|
-
var tmp_4 = this.
|
|
2512
|
+
var tmp_4 = this.q14();
|
|
2513
2513
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2514
2514
|
if (!(currentObject_0 instanceof JsonObject)) {
|
|
2515
|
-
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.
|
|
2515
|
+
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.co() + ', but had ' + getKClassFromExpression(currentObject_0));
|
|
2516
2516
|
}
|
|
2517
2517
|
tmp_2 = new JsonTreeMapDecoder(tmp_4, currentObject_0);
|
|
2518
2518
|
} else {
|
|
2519
|
-
if (tmp0_selectMapMode.
|
|
2519
|
+
if (tmp0_selectMapMode.x12_1.g14_1) {
|
|
2520
2520
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure.<anonymous>' call
|
|
2521
|
-
var tmp_5 = this.
|
|
2521
|
+
var tmp_5 = this.q14();
|
|
2522
2522
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2523
2523
|
if (!(currentObject_0 instanceof JsonArray)) {
|
|
2524
|
-
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonArray) + ' as the serialized body of ' + descriptor.
|
|
2524
|
+
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonArray) + ' as the serialized body of ' + descriptor.co() + ', but had ' + getKClassFromExpression(currentObject_0));
|
|
2525
2525
|
}
|
|
2526
2526
|
tmp_2 = new JsonTreeListDecoder(tmp_5, currentObject_0);
|
|
2527
2527
|
} else {
|
|
@@ -2530,24 +2530,24 @@
|
|
|
2530
2530
|
}
|
|
2531
2531
|
tmp = tmp_2;
|
|
2532
2532
|
} else {
|
|
2533
|
-
var tmp_6 = this.
|
|
2533
|
+
var tmp_6 = this.q14();
|
|
2534
2534
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2535
2535
|
if (!(currentObject_0 instanceof JsonObject)) {
|
|
2536
|
-
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.
|
|
2536
|
+
throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.co() + ', but had ' + getKClassFromExpression(currentObject_0));
|
|
2537
2537
|
}
|
|
2538
2538
|
tmp = new JsonTreeDecoder(tmp_6, currentObject_0);
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
return tmp;
|
|
2542
2542
|
};
|
|
2543
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2543
|
+
protoOf(AbstractJsonTreeDecoder).aq = function (descriptor) {
|
|
2544
2544
|
};
|
|
2545
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2545
|
+
protoOf(AbstractJsonTreeDecoder).kp = function () {
|
|
2546
2546
|
var tmp = currentObject(this);
|
|
2547
2547
|
return !(tmp instanceof JsonNull);
|
|
2548
2548
|
};
|
|
2549
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2550
|
-
var currentElement = this.
|
|
2549
|
+
protoOf(AbstractJsonTreeDecoder).x18 = function (tag) {
|
|
2550
|
+
var currentElement = this.w18(tag);
|
|
2551
2551
|
var tmp0_elvis_lhs = currentElement instanceof JsonPrimitive ? currentElement : null;
|
|
2552
2552
|
var tmp;
|
|
2553
2553
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2557,23 +2557,23 @@
|
|
|
2557
2557
|
}
|
|
2558
2558
|
return tmp;
|
|
2559
2559
|
};
|
|
2560
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2561
|
-
return getJsonNameIndexOrThrow(enumDescriptor, this.
|
|
2560
|
+
protoOf(AbstractJsonTreeDecoder).y18 = function (tag, enumDescriptor) {
|
|
2561
|
+
return getJsonNameIndexOrThrow(enumDescriptor, this.q14(), this.x18(tag).s14());
|
|
2562
2562
|
};
|
|
2563
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2564
|
-
return this.
|
|
2563
|
+
protoOf(AbstractJsonTreeDecoder).f11 = function (tag, enumDescriptor) {
|
|
2564
|
+
return this.y18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor);
|
|
2565
2565
|
};
|
|
2566
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2567
|
-
return !(this.
|
|
2566
|
+
protoOf(AbstractJsonTreeDecoder).z18 = function (tag) {
|
|
2567
|
+
return !(this.w18(tag) === JsonNull_getInstance());
|
|
2568
2568
|
};
|
|
2569
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2570
|
-
return this.
|
|
2569
|
+
protoOf(AbstractJsonTreeDecoder).v10 = function (tag) {
|
|
2570
|
+
return this.z18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2571
2571
|
};
|
|
2572
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2573
|
-
var value = this.
|
|
2574
|
-
if (!this.
|
|
2572
|
+
protoOf(AbstractJsonTreeDecoder).a19 = function (tag) {
|
|
2573
|
+
var value = this.x18(tag);
|
|
2574
|
+
if (!this.q14().x12_1.f14_1) {
|
|
2575
2575
|
var literal = asLiteral(value, this, 'boolean');
|
|
2576
|
-
if (literal.
|
|
2576
|
+
if (literal.c15_1)
|
|
2577
2577
|
throw JsonDecodingException_0(-1, "Boolean literal for key '" + tag + "' should be unquoted.\n" + get_lenientHint(), toString(currentObject(this)));
|
|
2578
2578
|
}
|
|
2579
2579
|
var tmp$ret$1;
|
|
@@ -2608,14 +2608,14 @@
|
|
|
2608
2608
|
}
|
|
2609
2609
|
return tmp$ret$1;
|
|
2610
2610
|
};
|
|
2611
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2612
|
-
return this.
|
|
2611
|
+
protoOf(AbstractJsonTreeDecoder).w10 = function (tag) {
|
|
2612
|
+
return this.a19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2613
2613
|
};
|
|
2614
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2614
|
+
protoOf(AbstractJsonTreeDecoder).b19 = function (tag) {
|
|
2615
2615
|
var tmp$ret$1;
|
|
2616
2616
|
$l$block: {
|
|
2617
2617
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
|
|
2618
|
-
var tmp0_primitive = this.
|
|
2618
|
+
var tmp0_primitive = this.x18(tag);
|
|
2619
2619
|
try {
|
|
2620
2620
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedByte.<anonymous>' call
|
|
2621
2621
|
var result = get_int(tmp0_primitive);
|
|
@@ -2646,14 +2646,14 @@
|
|
|
2646
2646
|
}
|
|
2647
2647
|
return tmp$ret$1;
|
|
2648
2648
|
};
|
|
2649
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2650
|
-
return this.
|
|
2649
|
+
protoOf(AbstractJsonTreeDecoder).x10 = function (tag) {
|
|
2650
|
+
return this.b19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2651
2651
|
};
|
|
2652
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2652
|
+
protoOf(AbstractJsonTreeDecoder).c19 = function (tag) {
|
|
2653
2653
|
var tmp$ret$1;
|
|
2654
2654
|
$l$block: {
|
|
2655
2655
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
|
|
2656
|
-
var tmp0_primitive = this.
|
|
2656
|
+
var tmp0_primitive = this.x18(tag);
|
|
2657
2657
|
try {
|
|
2658
2658
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedShort.<anonymous>' call
|
|
2659
2659
|
var result = get_int(tmp0_primitive);
|
|
@@ -2684,14 +2684,14 @@
|
|
|
2684
2684
|
}
|
|
2685
2685
|
return tmp$ret$1;
|
|
2686
2686
|
};
|
|
2687
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2688
|
-
return this.
|
|
2687
|
+
protoOf(AbstractJsonTreeDecoder).y10 = function (tag) {
|
|
2688
|
+
return this.c19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2689
2689
|
};
|
|
2690
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2690
|
+
protoOf(AbstractJsonTreeDecoder).d19 = function (tag) {
|
|
2691
2691
|
var tmp$ret$1;
|
|
2692
2692
|
$l$block: {
|
|
2693
2693
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
|
|
2694
|
-
var tmp0_primitive = this.
|
|
2694
|
+
var tmp0_primitive = this.x18(tag);
|
|
2695
2695
|
try {
|
|
2696
2696
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedInt.<anonymous>' call
|
|
2697
2697
|
var tmp0_elvis_lhs = get_int(tmp0_primitive);
|
|
@@ -2714,14 +2714,14 @@
|
|
|
2714
2714
|
}
|
|
2715
2715
|
return tmp$ret$1;
|
|
2716
2716
|
};
|
|
2717
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2718
|
-
return this.
|
|
2717
|
+
protoOf(AbstractJsonTreeDecoder).z10 = function (tag) {
|
|
2718
|
+
return this.d19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2719
2719
|
};
|
|
2720
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2720
|
+
protoOf(AbstractJsonTreeDecoder).e19 = function (tag) {
|
|
2721
2721
|
var tmp$ret$1;
|
|
2722
2722
|
$l$block: {
|
|
2723
2723
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
|
|
2724
|
-
var tmp0_primitive = this.
|
|
2724
|
+
var tmp0_primitive = this.x18(tag);
|
|
2725
2725
|
try {
|
|
2726
2726
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedLong.<anonymous>' call
|
|
2727
2727
|
var tmp0_elvis_lhs = get_long(tmp0_primitive);
|
|
@@ -2744,14 +2744,14 @@
|
|
|
2744
2744
|
}
|
|
2745
2745
|
return tmp$ret$1;
|
|
2746
2746
|
};
|
|
2747
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2748
|
-
return this.
|
|
2747
|
+
protoOf(AbstractJsonTreeDecoder).a11 = function (tag) {
|
|
2748
|
+
return this.e19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2749
2749
|
};
|
|
2750
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2750
|
+
protoOf(AbstractJsonTreeDecoder).f19 = function (tag) {
|
|
2751
2751
|
var tmp$ret$1;
|
|
2752
2752
|
$l$block: {
|
|
2753
2753
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
|
|
2754
|
-
var tmp0_primitive = this.
|
|
2754
|
+
var tmp0_primitive = this.x18(tag);
|
|
2755
2755
|
try {
|
|
2756
2756
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedFloat.<anonymous>' call
|
|
2757
2757
|
var tmp0_elvis_lhs = get_float(tmp0_primitive);
|
|
@@ -2773,19 +2773,19 @@
|
|
|
2773
2773
|
}
|
|
2774
2774
|
}
|
|
2775
2775
|
var result = tmp$ret$1;
|
|
2776
|
-
var specialFp = this.
|
|
2776
|
+
var specialFp = this.q14().x12_1.n14_1;
|
|
2777
2777
|
if (specialFp ? true : isFinite(result))
|
|
2778
2778
|
return result;
|
|
2779
2779
|
throw InvalidFloatingPointDecoded(result, tag, toString(currentObject(this)));
|
|
2780
2780
|
};
|
|
2781
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2782
|
-
return this.
|
|
2781
|
+
protoOf(AbstractJsonTreeDecoder).b11 = function (tag) {
|
|
2782
|
+
return this.f19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2783
2783
|
};
|
|
2784
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2784
|
+
protoOf(AbstractJsonTreeDecoder).g19 = function (tag) {
|
|
2785
2785
|
var tmp$ret$1;
|
|
2786
2786
|
$l$block: {
|
|
2787
2787
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
|
|
2788
|
-
var tmp0_primitive = this.
|
|
2788
|
+
var tmp0_primitive = this.x18(tag);
|
|
2789
2789
|
try {
|
|
2790
2790
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedDouble.<anonymous>' call
|
|
2791
2791
|
var tmp0_elvis_lhs = get_double(tmp0_primitive);
|
|
@@ -2807,22 +2807,22 @@
|
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
2809
|
var result = tmp$ret$1;
|
|
2810
|
-
var specialFp = this.
|
|
2810
|
+
var specialFp = this.q14().x12_1.n14_1;
|
|
2811
2811
|
if (specialFp ? true : isFinite_0(result))
|
|
2812
2812
|
return result;
|
|
2813
2813
|
throw InvalidFloatingPointDecoded(result, tag, toString(currentObject(this)));
|
|
2814
2814
|
};
|
|
2815
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2816
|
-
return this.
|
|
2815
|
+
protoOf(AbstractJsonTreeDecoder).c11 = function (tag) {
|
|
2816
|
+
return this.g19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2817
2817
|
};
|
|
2818
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2818
|
+
protoOf(AbstractJsonTreeDecoder).h19 = function (tag) {
|
|
2819
2819
|
var tmp$ret$1;
|
|
2820
2820
|
$l$block: {
|
|
2821
2821
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
|
|
2822
|
-
var tmp0_primitive = this.
|
|
2822
|
+
var tmp0_primitive = this.x18(tag);
|
|
2823
2823
|
try {
|
|
2824
2824
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedChar.<anonymous>' call
|
|
2825
|
-
var tmp0_elvis_lhs = single(tmp0_primitive.
|
|
2825
|
+
var tmp0_elvis_lhs = single(tmp0_primitive.s14());
|
|
2826
2826
|
var tmp;
|
|
2827
2827
|
var tmp_0 = tmp0_elvis_lhs;
|
|
2828
2828
|
if ((tmp_0 == null ? null : new Char(tmp_0)) == null) {
|
|
@@ -2843,42 +2843,42 @@
|
|
|
2843
2843
|
}
|
|
2844
2844
|
return tmp$ret$1;
|
|
2845
2845
|
};
|
|
2846
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2847
|
-
return this.
|
|
2846
|
+
protoOf(AbstractJsonTreeDecoder).d11 = function (tag) {
|
|
2847
|
+
return this.h19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2848
2848
|
};
|
|
2849
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2850
|
-
var value = this.
|
|
2851
|
-
if (!this.
|
|
2849
|
+
protoOf(AbstractJsonTreeDecoder).i19 = function (tag) {
|
|
2850
|
+
var value = this.x18(tag);
|
|
2851
|
+
if (!this.q14().x12_1.f14_1) {
|
|
2852
2852
|
var literal = asLiteral(value, this, 'string');
|
|
2853
|
-
if (!literal.
|
|
2853
|
+
if (!literal.c15_1)
|
|
2854
2854
|
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted.\n" + get_lenientHint(), toString(currentObject(this)));
|
|
2855
2855
|
}
|
|
2856
2856
|
if (value instanceof JsonNull)
|
|
2857
2857
|
throw JsonDecodingException_0(-1, "Unexpected 'null' value instead of string literal", toString(currentObject(this)));
|
|
2858
|
-
return value.
|
|
2858
|
+
return value.s14();
|
|
2859
2859
|
};
|
|
2860
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2861
|
-
return this.
|
|
2860
|
+
protoOf(AbstractJsonTreeDecoder).e11 = function (tag) {
|
|
2861
|
+
return this.i19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
2862
2862
|
};
|
|
2863
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2864
|
-
return get_isUnsignedNumber(inlineDescriptor) ? new JsonDecoderForUnsignedTypes(new StringJsonLexer(this.
|
|
2863
|
+
protoOf(AbstractJsonTreeDecoder).j19 = function (tag, inlineDescriptor) {
|
|
2864
|
+
return get_isUnsignedNumber(inlineDescriptor) ? new JsonDecoderForUnsignedTypes(new StringJsonLexer(this.x18(tag).s14()), this.q14()) : protoOf(NamedValueDecoder).g11.call(this, tag, inlineDescriptor);
|
|
2865
2865
|
};
|
|
2866
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2867
|
-
return this.
|
|
2866
|
+
protoOf(AbstractJsonTreeDecoder).g11 = function (tag, inlineDescriptor) {
|
|
2867
|
+
return this.j19((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
|
|
2868
2868
|
};
|
|
2869
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
2870
|
-
return !(this.
|
|
2869
|
+
protoOf(AbstractJsonTreeDecoder).wp = function (descriptor) {
|
|
2870
|
+
return !(this.s10() == null) ? protoOf(NamedValueDecoder).wp.call(this, descriptor) : (new JsonPrimitiveDecoder(this.q14(), this.w())).wp(descriptor);
|
|
2871
2871
|
};
|
|
2872
2872
|
function coerceInputValue_0($this, descriptor, index, tag) {
|
|
2873
2873
|
var tmp$ret$1;
|
|
2874
2874
|
$l$block_2: {
|
|
2875
2875
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
2876
|
-
var tmp0_tryCoerceValue = $this.
|
|
2877
|
-
var tmp1_tryCoerceValue = descriptor.
|
|
2876
|
+
var tmp0_tryCoerceValue = $this.q14();
|
|
2877
|
+
var tmp1_tryCoerceValue = descriptor.io(index);
|
|
2878
2878
|
var tmp;
|
|
2879
|
-
if (!tmp1_tryCoerceValue.
|
|
2879
|
+
if (!tmp1_tryCoerceValue.yn()) {
|
|
2880
2880
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
|
|
2881
|
-
var tmp_0 = $this.
|
|
2881
|
+
var tmp_0 = $this.w18(tag);
|
|
2882
2882
|
tmp = tmp_0 instanceof JsonNull;
|
|
2883
2883
|
} else {
|
|
2884
2884
|
tmp = false;
|
|
@@ -2887,11 +2887,11 @@
|
|
|
2887
2887
|
tmp$ret$1 = true;
|
|
2888
2888
|
break $l$block_2;
|
|
2889
2889
|
}
|
|
2890
|
-
if (equals(tmp1_tryCoerceValue.
|
|
2890
|
+
if (equals(tmp1_tryCoerceValue.go(), ENUM_getInstance())) {
|
|
2891
2891
|
var tmp_1;
|
|
2892
|
-
if (tmp1_tryCoerceValue.
|
|
2892
|
+
if (tmp1_tryCoerceValue.yn()) {
|
|
2893
2893
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
|
|
2894
|
-
var tmp_2 = $this.
|
|
2894
|
+
var tmp_2 = $this.w18(tag);
|
|
2895
2895
|
tmp_1 = tmp_2 instanceof JsonNull;
|
|
2896
2896
|
} else {
|
|
2897
2897
|
tmp_1 = false;
|
|
@@ -2901,7 +2901,7 @@
|
|
|
2901
2901
|
break $l$block_2;
|
|
2902
2902
|
}
|
|
2903
2903
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
|
|
2904
|
-
var tmp_3 = $this.
|
|
2904
|
+
var tmp_3 = $this.w18(tag);
|
|
2905
2905
|
var tmp0_safe_receiver = tmp_3 instanceof JsonPrimitive ? tmp_3 : null;
|
|
2906
2906
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver);
|
|
2907
2907
|
var tmp_4;
|
|
@@ -2925,29 +2925,29 @@
|
|
|
2925
2925
|
return tmp$ret$1;
|
|
2926
2926
|
}
|
|
2927
2927
|
function absenceIsNull($this, descriptor, index) {
|
|
2928
|
-
$this.
|
|
2929
|
-
return $this.
|
|
2928
|
+
$this.t19_1 = (!$this.q14().x12_1.i14_1 ? !descriptor.lo(index) : false) ? descriptor.io(index).yn() : false;
|
|
2929
|
+
return $this.t19_1;
|
|
2930
2930
|
}
|
|
2931
2931
|
function JsonTreeDecoder(json, value, polyDiscriminator, polyDescriptor) {
|
|
2932
2932
|
polyDiscriminator = polyDiscriminator === VOID ? null : polyDiscriminator;
|
|
2933
2933
|
polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor;
|
|
2934
2934
|
AbstractJsonTreeDecoder.call(this, json, value);
|
|
2935
|
-
this.
|
|
2936
|
-
this.
|
|
2937
|
-
this.
|
|
2938
|
-
this.
|
|
2939
|
-
this.
|
|
2935
|
+
this.p19_1 = value;
|
|
2936
|
+
this.q19_1 = polyDiscriminator;
|
|
2937
|
+
this.r19_1 = polyDescriptor;
|
|
2938
|
+
this.s19_1 = 0;
|
|
2939
|
+
this.t19_1 = false;
|
|
2940
2940
|
}
|
|
2941
2941
|
protoOf(JsonTreeDecoder).w = function () {
|
|
2942
|
-
return this.
|
|
2943
|
-
};
|
|
2944
|
-
protoOf(JsonTreeDecoder).
|
|
2945
|
-
while (this.
|
|
2946
|
-
var tmp1 = this.
|
|
2947
|
-
this.
|
|
2948
|
-
var name = this.
|
|
2949
|
-
var index = this.
|
|
2950
|
-
this.
|
|
2942
|
+
return this.p19_1;
|
|
2943
|
+
};
|
|
2944
|
+
protoOf(JsonTreeDecoder).qq = function (descriptor) {
|
|
2945
|
+
while (this.s19_1 < descriptor.eo()) {
|
|
2946
|
+
var tmp1 = this.s19_1;
|
|
2947
|
+
this.s19_1 = tmp1 + 1 | 0;
|
|
2948
|
+
var name = this.n10(descriptor, tmp1);
|
|
2949
|
+
var index = this.s19_1 - 1 | 0;
|
|
2950
|
+
this.t19_1 = false;
|
|
2951
2951
|
var tmp;
|
|
2952
2952
|
var tmp_0;
|
|
2953
2953
|
// Inline function 'kotlin.collections.contains' call
|
|
@@ -2959,7 +2959,7 @@
|
|
|
2959
2959
|
tmp_0 = absenceIsNull(this, descriptor, index);
|
|
2960
2960
|
}
|
|
2961
2961
|
if (tmp_0) {
|
|
2962
|
-
tmp = !this.
|
|
2962
|
+
tmp = !this.v18_1.k14_1 ? true : !coerceInputValue_0(this, descriptor, index, name);
|
|
2963
2963
|
} else {
|
|
2964
2964
|
tmp = false;
|
|
2965
2965
|
}
|
|
@@ -2970,19 +2970,19 @@
|
|
|
2970
2970
|
Companion_getInstance();
|
|
2971
2971
|
return -1;
|
|
2972
2972
|
};
|
|
2973
|
-
protoOf(JsonTreeDecoder).
|
|
2974
|
-
return !this.
|
|
2973
|
+
protoOf(JsonTreeDecoder).kp = function () {
|
|
2974
|
+
return !this.t19_1 ? protoOf(AbstractJsonTreeDecoder).kp.call(this) : false;
|
|
2975
2975
|
};
|
|
2976
|
-
protoOf(JsonTreeDecoder).
|
|
2977
|
-
var strategy = namingStrategy(descriptor, this.
|
|
2978
|
-
var baseName = descriptor.
|
|
2976
|
+
protoOf(JsonTreeDecoder).o10 = function (descriptor, index) {
|
|
2977
|
+
var strategy = namingStrategy(descriptor, this.q14());
|
|
2978
|
+
var baseName = descriptor.ko(index);
|
|
2979
2979
|
if (strategy == null) {
|
|
2980
|
-
if (!this.
|
|
2980
|
+
if (!this.v18_1.o14_1)
|
|
2981
2981
|
return baseName;
|
|
2982
2982
|
if (this.w().o2().j1(baseName))
|
|
2983
2983
|
return baseName;
|
|
2984
2984
|
}
|
|
2985
|
-
var deserializationNamesMap_0 = deserializationNamesMap(this.
|
|
2985
|
+
var deserializationNamesMap_0 = deserializationNamesMap(this.q14(), descriptor);
|
|
2986
2986
|
// Inline function 'kotlin.collections.find' call
|
|
2987
2987
|
var tmp0_find = this.w().o2();
|
|
2988
2988
|
var tmp$ret$1;
|
|
@@ -3007,38 +3007,38 @@
|
|
|
3007
3007
|
// Inline function 'kotlin.contracts.contract' call
|
|
3008
3008
|
return tmp0_safe_receiver;
|
|
3009
3009
|
}
|
|
3010
|
-
var fallbackName = strategy == null ? null : strategy.
|
|
3010
|
+
var fallbackName = strategy == null ? null : strategy.w15(descriptor, index, baseName);
|
|
3011
3011
|
return fallbackName == null ? baseName : fallbackName;
|
|
3012
3012
|
};
|
|
3013
|
-
protoOf(JsonTreeDecoder).
|
|
3013
|
+
protoOf(JsonTreeDecoder).w18 = function (tag) {
|
|
3014
3014
|
return getValue(this.w(), tag);
|
|
3015
3015
|
};
|
|
3016
|
-
protoOf(JsonTreeDecoder).
|
|
3017
|
-
if (descriptor === this.
|
|
3016
|
+
protoOf(JsonTreeDecoder).zp = function (descriptor) {
|
|
3017
|
+
if (descriptor === this.r19_1)
|
|
3018
3018
|
return this;
|
|
3019
|
-
return protoOf(AbstractJsonTreeDecoder).
|
|
3019
|
+
return protoOf(AbstractJsonTreeDecoder).zp.call(this, descriptor);
|
|
3020
3020
|
};
|
|
3021
|
-
protoOf(JsonTreeDecoder).
|
|
3021
|
+
protoOf(JsonTreeDecoder).aq = function (descriptor) {
|
|
3022
3022
|
var tmp;
|
|
3023
|
-
if (this.
|
|
3023
|
+
if (this.v18_1.e14_1) {
|
|
3024
3024
|
tmp = true;
|
|
3025
3025
|
} else {
|
|
3026
|
-
var tmp_0 = descriptor.
|
|
3026
|
+
var tmp_0 = descriptor.go();
|
|
3027
3027
|
tmp = tmp_0 instanceof PolymorphicKind;
|
|
3028
3028
|
}
|
|
3029
3029
|
if (tmp)
|
|
3030
3030
|
return Unit_getInstance();
|
|
3031
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3031
|
+
var strategy = namingStrategy(descriptor, this.q14());
|
|
3032
3032
|
var tmp_1;
|
|
3033
|
-
if (strategy == null ? !this.
|
|
3033
|
+
if (strategy == null ? !this.v18_1.o14_1 : false) {
|
|
3034
3034
|
tmp_1 = jsonCachedSerialNames(descriptor);
|
|
3035
3035
|
} else if (!(strategy == null)) {
|
|
3036
|
-
tmp_1 = deserializationNamesMap(this.
|
|
3036
|
+
tmp_1 = deserializationNamesMap(this.q14(), descriptor).o2();
|
|
3037
3037
|
} else {
|
|
3038
3038
|
var tmp_2 = jsonCachedSerialNames(descriptor);
|
|
3039
3039
|
var tmp$ret$0;
|
|
3040
3040
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3041
|
-
var tmp0_safe_receiver = get_schemaCache(this.
|
|
3041
|
+
var tmp0_safe_receiver = get_schemaCache(this.q14()).w17(descriptor, get_JsonDeserializationNamesKey());
|
|
3042
3042
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2();
|
|
3043
3043
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
3044
3044
|
tmp_1 = plus_0(tmp_2, tmp$ret$0);
|
|
@@ -3047,46 +3047,46 @@
|
|
|
3047
3047
|
var tmp1_iterator = this.w().o2().c();
|
|
3048
3048
|
while (tmp1_iterator.d()) {
|
|
3049
3049
|
var key = tmp1_iterator.e();
|
|
3050
|
-
if (!names.j1(key) ? !(key === this.
|
|
3050
|
+
if (!names.j1(key) ? !(key === this.q19_1) : false) {
|
|
3051
3051
|
throw UnknownKeyException(key, this.w().toString());
|
|
3052
3052
|
}
|
|
3053
3053
|
}
|
|
3054
3054
|
};
|
|
3055
3055
|
function JsonTreeListDecoder(json, value) {
|
|
3056
3056
|
AbstractJsonTreeDecoder.call(this, json, value);
|
|
3057
|
-
this.
|
|
3058
|
-
this.
|
|
3059
|
-
this.
|
|
3057
|
+
this.z19_1 = value;
|
|
3058
|
+
this.a1a_1 = this.z19_1.f();
|
|
3059
|
+
this.b1a_1 = -1;
|
|
3060
3060
|
}
|
|
3061
3061
|
protoOf(JsonTreeListDecoder).w = function () {
|
|
3062
|
-
return this.
|
|
3062
|
+
return this.z19_1;
|
|
3063
3063
|
};
|
|
3064
|
-
protoOf(JsonTreeListDecoder).
|
|
3064
|
+
protoOf(JsonTreeListDecoder).o10 = function (descriptor, index) {
|
|
3065
3065
|
return index.toString();
|
|
3066
3066
|
};
|
|
3067
|
-
protoOf(JsonTreeListDecoder).
|
|
3068
|
-
return this.
|
|
3067
|
+
protoOf(JsonTreeListDecoder).w18 = function (tag) {
|
|
3068
|
+
return this.z19_1.h(toInt(tag));
|
|
3069
3069
|
};
|
|
3070
|
-
protoOf(JsonTreeListDecoder).
|
|
3071
|
-
while (this.
|
|
3072
|
-
this.
|
|
3073
|
-
return this.
|
|
3070
|
+
protoOf(JsonTreeListDecoder).qq = function (descriptor) {
|
|
3071
|
+
while (this.b1a_1 < (this.a1a_1 - 1 | 0)) {
|
|
3072
|
+
this.b1a_1 = this.b1a_1 + 1 | 0;
|
|
3073
|
+
return this.b1a_1;
|
|
3074
3074
|
}
|
|
3075
3075
|
Companion_getInstance();
|
|
3076
3076
|
return -1;
|
|
3077
3077
|
};
|
|
3078
3078
|
function JsonPrimitiveDecoder(json, value) {
|
|
3079
3079
|
AbstractJsonTreeDecoder.call(this, json, value);
|
|
3080
|
-
this.
|
|
3081
|
-
this.
|
|
3080
|
+
this.h1a_1 = value;
|
|
3081
|
+
this.h11(get_PRIMITIVE_TAG());
|
|
3082
3082
|
}
|
|
3083
3083
|
protoOf(JsonPrimitiveDecoder).w = function () {
|
|
3084
|
-
return this.
|
|
3084
|
+
return this.h1a_1;
|
|
3085
3085
|
};
|
|
3086
|
-
protoOf(JsonPrimitiveDecoder).
|
|
3086
|
+
protoOf(JsonPrimitiveDecoder).qq = function (descriptor) {
|
|
3087
3087
|
return 0;
|
|
3088
3088
|
};
|
|
3089
|
-
protoOf(JsonPrimitiveDecoder).
|
|
3089
|
+
protoOf(JsonPrimitiveDecoder).w18 = function (tag) {
|
|
3090
3090
|
// Inline function 'kotlin.require' call
|
|
3091
3091
|
// Inline function 'kotlin.contracts.contract' call
|
|
3092
3092
|
if (!(tag === get_PRIMITIVE_TAG())) {
|
|
@@ -3094,37 +3094,37 @@
|
|
|
3094
3094
|
var message = "This input can only handle primitives with '" + get_PRIMITIVE_TAG() + "' tag";
|
|
3095
3095
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3096
3096
|
}
|
|
3097
|
-
return this.
|
|
3097
|
+
return this.h1a_1;
|
|
3098
3098
|
};
|
|
3099
3099
|
function JsonTreeMapDecoder(json, value) {
|
|
3100
3100
|
JsonTreeDecoder.call(this, json, value);
|
|
3101
|
-
this.
|
|
3102
|
-
this.
|
|
3103
|
-
this.
|
|
3104
|
-
this.
|
|
3101
|
+
this.s1a_1 = value;
|
|
3102
|
+
this.t1a_1 = toList(this.s1a_1.o2());
|
|
3103
|
+
this.u1a_1 = imul(this.t1a_1.f(), 2);
|
|
3104
|
+
this.v1a_1 = -1;
|
|
3105
3105
|
}
|
|
3106
3106
|
protoOf(JsonTreeMapDecoder).w = function () {
|
|
3107
|
-
return this.
|
|
3107
|
+
return this.s1a_1;
|
|
3108
3108
|
};
|
|
3109
|
-
protoOf(JsonTreeMapDecoder).
|
|
3109
|
+
protoOf(JsonTreeMapDecoder).o10 = function (descriptor, index) {
|
|
3110
3110
|
var i = index / 2 | 0;
|
|
3111
|
-
return this.
|
|
3111
|
+
return this.t1a_1.h(i);
|
|
3112
3112
|
};
|
|
3113
|
-
protoOf(JsonTreeMapDecoder).
|
|
3114
|
-
while (this.
|
|
3115
|
-
this.
|
|
3116
|
-
return this.
|
|
3113
|
+
protoOf(JsonTreeMapDecoder).qq = function (descriptor) {
|
|
3114
|
+
while (this.v1a_1 < (this.u1a_1 - 1 | 0)) {
|
|
3115
|
+
this.v1a_1 = this.v1a_1 + 1 | 0;
|
|
3116
|
+
return this.v1a_1;
|
|
3117
3117
|
}
|
|
3118
3118
|
Companion_getInstance();
|
|
3119
3119
|
return -1;
|
|
3120
3120
|
};
|
|
3121
|
-
protoOf(JsonTreeMapDecoder).
|
|
3122
|
-
return (this.
|
|
3121
|
+
protoOf(JsonTreeMapDecoder).w18 = function (tag) {
|
|
3122
|
+
return (this.v1a_1 % 2 | 0) === 0 ? JsonPrimitive_0(tag) : getValue(this.s1a_1, tag);
|
|
3123
3123
|
};
|
|
3124
|
-
protoOf(JsonTreeMapDecoder).
|
|
3124
|
+
protoOf(JsonTreeMapDecoder).aq = function (descriptor) {
|
|
3125
3125
|
};
|
|
3126
3126
|
function readPolymorphicJson(_this__u8e3s4, discriminator, element, deserializer) {
|
|
3127
|
-
return (new JsonTreeDecoder(_this__u8e3s4, element, discriminator, deserializer.
|
|
3127
|
+
return (new JsonTreeDecoder(_this__u8e3s4, element, discriminator, deserializer.bn())).yp(deserializer);
|
|
3128
3128
|
}
|
|
3129
3129
|
function get_PRIMITIVE_TAG() {
|
|
3130
3130
|
return PRIMITIVE_TAG;
|
|
@@ -3146,11 +3146,11 @@
|
|
|
3146
3146
|
}
|
|
3147
3147
|
function WriteMode(name, ordinal, begin, end) {
|
|
3148
3148
|
Enum.call(this, name, ordinal);
|
|
3149
|
-
this.
|
|
3150
|
-
this.
|
|
3149
|
+
this.j18_1 = begin;
|
|
3150
|
+
this.k18_1 = end;
|
|
3151
3151
|
}
|
|
3152
3152
|
function switchMode(_this__u8e3s4, desc) {
|
|
3153
|
-
var tmp0_subject = desc.
|
|
3153
|
+
var tmp0_subject = desc.go();
|
|
3154
3154
|
var tmp;
|
|
3155
3155
|
if (tmp0_subject instanceof PolymorphicKind) {
|
|
3156
3156
|
tmp = WriteMode_POLY_OBJ_getInstance();
|
|
@@ -3160,8 +3160,8 @@
|
|
|
3160
3160
|
} else {
|
|
3161
3161
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
3162
3162
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
3163
|
-
var keyDescriptor = carrierDescriptor(desc.
|
|
3164
|
-
var keyKind = keyDescriptor.
|
|
3163
|
+
var keyDescriptor = carrierDescriptor(desc.io(0), _this__u8e3s4.oq());
|
|
3164
|
+
var keyKind = keyDescriptor.go();
|
|
3165
3165
|
var tmp_0;
|
|
3166
3166
|
var tmp_1;
|
|
3167
3167
|
if (keyKind instanceof PrimitiveKind) {
|
|
@@ -3173,7 +3173,7 @@
|
|
|
3173
3173
|
// Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
|
|
3174
3174
|
tmp_0 = WriteMode_MAP_getInstance();
|
|
3175
3175
|
} else {
|
|
3176
|
-
if (_this__u8e3s4.
|
|
3176
|
+
if (_this__u8e3s4.x12_1.g14_1) {
|
|
3177
3177
|
// Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
|
|
3178
3178
|
tmp_0 = WriteMode_LIST_getInstance();
|
|
3179
3179
|
} else {
|
|
@@ -3190,12 +3190,12 @@
|
|
|
3190
3190
|
}
|
|
3191
3191
|
function carrierDescriptor(_this__u8e3s4, module_0) {
|
|
3192
3192
|
var tmp;
|
|
3193
|
-
if (equals(_this__u8e3s4.
|
|
3193
|
+
if (equals(_this__u8e3s4.go(), CONTEXTUAL_getInstance())) {
|
|
3194
3194
|
var tmp0_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4);
|
|
3195
3195
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : carrierDescriptor(tmp0_safe_receiver, module_0);
|
|
3196
3196
|
tmp = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
|
|
3197
|
-
} else if (_this__u8e3s4.
|
|
3198
|
-
tmp = carrierDescriptor(_this__u8e3s4.
|
|
3197
|
+
} else if (_this__u8e3s4.fo()) {
|
|
3198
|
+
tmp = carrierDescriptor(_this__u8e3s4.io(0), module_0);
|
|
3199
3199
|
} else {
|
|
3200
3200
|
tmp = _this__u8e3s4;
|
|
3201
3201
|
}
|
|
@@ -3222,59 +3222,59 @@
|
|
|
3222
3222
|
}
|
|
3223
3223
|
var STRING;
|
|
3224
3224
|
function appendEscape($this, lastPosition, current) {
|
|
3225
|
-
$this.
|
|
3225
|
+
$this.w1a(lastPosition, current);
|
|
3226
3226
|
return appendEsc($this, current + 1 | 0);
|
|
3227
3227
|
}
|
|
3228
3228
|
function decodedString($this, lastPosition, currentPosition) {
|
|
3229
|
-
$this.
|
|
3230
|
-
var result = $this.
|
|
3231
|
-
$this.
|
|
3229
|
+
$this.w1a(lastPosition, currentPosition);
|
|
3230
|
+
var result = $this.n13_1.toString();
|
|
3231
|
+
$this.n13_1.ud(0);
|
|
3232
3232
|
return result;
|
|
3233
3233
|
}
|
|
3234
3234
|
function takePeeked($this) {
|
|
3235
3235
|
// Inline function 'kotlin.also' call
|
|
3236
|
-
var tmp0_also = ensureNotNull($this.
|
|
3236
|
+
var tmp0_also = ensureNotNull($this.m13_1);
|
|
3237
3237
|
// Inline function 'kotlin.contracts.contract' call
|
|
3238
3238
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.takePeeked.<anonymous>' call
|
|
3239
|
-
$this.
|
|
3239
|
+
$this.m13_1 = null;
|
|
3240
3240
|
return tmp0_also;
|
|
3241
3241
|
}
|
|
3242
3242
|
function wasUnquotedString($this) {
|
|
3243
|
-
return !(charSequenceGet($this.
|
|
3243
|
+
return !(charSequenceGet($this.x1a(), $this.k13_1 - 1 | 0) === _Char___init__impl__6a9atx(34));
|
|
3244
3244
|
}
|
|
3245
3245
|
function appendEsc($this, startPosition) {
|
|
3246
3246
|
var currentPosition = startPosition;
|
|
3247
|
-
currentPosition = $this.
|
|
3247
|
+
currentPosition = $this.y1a(currentPosition);
|
|
3248
3248
|
if (currentPosition === -1) {
|
|
3249
|
-
$this.
|
|
3249
|
+
$this.s15('Expected escape sequence to continue, got EOF');
|
|
3250
3250
|
}
|
|
3251
|
-
var tmp = $this.
|
|
3251
|
+
var tmp = $this.x1a();
|
|
3252
3252
|
var tmp0 = currentPosition;
|
|
3253
3253
|
currentPosition = tmp0 + 1 | 0;
|
|
3254
3254
|
var currentChar = charSequenceGet(tmp, tmp0);
|
|
3255
3255
|
if (currentChar === _Char___init__impl__6a9atx(117)) {
|
|
3256
|
-
return appendHex($this, $this.
|
|
3256
|
+
return appendHex($this, $this.x1a(), currentPosition);
|
|
3257
3257
|
}
|
|
3258
3258
|
var tmp$ret$0;
|
|
3259
3259
|
// Inline function 'kotlin.code' call
|
|
3260
3260
|
tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
|
|
3261
3261
|
var c = escapeToChar(tmp$ret$0);
|
|
3262
3262
|
if (c === _Char___init__impl__6a9atx(0)) {
|
|
3263
|
-
$this.
|
|
3263
|
+
$this.s15("Invalid escaped char '" + new Char(currentChar) + "'");
|
|
3264
3264
|
}
|
|
3265
|
-
$this.
|
|
3265
|
+
$this.n13_1.z4(c);
|
|
3266
3266
|
return currentPosition;
|
|
3267
3267
|
}
|
|
3268
3268
|
function appendHex($this, source, startPos) {
|
|
3269
3269
|
if ((startPos + 4 | 0) >= charSequenceLength(source)) {
|
|
3270
|
-
$this.
|
|
3271
|
-
$this.
|
|
3272
|
-
if (($this.
|
|
3273
|
-
$this.
|
|
3270
|
+
$this.k13_1 = startPos;
|
|
3271
|
+
$this.z1a();
|
|
3272
|
+
if (($this.k13_1 + 4 | 0) >= charSequenceLength(source)) {
|
|
3273
|
+
$this.s15('Unexpected EOF during unicode escape');
|
|
3274
3274
|
}
|
|
3275
|
-
return appendHex($this, source, $this.
|
|
3275
|
+
return appendHex($this, source, $this.k13_1);
|
|
3276
3276
|
}
|
|
3277
|
-
$this.
|
|
3277
|
+
$this.n13_1.z4(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));
|
|
3278
3278
|
return startPos + 4 | 0;
|
|
3279
3279
|
}
|
|
3280
3280
|
function fromHexChar($this, source, currentPosition) {
|
|
@@ -3296,17 +3296,17 @@
|
|
|
3296
3296
|
// Inline function 'kotlin.code' call
|
|
3297
3297
|
tmp = (tmp_2 - 65 | 0) + 10 | 0;
|
|
3298
3298
|
} else {
|
|
3299
|
-
$this.
|
|
3299
|
+
$this.s15("Invalid toHexChar char '" + new Char(character) + "' in unicode escape");
|
|
3300
3300
|
}
|
|
3301
3301
|
return tmp;
|
|
3302
3302
|
}
|
|
3303
3303
|
function consumeBoolean($this, start) {
|
|
3304
|
-
var current = $this.
|
|
3305
|
-
if (current >= charSequenceLength($this.
|
|
3306
|
-
$this.
|
|
3304
|
+
var current = $this.y1a(start);
|
|
3305
|
+
if (current >= charSequenceLength($this.x1a()) ? true : current === -1) {
|
|
3306
|
+
$this.s15('EOF');
|
|
3307
3307
|
}
|
|
3308
3308
|
// Inline function 'kotlin.code' call
|
|
3309
|
-
var tmp = $this.
|
|
3309
|
+
var tmp = $this.x1a();
|
|
3310
3310
|
var tmp0 = current;
|
|
3311
3311
|
current = tmp0 + 1 | 0;
|
|
3312
3312
|
var tmp0_get_code_gknlva = charSequenceGet(tmp, tmp0);
|
|
@@ -3322,14 +3322,14 @@
|
|
|
3322
3322
|
consumeBooleanLiteral($this, 'alse', current);
|
|
3323
3323
|
tmp_0 = false;
|
|
3324
3324
|
} else {
|
|
3325
|
-
$this.
|
|
3325
|
+
$this.s15("Expected valid boolean literal prefix, but had '" + $this.n16() + "'");
|
|
3326
3326
|
}
|
|
3327
3327
|
}
|
|
3328
3328
|
return tmp_0;
|
|
3329
3329
|
}
|
|
3330
3330
|
function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
3331
|
-
if ((charSequenceLength($this.
|
|
3332
|
-
$this.
|
|
3331
|
+
if ((charSequenceLength($this.x1a()) - current | 0) < literalSuffix.length) {
|
|
3332
|
+
$this.s15('Unexpected end of boolean literal');
|
|
3333
3333
|
}
|
|
3334
3334
|
var inductionVariable = 0;
|
|
3335
3335
|
var last = charSequenceLength(literalSuffix) - 1 | 0;
|
|
@@ -3338,47 +3338,47 @@
|
|
|
3338
3338
|
var i = inductionVariable;
|
|
3339
3339
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3340
3340
|
var expected = charSequenceGet(literalSuffix, i);
|
|
3341
|
-
var actual = charSequenceGet($this.
|
|
3341
|
+
var actual = charSequenceGet($this.x1a(), current + i | 0);
|
|
3342
3342
|
// Inline function 'kotlin.code' call
|
|
3343
3343
|
var tmp = Char__toInt_impl_vasixd(expected);
|
|
3344
3344
|
// Inline function 'kotlin.code' call
|
|
3345
3345
|
if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
|
|
3346
|
-
$this.
|
|
3346
|
+
$this.s15("Expected valid boolean literal prefix, but had '" + $this.n16() + "'");
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
3349
|
while (inductionVariable <= last);
|
|
3350
|
-
$this.
|
|
3350
|
+
$this.k13_1 = current + literalSuffix.length | 0;
|
|
3351
3351
|
}
|
|
3352
3352
|
function AbstractJsonLexer() {
|
|
3353
|
-
this.
|
|
3354
|
-
this.
|
|
3355
|
-
this.
|
|
3356
|
-
this.
|
|
3353
|
+
this.k13_1 = 0;
|
|
3354
|
+
this.l13_1 = new JsonPath();
|
|
3355
|
+
this.m13_1 = null;
|
|
3356
|
+
this.n13_1 = StringBuilder_init_$Create$();
|
|
3357
3357
|
}
|
|
3358
|
-
protoOf(AbstractJsonLexer).
|
|
3358
|
+
protoOf(AbstractJsonLexer).z1a = function () {
|
|
3359
3359
|
};
|
|
3360
|
-
protoOf(AbstractJsonLexer).
|
|
3360
|
+
protoOf(AbstractJsonLexer).a1b = function (c) {
|
|
3361
3361
|
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;
|
|
3362
3362
|
};
|
|
3363
|
-
protoOf(AbstractJsonLexer).
|
|
3364
|
-
var nextToken = this.
|
|
3363
|
+
protoOf(AbstractJsonLexer).o13 = function () {
|
|
3364
|
+
var nextToken = this.p16();
|
|
3365
3365
|
if (!(nextToken === 10)) {
|
|
3366
|
-
this.
|
|
3366
|
+
this.s15('Expected EOF after parsing, but had ' + new Char(charSequenceGet(this.x1a(), this.k13_1 - 1 | 0)) + ' instead');
|
|
3367
3367
|
}
|
|
3368
3368
|
};
|
|
3369
|
-
protoOf(AbstractJsonLexer).
|
|
3370
|
-
var token = this.
|
|
3369
|
+
protoOf(AbstractJsonLexer).j16 = function (expected) {
|
|
3370
|
+
var token = this.p16();
|
|
3371
3371
|
if (!(token === expected)) {
|
|
3372
|
-
this.
|
|
3372
|
+
this.b1b(expected);
|
|
3373
3373
|
}
|
|
3374
3374
|
return token;
|
|
3375
3375
|
};
|
|
3376
|
-
protoOf(AbstractJsonLexer).
|
|
3377
|
-
this.
|
|
3378
|
-
var source = this.
|
|
3379
|
-
var cpos = this.
|
|
3376
|
+
protoOf(AbstractJsonLexer).y17 = function (expected) {
|
|
3377
|
+
this.z1a();
|
|
3378
|
+
var source = this.x1a();
|
|
3379
|
+
var cpos = this.k13_1;
|
|
3380
3380
|
$l$loop_0: while (true) {
|
|
3381
|
-
cpos = this.
|
|
3381
|
+
cpos = this.y1a(cpos);
|
|
3382
3382
|
if (cpos === -1)
|
|
3383
3383
|
break $l$loop_0;
|
|
3384
3384
|
var tmp0 = cpos;
|
|
@@ -3386,31 +3386,31 @@
|
|
|
3386
3386
|
var c = charSequenceGet(source, tmp0);
|
|
3387
3387
|
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))
|
|
3388
3388
|
continue $l$loop_0;
|
|
3389
|
-
this.
|
|
3389
|
+
this.k13_1 = cpos;
|
|
3390
3390
|
if (c === expected)
|
|
3391
3391
|
return Unit_getInstance();
|
|
3392
|
-
this.
|
|
3392
|
+
this.c1b(expected);
|
|
3393
3393
|
}
|
|
3394
|
-
this.
|
|
3395
|
-
this.
|
|
3394
|
+
this.k13_1 = cpos;
|
|
3395
|
+
this.c1b(expected);
|
|
3396
3396
|
};
|
|
3397
|
-
protoOf(AbstractJsonLexer).
|
|
3398
|
-
this.
|
|
3399
|
-
if ((this.
|
|
3400
|
-
this.
|
|
3397
|
+
protoOf(AbstractJsonLexer).c1b = function (expected) {
|
|
3398
|
+
this.k13_1 = this.k13_1 - 1 | 0;
|
|
3399
|
+
if ((this.k13_1 >= 0 ? expected === _Char___init__impl__6a9atx(34) : false) ? this.n16() === 'null' : false) {
|
|
3400
|
+
this.d1b("Expected string literal but 'null' literal was found", this.k13_1 - 4 | 0, "Use 'coerceInputValues = true' in 'Json {}` builder to coerce nulls to default values.");
|
|
3401
3401
|
}
|
|
3402
|
-
this.
|
|
3402
|
+
this.b1b(charToTokenClass(expected));
|
|
3403
3403
|
};
|
|
3404
|
-
protoOf(AbstractJsonLexer).
|
|
3404
|
+
protoOf(AbstractJsonLexer).b1b = function (expectedToken) {
|
|
3405
3405
|
var expected = expectedToken === 1 ? "quotation mark '\"'" : expectedToken === 4 ? "comma ','" : expectedToken === 5 ? "colon ':'" : expectedToken === 6 ? "start of the object '{'" : expectedToken === 7 ? "end of the object '}'" : expectedToken === 8 ? "start of the array '['" : expectedToken === 9 ? "end of the array ']'" : 'valid token';
|
|
3406
|
-
var s = (this.
|
|
3407
|
-
this.
|
|
3406
|
+
var s = (this.k13_1 === charSequenceLength(this.x1a()) ? true : this.k13_1 <= 0) ? 'EOF' : toString_0(charSequenceGet(this.x1a(), this.k13_1 - 1 | 0));
|
|
3407
|
+
this.s15('Expected ' + expected + ", but had '" + s + "' instead", this.k13_1 - 1 | 0);
|
|
3408
3408
|
};
|
|
3409
|
-
protoOf(AbstractJsonLexer).
|
|
3410
|
-
var source = this.
|
|
3411
|
-
var cpos = this.
|
|
3409
|
+
protoOf(AbstractJsonLexer).k16 = function () {
|
|
3410
|
+
var source = this.x1a();
|
|
3411
|
+
var cpos = this.k13_1;
|
|
3412
3412
|
$l$loop_0: while (true) {
|
|
3413
|
-
cpos = this.
|
|
3413
|
+
cpos = this.y1a(cpos);
|
|
3414
3414
|
if (cpos === -1)
|
|
3415
3415
|
break $l$loop_0;
|
|
3416
3416
|
var ch = charSequenceGet(source, cpos);
|
|
@@ -3418,16 +3418,16 @@
|
|
|
3418
3418
|
cpos = cpos + 1 | 0;
|
|
3419
3419
|
continue $l$loop_0;
|
|
3420
3420
|
}
|
|
3421
|
-
this.
|
|
3421
|
+
this.k13_1 = cpos;
|
|
3422
3422
|
return charToTokenClass(ch);
|
|
3423
3423
|
}
|
|
3424
|
-
this.
|
|
3424
|
+
this.k13_1 = cpos;
|
|
3425
3425
|
return 10;
|
|
3426
3426
|
};
|
|
3427
|
-
protoOf(AbstractJsonLexer).
|
|
3428
|
-
var current = this.
|
|
3429
|
-
current = this.
|
|
3430
|
-
var len = charSequenceLength(this.
|
|
3427
|
+
protoOf(AbstractJsonLexer).a18 = function (doConsume) {
|
|
3428
|
+
var current = this.e1b();
|
|
3429
|
+
current = this.y1a(current);
|
|
3430
|
+
var len = charSequenceLength(this.x1a()) - current | 0;
|
|
3431
3431
|
if (len < 4 ? true : current === -1)
|
|
3432
3432
|
return false;
|
|
3433
3433
|
var inductionVariable = 0;
|
|
@@ -3435,63 +3435,63 @@
|
|
|
3435
3435
|
do {
|
|
3436
3436
|
var i = inductionVariable;
|
|
3437
3437
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3438
|
-
if (!(charSequenceGet('null', i) === charSequenceGet(this.
|
|
3438
|
+
if (!(charSequenceGet('null', i) === charSequenceGet(this.x1a(), current + i | 0)))
|
|
3439
3439
|
return false;
|
|
3440
3440
|
}
|
|
3441
3441
|
while (inductionVariable <= 3);
|
|
3442
|
-
if (len > 4 ? charToTokenClass(charSequenceGet(this.
|
|
3442
|
+
if (len > 4 ? charToTokenClass(charSequenceGet(this.x1a(), current + 4 | 0)) === 0 : false)
|
|
3443
3443
|
return false;
|
|
3444
3444
|
if (doConsume) {
|
|
3445
|
-
this.
|
|
3445
|
+
this.k13_1 = current + 4 | 0;
|
|
3446
3446
|
}
|
|
3447
3447
|
return true;
|
|
3448
3448
|
};
|
|
3449
|
-
protoOf(AbstractJsonLexer).
|
|
3449
|
+
protoOf(AbstractJsonLexer).l18 = function (doConsume, $super) {
|
|
3450
3450
|
doConsume = doConsume === VOID ? true : doConsume;
|
|
3451
|
-
return $super === VOID ? this.
|
|
3451
|
+
return $super === VOID ? this.a18(doConsume) : $super.a18.call(this, doConsume);
|
|
3452
3452
|
};
|
|
3453
|
-
protoOf(AbstractJsonLexer).
|
|
3454
|
-
var current = this.
|
|
3453
|
+
protoOf(AbstractJsonLexer).e1b = function () {
|
|
3454
|
+
var current = this.k13_1;
|
|
3455
3455
|
$l$loop_0: while (true) {
|
|
3456
|
-
current = this.
|
|
3456
|
+
current = this.y1a(current);
|
|
3457
3457
|
if (current === -1)
|
|
3458
3458
|
break $l$loop_0;
|
|
3459
|
-
var c = charSequenceGet(this.
|
|
3459
|
+
var c = charSequenceGet(this.x1a(), current);
|
|
3460
3460
|
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)) {
|
|
3461
3461
|
current = current + 1 | 0;
|
|
3462
3462
|
} else {
|
|
3463
3463
|
break $l$loop_0;
|
|
3464
3464
|
}
|
|
3465
3465
|
}
|
|
3466
|
-
this.
|
|
3466
|
+
this.k13_1 = current;
|
|
3467
3467
|
return current;
|
|
3468
3468
|
};
|
|
3469
|
-
protoOf(AbstractJsonLexer).
|
|
3470
|
-
var token = this.
|
|
3469
|
+
protoOf(AbstractJsonLexer).b18 = function (isLenient) {
|
|
3470
|
+
var token = this.k16();
|
|
3471
3471
|
var tmp;
|
|
3472
3472
|
if (isLenient) {
|
|
3473
3473
|
if (!(token === 1) ? !(token === 0) : false)
|
|
3474
3474
|
return null;
|
|
3475
|
-
tmp = this.
|
|
3475
|
+
tmp = this.n16();
|
|
3476
3476
|
} else {
|
|
3477
3477
|
if (!(token === 1))
|
|
3478
3478
|
return null;
|
|
3479
|
-
tmp = this.
|
|
3479
|
+
tmp = this.m16();
|
|
3480
3480
|
}
|
|
3481
3481
|
var string = tmp;
|
|
3482
|
-
this.
|
|
3482
|
+
this.m13_1 = string;
|
|
3483
3483
|
return string;
|
|
3484
3484
|
};
|
|
3485
|
-
protoOf(AbstractJsonLexer).
|
|
3485
|
+
protoOf(AbstractJsonLexer).f1b = function (startPos, endPos) {
|
|
3486
3486
|
// Inline function 'kotlin.text.substring' call
|
|
3487
|
-
var tmp0_substring = this.
|
|
3487
|
+
var tmp0_substring = this.x1a();
|
|
3488
3488
|
return toString(charSequenceSubSequence(tmp0_substring, startPos, endPos));
|
|
3489
3489
|
};
|
|
3490
|
-
protoOf(AbstractJsonLexer).
|
|
3491
|
-
if (!(this.
|
|
3490
|
+
protoOf(AbstractJsonLexer).m16 = function () {
|
|
3491
|
+
if (!(this.m13_1 == null)) {
|
|
3492
3492
|
return takePeeked(this);
|
|
3493
3493
|
}
|
|
3494
|
-
return this.
|
|
3494
|
+
return this.e18();
|
|
3495
3495
|
};
|
|
3496
3496
|
protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, current) {
|
|
3497
3497
|
var currentPosition = current;
|
|
@@ -3501,19 +3501,19 @@
|
|
|
3501
3501
|
while (!(char === _Char___init__impl__6a9atx(34))) {
|
|
3502
3502
|
if (char === _Char___init__impl__6a9atx(92)) {
|
|
3503
3503
|
usedAppend = true;
|
|
3504
|
-
currentPosition = this.
|
|
3504
|
+
currentPosition = this.y1a(appendEscape(this, lastPosition, currentPosition));
|
|
3505
3505
|
if (currentPosition === -1) {
|
|
3506
|
-
this.
|
|
3506
|
+
this.s15('EOF', currentPosition);
|
|
3507
3507
|
}
|
|
3508
3508
|
lastPosition = currentPosition;
|
|
3509
3509
|
} else {
|
|
3510
3510
|
currentPosition = currentPosition + 1 | 0;
|
|
3511
3511
|
if (currentPosition >= charSequenceLength(source)) {
|
|
3512
3512
|
usedAppend = true;
|
|
3513
|
-
this.
|
|
3514
|
-
currentPosition = this.
|
|
3513
|
+
this.w1a(lastPosition, currentPosition);
|
|
3514
|
+
currentPosition = this.y1a(currentPosition);
|
|
3515
3515
|
if (currentPosition === -1) {
|
|
3516
|
-
this.
|
|
3516
|
+
this.s15('EOF', currentPosition);
|
|
3517
3517
|
}
|
|
3518
3518
|
lastPosition = currentPosition;
|
|
3519
3519
|
}
|
|
@@ -3522,45 +3522,45 @@
|
|
|
3522
3522
|
}
|
|
3523
3523
|
var tmp;
|
|
3524
3524
|
if (!usedAppend) {
|
|
3525
|
-
tmp = this.
|
|
3525
|
+
tmp = this.f1b(lastPosition, currentPosition);
|
|
3526
3526
|
} else {
|
|
3527
3527
|
tmp = decodedString(this, lastPosition, currentPosition);
|
|
3528
3528
|
}
|
|
3529
3529
|
var string = tmp;
|
|
3530
|
-
this.
|
|
3530
|
+
this.k13_1 = currentPosition + 1 | 0;
|
|
3531
3531
|
return string;
|
|
3532
3532
|
};
|
|
3533
|
-
protoOf(AbstractJsonLexer).
|
|
3534
|
-
var result = this.
|
|
3533
|
+
protoOf(AbstractJsonLexer).f18 = function () {
|
|
3534
|
+
var result = this.n16();
|
|
3535
3535
|
if (result === 'null' ? wasUnquotedString(this) : false) {
|
|
3536
|
-
this.
|
|
3536
|
+
this.s15("Unexpected 'null' value instead of string literal");
|
|
3537
3537
|
}
|
|
3538
3538
|
return result;
|
|
3539
3539
|
};
|
|
3540
|
-
protoOf(AbstractJsonLexer).
|
|
3541
|
-
if (!(this.
|
|
3540
|
+
protoOf(AbstractJsonLexer).n16 = function () {
|
|
3541
|
+
if (!(this.m13_1 == null)) {
|
|
3542
3542
|
return takePeeked(this);
|
|
3543
3543
|
}
|
|
3544
|
-
var current = this.
|
|
3545
|
-
if (current >= charSequenceLength(this.
|
|
3546
|
-
this.
|
|
3544
|
+
var current = this.e1b();
|
|
3545
|
+
if (current >= charSequenceLength(this.x1a()) ? true : current === -1) {
|
|
3546
|
+
this.s15('EOF', current);
|
|
3547
3547
|
}
|
|
3548
|
-
var token = charToTokenClass(charSequenceGet(this.
|
|
3548
|
+
var token = charToTokenClass(charSequenceGet(this.x1a(), current));
|
|
3549
3549
|
if (token === 1) {
|
|
3550
|
-
return this.
|
|
3550
|
+
return this.m16();
|
|
3551
3551
|
}
|
|
3552
3552
|
if (!(token === 0)) {
|
|
3553
|
-
this.
|
|
3553
|
+
this.s15('Expected beginning of the string, but got ' + new Char(charSequenceGet(this.x1a(), current)));
|
|
3554
3554
|
}
|
|
3555
3555
|
var usedAppend = false;
|
|
3556
|
-
while (charToTokenClass(charSequenceGet(this.
|
|
3556
|
+
while (charToTokenClass(charSequenceGet(this.x1a(), current)) === 0) {
|
|
3557
3557
|
current = current + 1 | 0;
|
|
3558
|
-
if (current >= charSequenceLength(this.
|
|
3558
|
+
if (current >= charSequenceLength(this.x1a())) {
|
|
3559
3559
|
usedAppend = true;
|
|
3560
|
-
this.
|
|
3561
|
-
var eof = this.
|
|
3560
|
+
this.w1a(this.k13_1, current);
|
|
3561
|
+
var eof = this.y1a(current);
|
|
3562
3562
|
if (eof === -1) {
|
|
3563
|
-
this.
|
|
3563
|
+
this.k13_1 = current;
|
|
3564
3564
|
return decodedString(this, 0, 0);
|
|
3565
3565
|
} else {
|
|
3566
3566
|
current = eof;
|
|
@@ -3569,32 +3569,32 @@
|
|
|
3569
3569
|
}
|
|
3570
3570
|
var tmp;
|
|
3571
3571
|
if (!usedAppend) {
|
|
3572
|
-
tmp = this.
|
|
3572
|
+
tmp = this.f1b(this.k13_1, current);
|
|
3573
3573
|
} else {
|
|
3574
|
-
tmp = decodedString(this, this.
|
|
3574
|
+
tmp = decodedString(this, this.k13_1, current);
|
|
3575
3575
|
}
|
|
3576
3576
|
var result = tmp;
|
|
3577
|
-
this.
|
|
3577
|
+
this.k13_1 = current;
|
|
3578
3578
|
return result;
|
|
3579
3579
|
};
|
|
3580
|
-
protoOf(AbstractJsonLexer).
|
|
3581
|
-
this.
|
|
3580
|
+
protoOf(AbstractJsonLexer).w1a = function (fromIndex, toIndex) {
|
|
3581
|
+
this.n13_1.td(this.x1a(), fromIndex, toIndex);
|
|
3582
3582
|
};
|
|
3583
|
-
protoOf(AbstractJsonLexer).
|
|
3583
|
+
protoOf(AbstractJsonLexer).d18 = function (allowLenientStrings) {
|
|
3584
3584
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
3585
3585
|
var tokenStack = ArrayList_init_$Create$();
|
|
3586
|
-
var lastToken = this.
|
|
3586
|
+
var lastToken = this.k16();
|
|
3587
3587
|
if (!(lastToken === 8) ? !(lastToken === 6) : false) {
|
|
3588
|
-
this.
|
|
3588
|
+
this.n16();
|
|
3589
3589
|
return Unit_getInstance();
|
|
3590
3590
|
}
|
|
3591
3591
|
$l$loop: while (true) {
|
|
3592
|
-
lastToken = this.
|
|
3592
|
+
lastToken = this.k16();
|
|
3593
3593
|
if (lastToken === 1) {
|
|
3594
3594
|
if (allowLenientStrings) {
|
|
3595
|
-
this.
|
|
3595
|
+
this.n16();
|
|
3596
3596
|
} else {
|
|
3597
|
-
this.
|
|
3597
|
+
this.e18();
|
|
3598
3598
|
}
|
|
3599
3599
|
continue $l$loop;
|
|
3600
3600
|
}
|
|
@@ -3603,29 +3603,29 @@
|
|
|
3603
3603
|
tokenStack.a(lastToken);
|
|
3604
3604
|
} else if (tmp0_subject === 9) {
|
|
3605
3605
|
if (!(last(tokenStack) === 8))
|
|
3606
|
-
throw JsonDecodingException_0(this.
|
|
3606
|
+
throw JsonDecodingException_0(this.k13_1, 'found ] instead of } at path: ' + this.l13_1, this.x1a());
|
|
3607
3607
|
removeLast(tokenStack);
|
|
3608
3608
|
} else if (tmp0_subject === 7) {
|
|
3609
3609
|
if (!(last(tokenStack) === 6))
|
|
3610
|
-
throw JsonDecodingException_0(this.
|
|
3610
|
+
throw JsonDecodingException_0(this.k13_1, 'found } instead of ] at path: ' + this.l13_1, this.x1a());
|
|
3611
3611
|
removeLast(tokenStack);
|
|
3612
3612
|
} else if (tmp0_subject === 10) {
|
|
3613
|
-
this.
|
|
3613
|
+
this.s15('Unexpected end of input due to malformed JSON during ignoring unknown keys');
|
|
3614
3614
|
}
|
|
3615
|
-
this.
|
|
3615
|
+
this.p16();
|
|
3616
3616
|
if (tokenStack.f() === 0)
|
|
3617
3617
|
return Unit_getInstance();
|
|
3618
3618
|
}
|
|
3619
3619
|
};
|
|
3620
3620
|
protoOf(AbstractJsonLexer).toString = function () {
|
|
3621
|
-
return "JsonReader(source='" + this.
|
|
3621
|
+
return "JsonReader(source='" + this.x1a() + "', currentPosition=" + this.k13_1 + ')';
|
|
3622
3622
|
};
|
|
3623
|
-
protoOf(AbstractJsonLexer).
|
|
3624
|
-
var processed = this.
|
|
3623
|
+
protoOf(AbstractJsonLexer).c18 = function (key) {
|
|
3624
|
+
var processed = this.f1b(0, this.k13_1);
|
|
3625
3625
|
var lastIndexOf_0 = lastIndexOf(processed, key);
|
|
3626
|
-
this.
|
|
3626
|
+
this.d1b("Encountered an unknown key '" + key + "'", lastIndexOf_0, "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.");
|
|
3627
3627
|
};
|
|
3628
|
-
protoOf(AbstractJsonLexer).
|
|
3628
|
+
protoOf(AbstractJsonLexer).d1b = function (message, position, hint) {
|
|
3629
3629
|
var tmp;
|
|
3630
3630
|
// Inline function 'kotlin.text.isEmpty' call
|
|
3631
3631
|
if (charSequenceLength(hint) === 0) {
|
|
@@ -3634,24 +3634,24 @@
|
|
|
3634
3634
|
tmp = '\n' + hint;
|
|
3635
3635
|
}
|
|
3636
3636
|
var hintMessage = tmp;
|
|
3637
|
-
throw JsonDecodingException_0(position, message + ' at path: ' + this.
|
|
3637
|
+
throw JsonDecodingException_0(position, message + ' at path: ' + this.l13_1.f16() + hintMessage, this.x1a());
|
|
3638
3638
|
};
|
|
3639
|
-
protoOf(AbstractJsonLexer).
|
|
3640
|
-
position = position === VOID ? this.
|
|
3639
|
+
protoOf(AbstractJsonLexer).s15 = function (message, position, hint, $super) {
|
|
3640
|
+
position = position === VOID ? this.k13_1 : position;
|
|
3641
3641
|
hint = hint === VOID ? '' : hint;
|
|
3642
|
-
return $super === VOID ? this.
|
|
3642
|
+
return $super === VOID ? this.d1b(message, position, hint) : $super.d1b.call(this, message, position, hint);
|
|
3643
3643
|
};
|
|
3644
|
-
protoOf(AbstractJsonLexer).
|
|
3645
|
-
var current = this.
|
|
3646
|
-
current = this.
|
|
3647
|
-
if (current >= charSequenceLength(this.
|
|
3648
|
-
this.
|
|
3644
|
+
protoOf(AbstractJsonLexer).o18 = function () {
|
|
3645
|
+
var current = this.e1b();
|
|
3646
|
+
current = this.y1a(current);
|
|
3647
|
+
if (current >= charSequenceLength(this.x1a()) ? true : current === -1) {
|
|
3648
|
+
this.s15('EOF');
|
|
3649
3649
|
}
|
|
3650
3650
|
var tmp;
|
|
3651
|
-
if (charSequenceGet(this.
|
|
3651
|
+
if (charSequenceGet(this.x1a(), current) === _Char___init__impl__6a9atx(34)) {
|
|
3652
3652
|
current = current + 1 | 0;
|
|
3653
|
-
if (current === charSequenceLength(this.
|
|
3654
|
-
this.
|
|
3653
|
+
if (current === charSequenceLength(this.x1a())) {
|
|
3654
|
+
this.s15('EOF');
|
|
3655
3655
|
}
|
|
3656
3656
|
tmp = true;
|
|
3657
3657
|
} else {
|
|
@@ -3663,10 +3663,10 @@
|
|
|
3663
3663
|
var start = current;
|
|
3664
3664
|
var hasChars = true;
|
|
3665
3665
|
$l$loop_0: while (hasChars) {
|
|
3666
|
-
var ch = charSequenceGet(this.
|
|
3666
|
+
var ch = charSequenceGet(this.x1a(), current);
|
|
3667
3667
|
if (ch === _Char___init__impl__6a9atx(45)) {
|
|
3668
3668
|
if (!(current === start)) {
|
|
3669
|
-
this.
|
|
3669
|
+
this.s15("Unexpected symbol '-' in numeric literal");
|
|
3670
3670
|
}
|
|
3671
3671
|
isNegative = true;
|
|
3672
3672
|
current = current + 1 | 0;
|
|
@@ -3676,31 +3676,31 @@
|
|
|
3676
3676
|
if (!(token === 0))
|
|
3677
3677
|
break $l$loop_0;
|
|
3678
3678
|
current = current + 1 | 0;
|
|
3679
|
-
hasChars = !(current === charSequenceLength(this.
|
|
3679
|
+
hasChars = !(current === charSequenceLength(this.x1a()));
|
|
3680
3680
|
var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
|
|
3681
3681
|
if (!(0 <= digit ? digit <= 9 : false)) {
|
|
3682
|
-
this.
|
|
3682
|
+
this.s15("Unexpected symbol '" + new Char(ch) + "' in numeric literal");
|
|
3683
3683
|
}
|
|
3684
3684
|
// Inline function 'kotlin.Long.minus' call
|
|
3685
3685
|
// Inline function 'kotlin.Long.times' call
|
|
3686
3686
|
accumulator = accumulator.c5(new Long(10, 0)).e5(toLong_0(digit));
|
|
3687
3687
|
if (accumulator.e1(new Long(0, 0)) > 0) {
|
|
3688
|
-
this.
|
|
3688
|
+
this.s15('Numeric value overflow');
|
|
3689
3689
|
}
|
|
3690
3690
|
}
|
|
3691
3691
|
if (start === current ? true : isNegative ? start === (current - 1 | 0) : false) {
|
|
3692
|
-
this.
|
|
3692
|
+
this.s15('Expected numeric literal');
|
|
3693
3693
|
}
|
|
3694
3694
|
if (hasQuotation) {
|
|
3695
3695
|
if (!hasChars) {
|
|
3696
|
-
this.
|
|
3696
|
+
this.s15('EOF');
|
|
3697
3697
|
}
|
|
3698
|
-
if (!(charSequenceGet(this.
|
|
3699
|
-
this.
|
|
3698
|
+
if (!(charSequenceGet(this.x1a(), current) === _Char___init__impl__6a9atx(34))) {
|
|
3699
|
+
this.s15('Expected closing quotation mark');
|
|
3700
3700
|
}
|
|
3701
3701
|
current = current + 1 | 0;
|
|
3702
3702
|
}
|
|
3703
|
-
this.
|
|
3703
|
+
this.k13_1 = current;
|
|
3704
3704
|
var tmp_0;
|
|
3705
3705
|
if (isNegative) {
|
|
3706
3706
|
tmp_0 = accumulator;
|
|
@@ -3710,21 +3710,21 @@
|
|
|
3710
3710
|
if (!tmp_1.equals(new Long(0, -2147483648))) {
|
|
3711
3711
|
tmp_0 = accumulator.a5();
|
|
3712
3712
|
} else {
|
|
3713
|
-
this.
|
|
3713
|
+
this.s15('Numeric value overflow');
|
|
3714
3714
|
}
|
|
3715
3715
|
}
|
|
3716
3716
|
return tmp_0;
|
|
3717
3717
|
};
|
|
3718
|
-
protoOf(AbstractJsonLexer).l18 = function () {
|
|
3719
|
-
return consumeBoolean(this, this.d1b());
|
|
3720
|
-
};
|
|
3721
3718
|
protoOf(AbstractJsonLexer).m18 = function () {
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3719
|
+
return consumeBoolean(this, this.e1b());
|
|
3720
|
+
};
|
|
3721
|
+
protoOf(AbstractJsonLexer).n18 = function () {
|
|
3722
|
+
var current = this.e1b();
|
|
3723
|
+
if (current === charSequenceLength(this.x1a())) {
|
|
3724
|
+
this.s15('EOF');
|
|
3725
3725
|
}
|
|
3726
3726
|
var tmp;
|
|
3727
|
-
if (charSequenceGet(this.
|
|
3727
|
+
if (charSequenceGet(this.x1a(), current) === _Char___init__impl__6a9atx(34)) {
|
|
3728
3728
|
current = current + 1 | 0;
|
|
3729
3729
|
tmp = true;
|
|
3730
3730
|
} else {
|
|
@@ -3733,13 +3733,13 @@
|
|
|
3733
3733
|
var hasQuotation = tmp;
|
|
3734
3734
|
var result = consumeBoolean(this, current);
|
|
3735
3735
|
if (hasQuotation) {
|
|
3736
|
-
if (this.
|
|
3737
|
-
this.
|
|
3736
|
+
if (this.k13_1 === charSequenceLength(this.x1a())) {
|
|
3737
|
+
this.s15('EOF');
|
|
3738
3738
|
}
|
|
3739
|
-
if (!(charSequenceGet(this.
|
|
3740
|
-
this.
|
|
3739
|
+
if (!(charSequenceGet(this.x1a(), this.k13_1) === _Char___init__impl__6a9atx(34))) {
|
|
3740
|
+
this.s15('Expected closing quotation mark');
|
|
3741
3741
|
}
|
|
3742
|
-
this.
|
|
3742
|
+
this.k13_1 = this.k13_1 + 1 | 0;
|
|
3743
3743
|
}
|
|
3744
3744
|
return result;
|
|
3745
3745
|
};
|
|
@@ -3747,7 +3747,7 @@
|
|
|
3747
3747
|
var tmp;
|
|
3748
3748
|
// Inline function 'kotlin.code' call
|
|
3749
3749
|
if (Char__toInt_impl_vasixd(c) < 126) {
|
|
3750
|
-
var tmp_0 = CharMappings_getInstance().
|
|
3750
|
+
var tmp_0 = CharMappings_getInstance().h1b_1;
|
|
3751
3751
|
// Inline function 'kotlin.code' call
|
|
3752
3752
|
tmp = tmp_0[Char__toInt_impl_vasixd(c)];
|
|
3753
3753
|
} else {
|
|
@@ -3828,7 +3828,7 @@
|
|
|
3828
3828
|
}
|
|
3829
3829
|
var TC_OTHER;
|
|
3830
3830
|
function escapeToChar(c) {
|
|
3831
|
-
return c < 117 ? CharMappings_getInstance().
|
|
3831
|
+
return c < 117 ? CharMappings_getInstance().g1b_1[c] : _Char___init__impl__6a9atx(0);
|
|
3832
3832
|
}
|
|
3833
3833
|
function get_ignoreUnknownKeysHint() {
|
|
3834
3834
|
return ignoreUnknownKeysHint;
|
|
@@ -3879,7 +3879,7 @@
|
|
|
3879
3879
|
var tmp$ret$0;
|
|
3880
3880
|
// Inline function 'kotlin.code' call
|
|
3881
3881
|
tmp$ret$0 = Char__toInt_impl_vasixd(esc);
|
|
3882
|
-
$this.
|
|
3882
|
+
$this.g1b_1[tmp$ret$0] = numberToChar(c);
|
|
3883
3883
|
}
|
|
3884
3884
|
}
|
|
3885
3885
|
function initC2ESC_0($this, c, esc) {
|
|
@@ -3889,7 +3889,7 @@
|
|
|
3889
3889
|
return initC2ESC($this, tmp$ret$0, esc);
|
|
3890
3890
|
}
|
|
3891
3891
|
function initC2TC($this, c, cl) {
|
|
3892
|
-
$this.
|
|
3892
|
+
$this.h1b_1[c] = cl;
|
|
3893
3893
|
}
|
|
3894
3894
|
function initC2TC_0($this, c, cl) {
|
|
3895
3895
|
var tmp$ret$0;
|
|
@@ -3899,8 +3899,8 @@
|
|
|
3899
3899
|
}
|
|
3900
3900
|
function CharMappings() {
|
|
3901
3901
|
CharMappings_instance = this;
|
|
3902
|
-
this.
|
|
3903
|
-
this.
|
|
3902
|
+
this.g1b_1 = charArray(117);
|
|
3903
|
+
this.h1b_1 = new Int8Array(126);
|
|
3904
3904
|
initEscape(this);
|
|
3905
3905
|
initCharToToken(this);
|
|
3906
3906
|
}
|
|
@@ -3920,19 +3920,19 @@
|
|
|
3920
3920
|
var allowStructuredMapKeysHint;
|
|
3921
3921
|
function StringJsonLexer(source) {
|
|
3922
3922
|
AbstractJsonLexer.call(this);
|
|
3923
|
-
this.
|
|
3923
|
+
this.m1b_1 = source;
|
|
3924
3924
|
}
|
|
3925
|
-
protoOf(StringJsonLexer).
|
|
3926
|
-
return this.
|
|
3925
|
+
protoOf(StringJsonLexer).x1a = function () {
|
|
3926
|
+
return this.m1b_1;
|
|
3927
3927
|
};
|
|
3928
|
-
protoOf(StringJsonLexer).
|
|
3929
|
-
return position < this.
|
|
3928
|
+
protoOf(StringJsonLexer).y1a = function (position) {
|
|
3929
|
+
return position < this.m1b_1.length ? position : -1;
|
|
3930
3930
|
};
|
|
3931
|
-
protoOf(StringJsonLexer).
|
|
3932
|
-
var source = this.
|
|
3933
|
-
$l$loop: while (!(this.
|
|
3934
|
-
var tmp1 = this.
|
|
3935
|
-
this.
|
|
3931
|
+
protoOf(StringJsonLexer).p16 = function () {
|
|
3932
|
+
var source = this.m1b_1;
|
|
3933
|
+
$l$loop: while (!(this.k13_1 === -1) ? this.k13_1 < source.length : false) {
|
|
3934
|
+
var tmp1 = this.k13_1;
|
|
3935
|
+
this.k13_1 = tmp1 + 1 | 0;
|
|
3936
3936
|
var ch = charSequenceGet(source, tmp1);
|
|
3937
3937
|
var tc = charToTokenClass(ch);
|
|
3938
3938
|
var tmp;
|
|
@@ -3945,136 +3945,136 @@
|
|
|
3945
3945
|
}
|
|
3946
3946
|
return get_TC_EOF();
|
|
3947
3947
|
};
|
|
3948
|
-
protoOf(StringJsonLexer).
|
|
3949
|
-
var current = this.
|
|
3950
|
-
if (current === this.
|
|
3948
|
+
protoOf(StringJsonLexer).z17 = function () {
|
|
3949
|
+
var current = this.e1b();
|
|
3950
|
+
if (current === this.m1b_1.length ? true : current === -1)
|
|
3951
3951
|
return false;
|
|
3952
|
-
if (charSequenceGet(this.
|
|
3953
|
-
this.
|
|
3952
|
+
if (charSequenceGet(this.m1b_1, current) === _Char___init__impl__6a9atx(44)) {
|
|
3953
|
+
this.k13_1 = this.k13_1 + 1 | 0;
|
|
3954
3954
|
return true;
|
|
3955
3955
|
}
|
|
3956
3956
|
return false;
|
|
3957
3957
|
};
|
|
3958
|
-
protoOf(StringJsonLexer).
|
|
3959
|
-
var current = this.
|
|
3958
|
+
protoOf(StringJsonLexer).l16 = function () {
|
|
3959
|
+
var current = this.k13_1;
|
|
3960
3960
|
if (current === -1)
|
|
3961
3961
|
return false;
|
|
3962
|
-
$l$loop: while (current < this.
|
|
3963
|
-
var c = charSequenceGet(this.
|
|
3962
|
+
$l$loop: while (current < this.m1b_1.length) {
|
|
3963
|
+
var c = charSequenceGet(this.m1b_1, current);
|
|
3964
3964
|
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)) {
|
|
3965
3965
|
current = current + 1 | 0;
|
|
3966
3966
|
continue $l$loop;
|
|
3967
3967
|
}
|
|
3968
|
-
this.
|
|
3969
|
-
return this.
|
|
3968
|
+
this.k13_1 = current;
|
|
3969
|
+
return this.a1b(c);
|
|
3970
3970
|
}
|
|
3971
|
-
this.
|
|
3971
|
+
this.k13_1 = current;
|
|
3972
3972
|
return false;
|
|
3973
3973
|
};
|
|
3974
|
-
protoOf(StringJsonLexer).
|
|
3975
|
-
var current = this.
|
|
3974
|
+
protoOf(StringJsonLexer).e1b = function () {
|
|
3975
|
+
var current = this.k13_1;
|
|
3976
3976
|
if (current === -1)
|
|
3977
3977
|
return current;
|
|
3978
|
-
$l$loop: while (current < this.
|
|
3979
|
-
var c = charSequenceGet(this.
|
|
3978
|
+
$l$loop: while (current < this.m1b_1.length) {
|
|
3979
|
+
var c = charSequenceGet(this.m1b_1, current);
|
|
3980
3980
|
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)) {
|
|
3981
3981
|
current = current + 1 | 0;
|
|
3982
3982
|
} else {
|
|
3983
3983
|
break $l$loop;
|
|
3984
3984
|
}
|
|
3985
3985
|
}
|
|
3986
|
-
this.
|
|
3986
|
+
this.k13_1 = current;
|
|
3987
3987
|
return current;
|
|
3988
3988
|
};
|
|
3989
|
-
protoOf(StringJsonLexer).
|
|
3990
|
-
if (this.
|
|
3991
|
-
this.
|
|
3989
|
+
protoOf(StringJsonLexer).y17 = function (expected) {
|
|
3990
|
+
if (this.k13_1 === -1) {
|
|
3991
|
+
this.c1b(expected);
|
|
3992
3992
|
}
|
|
3993
|
-
var source = this.
|
|
3994
|
-
$l$loop: while (this.
|
|
3995
|
-
var tmp1 = this.
|
|
3996
|
-
this.
|
|
3993
|
+
var source = this.m1b_1;
|
|
3994
|
+
$l$loop: while (this.k13_1 < source.length) {
|
|
3995
|
+
var tmp1 = this.k13_1;
|
|
3996
|
+
this.k13_1 = tmp1 + 1 | 0;
|
|
3997
3997
|
var c = charSequenceGet(source, tmp1);
|
|
3998
3998
|
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))
|
|
3999
3999
|
continue $l$loop;
|
|
4000
4000
|
if (c === expected)
|
|
4001
4001
|
return Unit_getInstance();
|
|
4002
|
-
this.
|
|
4002
|
+
this.c1b(expected);
|
|
4003
4003
|
}
|
|
4004
|
-
this.
|
|
4004
|
+
this.c1b(expected);
|
|
4005
4005
|
};
|
|
4006
|
-
protoOf(StringJsonLexer).
|
|
4007
|
-
this.
|
|
4008
|
-
var current = this.
|
|
4009
|
-
var closingQuote = indexOf(this.
|
|
4006
|
+
protoOf(StringJsonLexer).e18 = function () {
|
|
4007
|
+
this.y17(get_STRING());
|
|
4008
|
+
var current = this.k13_1;
|
|
4009
|
+
var closingQuote = indexOf(this.m1b_1, _Char___init__impl__6a9atx(34), current);
|
|
4010
4010
|
if (closingQuote === -1) {
|
|
4011
|
-
this.
|
|
4011
|
+
this.b1b(get_TC_STRING());
|
|
4012
4012
|
}
|
|
4013
4013
|
var inductionVariable = current;
|
|
4014
4014
|
if (inductionVariable < closingQuote)
|
|
4015
4015
|
do {
|
|
4016
4016
|
var i = inductionVariable;
|
|
4017
4017
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4018
|
-
if (charSequenceGet(this.
|
|
4019
|
-
return this.consumeString2(this.
|
|
4018
|
+
if (charSequenceGet(this.m1b_1, i) === get_STRING_ESC()) {
|
|
4019
|
+
return this.consumeString2(this.m1b_1, this.k13_1, i);
|
|
4020
4020
|
}
|
|
4021
4021
|
}
|
|
4022
4022
|
while (inductionVariable < closingQuote);
|
|
4023
|
-
this.
|
|
4023
|
+
this.k13_1 = closingQuote + 1 | 0;
|
|
4024
4024
|
// Inline function 'kotlin.text.substring' call
|
|
4025
4025
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4026
|
-
return this.
|
|
4026
|
+
return this.m1b_1.substring(current, closingQuote);
|
|
4027
4027
|
};
|
|
4028
|
-
protoOf(StringJsonLexer).
|
|
4029
|
-
var positionSnapshot = this.
|
|
4028
|
+
protoOf(StringJsonLexer).g18 = function (keyToMatch, isLenient) {
|
|
4029
|
+
var positionSnapshot = this.k13_1;
|
|
4030
4030
|
try {
|
|
4031
|
-
if (!(this.
|
|
4031
|
+
if (!(this.p16() === get_TC_BEGIN_OBJ()))
|
|
4032
4032
|
return null;
|
|
4033
|
-
var firstKey = isLenient ? this.
|
|
4033
|
+
var firstKey = isLenient ? this.e18() : this.f18();
|
|
4034
4034
|
if (firstKey === keyToMatch) {
|
|
4035
|
-
if (!(this.
|
|
4035
|
+
if (!(this.p16() === get_TC_COLON()))
|
|
4036
4036
|
return null;
|
|
4037
|
-
var result = isLenient ? this.
|
|
4037
|
+
var result = isLenient ? this.m16() : this.f18();
|
|
4038
4038
|
return result;
|
|
4039
4039
|
}
|
|
4040
4040
|
return null;
|
|
4041
4041
|
}finally {
|
|
4042
|
-
this.
|
|
4042
|
+
this.k13_1 = positionSnapshot;
|
|
4043
4043
|
}
|
|
4044
4044
|
};
|
|
4045
4045
|
function get_schemaCache(_this__u8e3s4) {
|
|
4046
|
-
return _this__u8e3s4.
|
|
4046
|
+
return _this__u8e3s4.z12_1;
|
|
4047
4047
|
}
|
|
4048
4048
|
function createMapForCache(initialCapacity) {
|
|
4049
4049
|
return HashMap_init_$Create$(initialCapacity);
|
|
4050
4050
|
}
|
|
4051
4051
|
//region block: post-declaration
|
|
4052
|
-
protoOf(defer$1).
|
|
4053
|
-
protoOf(defer$1).
|
|
4054
|
-
protoOf(defer$1).
|
|
4055
|
-
protoOf(PolymorphismValidator).
|
|
4056
|
-
protoOf(StreamingJsonDecoder).
|
|
4057
|
-
protoOf(StreamingJsonDecoder).
|
|
4058
|
-
protoOf(StreamingJsonDecoder).
|
|
4059
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
4060
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
4061
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
4062
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
4063
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
4064
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
4065
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
4066
|
-
protoOf(JsonTreeDecoder).
|
|
4067
|
-
protoOf(JsonTreeDecoder).
|
|
4068
|
-
protoOf(JsonTreeDecoder).
|
|
4069
|
-
protoOf(JsonTreeListDecoder).
|
|
4070
|
-
protoOf(JsonTreeListDecoder).
|
|
4071
|
-
protoOf(JsonTreeListDecoder).
|
|
4072
|
-
protoOf(JsonPrimitiveDecoder).
|
|
4073
|
-
protoOf(JsonPrimitiveDecoder).
|
|
4074
|
-
protoOf(JsonPrimitiveDecoder).
|
|
4075
|
-
protoOf(JsonTreeMapDecoder).
|
|
4076
|
-
protoOf(JsonTreeMapDecoder).
|
|
4077
|
-
protoOf(JsonTreeMapDecoder).
|
|
4052
|
+
protoOf(defer$1).yn = get_isNullable;
|
|
4053
|
+
protoOf(defer$1).fo = get_isInline;
|
|
4054
|
+
protoOf(defer$1).do = get_annotations;
|
|
4055
|
+
protoOf(PolymorphismValidator).q12 = contextual;
|
|
4056
|
+
protoOf(StreamingJsonDecoder).mq = decodeSerializableElement$default;
|
|
4057
|
+
protoOf(StreamingJsonDecoder).pq = decodeSequentially;
|
|
4058
|
+
protoOf(StreamingJsonDecoder).rq = decodeCollectionSize;
|
|
4059
|
+
protoOf(JsonDecoderForUnsignedTypes).yp = decodeSerializableValue;
|
|
4060
|
+
protoOf(JsonDecoderForUnsignedTypes).mq = decodeSerializableElement$default;
|
|
4061
|
+
protoOf(JsonDecoderForUnsignedTypes).pq = decodeSequentially;
|
|
4062
|
+
protoOf(JsonDecoderForUnsignedTypes).rq = decodeCollectionSize;
|
|
4063
|
+
protoOf(AbstractJsonTreeDecoder).mq = decodeSerializableElement$default;
|
|
4064
|
+
protoOf(AbstractJsonTreeDecoder).pq = decodeSequentially;
|
|
4065
|
+
protoOf(AbstractJsonTreeDecoder).rq = decodeCollectionSize;
|
|
4066
|
+
protoOf(JsonTreeDecoder).mq = decodeSerializableElement$default;
|
|
4067
|
+
protoOf(JsonTreeDecoder).pq = decodeSequentially;
|
|
4068
|
+
protoOf(JsonTreeDecoder).rq = decodeCollectionSize;
|
|
4069
|
+
protoOf(JsonTreeListDecoder).mq = decodeSerializableElement$default;
|
|
4070
|
+
protoOf(JsonTreeListDecoder).pq = decodeSequentially;
|
|
4071
|
+
protoOf(JsonTreeListDecoder).rq = decodeCollectionSize;
|
|
4072
|
+
protoOf(JsonPrimitiveDecoder).mq = decodeSerializableElement$default;
|
|
4073
|
+
protoOf(JsonPrimitiveDecoder).pq = decodeSequentially;
|
|
4074
|
+
protoOf(JsonPrimitiveDecoder).rq = decodeCollectionSize;
|
|
4075
|
+
protoOf(JsonTreeMapDecoder).mq = decodeSerializableElement$default;
|
|
4076
|
+
protoOf(JsonTreeMapDecoder).pq = decodeSequentially;
|
|
4077
|
+
protoOf(JsonTreeMapDecoder).rq = decodeCollectionSize;
|
|
4078
4078
|
//endregion
|
|
4079
4079
|
//region block: init
|
|
4080
4080
|
PRIMITIVE_TAG = 'primitive';
|