git-digger 1.2.23 → 1.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/kotlin/clikt-clikt.js +1105 -1105
- package/kotlin/colormath-root-colormath.js +413 -413
- package/kotlin/kotlin-kotlin-stdlib.js +8 -8
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +211 -211
- package/kotlin/markdown.js +1852 -1852
- package/kotlin/mordant-mordant.js +1583 -1583
- package/kotlin/tools-digger-cli.js +138 -86
- package/kotlin/tools-digger-cli.js.map +1 -1
- package/kotlin/tools-digger-core.js +172 -146
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-digger-json.js +63 -63
- package/package.json +1 -1
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
var isFinite = kotlin_kotlin.$_$.yc;
|
|
54
54
|
var isFinite_0 = kotlin_kotlin.$_$.xc;
|
|
55
55
|
var toString_0 = kotlin_kotlin.$_$.v1;
|
|
56
|
-
var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
57
56
|
var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
57
|
+
var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
58
58
|
var Companion_getInstance = kotlin_kotlin.$_$.h3;
|
|
59
59
|
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
60
60
|
var Companion_getInstance_0 = kotlin_kotlin.$_$.i3;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
setMetadataFor(JsonEncodingException, 'JsonEncodingException', classMeta, JsonException);
|
|
91
91
|
setMetadataFor(Key, 'Key', classMeta, VOID, VOID, Key);
|
|
92
92
|
setMetadataFor(DescriptorSchemaCache, 'DescriptorSchemaCache', classMeta, VOID, VOID, DescriptorSchemaCache);
|
|
93
|
-
setMetadataFor(StreamingJsonEncoder, 'StreamingJsonEncoder', classMeta, AbstractEncoder, [
|
|
93
|
+
setMetadataFor(StreamingJsonEncoder, 'StreamingJsonEncoder', classMeta, AbstractEncoder, [Encoder, CompositeEncoder, AbstractEncoder]);
|
|
94
94
|
setMetadataFor(WriteMode, 'WriteMode', classMeta, Enum);
|
|
95
95
|
setMetadataFor(JsonToStringWriter, 'JsonToStringWriter', classMeta, VOID, VOID, JsonToStringWriter);
|
|
96
96
|
//endregion
|
|
@@ -106,20 +106,20 @@
|
|
|
106
106
|
}
|
|
107
107
|
function Json(configuration, serializersModule) {
|
|
108
108
|
Default_getInstance();
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
109
|
+
this.b19_1 = configuration;
|
|
110
|
+
this.c19_1 = serializersModule;
|
|
111
|
+
this.d19_1 = new DescriptorSchemaCache();
|
|
112
112
|
}
|
|
113
113
|
protoOf(Json).mk = function () {
|
|
114
|
-
return this.
|
|
114
|
+
return this.c19_1;
|
|
115
115
|
};
|
|
116
|
-
protoOf(Json).
|
|
116
|
+
protoOf(Json).e19 = function (serializer, value) {
|
|
117
117
|
var result = new JsonToStringWriter();
|
|
118
118
|
try {
|
|
119
119
|
encodeByWriter(this, result, serializer, value);
|
|
120
120
|
return result.toString();
|
|
121
121
|
}finally {
|
|
122
|
-
result.
|
|
122
|
+
result.g19();
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
function JsonClassDiscriminator() {
|
|
@@ -141,25 +141,25 @@
|
|
|
141
141
|
decodeEnumsCaseInsensitive = decodeEnumsCaseInsensitive === VOID ? false : decodeEnumsCaseInsensitive;
|
|
142
142
|
allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
|
|
143
143
|
classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
148
|
-
this.
|
|
149
|
-
this.
|
|
150
|
-
this.
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
153
|
-
this.
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
144
|
+
this.h19_1 = encodeDefaults;
|
|
145
|
+
this.i19_1 = ignoreUnknownKeys;
|
|
146
|
+
this.j19_1 = isLenient;
|
|
147
|
+
this.k19_1 = allowStructuredMapKeys;
|
|
148
|
+
this.l19_1 = prettyPrint;
|
|
149
|
+
this.m19_1 = explicitNulls;
|
|
150
|
+
this.n19_1 = prettyPrintIndent;
|
|
151
|
+
this.o19_1 = coerceInputValues;
|
|
152
|
+
this.p19_1 = useArrayPolymorphism;
|
|
153
|
+
this.q19_1 = classDiscriminator;
|
|
154
|
+
this.r19_1 = allowSpecialFloatingPointValues;
|
|
155
|
+
this.s19_1 = useAlternativeNames;
|
|
156
|
+
this.t19_1 = namingStrategy;
|
|
157
|
+
this.u19_1 = decodeEnumsCaseInsensitive;
|
|
158
|
+
this.v19_1 = allowTrailingComma;
|
|
159
|
+
this.w19_1 = classDiscriminatorMode;
|
|
160
160
|
}
|
|
161
161
|
protoOf(JsonConfiguration).toString = function () {
|
|
162
|
-
return 'JsonConfiguration(encodeDefaults=' + this.
|
|
162
|
+
return 'JsonConfiguration(encodeDefaults=' + this.h19_1 + ', ignoreUnknownKeys=' + this.i19_1 + ', isLenient=' + this.j19_1 + ', ' + ('allowStructuredMapKeys=' + this.k19_1 + ', prettyPrint=' + this.l19_1 + ', explicitNulls=' + this.m19_1 + ', ') + ("prettyPrintIndent='" + this.n19_1 + "', coerceInputValues=" + this.o19_1 + ', useArrayPolymorphism=' + this.p19_1 + ', ') + ("classDiscriminator='" + this.q19_1 + "', allowSpecialFloatingPointValues=" + this.r19_1 + ', ') + ('useAlternativeNames=' + this.s19_1 + ', namingStrategy=' + this.t19_1 + ', decodeEnumsCaseInsensitive=' + this.u19_1 + ', ') + ('allowTrailingComma=' + this.v19_1 + ', classDiscriminatorMode=' + this.w19_1 + ')');
|
|
163
163
|
};
|
|
164
164
|
var ClassDiscriminatorMode_NONE_instance;
|
|
165
165
|
var ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance;
|
|
@@ -197,133 +197,133 @@
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
function Composer(writer) {
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
200
|
+
this.x19_1 = writer;
|
|
201
|
+
this.y19_1 = true;
|
|
202
202
|
}
|
|
203
|
-
protoOf(Composer).x19 = function () {
|
|
204
|
-
this.w19_1 = true;
|
|
205
|
-
};
|
|
206
|
-
protoOf(Composer).y19 = function () {
|
|
207
|
-
return Unit_instance;
|
|
208
|
-
};
|
|
209
203
|
protoOf(Composer).z19 = function () {
|
|
210
|
-
this.
|
|
204
|
+
this.y19_1 = true;
|
|
211
205
|
};
|
|
212
206
|
protoOf(Composer).a1a = function () {
|
|
213
|
-
|
|
207
|
+
return Unit_instance;
|
|
214
208
|
};
|
|
215
209
|
protoOf(Composer).b1a = function () {
|
|
216
|
-
|
|
210
|
+
this.y19_1 = false;
|
|
211
|
+
};
|
|
212
|
+
protoOf(Composer).c1a = function () {
|
|
213
|
+
this.y19_1 = false;
|
|
217
214
|
};
|
|
218
|
-
protoOf(Composer).
|
|
219
|
-
return
|
|
215
|
+
protoOf(Composer).d1a = function () {
|
|
216
|
+
return Unit_instance;
|
|
220
217
|
};
|
|
221
218
|
protoOf(Composer).e1a = function (v) {
|
|
222
|
-
return this.
|
|
219
|
+
return this.x19_1.f1a(v);
|
|
223
220
|
};
|
|
224
221
|
protoOf(Composer).g1a = function (v) {
|
|
225
|
-
return this.
|
|
226
|
-
};
|
|
227
|
-
protoOf(Composer).h1a = function (v) {
|
|
228
|
-
return this.v19_1.f1a(v.toString());
|
|
222
|
+
return this.x19_1.h1a(v);
|
|
229
223
|
};
|
|
230
224
|
protoOf(Composer).i1a = function (v) {
|
|
231
|
-
return this.
|
|
225
|
+
return this.x19_1.h1a(v.toString());
|
|
232
226
|
};
|
|
233
|
-
protoOf(Composer).
|
|
234
|
-
return this.
|
|
227
|
+
protoOf(Composer).j1a = function (v) {
|
|
228
|
+
return this.x19_1.h1a(v.toString());
|
|
235
229
|
};
|
|
236
|
-
protoOf(Composer).
|
|
237
|
-
return this.
|
|
230
|
+
protoOf(Composer).k1a = function (v) {
|
|
231
|
+
return this.x19_1.l1a(toLong(v));
|
|
238
232
|
};
|
|
239
233
|
protoOf(Composer).m1a = function (v) {
|
|
240
|
-
return this.
|
|
234
|
+
return this.x19_1.l1a(toLong(v));
|
|
241
235
|
};
|
|
242
236
|
protoOf(Composer).n1a = function (v) {
|
|
243
|
-
return this.
|
|
237
|
+
return this.x19_1.l1a(toLong(v));
|
|
244
238
|
};
|
|
245
|
-
protoOf(Composer).o1a = function (
|
|
246
|
-
return this.
|
|
239
|
+
protoOf(Composer).o1a = function (v) {
|
|
240
|
+
return this.x19_1.l1a(v);
|
|
241
|
+
};
|
|
242
|
+
protoOf(Composer).p1a = function (v) {
|
|
243
|
+
return this.x19_1.h1a(v.toString());
|
|
244
|
+
};
|
|
245
|
+
protoOf(Composer).q1a = function (value) {
|
|
246
|
+
return this.x19_1.r1a(value);
|
|
247
247
|
};
|
|
248
248
|
function Composer_0(sb, json) {
|
|
249
|
-
return json.
|
|
249
|
+
return json.b19_1.l19_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
|
|
250
250
|
}
|
|
251
251
|
function ComposerForUnsignedNumbers(writer, forceQuoting) {
|
|
252
252
|
Composer.call(this, writer);
|
|
253
|
-
this.
|
|
253
|
+
this.u1a_1 = forceQuoting;
|
|
254
254
|
}
|
|
255
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
256
|
-
if (this.
|
|
255
|
+
protoOf(ComposerForUnsignedNumbers).n1a = function (v) {
|
|
256
|
+
if (this.u1a_1) {
|
|
257
257
|
// Inline function 'kotlin.toUInt' call
|
|
258
258
|
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
259
|
-
this.
|
|
259
|
+
this.q1a(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
260
260
|
} else {
|
|
261
261
|
// Inline function 'kotlin.toUInt' call
|
|
262
262
|
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
263
|
-
this.
|
|
263
|
+
this.g1a(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
267
|
-
if (this.
|
|
266
|
+
protoOf(ComposerForUnsignedNumbers).o1a = function (v) {
|
|
267
|
+
if (this.u1a_1) {
|
|
268
268
|
// Inline function 'kotlin.toULong' call
|
|
269
269
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
270
|
-
this.
|
|
270
|
+
this.q1a(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
271
271
|
} else {
|
|
272
272
|
// Inline function 'kotlin.toULong' call
|
|
273
273
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
274
|
-
this.
|
|
274
|
+
this.g1a(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
278
|
-
if (this.
|
|
277
|
+
protoOf(ComposerForUnsignedNumbers).k1a = function (v) {
|
|
278
|
+
if (this.u1a_1) {
|
|
279
279
|
// Inline function 'kotlin.toUByte' call
|
|
280
280
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
281
|
-
this.
|
|
281
|
+
this.q1a(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
282
282
|
} else {
|
|
283
283
|
// Inline function 'kotlin.toUByte' call
|
|
284
284
|
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
285
|
-
this.
|
|
285
|
+
this.g1a(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
289
|
-
if (this.
|
|
288
|
+
protoOf(ComposerForUnsignedNumbers).m1a = function (v) {
|
|
289
|
+
if (this.u1a_1) {
|
|
290
290
|
// Inline function 'kotlin.toUShort' call
|
|
291
291
|
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
292
|
-
this.
|
|
292
|
+
this.q1a(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
293
293
|
} else {
|
|
294
294
|
// Inline function 'kotlin.toUShort' call
|
|
295
295
|
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
296
|
-
this.
|
|
296
|
+
this.g1a(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
299
|
function ComposerForUnquotedLiterals(writer, forceQuoting) {
|
|
300
300
|
Composer.call(this, writer);
|
|
301
|
-
this.
|
|
301
|
+
this.x1a_1 = forceQuoting;
|
|
302
302
|
}
|
|
303
|
-
protoOf(ComposerForUnquotedLiterals).
|
|
304
|
-
if (this.
|
|
305
|
-
protoOf(Composer).
|
|
303
|
+
protoOf(ComposerForUnquotedLiterals).q1a = function (value) {
|
|
304
|
+
if (this.x1a_1) {
|
|
305
|
+
protoOf(Composer).q1a.call(this, value);
|
|
306
306
|
} else {
|
|
307
|
-
protoOf(Composer).
|
|
307
|
+
protoOf(Composer).g1a.call(this, value);
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
function ComposerWithPrettyPrint(writer, json) {
|
|
311
311
|
Composer.call(this, writer);
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
312
|
+
this.a1b_1 = json;
|
|
313
|
+
this.b1b_1 = 0;
|
|
314
314
|
}
|
|
315
|
-
protoOf(ComposerWithPrettyPrint).
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
315
|
+
protoOf(ComposerWithPrettyPrint).z19 = function () {
|
|
316
|
+
this.y19_1 = true;
|
|
317
|
+
this.b1b_1 = this.b1b_1 + 1 | 0;
|
|
318
318
|
};
|
|
319
|
-
protoOf(ComposerWithPrettyPrint).
|
|
320
|
-
this.
|
|
319
|
+
protoOf(ComposerWithPrettyPrint).a1a = function () {
|
|
320
|
+
this.b1b_1 = this.b1b_1 - 1 | 0;
|
|
321
321
|
};
|
|
322
|
-
protoOf(ComposerWithPrettyPrint).
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
322
|
+
protoOf(ComposerWithPrettyPrint).b1a = function () {
|
|
323
|
+
this.y19_1 = false;
|
|
324
|
+
this.g1a('\n');
|
|
325
325
|
// Inline function 'kotlin.repeat' call
|
|
326
|
-
var times = this.
|
|
326
|
+
var times = this.b1b_1;
|
|
327
327
|
// Inline function 'kotlin.contracts.contract' call
|
|
328
328
|
var inductionVariable = 0;
|
|
329
329
|
if (inductionVariable < times)
|
|
@@ -331,19 +331,19 @@
|
|
|
331
331
|
var index = inductionVariable;
|
|
332
332
|
inductionVariable = inductionVariable + 1 | 0;
|
|
333
333
|
// Inline function 'kotlinx.serialization.json.internal.ComposerWithPrettyPrint.nextItem.<anonymous>' call
|
|
334
|
-
this.
|
|
334
|
+
this.g1a(this.a1b_1.b19_1.n19_1);
|
|
335
335
|
}
|
|
336
336
|
while (inductionVariable < times);
|
|
337
337
|
};
|
|
338
|
-
protoOf(ComposerWithPrettyPrint).
|
|
339
|
-
if (this.
|
|
340
|
-
this.
|
|
338
|
+
protoOf(ComposerWithPrettyPrint).c1a = function () {
|
|
339
|
+
if (this.y19_1)
|
|
340
|
+
this.y19_1 = false;
|
|
341
341
|
else {
|
|
342
|
-
this.
|
|
342
|
+
this.b1a();
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
|
-
protoOf(ComposerWithPrettyPrint).
|
|
346
|
-
this.
|
|
345
|
+
protoOf(ComposerWithPrettyPrint).d1a = function () {
|
|
346
|
+
this.e1a(_Char___init__impl__6a9atx(32));
|
|
347
347
|
};
|
|
348
348
|
function JsonEncodingException(message) {
|
|
349
349
|
JsonException.call(this, message);
|
|
@@ -393,13 +393,13 @@
|
|
|
393
393
|
}
|
|
394
394
|
function namingStrategy(_this__u8e3s4, json) {
|
|
395
395
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
396
|
-
return equals(_this__u8e3s4.mi(), CLASS_getInstance()) ? json.
|
|
396
|
+
return equals(_this__u8e3s4.mi(), CLASS_getInstance()) ? json.b19_1.t19_1 : null;
|
|
397
397
|
}
|
|
398
398
|
function serializationNamesIndices(_this__u8e3s4, json, strategy) {
|
|
399
399
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
400
400
|
var tmp = get_schemaCache(json);
|
|
401
401
|
var tmp_0 = get_JsonSerializationNamesKey();
|
|
402
|
-
return tmp.
|
|
402
|
+
return tmp.d1b(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
403
403
|
}
|
|
404
404
|
function serializationNamesIndices$lambda($this_serializationNamesIndices, $strategy) {
|
|
405
405
|
return function () {
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
while (tmp < tmp_0) {
|
|
411
411
|
var tmp_2 = tmp;
|
|
412
412
|
var baseName = $this_serializationNamesIndices.oi(tmp_2);
|
|
413
|
-
tmp_1[tmp_2] = $strategy.
|
|
413
|
+
tmp_1[tmp_2] = $strategy.e1b($this_serializationNamesIndices, tmp_2, baseName);
|
|
414
414
|
tmp = tmp + 1 | 0;
|
|
415
415
|
}
|
|
416
416
|
return tmp_1;
|
|
@@ -437,9 +437,9 @@
|
|
|
437
437
|
while (tmp0_iterator.s()) {
|
|
438
438
|
var annotation = tmp0_iterator.u();
|
|
439
439
|
if (annotation instanceof JsonClassDiscriminator)
|
|
440
|
-
return annotation.
|
|
440
|
+
return annotation.n1b_1;
|
|
441
441
|
}
|
|
442
|
-
return json.
|
|
442
|
+
return json.b19_1.q19_1;
|
|
443
443
|
}
|
|
444
444
|
function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
|
|
445
445
|
if (!(serializer instanceof SealedClassSerializer))
|
|
@@ -475,12 +475,12 @@
|
|
|
475
475
|
function Key() {
|
|
476
476
|
}
|
|
477
477
|
function DescriptorSchemaCache() {
|
|
478
|
-
this.
|
|
478
|
+
this.c1b_1 = createMapForCache(16);
|
|
479
479
|
}
|
|
480
|
-
protoOf(DescriptorSchemaCache).
|
|
480
|
+
protoOf(DescriptorSchemaCache).o1b = function (descriptor, key, value) {
|
|
481
481
|
// Inline function 'kotlin.collections.set' call
|
|
482
482
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
483
|
-
var this_0 = this.
|
|
483
|
+
var this_0 = this.c1b_1;
|
|
484
484
|
var value_0 = this_0.s2(descriptor);
|
|
485
485
|
var tmp;
|
|
486
486
|
if (value_0 == null) {
|
|
@@ -496,8 +496,8 @@
|
|
|
496
496
|
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
497
497
|
this_1.j2(key_0, value_1);
|
|
498
498
|
};
|
|
499
|
-
protoOf(DescriptorSchemaCache).
|
|
500
|
-
var tmp0_safe_receiver = this.
|
|
499
|
+
protoOf(DescriptorSchemaCache).d1b = function (descriptor, key, defaultValue) {
|
|
500
|
+
var tmp0_safe_receiver = this.p1b(descriptor, key);
|
|
501
501
|
if (tmp0_safe_receiver == null)
|
|
502
502
|
null;
|
|
503
503
|
else {
|
|
@@ -506,11 +506,11 @@
|
|
|
506
506
|
return tmp0_safe_receiver;
|
|
507
507
|
}
|
|
508
508
|
var value = defaultValue();
|
|
509
|
-
this.
|
|
509
|
+
this.o1b(descriptor, key, value);
|
|
510
510
|
return value;
|
|
511
511
|
};
|
|
512
|
-
protoOf(DescriptorSchemaCache).
|
|
513
|
-
var tmp0_safe_receiver = this.
|
|
512
|
+
protoOf(DescriptorSchemaCache).p1b = function (descriptor, key) {
|
|
513
|
+
var tmp0_safe_receiver = this.c1b_1.s2(descriptor);
|
|
514
514
|
var tmp;
|
|
515
515
|
if (tmp0_safe_receiver == null) {
|
|
516
516
|
tmp = null;
|
|
@@ -533,52 +533,52 @@
|
|
|
533
533
|
return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
|
|
534
534
|
}
|
|
535
535
|
function encodeTypeInfo($this, descriptor) {
|
|
536
|
-
$this.
|
|
537
|
-
$this.wj(ensureNotNull($this.
|
|
538
|
-
$this.
|
|
539
|
-
$this.
|
|
536
|
+
$this.f1b_1.b1a();
|
|
537
|
+
$this.wj(ensureNotNull($this.m1b_1));
|
|
538
|
+
$this.f1b_1.e1a(get_COLON());
|
|
539
|
+
$this.f1b_1.d1a();
|
|
540
540
|
$this.wj(descriptor.ii());
|
|
541
541
|
}
|
|
542
542
|
function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
|
|
543
543
|
AbstractEncoder.call(this);
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
546
|
-
this.
|
|
547
|
-
this.
|
|
548
|
-
this.
|
|
549
|
-
this.
|
|
550
|
-
this.
|
|
551
|
-
this.
|
|
552
|
-
var i = this.
|
|
553
|
-
if (!(this.
|
|
554
|
-
if (!(this.
|
|
555
|
-
this.
|
|
544
|
+
this.f1b_1 = composer;
|
|
545
|
+
this.g1b_1 = json;
|
|
546
|
+
this.h1b_1 = mode;
|
|
547
|
+
this.i1b_1 = modeReuseCache;
|
|
548
|
+
this.j1b_1 = this.g1b_1.mk();
|
|
549
|
+
this.k1b_1 = this.g1b_1.b19_1;
|
|
550
|
+
this.l1b_1 = false;
|
|
551
|
+
this.m1b_1 = null;
|
|
552
|
+
var i = this.h1b_1.a9_1;
|
|
553
|
+
if (!(this.i1b_1 == null)) {
|
|
554
|
+
if (!(this.i1b_1[i] === null) ? true : !(this.i1b_1[i] === this)) {
|
|
555
|
+
this.i1b_1[i] = this;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
protoOf(StreamingJsonEncoder).
|
|
560
|
-
return this.
|
|
559
|
+
protoOf(StreamingJsonEncoder).q1b = function () {
|
|
560
|
+
return this.g1b_1;
|
|
561
561
|
};
|
|
562
562
|
protoOf(StreamingJsonEncoder).mk = function () {
|
|
563
|
-
return this.
|
|
563
|
+
return this.j1b_1;
|
|
564
564
|
};
|
|
565
565
|
protoOf(StreamingJsonEncoder).pk = function (descriptor, index) {
|
|
566
|
-
return this.
|
|
566
|
+
return this.k1b_1.h19_1;
|
|
567
567
|
};
|
|
568
568
|
protoOf(StreamingJsonEncoder).jk = function (serializer, value) {
|
|
569
569
|
$l$block: {
|
|
570
570
|
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
571
|
-
if (this.
|
|
571
|
+
if (this.q1b().b19_1.p19_1) {
|
|
572
572
|
serializer.kh(this, value);
|
|
573
573
|
break $l$block;
|
|
574
574
|
}
|
|
575
575
|
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
576
576
|
var tmp;
|
|
577
577
|
if (isPolymorphicSerializer) {
|
|
578
|
-
tmp = !this.
|
|
578
|
+
tmp = !this.q1b().b19_1.w19_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
579
579
|
} else {
|
|
580
580
|
var tmp_0;
|
|
581
|
-
switch (this.
|
|
581
|
+
switch (this.q1b().b19_1.w19_1.a9_1) {
|
|
582
582
|
case 0:
|
|
583
583
|
case 2:
|
|
584
584
|
tmp_0 = false;
|
|
@@ -600,7 +600,7 @@
|
|
|
600
600
|
tmp = tmp_0;
|
|
601
601
|
}
|
|
602
602
|
var needDiscriminator = tmp;
|
|
603
|
-
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.jh(), this.
|
|
603
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.jh(), this.q1b()) : null;
|
|
604
604
|
var tmp_1;
|
|
605
605
|
if (isPolymorphicSerializer) {
|
|
606
606
|
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
@@ -627,89 +627,89 @@
|
|
|
627
627
|
var actualSerializer = tmp_1;
|
|
628
628
|
if (!(baseClassDiscriminator == null)) {
|
|
629
629
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue.<anonymous>' call
|
|
630
|
-
this.
|
|
630
|
+
this.m1b_1 = baseClassDiscriminator;
|
|
631
631
|
}
|
|
632
632
|
actualSerializer.kh(this, value);
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
635
|
protoOf(StreamingJsonEncoder).jj = function (descriptor) {
|
|
636
|
-
var newMode = switchMode(this.
|
|
637
|
-
if (!(newMode.
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
636
|
+
var newMode = switchMode(this.g1b_1, descriptor);
|
|
637
|
+
if (!(newMode.t1b_1 === get_INVALID())) {
|
|
638
|
+
this.f1b_1.e1a(newMode.t1b_1);
|
|
639
|
+
this.f1b_1.z19();
|
|
640
640
|
}
|
|
641
|
-
if (!(this.
|
|
641
|
+
if (!(this.m1b_1 == null)) {
|
|
642
642
|
encodeTypeInfo(this, descriptor);
|
|
643
|
-
this.
|
|
643
|
+
this.m1b_1 = null;
|
|
644
644
|
}
|
|
645
|
-
if (this.
|
|
645
|
+
if (this.h1b_1.equals(newMode)) {
|
|
646
646
|
return this;
|
|
647
647
|
}
|
|
648
|
-
var tmp0_safe_receiver = this.
|
|
648
|
+
var tmp0_safe_receiver = this.i1b_1;
|
|
649
649
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver[newMode.a9_1];
|
|
650
|
-
return tmp1_elvis_lhs == null ? new StreamingJsonEncoder(this.
|
|
650
|
+
return tmp1_elvis_lhs == null ? new StreamingJsonEncoder(this.f1b_1, this.g1b_1, newMode, this.i1b_1) : tmp1_elvis_lhs;
|
|
651
651
|
};
|
|
652
652
|
protoOf(StreamingJsonEncoder).kj = function (descriptor) {
|
|
653
|
-
if (!(this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
653
|
+
if (!(this.h1b_1.u1b_1 === get_INVALID())) {
|
|
654
|
+
this.f1b_1.a1a();
|
|
655
|
+
this.f1b_1.c1a();
|
|
656
|
+
this.f1b_1.e1a(this.h1b_1.u1b_1);
|
|
657
657
|
}
|
|
658
658
|
};
|
|
659
659
|
protoOf(StreamingJsonEncoder).lj = function (descriptor, index) {
|
|
660
|
-
switch (this.
|
|
660
|
+
switch (this.h1b_1.a9_1) {
|
|
661
661
|
case 1:
|
|
662
|
-
if (!this.
|
|
663
|
-
this.
|
|
662
|
+
if (!this.f1b_1.y19_1) {
|
|
663
|
+
this.f1b_1.e1a(get_COMMA());
|
|
664
664
|
}
|
|
665
665
|
|
|
666
|
-
this.
|
|
666
|
+
this.f1b_1.b1a();
|
|
667
667
|
break;
|
|
668
668
|
case 2:
|
|
669
|
-
if (!this.
|
|
669
|
+
if (!this.f1b_1.y19_1) {
|
|
670
670
|
var tmp = this;
|
|
671
671
|
var tmp_0;
|
|
672
672
|
if ((index % 2 | 0) === 0) {
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
673
|
+
this.f1b_1.e1a(get_COMMA());
|
|
674
|
+
this.f1b_1.b1a();
|
|
675
675
|
tmp_0 = true;
|
|
676
676
|
} else {
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
677
|
+
this.f1b_1.e1a(get_COLON());
|
|
678
|
+
this.f1b_1.d1a();
|
|
679
679
|
tmp_0 = false;
|
|
680
680
|
}
|
|
681
|
-
tmp.
|
|
681
|
+
tmp.l1b_1 = tmp_0;
|
|
682
682
|
} else {
|
|
683
|
-
this.
|
|
684
|
-
this.
|
|
683
|
+
this.l1b_1 = true;
|
|
684
|
+
this.f1b_1.b1a();
|
|
685
685
|
}
|
|
686
686
|
|
|
687
687
|
break;
|
|
688
688
|
case 3:
|
|
689
689
|
if (index === 0)
|
|
690
|
-
this.
|
|
690
|
+
this.l1b_1 = true;
|
|
691
691
|
if (index === 1) {
|
|
692
|
-
this.
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
692
|
+
this.f1b_1.e1a(get_COMMA());
|
|
693
|
+
this.f1b_1.d1a();
|
|
694
|
+
this.l1b_1 = false;
|
|
695
695
|
}
|
|
696
696
|
|
|
697
697
|
break;
|
|
698
698
|
default:
|
|
699
|
-
if (!this.
|
|
700
|
-
this.
|
|
699
|
+
if (!this.f1b_1.y19_1) {
|
|
700
|
+
this.f1b_1.e1a(get_COMMA());
|
|
701
701
|
}
|
|
702
702
|
|
|
703
|
-
this.
|
|
704
|
-
this.wj(getJsonElementName(descriptor, this.
|
|
705
|
-
this.
|
|
706
|
-
this.
|
|
703
|
+
this.f1b_1.b1a();
|
|
704
|
+
this.wj(getJsonElementName(descriptor, this.g1b_1, index));
|
|
705
|
+
this.f1b_1.e1a(get_COLON());
|
|
706
|
+
this.f1b_1.d1a();
|
|
707
707
|
break;
|
|
708
708
|
}
|
|
709
709
|
return true;
|
|
710
710
|
};
|
|
711
711
|
protoOf(StreamingJsonEncoder).kk = function (descriptor, index, serializer, value) {
|
|
712
|
-
if (!(value == null) ? true : this.
|
|
712
|
+
if (!(value == null) ? true : this.k1b_1.m19_1) {
|
|
713
713
|
protoOf(AbstractEncoder).kk.call(this, descriptor, index, serializer, value);
|
|
714
714
|
}
|
|
715
715
|
};
|
|
@@ -718,93 +718,93 @@
|
|
|
718
718
|
if (get_isUnsignedNumber(descriptor)) {
|
|
719
719
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
720
720
|
var tmp_0;
|
|
721
|
-
var tmp_1 = this.
|
|
721
|
+
var tmp_1 = this.f1b_1;
|
|
722
722
|
if (tmp_1 instanceof ComposerForUnsignedNumbers) {
|
|
723
|
-
tmp_0 = this.
|
|
723
|
+
tmp_0 = this.f1b_1;
|
|
724
724
|
} else {
|
|
725
|
-
tmp_0 = new ComposerForUnsignedNumbers(this.
|
|
725
|
+
tmp_0 = new ComposerForUnsignedNumbers(this.f1b_1.x19_1, this.l1b_1);
|
|
726
726
|
}
|
|
727
727
|
var tmp$ret$1 = tmp_0;
|
|
728
|
-
tmp = new StreamingJsonEncoder(tmp$ret$1, this.
|
|
728
|
+
tmp = new StreamingJsonEncoder(tmp$ret$1, this.g1b_1, this.h1b_1, null);
|
|
729
729
|
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
730
730
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
731
731
|
var tmp_2;
|
|
732
|
-
var tmp_3 = this.
|
|
732
|
+
var tmp_3 = this.f1b_1;
|
|
733
733
|
if (tmp_3 instanceof ComposerForUnquotedLiterals) {
|
|
734
|
-
tmp_2 = this.
|
|
734
|
+
tmp_2 = this.f1b_1;
|
|
735
735
|
} else {
|
|
736
|
-
tmp_2 = new ComposerForUnquotedLiterals(this.
|
|
736
|
+
tmp_2 = new ComposerForUnquotedLiterals(this.f1b_1.x19_1, this.l1b_1);
|
|
737
737
|
}
|
|
738
738
|
var tmp$ret$3 = tmp_2;
|
|
739
|
-
tmp = new StreamingJsonEncoder(tmp$ret$3, this.
|
|
739
|
+
tmp = new StreamingJsonEncoder(tmp$ret$3, this.g1b_1, this.h1b_1, null);
|
|
740
740
|
} else {
|
|
741
741
|
tmp = protoOf(AbstractEncoder).xj.call(this, descriptor);
|
|
742
742
|
}
|
|
743
743
|
return tmp;
|
|
744
744
|
};
|
|
745
745
|
protoOf(StreamingJsonEncoder).nj = function () {
|
|
746
|
-
this.
|
|
746
|
+
this.f1b_1.g1a(get_NULL());
|
|
747
747
|
};
|
|
748
748
|
protoOf(StreamingJsonEncoder).oj = function (value) {
|
|
749
|
-
if (this.
|
|
749
|
+
if (this.l1b_1) {
|
|
750
750
|
this.wj(value.toString());
|
|
751
751
|
} else {
|
|
752
|
-
this.
|
|
752
|
+
this.f1b_1.p1a(value);
|
|
753
753
|
}
|
|
754
754
|
};
|
|
755
755
|
protoOf(StreamingJsonEncoder).pj = function (value) {
|
|
756
|
-
if (this.
|
|
756
|
+
if (this.l1b_1) {
|
|
757
757
|
this.wj(value.toString());
|
|
758
758
|
} else {
|
|
759
|
-
this.
|
|
759
|
+
this.f1b_1.k1a(value);
|
|
760
760
|
}
|
|
761
761
|
};
|
|
762
762
|
protoOf(StreamingJsonEncoder).qj = function (value) {
|
|
763
|
-
if (this.
|
|
763
|
+
if (this.l1b_1) {
|
|
764
764
|
this.wj(value.toString());
|
|
765
765
|
} else {
|
|
766
|
-
this.
|
|
766
|
+
this.f1b_1.m1a(value);
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
769
|
protoOf(StreamingJsonEncoder).rj = function (value) {
|
|
770
|
-
if (this.
|
|
770
|
+
if (this.l1b_1) {
|
|
771
771
|
this.wj(value.toString());
|
|
772
772
|
} else {
|
|
773
|
-
this.
|
|
773
|
+
this.f1b_1.n1a(value);
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
776
|
protoOf(StreamingJsonEncoder).sj = function (value) {
|
|
777
|
-
if (this.
|
|
777
|
+
if (this.l1b_1) {
|
|
778
778
|
this.wj(value.toString());
|
|
779
779
|
} else {
|
|
780
|
-
this.
|
|
780
|
+
this.f1b_1.o1a(value);
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
783
|
protoOf(StreamingJsonEncoder).tj = function (value) {
|
|
784
|
-
if (this.
|
|
784
|
+
if (this.l1b_1) {
|
|
785
785
|
this.wj(value.toString());
|
|
786
786
|
} else {
|
|
787
|
-
this.
|
|
787
|
+
this.f1b_1.i1a(value);
|
|
788
788
|
}
|
|
789
|
-
if (!this.
|
|
790
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
789
|
+
if (!this.k1b_1.r19_1 ? !isFinite(value) : false) {
|
|
790
|
+
throw InvalidFloatingPointEncoded(value, toString(this.f1b_1.x19_1));
|
|
791
791
|
}
|
|
792
792
|
};
|
|
793
793
|
protoOf(StreamingJsonEncoder).uj = function (value) {
|
|
794
|
-
if (this.
|
|
794
|
+
if (this.l1b_1) {
|
|
795
795
|
this.wj(value.toString());
|
|
796
796
|
} else {
|
|
797
|
-
this.
|
|
797
|
+
this.f1b_1.j1a(value);
|
|
798
798
|
}
|
|
799
|
-
if (!this.
|
|
800
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
799
|
+
if (!this.k1b_1.r19_1 ? !isFinite_0(value) : false) {
|
|
800
|
+
throw InvalidFloatingPointEncoded(value, toString(this.f1b_1.x19_1));
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
803
|
protoOf(StreamingJsonEncoder).vj = function (value) {
|
|
804
804
|
this.wj(toString_0(value));
|
|
805
805
|
};
|
|
806
806
|
protoOf(StreamingJsonEncoder).wj = function (value) {
|
|
807
|
-
return this.
|
|
807
|
+
return this.f1b_1.q1a(value);
|
|
808
808
|
};
|
|
809
809
|
function get_isUnsignedNumber(_this__u8e3s4) {
|
|
810
810
|
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
@@ -972,8 +972,8 @@
|
|
|
972
972
|
var $ENTRIES;
|
|
973
973
|
function WriteMode(name, ordinal, begin, end) {
|
|
974
974
|
Enum.call(this, name, ordinal);
|
|
975
|
-
this.
|
|
976
|
-
this.
|
|
975
|
+
this.t1b_1 = begin;
|
|
976
|
+
this.u1b_1 = end;
|
|
977
977
|
}
|
|
978
978
|
function switchMode(_this__u8e3s4, desc) {
|
|
979
979
|
var tmp0_subject = desc.mi();
|
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
// Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
|
|
1000
1000
|
tmp_0 = WriteMode_MAP_getInstance();
|
|
1001
1001
|
} else {
|
|
1002
|
-
if (_this__u8e3s4.
|
|
1002
|
+
if (_this__u8e3s4.b19_1.k19_1) {
|
|
1003
1003
|
// Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
|
|
1004
1004
|
tmp_0 = WriteMode_LIST_getInstance();
|
|
1005
1005
|
} else {
|
|
@@ -1088,28 +1088,28 @@
|
|
|
1088
1088
|
}
|
|
1089
1089
|
var allowStructuredMapKeysHint;
|
|
1090
1090
|
function get_schemaCache(_this__u8e3s4) {
|
|
1091
|
-
return _this__u8e3s4.
|
|
1091
|
+
return _this__u8e3s4.d19_1;
|
|
1092
1092
|
}
|
|
1093
1093
|
function JsonToStringWriter() {
|
|
1094
|
-
this.
|
|
1094
|
+
this.f19_1 = StringBuilder_init_$Create$(128);
|
|
1095
1095
|
}
|
|
1096
|
-
protoOf(JsonToStringWriter).
|
|
1097
|
-
this.
|
|
1096
|
+
protoOf(JsonToStringWriter).l1a = function (value) {
|
|
1097
|
+
this.f19_1.u7(value);
|
|
1098
1098
|
};
|
|
1099
|
-
protoOf(JsonToStringWriter).
|
|
1100
|
-
this.
|
|
1099
|
+
protoOf(JsonToStringWriter).f1a = function (char) {
|
|
1100
|
+
this.f19_1.g5(char);
|
|
1101
1101
|
};
|
|
1102
|
-
protoOf(JsonToStringWriter).
|
|
1103
|
-
this.
|
|
1102
|
+
protoOf(JsonToStringWriter).h1a = function (text) {
|
|
1103
|
+
this.f19_1.f5(text);
|
|
1104
1104
|
};
|
|
1105
|
-
protoOf(JsonToStringWriter).
|
|
1106
|
-
printQuoted(this.
|
|
1105
|
+
protoOf(JsonToStringWriter).r1a = function (text) {
|
|
1106
|
+
printQuoted(this.f19_1, text);
|
|
1107
1107
|
};
|
|
1108
|
-
protoOf(JsonToStringWriter).
|
|
1109
|
-
this.
|
|
1108
|
+
protoOf(JsonToStringWriter).g19 = function () {
|
|
1109
|
+
this.f19_1.w7();
|
|
1110
1110
|
};
|
|
1111
1111
|
protoOf(JsonToStringWriter).toString = function () {
|
|
1112
|
-
return this.
|
|
1112
|
+
return this.f19_1.toString();
|
|
1113
1113
|
};
|
|
1114
1114
|
function createMapForCache(initialCapacity) {
|
|
1115
1115
|
return HashMap_init_$Create$(initialCapacity);
|