@solibo/home-api 1.16.17 → 1.16.18
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-DateTime-library-kotlinx-datetime.mjs +964 -960
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3712 -3533
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-browser.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2054 -2054
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +57 -57
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +519 -519
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2285 -2286
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1713 -1711
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation.mjs +452 -292
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3486 -3378
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-client-encoding.mjs.map +1 -1
- package/ktor-ktor-client-logging.mjs.map +1 -1
- package/ktor-ktor-client-websockets.mjs.map +1 -1
- package/ktor-ktor-events.mjs +7 -7
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +581 -581
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +1231 -1174
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1172 -1223
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-openapi-schema.mjs +84 -0
- package/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +9 -9
- package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx.mjs +216 -226
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
- package/ktor-ktor-serialization.mjs +111 -116
- package/ktor-ktor-serialization.mjs.map +1 -1
- package/ktor-ktor-sse.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +1037 -983
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websocket-serialization.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +925 -911
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +46 -46
- package/solibo-sdk-sdk-home-api.mjs +98430 -97370
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
protoOf180f3jzyo7rfj as protoOf,
|
|
3
3
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
4
4
|
toString1pkumu07cwy4m as toString,
|
|
5
|
-
IllegalArgumentException_init_$Create$
|
|
6
|
-
|
|
5
|
+
IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$,
|
|
6
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
7
7
|
fromInt2ii0rejb1w62w as fromInt,
|
|
8
8
|
modulooi4g1kq3dmtt as modulo,
|
|
9
9
|
dividelr0uqtdj497z as divide,
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
VOID3gxj6tk5isa35 as VOID,
|
|
14
14
|
enumEntries20mr21zbe3az4 as enumEntries,
|
|
15
15
|
Enum3alwj03lh1n41 as Enum,
|
|
16
|
-
IllegalArgumentException_init_$Init$
|
|
16
|
+
IllegalArgumentException_init_$Init$2rzql1b7hphui as IllegalArgumentException_init_$Init$,
|
|
17
17
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
18
18
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
19
|
-
IllegalArgumentException_init_$Init$
|
|
20
|
-
IllegalArgumentException_init_$Init$
|
|
19
|
+
IllegalArgumentException_init_$Init$c3q2g5ghz7m0 as IllegalArgumentException_init_$Init$_0,
|
|
20
|
+
IllegalArgumentException_init_$Init$1kkn5cqzzyumg as IllegalArgumentException_init_$Init$_1,
|
|
21
21
|
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
22
|
-
RuntimeException_init_$Init$
|
|
23
|
-
RuntimeException_init_$Init$
|
|
22
|
+
RuntimeException_init_$Init$2dvxg7wx8nr7j as RuntimeException_init_$Init$,
|
|
23
|
+
RuntimeException_init_$Init$zrxohrw7ueii as RuntimeException_init_$Init$_0,
|
|
24
24
|
RuntimeException1r3t0zl97011n as RuntimeException,
|
|
25
|
-
StringBuilder_init_$Create$
|
|
25
|
+
StringBuilder_init_$Create$b2348mky3co as StringBuilder_init_$Create$,
|
|
26
26
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
27
|
-
|
|
27
|
+
toString1n9qg6fb0b5i8 as toString_0,
|
|
28
28
|
KProperty02ce7r476m8633 as KProperty0,
|
|
29
29
|
getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
|
|
30
30
|
hashCodeq5arwsb9dgti as hashCode,
|
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
33
33
|
KMutableProperty11e8g1gb0ecb9j as KMutableProperty1,
|
|
34
34
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
35
|
-
|
|
35
|
+
_Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx,
|
|
36
36
|
lazy2hsh8ze7j6ikd as lazy,
|
|
37
37
|
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
38
|
-
ArrayList_init_$Create$
|
|
38
|
+
ArrayList_init_$Create$2xrifdqz5xirg as ArrayList_init_$Create$,
|
|
39
39
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
40
40
|
isInterface3d6p8outrmvmk as isInterface,
|
|
41
41
|
equals2au1ep9vhcato as equals,
|
|
42
|
-
IllegalStateException_init_$Create$
|
|
42
|
+
IllegalStateException_init_$Create$38ax6c90susjc as IllegalStateException_init_$Create$,
|
|
43
43
|
toString30pk9tzaqopn as toString_1,
|
|
44
44
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
45
45
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
52
52
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
53
53
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
54
|
-
ArrayList_init_$Create$
|
|
54
|
+
ArrayList_init_$Create$a978fvbbts3d as ArrayList_init_$Create$_0,
|
|
55
55
|
singleo93pzdgfc557 as single,
|
|
56
56
|
abs1kdzbjes1idip as abs,
|
|
57
57
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
@@ -64,9 +64,9 @@ import {
|
|
|
64
64
|
Comparator2b3maoeh98xtg as Comparator,
|
|
65
65
|
compareValues1n2ayl87ihzfk as compareValues,
|
|
66
66
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
67
|
-
Exception_init_$Init$
|
|
67
|
+
Exception_init_$Init$aq0gqtvnezdz as Exception_init_$Init$,
|
|
68
68
|
asReversed308kw52j6ls1u as asReversed,
|
|
69
|
-
StringBuilder_init_$Create$
|
|
69
|
+
StringBuilder_init_$Create$yggnhbmai7wr as StringBuilder_init_$Create$_0,
|
|
70
70
|
joinTo3lkanfaxbzac2 as joinTo,
|
|
71
71
|
firstOrNull1982767dljvdy as firstOrNull,
|
|
72
72
|
plus310ted5e4i90h as plus,
|
|
@@ -78,11 +78,11 @@ import {
|
|
|
78
78
|
listOf1jh22dvmctj1r as listOf_0,
|
|
79
79
|
repeat2w4c6j8zoq09o as repeat,
|
|
80
80
|
checkCountOverflow1ro2fe1r4xvgf as checkCountOverflow,
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
Char__minus_impl_a2frrhw2puetaduxyd as Char__minus_impl_a2frrh,
|
|
82
|
+
PrimitiveClasses_getInstance13wbaztpz3e2d as PrimitiveClasses_getInstance,
|
|
83
83
|
arrayOf1akklvh2at202 as arrayOf,
|
|
84
84
|
createKType31ecntyyaay3k as createKType,
|
|
85
|
-
|
|
85
|
+
LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
86
86
|
lazy1261dae0bgscp as lazy_0,
|
|
87
87
|
KProperty1ca4yb4wlo496 as KProperty1,
|
|
88
88
|
getKClass3t8tygqu4lcxf as getKClass,
|
|
@@ -98,18 +98,18 @@ import {
|
|
|
98
98
|
Comparable198qfk8pnblz0 as Comparable,
|
|
99
99
|
ArithmeticException18dajwq7kbp38 as ArithmeticException,
|
|
100
100
|
compareValuesBy2ycqeh37x2wfm as compareValuesBy,
|
|
101
|
-
ArithmeticException_init_$Create$
|
|
101
|
+
ArithmeticException_init_$Create$v1uodxiwv6am as ArithmeticException_init_$Create$,
|
|
102
102
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
103
103
|
import {
|
|
104
104
|
SerializableWithd2dap36updxd as SerializableWith,
|
|
105
105
|
buildClassSerialDescriptors2a6xdp6mrtw as buildClassSerialDescriptor,
|
|
106
106
|
serializer1hwzc6m64v1op as serializer,
|
|
107
107
|
KSerializerzf77vz1967fq as KSerializer,
|
|
108
|
-
MissingFieldException_init_$Create$
|
|
108
|
+
MissingFieldException_init_$Create$29zrbmczdacjb as MissingFieldException_init_$Create$,
|
|
109
109
|
SealedClassSerializeriwipiibk55zc as SealedClassSerializer,
|
|
110
110
|
AbstractPolymorphicSerializer1ccxwp48nfy58 as AbstractPolymorphicSerializer,
|
|
111
|
-
SerializationException_init_$Create$
|
|
112
|
-
|
|
111
|
+
SerializationException_init_$Create$1oc2fm69kd4pj as SerializationException_init_$Create$,
|
|
112
|
+
STRING_getInstance7xungxdjbzv as STRING_getInstance,
|
|
113
113
|
PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
|
|
114
114
|
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
115
115
|
//region block: imports
|
|
@@ -138,10 +138,10 @@ function year$default(padding, $super) {
|
|
|
138
138
|
padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
|
|
139
139
|
var tmp;
|
|
140
140
|
if ($super === VOID) {
|
|
141
|
-
this.
|
|
141
|
+
this.year_dmdaiv_k$(padding);
|
|
142
142
|
tmp = Unit_instance;
|
|
143
143
|
} else {
|
|
144
|
-
tmp = $super.
|
|
144
|
+
tmp = $super.year_dmdaiv_k$.call(this, padding);
|
|
145
145
|
}
|
|
146
146
|
return tmp;
|
|
147
147
|
}
|
|
@@ -149,10 +149,10 @@ function monthNumber$default(padding, $super) {
|
|
|
149
149
|
padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
|
|
150
150
|
var tmp;
|
|
151
151
|
if ($super === VOID) {
|
|
152
|
-
this.
|
|
152
|
+
this.monthNumber_xjkdp7_k$(padding);
|
|
153
153
|
tmp = Unit_instance;
|
|
154
154
|
} else {
|
|
155
|
-
tmp = $super.
|
|
155
|
+
tmp = $super.monthNumber_xjkdp7_k$.call(this, padding);
|
|
156
156
|
}
|
|
157
157
|
return tmp;
|
|
158
158
|
}
|
|
@@ -161,35 +161,35 @@ function day$default(padding, $super) {
|
|
|
161
161
|
padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
|
|
162
162
|
var tmp;
|
|
163
163
|
if ($super === VOID) {
|
|
164
|
-
this.
|
|
164
|
+
this.day_pu15qg_k$(padding);
|
|
165
165
|
tmp = Unit_instance;
|
|
166
166
|
} else {
|
|
167
|
-
tmp = $super.
|
|
167
|
+
tmp = $super.day_pu15qg_k$.call(this, padding);
|
|
168
168
|
}
|
|
169
169
|
return tmp;
|
|
170
170
|
}
|
|
171
171
|
initMetadataForInterface(WithDate, 'WithDate', VOID, VOID, [WithYearMonth]);
|
|
172
172
|
function chars(value) {
|
|
173
|
-
return this.
|
|
173
|
+
return this.get_actualBuilder_7qypdo_k$().add_b6pdwl_k$(new ConstantFormatStructure(value));
|
|
174
174
|
}
|
|
175
175
|
function build() {
|
|
176
|
-
return new CachedFormatStructure(this.
|
|
176
|
+
return new CachedFormatStructure(this.get_actualBuilder_7qypdo_k$().build_1k0s4u_k$().formats_1);
|
|
177
177
|
}
|
|
178
178
|
initMetadataForInterface(AbstractDateTimeFormatBuilder, 'AbstractDateTimeFormatBuilder');
|
|
179
179
|
initMetadataForClass(IncompleteLocalDate, 'IncompleteLocalDate', IncompleteLocalDate);
|
|
180
180
|
initMetadataForCompanion(Companion_6);
|
|
181
181
|
function year(padding) {
|
|
182
|
-
return this.
|
|
182
|
+
return this.addFormatStructureForYearMonth_t4rp63_k$(new BasicFormatStructure(new YearDirective(padding)));
|
|
183
183
|
}
|
|
184
184
|
function monthNumber(padding) {
|
|
185
|
-
return this.
|
|
185
|
+
return this.addFormatStructureForYearMonth_t4rp63_k$(new BasicFormatStructure(new MonthDirective(padding)));
|
|
186
186
|
}
|
|
187
187
|
initMetadataForInterface(AbstractWithYearMonthBuilder, 'AbstractWithYearMonthBuilder', VOID, VOID, [WithYearMonth]);
|
|
188
188
|
function addFormatStructureForYearMonth(structure) {
|
|
189
|
-
this.
|
|
189
|
+
this.addFormatStructureForDate_t2v9hh_k$(structure);
|
|
190
190
|
}
|
|
191
191
|
function day(padding) {
|
|
192
|
-
return this.
|
|
192
|
+
return this.addFormatStructureForDate_t2v9hh_k$(new BasicFormatStructure(new DayDirective(padding)));
|
|
193
193
|
}
|
|
194
194
|
initMetadataForInterface(AbstractWithDateBuilder, 'AbstractWithDateBuilder', VOID, VOID, [AbstractWithYearMonthBuilder, WithDate]);
|
|
195
195
|
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateBuilder]);
|
|
@@ -209,10 +209,10 @@ initMetadataForClass(AppendableFormatStructure, 'AppendableFormatStructure', App
|
|
|
209
209
|
initMetadataForClass(AbstractFieldSpec, 'AbstractFieldSpec');
|
|
210
210
|
initMetadataForClass(GenericFieldSpec, 'GenericFieldSpec', VOID, AbstractFieldSpec);
|
|
211
211
|
function getterNotNull(container) {
|
|
212
|
-
var tmp0_elvis_lhs = this.
|
|
212
|
+
var tmp0_elvis_lhs = this.getter_8mvnhr_k$(container);
|
|
213
213
|
var tmp;
|
|
214
214
|
if (tmp0_elvis_lhs == null) {
|
|
215
|
-
throw IllegalStateException_init_$Create$('Field ' + this.
|
|
215
|
+
throw IllegalStateException_init_$Create$('Field ' + this.get_name_woqyms_k$() + ' is not set');
|
|
216
216
|
} else {
|
|
217
217
|
tmp = tmp0_elvis_lhs;
|
|
218
218
|
}
|
|
@@ -230,10 +230,10 @@ function format$default(obj, builder, minusNotRequired, $super) {
|
|
|
230
230
|
minusNotRequired = minusNotRequired === VOID ? false : minusNotRequired;
|
|
231
231
|
var tmp;
|
|
232
232
|
if ($super === VOID) {
|
|
233
|
-
this.
|
|
233
|
+
this.format_bqb1zl_k$(obj, builder, minusNotRequired);
|
|
234
234
|
tmp = Unit_instance;
|
|
235
235
|
} else {
|
|
236
|
-
tmp = $super.
|
|
236
|
+
tmp = $super.format_bqb1zl_k$.call(this, obj, builder, minusNotRequired);
|
|
237
237
|
}
|
|
238
238
|
return tmp;
|
|
239
239
|
}
|
|
@@ -302,59 +302,59 @@ function Companion_getInstance_2() {
|
|
|
302
302
|
}
|
|
303
303
|
function TimeBased(nanoseconds) {
|
|
304
304
|
DateTimeUnit.call(this);
|
|
305
|
-
this.
|
|
305
|
+
this.nanoseconds_1 = nanoseconds;
|
|
306
306
|
// Inline function 'kotlin.require' call
|
|
307
|
-
if (!(this.
|
|
308
|
-
var message = 'Unit duration must be positive, but was ' + this.
|
|
307
|
+
if (!(this.nanoseconds_1 > 0n)) {
|
|
308
|
+
var message = 'Unit duration must be positive, but was ' + this.nanoseconds_1.toString() + ' ns.';
|
|
309
309
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
310
310
|
}
|
|
311
|
-
if (modulo(this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
311
|
+
if (modulo(this.nanoseconds_1, 3600000000000n) === 0n) {
|
|
312
|
+
this.unitName_1 = 'HOUR';
|
|
313
|
+
this.unitScale_1 = divide(this.nanoseconds_1, 3600000000000n);
|
|
314
314
|
} else {
|
|
315
|
-
if (modulo(this.
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
315
|
+
if (modulo(this.nanoseconds_1, 60000000000n) === 0n) {
|
|
316
|
+
this.unitName_1 = 'MINUTE';
|
|
317
|
+
this.unitScale_1 = divide(this.nanoseconds_1, 60000000000n);
|
|
318
318
|
} else {
|
|
319
|
-
var tmp0 = this.
|
|
319
|
+
var tmp0 = this.nanoseconds_1;
|
|
320
320
|
// Inline function 'kotlin.Long.rem' call
|
|
321
321
|
var other = 1000000000;
|
|
322
322
|
if (modulo(tmp0, fromInt(other)) === 0n) {
|
|
323
|
-
this.
|
|
323
|
+
this.unitName_1 = 'SECOND';
|
|
324
324
|
var tmp = this;
|
|
325
|
-
var tmp0_0 = this.
|
|
325
|
+
var tmp0_0 = this.nanoseconds_1;
|
|
326
326
|
// Inline function 'kotlin.Long.div' call
|
|
327
327
|
var other_0 = 1000000000;
|
|
328
|
-
tmp.
|
|
328
|
+
tmp.unitScale_1 = divide(tmp0_0, fromInt(other_0));
|
|
329
329
|
} else {
|
|
330
330
|
// Inline function 'kotlin.Long.rem' call
|
|
331
|
-
var this_0 = this.
|
|
331
|
+
var this_0 = this.nanoseconds_1;
|
|
332
332
|
if (modulo(this_0, fromInt(1000000)) === 0n) {
|
|
333
|
-
this.
|
|
333
|
+
this.unitName_1 = 'MILLISECOND';
|
|
334
334
|
var tmp_0 = this;
|
|
335
335
|
// Inline function 'kotlin.Long.div' call
|
|
336
|
-
var this_1 = this.
|
|
337
|
-
tmp_0.
|
|
336
|
+
var this_1 = this.nanoseconds_1;
|
|
337
|
+
tmp_0.unitScale_1 = divide(this_1, fromInt(1000000));
|
|
338
338
|
} else {
|
|
339
339
|
// Inline function 'kotlin.Long.rem' call
|
|
340
|
-
var this_2 = this.
|
|
340
|
+
var this_2 = this.nanoseconds_1;
|
|
341
341
|
if (modulo(this_2, fromInt(1000)) === 0n) {
|
|
342
|
-
this.
|
|
342
|
+
this.unitName_1 = 'MICROSECOND';
|
|
343
343
|
var tmp_1 = this;
|
|
344
344
|
// Inline function 'kotlin.Long.div' call
|
|
345
|
-
var this_3 = this.
|
|
346
|
-
tmp_1.
|
|
345
|
+
var this_3 = this.nanoseconds_1;
|
|
346
|
+
tmp_1.unitScale_1 = divide(this_3, fromInt(1000));
|
|
347
347
|
} else {
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
348
|
+
this.unitName_1 = 'NANOSECOND';
|
|
349
|
+
this.unitScale_1 = this.nanoseconds_1;
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
protoOf(TimeBased).
|
|
357
|
-
return new TimeBased(safeMultiply(this.
|
|
356
|
+
protoOf(TimeBased).times_kr2a3y_k$ = function (scalar) {
|
|
357
|
+
return new TimeBased(safeMultiply(this.nanoseconds_1, fromInt(scalar)));
|
|
358
358
|
};
|
|
359
359
|
protoOf(TimeBased).equals = function (other) {
|
|
360
360
|
var tmp;
|
|
@@ -363,7 +363,7 @@ protoOf(TimeBased).equals = function (other) {
|
|
|
363
363
|
} else {
|
|
364
364
|
var tmp_0;
|
|
365
365
|
if (other instanceof TimeBased) {
|
|
366
|
-
tmp_0 = this.
|
|
366
|
+
tmp_0 = this.nanoseconds_1 === other.nanoseconds_1;
|
|
367
367
|
} else {
|
|
368
368
|
tmp_0 = false;
|
|
369
369
|
}
|
|
@@ -372,25 +372,25 @@ protoOf(TimeBased).equals = function (other) {
|
|
|
372
372
|
return tmp;
|
|
373
373
|
};
|
|
374
374
|
protoOf(TimeBased).hashCode = function () {
|
|
375
|
-
return convertToInt(this.
|
|
375
|
+
return convertToInt(this.nanoseconds_1) ^ convertToInt(shiftRight(this.nanoseconds_1, 32));
|
|
376
376
|
};
|
|
377
377
|
protoOf(TimeBased).toString = function () {
|
|
378
|
-
return this.
|
|
378
|
+
return this.formatToString_d2c8zd_k$(this.unitScale_1, this.unitName_1);
|
|
379
379
|
};
|
|
380
380
|
function DateBased() {
|
|
381
381
|
DateTimeUnit.call(this);
|
|
382
382
|
}
|
|
383
383
|
function DayBased(days) {
|
|
384
384
|
DateBased.call(this);
|
|
385
|
-
this.
|
|
385
|
+
this.days_1 = days;
|
|
386
386
|
// Inline function 'kotlin.require' call
|
|
387
|
-
if (!(this.
|
|
388
|
-
var message = 'Unit duration must be positive, but was ' + this.
|
|
387
|
+
if (!(this.days_1 > 0)) {
|
|
388
|
+
var message = 'Unit duration must be positive, but was ' + this.days_1 + ' days.';
|
|
389
389
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
protoOf(DayBased).
|
|
393
|
-
return new DayBased(safeMultiply_0(this.
|
|
392
|
+
protoOf(DayBased).times_kr2a3y_k$ = function (scalar) {
|
|
393
|
+
return new DayBased(safeMultiply_0(this.days_1, scalar));
|
|
394
394
|
};
|
|
395
395
|
protoOf(DayBased).equals = function (other) {
|
|
396
396
|
var tmp;
|
|
@@ -399,7 +399,7 @@ protoOf(DayBased).equals = function (other) {
|
|
|
399
399
|
} else {
|
|
400
400
|
var tmp_0;
|
|
401
401
|
if (other instanceof DayBased) {
|
|
402
|
-
tmp_0 = this.
|
|
402
|
+
tmp_0 = this.days_1 === other.days_1;
|
|
403
403
|
} else {
|
|
404
404
|
tmp_0 = false;
|
|
405
405
|
}
|
|
@@ -408,22 +408,22 @@ protoOf(DayBased).equals = function (other) {
|
|
|
408
408
|
return tmp;
|
|
409
409
|
};
|
|
410
410
|
protoOf(DayBased).hashCode = function () {
|
|
411
|
-
return this.
|
|
411
|
+
return this.days_1 ^ 65536;
|
|
412
412
|
};
|
|
413
413
|
protoOf(DayBased).toString = function () {
|
|
414
|
-
return (this.
|
|
414
|
+
return (this.days_1 % 7 | 0) === 0 ? this.formatToString_rm4xej_k$(this.days_1 / 7 | 0, 'WEEK') : this.formatToString_rm4xej_k$(this.days_1, 'DAY');
|
|
415
415
|
};
|
|
416
416
|
function MonthBased(months) {
|
|
417
417
|
DateBased.call(this);
|
|
418
|
-
this.
|
|
418
|
+
this.months_1 = months;
|
|
419
419
|
// Inline function 'kotlin.require' call
|
|
420
|
-
if (!(this.
|
|
421
|
-
var message = 'Unit duration must be positive, but was ' + this.
|
|
420
|
+
if (!(this.months_1 > 0)) {
|
|
421
|
+
var message = 'Unit duration must be positive, but was ' + this.months_1 + ' months.';
|
|
422
422
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
protoOf(MonthBased).
|
|
426
|
-
return new MonthBased(safeMultiply_0(this.
|
|
425
|
+
protoOf(MonthBased).times_kr2a3y_k$ = function (scalar) {
|
|
426
|
+
return new MonthBased(safeMultiply_0(this.months_1, scalar));
|
|
427
427
|
};
|
|
428
428
|
protoOf(MonthBased).equals = function (other) {
|
|
429
429
|
var tmp;
|
|
@@ -432,7 +432,7 @@ protoOf(MonthBased).equals = function (other) {
|
|
|
432
432
|
} else {
|
|
433
433
|
var tmp_0;
|
|
434
434
|
if (other instanceof MonthBased) {
|
|
435
|
-
tmp_0 = this.
|
|
435
|
+
tmp_0 = this.months_1 === other.months_1;
|
|
436
436
|
} else {
|
|
437
437
|
tmp_0 = false;
|
|
438
438
|
}
|
|
@@ -441,25 +441,25 @@ protoOf(MonthBased).equals = function (other) {
|
|
|
441
441
|
return tmp;
|
|
442
442
|
};
|
|
443
443
|
protoOf(MonthBased).hashCode = function () {
|
|
444
|
-
return this.
|
|
444
|
+
return this.months_1 ^ 131072;
|
|
445
445
|
};
|
|
446
446
|
protoOf(MonthBased).toString = function () {
|
|
447
|
-
return (this.
|
|
447
|
+
return (this.months_1 % 1200 | 0) === 0 ? this.formatToString_rm4xej_k$(this.months_1 / 1200 | 0, 'CENTURY') : (this.months_1 % 12 | 0) === 0 ? this.formatToString_rm4xej_k$(this.months_1 / 12 | 0, 'YEAR') : (this.months_1 % 3 | 0) === 0 ? this.formatToString_rm4xej_k$(this.months_1 / 3 | 0, 'QUARTER') : this.formatToString_rm4xej_k$(this.months_1, 'MONTH');
|
|
448
448
|
};
|
|
449
449
|
function Companion_3() {
|
|
450
450
|
Companion_instance_3 = this;
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
454
|
-
this.
|
|
455
|
-
this.
|
|
456
|
-
this.
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
461
|
-
this.
|
|
462
|
-
this.
|
|
451
|
+
this.NANOSECOND_1 = new TimeBased(1n);
|
|
452
|
+
this.MICROSECOND_1 = this.NANOSECOND_1.times_kr2a3y_k$(1000);
|
|
453
|
+
this.MILLISECOND_1 = this.MICROSECOND_1.times_kr2a3y_k$(1000);
|
|
454
|
+
this.SECOND_1 = this.MILLISECOND_1.times_kr2a3y_k$(1000);
|
|
455
|
+
this.MINUTE_1 = this.SECOND_1.times_kr2a3y_k$(60);
|
|
456
|
+
this.HOUR_1 = this.MINUTE_1.times_kr2a3y_k$(60);
|
|
457
|
+
this.DAY_1 = new DayBased(1);
|
|
458
|
+
this.WEEK_1 = this.DAY_1.times_kr2a3y_k$(7);
|
|
459
|
+
this.MONTH_1 = new MonthBased(1);
|
|
460
|
+
this.QUARTER_1 = this.MONTH_1.times_kr2a3y_k$(3);
|
|
461
|
+
this.YEAR_1 = this.MONTH_1.times_kr2a3y_k$(12);
|
|
462
|
+
this.CENTURY_1 = this.YEAR_1.times_kr2a3y_k$(100);
|
|
463
463
|
}
|
|
464
464
|
var Companion_instance_3;
|
|
465
465
|
function Companion_getInstance_3() {
|
|
@@ -470,14 +470,27 @@ function Companion_getInstance_3() {
|
|
|
470
470
|
function DateTimeUnit() {
|
|
471
471
|
Companion_getInstance_3();
|
|
472
472
|
}
|
|
473
|
-
protoOf(DateTimeUnit).
|
|
473
|
+
protoOf(DateTimeUnit).formatToString_rm4xej_k$ = function (value, unit) {
|
|
474
474
|
return value === 1 ? unit : '' + value + '-' + unit;
|
|
475
475
|
};
|
|
476
|
-
protoOf(DateTimeUnit).
|
|
476
|
+
protoOf(DateTimeUnit).formatToString_d2c8zd_k$ = function (value, unit) {
|
|
477
477
|
return value === 1n ? unit : value.toString() + '-' + unit;
|
|
478
478
|
};
|
|
479
479
|
function get_isoDayNumber(_this__u8e3s4) {
|
|
480
|
-
return _this__u8e3s4.
|
|
480
|
+
return _this__u8e3s4.ordinal_1 + 1 | 0;
|
|
481
|
+
}
|
|
482
|
+
var static_init_called;
|
|
483
|
+
function static_init() {
|
|
484
|
+
if (static_init_called)
|
|
485
|
+
return Unit_instance;
|
|
486
|
+
static_init_called = true;
|
|
487
|
+
DayOfWeek_MONDAY_instance = new DayOfWeek('MONDAY', 0);
|
|
488
|
+
DayOfWeek_TUESDAY_instance = new DayOfWeek('TUESDAY', 1);
|
|
489
|
+
DayOfWeek_WEDNESDAY_instance = new DayOfWeek('WEDNESDAY', 2);
|
|
490
|
+
DayOfWeek_THURSDAY_instance = new DayOfWeek('THURSDAY', 3);
|
|
491
|
+
DayOfWeek_FRIDAY_instance = new DayOfWeek('FRIDAY', 4);
|
|
492
|
+
DayOfWeek_SATURDAY_instance = new DayOfWeek('SATURDAY', 5);
|
|
493
|
+
DayOfWeek_SUNDAY_instance = new DayOfWeek('SUNDAY', 6);
|
|
481
494
|
}
|
|
482
495
|
var DayOfWeek_MONDAY_instance;
|
|
483
496
|
var DayOfWeek_TUESDAY_instance;
|
|
@@ -487,26 +500,15 @@ var DayOfWeek_FRIDAY_instance;
|
|
|
487
500
|
var DayOfWeek_SATURDAY_instance;
|
|
488
501
|
var DayOfWeek_SUNDAY_instance;
|
|
489
502
|
function values() {
|
|
503
|
+
static_init();
|
|
490
504
|
return [DayOfWeek_MONDAY_getInstance(), DayOfWeek_TUESDAY_getInstance(), DayOfWeek_WEDNESDAY_getInstance(), DayOfWeek_THURSDAY_getInstance(), DayOfWeek_FRIDAY_getInstance(), DayOfWeek_SATURDAY_getInstance(), DayOfWeek_SUNDAY_getInstance()];
|
|
491
505
|
}
|
|
492
506
|
function get_entries() {
|
|
507
|
+
static_init();
|
|
493
508
|
if ($ENTRIES == null)
|
|
494
509
|
$ENTRIES = enumEntries(values());
|
|
495
510
|
return $ENTRIES;
|
|
496
511
|
}
|
|
497
|
-
var DayOfWeek_entriesInitialized;
|
|
498
|
-
function DayOfWeek_initEntries() {
|
|
499
|
-
if (DayOfWeek_entriesInitialized)
|
|
500
|
-
return Unit_instance;
|
|
501
|
-
DayOfWeek_entriesInitialized = true;
|
|
502
|
-
DayOfWeek_MONDAY_instance = new DayOfWeek('MONDAY', 0);
|
|
503
|
-
DayOfWeek_TUESDAY_instance = new DayOfWeek('TUESDAY', 1);
|
|
504
|
-
DayOfWeek_WEDNESDAY_instance = new DayOfWeek('WEDNESDAY', 2);
|
|
505
|
-
DayOfWeek_THURSDAY_instance = new DayOfWeek('THURSDAY', 3);
|
|
506
|
-
DayOfWeek_FRIDAY_instance = new DayOfWeek('FRIDAY', 4);
|
|
507
|
-
DayOfWeek_SATURDAY_instance = new DayOfWeek('SATURDAY', 5);
|
|
508
|
-
DayOfWeek_SUNDAY_instance = new DayOfWeek('SUNDAY', 6);
|
|
509
|
-
}
|
|
510
512
|
var $ENTRIES;
|
|
511
513
|
function DayOfWeek(name, ordinal) {
|
|
512
514
|
Enum.call(this, name, ordinal);
|
|
@@ -517,34 +519,34 @@ function DayOfWeek_0(isoDayNumber) {
|
|
|
517
519
|
var message = 'Expected ISO day-of-week number in 1..7, got ' + isoDayNumber;
|
|
518
520
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
519
521
|
}
|
|
520
|
-
return get_entries().
|
|
522
|
+
return get_entries().get_c1px32_k$(isoDayNumber - 1 | 0);
|
|
521
523
|
}
|
|
522
524
|
function DayOfWeek_MONDAY_getInstance() {
|
|
523
|
-
|
|
525
|
+
static_init();
|
|
524
526
|
return DayOfWeek_MONDAY_instance;
|
|
525
527
|
}
|
|
526
528
|
function DayOfWeek_TUESDAY_getInstance() {
|
|
527
|
-
|
|
529
|
+
static_init();
|
|
528
530
|
return DayOfWeek_TUESDAY_instance;
|
|
529
531
|
}
|
|
530
532
|
function DayOfWeek_WEDNESDAY_getInstance() {
|
|
531
|
-
|
|
533
|
+
static_init();
|
|
532
534
|
return DayOfWeek_WEDNESDAY_instance;
|
|
533
535
|
}
|
|
534
536
|
function DayOfWeek_THURSDAY_getInstance() {
|
|
535
|
-
|
|
537
|
+
static_init();
|
|
536
538
|
return DayOfWeek_THURSDAY_instance;
|
|
537
539
|
}
|
|
538
540
|
function DayOfWeek_FRIDAY_getInstance() {
|
|
539
|
-
|
|
541
|
+
static_init();
|
|
540
542
|
return DayOfWeek_FRIDAY_instance;
|
|
541
543
|
}
|
|
542
544
|
function DayOfWeek_SATURDAY_getInstance() {
|
|
543
|
-
|
|
545
|
+
static_init();
|
|
544
546
|
return DayOfWeek_SATURDAY_instance;
|
|
545
547
|
}
|
|
546
548
|
function DayOfWeek_SUNDAY_getInstance() {
|
|
547
|
-
|
|
549
|
+
static_init();
|
|
548
550
|
return DayOfWeek_SUNDAY_instance;
|
|
549
551
|
}
|
|
550
552
|
function DateTimeFormatException_init_$Init$($this) {
|
|
@@ -578,7 +580,7 @@ function DateTimeFormatException_init_$Create$_1(message, cause) {
|
|
|
578
580
|
return tmp;
|
|
579
581
|
}
|
|
580
582
|
function Companion_4() {
|
|
581
|
-
this.
|
|
583
|
+
this.serialVersionUID_1 = 4231196759387994100n;
|
|
582
584
|
}
|
|
583
585
|
var Companion_instance_4;
|
|
584
586
|
function Companion_getInstance_4() {
|
|
@@ -608,7 +610,7 @@ function DateTimeArithmeticException_init_$Create$_0(message, cause) {
|
|
|
608
610
|
return tmp;
|
|
609
611
|
}
|
|
610
612
|
function Companion_5() {
|
|
611
|
-
this.
|
|
613
|
+
this.serialVersionUID_1 = -3207806170214997982n;
|
|
612
614
|
}
|
|
613
615
|
var Companion_instance_5;
|
|
614
616
|
function Companion_getInstance_5() {
|
|
@@ -621,13 +623,31 @@ function plus_0(_this__u8e3s4, value, unit) {
|
|
|
621
623
|
return plus_1(_this__u8e3s4, fromInt(value), unit);
|
|
622
624
|
}
|
|
623
625
|
function getIsoDateFormat() {
|
|
624
|
-
return Formats_getInstance().
|
|
626
|
+
return Formats_getInstance().get_ISO_18jrwk_k$();
|
|
625
627
|
}
|
|
626
628
|
function format(_this__u8e3s4, format) {
|
|
627
|
-
return format.
|
|
629
|
+
return format.format_l1mq08_k$(_this__u8e3s4);
|
|
628
630
|
}
|
|
629
631
|
function get_number(_this__u8e3s4) {
|
|
630
|
-
return _this__u8e3s4.
|
|
632
|
+
return _this__u8e3s4.ordinal_1 + 1 | 0;
|
|
633
|
+
}
|
|
634
|
+
var static_init_called_0;
|
|
635
|
+
function static_init_0() {
|
|
636
|
+
if (static_init_called_0)
|
|
637
|
+
return Unit_instance;
|
|
638
|
+
static_init_called_0 = true;
|
|
639
|
+
Month_JANUARY_instance = new Month('JANUARY', 0);
|
|
640
|
+
Month_FEBRUARY_instance = new Month('FEBRUARY', 1);
|
|
641
|
+
Month_MARCH_instance = new Month('MARCH', 2);
|
|
642
|
+
Month_APRIL_instance = new Month('APRIL', 3);
|
|
643
|
+
Month_MAY_instance = new Month('MAY', 4);
|
|
644
|
+
Month_JUNE_instance = new Month('JUNE', 5);
|
|
645
|
+
Month_JULY_instance = new Month('JULY', 6);
|
|
646
|
+
Month_AUGUST_instance = new Month('AUGUST', 7);
|
|
647
|
+
Month_SEPTEMBER_instance = new Month('SEPTEMBER', 8);
|
|
648
|
+
Month_OCTOBER_instance = new Month('OCTOBER', 9);
|
|
649
|
+
Month_NOVEMBER_instance = new Month('NOVEMBER', 10);
|
|
650
|
+
Month_DECEMBER_instance = new Month('DECEMBER', 11);
|
|
631
651
|
}
|
|
632
652
|
var Month_JANUARY_instance;
|
|
633
653
|
var Month_FEBRUARY_instance;
|
|
@@ -642,31 +662,15 @@ var Month_OCTOBER_instance;
|
|
|
642
662
|
var Month_NOVEMBER_instance;
|
|
643
663
|
var Month_DECEMBER_instance;
|
|
644
664
|
function values_0() {
|
|
665
|
+
static_init_0();
|
|
645
666
|
return [Month_JANUARY_getInstance(), Month_FEBRUARY_getInstance(), Month_MARCH_getInstance(), Month_APRIL_getInstance(), Month_MAY_getInstance(), Month_JUNE_getInstance(), Month_JULY_getInstance(), Month_AUGUST_getInstance(), Month_SEPTEMBER_getInstance(), Month_OCTOBER_getInstance(), Month_NOVEMBER_getInstance(), Month_DECEMBER_getInstance()];
|
|
646
667
|
}
|
|
647
668
|
function get_entries_0() {
|
|
669
|
+
static_init_0();
|
|
648
670
|
if ($ENTRIES_0 == null)
|
|
649
671
|
$ENTRIES_0 = enumEntries(values_0());
|
|
650
672
|
return $ENTRIES_0;
|
|
651
673
|
}
|
|
652
|
-
var Month_entriesInitialized;
|
|
653
|
-
function Month_initEntries() {
|
|
654
|
-
if (Month_entriesInitialized)
|
|
655
|
-
return Unit_instance;
|
|
656
|
-
Month_entriesInitialized = true;
|
|
657
|
-
Month_JANUARY_instance = new Month('JANUARY', 0);
|
|
658
|
-
Month_FEBRUARY_instance = new Month('FEBRUARY', 1);
|
|
659
|
-
Month_MARCH_instance = new Month('MARCH', 2);
|
|
660
|
-
Month_APRIL_instance = new Month('APRIL', 3);
|
|
661
|
-
Month_MAY_instance = new Month('MAY', 4);
|
|
662
|
-
Month_JUNE_instance = new Month('JUNE', 5);
|
|
663
|
-
Month_JULY_instance = new Month('JULY', 6);
|
|
664
|
-
Month_AUGUST_instance = new Month('AUGUST', 7);
|
|
665
|
-
Month_SEPTEMBER_instance = new Month('SEPTEMBER', 8);
|
|
666
|
-
Month_OCTOBER_instance = new Month('OCTOBER', 9);
|
|
667
|
-
Month_NOVEMBER_instance = new Month('NOVEMBER', 10);
|
|
668
|
-
Month_DECEMBER_instance = new Month('DECEMBER', 11);
|
|
669
|
-
}
|
|
670
674
|
var $ENTRIES_0;
|
|
671
675
|
function Month(name, ordinal) {
|
|
672
676
|
Enum.call(this, name, ordinal);
|
|
@@ -677,68 +681,68 @@ function Month_0(number) {
|
|
|
677
681
|
var message = 'Month must be a number between 1 and 12, got ' + number;
|
|
678
682
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
679
683
|
}
|
|
680
|
-
return get_entries_0().
|
|
684
|
+
return get_entries_0().get_c1px32_k$(number - 1 | 0);
|
|
681
685
|
}
|
|
682
686
|
function Month_JANUARY_getInstance() {
|
|
683
|
-
|
|
687
|
+
static_init_0();
|
|
684
688
|
return Month_JANUARY_instance;
|
|
685
689
|
}
|
|
686
690
|
function Month_FEBRUARY_getInstance() {
|
|
687
|
-
|
|
691
|
+
static_init_0();
|
|
688
692
|
return Month_FEBRUARY_instance;
|
|
689
693
|
}
|
|
690
694
|
function Month_MARCH_getInstance() {
|
|
691
|
-
|
|
695
|
+
static_init_0();
|
|
692
696
|
return Month_MARCH_instance;
|
|
693
697
|
}
|
|
694
698
|
function Month_APRIL_getInstance() {
|
|
695
|
-
|
|
699
|
+
static_init_0();
|
|
696
700
|
return Month_APRIL_instance;
|
|
697
701
|
}
|
|
698
702
|
function Month_MAY_getInstance() {
|
|
699
|
-
|
|
703
|
+
static_init_0();
|
|
700
704
|
return Month_MAY_instance;
|
|
701
705
|
}
|
|
702
706
|
function Month_JUNE_getInstance() {
|
|
703
|
-
|
|
707
|
+
static_init_0();
|
|
704
708
|
return Month_JUNE_instance;
|
|
705
709
|
}
|
|
706
710
|
function Month_JULY_getInstance() {
|
|
707
|
-
|
|
711
|
+
static_init_0();
|
|
708
712
|
return Month_JULY_instance;
|
|
709
713
|
}
|
|
710
714
|
function Month_AUGUST_getInstance() {
|
|
711
|
-
|
|
715
|
+
static_init_0();
|
|
712
716
|
return Month_AUGUST_instance;
|
|
713
717
|
}
|
|
714
718
|
function Month_SEPTEMBER_getInstance() {
|
|
715
|
-
|
|
719
|
+
static_init_0();
|
|
716
720
|
return Month_SEPTEMBER_instance;
|
|
717
721
|
}
|
|
718
722
|
function Month_OCTOBER_getInstance() {
|
|
719
|
-
|
|
723
|
+
static_init_0();
|
|
720
724
|
return Month_OCTOBER_instance;
|
|
721
725
|
}
|
|
722
726
|
function Month_NOVEMBER_getInstance() {
|
|
723
|
-
|
|
727
|
+
static_init_0();
|
|
724
728
|
return Month_NOVEMBER_instance;
|
|
725
729
|
}
|
|
726
730
|
function Month_DECEMBER_getInstance() {
|
|
727
|
-
|
|
731
|
+
static_init_0();
|
|
728
732
|
return Month_DECEMBER_instance;
|
|
729
733
|
}
|
|
730
734
|
function AbstractDateTimeFormat() {
|
|
731
735
|
}
|
|
732
|
-
protoOf(AbstractDateTimeFormat).
|
|
736
|
+
protoOf(AbstractDateTimeFormat).format_l1mq08_k$ = function (value) {
|
|
733
737
|
// Inline function 'kotlin.also' call
|
|
734
738
|
var this_0 = StringBuilder_init_$Create$();
|
|
735
|
-
this.
|
|
739
|
+
this.get_actualFormat_d0ha3y_k$().formatter_tykoui_k$().format$default_fwaxfk_k$(this.intermediateFromValue_816pep_k$(value), this_0);
|
|
736
740
|
return this_0.toString();
|
|
737
741
|
};
|
|
738
|
-
protoOf(AbstractDateTimeFormat).
|
|
742
|
+
protoOf(AbstractDateTimeFormat).parse_xovy9i_k$ = function (input) {
|
|
739
743
|
var tmp;
|
|
740
744
|
try {
|
|
741
|
-
tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.
|
|
745
|
+
tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.get_actualFormat_d0ha3y_k$().parser_ggn3z5_k$()), input, this.get_emptyIntermediate_lysuyr_k$());
|
|
742
746
|
} catch ($p) {
|
|
743
747
|
var tmp_0;
|
|
744
748
|
if ($p instanceof ParseException) {
|
|
@@ -750,7 +754,7 @@ protoOf(AbstractDateTimeFormat).kl = function (input) {
|
|
|
750
754
|
}
|
|
751
755
|
var matched = tmp;
|
|
752
756
|
try {
|
|
753
|
-
return this.
|
|
757
|
+
return this.valueFromIntermediate_60ox3m_k$(matched);
|
|
754
758
|
} catch ($p_0) {
|
|
755
759
|
if ($p_0 instanceof IllegalArgumentException) {
|
|
756
760
|
var e_0 = $p_0;
|
|
@@ -761,27 +765,27 @@ protoOf(AbstractDateTimeFormat).kl = function (input) {
|
|
|
761
765
|
}
|
|
762
766
|
}
|
|
763
767
|
};
|
|
764
|
-
var
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
var Padding_entriesInitialized;
|
|
768
|
-
function Padding_initEntries() {
|
|
769
|
-
if (Padding_entriesInitialized)
|
|
768
|
+
var static_init_called_1;
|
|
769
|
+
function static_init_1() {
|
|
770
|
+
if (static_init_called_1)
|
|
770
771
|
return Unit_instance;
|
|
771
|
-
|
|
772
|
+
static_init_called_1 = true;
|
|
772
773
|
Padding_NONE_instance = new Padding('NONE', 0);
|
|
773
774
|
Padding_ZERO_instance = new Padding('ZERO', 1);
|
|
774
775
|
Padding_SPACE_instance = new Padding('SPACE', 2);
|
|
775
776
|
}
|
|
777
|
+
var Padding_NONE_instance;
|
|
778
|
+
var Padding_ZERO_instance;
|
|
779
|
+
var Padding_SPACE_instance;
|
|
776
780
|
function Padding(name, ordinal) {
|
|
777
781
|
Enum.call(this, name, ordinal);
|
|
778
782
|
}
|
|
779
783
|
function Padding_ZERO_getInstance() {
|
|
780
|
-
|
|
784
|
+
static_init_1();
|
|
781
785
|
return Padding_ZERO_instance;
|
|
782
786
|
}
|
|
783
787
|
function Padding_SPACE_getInstance() {
|
|
784
|
-
|
|
788
|
+
static_init_1();
|
|
785
789
|
return Padding_SPACE_instance;
|
|
786
790
|
}
|
|
787
791
|
function WithYearMonth() {
|
|
@@ -789,7 +793,7 @@ function WithYearMonth() {
|
|
|
789
793
|
function WithDate() {
|
|
790
794
|
}
|
|
791
795
|
function char(_this__u8e3s4, value) {
|
|
792
|
-
return _this__u8e3s4.
|
|
796
|
+
return _this__u8e3s4.chars_pe6iqb_k$(toString_0(value));
|
|
793
797
|
}
|
|
794
798
|
function AbstractDateTimeFormatBuilder() {
|
|
795
799
|
}
|
|
@@ -799,7 +803,7 @@ function get_ISO_DATE() {
|
|
|
799
803
|
var tmp = KProperty0;
|
|
800
804
|
// Inline function 'kotlin.getValue' call
|
|
801
805
|
getPropertyCallableRef('ISO_DATE', 0, tmp, _get_ISO_DATE_$ref_powsum(), null);
|
|
802
|
-
return tmp0.
|
|
806
|
+
return tmp0.get_value_j01efc_k$();
|
|
803
807
|
}
|
|
804
808
|
var ISO_DATE$delegate;
|
|
805
809
|
function get_ISO_DATE_BASIC() {
|
|
@@ -808,7 +812,7 @@ function get_ISO_DATE_BASIC() {
|
|
|
808
812
|
var tmp = KProperty0;
|
|
809
813
|
// Inline function 'kotlin.getValue' call
|
|
810
814
|
getPropertyCallableRef('ISO_DATE_BASIC', 0, tmp, _get_ISO_DATE_BASIC_$ref_3fs8eb(), null);
|
|
811
|
-
return tmp0.
|
|
815
|
+
return tmp0.get_value_j01efc_k$();
|
|
812
816
|
}
|
|
813
817
|
var ISO_DATE_BASIC$delegate;
|
|
814
818
|
function get_emptyIncompleteLocalDate() {
|
|
@@ -821,70 +825,70 @@ function IncompleteLocalDate(yearMonth, day, dayOfWeek, dayOfYear) {
|
|
|
821
825
|
day = day === VOID ? null : day;
|
|
822
826
|
dayOfWeek = dayOfWeek === VOID ? null : dayOfWeek;
|
|
823
827
|
dayOfYear = dayOfYear === VOID ? null : dayOfYear;
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
826
|
-
this.
|
|
827
|
-
this.
|
|
828
|
+
this.yearMonth_1 = yearMonth;
|
|
829
|
+
this.day_1 = day;
|
|
830
|
+
this.dayOfWeek_1 = dayOfWeek;
|
|
831
|
+
this.dayOfYear_1 = dayOfYear;
|
|
828
832
|
}
|
|
829
|
-
protoOf(IncompleteLocalDate).
|
|
830
|
-
this.
|
|
833
|
+
protoOf(IncompleteLocalDate).set_day_420fh8_k$ = function (_set____db54di) {
|
|
834
|
+
this.day_1 = _set____db54di;
|
|
831
835
|
};
|
|
832
|
-
protoOf(IncompleteLocalDate).
|
|
833
|
-
return this.
|
|
836
|
+
protoOf(IncompleteLocalDate).get_day_18j7il_k$ = function () {
|
|
837
|
+
return this.day_1;
|
|
834
838
|
};
|
|
835
|
-
protoOf(IncompleteLocalDate).
|
|
836
|
-
this.
|
|
839
|
+
protoOf(IncompleteLocalDate).set_dayOfWeek_rlg9ap_k$ = function (_set____db54di) {
|
|
840
|
+
this.dayOfWeek_1 = _set____db54di;
|
|
837
841
|
};
|
|
838
|
-
protoOf(IncompleteLocalDate).
|
|
839
|
-
return this.
|
|
842
|
+
protoOf(IncompleteLocalDate).get_dayOfWeek_3kfgci_k$ = function () {
|
|
843
|
+
return this.dayOfWeek_1;
|
|
840
844
|
};
|
|
841
|
-
protoOf(IncompleteLocalDate).
|
|
842
|
-
this.
|
|
845
|
+
protoOf(IncompleteLocalDate).set_dayOfYear_b6dvlk_k$ = function (_set____db54di) {
|
|
846
|
+
this.dayOfYear_1 = _set____db54di;
|
|
843
847
|
};
|
|
844
|
-
protoOf(IncompleteLocalDate).
|
|
845
|
-
return this.
|
|
848
|
+
protoOf(IncompleteLocalDate).get_dayOfYear_3ke6gp_k$ = function () {
|
|
849
|
+
return this.dayOfYear_1;
|
|
846
850
|
};
|
|
847
|
-
protoOf(IncompleteLocalDate).
|
|
848
|
-
var year = requireParsedField(this.
|
|
849
|
-
var dayOfYear = this.
|
|
851
|
+
protoOf(IncompleteLocalDate).toLocalDate_u88f42_k$ = function () {
|
|
852
|
+
var year = requireParsedField(this.get_year_woy26e_k$(), 'year');
|
|
853
|
+
var dayOfYear = this.dayOfYear_1;
|
|
850
854
|
var tmp;
|
|
851
855
|
if (dayOfYear == null) {
|
|
852
|
-
tmp = LocalDate_init_$Create$(year, requireParsedField(this.
|
|
856
|
+
tmp = LocalDate_init_$Create$(year, requireParsedField(this.get_monthNumber_nb47ls_k$(), 'monthNumber'), requireParsedField(this.day_1, 'day'));
|
|
853
857
|
} else {
|
|
854
858
|
// Inline function 'kotlin.also' call
|
|
855
|
-
var this_0 = plus_0(LocalDate_init_$Create$(year, 1, 1), dayOfYear - 1 | 0, Companion_getInstance_3().
|
|
856
|
-
if (!(this_0.
|
|
859
|
+
var this_0 = plus_0(LocalDate_init_$Create$(year, 1, 1), dayOfYear - 1 | 0, Companion_getInstance_3().DAY_1);
|
|
860
|
+
if (!(this_0.year_1 === year)) {
|
|
857
861
|
throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is not a valid day of year for the year ' + year));
|
|
858
862
|
}
|
|
859
|
-
if (!(this.
|
|
860
|
-
throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is ' + this_0.
|
|
863
|
+
if (!(this.get_monthNumber_nb47ls_k$() == null) && !(get_number(this_0.get_month_ivc8d3_k$()) === this.get_monthNumber_nb47ls_k$())) {
|
|
864
|
+
throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is ' + this_0.get_month_ivc8d3_k$().toString() + ', ') + ('but ' + this.get_monthNumber_nb47ls_k$() + ' was specified as the month number'));
|
|
861
865
|
}
|
|
862
|
-
if (!(this.
|
|
863
|
-
throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is the day ' + this_0.
|
|
866
|
+
if (!(this.day_1 == null) && !(this_0.day_1 === this.day_1)) {
|
|
867
|
+
throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is the day ' + this_0.day_1 + ' of ' + this_0.get_month_ivc8d3_k$().toString() + ', ') + ('but ' + this.day_1 + ' was specified as the day of month'));
|
|
864
868
|
}
|
|
865
869
|
tmp = this_0;
|
|
866
870
|
}
|
|
867
871
|
var date = tmp;
|
|
868
|
-
var tmp0_safe_receiver = this.
|
|
872
|
+
var tmp0_safe_receiver = this.dayOfWeek_1;
|
|
869
873
|
if (tmp0_safe_receiver == null)
|
|
870
874
|
null;
|
|
871
875
|
else {
|
|
872
876
|
// Inline function 'kotlin.let' call
|
|
873
|
-
if (!(tmp0_safe_receiver === get_isoDayNumber(date.
|
|
874
|
-
throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of week is ' + DayOfWeek_0(tmp0_safe_receiver).toString() + ' but the date is ' + date.toString() + ', which is a ' + date.
|
|
877
|
+
if (!(tmp0_safe_receiver === get_isoDayNumber(date.get_dayOfWeek_3kfgci_k$()))) {
|
|
878
|
+
throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of week is ' + DayOfWeek_0(tmp0_safe_receiver).toString() + ' but the date is ' + date.toString() + ', which is a ' + date.get_dayOfWeek_3kfgci_k$().toString()));
|
|
875
879
|
}
|
|
876
880
|
}
|
|
877
881
|
return date;
|
|
878
882
|
};
|
|
879
|
-
protoOf(IncompleteLocalDate).
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
882
|
-
this.
|
|
883
|
-
this.
|
|
884
|
-
this.
|
|
883
|
+
protoOf(IncompleteLocalDate).populateFrom_bxnzqu_k$ = function (date) {
|
|
884
|
+
this.set_year_8yykwv_k$(date.year_1);
|
|
885
|
+
this.set_monthNumber_nufdv5_k$(get_number(date.get_month_ivc8d3_k$()));
|
|
886
|
+
this.day_1 = date.day_1;
|
|
887
|
+
this.dayOfWeek_1 = get_isoDayNumber(date.get_dayOfWeek_3kfgci_k$());
|
|
888
|
+
this.dayOfYear_1 = date.get_dayOfYear_3ke6gp_k$();
|
|
885
889
|
};
|
|
886
|
-
protoOf(IncompleteLocalDate).
|
|
887
|
-
return new IncompleteLocalDate(this.
|
|
890
|
+
protoOf(IncompleteLocalDate).copy_1tks5_k$ = function () {
|
|
891
|
+
return new IncompleteLocalDate(this.yearMonth_1.copy_1tks5_k$(), this.day_1, this.dayOfWeek_1, this.dayOfYear_1);
|
|
888
892
|
};
|
|
889
893
|
protoOf(IncompleteLocalDate).equals = function (other) {
|
|
890
894
|
var tmp;
|
|
@@ -892,194 +896,194 @@ protoOf(IncompleteLocalDate).equals = function (other) {
|
|
|
892
896
|
var tmp_1;
|
|
893
897
|
var tmp_2;
|
|
894
898
|
if (other instanceof IncompleteLocalDate) {
|
|
895
|
-
tmp_2 = this.
|
|
899
|
+
tmp_2 = this.yearMonth_1.equals(other.yearMonth_1);
|
|
896
900
|
} else {
|
|
897
901
|
tmp_2 = false;
|
|
898
902
|
}
|
|
899
903
|
if (tmp_2) {
|
|
900
|
-
tmp_1 = this.
|
|
904
|
+
tmp_1 = this.day_1 == other.day_1;
|
|
901
905
|
} else {
|
|
902
906
|
tmp_1 = false;
|
|
903
907
|
}
|
|
904
908
|
if (tmp_1) {
|
|
905
|
-
tmp_0 = this.
|
|
909
|
+
tmp_0 = this.dayOfWeek_1 == other.dayOfWeek_1;
|
|
906
910
|
} else {
|
|
907
911
|
tmp_0 = false;
|
|
908
912
|
}
|
|
909
913
|
if (tmp_0) {
|
|
910
|
-
tmp = this.
|
|
914
|
+
tmp = this.dayOfYear_1 == other.dayOfYear_1;
|
|
911
915
|
} else {
|
|
912
916
|
tmp = false;
|
|
913
917
|
}
|
|
914
918
|
return tmp;
|
|
915
919
|
};
|
|
916
920
|
protoOf(IncompleteLocalDate).hashCode = function () {
|
|
917
|
-
var tmp = imul(this.
|
|
921
|
+
var tmp = imul(this.yearMonth_1.hashCode(), 29791);
|
|
918
922
|
// Inline function 'kotlin.hashCode' call
|
|
919
|
-
var tmp0_safe_receiver = this.
|
|
923
|
+
var tmp0_safe_receiver = this.day_1;
|
|
920
924
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
921
925
|
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
922
926
|
var tmp_0 = tmp + imul(tmp$ret$0, 961) | 0;
|
|
923
927
|
// Inline function 'kotlin.hashCode' call
|
|
924
|
-
var tmp0_safe_receiver_0 = this.
|
|
928
|
+
var tmp0_safe_receiver_0 = this.dayOfWeek_1;
|
|
925
929
|
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
926
930
|
var tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
|
|
927
931
|
var tmp_1 = tmp_0 + imul(tmp$ret$1, 31) | 0;
|
|
928
932
|
// Inline function 'kotlin.hashCode' call
|
|
929
|
-
var tmp0_safe_receiver_1 = this.
|
|
933
|
+
var tmp0_safe_receiver_1 = this.dayOfYear_1;
|
|
930
934
|
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
|
|
931
935
|
return tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0;
|
|
932
936
|
};
|
|
933
937
|
protoOf(IncompleteLocalDate).toString = function () {
|
|
934
938
|
var tmp;
|
|
935
|
-
if (this.
|
|
936
|
-
var tmp_0 = this.
|
|
937
|
-
var tmp0_elvis_lhs = this.
|
|
939
|
+
if (this.dayOfYear_1 == null) {
|
|
940
|
+
var tmp_0 = this.yearMonth_1.toString();
|
|
941
|
+
var tmp0_elvis_lhs = this.day_1;
|
|
938
942
|
var tmp_1 = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
|
|
939
|
-
var tmp1_elvis_lhs = this.
|
|
943
|
+
var tmp1_elvis_lhs = this.dayOfWeek_1;
|
|
940
944
|
tmp = tmp_0 + '-' + tmp_1 + ' (day of week is ' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs) + ')';
|
|
941
|
-
} else if (this.
|
|
942
|
-
var tmp2_elvis_lhs = this.
|
|
945
|
+
} else if (this.day_1 == null && this.get_monthNumber_nb47ls_k$() == null) {
|
|
946
|
+
var tmp2_elvis_lhs = this.yearMonth_1.year_1;
|
|
943
947
|
var tmp_2 = toString(tmp2_elvis_lhs == null ? '??' : tmp2_elvis_lhs);
|
|
944
|
-
var tmp_3 = this.
|
|
945
|
-
var tmp3_elvis_lhs = this.
|
|
948
|
+
var tmp_3 = this.dayOfYear_1;
|
|
949
|
+
var tmp3_elvis_lhs = this.dayOfWeek_1;
|
|
946
950
|
tmp = '(' + tmp_2 + ')-' + tmp_3 + ' (day of week is ' + toString(tmp3_elvis_lhs == null ? '??' : tmp3_elvis_lhs) + ')';
|
|
947
951
|
} else {
|
|
948
|
-
var tmp_4 = this.
|
|
949
|
-
var tmp4_elvis_lhs = this.
|
|
952
|
+
var tmp_4 = this.yearMonth_1.toString();
|
|
953
|
+
var tmp4_elvis_lhs = this.day_1;
|
|
950
954
|
var tmp_5 = toString(tmp4_elvis_lhs == null ? '??' : tmp4_elvis_lhs);
|
|
951
|
-
var tmp5_elvis_lhs = this.
|
|
952
|
-
tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.
|
|
955
|
+
var tmp5_elvis_lhs = this.dayOfWeek_1;
|
|
956
|
+
tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.dayOfYear_1 + ')';
|
|
953
957
|
}
|
|
954
958
|
return tmp;
|
|
955
959
|
};
|
|
956
|
-
protoOf(IncompleteLocalDate).
|
|
957
|
-
this.
|
|
960
|
+
protoOf(IncompleteLocalDate).set_year_8yykwv_k$ = function (_set____db54di) {
|
|
961
|
+
this.yearMonth_1.year_1 = _set____db54di;
|
|
958
962
|
};
|
|
959
|
-
protoOf(IncompleteLocalDate).
|
|
960
|
-
return this.
|
|
963
|
+
protoOf(IncompleteLocalDate).get_year_woy26e_k$ = function () {
|
|
964
|
+
return this.yearMonth_1.year_1;
|
|
961
965
|
};
|
|
962
|
-
protoOf(IncompleteLocalDate).
|
|
963
|
-
this.
|
|
966
|
+
protoOf(IncompleteLocalDate).set_monthNumber_nufdv5_k$ = function (_set____db54di) {
|
|
967
|
+
this.yearMonth_1.monthNumber_1 = _set____db54di;
|
|
964
968
|
};
|
|
965
|
-
protoOf(IncompleteLocalDate).
|
|
966
|
-
return this.
|
|
969
|
+
protoOf(IncompleteLocalDate).get_monthNumber_nb47ls_k$ = function () {
|
|
970
|
+
return this.yearMonth_1.monthNumber_1;
|
|
967
971
|
};
|
|
968
972
|
function Companion_6() {
|
|
969
973
|
}
|
|
970
|
-
protoOf(Companion_6).
|
|
974
|
+
protoOf(Companion_6).build_o3smjo_k$ = function (block) {
|
|
971
975
|
var builder = new Builder(new AppendableFormatStructure());
|
|
972
976
|
block(builder);
|
|
973
|
-
return new LocalDateFormat(builder.
|
|
977
|
+
return new LocalDateFormat(builder.build_1k0s4u_k$());
|
|
974
978
|
};
|
|
975
979
|
var Companion_instance_6;
|
|
976
980
|
function Companion_getInstance_6() {
|
|
977
981
|
return Companion_instance_6;
|
|
978
982
|
}
|
|
979
983
|
function Builder(actualBuilder) {
|
|
980
|
-
this.
|
|
984
|
+
this.actualBuilder_1 = actualBuilder;
|
|
981
985
|
}
|
|
982
|
-
protoOf(Builder).
|
|
983
|
-
return this.
|
|
986
|
+
protoOf(Builder).get_actualBuilder_7qypdo_k$ = function () {
|
|
987
|
+
return this.actualBuilder_1;
|
|
984
988
|
};
|
|
985
|
-
protoOf(Builder).
|
|
986
|
-
return this.
|
|
989
|
+
protoOf(Builder).addFormatStructureForDate_t2v9hh_k$ = function (structure) {
|
|
990
|
+
return this.actualBuilder_1.add_b6pdwl_k$(structure);
|
|
987
991
|
};
|
|
988
992
|
function LocalDateFormat(actualFormat) {
|
|
989
993
|
AbstractDateTimeFormat.call(this);
|
|
990
|
-
this.
|
|
994
|
+
this.actualFormat_1 = actualFormat;
|
|
991
995
|
}
|
|
992
|
-
protoOf(LocalDateFormat).
|
|
993
|
-
return this.
|
|
996
|
+
protoOf(LocalDateFormat).get_actualFormat_d0ha3y_k$ = function () {
|
|
997
|
+
return this.actualFormat_1;
|
|
994
998
|
};
|
|
995
|
-
protoOf(LocalDateFormat).
|
|
999
|
+
protoOf(LocalDateFormat).intermediateFromValue_zbgnn0_k$ = function (value) {
|
|
996
1000
|
// Inline function 'kotlin.apply' call
|
|
997
1001
|
var this_0 = new IncompleteLocalDate();
|
|
998
|
-
this_0.
|
|
1002
|
+
this_0.populateFrom_bxnzqu_k$(value);
|
|
999
1003
|
return this_0;
|
|
1000
1004
|
};
|
|
1001
|
-
protoOf(LocalDateFormat).
|
|
1002
|
-
return this.
|
|
1005
|
+
protoOf(LocalDateFormat).intermediateFromValue_816pep_k$ = function (value) {
|
|
1006
|
+
return this.intermediateFromValue_zbgnn0_k$(value instanceof LocalDate ? value : THROW_CCE());
|
|
1003
1007
|
};
|
|
1004
|
-
protoOf(LocalDateFormat).
|
|
1005
|
-
return intermediate.
|
|
1008
|
+
protoOf(LocalDateFormat).valueFromIntermediate_ehjimk_k$ = function (intermediate) {
|
|
1009
|
+
return intermediate.toLocalDate_u88f42_k$();
|
|
1006
1010
|
};
|
|
1007
|
-
protoOf(LocalDateFormat).
|
|
1008
|
-
return this.
|
|
1011
|
+
protoOf(LocalDateFormat).valueFromIntermediate_60ox3m_k$ = function (intermediate) {
|
|
1012
|
+
return this.valueFromIntermediate_ehjimk_k$(intermediate instanceof IncompleteLocalDate ? intermediate : THROW_CCE());
|
|
1009
1013
|
};
|
|
1010
|
-
protoOf(LocalDateFormat).
|
|
1014
|
+
protoOf(LocalDateFormat).get_emptyIntermediate_lysuyr_k$ = function () {
|
|
1011
1015
|
return get_emptyIncompleteLocalDate();
|
|
1012
1016
|
};
|
|
1013
1017
|
function AbstractWithDateBuilder() {
|
|
1014
1018
|
}
|
|
1015
1019
|
function DayDirective(padding) {
|
|
1016
|
-
var tmp = DateFields_getInstance().
|
|
1020
|
+
var tmp = DateFields_getInstance().day_1;
|
|
1017
1021
|
// Inline function 'kotlinx.datetime.format.minDigits' call
|
|
1018
1022
|
var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
|
|
1019
1023
|
// Inline function 'kotlinx.datetime.format.spaces' call
|
|
1020
1024
|
var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
|
|
1021
1025
|
UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
|
|
1022
|
-
this.
|
|
1026
|
+
this.padding_1 = padding;
|
|
1023
1027
|
}
|
|
1024
1028
|
protoOf(DayDirective).equals = function (other) {
|
|
1025
1029
|
var tmp;
|
|
1026
1030
|
if (other instanceof DayDirective) {
|
|
1027
|
-
tmp = this.
|
|
1031
|
+
tmp = this.padding_1.equals(other.padding_1);
|
|
1028
1032
|
} else {
|
|
1029
1033
|
tmp = false;
|
|
1030
1034
|
}
|
|
1031
1035
|
return tmp;
|
|
1032
1036
|
};
|
|
1033
1037
|
protoOf(DayDirective).hashCode = function () {
|
|
1034
|
-
return this.
|
|
1038
|
+
return this.padding_1.hashCode();
|
|
1035
1039
|
};
|
|
1036
1040
|
function DateFieldContainer$_get_day_$ref_2ebhxx() {
|
|
1037
1041
|
return constructCallableReference(function (p0) {
|
|
1038
|
-
return p0.
|
|
1039
|
-
}, 1, 0,
|
|
1042
|
+
return p0.get_day_18j7il_k$();
|
|
1043
|
+
}, 1, 0, 36);
|
|
1040
1044
|
}
|
|
1041
1045
|
function DateFieldContainer$_set_day_$ref_s0jsax() {
|
|
1042
1046
|
return constructCallableReference(function (p0, p1) {
|
|
1043
|
-
p0.
|
|
1047
|
+
p0.set_day_420fh8_k$(p1);
|
|
1044
1048
|
return Unit_instance;
|
|
1045
|
-
}, 2, 0,
|
|
1049
|
+
}, 2, 0, 37);
|
|
1046
1050
|
}
|
|
1047
1051
|
function DateFieldContainer$_get_dayOfWeek_$ref_thwqom() {
|
|
1048
1052
|
return constructCallableReference(function (p0) {
|
|
1049
|
-
return p0.
|
|
1050
|
-
}, 1, 0,
|
|
1053
|
+
return p0.get_dayOfWeek_3kfgci_k$();
|
|
1054
|
+
}, 1, 0, 38);
|
|
1051
1055
|
}
|
|
1052
1056
|
function DateFieldContainer$_set_dayOfWeek_$ref_ea586a() {
|
|
1053
1057
|
return constructCallableReference(function (p0, p1) {
|
|
1054
|
-
p0.
|
|
1058
|
+
p0.set_dayOfWeek_rlg9ap_k$(p1);
|
|
1055
1059
|
return Unit_instance;
|
|
1056
|
-
}, 2, 0,
|
|
1060
|
+
}, 2, 0, 39);
|
|
1057
1061
|
}
|
|
1058
1062
|
function DateFieldContainer$_get_dayOfYear_$ref_2m6gfz() {
|
|
1059
1063
|
return constructCallableReference(function (p0) {
|
|
1060
|
-
return p0.
|
|
1061
|
-
}, 1, 0,
|
|
1064
|
+
return p0.get_dayOfYear_3ke6gp_k$();
|
|
1065
|
+
}, 1, 0, 40);
|
|
1062
1066
|
}
|
|
1063
1067
|
function DateFieldContainer$_set_dayOfYear_$ref_cll22d() {
|
|
1064
1068
|
return constructCallableReference(function (p0, p1) {
|
|
1065
|
-
p0.
|
|
1069
|
+
p0.set_dayOfYear_b6dvlk_k$(p1);
|
|
1066
1070
|
return Unit_instance;
|
|
1067
|
-
}, 2, 0,
|
|
1071
|
+
}, 2, 0, 41);
|
|
1068
1072
|
}
|
|
1069
1073
|
function DateFields() {
|
|
1070
1074
|
DateFields_instance = this;
|
|
1071
1075
|
var tmp = this;
|
|
1072
1076
|
var tmp_0 = KMutableProperty1;
|
|
1073
1077
|
var tmp_1 = DateFieldContainer$_get_day_$ref_2ebhxx();
|
|
1074
|
-
tmp.
|
|
1078
|
+
tmp.day_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('day', 1, tmp_0, tmp_1, DateFieldContainer$_set_day_$ref_s0jsax())), 1, 31);
|
|
1075
1079
|
var tmp_2 = this;
|
|
1076
1080
|
var tmp_3 = KMutableProperty1;
|
|
1077
1081
|
var tmp_4 = DateFieldContainer$_get_dayOfWeek_$ref_thwqom();
|
|
1078
|
-
tmp_2.
|
|
1082
|
+
tmp_2.isoDayOfWeek_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfWeek', 1, tmp_3, tmp_4, DateFieldContainer$_set_dayOfWeek_$ref_ea586a())), 1, 7);
|
|
1079
1083
|
var tmp_5 = this;
|
|
1080
1084
|
var tmp_6 = KMutableProperty1;
|
|
1081
1085
|
var tmp_7 = DateFieldContainer$_get_dayOfYear_$ref_2m6gfz();
|
|
1082
|
-
tmp_5.
|
|
1086
|
+
tmp_5.dayOfYear_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfYear', 1, tmp_6, tmp_7, DateFieldContainer$_set_dayOfYear_$ref_cll22d())), 1, 366);
|
|
1083
1087
|
}
|
|
1084
1088
|
var DateFields_instance;
|
|
1085
1089
|
function DateFields_getInstance() {
|
|
@@ -1090,38 +1094,38 @@ function DateFields_getInstance() {
|
|
|
1090
1094
|
function ISO_DATE$delegate$lambda() {
|
|
1091
1095
|
_init_properties_LocalDateFormat_kt__k1uk9u();
|
|
1092
1096
|
var tmp = Companion_instance_6;
|
|
1093
|
-
return tmp.
|
|
1097
|
+
return tmp.build_o3smjo_k$(ISO_DATE$delegate$lambda$lambda);
|
|
1094
1098
|
}
|
|
1095
1099
|
function ISO_DATE$delegate$lambda$lambda($this$build) {
|
|
1096
1100
|
_init_properties_LocalDateFormat_kt__k1uk9u();
|
|
1097
|
-
$this$build.
|
|
1101
|
+
$this$build.year$default_dp2ctv_k$();
|
|
1098
1102
|
char($this$build, _Char___init__impl__6a9atx(45));
|
|
1099
|
-
$this$build.
|
|
1103
|
+
$this$build.monthNumber$default_9sd2sh_k$();
|
|
1100
1104
|
char($this$build, _Char___init__impl__6a9atx(45));
|
|
1101
|
-
$this$build.
|
|
1105
|
+
$this$build.day$default_z5jqi1_k$();
|
|
1102
1106
|
return Unit_instance;
|
|
1103
1107
|
}
|
|
1104
1108
|
function _get_ISO_DATE_$ref_powsum() {
|
|
1105
1109
|
return constructCallableReference(function () {
|
|
1106
1110
|
return get_ISO_DATE();
|
|
1107
|
-
}, 0, 0,
|
|
1111
|
+
}, 0, 0, 42);
|
|
1108
1112
|
}
|
|
1109
1113
|
function ISO_DATE_BASIC$delegate$lambda() {
|
|
1110
1114
|
_init_properties_LocalDateFormat_kt__k1uk9u();
|
|
1111
1115
|
var tmp = Companion_instance_6;
|
|
1112
|
-
return tmp.
|
|
1116
|
+
return tmp.build_o3smjo_k$(ISO_DATE_BASIC$delegate$lambda$lambda);
|
|
1113
1117
|
}
|
|
1114
1118
|
function ISO_DATE_BASIC$delegate$lambda$lambda($this$build) {
|
|
1115
1119
|
_init_properties_LocalDateFormat_kt__k1uk9u();
|
|
1116
|
-
$this$build.
|
|
1117
|
-
$this$build.
|
|
1118
|
-
$this$build.
|
|
1120
|
+
$this$build.year$default_dp2ctv_k$();
|
|
1121
|
+
$this$build.monthNumber$default_9sd2sh_k$();
|
|
1122
|
+
$this$build.day$default_z5jqi1_k$();
|
|
1119
1123
|
return Unit_instance;
|
|
1120
1124
|
}
|
|
1121
1125
|
function _get_ISO_DATE_BASIC_$ref_3fs8eb() {
|
|
1122
1126
|
return constructCallableReference(function () {
|
|
1123
1127
|
return get_ISO_DATE_BASIC();
|
|
1124
|
-
}, 0, 0,
|
|
1128
|
+
}, 0, 0, 43);
|
|
1125
1129
|
}
|
|
1126
1130
|
var properties_initialized_LocalDateFormat_kt_fmnlhc;
|
|
1127
1131
|
function _init_properties_LocalDateFormat_kt__k1uk9u() {
|
|
@@ -1143,49 +1147,49 @@ function get_ISO_YEAR_MONTH() {
|
|
|
1143
1147
|
var tmp = KProperty0;
|
|
1144
1148
|
// Inline function 'kotlin.getValue' call
|
|
1145
1149
|
getPropertyCallableRef('ISO_YEAR_MONTH', 0, tmp, _get_ISO_YEAR_MONTH_$ref_y3tv9a(), null);
|
|
1146
|
-
return tmp0.
|
|
1150
|
+
return tmp0.get_value_j01efc_k$();
|
|
1147
1151
|
}
|
|
1148
1152
|
var ISO_YEAR_MONTH$delegate;
|
|
1149
1153
|
function IncompleteYearMonth(year, monthNumber) {
|
|
1150
1154
|
year = year === VOID ? null : year;
|
|
1151
1155
|
monthNumber = monthNumber === VOID ? null : monthNumber;
|
|
1152
|
-
this.
|
|
1153
|
-
this.
|
|
1156
|
+
this.year_1 = year;
|
|
1157
|
+
this.monthNumber_1 = monthNumber;
|
|
1154
1158
|
}
|
|
1155
|
-
protoOf(IncompleteYearMonth).
|
|
1156
|
-
this.
|
|
1159
|
+
protoOf(IncompleteYearMonth).set_year_8yykwv_k$ = function (_set____db54di) {
|
|
1160
|
+
this.year_1 = _set____db54di;
|
|
1157
1161
|
};
|
|
1158
|
-
protoOf(IncompleteYearMonth).
|
|
1159
|
-
return this.
|
|
1162
|
+
protoOf(IncompleteYearMonth).get_year_woy26e_k$ = function () {
|
|
1163
|
+
return this.year_1;
|
|
1160
1164
|
};
|
|
1161
|
-
protoOf(IncompleteYearMonth).
|
|
1162
|
-
this.
|
|
1165
|
+
protoOf(IncompleteYearMonth).set_monthNumber_nufdv5_k$ = function (_set____db54di) {
|
|
1166
|
+
this.monthNumber_1 = _set____db54di;
|
|
1163
1167
|
};
|
|
1164
|
-
protoOf(IncompleteYearMonth).
|
|
1165
|
-
return this.
|
|
1168
|
+
protoOf(IncompleteYearMonth).get_monthNumber_nb47ls_k$ = function () {
|
|
1169
|
+
return this.monthNumber_1;
|
|
1166
1170
|
};
|
|
1167
|
-
protoOf(IncompleteYearMonth).
|
|
1168
|
-
var year = requireParsedField(this.
|
|
1169
|
-
var month = requireParsedField(this.
|
|
1171
|
+
protoOf(IncompleteYearMonth).toYearMonth_ii3sag_k$ = function () {
|
|
1172
|
+
var year = requireParsedField(this.year_1, 'year');
|
|
1173
|
+
var month = requireParsedField(this.monthNumber_1, 'monthNumber');
|
|
1170
1174
|
return YearMonth_init_$Create$(year, month);
|
|
1171
1175
|
};
|
|
1172
|
-
protoOf(IncompleteYearMonth).
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1176
|
+
protoOf(IncompleteYearMonth).populateFrom_e9ixa8_k$ = function (yearMonth) {
|
|
1177
|
+
this.year_1 = yearMonth.year_1;
|
|
1178
|
+
this.monthNumber_1 = get_number(yearMonth.get_month_ivc8d3_k$());
|
|
1175
1179
|
};
|
|
1176
|
-
protoOf(IncompleteYearMonth).
|
|
1177
|
-
return new IncompleteYearMonth(this.
|
|
1180
|
+
protoOf(IncompleteYearMonth).copy_1tks5_k$ = function () {
|
|
1181
|
+
return new IncompleteYearMonth(this.year_1, this.monthNumber_1);
|
|
1178
1182
|
};
|
|
1179
1183
|
protoOf(IncompleteYearMonth).equals = function (other) {
|
|
1180
1184
|
var tmp;
|
|
1181
1185
|
var tmp_0;
|
|
1182
1186
|
if (other instanceof IncompleteYearMonth) {
|
|
1183
|
-
tmp_0 = this.
|
|
1187
|
+
tmp_0 = this.year_1 == other.year_1;
|
|
1184
1188
|
} else {
|
|
1185
1189
|
tmp_0 = false;
|
|
1186
1190
|
}
|
|
1187
1191
|
if (tmp_0) {
|
|
1188
|
-
tmp = this.
|
|
1192
|
+
tmp = this.monthNumber_1 == other.monthNumber_1;
|
|
1189
1193
|
} else {
|
|
1190
1194
|
tmp = false;
|
|
1191
1195
|
}
|
|
@@ -1193,19 +1197,19 @@ protoOf(IncompleteYearMonth).equals = function (other) {
|
|
|
1193
1197
|
};
|
|
1194
1198
|
protoOf(IncompleteYearMonth).hashCode = function () {
|
|
1195
1199
|
// Inline function 'kotlin.hashCode' call
|
|
1196
|
-
var tmp0_safe_receiver = this.
|
|
1200
|
+
var tmp0_safe_receiver = this.year_1;
|
|
1197
1201
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
1198
1202
|
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
1199
1203
|
var tmp = imul(tmp$ret$0, 31);
|
|
1200
1204
|
// Inline function 'kotlin.hashCode' call
|
|
1201
|
-
var tmp0_safe_receiver_0 = this.
|
|
1205
|
+
var tmp0_safe_receiver_0 = this.monthNumber_1;
|
|
1202
1206
|
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
1203
1207
|
return tmp + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
|
|
1204
1208
|
};
|
|
1205
1209
|
protoOf(IncompleteYearMonth).toString = function () {
|
|
1206
|
-
var tmp0_elvis_lhs = this.
|
|
1210
|
+
var tmp0_elvis_lhs = this.year_1;
|
|
1207
1211
|
var tmp = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
|
|
1208
|
-
var tmp1_elvis_lhs = this.
|
|
1212
|
+
var tmp1_elvis_lhs = this.monthNumber_1;
|
|
1209
1213
|
return tmp + '-' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs);
|
|
1210
1214
|
};
|
|
1211
1215
|
function requireParsedField(field, name) {
|
|
@@ -1219,131 +1223,131 @@ function AbstractWithYearMonthBuilder() {
|
|
|
1219
1223
|
}
|
|
1220
1224
|
function Companion_7() {
|
|
1221
1225
|
}
|
|
1222
|
-
protoOf(Companion_7).
|
|
1226
|
+
protoOf(Companion_7).build_xjwtmz_k$ = function (block) {
|
|
1223
1227
|
var builder = new Builder_0(new AppendableFormatStructure());
|
|
1224
1228
|
block(builder);
|
|
1225
|
-
return new YearMonthFormat(builder.
|
|
1229
|
+
return new YearMonthFormat(builder.build_1k0s4u_k$());
|
|
1226
1230
|
};
|
|
1227
1231
|
var Companion_instance_7;
|
|
1228
1232
|
function Companion_getInstance_7() {
|
|
1229
1233
|
return Companion_instance_7;
|
|
1230
1234
|
}
|
|
1231
1235
|
function Builder_0(actualBuilder) {
|
|
1232
|
-
this.
|
|
1236
|
+
this.actualBuilder_1 = actualBuilder;
|
|
1233
1237
|
}
|
|
1234
|
-
protoOf(Builder_0).
|
|
1235
|
-
return this.
|
|
1238
|
+
protoOf(Builder_0).get_actualBuilder_7qypdo_k$ = function () {
|
|
1239
|
+
return this.actualBuilder_1;
|
|
1236
1240
|
};
|
|
1237
|
-
protoOf(Builder_0).
|
|
1238
|
-
return this.
|
|
1241
|
+
protoOf(Builder_0).addFormatStructureForYearMonth_t4rp63_k$ = function (structure) {
|
|
1242
|
+
return this.actualBuilder_1.add_b6pdwl_k$(structure);
|
|
1239
1243
|
};
|
|
1240
1244
|
function YearMonthFormat(actualFormat) {
|
|
1241
1245
|
AbstractDateTimeFormat.call(this);
|
|
1242
|
-
this.
|
|
1246
|
+
this.actualFormat_1 = actualFormat;
|
|
1243
1247
|
}
|
|
1244
|
-
protoOf(YearMonthFormat).
|
|
1245
|
-
return this.
|
|
1248
|
+
protoOf(YearMonthFormat).get_actualFormat_d0ha3y_k$ = function () {
|
|
1249
|
+
return this.actualFormat_1;
|
|
1246
1250
|
};
|
|
1247
|
-
protoOf(YearMonthFormat).
|
|
1251
|
+
protoOf(YearMonthFormat).intermediateFromValue_eaxafe_k$ = function (value) {
|
|
1248
1252
|
// Inline function 'kotlin.apply' call
|
|
1249
1253
|
var this_0 = new IncompleteYearMonth();
|
|
1250
|
-
this_0.
|
|
1254
|
+
this_0.populateFrom_e9ixa8_k$(value);
|
|
1251
1255
|
return this_0;
|
|
1252
1256
|
};
|
|
1253
|
-
protoOf(YearMonthFormat).
|
|
1254
|
-
return this.
|
|
1257
|
+
protoOf(YearMonthFormat).intermediateFromValue_816pep_k$ = function (value) {
|
|
1258
|
+
return this.intermediateFromValue_eaxafe_k$(value instanceof YearMonth ? value : THROW_CCE());
|
|
1255
1259
|
};
|
|
1256
|
-
protoOf(YearMonthFormat).
|
|
1257
|
-
return intermediate.
|
|
1260
|
+
protoOf(YearMonthFormat).valueFromIntermediate_2revsy_k$ = function (intermediate) {
|
|
1261
|
+
return intermediate.toYearMonth_ii3sag_k$();
|
|
1258
1262
|
};
|
|
1259
|
-
protoOf(YearMonthFormat).
|
|
1260
|
-
return this.
|
|
1263
|
+
protoOf(YearMonthFormat).valueFromIntermediate_60ox3m_k$ = function (intermediate) {
|
|
1264
|
+
return this.valueFromIntermediate_2revsy_k$(intermediate instanceof IncompleteYearMonth ? intermediate : THROW_CCE());
|
|
1261
1265
|
};
|
|
1262
|
-
protoOf(YearMonthFormat).
|
|
1266
|
+
protoOf(YearMonthFormat).get_emptyIntermediate_lysuyr_k$ = function () {
|
|
1263
1267
|
return get_emptyIncompleteYearMonth();
|
|
1264
1268
|
};
|
|
1265
1269
|
function YearDirective(padding, isYearOfEra) {
|
|
1266
1270
|
isYearOfEra = isYearOfEra === VOID ? false : isYearOfEra;
|
|
1267
|
-
var tmp = YearMonthFields_getInstance().
|
|
1271
|
+
var tmp = YearMonthFields_getInstance().year_1;
|
|
1268
1272
|
// Inline function 'kotlinx.datetime.format.minDigits' call
|
|
1269
1273
|
var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 4 : 1;
|
|
1270
1274
|
// Inline function 'kotlinx.datetime.format.spaces' call
|
|
1271
1275
|
var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 4 : null;
|
|
1272
1276
|
SignedIntFieldFormatDirective.call(this, tmp, tmp_0, null, tmp$ret$1, 4);
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1277
|
+
this.padding_1 = padding;
|
|
1278
|
+
this.isYearOfEra_1 = isYearOfEra;
|
|
1275
1279
|
}
|
|
1276
1280
|
protoOf(YearDirective).equals = function (other) {
|
|
1277
1281
|
var tmp;
|
|
1278
1282
|
var tmp_0;
|
|
1279
1283
|
if (other instanceof YearDirective) {
|
|
1280
|
-
tmp_0 = this.
|
|
1284
|
+
tmp_0 = this.padding_1.equals(other.padding_1);
|
|
1281
1285
|
} else {
|
|
1282
1286
|
tmp_0 = false;
|
|
1283
1287
|
}
|
|
1284
1288
|
if (tmp_0) {
|
|
1285
|
-
tmp = this.
|
|
1289
|
+
tmp = this.isYearOfEra_1 === other.isYearOfEra_1;
|
|
1286
1290
|
} else {
|
|
1287
1291
|
tmp = false;
|
|
1288
1292
|
}
|
|
1289
1293
|
return tmp;
|
|
1290
1294
|
};
|
|
1291
1295
|
protoOf(YearDirective).hashCode = function () {
|
|
1292
|
-
return imul(this.
|
|
1296
|
+
return imul(this.padding_1.hashCode(), 31) + getBooleanHashCode(this.isYearOfEra_1) | 0;
|
|
1293
1297
|
};
|
|
1294
1298
|
function MonthDirective(padding) {
|
|
1295
|
-
var tmp = YearMonthFields_getInstance().
|
|
1299
|
+
var tmp = YearMonthFields_getInstance().month_1;
|
|
1296
1300
|
// Inline function 'kotlinx.datetime.format.minDigits' call
|
|
1297
1301
|
var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
|
|
1298
1302
|
// Inline function 'kotlinx.datetime.format.spaces' call
|
|
1299
1303
|
var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
|
|
1300
1304
|
UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
|
|
1301
|
-
this.
|
|
1305
|
+
this.padding_1 = padding;
|
|
1302
1306
|
}
|
|
1303
1307
|
protoOf(MonthDirective).equals = function (other) {
|
|
1304
1308
|
var tmp;
|
|
1305
1309
|
if (other instanceof MonthDirective) {
|
|
1306
|
-
tmp = this.
|
|
1310
|
+
tmp = this.padding_1.equals(other.padding_1);
|
|
1307
1311
|
} else {
|
|
1308
1312
|
tmp = false;
|
|
1309
1313
|
}
|
|
1310
1314
|
return tmp;
|
|
1311
1315
|
};
|
|
1312
1316
|
protoOf(MonthDirective).hashCode = function () {
|
|
1313
|
-
return this.
|
|
1317
|
+
return this.padding_1.hashCode();
|
|
1314
1318
|
};
|
|
1315
1319
|
function YearMonthFieldContainer$_get_year_$ref_7j3zdj() {
|
|
1316
1320
|
return constructCallableReference(function (p0) {
|
|
1317
|
-
return p0.
|
|
1318
|
-
}, 1, 0,
|
|
1321
|
+
return p0.get_year_woy26e_k$();
|
|
1322
|
+
}, 1, 0, 44);
|
|
1319
1323
|
}
|
|
1320
1324
|
function YearMonthFieldContainer$_set_year_$ref_kc0aub() {
|
|
1321
1325
|
return constructCallableReference(function (p0, p1) {
|
|
1322
|
-
p0.
|
|
1326
|
+
p0.set_year_8yykwv_k$(p1);
|
|
1323
1327
|
return Unit_instance;
|
|
1324
|
-
}, 2, 0,
|
|
1328
|
+
}, 2, 0, 45);
|
|
1325
1329
|
}
|
|
1326
1330
|
function YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5() {
|
|
1327
1331
|
return constructCallableReference(function (p0) {
|
|
1328
|
-
return p0.
|
|
1329
|
-
}, 1, 0,
|
|
1332
|
+
return p0.get_monthNumber_nb47ls_k$();
|
|
1333
|
+
}, 1, 0, 46);
|
|
1330
1334
|
}
|
|
1331
1335
|
function YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl() {
|
|
1332
1336
|
return constructCallableReference(function (p0, p1) {
|
|
1333
|
-
p0.
|
|
1337
|
+
p0.set_monthNumber_nufdv5_k$(p1);
|
|
1334
1338
|
return Unit_instance;
|
|
1335
|
-
}, 2, 0,
|
|
1339
|
+
}, 2, 0, 47);
|
|
1336
1340
|
}
|
|
1337
1341
|
function YearMonthFields() {
|
|
1338
1342
|
YearMonthFields_instance = this;
|
|
1339
1343
|
var tmp = this;
|
|
1340
1344
|
var tmp_0 = KMutableProperty1;
|
|
1341
1345
|
var tmp_1 = YearMonthFieldContainer$_get_year_$ref_7j3zdj();
|
|
1342
|
-
tmp.
|
|
1346
|
+
tmp.year_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('year', 1, tmp_0, tmp_1, YearMonthFieldContainer$_set_year_$ref_kc0aub())));
|
|
1343
1347
|
var tmp_2 = this;
|
|
1344
1348
|
var tmp_3 = KMutableProperty1;
|
|
1345
1349
|
var tmp_4 = YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5();
|
|
1346
|
-
tmp_2.
|
|
1350
|
+
tmp_2.month_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('monthNumber', 1, tmp_3, tmp_4, YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl())), 1, 12);
|
|
1347
1351
|
}
|
|
1348
1352
|
var YearMonthFields_instance;
|
|
1349
1353
|
function YearMonthFields_getInstance() {
|
|
@@ -1354,19 +1358,19 @@ function YearMonthFields_getInstance() {
|
|
|
1354
1358
|
function ISO_YEAR_MONTH$delegate$lambda() {
|
|
1355
1359
|
_init_properties_YearMonthFormat_kt__i0mmu0();
|
|
1356
1360
|
var tmp = Companion_instance_7;
|
|
1357
|
-
return tmp.
|
|
1361
|
+
return tmp.build_xjwtmz_k$(ISO_YEAR_MONTH$delegate$lambda$lambda);
|
|
1358
1362
|
}
|
|
1359
1363
|
function ISO_YEAR_MONTH$delegate$lambda$lambda($this$build) {
|
|
1360
1364
|
_init_properties_YearMonthFormat_kt__i0mmu0();
|
|
1361
|
-
$this$build.
|
|
1365
|
+
$this$build.year$default_dp2ctv_k$();
|
|
1362
1366
|
char($this$build, _Char___init__impl__6a9atx(45));
|
|
1363
|
-
$this$build.
|
|
1367
|
+
$this$build.monthNumber$default_9sd2sh_k$();
|
|
1364
1368
|
return Unit_instance;
|
|
1365
1369
|
}
|
|
1366
1370
|
function _get_ISO_YEAR_MONTH_$ref_y3tv9a() {
|
|
1367
1371
|
return constructCallableReference(function () {
|
|
1368
1372
|
return get_ISO_YEAR_MONTH();
|
|
1369
|
-
}, 0, 0,
|
|
1373
|
+
}, 0, 0, 48);
|
|
1370
1374
|
}
|
|
1371
1375
|
var properties_initialized_YearMonthFormat_kt_fp0mk6;
|
|
1372
1376
|
function _init_properties_YearMonthFormat_kt__i0mmu0() {
|
|
@@ -1410,21 +1414,21 @@ function isLeapYear(year) {
|
|
|
1410
1414
|
function AppendableFormatStructure() {
|
|
1411
1415
|
var tmp = this;
|
|
1412
1416
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1413
|
-
tmp.
|
|
1417
|
+
tmp.list_1 = ArrayList_init_$Create$();
|
|
1414
1418
|
}
|
|
1415
|
-
protoOf(AppendableFormatStructure).
|
|
1416
|
-
return new ConcatenatedFormatStructure(this.
|
|
1419
|
+
protoOf(AppendableFormatStructure).build_1k0s4u_k$ = function () {
|
|
1420
|
+
return new ConcatenatedFormatStructure(this.list_1);
|
|
1417
1421
|
};
|
|
1418
|
-
protoOf(AppendableFormatStructure).
|
|
1422
|
+
protoOf(AppendableFormatStructure).add_b6pdwl_k$ = function (format) {
|
|
1419
1423
|
if (isInterface(format, NonConcatenatedFormatStructure))
|
|
1420
|
-
this.
|
|
1424
|
+
this.list_1.add_utx5q5_k$(format);
|
|
1421
1425
|
else {
|
|
1422
1426
|
if (format instanceof ConcatenatedFormatStructure) {
|
|
1423
1427
|
// Inline function 'kotlin.collections.forEach' call
|
|
1424
|
-
var _iterator__ex2g4s = format.
|
|
1425
|
-
while (_iterator__ex2g4s.
|
|
1426
|
-
var element = _iterator__ex2g4s.
|
|
1427
|
-
this.
|
|
1428
|
+
var _iterator__ex2g4s = format.formats_1.iterator_jk1svi_k$();
|
|
1429
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1430
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1431
|
+
this.list_1.add_utx5q5_k$(element);
|
|
1428
1432
|
}
|
|
1429
1433
|
} else {
|
|
1430
1434
|
noWhenBranchMatchedException();
|
|
@@ -1432,93 +1436,93 @@ protoOf(AppendableFormatStructure).w56 = function (format) {
|
|
|
1432
1436
|
}
|
|
1433
1437
|
};
|
|
1434
1438
|
function UnsignedIntFieldFormatDirective(field, minDigits, spacePadding) {
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1439
|
+
this.field_1 = field;
|
|
1440
|
+
this.minDigits_1 = minDigits;
|
|
1441
|
+
this.spacePadding_1 = spacePadding;
|
|
1442
|
+
this.maxDigits_1 = this.field_1.maxDigits_1;
|
|
1439
1443
|
// Inline function 'kotlin.require' call
|
|
1440
|
-
if (!(this.
|
|
1441
|
-
var message = 'The minimum number of digits (' + this.
|
|
1444
|
+
if (!(this.minDigits_1 >= 0)) {
|
|
1445
|
+
var message = 'The minimum number of digits (' + this.minDigits_1 + ') is negative';
|
|
1442
1446
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1443
1447
|
}
|
|
1444
1448
|
// Inline function 'kotlin.require' call
|
|
1445
|
-
if (!(this.
|
|
1446
|
-
var message_0 = 'The maximum number of digits (' + this.
|
|
1449
|
+
if (!(this.maxDigits_1 >= this.minDigits_1)) {
|
|
1450
|
+
var message_0 = 'The maximum number of digits (' + this.maxDigits_1 + ') is less than the minimum number of digits (' + this.minDigits_1 + ')';
|
|
1447
1451
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1448
1452
|
}
|
|
1449
|
-
if (!(this.
|
|
1453
|
+
if (!(this.spacePadding_1 == null)) {
|
|
1450
1454
|
// Inline function 'kotlin.require' call
|
|
1451
|
-
if (!(this.
|
|
1452
|
-
var message_1 = 'The space padding (' + this.
|
|
1455
|
+
if (!(this.spacePadding_1 > this.minDigits_1)) {
|
|
1456
|
+
var message_1 = 'The space padding (' + this.spacePadding_1 + ') should be more than the minimum number of digits (' + this.minDigits_1 + ')';
|
|
1453
1457
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1454
1458
|
}
|
|
1455
1459
|
}
|
|
1456
1460
|
}
|
|
1457
|
-
protoOf(UnsignedIntFieldFormatDirective).
|
|
1458
|
-
var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.
|
|
1459
|
-
return !(this.
|
|
1461
|
+
protoOf(UnsignedIntFieldFormatDirective).formatter_tykoui_k$ = function () {
|
|
1462
|
+
var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.field_1.accessor_1), this.minDigits_1);
|
|
1463
|
+
return !(this.spacePadding_1 == null) ? new SpacePaddedFormatter(formatter, this.spacePadding_1) : formatter;
|
|
1460
1464
|
};
|
|
1461
|
-
protoOf(UnsignedIntFieldFormatDirective).
|
|
1462
|
-
return spaceAndZeroPaddedUnsignedInt(this.
|
|
1465
|
+
protoOf(UnsignedIntFieldFormatDirective).parser_ggn3z5_k$ = function () {
|
|
1466
|
+
return spaceAndZeroPaddedUnsignedInt(this.minDigits_1, this.maxDigits_1, this.spacePadding_1, this.field_1.accessor_1, this.field_1.name_1);
|
|
1463
1467
|
};
|
|
1464
1468
|
function SignedIntFieldFormatDirective(field, minDigits, maxDigits, spacePadding, outputPlusOnExceededWidth) {
|
|
1465
|
-
this.
|
|
1466
|
-
this.
|
|
1467
|
-
this.
|
|
1468
|
-
this.
|
|
1469
|
-
this.
|
|
1469
|
+
this.field_1 = field;
|
|
1470
|
+
this.minDigits_1 = minDigits;
|
|
1471
|
+
this.maxDigits_1 = maxDigits;
|
|
1472
|
+
this.spacePadding_1 = spacePadding;
|
|
1473
|
+
this.outputPlusOnExceededWidth_1 = outputPlusOnExceededWidth;
|
|
1470
1474
|
// Inline function 'kotlin.require' call
|
|
1471
|
-
if (!(this.
|
|
1472
|
-
var message = 'The minimum number of digits (' + this.
|
|
1475
|
+
if (!(this.minDigits_1 == null || this.minDigits_1 >= 0)) {
|
|
1476
|
+
var message = 'The minimum number of digits (' + this.minDigits_1 + ') is negative';
|
|
1473
1477
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1474
1478
|
}
|
|
1475
1479
|
// Inline function 'kotlin.require' call
|
|
1476
|
-
if (!(this.
|
|
1477
|
-
var message_0 = 'The maximum number of digits (' + this.
|
|
1480
|
+
if (!(this.maxDigits_1 == null || this.minDigits_1 == null || this.maxDigits_1 >= this.minDigits_1)) {
|
|
1481
|
+
var message_0 = 'The maximum number of digits (' + this.maxDigits_1 + ') is less than the minimum number of digits (' + this.minDigits_1 + ')';
|
|
1478
1482
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1479
1483
|
}
|
|
1480
1484
|
}
|
|
1481
|
-
protoOf(SignedIntFieldFormatDirective).
|
|
1482
|
-
var tmp = Accessor$getterNotNull$ref_0(this.
|
|
1483
|
-
var tmp0_elvis_lhs = this.
|
|
1484
|
-
var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.
|
|
1485
|
-
return !(this.
|
|
1485
|
+
protoOf(SignedIntFieldFormatDirective).formatter_tykoui_k$ = function () {
|
|
1486
|
+
var tmp = Accessor$getterNotNull$ref_0(this.field_1.get_accessor_3q8qa8_k$());
|
|
1487
|
+
var tmp0_elvis_lhs = this.minDigits_1;
|
|
1488
|
+
var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.outputPlusOnExceededWidth_1);
|
|
1489
|
+
return !(this.spacePadding_1 == null) ? new SpacePaddedFormatter(formatter, this.spacePadding_1) : formatter;
|
|
1486
1490
|
};
|
|
1487
|
-
protoOf(SignedIntFieldFormatDirective).
|
|
1488
|
-
return SignedIntParser(this.
|
|
1491
|
+
protoOf(SignedIntFieldFormatDirective).parser_ggn3z5_k$ = function () {
|
|
1492
|
+
return SignedIntParser(this.minDigits_1, this.maxDigits_1, this.spacePadding_1, this.field_1.get_accessor_3q8qa8_k$(), this.field_1.get_name_woqyms_k$(), this.outputPlusOnExceededWidth_1);
|
|
1489
1493
|
};
|
|
1490
1494
|
function GenericFieldSpec(accessor, name, defaultValue, sign) {
|
|
1491
|
-
name = name === VOID ? accessor.
|
|
1495
|
+
name = name === VOID ? accessor.get_name_woqyms_k$() : name;
|
|
1492
1496
|
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1493
1497
|
sign = sign === VOID ? null : sign;
|
|
1494
1498
|
AbstractFieldSpec.call(this);
|
|
1495
|
-
this.
|
|
1496
|
-
this.
|
|
1497
|
-
this.
|
|
1498
|
-
this.
|
|
1499
|
+
this.accessor_1 = accessor;
|
|
1500
|
+
this.name_1 = name;
|
|
1501
|
+
this.defaultValue_1 = defaultValue;
|
|
1502
|
+
this.sign_1 = sign;
|
|
1499
1503
|
}
|
|
1500
|
-
protoOf(GenericFieldSpec).
|
|
1501
|
-
return this.
|
|
1504
|
+
protoOf(GenericFieldSpec).get_accessor_3q8qa8_k$ = function () {
|
|
1505
|
+
return this.accessor_1;
|
|
1502
1506
|
};
|
|
1503
|
-
protoOf(GenericFieldSpec).
|
|
1504
|
-
return this.
|
|
1507
|
+
protoOf(GenericFieldSpec).get_name_woqyms_k$ = function () {
|
|
1508
|
+
return this.name_1;
|
|
1505
1509
|
};
|
|
1506
|
-
protoOf(GenericFieldSpec).
|
|
1507
|
-
return this.
|
|
1510
|
+
protoOf(GenericFieldSpec).get_defaultValue_6cv1mv_k$ = function () {
|
|
1511
|
+
return this.defaultValue_1;
|
|
1508
1512
|
};
|
|
1509
1513
|
function PropertyAccessor(property, name) {
|
|
1510
1514
|
name = name === VOID ? property.callableName : name;
|
|
1511
|
-
this.
|
|
1512
|
-
this.
|
|
1515
|
+
this.property_1 = property;
|
|
1516
|
+
this.name_1 = name;
|
|
1513
1517
|
}
|
|
1514
|
-
protoOf(PropertyAccessor).
|
|
1515
|
-
return this.
|
|
1518
|
+
protoOf(PropertyAccessor).get_name_woqyms_k$ = function () {
|
|
1519
|
+
return this.name_1;
|
|
1516
1520
|
};
|
|
1517
|
-
protoOf(PropertyAccessor).
|
|
1518
|
-
var oldValue = this.
|
|
1521
|
+
protoOf(PropertyAccessor).trySetWithoutReassigning_of2ay6_k$ = function (container, newValue) {
|
|
1522
|
+
var oldValue = this.property_1.get(container);
|
|
1519
1523
|
var tmp;
|
|
1520
1524
|
if (oldValue === null) {
|
|
1521
|
-
this.
|
|
1525
|
+
this.property_1.set(container, newValue);
|
|
1522
1526
|
tmp = null;
|
|
1523
1527
|
} else if (equals(oldValue, newValue)) {
|
|
1524
1528
|
tmp = null;
|
|
@@ -1527,119 +1531,119 @@ protoOf(PropertyAccessor).f5a = function (container, newValue) {
|
|
|
1527
1531
|
}
|
|
1528
1532
|
return tmp;
|
|
1529
1533
|
};
|
|
1530
|
-
protoOf(PropertyAccessor).
|
|
1531
|
-
return this.
|
|
1534
|
+
protoOf(PropertyAccessor).trySetWithoutReassigning_itlg4a_k$ = function (container, newValue) {
|
|
1535
|
+
return this.trySetWithoutReassigning_of2ay6_k$(container, newValue);
|
|
1532
1536
|
};
|
|
1533
|
-
protoOf(PropertyAccessor).
|
|
1534
|
-
return this.
|
|
1537
|
+
protoOf(PropertyAccessor).getter_8mvnhr_k$ = function (container) {
|
|
1538
|
+
return this.property_1.get(container);
|
|
1535
1539
|
};
|
|
1536
1540
|
function UnsignedFieldSpec(accessor, minValue, maxValue, name, defaultValue, sign) {
|
|
1537
|
-
name = name === VOID ? accessor.
|
|
1541
|
+
name = name === VOID ? accessor.get_name_woqyms_k$() : name;
|
|
1538
1542
|
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1539
1543
|
sign = sign === VOID ? null : sign;
|
|
1540
1544
|
AbstractFieldSpec.call(this);
|
|
1541
|
-
this.
|
|
1542
|
-
this.
|
|
1543
|
-
this.
|
|
1544
|
-
this.
|
|
1545
|
-
this.
|
|
1546
|
-
this.
|
|
1545
|
+
this.accessor_1 = accessor;
|
|
1546
|
+
this.minValue_1 = minValue;
|
|
1547
|
+
this.maxValue_1 = maxValue;
|
|
1548
|
+
this.name_1 = name;
|
|
1549
|
+
this.defaultValue_1 = defaultValue;
|
|
1550
|
+
this.sign_1 = sign;
|
|
1547
1551
|
var tmp = this;
|
|
1548
1552
|
var tmp_0;
|
|
1549
|
-
if (this.
|
|
1553
|
+
if (this.maxValue_1 < 10) {
|
|
1550
1554
|
tmp_0 = 1;
|
|
1551
|
-
} else if (this.
|
|
1555
|
+
} else if (this.maxValue_1 < 100) {
|
|
1552
1556
|
tmp_0 = 2;
|
|
1553
|
-
} else if (this.
|
|
1557
|
+
} else if (this.maxValue_1 < 1000) {
|
|
1554
1558
|
tmp_0 = 3;
|
|
1555
1559
|
} else {
|
|
1556
|
-
throw IllegalArgumentException_init_$Create$('Max value ' + this.
|
|
1560
|
+
throw IllegalArgumentException_init_$Create$('Max value ' + this.maxValue_1 + ' is too large');
|
|
1557
1561
|
}
|
|
1558
|
-
tmp.
|
|
1562
|
+
tmp.maxDigits_1 = tmp_0;
|
|
1559
1563
|
}
|
|
1560
|
-
protoOf(UnsignedFieldSpec).
|
|
1561
|
-
return this.
|
|
1564
|
+
protoOf(UnsignedFieldSpec).get_accessor_3q8qa8_k$ = function () {
|
|
1565
|
+
return this.accessor_1;
|
|
1562
1566
|
};
|
|
1563
|
-
protoOf(UnsignedFieldSpec).
|
|
1564
|
-
return this.
|
|
1567
|
+
protoOf(UnsignedFieldSpec).get_name_woqyms_k$ = function () {
|
|
1568
|
+
return this.name_1;
|
|
1565
1569
|
};
|
|
1566
|
-
protoOf(UnsignedFieldSpec).
|
|
1567
|
-
return this.
|
|
1570
|
+
protoOf(UnsignedFieldSpec).get_defaultValue_6cv1mv_k$ = function () {
|
|
1571
|
+
return this.defaultValue_1;
|
|
1568
1572
|
};
|
|
1569
1573
|
function Accessor() {
|
|
1570
1574
|
}
|
|
1571
1575
|
function AbstractFieldSpec() {
|
|
1572
1576
|
}
|
|
1573
1577
|
protoOf(AbstractFieldSpec).toString = function () {
|
|
1574
|
-
return 'The field ' + this.
|
|
1578
|
+
return 'The field ' + this.get_name_woqyms_k$() + ' (default value is ' + toString_1(this.get_defaultValue_6cv1mv_k$()) + ')';
|
|
1575
1579
|
};
|
|
1576
1580
|
function Accessor$getterNotNull$ref(p0) {
|
|
1577
1581
|
return constructCallableReference(function (p0_0) {
|
|
1578
|
-
return p0.
|
|
1579
|
-
}, 1, 0,
|
|
1582
|
+
return p0.getterNotNull_rjcshh_k$(p0_0);
|
|
1583
|
+
}, 1, 0, 49, 'getterNotNull', [p0]);
|
|
1580
1584
|
}
|
|
1581
1585
|
function Accessor$getterNotNull$ref_0(p0) {
|
|
1582
1586
|
return constructCallableReference(function (p0_0) {
|
|
1583
|
-
return p0.
|
|
1584
|
-
}, 1, 0,
|
|
1587
|
+
return p0.getterNotNull_rjcshh_k$(p0_0);
|
|
1588
|
+
}, 1, 0, 49, 'getterNotNull', [p0]);
|
|
1585
1589
|
}
|
|
1586
1590
|
function CachedFormatStructure(formats) {
|
|
1587
1591
|
ConcatenatedFormatStructure.call(this, formats);
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1592
|
+
this.cachedFormatter_1 = protoOf(ConcatenatedFormatStructure).formatter_tykoui_k$.call(this);
|
|
1593
|
+
this.cachedParser_1 = protoOf(ConcatenatedFormatStructure).parser_ggn3z5_k$.call(this);
|
|
1590
1594
|
}
|
|
1591
|
-
protoOf(CachedFormatStructure).
|
|
1592
|
-
return this.
|
|
1595
|
+
protoOf(CachedFormatStructure).formatter_tykoui_k$ = function () {
|
|
1596
|
+
return this.cachedFormatter_1;
|
|
1593
1597
|
};
|
|
1594
|
-
protoOf(CachedFormatStructure).
|
|
1595
|
-
return this.
|
|
1598
|
+
protoOf(CachedFormatStructure).parser_ggn3z5_k$ = function () {
|
|
1599
|
+
return this.cachedParser_1;
|
|
1596
1600
|
};
|
|
1597
1601
|
function BasicFormatStructure(directive) {
|
|
1598
|
-
this.
|
|
1602
|
+
this.directive_1 = directive;
|
|
1599
1603
|
}
|
|
1600
1604
|
protoOf(BasicFormatStructure).toString = function () {
|
|
1601
|
-
return 'BasicFormatStructure(' + toString(this.
|
|
1605
|
+
return 'BasicFormatStructure(' + toString(this.directive_1) + ')';
|
|
1602
1606
|
};
|
|
1603
1607
|
protoOf(BasicFormatStructure).equals = function (other) {
|
|
1604
1608
|
var tmp;
|
|
1605
1609
|
if (other instanceof BasicFormatStructure) {
|
|
1606
|
-
tmp = equals(this.
|
|
1610
|
+
tmp = equals(this.directive_1, other.directive_1);
|
|
1607
1611
|
} else {
|
|
1608
1612
|
tmp = false;
|
|
1609
1613
|
}
|
|
1610
1614
|
return tmp;
|
|
1611
1615
|
};
|
|
1612
1616
|
protoOf(BasicFormatStructure).hashCode = function () {
|
|
1613
|
-
return hashCode(this.
|
|
1617
|
+
return hashCode(this.directive_1);
|
|
1614
1618
|
};
|
|
1615
|
-
protoOf(BasicFormatStructure).
|
|
1616
|
-
return this.
|
|
1619
|
+
protoOf(BasicFormatStructure).parser_ggn3z5_k$ = function () {
|
|
1620
|
+
return this.directive_1.parser_ggn3z5_k$();
|
|
1617
1621
|
};
|
|
1618
|
-
protoOf(BasicFormatStructure).
|
|
1619
|
-
return this.
|
|
1622
|
+
protoOf(BasicFormatStructure).formatter_tykoui_k$ = function () {
|
|
1623
|
+
return this.directive_1.formatter_tykoui_k$();
|
|
1620
1624
|
};
|
|
1621
1625
|
function ConstantFormatStructure(string) {
|
|
1622
|
-
this.
|
|
1626
|
+
this.string_1 = string;
|
|
1623
1627
|
}
|
|
1624
1628
|
protoOf(ConstantFormatStructure).toString = function () {
|
|
1625
|
-
return 'ConstantFormatStructure(' + this.
|
|
1629
|
+
return 'ConstantFormatStructure(' + this.string_1 + ')';
|
|
1626
1630
|
};
|
|
1627
1631
|
protoOf(ConstantFormatStructure).equals = function (other) {
|
|
1628
1632
|
var tmp;
|
|
1629
1633
|
if (other instanceof ConstantFormatStructure) {
|
|
1630
|
-
tmp = this.
|
|
1634
|
+
tmp = this.string_1 === other.string_1;
|
|
1631
1635
|
} else {
|
|
1632
1636
|
tmp = false;
|
|
1633
1637
|
}
|
|
1634
1638
|
return tmp;
|
|
1635
1639
|
};
|
|
1636
1640
|
protoOf(ConstantFormatStructure).hashCode = function () {
|
|
1637
|
-
return getStringHashCode(this.
|
|
1641
|
+
return getStringHashCode(this.string_1);
|
|
1638
1642
|
};
|
|
1639
|
-
protoOf(ConstantFormatStructure).
|
|
1643
|
+
protoOf(ConstantFormatStructure).parser_ggn3z5_k$ = function () {
|
|
1640
1644
|
var tmp;
|
|
1641
1645
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1642
|
-
var this_0 = this.
|
|
1646
|
+
var this_0 = this.string_1;
|
|
1643
1647
|
if (charSequenceLength(this_0) === 0) {
|
|
1644
1648
|
tmp = emptyList();
|
|
1645
1649
|
} else {
|
|
@@ -1648,8 +1652,8 @@ protoOf(ConstantFormatStructure).m56 = function () {
|
|
|
1648
1652
|
// Inline function 'kotlin.apply' call
|
|
1649
1653
|
var this_1 = ArrayList_init_$Create$();
|
|
1650
1654
|
var tmp_0;
|
|
1651
|
-
if (isAsciiDigit(charCodeAt(this.
|
|
1652
|
-
var tmp0 = this.
|
|
1655
|
+
if (isAsciiDigit(charCodeAt(this.string_1, 0))) {
|
|
1656
|
+
var tmp0 = this.string_1;
|
|
1653
1657
|
var tmp$ret$5;
|
|
1654
1658
|
$l$block: {
|
|
1655
1659
|
// Inline function 'kotlin.text.takeWhile' call
|
|
@@ -1668,8 +1672,8 @@ protoOf(ConstantFormatStructure).m56 = function () {
|
|
|
1668
1672
|
while (inductionVariable < last);
|
|
1669
1673
|
tmp$ret$5 = tmp0;
|
|
1670
1674
|
}
|
|
1671
|
-
this_1.
|
|
1672
|
-
var tmp0_0 = this.
|
|
1675
|
+
this_1.add_utx5q5_k$(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$5))));
|
|
1676
|
+
var tmp0_0 = this.string_1;
|
|
1673
1677
|
var tmp$ret$7;
|
|
1674
1678
|
$l$block_0: {
|
|
1675
1679
|
// Inline function 'kotlin.text.dropWhile' call
|
|
@@ -1690,7 +1694,7 @@ protoOf(ConstantFormatStructure).m56 = function () {
|
|
|
1690
1694
|
}
|
|
1691
1695
|
tmp_0 = tmp$ret$7;
|
|
1692
1696
|
} else {
|
|
1693
|
-
tmp_0 = this.
|
|
1697
|
+
tmp_0 = this.string_1;
|
|
1694
1698
|
}
|
|
1695
1699
|
var suffix = tmp_0;
|
|
1696
1700
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -1713,7 +1717,7 @@ protoOf(ConstantFormatStructure).m56 = function () {
|
|
|
1713
1717
|
while (0 <= inductionVariable_1);
|
|
1714
1718
|
tmp$ret$10 = '';
|
|
1715
1719
|
}
|
|
1716
|
-
this_1.
|
|
1720
|
+
this_1.add_utx5q5_k$(new PlainStringParserOperation(tmp$ret$10));
|
|
1717
1721
|
var tmp$ret$12;
|
|
1718
1722
|
$l$block_2: {
|
|
1719
1723
|
// Inline function 'kotlin.text.takeLastWhile' call
|
|
@@ -1731,63 +1735,63 @@ protoOf(ConstantFormatStructure).m56 = function () {
|
|
|
1731
1735
|
while (0 <= inductionVariable_2);
|
|
1732
1736
|
tmp$ret$12 = suffix;
|
|
1733
1737
|
}
|
|
1734
|
-
this_1.
|
|
1738
|
+
this_1.add_utx5q5_k$(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$12))));
|
|
1735
1739
|
} else {
|
|
1736
|
-
this_1.
|
|
1740
|
+
this_1.add_utx5q5_k$(new PlainStringParserOperation(suffix));
|
|
1737
1741
|
}
|
|
1738
1742
|
}
|
|
1739
|
-
tmp = this_1.
|
|
1743
|
+
tmp = this_1.build_nmwvly_k$();
|
|
1740
1744
|
}
|
|
1741
1745
|
return new ParserStructure(tmp, emptyList());
|
|
1742
1746
|
};
|
|
1743
|
-
protoOf(ConstantFormatStructure).
|
|
1744
|
-
return new ConstantStringFormatterStructure(this.
|
|
1747
|
+
protoOf(ConstantFormatStructure).formatter_tykoui_k$ = function () {
|
|
1748
|
+
return new ConstantStringFormatterStructure(this.string_1);
|
|
1745
1749
|
};
|
|
1746
1750
|
function ConcatenatedFormatStructure(formats) {
|
|
1747
|
-
this.
|
|
1751
|
+
this.formats_1 = formats;
|
|
1748
1752
|
}
|
|
1749
1753
|
protoOf(ConcatenatedFormatStructure).toString = function () {
|
|
1750
|
-
return 'ConcatenatedFormatStructure(' + joinToString(this.
|
|
1754
|
+
return 'ConcatenatedFormatStructure(' + joinToString(this.formats_1, ', ') + ')';
|
|
1751
1755
|
};
|
|
1752
1756
|
protoOf(ConcatenatedFormatStructure).equals = function (other) {
|
|
1753
1757
|
var tmp;
|
|
1754
1758
|
if (other instanceof ConcatenatedFormatStructure) {
|
|
1755
|
-
tmp = equals(this.
|
|
1759
|
+
tmp = equals(this.formats_1, other.formats_1);
|
|
1756
1760
|
} else {
|
|
1757
1761
|
tmp = false;
|
|
1758
1762
|
}
|
|
1759
1763
|
return tmp;
|
|
1760
1764
|
};
|
|
1761
1765
|
protoOf(ConcatenatedFormatStructure).hashCode = function () {
|
|
1762
|
-
return hashCode(this.
|
|
1766
|
+
return hashCode(this.formats_1);
|
|
1763
1767
|
};
|
|
1764
|
-
protoOf(ConcatenatedFormatStructure).
|
|
1768
|
+
protoOf(ConcatenatedFormatStructure).parser_ggn3z5_k$ = function () {
|
|
1765
1769
|
// Inline function 'kotlin.collections.map' call
|
|
1766
|
-
var this_0 = this.
|
|
1770
|
+
var this_0 = this.formats_1;
|
|
1767
1771
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1768
1772
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1769
|
-
var _iterator__ex2g4s = this_0.
|
|
1770
|
-
while (_iterator__ex2g4s.
|
|
1771
|
-
var item = _iterator__ex2g4s.
|
|
1772
|
-
var tmp$ret$2 = item.
|
|
1773
|
-
destination.
|
|
1773
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
1774
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1775
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
1776
|
+
var tmp$ret$2 = item.parser_ggn3z5_k$();
|
|
1777
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
1774
1778
|
}
|
|
1775
1779
|
return concat(destination);
|
|
1776
1780
|
};
|
|
1777
|
-
protoOf(ConcatenatedFormatStructure).
|
|
1781
|
+
protoOf(ConcatenatedFormatStructure).formatter_tykoui_k$ = function () {
|
|
1778
1782
|
// Inline function 'kotlin.collections.map' call
|
|
1779
|
-
var this_0 = this.
|
|
1783
|
+
var this_0 = this.formats_1;
|
|
1780
1784
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1781
1785
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1782
|
-
var _iterator__ex2g4s = this_0.
|
|
1783
|
-
while (_iterator__ex2g4s.
|
|
1784
|
-
var item = _iterator__ex2g4s.
|
|
1785
|
-
var tmp$ret$2 = item.
|
|
1786
|
-
destination.
|
|
1786
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
1787
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1788
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
1789
|
+
var tmp$ret$2 = item.formatter_tykoui_k$();
|
|
1790
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
1787
1791
|
}
|
|
1788
1792
|
var formatters = destination;
|
|
1789
1793
|
var tmp;
|
|
1790
|
-
if (formatters.
|
|
1794
|
+
if (formatters.get_size_woubt6_k$() === 1) {
|
|
1791
1795
|
tmp = single(formatters);
|
|
1792
1796
|
} else {
|
|
1793
1797
|
tmp = new ConcatenatedFormatter(formatters);
|
|
@@ -1799,130 +1803,130 @@ function NonConcatenatedFormatStructure() {
|
|
|
1799
1803
|
function FormatterStructure() {
|
|
1800
1804
|
}
|
|
1801
1805
|
function SpacePaddedFormatter(formatter, padding) {
|
|
1802
|
-
this.
|
|
1803
|
-
this.
|
|
1806
|
+
this.formatter_1 = formatter;
|
|
1807
|
+
this.padding_1 = padding;
|
|
1804
1808
|
}
|
|
1805
|
-
protoOf(SpacePaddedFormatter).
|
|
1809
|
+
protoOf(SpacePaddedFormatter).format_bqb1zl_k$ = function (obj, builder, minusNotRequired) {
|
|
1806
1810
|
// Inline function 'kotlin.let' call
|
|
1807
1811
|
var it = StringBuilder_init_$Create$();
|
|
1808
|
-
this.
|
|
1812
|
+
this.formatter_1.format_bqb1zl_k$(obj, it, minusNotRequired);
|
|
1809
1813
|
var string = it.toString();
|
|
1810
1814
|
// Inline function 'kotlin.repeat' call
|
|
1811
|
-
var times = this.
|
|
1815
|
+
var times = this.padding_1 - string.length | 0;
|
|
1812
1816
|
var inductionVariable = 0;
|
|
1813
1817
|
if (inductionVariable < times)
|
|
1814
1818
|
do {
|
|
1815
1819
|
var index = inductionVariable;
|
|
1816
1820
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1817
|
-
builder.
|
|
1821
|
+
builder.append_58al37_k$(_Char___init__impl__6a9atx(32));
|
|
1818
1822
|
}
|
|
1819
1823
|
while (inductionVariable < times);
|
|
1820
|
-
builder.
|
|
1824
|
+
builder.append_jgojdo_k$(string);
|
|
1821
1825
|
};
|
|
1822
1826
|
function ConcatenatedFormatter(formatters) {
|
|
1823
|
-
this.
|
|
1827
|
+
this.formatters_1 = formatters;
|
|
1824
1828
|
}
|
|
1825
|
-
protoOf(ConcatenatedFormatter).
|
|
1826
|
-
var _iterator__ex2g4s = this.
|
|
1827
|
-
while (_iterator__ex2g4s.
|
|
1828
|
-
var formatter = _iterator__ex2g4s.
|
|
1829
|
-
formatter.
|
|
1829
|
+
protoOf(ConcatenatedFormatter).format_bqb1zl_k$ = function (obj, builder, minusNotRequired) {
|
|
1830
|
+
var _iterator__ex2g4s = this.formatters_1.iterator_jk1svi_k$();
|
|
1831
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1832
|
+
var formatter = _iterator__ex2g4s.next_20eer_k$();
|
|
1833
|
+
formatter.format_bqb1zl_k$(obj, builder, minusNotRequired);
|
|
1830
1834
|
}
|
|
1831
1835
|
};
|
|
1832
1836
|
function UnsignedIntFormatterStructure(number, zeroPadding) {
|
|
1833
|
-
this.
|
|
1834
|
-
this.
|
|
1837
|
+
this.number_1 = number;
|
|
1838
|
+
this.zeroPadding_1 = zeroPadding;
|
|
1835
1839
|
// Inline function 'kotlin.require' call
|
|
1836
|
-
if (!(this.
|
|
1837
|
-
var message = 'The minimum number of digits (' + this.
|
|
1840
|
+
if (!(this.zeroPadding_1 >= 0)) {
|
|
1841
|
+
var message = 'The minimum number of digits (' + this.zeroPadding_1 + ') is negative';
|
|
1838
1842
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1839
1843
|
}
|
|
1840
1844
|
// Inline function 'kotlin.require' call
|
|
1841
|
-
if (!(this.
|
|
1842
|
-
var message_0 = 'The minimum number of digits (' + this.
|
|
1845
|
+
if (!(this.zeroPadding_1 <= 9)) {
|
|
1846
|
+
var message_0 = 'The minimum number of digits (' + this.zeroPadding_1 + ') exceeds the length of an Int';
|
|
1843
1847
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1844
1848
|
}
|
|
1845
1849
|
}
|
|
1846
|
-
protoOf(UnsignedIntFormatterStructure).
|
|
1847
|
-
var num = this.
|
|
1850
|
+
protoOf(UnsignedIntFormatterStructure).format_bqb1zl_k$ = function (obj, builder, minusNotRequired) {
|
|
1851
|
+
var num = this.number_1(obj);
|
|
1848
1852
|
var numberStr = num.toString();
|
|
1849
1853
|
// Inline function 'kotlin.repeat' call
|
|
1850
|
-
var times = this.
|
|
1854
|
+
var times = this.zeroPadding_1 - numberStr.length | 0;
|
|
1851
1855
|
var inductionVariable = 0;
|
|
1852
1856
|
if (inductionVariable < times)
|
|
1853
1857
|
do {
|
|
1854
1858
|
var index = inductionVariable;
|
|
1855
1859
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1856
|
-
builder.
|
|
1860
|
+
builder.append_58al37_k$(_Char___init__impl__6a9atx(48));
|
|
1857
1861
|
}
|
|
1858
1862
|
while (inductionVariable < times);
|
|
1859
|
-
builder.
|
|
1863
|
+
builder.append_jgojdo_k$(numberStr);
|
|
1860
1864
|
};
|
|
1861
1865
|
function SignedIntFormatterStructure(number, zeroPadding, outputPlusOnExceededWidth) {
|
|
1862
|
-
this.
|
|
1863
|
-
this.
|
|
1864
|
-
this.
|
|
1866
|
+
this.number_1 = number;
|
|
1867
|
+
this.zeroPadding_1 = zeroPadding;
|
|
1868
|
+
this.outputPlusOnExceededWidth_1 = outputPlusOnExceededWidth;
|
|
1865
1869
|
// Inline function 'kotlin.require' call
|
|
1866
|
-
if (!(this.
|
|
1867
|
-
var message = 'The minimum number of digits (' + this.
|
|
1870
|
+
if (!(this.zeroPadding_1 >= 0)) {
|
|
1871
|
+
var message = 'The minimum number of digits (' + this.zeroPadding_1 + ') is negative';
|
|
1868
1872
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1869
1873
|
}
|
|
1870
1874
|
// Inline function 'kotlin.require' call
|
|
1871
|
-
if (!(this.
|
|
1872
|
-
var message_0 = 'The minimum number of digits (' + this.
|
|
1875
|
+
if (!(this.zeroPadding_1 <= 9)) {
|
|
1876
|
+
var message_0 = 'The minimum number of digits (' + this.zeroPadding_1 + ') exceeds the length of an Int';
|
|
1873
1877
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1874
1878
|
}
|
|
1875
1879
|
}
|
|
1876
|
-
protoOf(SignedIntFormatterStructure).
|
|
1880
|
+
protoOf(SignedIntFormatterStructure).format_bqb1zl_k$ = function (obj, builder, minusNotRequired) {
|
|
1877
1881
|
var innerBuilder = StringBuilder_init_$Create$();
|
|
1878
1882
|
// Inline function 'kotlin.let' call
|
|
1879
|
-
var it = this.
|
|
1883
|
+
var it = this.number_1(obj);
|
|
1880
1884
|
var number = minusNotRequired && it < 0 ? -it | 0 : it;
|
|
1881
|
-
if (!(this.
|
|
1882
|
-
innerBuilder.
|
|
1885
|
+
if (!(this.outputPlusOnExceededWidth_1 == null) && number >= get_POWERS_OF_TEN()[this.outputPlusOnExceededWidth_1]) {
|
|
1886
|
+
innerBuilder.append_58al37_k$(_Char___init__impl__6a9atx(43));
|
|
1883
1887
|
}
|
|
1884
1888
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1885
|
-
if (abs(number) < get_POWERS_OF_TEN()[this.
|
|
1889
|
+
if (abs(number) < get_POWERS_OF_TEN()[this.zeroPadding_1 - 1 | 0]) {
|
|
1886
1890
|
if (number >= 0) {
|
|
1887
|
-
innerBuilder.
|
|
1891
|
+
innerBuilder.append_uppzia_k$(number + get_POWERS_OF_TEN()[this.zeroPadding_1] | 0).deleteAt_mq1vvq_k$(0);
|
|
1888
1892
|
} else {
|
|
1889
|
-
innerBuilder.
|
|
1893
|
+
innerBuilder.append_uppzia_k$(number - get_POWERS_OF_TEN()[this.zeroPadding_1] | 0).deleteAt_mq1vvq_k$(1);
|
|
1890
1894
|
}
|
|
1891
1895
|
} else {
|
|
1892
|
-
innerBuilder.
|
|
1896
|
+
innerBuilder.append_uppzia_k$(number);
|
|
1893
1897
|
}
|
|
1894
|
-
builder.
|
|
1898
|
+
builder.append_jgojdo_k$(innerBuilder);
|
|
1895
1899
|
};
|
|
1896
1900
|
function ConstantStringFormatterStructure(string) {
|
|
1897
|
-
this.
|
|
1901
|
+
this.string_1 = string;
|
|
1898
1902
|
}
|
|
1899
|
-
protoOf(ConstantStringFormatterStructure).
|
|
1900
|
-
builder.
|
|
1903
|
+
protoOf(ConstantStringFormatterStructure).format_bqb1zl_k$ = function (obj, builder, minusNotRequired) {
|
|
1904
|
+
builder.append_jgojdo_k$(this.string_1);
|
|
1901
1905
|
};
|
|
1902
1906
|
function ConstantNumberConsumer(expected) {
|
|
1903
1907
|
NumberConsumer.call(this, expected.length, 'the predefined string ' + expected);
|
|
1904
|
-
this.
|
|
1908
|
+
this.expected_1 = expected;
|
|
1905
1909
|
}
|
|
1906
|
-
protoOf(ConstantNumberConsumer).
|
|
1910
|
+
protoOf(ConstantNumberConsumer).consume_o77i9d_k$ = function (storage, input, start, end) {
|
|
1907
1911
|
var tmp;
|
|
1908
1912
|
// Inline function 'kotlin.text.substring' call
|
|
1909
|
-
if (toString(charSequenceSubSequence(input, start, end)) === this.
|
|
1913
|
+
if (toString(charSequenceSubSequence(input, start, end)) === this.expected_1) {
|
|
1910
1914
|
tmp = null;
|
|
1911
1915
|
} else {
|
|
1912
|
-
tmp = new WrongConstant(this.
|
|
1916
|
+
tmp = new WrongConstant(this.expected_1);
|
|
1913
1917
|
}
|
|
1914
1918
|
return tmp;
|
|
1915
1919
|
};
|
|
1916
1920
|
function NumberConsumer(length, whatThisExpects) {
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1921
|
+
this.length_1 = length;
|
|
1922
|
+
this.whatThisExpects_1 = whatThisExpects;
|
|
1919
1923
|
}
|
|
1920
|
-
protoOf(NumberConsumer).
|
|
1921
|
-
return this.
|
|
1924
|
+
protoOf(NumberConsumer).get_length_g42xv3_k$ = function () {
|
|
1925
|
+
return this.length_1;
|
|
1922
1926
|
};
|
|
1923
1927
|
function ExpectedInt() {
|
|
1924
1928
|
}
|
|
1925
|
-
protoOf(ExpectedInt).
|
|
1929
|
+
protoOf(ExpectedInt).errorMessage_jwdivz_k$ = function () {
|
|
1926
1930
|
return 'expected an Int value';
|
|
1927
1931
|
};
|
|
1928
1932
|
var ExpectedInt_instance;
|
|
@@ -1930,31 +1934,31 @@ function ExpectedInt_getInstance() {
|
|
|
1930
1934
|
return ExpectedInt_instance;
|
|
1931
1935
|
}
|
|
1932
1936
|
function TooManyDigits(maxDigits) {
|
|
1933
|
-
this.
|
|
1937
|
+
this.maxDigits_1 = maxDigits;
|
|
1934
1938
|
}
|
|
1935
|
-
protoOf(TooManyDigits).
|
|
1936
|
-
return 'expected at most ' + this.
|
|
1939
|
+
protoOf(TooManyDigits).errorMessage_jwdivz_k$ = function () {
|
|
1940
|
+
return 'expected at most ' + this.maxDigits_1 + ' digits';
|
|
1937
1941
|
};
|
|
1938
1942
|
function TooFewDigits(minDigits) {
|
|
1939
|
-
this.
|
|
1943
|
+
this.minDigits_1 = minDigits;
|
|
1940
1944
|
}
|
|
1941
|
-
protoOf(TooFewDigits).
|
|
1942
|
-
return 'expected at least ' + this.
|
|
1945
|
+
protoOf(TooFewDigits).errorMessage_jwdivz_k$ = function () {
|
|
1946
|
+
return 'expected at least ' + this.minDigits_1 + ' digits';
|
|
1943
1947
|
};
|
|
1944
1948
|
function WrongConstant(expected) {
|
|
1945
|
-
this.
|
|
1949
|
+
this.expected_1 = expected;
|
|
1946
1950
|
}
|
|
1947
|
-
protoOf(WrongConstant).
|
|
1948
|
-
return "expected '" + this.
|
|
1951
|
+
protoOf(WrongConstant).errorMessage_jwdivz_k$ = function () {
|
|
1952
|
+
return "expected '" + this.expected_1 + "'";
|
|
1949
1953
|
};
|
|
1950
1954
|
function Conflicting(conflicting) {
|
|
1951
|
-
this.
|
|
1955
|
+
this.conflicting_1 = conflicting;
|
|
1952
1956
|
}
|
|
1953
|
-
protoOf(Conflicting).
|
|
1954
|
-
return "attempted to overwrite the existing value '" + toString(this.
|
|
1957
|
+
protoOf(Conflicting).errorMessage_jwdivz_k$ = function () {
|
|
1958
|
+
return "attempted to overwrite the existing value '" + toString(this.conflicting_1) + "'";
|
|
1955
1959
|
};
|
|
1956
1960
|
function setWithoutReassigning(_this__u8e3s4, receiver, value) {
|
|
1957
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1961
|
+
var tmp0_elvis_lhs = _this__u8e3s4.trySetWithoutReassigning_itlg4a_k$(receiver, value);
|
|
1958
1962
|
var tmp;
|
|
1959
1963
|
if (tmp0_elvis_lhs == null) {
|
|
1960
1964
|
return null;
|
|
@@ -1967,25 +1971,25 @@ function setWithoutReassigning(_this__u8e3s4, receiver, value) {
|
|
|
1967
1971
|
function UnsignedIntConsumer(minLength, maxLength, setter, name, multiplyByMinus1) {
|
|
1968
1972
|
multiplyByMinus1 = multiplyByMinus1 === VOID ? false : multiplyByMinus1;
|
|
1969
1973
|
NumberConsumer.call(this, minLength == maxLength ? minLength : null, name);
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1972
|
-
this.
|
|
1973
|
-
this.
|
|
1974
|
+
this.minLength_1 = minLength;
|
|
1975
|
+
this.maxLength_1 = maxLength;
|
|
1976
|
+
this.setter_1 = setter;
|
|
1977
|
+
this.multiplyByMinus1__1 = multiplyByMinus1;
|
|
1974
1978
|
// Inline function 'kotlin.require' call
|
|
1975
|
-
if (!(this.
|
|
1976
|
-
var message = 'Invalid length for field ' + this.
|
|
1979
|
+
if (!(this.get_length_g42xv3_k$() == null || numberRangeToNumber(1, 9).contains_7q95ev_k$(this.get_length_g42xv3_k$()))) {
|
|
1980
|
+
var message = 'Invalid length for field ' + this.whatThisExpects_1 + ': ' + this.get_length_g42xv3_k$();
|
|
1977
1981
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1978
1982
|
}
|
|
1979
1983
|
}
|
|
1980
|
-
protoOf(UnsignedIntConsumer).
|
|
1984
|
+
protoOf(UnsignedIntConsumer).consume_o77i9d_k$ = function (storage, input, start, end) {
|
|
1981
1985
|
var tmp;
|
|
1982
|
-
if (!(this.
|
|
1983
|
-
tmp = new TooManyDigits(this.
|
|
1984
|
-
} else if (!(this.
|
|
1985
|
-
tmp = new TooFewDigits(this.
|
|
1986
|
+
if (!(this.maxLength_1 == null) && (end - start | 0) > this.maxLength_1) {
|
|
1987
|
+
tmp = new TooManyDigits(this.maxLength_1);
|
|
1988
|
+
} else if (!(this.minLength_1 == null) && (end - start | 0) < this.minLength_1) {
|
|
1989
|
+
tmp = new TooFewDigits(this.minLength_1);
|
|
1986
1990
|
} else {
|
|
1987
1991
|
var result = parseAsciiIntOrNull(input, start, end);
|
|
1988
|
-
tmp = result == null ? ExpectedInt_instance : setWithoutReassigning(this.
|
|
1992
|
+
tmp = result == null ? ExpectedInt_instance : setWithoutReassigning(this.setter_1, storage, this.multiplyByMinus1__1 ? -result | 0 : result);
|
|
1989
1993
|
}
|
|
1990
1994
|
return tmp;
|
|
1991
1995
|
};
|
|
@@ -2005,8 +2009,8 @@ function parseAsciiIntOrNull(_this__u8e3s4, start, end) {
|
|
|
2005
2009
|
return result;
|
|
2006
2010
|
}
|
|
2007
2011
|
function ParseError(position, message) {
|
|
2008
|
-
this.
|
|
2009
|
-
this.
|
|
2012
|
+
this.position_1 = position;
|
|
2013
|
+
this.message_1 = message;
|
|
2010
2014
|
}
|
|
2011
2015
|
function _ParseResult___init__impl__gvz3cn(value) {
|
|
2012
2016
|
return value;
|
|
@@ -2016,10 +2020,10 @@ function _ParseResult___get_value__impl__86mnxf($this) {
|
|
|
2016
2020
|
}
|
|
2017
2021
|
function Companion_8() {
|
|
2018
2022
|
}
|
|
2019
|
-
protoOf(Companion_8).
|
|
2023
|
+
protoOf(Companion_8).Ok_6vkbj8_k$ = function (indexOfNextUnparsed) {
|
|
2020
2024
|
return _ParseResult___init__impl__gvz3cn(indexOfNextUnparsed);
|
|
2021
2025
|
};
|
|
2022
|
-
protoOf(Companion_8).
|
|
2026
|
+
protoOf(Companion_8).Error_ca056s_k$ = function (position, message) {
|
|
2023
2027
|
return _ParseResult___init__impl__gvz3cn(new ParseError(position, message));
|
|
2024
2028
|
};
|
|
2025
2029
|
var Companion_instance_8;
|
|
@@ -2046,26 +2050,26 @@ function Parser__match_impl_nzt83d($this, input, initialContainer, startIndex) {
|
|
|
2046
2050
|
tmp = tmp0_elvis_lhs;
|
|
2047
2051
|
}
|
|
2048
2052
|
var state = tmp;
|
|
2049
|
-
var output = state.
|
|
2050
|
-
var inputPosition = state.
|
|
2051
|
-
var parserStructure = state.
|
|
2053
|
+
var output = state.output_1.copy_1tks5_k$();
|
|
2054
|
+
var inputPosition = state.inputPosition_1;
|
|
2055
|
+
var parserStructure = state.parserStructure_1;
|
|
2052
2056
|
// Inline function 'kotlin.run' call
|
|
2053
2057
|
$l$block: {
|
|
2054
2058
|
var inductionVariable = 0;
|
|
2055
|
-
var last = parserStructure.
|
|
2059
|
+
var last = parserStructure.operations_1.get_size_woubt6_k$() - 1 | 0;
|
|
2056
2060
|
if (inductionVariable <= last)
|
|
2057
2061
|
do {
|
|
2058
2062
|
var ix = inductionVariable;
|
|
2059
2063
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2060
2064
|
// Inline function 'kotlinx.datetime.internal.format.parser.ParseResult.match' call
|
|
2061
|
-
var this_0 = parserStructure.
|
|
2065
|
+
var this_0 = parserStructure.operations_1.get_c1px32_k$(ix).consume_ew3o91_k$(output, input, inputPosition);
|
|
2062
2066
|
var tmp0_subject = _ParseResult___get_value__impl__86mnxf(this_0);
|
|
2063
2067
|
if (typeof tmp0_subject === 'number') {
|
|
2064
2068
|
inputPosition = _ParseResult___get_value__impl__86mnxf(this_0);
|
|
2065
2069
|
} else {
|
|
2066
2070
|
if (tmp0_subject instanceof ParseError) {
|
|
2067
2071
|
var it = _ParseResult___get_value__impl__86mnxf(this_0);
|
|
2068
|
-
errors.
|
|
2072
|
+
errors.add_utx5q5_k$(it);
|
|
2069
2073
|
break $l$block;
|
|
2070
2074
|
} else {
|
|
2071
2075
|
// Inline function 'kotlin.error' call
|
|
@@ -2075,28 +2079,28 @@ function Parser__match_impl_nzt83d($this, input, initialContainer, startIndex) {
|
|
|
2075
2079
|
}
|
|
2076
2080
|
}
|
|
2077
2081
|
while (inductionVariable <= last);
|
|
2078
|
-
if (parserStructure.
|
|
2082
|
+
if (parserStructure.followedBy_1.isEmpty_y1axqb_k$()) {
|
|
2079
2083
|
if (false || inputPosition === charSequenceLength(input)) {
|
|
2080
2084
|
return output;
|
|
2081
2085
|
} else {
|
|
2082
2086
|
var tmp_0 = inputPosition;
|
|
2083
2087
|
var it_0 = new ParseError(tmp_0, Parser$match$lambda);
|
|
2084
|
-
errors.
|
|
2088
|
+
errors.add_utx5q5_k$(it_0);
|
|
2085
2089
|
}
|
|
2086
2090
|
} else {
|
|
2087
|
-
var inductionVariable_0 = parserStructure.
|
|
2091
|
+
var inductionVariable_0 = parserStructure.followedBy_1.get_size_woubt6_k$() - 1 | 0;
|
|
2088
2092
|
if (0 <= inductionVariable_0)
|
|
2089
2093
|
do {
|
|
2090
2094
|
var ix_0 = inductionVariable_0;
|
|
2091
2095
|
inductionVariable_0 = inductionVariable_0 + -1 | 0;
|
|
2092
|
-
parseOptions.
|
|
2096
|
+
parseOptions.add_utx5q5_k$(new ParserState(output, parserStructure.followedBy_1.get_c1px32_k$(ix_0), inputPosition));
|
|
2093
2097
|
}
|
|
2094
2098
|
while (0 <= inductionVariable_0);
|
|
2095
2099
|
}
|
|
2096
2100
|
}
|
|
2097
2101
|
}
|
|
2098
2102
|
// Inline function 'kotlin.collections.sortByDescending' call
|
|
2099
|
-
if (errors.
|
|
2103
|
+
if (errors.get_size_woubt6_k$() > 1) {
|
|
2100
2104
|
// Inline function 'kotlin.comparisons.compareByDescending' call
|
|
2101
2105
|
var tmp_1 = Parser$match$lambda_0;
|
|
2102
2106
|
var tmp$ret$12 = new sam$kotlin_Comparator$0(tmp_1);
|
|
@@ -2111,14 +2115,14 @@ function Parser__match$default_impl_x2xlti($this, input, initialContainer, start
|
|
|
2111
2115
|
tmp = Parser__match_impl_nzt83d($this, input, initialContainer, startIndex);
|
|
2112
2116
|
} else {
|
|
2113
2117
|
var tmp_0 = $super;
|
|
2114
|
-
tmp = (tmp_0 == null ? null : new Parser(tmp_0)).
|
|
2118
|
+
tmp = (tmp_0 == null ? null : new Parser(tmp_0)).match_pog3ge_k$.call(new Parser($this), input, initialContainer, startIndex);
|
|
2115
2119
|
}
|
|
2116
2120
|
return tmp;
|
|
2117
2121
|
}
|
|
2118
2122
|
function ParserState(output, parserStructure, inputPosition) {
|
|
2119
|
-
this.
|
|
2120
|
-
this.
|
|
2121
|
-
this.
|
|
2123
|
+
this.output_1 = output;
|
|
2124
|
+
this.parserStructure_1 = parserStructure;
|
|
2125
|
+
this.inputPosition_1 = inputPosition;
|
|
2122
2126
|
}
|
|
2123
2127
|
function Parser__toString_impl_x33iea($this) {
|
|
2124
2128
|
return 'Parser(commands=' + $this.toString() + ')';
|
|
@@ -2129,29 +2133,29 @@ function Parser__hashCode_impl_bbxllf($this) {
|
|
|
2129
2133
|
function Parser__equals_impl_djxokv($this, other) {
|
|
2130
2134
|
if (!(other instanceof Parser))
|
|
2131
2135
|
return false;
|
|
2132
|
-
var tmp0_other_with_cast = other instanceof Parser ? other.
|
|
2136
|
+
var tmp0_other_with_cast = other instanceof Parser ? other.commands_1 : THROW_CCE();
|
|
2133
2137
|
if (!equals($this, tmp0_other_with_cast))
|
|
2134
2138
|
return false;
|
|
2135
2139
|
return true;
|
|
2136
2140
|
}
|
|
2137
2141
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2138
|
-
this.
|
|
2142
|
+
this.function_1 = function_0;
|
|
2139
2143
|
}
|
|
2140
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
2141
|
-
return this.
|
|
2144
|
+
protoOf(sam$kotlin_Comparator$0).compare_bczr_k$ = function (a, b) {
|
|
2145
|
+
return this.function_1(a, b);
|
|
2142
2146
|
};
|
|
2143
2147
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2144
|
-
return this.
|
|
2148
|
+
return this.compare_bczr_k$(a, b);
|
|
2145
2149
|
};
|
|
2146
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
2147
|
-
return this.
|
|
2150
|
+
protoOf(sam$kotlin_Comparator$0).getFunctionDelegate_jtodtf_k$ = function () {
|
|
2151
|
+
return this.function_1;
|
|
2148
2152
|
};
|
|
2149
2153
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2150
2154
|
var tmp;
|
|
2151
2155
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
2152
2156
|
var tmp_0;
|
|
2153
2157
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
2154
|
-
tmp_0 = equals(this.
|
|
2158
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
2155
2159
|
} else {
|
|
2156
2160
|
tmp_0 = false;
|
|
2157
2161
|
}
|
|
@@ -2162,38 +2166,38 @@ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
|
2162
2166
|
return tmp;
|
|
2163
2167
|
};
|
|
2164
2168
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
2165
|
-
return hashCode(this.
|
|
2169
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
2166
2170
|
};
|
|
2167
2171
|
function Parser$match$lambda() {
|
|
2168
2172
|
return 'There is more input to consume';
|
|
2169
2173
|
}
|
|
2170
2174
|
function Parser$match$lambda_0(a, b) {
|
|
2171
2175
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
2172
|
-
var tmp = b.
|
|
2173
|
-
var tmp$ret$2 = a.
|
|
2176
|
+
var tmp = b.position_1;
|
|
2177
|
+
var tmp$ret$2 = a.position_1;
|
|
2174
2178
|
return compareValues(tmp, tmp$ret$2);
|
|
2175
2179
|
}
|
|
2176
2180
|
function Parser(commands) {
|
|
2177
|
-
this.
|
|
2181
|
+
this.commands_1 = commands;
|
|
2178
2182
|
}
|
|
2179
2183
|
protoOf(Parser).toString = function () {
|
|
2180
|
-
return Parser__toString_impl_x33iea(this.
|
|
2184
|
+
return Parser__toString_impl_x33iea(this.commands_1);
|
|
2181
2185
|
};
|
|
2182
2186
|
protoOf(Parser).hashCode = function () {
|
|
2183
|
-
return Parser__hashCode_impl_bbxllf(this.
|
|
2187
|
+
return Parser__hashCode_impl_bbxllf(this.commands_1);
|
|
2184
2188
|
};
|
|
2185
2189
|
protoOf(Parser).equals = function (other) {
|
|
2186
|
-
return Parser__equals_impl_djxokv(this.
|
|
2190
|
+
return Parser__equals_impl_djxokv(this.commands_1, other);
|
|
2187
2191
|
};
|
|
2188
2192
|
function ParserStructure(operations, followedBy) {
|
|
2189
|
-
this.
|
|
2190
|
-
this.
|
|
2193
|
+
this.operations_1 = operations;
|
|
2194
|
+
this.followedBy_1 = followedBy;
|
|
2191
2195
|
}
|
|
2192
2196
|
protoOf(ParserStructure).toString = function () {
|
|
2193
|
-
return joinToString(this.
|
|
2197
|
+
return joinToString(this.operations_1, ', ') + '(' + joinToString(this.followedBy_1, ';') + ')';
|
|
2194
2198
|
};
|
|
2195
2199
|
function Companion_9() {
|
|
2196
|
-
this.
|
|
2200
|
+
this.serialVersionUID_1 = 5691186997393344103n;
|
|
2197
2201
|
}
|
|
2198
2202
|
var Companion_instance_9;
|
|
2199
2203
|
function Companion_getInstance_9() {
|
|
@@ -2207,11 +2211,11 @@ function concat(_this__u8e3s4) {
|
|
|
2207
2211
|
var result = {_v: new ParserStructure(emptyList(), emptyList())};
|
|
2208
2212
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2209
2213
|
var accumulatedOperations = ArrayList_init_$Create$();
|
|
2210
|
-
var _iterator__ex2g4s = asReversed(_this__u8e3s4).
|
|
2211
|
-
while (_iterator__ex2g4s.
|
|
2212
|
-
var parser = _iterator__ex2g4s.
|
|
2213
|
-
if (parser.
|
|
2214
|
-
accumulatedOperations.
|
|
2214
|
+
var _iterator__ex2g4s = asReversed(_this__u8e3s4).iterator_jk1svi_k$();
|
|
2215
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2216
|
+
var parser = _iterator__ex2g4s.next_20eer_k$();
|
|
2217
|
+
if (parser.followedBy_1.isEmpty_y1axqb_k$()) {
|
|
2218
|
+
accumulatedOperations.add_utx5q5_k$(parser.operations_1);
|
|
2215
2219
|
} else {
|
|
2216
2220
|
concat$flushAccumulatedOperations(accumulatedOperations, result);
|
|
2217
2221
|
result._v = concat$simplifyAndAppend(parser, result._v);
|
|
@@ -2221,43 +2225,43 @@ function concat(_this__u8e3s4) {
|
|
|
2221
2225
|
return result._v;
|
|
2222
2226
|
}
|
|
2223
2227
|
function formatError(errors) {
|
|
2224
|
-
if (errors.
|
|
2225
|
-
return 'Position ' + errors.
|
|
2228
|
+
if (errors.get_size_woubt6_k$() === 1) {
|
|
2229
|
+
return 'Position ' + errors.get_c1px32_k$(0).position_1 + ': ' + errors.get_c1px32_k$(0).message_1();
|
|
2226
2230
|
}
|
|
2227
2231
|
var averageMessageLength = 33;
|
|
2228
|
-
var tmp0_buffer = StringBuilder_init_$Create$_0(imul(averageMessageLength, errors.
|
|
2232
|
+
var tmp0_buffer = StringBuilder_init_$Create$_0(imul(averageMessageLength, errors.get_size_woubt6_k$()));
|
|
2229
2233
|
return joinTo(errors, tmp0_buffer, ', ', 'Errors: ', VOID, VOID, VOID, formatError$lambda).toString();
|
|
2230
2234
|
}
|
|
2231
2235
|
function concat$mergeOperations(baseOperations, numberSpan, unconditionalModifications, simplifiedParserStructure) {
|
|
2232
|
-
var operationsToMerge = simplifiedParserStructure.
|
|
2236
|
+
var operationsToMerge = simplifiedParserStructure.operations_1;
|
|
2233
2237
|
var firstOperation = firstOrNull(operationsToMerge);
|
|
2234
2238
|
// Inline function 'kotlin.collections.buildList' call
|
|
2235
2239
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
2236
2240
|
// Inline function 'kotlin.apply' call
|
|
2237
2241
|
var this_0 = ArrayList_init_$Create$();
|
|
2238
|
-
this_0.
|
|
2242
|
+
this_0.addAll_h3ej1q_k$(baseOperations);
|
|
2239
2243
|
if (numberSpan == null) {
|
|
2240
|
-
this_0.
|
|
2244
|
+
this_0.addAll_h3ej1q_k$(operationsToMerge);
|
|
2241
2245
|
} else {
|
|
2242
2246
|
if (firstOperation instanceof NumberSpanParserOperation) {
|
|
2243
|
-
this_0.
|
|
2247
|
+
this_0.add_utx5q5_k$(new NumberSpanParserOperation(plus(numberSpan, firstOperation.consumers_1)));
|
|
2244
2248
|
var inductionVariable = 1;
|
|
2245
2249
|
var last = get_lastIndex_0(operationsToMerge);
|
|
2246
2250
|
if (inductionVariable <= last)
|
|
2247
2251
|
do {
|
|
2248
2252
|
var i = inductionVariable;
|
|
2249
2253
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2250
|
-
this_0.
|
|
2254
|
+
this_0.add_utx5q5_k$(operationsToMerge.get_c1px32_k$(i));
|
|
2251
2255
|
}
|
|
2252
2256
|
while (!(i === last));
|
|
2253
2257
|
} else {
|
|
2254
|
-
this_0.
|
|
2255
|
-
this_0.
|
|
2258
|
+
this_0.add_utx5q5_k$(new NumberSpanParserOperation(numberSpan));
|
|
2259
|
+
this_0.addAll_h3ej1q_k$(operationsToMerge);
|
|
2256
2260
|
}
|
|
2257
2261
|
}
|
|
2258
|
-
this_0.
|
|
2259
|
-
var mergedOperations = this_0.
|
|
2260
|
-
return new ParserStructure(mergedOperations, simplifiedParserStructure.
|
|
2262
|
+
this_0.addAll_h3ej1q_k$(unconditionalModifications);
|
|
2263
|
+
var mergedOperations = this_0.build_nmwvly_k$();
|
|
2264
|
+
return new ParserStructure(mergedOperations, simplifiedParserStructure.followedBy_1);
|
|
2261
2265
|
}
|
|
2262
2266
|
function concat$simplifyAndAppend(_this__u8e3s4, other) {
|
|
2263
2267
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
@@ -2265,43 +2269,43 @@ function concat$simplifyAndAppend(_this__u8e3s4, other) {
|
|
|
2265
2269
|
var currentNumberSpan = null;
|
|
2266
2270
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2267
2271
|
var unconditionalModifications = ArrayList_init_$Create$();
|
|
2268
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
2269
|
-
while (_iterator__ex2g4s.
|
|
2270
|
-
var op = _iterator__ex2g4s.
|
|
2272
|
+
var _iterator__ex2g4s = _this__u8e3s4.operations_1.iterator_jk1svi_k$();
|
|
2273
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2274
|
+
var op = _iterator__ex2g4s.next_20eer_k$();
|
|
2271
2275
|
if (op instanceof NumberSpanParserOperation) {
|
|
2272
2276
|
if (!(currentNumberSpan == null)) {
|
|
2273
|
-
currentNumberSpan.
|
|
2277
|
+
currentNumberSpan.addAll_h3ej1q_k$(op.consumers_1);
|
|
2274
2278
|
} else {
|
|
2275
|
-
currentNumberSpan = toMutableList(op.
|
|
2279
|
+
currentNumberSpan = toMutableList(op.consumers_1);
|
|
2276
2280
|
}
|
|
2277
2281
|
} else {
|
|
2278
2282
|
if (op instanceof UnconditionalModification)
|
|
2279
|
-
unconditionalModifications.
|
|
2283
|
+
unconditionalModifications.add_utx5q5_k$(op);
|
|
2280
2284
|
else {
|
|
2281
2285
|
if (!(currentNumberSpan == null)) {
|
|
2282
|
-
newOperations.
|
|
2286
|
+
newOperations.add_utx5q5_k$(new NumberSpanParserOperation(currentNumberSpan));
|
|
2283
2287
|
currentNumberSpan = null;
|
|
2284
|
-
newOperations.
|
|
2285
|
-
unconditionalModifications.
|
|
2288
|
+
newOperations.addAll_h3ej1q_k$(unconditionalModifications);
|
|
2289
|
+
unconditionalModifications.clear_j9egeb_k$();
|
|
2286
2290
|
}
|
|
2287
|
-
newOperations.
|
|
2291
|
+
newOperations.add_utx5q5_k$(op);
|
|
2288
2292
|
}
|
|
2289
2293
|
}
|
|
2290
2294
|
}
|
|
2291
2295
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2292
|
-
var tmp0 = _this__u8e3s4.
|
|
2296
|
+
var tmp0 = _this__u8e3s4.followedBy_1;
|
|
2293
2297
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2294
2298
|
var destination = ArrayList_init_$Create$();
|
|
2295
|
-
var _iterator__ex2g4s_0 = tmp0.
|
|
2296
|
-
while (_iterator__ex2g4s_0.
|
|
2297
|
-
var element = _iterator__ex2g4s_0.
|
|
2299
|
+
var _iterator__ex2g4s_0 = tmp0.iterator_jk1svi_k$();
|
|
2300
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
2301
|
+
var element = _iterator__ex2g4s_0.next_20eer_k$();
|
|
2298
2302
|
var simplified = concat$simplifyAndAppend(element, other);
|
|
2299
2303
|
var tmp;
|
|
2300
|
-
if (simplified.
|
|
2304
|
+
if (simplified.operations_1.isEmpty_y1axqb_k$()) {
|
|
2301
2305
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2302
|
-
var this_0 = simplified.
|
|
2306
|
+
var this_0 = simplified.followedBy_1;
|
|
2303
2307
|
var tmp_0;
|
|
2304
|
-
if (this_0.
|
|
2308
|
+
if (this_0.isEmpty_y1axqb_k$()) {
|
|
2305
2309
|
tmp_0 = listOf(simplified);
|
|
2306
2310
|
} else {
|
|
2307
2311
|
tmp_0 = this_0;
|
|
@@ -2315,12 +2319,12 @@ function concat$simplifyAndAppend(_this__u8e3s4, other) {
|
|
|
2315
2319
|
}
|
|
2316
2320
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2317
2321
|
var tmp_1;
|
|
2318
|
-
if (destination.
|
|
2322
|
+
if (destination.isEmpty_y1axqb_k$()) {
|
|
2319
2323
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2320
|
-
if (!other.
|
|
2324
|
+
if (!other.operations_1.isEmpty_y1axqb_k$()) {
|
|
2321
2325
|
return concat$mergeOperations(newOperations, currentNumberSpan, unconditionalModifications, other);
|
|
2322
2326
|
}
|
|
2323
|
-
tmp_1 = other.
|
|
2327
|
+
tmp_1 = other.followedBy_1;
|
|
2324
2328
|
} else {
|
|
2325
2329
|
tmp_1 = destination;
|
|
2326
2330
|
}
|
|
@@ -2330,7 +2334,7 @@ function concat$simplifyAndAppend(_this__u8e3s4, other) {
|
|
|
2330
2334
|
var tmp_4;
|
|
2331
2335
|
if (currentNumberSpan == null) {
|
|
2332
2336
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2333
|
-
tmp_4 = !newOperations.
|
|
2337
|
+
tmp_4 = !newOperations.isEmpty_y1axqb_k$();
|
|
2334
2338
|
} else {
|
|
2335
2339
|
tmp_4 = false;
|
|
2336
2340
|
}
|
|
@@ -2342,7 +2346,7 @@ function concat$simplifyAndAppend(_this__u8e3s4, other) {
|
|
|
2342
2346
|
// Inline function 'kotlin.collections.none' call
|
|
2343
2347
|
var tmp_5;
|
|
2344
2348
|
if (isInterface(mergedTails, Collection)) {
|
|
2345
|
-
tmp_5 = mergedTails.
|
|
2349
|
+
tmp_5 = mergedTails.isEmpty_y1axqb_k$();
|
|
2346
2350
|
} else {
|
|
2347
2351
|
tmp_5 = false;
|
|
2348
2352
|
}
|
|
@@ -2350,10 +2354,10 @@ function concat$simplifyAndAppend(_this__u8e3s4, other) {
|
|
|
2350
2354
|
tmp$ret$11 = true;
|
|
2351
2355
|
break $l$block_0;
|
|
2352
2356
|
}
|
|
2353
|
-
var _iterator__ex2g4s_1 = mergedTails.
|
|
2354
|
-
while (_iterator__ex2g4s_1.
|
|
2355
|
-
var element_0 = _iterator__ex2g4s_1.
|
|
2356
|
-
var tmp_6 = firstOrNull(element_0.
|
|
2357
|
+
var _iterator__ex2g4s_1 = mergedTails.iterator_jk1svi_k$();
|
|
2358
|
+
while (_iterator__ex2g4s_1.hasNext_bitz1p_k$()) {
|
|
2359
|
+
var element_0 = _iterator__ex2g4s_1.next_20eer_k$();
|
|
2360
|
+
var tmp_6 = firstOrNull(element_0.operations_1);
|
|
2357
2361
|
if (tmp_6 instanceof NumberSpanParserOperation) {
|
|
2358
2362
|
tmp$ret$11 = false;
|
|
2359
2363
|
break $l$block_0;
|
|
@@ -2365,19 +2369,19 @@ function concat$simplifyAndAppend(_this__u8e3s4, other) {
|
|
|
2365
2369
|
}
|
|
2366
2370
|
if (tmp_3) {
|
|
2367
2371
|
if (!(currentNumberSpan == null)) {
|
|
2368
|
-
newOperations.
|
|
2372
|
+
newOperations.add_utx5q5_k$(new NumberSpanParserOperation(currentNumberSpan));
|
|
2369
2373
|
}
|
|
2370
|
-
newOperations.
|
|
2374
|
+
newOperations.addAll_h3ej1q_k$(unconditionalModifications);
|
|
2371
2375
|
tmp_2 = new ParserStructure(newOperations, mergedTails);
|
|
2372
2376
|
} else {
|
|
2373
2377
|
// Inline function 'kotlin.collections.map' call
|
|
2374
2378
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2375
2379
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(mergedTails, 10));
|
|
2376
|
-
var _iterator__ex2g4s_2 = mergedTails.
|
|
2377
|
-
while (_iterator__ex2g4s_2.
|
|
2378
|
-
var item = _iterator__ex2g4s_2.
|
|
2380
|
+
var _iterator__ex2g4s_2 = mergedTails.iterator_jk1svi_k$();
|
|
2381
|
+
while (_iterator__ex2g4s_2.hasNext_bitz1p_k$()) {
|
|
2382
|
+
var item = _iterator__ex2g4s_2.next_20eer_k$();
|
|
2379
2383
|
var tmp$ret$15 = concat$mergeOperations(emptyList(), currentNumberSpan, unconditionalModifications, item);
|
|
2380
|
-
destination_0.
|
|
2384
|
+
destination_0.add_utx5q5_k$(tmp$ret$15);
|
|
2381
2385
|
}
|
|
2382
2386
|
var newTails = destination_0;
|
|
2383
2387
|
tmp_2 = new ParserStructure(newOperations, newTails);
|
|
@@ -2386,23 +2390,23 @@ function concat$simplifyAndAppend(_this__u8e3s4, other) {
|
|
|
2386
2390
|
}
|
|
2387
2391
|
function concat$flushAccumulatedOperations(accumulatedOperations, result) {
|
|
2388
2392
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2389
|
-
if (!accumulatedOperations.
|
|
2393
|
+
if (!accumulatedOperations.isEmpty_y1axqb_k$()) {
|
|
2390
2394
|
// Inline function 'kotlin.collections.buildList' call
|
|
2391
2395
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
2392
2396
|
// Inline function 'kotlin.apply' call
|
|
2393
2397
|
var this_0 = ArrayList_init_$Create$();
|
|
2394
|
-
var _iterator__ex2g4s = asReversed_0(accumulatedOperations).
|
|
2395
|
-
while (_iterator__ex2g4s.
|
|
2396
|
-
var parserOperations = _iterator__ex2g4s.
|
|
2397
|
-
this_0.
|
|
2398
|
+
var _iterator__ex2g4s = asReversed_0(accumulatedOperations).iterator_jk1svi_k$();
|
|
2399
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2400
|
+
var parserOperations = _iterator__ex2g4s.next_20eer_k$();
|
|
2401
|
+
this_0.addAll_h3ej1q_k$(parserOperations);
|
|
2398
2402
|
}
|
|
2399
|
-
var operations = this_0.
|
|
2403
|
+
var operations = this_0.build_nmwvly_k$();
|
|
2400
2404
|
result._v = concat$simplifyAndAppend(new ParserStructure(operations, emptyList()), result._v);
|
|
2401
|
-
accumulatedOperations.
|
|
2405
|
+
accumulatedOperations.clear_j9egeb_k$();
|
|
2402
2406
|
}
|
|
2403
2407
|
}
|
|
2404
2408
|
function formatError$lambda(it) {
|
|
2405
|
-
return 'position ' + it.
|
|
2409
|
+
return 'position ' + it.position_1 + ": '" + it.message_1() + "'";
|
|
2406
2410
|
}
|
|
2407
2411
|
function spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, withMinus) {
|
|
2408
2412
|
withMinus = withMinus === VOID ? false : withMinus;
|
|
@@ -2444,22 +2448,22 @@ function spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, sette
|
|
|
2444
2448
|
}
|
|
2445
2449
|
function _get_whatThisExpects__4pg11j($this) {
|
|
2446
2450
|
// Inline function 'kotlin.collections.map' call
|
|
2447
|
-
var this_0 = $this.
|
|
2451
|
+
var this_0 = $this.consumers_1;
|
|
2448
2452
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2449
2453
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2450
|
-
var _iterator__ex2g4s = this_0.
|
|
2451
|
-
while (_iterator__ex2g4s.
|
|
2452
|
-
var item = _iterator__ex2g4s.
|
|
2453
|
-
var length = item.
|
|
2454
|
-
var tmp$ret$2 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.
|
|
2455
|
-
destination.
|
|
2454
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
2455
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2456
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
2457
|
+
var length = item.get_length_g42xv3_k$();
|
|
2458
|
+
var tmp$ret$2 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.whatThisExpects_1);
|
|
2459
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
2456
2460
|
}
|
|
2457
2461
|
var consumerLengths = destination;
|
|
2458
2462
|
var tmp;
|
|
2459
|
-
if ($this.
|
|
2460
|
-
tmp = 'a number with at least ' + $this.
|
|
2463
|
+
if ($this.isFlexible_1) {
|
|
2464
|
+
tmp = 'a number with at least ' + $this.minLength_1 + ' digits: ' + toString(consumerLengths);
|
|
2461
2465
|
} else {
|
|
2462
|
-
tmp = 'a number with exactly ' + $this.
|
|
2466
|
+
tmp = 'a number with exactly ' + $this.minLength_1 + ' digits: ' + toString(consumerLengths);
|
|
2463
2467
|
}
|
|
2464
2468
|
return tmp;
|
|
2465
2469
|
}
|
|
@@ -2475,30 +2479,30 @@ function NumberSpanParserOperation$consume$lambda_0($digitsInRow, this$0) {
|
|
|
2475
2479
|
}
|
|
2476
2480
|
function NumberSpanParserOperation$consume$lambda_1($numberString, this$0, $i, $error) {
|
|
2477
2481
|
return function () {
|
|
2478
|
-
return "Can not interpret the string '" + $numberString + "' as " + this$0.
|
|
2482
|
+
return "Can not interpret the string '" + $numberString + "' as " + this$0.consumers_1.get_c1px32_k$($i).whatThisExpects_1 + ': ' + $error.errorMessage_jwdivz_k$();
|
|
2479
2483
|
};
|
|
2480
2484
|
}
|
|
2481
2485
|
function NumberSpanParserOperation(consumers) {
|
|
2482
|
-
this.
|
|
2486
|
+
this.consumers_1 = consumers;
|
|
2483
2487
|
var tmp = this;
|
|
2484
2488
|
// Inline function 'kotlin.collections.sumOf' call
|
|
2485
2489
|
var sum = 0;
|
|
2486
|
-
var _iterator__ex2g4s = this.
|
|
2487
|
-
while (_iterator__ex2g4s.
|
|
2488
|
-
var element = _iterator__ex2g4s.
|
|
2490
|
+
var _iterator__ex2g4s = this.consumers_1.iterator_jk1svi_k$();
|
|
2491
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2492
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
2489
2493
|
var tmp_0 = sum;
|
|
2490
|
-
var tmp0_elvis_lhs = element.
|
|
2494
|
+
var tmp0_elvis_lhs = element.get_length_g42xv3_k$();
|
|
2491
2495
|
sum = tmp_0 + (tmp0_elvis_lhs == null ? 1 : tmp0_elvis_lhs) | 0;
|
|
2492
2496
|
}
|
|
2493
|
-
tmp.
|
|
2497
|
+
tmp.minLength_1 = sum;
|
|
2494
2498
|
var tmp_1 = this;
|
|
2495
|
-
var tmp0 = this.
|
|
2499
|
+
var tmp0 = this.consumers_1;
|
|
2496
2500
|
var tmp$ret$2;
|
|
2497
2501
|
$l$block_0: {
|
|
2498
2502
|
// Inline function 'kotlin.collections.any' call
|
|
2499
2503
|
var tmp_2;
|
|
2500
2504
|
if (isInterface(tmp0, Collection)) {
|
|
2501
|
-
tmp_2 = tmp0.
|
|
2505
|
+
tmp_2 = tmp0.isEmpty_y1axqb_k$();
|
|
2502
2506
|
} else {
|
|
2503
2507
|
tmp_2 = false;
|
|
2504
2508
|
}
|
|
@@ -2506,24 +2510,24 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2506
2510
|
tmp$ret$2 = false;
|
|
2507
2511
|
break $l$block_0;
|
|
2508
2512
|
}
|
|
2509
|
-
var _iterator__ex2g4s_0 = tmp0.
|
|
2510
|
-
while (_iterator__ex2g4s_0.
|
|
2511
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
2512
|
-
if (element_0.
|
|
2513
|
+
var _iterator__ex2g4s_0 = tmp0.iterator_jk1svi_k$();
|
|
2514
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
2515
|
+
var element_0 = _iterator__ex2g4s_0.next_20eer_k$();
|
|
2516
|
+
if (element_0.get_length_g42xv3_k$() == null) {
|
|
2513
2517
|
tmp$ret$2 = true;
|
|
2514
2518
|
break $l$block_0;
|
|
2515
2519
|
}
|
|
2516
2520
|
}
|
|
2517
2521
|
tmp$ret$2 = false;
|
|
2518
2522
|
}
|
|
2519
|
-
tmp_1.
|
|
2520
|
-
var tmp0_0 = this.
|
|
2523
|
+
tmp_1.isFlexible_1 = tmp$ret$2;
|
|
2524
|
+
var tmp0_0 = this.consumers_1;
|
|
2521
2525
|
var tmp$ret$4;
|
|
2522
2526
|
$l$block_2: {
|
|
2523
2527
|
// Inline function 'kotlin.collections.all' call
|
|
2524
2528
|
var tmp_3;
|
|
2525
2529
|
if (isInterface(tmp0_0, Collection)) {
|
|
2526
|
-
tmp_3 = tmp0_0.
|
|
2530
|
+
tmp_3 = tmp0_0.isEmpty_y1axqb_k$();
|
|
2527
2531
|
} else {
|
|
2528
2532
|
tmp_3 = false;
|
|
2529
2533
|
}
|
|
@@ -2531,10 +2535,10 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2531
2535
|
tmp$ret$4 = true;
|
|
2532
2536
|
break $l$block_2;
|
|
2533
2537
|
}
|
|
2534
|
-
var _iterator__ex2g4s_1 = tmp0_0.
|
|
2535
|
-
while (_iterator__ex2g4s_1.
|
|
2536
|
-
var element_1 = _iterator__ex2g4s_1.
|
|
2537
|
-
var tmp0_elvis_lhs_0 = element_1.
|
|
2538
|
+
var _iterator__ex2g4s_1 = tmp0_0.iterator_jk1svi_k$();
|
|
2539
|
+
while (_iterator__ex2g4s_1.hasNext_bitz1p_k$()) {
|
|
2540
|
+
var element_1 = _iterator__ex2g4s_1.next_20eer_k$();
|
|
2541
|
+
var tmp0_elvis_lhs_0 = element_1.get_length_g42xv3_k$();
|
|
2538
2542
|
if (!((tmp0_elvis_lhs_0 == null ? 2147483647 : tmp0_elvis_lhs_0) > 0)) {
|
|
2539
2543
|
tmp$ret$4 = false;
|
|
2540
2544
|
break $l$block_2;
|
|
@@ -2548,13 +2552,13 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2548
2552
|
var message = 'Failed requirement.';
|
|
2549
2553
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2550
2554
|
}
|
|
2551
|
-
var tmp0_1 = this.
|
|
2555
|
+
var tmp0_1 = this.consumers_1;
|
|
2552
2556
|
var tmp$ret$9;
|
|
2553
2557
|
$l$block_3: {
|
|
2554
2558
|
// Inline function 'kotlin.collections.count' call
|
|
2555
2559
|
var tmp_4;
|
|
2556
2560
|
if (isInterface(tmp0_1, Collection)) {
|
|
2557
|
-
tmp_4 = tmp0_1.
|
|
2561
|
+
tmp_4 = tmp0_1.isEmpty_y1axqb_k$();
|
|
2558
2562
|
} else {
|
|
2559
2563
|
tmp_4 = false;
|
|
2560
2564
|
}
|
|
@@ -2563,10 +2567,10 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2563
2567
|
break $l$block_3;
|
|
2564
2568
|
}
|
|
2565
2569
|
var count = 0;
|
|
2566
|
-
var _iterator__ex2g4s_2 = tmp0_1.
|
|
2567
|
-
while (_iterator__ex2g4s_2.
|
|
2568
|
-
var element_2 = _iterator__ex2g4s_2.
|
|
2569
|
-
if (element_2.
|
|
2570
|
+
var _iterator__ex2g4s_2 = tmp0_1.iterator_jk1svi_k$();
|
|
2571
|
+
while (_iterator__ex2g4s_2.hasNext_bitz1p_k$()) {
|
|
2572
|
+
var element_2 = _iterator__ex2g4s_2.next_20eer_k$();
|
|
2573
|
+
if (element_2.get_length_g42xv3_k$() == null) {
|
|
2570
2574
|
count = count + 1 | 0;
|
|
2571
2575
|
checkCountOverflow(count);
|
|
2572
2576
|
}
|
|
@@ -2576,54 +2580,54 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2576
2580
|
// Inline function 'kotlin.require' call
|
|
2577
2581
|
if (!(tmp$ret$9 <= 1)) {
|
|
2578
2582
|
// Inline function 'kotlin.collections.filter' call
|
|
2579
|
-
var tmp0_2 = this.
|
|
2583
|
+
var tmp0_2 = this.consumers_1;
|
|
2580
2584
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2581
2585
|
var destination = ArrayList_init_$Create$();
|
|
2582
|
-
var _iterator__ex2g4s_3 = tmp0_2.
|
|
2583
|
-
while (_iterator__ex2g4s_3.
|
|
2584
|
-
var element_3 = _iterator__ex2g4s_3.
|
|
2585
|
-
if (element_3.
|
|
2586
|
-
destination.
|
|
2586
|
+
var _iterator__ex2g4s_3 = tmp0_2.iterator_jk1svi_k$();
|
|
2587
|
+
while (_iterator__ex2g4s_3.hasNext_bitz1p_k$()) {
|
|
2588
|
+
var element_3 = _iterator__ex2g4s_3.next_20eer_k$();
|
|
2589
|
+
if (element_3.get_length_g42xv3_k$() == null) {
|
|
2590
|
+
destination.add_utx5q5_k$(element_3);
|
|
2587
2591
|
}
|
|
2588
2592
|
}
|
|
2589
2593
|
// Inline function 'kotlin.collections.map' call
|
|
2590
2594
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2591
2595
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
2592
|
-
var _iterator__ex2g4s_4 = destination.
|
|
2593
|
-
while (_iterator__ex2g4s_4.
|
|
2594
|
-
var item = _iterator__ex2g4s_4.
|
|
2595
|
-
var tmp$ret$18 = item.
|
|
2596
|
-
destination_0.
|
|
2596
|
+
var _iterator__ex2g4s_4 = destination.iterator_jk1svi_k$();
|
|
2597
|
+
while (_iterator__ex2g4s_4.hasNext_bitz1p_k$()) {
|
|
2598
|
+
var item = _iterator__ex2g4s_4.next_20eer_k$();
|
|
2599
|
+
var tmp$ret$18 = item.whatThisExpects_1;
|
|
2600
|
+
destination_0.add_utx5q5_k$(tmp$ret$18);
|
|
2597
2601
|
}
|
|
2598
2602
|
var fieldNames = destination_0;
|
|
2599
2603
|
var message_0 = 'At most one variable-length numeric field in a row is allowed, but got several: ' + toString(fieldNames) + '. ' + "Parsing is undefined: for example, with variable-length month number and variable-length day of month, '111' can be parsed as Jan 11th or Nov 1st.";
|
|
2600
2604
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2601
2605
|
}
|
|
2602
2606
|
}
|
|
2603
|
-
protoOf(NumberSpanParserOperation).
|
|
2604
|
-
if ((startIndex + this.
|
|
2607
|
+
protoOf(NumberSpanParserOperation).consume_ew3o91_k$ = function (storage, input, startIndex) {
|
|
2608
|
+
if ((startIndex + this.minLength_1 | 0) > charSequenceLength(input)) {
|
|
2605
2609
|
var tmp = Companion_instance_8;
|
|
2606
|
-
return tmp.
|
|
2610
|
+
return tmp.Error_ca056s_k$(startIndex, NumberSpanParserOperation$consume$lambda(this));
|
|
2607
2611
|
}
|
|
2608
2612
|
var digitsInRow = {_v: 0};
|
|
2609
2613
|
while ((startIndex + digitsInRow._v | 0) < charSequenceLength(input) && isAsciiDigit(charSequenceGet(input, startIndex + digitsInRow._v | 0))) {
|
|
2610
2614
|
digitsInRow._v = digitsInRow._v + 1 | 0;
|
|
2611
2615
|
digitsInRow._v;
|
|
2612
2616
|
}
|
|
2613
|
-
if (digitsInRow._v < this.
|
|
2617
|
+
if (digitsInRow._v < this.minLength_1) {
|
|
2614
2618
|
var tmp_0 = Companion_instance_8;
|
|
2615
|
-
return tmp_0.
|
|
2619
|
+
return tmp_0.Error_ca056s_k$(startIndex, NumberSpanParserOperation$consume$lambda_0(digitsInRow, this));
|
|
2616
2620
|
}
|
|
2617
2621
|
var index = startIndex;
|
|
2618
2622
|
var inductionVariable = 0;
|
|
2619
|
-
var last = this.
|
|
2623
|
+
var last = this.consumers_1.get_size_woubt6_k$() - 1 | 0;
|
|
2620
2624
|
if (inductionVariable <= last)
|
|
2621
2625
|
do {
|
|
2622
2626
|
var i = inductionVariable;
|
|
2623
2627
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2624
|
-
var tmp0_elvis_lhs = this.
|
|
2625
|
-
var length = tmp0_elvis_lhs == null ? (digitsInRow._v - this.
|
|
2626
|
-
var error = this.
|
|
2628
|
+
var tmp0_elvis_lhs = this.consumers_1.get_c1px32_k$(i).get_length_g42xv3_k$();
|
|
2629
|
+
var length = tmp0_elvis_lhs == null ? (digitsInRow._v - this.minLength_1 | 0) + 1 | 0 : tmp0_elvis_lhs;
|
|
2630
|
+
var error = this.consumers_1.get_c1px32_k$(i).consume_o77i9d_k$(storage, input, index, index + length | 0);
|
|
2627
2631
|
if (!(error == null)) {
|
|
2628
2632
|
var tmp2 = index;
|
|
2629
2633
|
// Inline function 'kotlin.text.substring' call
|
|
@@ -2631,12 +2635,12 @@ protoOf(NumberSpanParserOperation).w5b = function (storage, input, startIndex) {
|
|
|
2631
2635
|
var numberString = toString(charSequenceSubSequence(input, tmp2, endIndex));
|
|
2632
2636
|
var tmp_1 = Companion_instance_8;
|
|
2633
2637
|
var tmp_2 = index;
|
|
2634
|
-
return tmp_1.
|
|
2638
|
+
return tmp_1.Error_ca056s_k$(tmp_2, NumberSpanParserOperation$consume$lambda_1(numberString, this, i, error));
|
|
2635
2639
|
}
|
|
2636
2640
|
index = index + length | 0;
|
|
2637
2641
|
}
|
|
2638
2642
|
while (inductionVariable <= last);
|
|
2639
|
-
return Companion_instance_8.
|
|
2643
|
+
return Companion_instance_8.Ok_6vkbj8_k$(index);
|
|
2640
2644
|
};
|
|
2641
2645
|
protoOf(NumberSpanParserOperation).toString = function () {
|
|
2642
2646
|
return _get_whatThisExpects__4pg11j(this);
|
|
@@ -2644,16 +2648,16 @@ protoOf(NumberSpanParserOperation).toString = function () {
|
|
|
2644
2648
|
function SignedIntParser(minDigits, maxDigits, spacePadding, setter, name, plusOnExceedsWidth) {
|
|
2645
2649
|
var parsers = mutableListOf([spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, true)]);
|
|
2646
2650
|
if (!(plusOnExceedsWidth == null)) {
|
|
2647
|
-
parsers.
|
|
2648
|
-
parsers.
|
|
2651
|
+
parsers.add_utx5q5_k$(spaceAndZeroPaddedUnsignedInt(minDigits, plusOnExceedsWidth, spacePadding, setter, name));
|
|
2652
|
+
parsers.add_utx5q5_k$(new ParserStructure(listOf_0([new PlainStringParserOperation('+'), new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(plusOnExceedsWidth + 1 | 0, maxDigits, setter, name, false)))]), emptyList()));
|
|
2649
2653
|
} else {
|
|
2650
|
-
parsers.
|
|
2654
|
+
parsers.add_utx5q5_k$(spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name));
|
|
2651
2655
|
}
|
|
2652
2656
|
return new ParserStructure(emptyList(), parsers);
|
|
2653
2657
|
}
|
|
2654
2658
|
function PlainStringParserOperation$consume$lambda(this$0) {
|
|
2655
2659
|
return function () {
|
|
2656
|
-
return "Unexpected end of input: yet to parse '" + this$0.
|
|
2660
|
+
return "Unexpected end of input: yet to parse '" + this$0.string_1 + "'";
|
|
2657
2661
|
};
|
|
2658
2662
|
}
|
|
2659
2663
|
function PlainStringParserOperation$consume$lambda_0(this$0, $input, $startIndex, $i) {
|
|
@@ -2663,50 +2667,50 @@ function PlainStringParserOperation$consume$lambda_0(this$0, $input, $startIndex
|
|
|
2663
2667
|
// Inline function 'kotlin.text.substring' call
|
|
2664
2668
|
var endIndex = ($startIndex + $i | 0) + 1 | 0;
|
|
2665
2669
|
var tmp$ret$0 = toString(charSequenceSubSequence(tmp0, tmp2, endIndex));
|
|
2666
|
-
return 'Expected ' + this$0.
|
|
2670
|
+
return 'Expected ' + this$0.string_1 + ' but got ' + tmp$ret$0;
|
|
2667
2671
|
};
|
|
2668
2672
|
}
|
|
2669
2673
|
function PlainStringParserOperation(string) {
|
|
2670
|
-
this.
|
|
2674
|
+
this.string_1 = string;
|
|
2671
2675
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2672
|
-
var this_0 = this.
|
|
2676
|
+
var this_0 = this.string_1;
|
|
2673
2677
|
// Inline function 'kotlin.require' call
|
|
2674
2678
|
if (!(charSequenceLength(this_0) > 0)) {
|
|
2675
2679
|
var message = 'Empty string is not allowed';
|
|
2676
2680
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2677
2681
|
}
|
|
2678
2682
|
// Inline function 'kotlin.require' call
|
|
2679
|
-
if (!!isAsciiDigit(charCodeAt(this.
|
|
2680
|
-
var message_0 = "String '" + this.
|
|
2683
|
+
if (!!isAsciiDigit(charCodeAt(this.string_1, 0))) {
|
|
2684
|
+
var message_0 = "String '" + this.string_1 + "' starts with a digit";
|
|
2681
2685
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2682
2686
|
}
|
|
2683
2687
|
// Inline function 'kotlin.require' call
|
|
2684
|
-
if (!!isAsciiDigit(charCodeAt(this.
|
|
2685
|
-
var message_1 = "String '" + this.
|
|
2688
|
+
if (!!isAsciiDigit(charCodeAt(this.string_1, this.string_1.length - 1 | 0))) {
|
|
2689
|
+
var message_1 = "String '" + this.string_1 + "' ends with a digit";
|
|
2686
2690
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2687
2691
|
}
|
|
2688
2692
|
}
|
|
2689
|
-
protoOf(PlainStringParserOperation).
|
|
2690
|
-
if ((startIndex + this.
|
|
2693
|
+
protoOf(PlainStringParserOperation).consume_ew3o91_k$ = function (storage, input, startIndex) {
|
|
2694
|
+
if ((startIndex + this.string_1.length | 0) > charSequenceLength(input)) {
|
|
2691
2695
|
var tmp = Companion_instance_8;
|
|
2692
|
-
return tmp.
|
|
2696
|
+
return tmp.Error_ca056s_k$(startIndex, PlainStringParserOperation$consume$lambda(this));
|
|
2693
2697
|
}
|
|
2694
2698
|
var inductionVariable = 0;
|
|
2695
|
-
var last = charSequenceLength(this.
|
|
2699
|
+
var last = charSequenceLength(this.string_1) - 1 | 0;
|
|
2696
2700
|
if (inductionVariable <= last)
|
|
2697
2701
|
do {
|
|
2698
2702
|
var i = inductionVariable;
|
|
2699
2703
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2700
|
-
if (!(charSequenceGet(input, startIndex + i | 0) === charCodeAt(this.
|
|
2704
|
+
if (!(charSequenceGet(input, startIndex + i | 0) === charCodeAt(this.string_1, i))) {
|
|
2701
2705
|
var tmp_0 = Companion_instance_8;
|
|
2702
|
-
return tmp_0.
|
|
2706
|
+
return tmp_0.Error_ca056s_k$(startIndex, PlainStringParserOperation$consume$lambda_0(this, input, startIndex, i));
|
|
2703
2707
|
}
|
|
2704
2708
|
}
|
|
2705
2709
|
while (inductionVariable <= last);
|
|
2706
|
-
return Companion_instance_8.
|
|
2710
|
+
return Companion_instance_8.Ok_6vkbj8_k$(startIndex + this.string_1.length | 0);
|
|
2707
2711
|
};
|
|
2708
2712
|
protoOf(PlainStringParserOperation).toString = function () {
|
|
2709
|
-
return "'" + this.
|
|
2713
|
+
return "'" + this.string_1 + "'";
|
|
2710
2714
|
};
|
|
2711
2715
|
function UnconditionalModification() {
|
|
2712
2716
|
}
|
|
@@ -2720,10 +2724,10 @@ function spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths($withMinus, $sett
|
|
|
2720
2724
|
// Inline function 'kotlin.apply' call
|
|
2721
2725
|
var this_0 = ArrayList_init_$Create$();
|
|
2722
2726
|
if ($withMinus) {
|
|
2723
|
-
this_0.
|
|
2727
|
+
this_0.add_utx5q5_k$(new PlainStringParserOperation('-'));
|
|
2724
2728
|
}
|
|
2725
|
-
this_0.
|
|
2726
|
-
var tmp$ret$1 = this_0.
|
|
2729
|
+
this_0.add_utx5q5_k$(new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(minNumberLength - ($withMinus ? 1 : 0) | 0, maxNumberLength - ($withMinus ? 1 : 0) | 0, $setter, $name, $withMinus))));
|
|
2730
|
+
var tmp$ret$1 = this_0.build_nmwvly_k$();
|
|
2727
2731
|
return new ParserStructure(tmp$ret$1, emptyList());
|
|
2728
2732
|
}
|
|
2729
2733
|
function get_POWERS_OF_TEN() {
|
|
@@ -2754,54 +2758,54 @@ function TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this
|
|
|
2754
2758
|
var annotations = emptyList();
|
|
2755
2759
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2756
2760
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2757
|
-
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().
|
|
2758
|
-
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).
|
|
2759
|
-
$this$buildClassSerialDescriptor.
|
|
2761
|
+
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().get_longClass_a79cj7_k$(), arrayOf([]), false));
|
|
2762
|
+
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).get_descriptor_wjt6a0_k$();
|
|
2763
|
+
$this$buildClassSerialDescriptor.element_om879h_k$(elementName, descriptor, annotations, false);
|
|
2760
2764
|
return Unit_instance;
|
|
2761
2765
|
}
|
|
2762
2766
|
function TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw() {
|
|
2763
2767
|
return constructCallableReference(function (p0) {
|
|
2764
|
-
return p0.
|
|
2765
|
-
}, 1, 0,
|
|
2768
|
+
return p0.get_descriptor_wjt6a0_k$();
|
|
2769
|
+
}, 1, 0, 50);
|
|
2766
2770
|
}
|
|
2767
2771
|
function TimeBasedDateTimeUnitSerializer() {
|
|
2768
2772
|
TimeBasedDateTimeUnitSerializer_instance = this;
|
|
2769
2773
|
var tmp = this;
|
|
2770
2774
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2771
|
-
tmp.
|
|
2775
|
+
tmp.descriptor$delegate_1 = lazy_0(tmp_0, TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
|
|
2772
2776
|
}
|
|
2773
|
-
protoOf(TimeBasedDateTimeUnitSerializer).
|
|
2774
|
-
var tmp0 = this.
|
|
2777
|
+
protoOf(TimeBasedDateTimeUnitSerializer).get_descriptor_wjt6a0_k$ = function () {
|
|
2778
|
+
var tmp0 = this.descriptor$delegate_1;
|
|
2775
2779
|
var tmp = KProperty1;
|
|
2776
2780
|
// Inline function 'kotlin.getValue' call
|
|
2777
2781
|
getPropertyCallableRef('descriptor', 1, tmp, TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw(), null);
|
|
2778
|
-
return tmp0.
|
|
2782
|
+
return tmp0.get_value_j01efc_k$();
|
|
2779
2783
|
};
|
|
2780
|
-
protoOf(TimeBasedDateTimeUnitSerializer).
|
|
2784
|
+
protoOf(TimeBasedDateTimeUnitSerializer).serialize_45e5yg_k$ = function (encoder, value) {
|
|
2781
2785
|
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
2782
|
-
var descriptor = this.
|
|
2783
|
-
var composite = encoder.
|
|
2784
|
-
composite.
|
|
2785
|
-
composite.
|
|
2786
|
+
var descriptor = this.get_descriptor_wjt6a0_k$();
|
|
2787
|
+
var composite = encoder.beginStructure_yljocp_k$(descriptor);
|
|
2788
|
+
composite.encodeLongElement_ovnxxh_k$(TimeBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$(), 0, value.nanoseconds_1);
|
|
2789
|
+
composite.endStructure_1xqz0n_k$(descriptor);
|
|
2786
2790
|
};
|
|
2787
|
-
protoOf(TimeBasedDateTimeUnitSerializer).
|
|
2788
|
-
return this.
|
|
2791
|
+
protoOf(TimeBasedDateTimeUnitSerializer).serialize_5ase3y_k$ = function (encoder, value) {
|
|
2792
|
+
return this.serialize_45e5yg_k$(encoder, value instanceof TimeBased ? value : THROW_CCE());
|
|
2789
2793
|
};
|
|
2790
|
-
protoOf(TimeBasedDateTimeUnitSerializer).
|
|
2794
|
+
protoOf(TimeBasedDateTimeUnitSerializer).deserialize_sy6x50_k$ = function (decoder) {
|
|
2791
2795
|
var seen = {_v: false};
|
|
2792
2796
|
var nanoseconds = {_v: 0n};
|
|
2793
2797
|
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
2794
|
-
var descriptor = this.
|
|
2795
|
-
var composite = decoder.
|
|
2796
|
-
if (composite.
|
|
2797
|
-
nanoseconds._v = composite.
|
|
2798
|
+
var descriptor = this.get_descriptor_wjt6a0_k$();
|
|
2799
|
+
var composite = decoder.beginStructure_yljocp_k$(descriptor);
|
|
2800
|
+
if (composite.decodeSequentially_xlblqy_k$()) {
|
|
2801
|
+
nanoseconds._v = composite.decodeLongElement_994anb_k$(TimeBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$(), 0);
|
|
2798
2802
|
seen._v = true;
|
|
2799
2803
|
} else {
|
|
2800
2804
|
loop: while (true) {
|
|
2801
|
-
var elementIndex = composite.
|
|
2805
|
+
var elementIndex = composite.decodeElementIndex_bstkhp_k$(TimeBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$());
|
|
2802
2806
|
switch (elementIndex) {
|
|
2803
2807
|
case 0:
|
|
2804
|
-
nanoseconds._v = composite.
|
|
2808
|
+
nanoseconds._v = composite.decodeLongElement_994anb_k$(TimeBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$(), 0);
|
|
2805
2809
|
seen._v = true;
|
|
2806
2810
|
break;
|
|
2807
2811
|
case -1:
|
|
@@ -2813,9 +2817,9 @@ protoOf(TimeBasedDateTimeUnitSerializer).e1t = function (decoder) {
|
|
|
2813
2817
|
}
|
|
2814
2818
|
}
|
|
2815
2819
|
var result = Unit_instance;
|
|
2816
|
-
composite.
|
|
2820
|
+
composite.endStructure_1xqz0n_k$(descriptor);
|
|
2817
2821
|
if (!seen._v)
|
|
2818
|
-
throw MissingFieldException_init_$Create$('nanoseconds', this.
|
|
2822
|
+
throw MissingFieldException_init_$Create$('nanoseconds', this.get_descriptor_wjt6a0_k$().get_serialName_u2rqhk_k$());
|
|
2819
2823
|
return new TimeBased(nanoseconds._v);
|
|
2820
2824
|
};
|
|
2821
2825
|
var TimeBasedDateTimeUnitSerializer_instance;
|
|
@@ -2825,11 +2829,11 @@ function TimeBasedDateTimeUnitSerializer_getInstance() {
|
|
|
2825
2829
|
return TimeBasedDateTimeUnitSerializer_instance;
|
|
2826
2830
|
}
|
|
2827
2831
|
function _get_impl__d88w17($this) {
|
|
2828
|
-
var tmp0 = $this.
|
|
2832
|
+
var tmp0 = $this.impl$delegate_1;
|
|
2829
2833
|
var tmp = KProperty1;
|
|
2830
2834
|
// Inline function 'kotlin.getValue' call
|
|
2831
2835
|
getPropertyCallableRef('impl', 1, tmp, DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs(), null);
|
|
2832
|
-
return tmp0.
|
|
2836
|
+
return tmp0.get_value_j01efc_k$();
|
|
2833
2837
|
}
|
|
2834
2838
|
function DateBasedDateTimeUnitSerializer$impl$delegate$lambda() {
|
|
2835
2839
|
var tmp = getKClass(DateBased);
|
|
@@ -2846,29 +2850,29 @@ function DateBasedDateTimeUnitSerializer$impl$delegate$lambda() {
|
|
|
2846
2850
|
function DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs() {
|
|
2847
2851
|
return constructCallableReference(function (p0) {
|
|
2848
2852
|
return _get_impl__d88w17(p0);
|
|
2849
|
-
}, 1, 0,
|
|
2853
|
+
}, 1, 0, 51);
|
|
2850
2854
|
}
|
|
2851
2855
|
function DateBasedDateTimeUnitSerializer() {
|
|
2852
2856
|
DateBasedDateTimeUnitSerializer_instance = this;
|
|
2853
2857
|
AbstractPolymorphicSerializer.call(this);
|
|
2854
2858
|
var tmp = this;
|
|
2855
2859
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2856
|
-
tmp.
|
|
2860
|
+
tmp.impl$delegate_1 = lazy_0(tmp_0, DateBasedDateTimeUnitSerializer$impl$delegate$lambda);
|
|
2857
2861
|
}
|
|
2858
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2859
|
-
return _get_impl__d88w17(this).
|
|
2862
|
+
protoOf(DateBasedDateTimeUnitSerializer).findPolymorphicSerializerOrNull_o3cszk_k$ = function (decoder, klassName) {
|
|
2863
|
+
return _get_impl__d88w17(this).findPolymorphicSerializerOrNull_o3cszk_k$(decoder, klassName);
|
|
2860
2864
|
};
|
|
2861
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2862
|
-
return _get_impl__d88w17(this).
|
|
2865
|
+
protoOf(DateBasedDateTimeUnitSerializer).findPolymorphicSerializerOrNull_2e74cw_k$ = function (encoder, value) {
|
|
2866
|
+
return _get_impl__d88w17(this).findPolymorphicSerializerOrNull_sqpvzc_k$(encoder, value);
|
|
2863
2867
|
};
|
|
2864
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2865
|
-
return this.
|
|
2868
|
+
protoOf(DateBasedDateTimeUnitSerializer).findPolymorphicSerializerOrNull_sqpvzc_k$ = function (encoder, value) {
|
|
2869
|
+
return this.findPolymorphicSerializerOrNull_2e74cw_k$(encoder, value instanceof DateBased ? value : THROW_CCE());
|
|
2866
2870
|
};
|
|
2867
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2871
|
+
protoOf(DateBasedDateTimeUnitSerializer).get_baseClass_lygw3m_k$ = function () {
|
|
2868
2872
|
return getKClass(DateBased);
|
|
2869
2873
|
};
|
|
2870
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2871
|
-
return _get_impl__d88w17(this).
|
|
2874
|
+
protoOf(DateBasedDateTimeUnitSerializer).get_descriptor_wjt6a0_k$ = function () {
|
|
2875
|
+
return _get_impl__d88w17(this).get_descriptor_wjt6a0_k$();
|
|
2872
2876
|
};
|
|
2873
2877
|
var DateBasedDateTimeUnitSerializer_instance;
|
|
2874
2878
|
function DateBasedDateTimeUnitSerializer_getInstance() {
|
|
@@ -2884,54 +2888,54 @@ function DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$
|
|
|
2884
2888
|
var annotations = emptyList();
|
|
2885
2889
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2886
2890
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2887
|
-
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().
|
|
2888
|
-
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).
|
|
2889
|
-
$this$buildClassSerialDescriptor.
|
|
2891
|
+
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().get_intClass_mw4y9a_k$(), arrayOf([]), false));
|
|
2892
|
+
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).get_descriptor_wjt6a0_k$();
|
|
2893
|
+
$this$buildClassSerialDescriptor.element_om879h_k$('days', descriptor, annotations, false);
|
|
2890
2894
|
return Unit_instance;
|
|
2891
2895
|
}
|
|
2892
2896
|
function DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3() {
|
|
2893
2897
|
return constructCallableReference(function (p0) {
|
|
2894
|
-
return p0.
|
|
2895
|
-
}, 1, 0,
|
|
2898
|
+
return p0.get_descriptor_wjt6a0_k$();
|
|
2899
|
+
}, 1, 0, 52);
|
|
2896
2900
|
}
|
|
2897
2901
|
function DayBasedDateTimeUnitSerializer() {
|
|
2898
2902
|
DayBasedDateTimeUnitSerializer_instance = this;
|
|
2899
2903
|
var tmp = this;
|
|
2900
2904
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2901
|
-
tmp.
|
|
2905
|
+
tmp.descriptor$delegate_1 = lazy_0(tmp_0, DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
|
|
2902
2906
|
}
|
|
2903
|
-
protoOf(DayBasedDateTimeUnitSerializer).
|
|
2904
|
-
var tmp0 = this.
|
|
2907
|
+
protoOf(DayBasedDateTimeUnitSerializer).get_descriptor_wjt6a0_k$ = function () {
|
|
2908
|
+
var tmp0 = this.descriptor$delegate_1;
|
|
2905
2909
|
var tmp = KProperty1;
|
|
2906
2910
|
// Inline function 'kotlin.getValue' call
|
|
2907
2911
|
getPropertyCallableRef('descriptor', 1, tmp, DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3(), null);
|
|
2908
|
-
return tmp0.
|
|
2912
|
+
return tmp0.get_value_j01efc_k$();
|
|
2909
2913
|
};
|
|
2910
|
-
protoOf(DayBasedDateTimeUnitSerializer).
|
|
2914
|
+
protoOf(DayBasedDateTimeUnitSerializer).serialize_tfoyka_k$ = function (encoder, value) {
|
|
2911
2915
|
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
2912
|
-
var descriptor = this.
|
|
2913
|
-
var composite = encoder.
|
|
2914
|
-
composite.
|
|
2915
|
-
composite.
|
|
2916
|
+
var descriptor = this.get_descriptor_wjt6a0_k$();
|
|
2917
|
+
var composite = encoder.beginStructure_yljocp_k$(descriptor);
|
|
2918
|
+
composite.encodeIntElement_krhhce_k$(DayBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$(), 0, value.days_1);
|
|
2919
|
+
composite.endStructure_1xqz0n_k$(descriptor);
|
|
2916
2920
|
};
|
|
2917
|
-
protoOf(DayBasedDateTimeUnitSerializer).
|
|
2918
|
-
return this.
|
|
2921
|
+
protoOf(DayBasedDateTimeUnitSerializer).serialize_5ase3y_k$ = function (encoder, value) {
|
|
2922
|
+
return this.serialize_tfoyka_k$(encoder, value instanceof DayBased ? value : THROW_CCE());
|
|
2919
2923
|
};
|
|
2920
|
-
protoOf(DayBasedDateTimeUnitSerializer).
|
|
2924
|
+
protoOf(DayBasedDateTimeUnitSerializer).deserialize_sy6x50_k$ = function (decoder) {
|
|
2921
2925
|
var seen = {_v: false};
|
|
2922
2926
|
var days = {_v: 0};
|
|
2923
2927
|
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
2924
|
-
var descriptor = this.
|
|
2925
|
-
var composite = decoder.
|
|
2926
|
-
if (composite.
|
|
2927
|
-
days._v = composite.
|
|
2928
|
+
var descriptor = this.get_descriptor_wjt6a0_k$();
|
|
2929
|
+
var composite = decoder.beginStructure_yljocp_k$(descriptor);
|
|
2930
|
+
if (composite.decodeSequentially_xlblqy_k$()) {
|
|
2931
|
+
days._v = composite.decodeIntElement_941u6a_k$(DayBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$(), 0);
|
|
2928
2932
|
seen._v = true;
|
|
2929
2933
|
} else {
|
|
2930
2934
|
loop: while (true) {
|
|
2931
|
-
var elementIndex = composite.
|
|
2935
|
+
var elementIndex = composite.decodeElementIndex_bstkhp_k$(DayBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$());
|
|
2932
2936
|
switch (elementIndex) {
|
|
2933
2937
|
case 0:
|
|
2934
|
-
days._v = composite.
|
|
2938
|
+
days._v = composite.decodeIntElement_941u6a_k$(DayBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$(), 0);
|
|
2935
2939
|
seen._v = true;
|
|
2936
2940
|
break;
|
|
2937
2941
|
case -1:
|
|
@@ -2943,9 +2947,9 @@ protoOf(DayBasedDateTimeUnitSerializer).e1t = function (decoder) {
|
|
|
2943
2947
|
}
|
|
2944
2948
|
}
|
|
2945
2949
|
var result = Unit_instance;
|
|
2946
|
-
composite.
|
|
2950
|
+
composite.endStructure_1xqz0n_k$(descriptor);
|
|
2947
2951
|
if (!seen._v)
|
|
2948
|
-
throw MissingFieldException_init_$Create$('days', this.
|
|
2952
|
+
throw MissingFieldException_init_$Create$('days', this.get_descriptor_wjt6a0_k$().get_serialName_u2rqhk_k$());
|
|
2949
2953
|
return new DayBased(days._v);
|
|
2950
2954
|
};
|
|
2951
2955
|
var DayBasedDateTimeUnitSerializer_instance;
|
|
@@ -2962,54 +2966,54 @@ function MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($thi
|
|
|
2962
2966
|
var annotations = emptyList();
|
|
2963
2967
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2964
2968
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2965
|
-
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().
|
|
2966
|
-
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).
|
|
2967
|
-
$this$buildClassSerialDescriptor.
|
|
2969
|
+
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().get_intClass_mw4y9a_k$(), arrayOf([]), false));
|
|
2970
|
+
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).get_descriptor_wjt6a0_k$();
|
|
2971
|
+
$this$buildClassSerialDescriptor.element_om879h_k$('months', descriptor, annotations, false);
|
|
2968
2972
|
return Unit_instance;
|
|
2969
2973
|
}
|
|
2970
2974
|
function MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn() {
|
|
2971
2975
|
return constructCallableReference(function (p0) {
|
|
2972
|
-
return p0.
|
|
2973
|
-
}, 1, 0,
|
|
2976
|
+
return p0.get_descriptor_wjt6a0_k$();
|
|
2977
|
+
}, 1, 0, 53);
|
|
2974
2978
|
}
|
|
2975
2979
|
function MonthBasedDateTimeUnitSerializer() {
|
|
2976
2980
|
MonthBasedDateTimeUnitSerializer_instance = this;
|
|
2977
2981
|
var tmp = this;
|
|
2978
2982
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2979
|
-
tmp.
|
|
2983
|
+
tmp.descriptor$delegate_1 = lazy_0(tmp_0, MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
|
|
2980
2984
|
}
|
|
2981
|
-
protoOf(MonthBasedDateTimeUnitSerializer).
|
|
2982
|
-
var tmp0 = this.
|
|
2985
|
+
protoOf(MonthBasedDateTimeUnitSerializer).get_descriptor_wjt6a0_k$ = function () {
|
|
2986
|
+
var tmp0 = this.descriptor$delegate_1;
|
|
2983
2987
|
var tmp = KProperty1;
|
|
2984
2988
|
// Inline function 'kotlin.getValue' call
|
|
2985
2989
|
getPropertyCallableRef('descriptor', 1, tmp, MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn(), null);
|
|
2986
|
-
return tmp0.
|
|
2990
|
+
return tmp0.get_value_j01efc_k$();
|
|
2987
2991
|
};
|
|
2988
|
-
protoOf(MonthBasedDateTimeUnitSerializer).
|
|
2992
|
+
protoOf(MonthBasedDateTimeUnitSerializer).serialize_4f5fti_k$ = function (encoder, value) {
|
|
2989
2993
|
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
2990
|
-
var descriptor = this.
|
|
2991
|
-
var composite = encoder.
|
|
2992
|
-
composite.
|
|
2993
|
-
composite.
|
|
2994
|
+
var descriptor = this.get_descriptor_wjt6a0_k$();
|
|
2995
|
+
var composite = encoder.beginStructure_yljocp_k$(descriptor);
|
|
2996
|
+
composite.encodeIntElement_krhhce_k$(MonthBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$(), 0, value.months_1);
|
|
2997
|
+
composite.endStructure_1xqz0n_k$(descriptor);
|
|
2994
2998
|
};
|
|
2995
|
-
protoOf(MonthBasedDateTimeUnitSerializer).
|
|
2996
|
-
return this.
|
|
2999
|
+
protoOf(MonthBasedDateTimeUnitSerializer).serialize_5ase3y_k$ = function (encoder, value) {
|
|
3000
|
+
return this.serialize_4f5fti_k$(encoder, value instanceof MonthBased ? value : THROW_CCE());
|
|
2997
3001
|
};
|
|
2998
|
-
protoOf(MonthBasedDateTimeUnitSerializer).
|
|
3002
|
+
protoOf(MonthBasedDateTimeUnitSerializer).deserialize_sy6x50_k$ = function (decoder) {
|
|
2999
3003
|
var seen = {_v: false};
|
|
3000
3004
|
var months = {_v: 0};
|
|
3001
3005
|
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
3002
|
-
var descriptor = this.
|
|
3003
|
-
var composite = decoder.
|
|
3004
|
-
if (composite.
|
|
3005
|
-
months._v = composite.
|
|
3006
|
+
var descriptor = this.get_descriptor_wjt6a0_k$();
|
|
3007
|
+
var composite = decoder.beginStructure_yljocp_k$(descriptor);
|
|
3008
|
+
if (composite.decodeSequentially_xlblqy_k$()) {
|
|
3009
|
+
months._v = composite.decodeIntElement_941u6a_k$(MonthBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$(), 0);
|
|
3006
3010
|
seen._v = true;
|
|
3007
3011
|
} else {
|
|
3008
3012
|
loop: while (true) {
|
|
3009
|
-
var elementIndex = composite.
|
|
3013
|
+
var elementIndex = composite.decodeElementIndex_bstkhp_k$(MonthBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$());
|
|
3010
3014
|
switch (elementIndex) {
|
|
3011
3015
|
case 0:
|
|
3012
|
-
months._v = composite.
|
|
3016
|
+
months._v = composite.decodeIntElement_941u6a_k$(MonthBasedDateTimeUnitSerializer_getInstance().get_descriptor_wjt6a0_k$(), 0);
|
|
3013
3017
|
seen._v = true;
|
|
3014
3018
|
break;
|
|
3015
3019
|
case -1:
|
|
@@ -3021,9 +3025,9 @@ protoOf(MonthBasedDateTimeUnitSerializer).e1t = function (decoder) {
|
|
|
3021
3025
|
}
|
|
3022
3026
|
}
|
|
3023
3027
|
var result = Unit_instance;
|
|
3024
|
-
composite.
|
|
3028
|
+
composite.endStructure_1xqz0n_k$(descriptor);
|
|
3025
3029
|
if (!seen._v)
|
|
3026
|
-
throw MissingFieldException_init_$Create$('months', this.
|
|
3030
|
+
throw MissingFieldException_init_$Create$('months', this.get_descriptor_wjt6a0_k$().get_serialName_u2rqhk_k$());
|
|
3027
3031
|
return new MonthBased(months._v);
|
|
3028
3032
|
};
|
|
3029
3033
|
var MonthBasedDateTimeUnitSerializer_instance;
|
|
@@ -3033,11 +3037,11 @@ function MonthBasedDateTimeUnitSerializer_getInstance() {
|
|
|
3033
3037
|
return MonthBasedDateTimeUnitSerializer_instance;
|
|
3034
3038
|
}
|
|
3035
3039
|
function _get_impl__d88w17_0($this) {
|
|
3036
|
-
var tmp0 = $this.
|
|
3040
|
+
var tmp0 = $this.impl$delegate_1;
|
|
3037
3041
|
var tmp = KProperty1;
|
|
3038
3042
|
// Inline function 'kotlin.getValue' call
|
|
3039
3043
|
getPropertyCallableRef('impl', 1, tmp, DateTimeUnitSerializer$_get_impl_$ref_2y1hvx(), null);
|
|
3040
|
-
return tmp0.
|
|
3044
|
+
return tmp0.get_value_j01efc_k$();
|
|
3041
3045
|
}
|
|
3042
3046
|
function DateTimeUnitSerializer$impl$delegate$lambda() {
|
|
3043
3047
|
var tmp = getKClass(DateTimeUnit);
|
|
@@ -3054,29 +3058,29 @@ function DateTimeUnitSerializer$impl$delegate$lambda() {
|
|
|
3054
3058
|
function DateTimeUnitSerializer$_get_impl_$ref_2y1hvx() {
|
|
3055
3059
|
return constructCallableReference(function (p0) {
|
|
3056
3060
|
return _get_impl__d88w17_0(p0);
|
|
3057
|
-
}, 1, 0,
|
|
3061
|
+
}, 1, 0, 54);
|
|
3058
3062
|
}
|
|
3059
3063
|
function DateTimeUnitSerializer() {
|
|
3060
3064
|
DateTimeUnitSerializer_instance = this;
|
|
3061
3065
|
AbstractPolymorphicSerializer.call(this);
|
|
3062
3066
|
var tmp = this;
|
|
3063
3067
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
3064
|
-
tmp.
|
|
3068
|
+
tmp.impl$delegate_1 = lazy_0(tmp_0, DateTimeUnitSerializer$impl$delegate$lambda);
|
|
3065
3069
|
}
|
|
3066
|
-
protoOf(DateTimeUnitSerializer).
|
|
3067
|
-
return _get_impl__d88w17_0(this).
|
|
3070
|
+
protoOf(DateTimeUnitSerializer).findPolymorphicSerializerOrNull_o3cszk_k$ = function (decoder, klassName) {
|
|
3071
|
+
return _get_impl__d88w17_0(this).findPolymorphicSerializerOrNull_o3cszk_k$(decoder, klassName);
|
|
3068
3072
|
};
|
|
3069
|
-
protoOf(DateTimeUnitSerializer).
|
|
3070
|
-
return _get_impl__d88w17_0(this).
|
|
3073
|
+
protoOf(DateTimeUnitSerializer).findPolymorphicSerializerOrNull_cigpgf_k$ = function (encoder, value) {
|
|
3074
|
+
return _get_impl__d88w17_0(this).findPolymorphicSerializerOrNull_sqpvzc_k$(encoder, value);
|
|
3071
3075
|
};
|
|
3072
|
-
protoOf(DateTimeUnitSerializer).
|
|
3073
|
-
return this.
|
|
3076
|
+
protoOf(DateTimeUnitSerializer).findPolymorphicSerializerOrNull_sqpvzc_k$ = function (encoder, value) {
|
|
3077
|
+
return this.findPolymorphicSerializerOrNull_cigpgf_k$(encoder, value instanceof DateTimeUnit ? value : THROW_CCE());
|
|
3074
3078
|
};
|
|
3075
|
-
protoOf(DateTimeUnitSerializer).
|
|
3079
|
+
protoOf(DateTimeUnitSerializer).get_baseClass_lygw3m_k$ = function () {
|
|
3076
3080
|
return getKClass(DateTimeUnit);
|
|
3077
3081
|
};
|
|
3078
|
-
protoOf(DateTimeUnitSerializer).
|
|
3079
|
-
return _get_impl__d88w17_0(this).
|
|
3082
|
+
protoOf(DateTimeUnitSerializer).get_descriptor_wjt6a0_k$ = function () {
|
|
3083
|
+
return _get_impl__d88w17_0(this).get_descriptor_wjt6a0_k$();
|
|
3080
3084
|
};
|
|
3081
3085
|
var DateTimeUnitSerializer_instance;
|
|
3082
3086
|
function DateTimeUnitSerializer_getInstance() {
|
|
@@ -3089,19 +3093,19 @@ function throwUnknownIndexException(index) {
|
|
|
3089
3093
|
}
|
|
3090
3094
|
function LocalDateSerializer() {
|
|
3091
3095
|
LocalDateSerializer_instance = this;
|
|
3092
|
-
this.
|
|
3096
|
+
this.descriptor_1 = PrimitiveSerialDescriptor('kotlinx.datetime.LocalDate', STRING_getInstance());
|
|
3093
3097
|
}
|
|
3094
|
-
protoOf(LocalDateSerializer).
|
|
3095
|
-
return this.
|
|
3098
|
+
protoOf(LocalDateSerializer).get_descriptor_wjt6a0_k$ = function () {
|
|
3099
|
+
return this.descriptor_1;
|
|
3096
3100
|
};
|
|
3097
|
-
protoOf(LocalDateSerializer).
|
|
3098
|
-
return Companion_getInstance_10().
|
|
3101
|
+
protoOf(LocalDateSerializer).deserialize_sy6x50_k$ = function (decoder) {
|
|
3102
|
+
return Companion_getInstance_10().parse$default_krgov1_k$(decoder.decodeString_x3hxsx_k$());
|
|
3099
3103
|
};
|
|
3100
|
-
protoOf(LocalDateSerializer).
|
|
3101
|
-
encoder.
|
|
3104
|
+
protoOf(LocalDateSerializer).serialize_cgw3bx_k$ = function (encoder, value) {
|
|
3105
|
+
encoder.encodeString_424b5v_k$(value.toString());
|
|
3102
3106
|
};
|
|
3103
|
-
protoOf(LocalDateSerializer).
|
|
3104
|
-
return this.
|
|
3107
|
+
protoOf(LocalDateSerializer).serialize_5ase3y_k$ = function (encoder, value) {
|
|
3108
|
+
return this.serialize_cgw3bx_k$(encoder, value instanceof LocalDate ? value : THROW_CCE());
|
|
3105
3109
|
};
|
|
3106
3110
|
var LocalDateSerializer_instance;
|
|
3107
3111
|
function LocalDateSerializer_getInstance() {
|
|
@@ -3111,19 +3115,19 @@ function LocalDateSerializer_getInstance() {
|
|
|
3111
3115
|
}
|
|
3112
3116
|
function YearMonthSerializer() {
|
|
3113
3117
|
YearMonthSerializer_instance = this;
|
|
3114
|
-
this.
|
|
3118
|
+
this.descriptor_1 = PrimitiveSerialDescriptor('kotlinx.datetime.YearMonth', STRING_getInstance());
|
|
3115
3119
|
}
|
|
3116
|
-
protoOf(YearMonthSerializer).
|
|
3117
|
-
return this.
|
|
3120
|
+
protoOf(YearMonthSerializer).get_descriptor_wjt6a0_k$ = function () {
|
|
3121
|
+
return this.descriptor_1;
|
|
3118
3122
|
};
|
|
3119
|
-
protoOf(YearMonthSerializer).
|
|
3120
|
-
return Companion_instance_11.
|
|
3123
|
+
protoOf(YearMonthSerializer).deserialize_sy6x50_k$ = function (decoder) {
|
|
3124
|
+
return Companion_instance_11.parse$default_epr5sf_k$(decoder.decodeString_x3hxsx_k$());
|
|
3121
3125
|
};
|
|
3122
|
-
protoOf(YearMonthSerializer).
|
|
3123
|
-
encoder.
|
|
3126
|
+
protoOf(YearMonthSerializer).serialize_dqatp5_k$ = function (encoder, value) {
|
|
3127
|
+
encoder.encodeString_424b5v_k$(value.toString());
|
|
3124
3128
|
};
|
|
3125
|
-
protoOf(YearMonthSerializer).
|
|
3126
|
-
return this.
|
|
3129
|
+
protoOf(YearMonthSerializer).serialize_5ase3y_k$ = function (encoder, value) {
|
|
3130
|
+
return this.serialize_dqatp5_k$(encoder, value instanceof YearMonth ? value : THROW_CCE());
|
|
3127
3131
|
};
|
|
3128
3132
|
var YearMonthSerializer_instance;
|
|
3129
3133
|
function YearMonthSerializer_getInstance() {
|
|
@@ -3133,10 +3137,10 @@ function YearMonthSerializer_getInstance() {
|
|
|
3133
3137
|
}
|
|
3134
3138
|
function LocalDate_init_$Init$(year, month, day, $this) {
|
|
3135
3139
|
LocalDate.call($this, year, month, day, Unit_instance);
|
|
3136
|
-
var containsArg = $this.
|
|
3140
|
+
var containsArg = $this._month_1;
|
|
3137
3141
|
// Inline function 'kotlin.require' call
|
|
3138
3142
|
if (!(1 <= containsArg ? containsArg <= 12 : false)) {
|
|
3139
|
-
var message = 'Invalid date: month must be a number between 1 and 12, got ' + $this.
|
|
3143
|
+
var message = 'Invalid date: month must be a number between 1 and 12, got ' + $this._month_1;
|
|
3140
3144
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3141
3145
|
}
|
|
3142
3146
|
validateYearAndDay($this);
|
|
@@ -3146,41 +3150,41 @@ function LocalDate_init_$Create$(year, month, day) {
|
|
|
3146
3150
|
return LocalDate_init_$Init$(year, month, day, objectCreate(protoOf(LocalDate)));
|
|
3147
3151
|
}
|
|
3148
3152
|
function validateYearAndDay($this) {
|
|
3149
|
-
var containsArg = $this.
|
|
3153
|
+
var containsArg = $this.year_1;
|
|
3150
3154
|
// Inline function 'kotlin.require' call
|
|
3151
3155
|
if (!(-999999999 <= containsArg ? containsArg <= 999999999 : false)) {
|
|
3152
3156
|
var message = 'Invalid date: the year is out of range';
|
|
3153
3157
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3154
3158
|
}
|
|
3155
|
-
var containsArg_0 = $this.
|
|
3159
|
+
var containsArg_0 = $this.day_1;
|
|
3156
3160
|
// Inline function 'kotlin.require' call
|
|
3157
3161
|
if (!(1 <= containsArg_0 ? containsArg_0 <= 31 : false)) {
|
|
3158
|
-
var message_0 = 'Invalid date: day of month must be a number between 1 and 31, got ' + $this.
|
|
3162
|
+
var message_0 = 'Invalid date: day of month must be a number between 1 and 31, got ' + $this.day_1;
|
|
3159
3163
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3160
3164
|
}
|
|
3161
|
-
if ($this.
|
|
3162
|
-
if ($this.
|
|
3163
|
-
throw IllegalArgumentException_init_$Create$("Invalid date 'February 29' as '" + $this.
|
|
3165
|
+
if ($this.day_1 > 28 && $this.day_1 > monthLength($this._month_1, isLeapYear($this.year_1))) {
|
|
3166
|
+
if ($this.day_1 === 29) {
|
|
3167
|
+
throw IllegalArgumentException_init_$Create$("Invalid date 'February 29' as '" + $this.year_1 + "' is not a leap year");
|
|
3164
3168
|
} else {
|
|
3165
|
-
throw IllegalArgumentException_init_$Create$("Invalid date '" + $this.
|
|
3169
|
+
throw IllegalArgumentException_init_$Create$("Invalid date '" + $this.get_month_ivc8d3_k$().toString() + ' ' + $this.day_1 + "'");
|
|
3166
3170
|
}
|
|
3167
3171
|
}
|
|
3168
3172
|
}
|
|
3169
3173
|
function Companion_10() {
|
|
3170
3174
|
Companion_instance_10 = this;
|
|
3171
|
-
this.
|
|
3172
|
-
this.
|
|
3173
|
-
this.
|
|
3174
|
-
this.
|
|
3175
|
+
this.MIN_1 = LocalDate_init_$Create$(-999999999, 1, 1);
|
|
3176
|
+
this.MAX_1 = LocalDate_init_$Create$(999999999, 12, 31);
|
|
3177
|
+
this.MIN_EPOCH_DAY_1 = -365243219162n;
|
|
3178
|
+
this.MAX_EPOCH_DAY_1 = 365241780471n;
|
|
3175
3179
|
}
|
|
3176
|
-
protoOf(Companion_10).
|
|
3177
|
-
return format.
|
|
3180
|
+
protoOf(Companion_10).parse_18ba6d_k$ = function (input, format) {
|
|
3181
|
+
return format.parse_xovy9i_k$(input);
|
|
3178
3182
|
};
|
|
3179
|
-
protoOf(Companion_10).
|
|
3183
|
+
protoOf(Companion_10).parse$default_krgov1_k$ = function (input, format, $super) {
|
|
3180
3184
|
format = format === VOID ? getIsoDateFormat() : format;
|
|
3181
|
-
return $super === VOID ? this.
|
|
3185
|
+
return $super === VOID ? this.parse_18ba6d_k$(input, format) : $super.parse_18ba6d_k$.call(this, input, format);
|
|
3182
3186
|
};
|
|
3183
|
-
protoOf(Companion_10).
|
|
3187
|
+
protoOf(Companion_10).fromEpochDays_a3paq6_k$ = function (epochDays) {
|
|
3184
3188
|
// Inline function 'kotlin.require' call
|
|
3185
3189
|
if (!(-365243219162n <= epochDays ? epochDays <= 365241780471n : false)) {
|
|
3186
3190
|
var message = 'Invalid date: epoch day ' + epochDays.toString() + ' is outside the boundaries of LocalDate';
|
|
@@ -3264,9 +3268,9 @@ function Companion_getInstance_10() {
|
|
|
3264
3268
|
}
|
|
3265
3269
|
function Formats() {
|
|
3266
3270
|
Formats_instance = this;
|
|
3267
|
-
this.
|
|
3271
|
+
this.ISO_BASIC_1 = get_ISO_DATE_BASIC();
|
|
3268
3272
|
}
|
|
3269
|
-
protoOf(Formats).
|
|
3273
|
+
protoOf(Formats).get_ISO_18jrwk_k$ = function () {
|
|
3270
3274
|
return get_ISO_DATE();
|
|
3271
3275
|
};
|
|
3272
3276
|
var Formats_instance;
|
|
@@ -3283,13 +3287,13 @@ function resolvePreviousValid($this, year, month, day) {
|
|
|
3283
3287
|
}
|
|
3284
3288
|
function LocalDate(year, month, day, unit) {
|
|
3285
3289
|
Companion_getInstance_10();
|
|
3286
|
-
this.
|
|
3287
|
-
this.
|
|
3288
|
-
this.
|
|
3290
|
+
this.year_1 = year;
|
|
3291
|
+
this.day_1 = day;
|
|
3292
|
+
this._month_1 = month;
|
|
3289
3293
|
}
|
|
3290
|
-
protoOf(LocalDate).
|
|
3291
|
-
var y = fromInt(this.
|
|
3292
|
-
var m = fromInt(this.
|
|
3294
|
+
protoOf(LocalDate).toEpochDays_tp9eth_k$ = function () {
|
|
3295
|
+
var y = fromInt(this.year_1);
|
|
3296
|
+
var m = fromInt(this._month_1);
|
|
3293
3297
|
var total = 0n;
|
|
3294
3298
|
total = add(total, multiply(numberToLong(365), y));
|
|
3295
3299
|
if (y >= 0n) {
|
|
@@ -3328,12 +3332,12 @@ protoOf(LocalDate).a5d = function () {
|
|
|
3328
3332
|
total = add(tmp_5, tmp$ret$10);
|
|
3329
3333
|
var tmp0 = total;
|
|
3330
3334
|
// Inline function 'kotlin.Long.plus' call
|
|
3331
|
-
var other = this.
|
|
3335
|
+
var other = this.day_1 - 1 | 0;
|
|
3332
3336
|
total = add(tmp0, fromInt(other));
|
|
3333
3337
|
if (m > 2n) {
|
|
3334
3338
|
var _unary__edvuaz = total;
|
|
3335
3339
|
total = subtract(_unary__edvuaz, get_ONE());
|
|
3336
|
-
if (!isLeapYear(this.
|
|
3340
|
+
if (!isLeapYear(this.year_1)) {
|
|
3337
3341
|
var _unary__edvuaz_0 = total;
|
|
3338
3342
|
total = subtract(_unary__edvuaz_0, get_ONE());
|
|
3339
3343
|
}
|
|
@@ -3342,12 +3346,12 @@ protoOf(LocalDate).a5d = function () {
|
|
|
3342
3346
|
var this_5 = total;
|
|
3343
3347
|
return subtract(this_5, fromInt(719528));
|
|
3344
3348
|
};
|
|
3345
|
-
protoOf(LocalDate).
|
|
3346
|
-
return Month_0(this.
|
|
3349
|
+
protoOf(LocalDate).get_month_ivc8d3_k$ = function () {
|
|
3350
|
+
return Month_0(this._month_1);
|
|
3347
3351
|
};
|
|
3348
|
-
protoOf(LocalDate).
|
|
3352
|
+
protoOf(LocalDate).get_dayOfWeek_3kfgci_k$ = function () {
|
|
3349
3353
|
// Inline function 'kotlin.Long.plus' call
|
|
3350
|
-
var this_0 = this.
|
|
3354
|
+
var this_0 = this.toEpochDays_tp9eth_k$();
|
|
3351
3355
|
// Inline function 'kotlin.mod' call
|
|
3352
3356
|
var tmp0 = add(this_0, fromInt(3));
|
|
3353
3357
|
// Inline function 'kotlin.mod' call
|
|
@@ -3357,30 +3361,30 @@ protoOf(LocalDate).f57 = function () {
|
|
|
3357
3361
|
var dow0 = convertToInt(tmp$ret$2);
|
|
3358
3362
|
return DayOfWeek_0(dow0 + 1 | 0);
|
|
3359
3363
|
};
|
|
3360
|
-
protoOf(LocalDate).
|
|
3361
|
-
return (firstDayOfYear(this.
|
|
3364
|
+
protoOf(LocalDate).get_dayOfYear_3ke6gp_k$ = function () {
|
|
3365
|
+
return (firstDayOfYear(this.get_month_ivc8d3_k$(), isLeapYear(this.year_1)) + this.day_1 | 0) - 1 | 0;
|
|
3362
3366
|
};
|
|
3363
|
-
protoOf(LocalDate).
|
|
3364
|
-
var y = compareTo(this.
|
|
3367
|
+
protoOf(LocalDate).compareTo_e7gwgq_k$ = function (other) {
|
|
3368
|
+
var y = compareTo(this.year_1, other.year_1);
|
|
3365
3369
|
if (!(y === 0)) {
|
|
3366
3370
|
return y;
|
|
3367
3371
|
}
|
|
3368
|
-
var m = compareTo(this.
|
|
3372
|
+
var m = compareTo(this._month_1, other._month_1);
|
|
3369
3373
|
if (!(m === 0)) {
|
|
3370
3374
|
return m;
|
|
3371
3375
|
}
|
|
3372
|
-
return compareTo(this.
|
|
3376
|
+
return compareTo(this.day_1, other.day_1);
|
|
3373
3377
|
};
|
|
3374
|
-
protoOf(LocalDate).
|
|
3375
|
-
return this.
|
|
3378
|
+
protoOf(LocalDate).compareTo_hpufkf_k$ = function (other) {
|
|
3379
|
+
return this.compareTo_e7gwgq_k$(other instanceof LocalDate ? other : THROW_CCE());
|
|
3376
3380
|
};
|
|
3377
|
-
protoOf(LocalDate).
|
|
3381
|
+
protoOf(LocalDate).plusMonths_8xapro_k$ = function (monthsToAdd) {
|
|
3378
3382
|
if (monthsToAdd === 0n) {
|
|
3379
3383
|
return this;
|
|
3380
3384
|
}
|
|
3381
|
-
var tmp0 = multiply(numberToLong(this.
|
|
3385
|
+
var tmp0 = multiply(numberToLong(this.year_1), 12n);
|
|
3382
3386
|
// Inline function 'kotlin.Long.plus' call
|
|
3383
|
-
var other = this.
|
|
3387
|
+
var other = this._month_1 - 1 | 0;
|
|
3384
3388
|
var monthCount = add(tmp0, fromInt(other));
|
|
3385
3389
|
var calcMonths = safeAdd(monthCount, monthsToAdd);
|
|
3386
3390
|
// Inline function 'kotlin.floorDiv' call
|
|
@@ -3403,10 +3407,10 @@ protoOf(LocalDate).c5d = function (monthsToAdd) {
|
|
|
3403
3407
|
var r = modulo(calcMonths, other_1);
|
|
3404
3408
|
var tmp$ret$5 = add(r, other_1 & shiftRight((r ^ other_1) & (r | negate(r)), 63));
|
|
3405
3409
|
var newMonth = convertToInt(tmp$ret$5) + 1 | 0;
|
|
3406
|
-
return resolvePreviousValid(this, convertToInt(newYear), newMonth, this.
|
|
3410
|
+
return resolvePreviousValid(this, convertToInt(newYear), newMonth, this.day_1);
|
|
3407
3411
|
};
|
|
3408
|
-
protoOf(LocalDate).
|
|
3409
|
-
return daysToAdd === 0n ? this : Companion_getInstance_10().
|
|
3412
|
+
protoOf(LocalDate).plusDays_w89bio_k$ = function (daysToAdd) {
|
|
3413
|
+
return daysToAdd === 0n ? this : Companion_getInstance_10().fromEpochDays_a3paq6_k$(safeAdd(this.toEpochDays_tp9eth_k$(), daysToAdd));
|
|
3410
3414
|
};
|
|
3411
3415
|
protoOf(LocalDate).equals = function (other) {
|
|
3412
3416
|
var tmp;
|
|
@@ -3415,7 +3419,7 @@ protoOf(LocalDate).equals = function (other) {
|
|
|
3415
3419
|
} else {
|
|
3416
3420
|
var tmp_0;
|
|
3417
3421
|
if (other instanceof LocalDate) {
|
|
3418
|
-
tmp_0 = this.
|
|
3422
|
+
tmp_0 = this.compareTo_e7gwgq_k$(other) === 0;
|
|
3419
3423
|
} else {
|
|
3420
3424
|
tmp_0 = false;
|
|
3421
3425
|
}
|
|
@@ -3424,23 +3428,23 @@ protoOf(LocalDate).equals = function (other) {
|
|
|
3424
3428
|
return tmp;
|
|
3425
3429
|
};
|
|
3426
3430
|
protoOf(LocalDate).hashCode = function () {
|
|
3427
|
-
var yearValue = this.
|
|
3428
|
-
var monthValue = this.
|
|
3429
|
-
var dayValue = this.
|
|
3431
|
+
var yearValue = this.year_1;
|
|
3432
|
+
var monthValue = this._month_1;
|
|
3433
|
+
var dayValue = this.day_1;
|
|
3430
3434
|
return yearValue & -2048 ^ (((yearValue << 11) + (monthValue << 6) | 0) + dayValue | 0);
|
|
3431
3435
|
};
|
|
3432
3436
|
protoOf(LocalDate).toString = function () {
|
|
3433
|
-
return format(this, Formats_getInstance().
|
|
3437
|
+
return format(this, Formats_getInstance().get_ISO_18jrwk_k$());
|
|
3434
3438
|
};
|
|
3435
3439
|
function plus_1(_this__u8e3s4, value, unit) {
|
|
3436
3440
|
var tmp;
|
|
3437
3441
|
try {
|
|
3438
3442
|
var tmp_0;
|
|
3439
3443
|
if (unit instanceof DayBased) {
|
|
3440
|
-
tmp_0 = _this__u8e3s4.
|
|
3444
|
+
tmp_0 = _this__u8e3s4.plusDays_w89bio_k$(safeMultiply(value, fromInt(unit.days_1)));
|
|
3441
3445
|
} else {
|
|
3442
3446
|
if (unit instanceof MonthBased) {
|
|
3443
|
-
tmp_0 = _this__u8e3s4.
|
|
3447
|
+
tmp_0 = _this__u8e3s4.plusMonths_8xapro_k$(safeMultiply(value, fromInt(unit.months_1)));
|
|
3444
3448
|
} else {
|
|
3445
3449
|
noWhenBranchMatchedException();
|
|
3446
3450
|
}
|
|
@@ -3465,7 +3469,7 @@ function plus_1(_this__u8e3s4, value, unit) {
|
|
|
3465
3469
|
function firstDayOfYear(_this__u8e3s4, leapYear) {
|
|
3466
3470
|
var leap = leapYear ? 1 : 0;
|
|
3467
3471
|
var tmp;
|
|
3468
|
-
switch (_this__u8e3s4.
|
|
3472
|
+
switch (_this__u8e3s4.ordinal_1) {
|
|
3469
3473
|
case 0:
|
|
3470
3474
|
tmp = 1;
|
|
3471
3475
|
break;
|
|
@@ -3509,16 +3513,16 @@ function firstDayOfYear(_this__u8e3s4, leapYear) {
|
|
|
3509
3513
|
return tmp;
|
|
3510
3514
|
}
|
|
3511
3515
|
function validateYear($this) {
|
|
3512
|
-
var containsArg = $this.
|
|
3516
|
+
var containsArg = $this.year_1;
|
|
3513
3517
|
// Inline function 'kotlin.require' call
|
|
3514
3518
|
if (!(-999999999 <= containsArg ? containsArg <= 999999999 : false)) {
|
|
3515
|
-
var message = 'Year ' + $this.
|
|
3519
|
+
var message = 'Year ' + $this.year_1 + ' is out of range: -999999999..999999999';
|
|
3516
3520
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3517
3521
|
}
|
|
3518
3522
|
}
|
|
3519
3523
|
function YearMonth_init_$Init$(year, month, $this) {
|
|
3520
3524
|
YearMonth.call($this, year, month, Unit_instance);
|
|
3521
|
-
var containsArg = $this.
|
|
3525
|
+
var containsArg = $this.monthNumber_1;
|
|
3522
3526
|
// Inline function 'kotlin.require' call
|
|
3523
3527
|
if (!(1 <= containsArg ? containsArg <= 12 : false)) {
|
|
3524
3528
|
var message = 'Month must be in 1..12, but was ' + month;
|
|
@@ -3532,12 +3536,12 @@ function YearMonth_init_$Create$(year, month) {
|
|
|
3532
3536
|
}
|
|
3533
3537
|
function Companion_11() {
|
|
3534
3538
|
}
|
|
3535
|
-
protoOf(Companion_11).
|
|
3536
|
-
return format.
|
|
3539
|
+
protoOf(Companion_11).parse_ziaw5h_k$ = function (input, format) {
|
|
3540
|
+
return format.parse_xovy9i_k$(input);
|
|
3537
3541
|
};
|
|
3538
|
-
protoOf(Companion_11).
|
|
3539
|
-
format = format === VOID ? Formats_instance_0.
|
|
3540
|
-
return $super === VOID ? this.
|
|
3542
|
+
protoOf(Companion_11).parse$default_epr5sf_k$ = function (input, format, $super) {
|
|
3543
|
+
format = format === VOID ? Formats_instance_0.get_ISO_18jrwk_k$() : format;
|
|
3544
|
+
return $super === VOID ? this.parse_ziaw5h_k$(input, format) : $super.parse_ziaw5h_k$.call(this, input, format);
|
|
3541
3545
|
};
|
|
3542
3546
|
var Companion_instance_11;
|
|
3543
3547
|
function Companion_getInstance_11() {
|
|
@@ -3545,7 +3549,7 @@ function Companion_getInstance_11() {
|
|
|
3545
3549
|
}
|
|
3546
3550
|
function Formats_0() {
|
|
3547
3551
|
}
|
|
3548
|
-
protoOf(Formats_0).
|
|
3552
|
+
protoOf(Formats_0).get_ISO_18jrwk_k$ = function () {
|
|
3549
3553
|
return get_ISO_YEAR_MONTH();
|
|
3550
3554
|
};
|
|
3551
3555
|
var Formats_instance_0;
|
|
@@ -3554,50 +3558,50 @@ function Formats_getInstance_0() {
|
|
|
3554
3558
|
}
|
|
3555
3559
|
function YearMonth$_get_year_$ref_chp4n6() {
|
|
3556
3560
|
return constructCallableReference(function (p0) {
|
|
3557
|
-
return p0.
|
|
3558
|
-
}, 1, 0,
|
|
3561
|
+
return p0.year_1;
|
|
3562
|
+
}, 1, 0, 55);
|
|
3559
3563
|
}
|
|
3560
3564
|
function YearMonth$_get_month_$ref_9rphhd() {
|
|
3561
3565
|
return constructCallableReference(function (p0) {
|
|
3562
|
-
return p0.
|
|
3563
|
-
}, 1, 0,
|
|
3566
|
+
return p0.get_month_ivc8d3_k$();
|
|
3567
|
+
}, 1, 0, 56);
|
|
3564
3568
|
}
|
|
3565
3569
|
function YearMonth(year, month, unit) {
|
|
3566
|
-
this.
|
|
3567
|
-
this.
|
|
3570
|
+
this.year_1 = year;
|
|
3571
|
+
this.monthNumber_1 = month;
|
|
3568
3572
|
}
|
|
3569
|
-
protoOf(YearMonth).
|
|
3570
|
-
return Month_0(this.
|
|
3573
|
+
protoOf(YearMonth).get_month_ivc8d3_k$ = function () {
|
|
3574
|
+
return Month_0(this.monthNumber_1);
|
|
3571
3575
|
};
|
|
3572
|
-
protoOf(YearMonth).
|
|
3576
|
+
protoOf(YearMonth).compareTo_zex1lo_k$ = function (other) {
|
|
3573
3577
|
var tmp = KProperty1;
|
|
3574
3578
|
var tmp_0 = getPropertyCallableRef('year', 1, tmp, YearMonth$_get_year_$ref_chp4n6(), null);
|
|
3575
3579
|
var tmp_1 = KProperty1;
|
|
3576
3580
|
return compareValuesBy(this, other, [tmp_0, getPropertyCallableRef('month', 1, tmp_1, YearMonth$_get_month_$ref_9rphhd(), null)]);
|
|
3577
3581
|
};
|
|
3578
|
-
protoOf(YearMonth).
|
|
3579
|
-
return this.
|
|
3582
|
+
protoOf(YearMonth).compareTo_hpufkf_k$ = function (other) {
|
|
3583
|
+
return this.compareTo_zex1lo_k$(other instanceof YearMonth ? other : THROW_CCE());
|
|
3580
3584
|
};
|
|
3581
3585
|
protoOf(YearMonth).toString = function () {
|
|
3582
|
-
return Formats_instance_0.
|
|
3586
|
+
return Formats_instance_0.get_ISO_18jrwk_k$().format_l1mq08_k$(this);
|
|
3583
3587
|
};
|
|
3584
3588
|
protoOf(YearMonth).equals = function (other) {
|
|
3585
3589
|
var tmp;
|
|
3586
3590
|
var tmp_0;
|
|
3587
3591
|
if (other instanceof YearMonth) {
|
|
3588
|
-
tmp_0 = this.
|
|
3592
|
+
tmp_0 = this.year_1 === other.year_1;
|
|
3589
3593
|
} else {
|
|
3590
3594
|
tmp_0 = false;
|
|
3591
3595
|
}
|
|
3592
3596
|
if (tmp_0) {
|
|
3593
|
-
tmp = this.
|
|
3597
|
+
tmp = this.get_month_ivc8d3_k$().equals(other.get_month_ivc8d3_k$());
|
|
3594
3598
|
} else {
|
|
3595
3599
|
tmp = false;
|
|
3596
3600
|
}
|
|
3597
3601
|
return tmp;
|
|
3598
3602
|
};
|
|
3599
3603
|
protoOf(YearMonth).hashCode = function () {
|
|
3600
|
-
return imul(this.
|
|
3604
|
+
return imul(this.year_1, 31) + this.get_month_ivc8d3_k$().hashCode() | 0;
|
|
3601
3605
|
};
|
|
3602
3606
|
function safeAdd(a, b) {
|
|
3603
3607
|
var sum = add(a, b);
|
|
@@ -3630,27 +3634,27 @@ function safeMultiply_0(a, b) {
|
|
|
3630
3634
|
return convertToInt(total);
|
|
3631
3635
|
}
|
|
3632
3636
|
//region block: post-declaration
|
|
3633
|
-
protoOf(Builder).
|
|
3634
|
-
protoOf(Builder).
|
|
3635
|
-
protoOf(Builder).
|
|
3636
|
-
protoOf(Builder).
|
|
3637
|
-
protoOf(Builder).
|
|
3638
|
-
protoOf(Builder).
|
|
3639
|
-
protoOf(Builder).
|
|
3640
|
-
protoOf(Builder).
|
|
3641
|
-
protoOf(Builder).
|
|
3642
|
-
protoOf(Builder_0).
|
|
3643
|
-
protoOf(Builder_0).
|
|
3644
|
-
protoOf(Builder_0).
|
|
3645
|
-
protoOf(Builder_0).
|
|
3646
|
-
protoOf(Builder_0).
|
|
3647
|
-
protoOf(Builder_0).
|
|
3648
|
-
protoOf(PropertyAccessor).
|
|
3649
|
-
protoOf(SpacePaddedFormatter).
|
|
3650
|
-
protoOf(ConcatenatedFormatter).
|
|
3651
|
-
protoOf(UnsignedIntFormatterStructure).
|
|
3652
|
-
protoOf(SignedIntFormatterStructure).
|
|
3653
|
-
protoOf(ConstantStringFormatterStructure).
|
|
3637
|
+
protoOf(Builder).chars_pe6iqb_k$ = chars;
|
|
3638
|
+
protoOf(Builder).build_1k0s4u_k$ = build;
|
|
3639
|
+
protoOf(Builder).addFormatStructureForYearMonth_t4rp63_k$ = addFormatStructureForYearMonth;
|
|
3640
|
+
protoOf(Builder).day_pu15qg_k$ = day;
|
|
3641
|
+
protoOf(Builder).day$default_z5jqi1_k$ = day$default;
|
|
3642
|
+
protoOf(Builder).year_dmdaiv_k$ = year;
|
|
3643
|
+
protoOf(Builder).year$default_dp2ctv_k$ = year$default;
|
|
3644
|
+
protoOf(Builder).monthNumber_xjkdp7_k$ = monthNumber;
|
|
3645
|
+
protoOf(Builder).monthNumber$default_9sd2sh_k$ = monthNumber$default;
|
|
3646
|
+
protoOf(Builder_0).chars_pe6iqb_k$ = chars;
|
|
3647
|
+
protoOf(Builder_0).build_1k0s4u_k$ = build;
|
|
3648
|
+
protoOf(Builder_0).year_dmdaiv_k$ = year;
|
|
3649
|
+
protoOf(Builder_0).year$default_dp2ctv_k$ = year$default;
|
|
3650
|
+
protoOf(Builder_0).monthNumber_xjkdp7_k$ = monthNumber;
|
|
3651
|
+
protoOf(Builder_0).monthNumber$default_9sd2sh_k$ = monthNumber$default;
|
|
3652
|
+
protoOf(PropertyAccessor).getterNotNull_rjcshh_k$ = getterNotNull;
|
|
3653
|
+
protoOf(SpacePaddedFormatter).format$default_fwaxfk_k$ = format$default;
|
|
3654
|
+
protoOf(ConcatenatedFormatter).format$default_fwaxfk_k$ = format$default;
|
|
3655
|
+
protoOf(UnsignedIntFormatterStructure).format$default_fwaxfk_k$ = format$default;
|
|
3656
|
+
protoOf(SignedIntFormatterStructure).format$default_fwaxfk_k$ = format$default;
|
|
3657
|
+
protoOf(ConstantStringFormatterStructure).format$default_fwaxfk_k$ = format$default;
|
|
3654
3658
|
//endregion
|
|
3655
3659
|
//region block: init
|
|
3656
3660
|
Companion_instance = new Companion();
|
|
@@ -3669,7 +3673,7 @@ Formats_instance_0 = new Formats_0();
|
|
|
3669
3673
|
//endregion
|
|
3670
3674
|
//region block: exports
|
|
3671
3675
|
export {
|
|
3672
|
-
LocalDateSerializer_getInstance as
|
|
3676
|
+
LocalDateSerializer_getInstance as LocalDateSerializer_getInstance3qg2c8779i3ej,
|
|
3673
3677
|
};
|
|
3674
3678
|
//endregion
|
|
3675
3679
|
|