@solibo/home-api 1.15.15 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1019 -943
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs +1 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -0
- package/MultiplatformSettings-multiplatform-settings.mjs +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +2223 -1914
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -0
- package/kotlinx-atomicfu.mjs +14 -14
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-browser.mjs +1 -1
- package/kotlinx-browser.mjs.map +1 -0
- package/kotlinx-coroutines-core.mjs +2307 -2247
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs +41 -41
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +474 -470
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1909 -1910
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1986 -1658
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/ktor-ktor-client-auth.mjs +1 -1
- package/ktor-ktor-client-auth.mjs.map +1 -0
- package/ktor-ktor-client-content-negotiation.mjs +260 -234
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -0
- package/ktor-ktor-client-core.mjs +3240 -3326
- package/ktor-ktor-client-core.mjs.map +1 -0
- package/ktor-ktor-client-encoding.mjs +1 -1
- package/ktor-ktor-client-encoding.mjs.map +1 -0
- package/ktor-ktor-client-logging.mjs +1 -1
- package/ktor-ktor-client-logging.mjs.map +1 -0
- package/ktor-ktor-client-websockets.mjs +1 -1
- package/ktor-ktor-client-websockets.mjs.map +1 -0
- package/ktor-ktor-events.mjs +8 -8
- package/ktor-ktor-events.mjs.map +1 -0
- package/ktor-ktor-http-cio.mjs +525 -530
- package/ktor-ktor-http-cio.mjs.map +1 -0
- package/ktor-ktor-http.mjs +735 -766
- package/ktor-ktor-http.mjs.map +1 -0
- package/ktor-ktor-io.mjs +1502 -1279
- package/ktor-ktor-io.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
- package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx.mjs +272 -389
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
- package/ktor-ktor-serialization.mjs +113 -142
- package/ktor-ktor-serialization.mjs.map +1 -0
- package/ktor-ktor-sse.mjs +1 -1
- package/ktor-ktor-sse.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +812 -787
- package/ktor-ktor-utils.mjs.map +1 -0
- package/ktor-ktor-websocket-serialization.mjs +1 -1
- package/ktor-ktor-websocket-serialization.mjs.map +1 -0
- package/ktor-ktor-websockets.mjs +901 -862
- package/ktor-ktor-websockets.mjs.map +1 -0
- package/package.json +2 -2
- package/solibo-sdk-sdk-home-api.d.mts +127 -14
- package/solibo-sdk-sdk-home-api.mjs +110003 -108257
- package/solibo-sdk-sdk-home-api.mjs.map +1 -0
|
@@ -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$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
6
|
+
Unit_instance3vdlo4e4f5ggx as Unit_instance,
|
|
7
7
|
fromInt2ii0rejb1w62w as fromInt,
|
|
8
8
|
modulooi4g1kq3dmtt as modulo,
|
|
9
9
|
dividelr0uqtdj497z as divide,
|
|
@@ -13,32 +13,33 @@ import {
|
|
|
13
13
|
VOID3gxj6tk5isa35 as VOID,
|
|
14
14
|
enumEntries20mr21zbe3az4 as enumEntries,
|
|
15
15
|
Enum3alwj03lh1n41 as Enum,
|
|
16
|
-
IllegalArgumentException_init_$Init$
|
|
16
|
+
IllegalArgumentException_init_$Init$h3unwyh5wtya 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$2il8idvytc2u5 as IllegalArgumentException_init_$Init$_0,
|
|
20
|
+
IllegalArgumentException_init_$Init$35vj61jtoudis as IllegalArgumentException_init_$Init$_1,
|
|
21
21
|
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
22
|
-
RuntimeException_init_$Init$
|
|
23
|
-
RuntimeException_init_$Init$
|
|
22
|
+
RuntimeException_init_$Init$2qjnmbxgyhko7 as RuntimeException_init_$Init$,
|
|
23
|
+
RuntimeException_init_$Init$9z9enfjx6krz as RuntimeException_init_$Init$_0,
|
|
24
24
|
RuntimeException1r3t0zl97011n as RuntimeException,
|
|
25
|
-
StringBuilder_init_$Create$
|
|
25
|
+
StringBuilder_init_$Create$3pb07k1b5jr7z as StringBuilder_init_$Create$,
|
|
26
26
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
27
|
-
|
|
27
|
+
toString336ienavfnzn0 as toString_0,
|
|
28
28
|
KProperty02ce7r476m8633 as KProperty0,
|
|
29
29
|
getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
|
|
30
30
|
hashCodeq5arwsb9dgti as hashCode,
|
|
31
31
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
32
|
+
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
32
33
|
KMutableProperty11e8g1gb0ecb9j as KMutableProperty1,
|
|
33
34
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
34
|
-
|
|
35
|
+
_Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
|
|
35
36
|
lazy2hsh8ze7j6ikd as lazy,
|
|
36
37
|
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
37
|
-
ArrayList_init_$Create$
|
|
38
|
+
ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create$,
|
|
38
39
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
39
40
|
isInterface3d6p8outrmvmk as isInterface,
|
|
40
41
|
equals2au1ep9vhcato as equals,
|
|
41
|
-
IllegalStateException_init_$Create$
|
|
42
|
+
IllegalStateException_init_$Create$3394faf8tdm0h as IllegalStateException_init_$Create$,
|
|
42
43
|
toString30pk9tzaqopn as toString_1,
|
|
43
44
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
44
45
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
@@ -50,7 +51,7 @@ import {
|
|
|
50
51
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
51
52
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
52
53
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
53
|
-
ArrayList_init_$Create$
|
|
54
|
+
ArrayList_init_$Create$3o344dm0ee4ws as ArrayList_init_$Create$_0,
|
|
54
55
|
singleo93pzdgfc557 as single,
|
|
55
56
|
abs1kdzbjes1idip as abs,
|
|
56
57
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
@@ -63,23 +64,25 @@ import {
|
|
|
63
64
|
Comparator2b3maoeh98xtg as Comparator,
|
|
64
65
|
compareValues1n2ayl87ihzfk as compareValues,
|
|
65
66
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
66
|
-
Exception_init_$Init$
|
|
67
|
-
|
|
67
|
+
Exception_init_$Init$1ksq2fk0jxaag as Exception_init_$Init$,
|
|
68
|
+
asReversed308kw52j6ls1u as asReversed,
|
|
69
|
+
StringBuilder_init_$Create$3q4yitjcnfjo as StringBuilder_init_$Create$_0,
|
|
68
70
|
joinTo3lkanfaxbzac2 as joinTo,
|
|
71
|
+
firstOrNull1982767dljvdy as firstOrNull,
|
|
69
72
|
plus310ted5e4i90h as plus,
|
|
73
|
+
get_lastIndex1yw0x4k50k51w as get_lastIndex_0,
|
|
70
74
|
toMutableList20rdgwi7d3cwi as toMutableList,
|
|
71
75
|
addAll1k27qatfgp3k5 as addAll,
|
|
72
76
|
Collection1k04j3hzsbod0 as Collection,
|
|
73
|
-
|
|
74
|
-
drop3na99dw9feawf as drop,
|
|
77
|
+
asReversed2y2qzr7vrqd5 as asReversed_0,
|
|
75
78
|
listOf1jh22dvmctj1r as listOf_0,
|
|
76
79
|
repeat2w4c6j8zoq09o as repeat,
|
|
77
80
|
checkCountOverflow1ro2fe1r4xvgf as checkCountOverflow,
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
Char__minus_impl_a2frrh370khreoakmi6 as Char__minus_impl_a2frrh,
|
|
82
|
+
PrimitiveClasses_getInstance143761yrsca9q as PrimitiveClasses_getInstance,
|
|
80
83
|
arrayOf1akklvh2at202 as arrayOf,
|
|
81
84
|
createKType31ecntyyaay3k as createKType,
|
|
82
|
-
|
|
85
|
+
LazyThreadSafetyMode_PUBLICATION_getInstance20ynwq7b0awd8 as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
83
86
|
lazy1261dae0bgscp as lazy_0,
|
|
84
87
|
KProperty1ca4yb4wlo496 as KProperty1,
|
|
85
88
|
getKClass3t8tygqu4lcxf as getKClass,
|
|
@@ -95,17 +98,18 @@ import {
|
|
|
95
98
|
Comparable198qfk8pnblz0 as Comparable,
|
|
96
99
|
ArithmeticException18dajwq7kbp38 as ArithmeticException,
|
|
97
100
|
compareValuesBy2ycqeh37x2wfm as compareValuesBy,
|
|
98
|
-
ArithmeticException_init_$Create$
|
|
101
|
+
ArithmeticException_init_$Create$dztvx0z421r2 as ArithmeticException_init_$Create$,
|
|
99
102
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
100
103
|
import {
|
|
104
|
+
SerializableWithd2dap36updxd as SerializableWith,
|
|
101
105
|
buildClassSerialDescriptors2a6xdp6mrtw as buildClassSerialDescriptor,
|
|
102
106
|
serializer1hwzc6m64v1op as serializer,
|
|
103
107
|
KSerializerzf77vz1967fq as KSerializer,
|
|
104
|
-
MissingFieldException_init_$Create$
|
|
108
|
+
MissingFieldException_init_$Create$pcgol3o822le as MissingFieldException_init_$Create$,
|
|
105
109
|
SealedClassSerializeriwipiibk55zc as SealedClassSerializer,
|
|
106
110
|
AbstractPolymorphicSerializer1ccxwp48nfy58 as AbstractPolymorphicSerializer,
|
|
107
|
-
SerializationException_init_$Create$
|
|
108
|
-
|
|
111
|
+
SerializationException_init_$Create$3psdplbjmr4al as SerializationException_init_$Create$,
|
|
112
|
+
STRING_getInstance1ov5zayfui8fl as STRING_getInstance,
|
|
109
113
|
PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
|
|
110
114
|
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
111
115
|
//region block: imports
|
|
@@ -123,7 +127,9 @@ initMetadataForClass(DayBased, 'DayBased', VOID, DateBased, VOID, VOID, VOID, {0
|
|
|
123
127
|
initMetadataForClass(MonthBased, 'MonthBased', VOID, DateBased, VOID, VOID, VOID, {0: MonthBasedDateTimeUnitSerializer_getInstance});
|
|
124
128
|
initMetadataForCompanion(Companion_3);
|
|
125
129
|
initMetadataForClass(DayOfWeek, 'DayOfWeek', VOID, Enum);
|
|
130
|
+
initMetadataForCompanion(Companion_4);
|
|
126
131
|
initMetadataForClass(DateTimeFormatException, 'DateTimeFormatException', DateTimeFormatException_init_$Create$, IllegalArgumentException);
|
|
132
|
+
initMetadataForCompanion(Companion_5);
|
|
127
133
|
initMetadataForClass(DateTimeArithmeticException, 'DateTimeArithmeticException', DateTimeArithmeticException_init_$Create$, RuntimeException);
|
|
128
134
|
initMetadataForClass(Month, 'Month', VOID, Enum);
|
|
129
135
|
initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
|
|
@@ -132,10 +138,10 @@ function year$default(padding, $super) {
|
|
|
132
138
|
padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
|
|
133
139
|
var tmp;
|
|
134
140
|
if ($super === VOID) {
|
|
135
|
-
this.
|
|
141
|
+
this.n56(padding);
|
|
136
142
|
tmp = Unit_instance;
|
|
137
143
|
} else {
|
|
138
|
-
tmp = $super.
|
|
144
|
+
tmp = $super.n56.call(this, padding);
|
|
139
145
|
}
|
|
140
146
|
return tmp;
|
|
141
147
|
}
|
|
@@ -143,10 +149,10 @@ function monthNumber$default(padding, $super) {
|
|
|
143
149
|
padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
|
|
144
150
|
var tmp;
|
|
145
151
|
if ($super === VOID) {
|
|
146
|
-
this.
|
|
152
|
+
this.p56(padding);
|
|
147
153
|
tmp = Unit_instance;
|
|
148
154
|
} else {
|
|
149
|
-
tmp = $super.
|
|
155
|
+
tmp = $super.p56.call(this, padding);
|
|
150
156
|
}
|
|
151
157
|
return tmp;
|
|
152
158
|
}
|
|
@@ -155,35 +161,35 @@ function day$default(padding, $super) {
|
|
|
155
161
|
padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
|
|
156
162
|
var tmp;
|
|
157
163
|
if ($super === VOID) {
|
|
158
|
-
this.
|
|
164
|
+
this.s56(padding);
|
|
159
165
|
tmp = Unit_instance;
|
|
160
166
|
} else {
|
|
161
|
-
tmp = $super.
|
|
167
|
+
tmp = $super.s56.call(this, padding);
|
|
162
168
|
}
|
|
163
169
|
return tmp;
|
|
164
170
|
}
|
|
165
171
|
initMetadataForInterface(WithDate, 'WithDate', VOID, VOID, [WithYearMonth]);
|
|
166
172
|
function chars(value) {
|
|
167
|
-
return this.
|
|
173
|
+
return this.u56().w56(new ConstantFormatStructure(value));
|
|
168
174
|
}
|
|
169
175
|
function build() {
|
|
170
|
-
return new CachedFormatStructure(this.
|
|
176
|
+
return new CachedFormatStructure(this.u56().f2n().x56_1);
|
|
171
177
|
}
|
|
172
178
|
initMetadataForInterface(AbstractDateTimeFormatBuilder, 'AbstractDateTimeFormatBuilder');
|
|
173
179
|
initMetadataForClass(IncompleteLocalDate, 'IncompleteLocalDate', IncompleteLocalDate);
|
|
174
|
-
initMetadataForCompanion(
|
|
180
|
+
initMetadataForCompanion(Companion_6);
|
|
175
181
|
function year(padding) {
|
|
176
|
-
return this.
|
|
182
|
+
return this.y57(new BasicFormatStructure(new YearDirective(padding)));
|
|
177
183
|
}
|
|
178
184
|
function monthNumber(padding) {
|
|
179
|
-
return this.
|
|
185
|
+
return this.y57(new BasicFormatStructure(new MonthDirective(padding)));
|
|
180
186
|
}
|
|
181
187
|
initMetadataForInterface(AbstractWithYearMonthBuilder, 'AbstractWithYearMonthBuilder', VOID, VOID, [WithYearMonth]);
|
|
182
188
|
function addFormatStructureForYearMonth(structure) {
|
|
183
|
-
this.
|
|
189
|
+
this.x57(structure);
|
|
184
190
|
}
|
|
185
191
|
function day(padding) {
|
|
186
|
-
return this.
|
|
192
|
+
return this.x57(new BasicFormatStructure(new DayDirective(padding)));
|
|
187
193
|
}
|
|
188
194
|
initMetadataForInterface(AbstractWithDateBuilder, 'AbstractWithDateBuilder', VOID, VOID, [AbstractWithYearMonthBuilder, WithDate]);
|
|
189
195
|
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateBuilder]);
|
|
@@ -192,7 +198,7 @@ initMetadataForClass(UnsignedIntFieldFormatDirective, 'UnsignedIntFieldFormatDir
|
|
|
192
198
|
initMetadataForClass(DayDirective, 'DayDirective', VOID, UnsignedIntFieldFormatDirective);
|
|
193
199
|
initMetadataForObject(DateFields, 'DateFields');
|
|
194
200
|
initMetadataForClass(IncompleteYearMonth, 'IncompleteYearMonth', IncompleteYearMonth);
|
|
195
|
-
initMetadataForCompanion(
|
|
201
|
+
initMetadataForCompanion(Companion_7);
|
|
196
202
|
initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithYearMonthBuilder]);
|
|
197
203
|
initMetadataForClass(YearMonthFormat, 'YearMonthFormat', VOID, AbstractDateTimeFormat);
|
|
198
204
|
initMetadataForClass(SignedIntFieldFormatDirective, 'SignedIntFieldFormatDirective');
|
|
@@ -203,7 +209,7 @@ initMetadataForClass(AppendableFormatStructure, 'AppendableFormatStructure', App
|
|
|
203
209
|
initMetadataForClass(AbstractFieldSpec, 'AbstractFieldSpec');
|
|
204
210
|
initMetadataForClass(GenericFieldSpec, 'GenericFieldSpec', VOID, AbstractFieldSpec);
|
|
205
211
|
function getterNotNull(container) {
|
|
206
|
-
var tmp0_elvis_lhs = this.
|
|
212
|
+
var tmp0_elvis_lhs = this.h5a(container);
|
|
207
213
|
var tmp;
|
|
208
214
|
if (tmp0_elvis_lhs == null) {
|
|
209
215
|
throw IllegalStateException_init_$Create$('Field ' + this.m() + ' is not set');
|
|
@@ -224,10 +230,10 @@ function format$default(obj, builder, minusNotRequired, $super) {
|
|
|
224
230
|
minusNotRequired = minusNotRequired === VOID ? false : minusNotRequired;
|
|
225
231
|
var tmp;
|
|
226
232
|
if ($super === VOID) {
|
|
227
|
-
this.
|
|
233
|
+
this.l5a(obj, builder, minusNotRequired);
|
|
228
234
|
tmp = Unit_instance;
|
|
229
235
|
} else {
|
|
230
|
-
tmp = $super.
|
|
236
|
+
tmp = $super.l5a.call(this, obj, builder, minusNotRequired);
|
|
231
237
|
}
|
|
232
238
|
return tmp;
|
|
233
239
|
}
|
|
@@ -246,11 +252,12 @@ initMetadataForClass(WrongConstant, 'WrongConstant');
|
|
|
246
252
|
initMetadataForClass(Conflicting, 'Conflicting');
|
|
247
253
|
initMetadataForClass(UnsignedIntConsumer, 'UnsignedIntConsumer', VOID, NumberConsumer);
|
|
248
254
|
initMetadataForClass(ParseError, 'ParseError');
|
|
249
|
-
initMetadataForCompanion(
|
|
255
|
+
initMetadataForCompanion(Companion_8);
|
|
250
256
|
initMetadataForClass(ParserState, 'ParserState');
|
|
251
257
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
252
258
|
initMetadataForClass(Parser, 'Parser');
|
|
253
259
|
initMetadataForClass(ParserStructure, 'ParserStructure');
|
|
260
|
+
initMetadataForCompanion(Companion_9);
|
|
254
261
|
initMetadataForClass(ParseException, 'ParseException', VOID, Exception);
|
|
255
262
|
initMetadataForClass(NumberSpanParserOperation, 'NumberSpanParserOperation');
|
|
256
263
|
initMetadataForClass(PlainStringParserOperation, 'PlainStringParserOperation');
|
|
@@ -262,10 +269,10 @@ initMetadataForObject(MonthBasedDateTimeUnitSerializer, 'MonthBasedDateTimeUnitS
|
|
|
262
269
|
initMetadataForObject(DateTimeUnitSerializer, 'DateTimeUnitSerializer', VOID, AbstractPolymorphicSerializer);
|
|
263
270
|
initMetadataForObject(LocalDateSerializer, 'LocalDateSerializer', VOID, VOID, [KSerializer]);
|
|
264
271
|
initMetadataForObject(YearMonthSerializer, 'YearMonthSerializer', VOID, VOID, [KSerializer]);
|
|
265
|
-
initMetadataForCompanion(
|
|
272
|
+
initMetadataForCompanion(Companion_10);
|
|
266
273
|
initMetadataForObject(Formats, 'Formats');
|
|
267
274
|
initMetadataForClass(LocalDate, 'LocalDate', VOID, VOID, [Comparable], VOID, VOID, {0: LocalDateSerializer_getInstance});
|
|
268
|
-
initMetadataForCompanion(
|
|
275
|
+
initMetadataForCompanion(Companion_11);
|
|
269
276
|
initMetadataForObject(Formats_0, 'Formats');
|
|
270
277
|
initMetadataForClass(YearMonth, 'YearMonth', VOID, VOID, [Comparable], VOID, VOID, {0: YearMonthSerializer_getInstance});
|
|
271
278
|
//endregion
|
|
@@ -295,59 +302,59 @@ function Companion_getInstance_2() {
|
|
|
295
302
|
}
|
|
296
303
|
function TimeBased(nanoseconds) {
|
|
297
304
|
DateTimeUnit.call(this);
|
|
298
|
-
this.
|
|
305
|
+
this.e55_1 = nanoseconds;
|
|
299
306
|
// Inline function 'kotlin.require' call
|
|
300
|
-
if (!(this.
|
|
301
|
-
var message = 'Unit duration must be positive, but was ' + this.
|
|
307
|
+
if (!(this.e55_1 > 0n)) {
|
|
308
|
+
var message = 'Unit duration must be positive, but was ' + this.e55_1.toString() + ' ns.';
|
|
302
309
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
303
310
|
}
|
|
304
|
-
if (modulo(this.
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
311
|
+
if (modulo(this.e55_1, 3600000000000n) === 0n) {
|
|
312
|
+
this.f55_1 = 'HOUR';
|
|
313
|
+
this.g55_1 = divide(this.e55_1, 3600000000000n);
|
|
307
314
|
} else {
|
|
308
|
-
if (modulo(this.
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
315
|
+
if (modulo(this.e55_1, 60000000000n) === 0n) {
|
|
316
|
+
this.f55_1 = 'MINUTE';
|
|
317
|
+
this.g55_1 = divide(this.e55_1, 60000000000n);
|
|
311
318
|
} else {
|
|
312
|
-
var tmp0 = this.
|
|
319
|
+
var tmp0 = this.e55_1;
|
|
313
320
|
// Inline function 'kotlin.Long.rem' call
|
|
314
321
|
var other = 1000000000;
|
|
315
322
|
if (modulo(tmp0, fromInt(other)) === 0n) {
|
|
316
|
-
this.
|
|
323
|
+
this.f55_1 = 'SECOND';
|
|
317
324
|
var tmp = this;
|
|
318
|
-
var tmp0_0 = this.
|
|
325
|
+
var tmp0_0 = this.e55_1;
|
|
319
326
|
// Inline function 'kotlin.Long.div' call
|
|
320
327
|
var other_0 = 1000000000;
|
|
321
|
-
tmp.
|
|
328
|
+
tmp.g55_1 = divide(tmp0_0, fromInt(other_0));
|
|
322
329
|
} else {
|
|
323
330
|
// Inline function 'kotlin.Long.rem' call
|
|
324
|
-
var this_0 = this.
|
|
331
|
+
var this_0 = this.e55_1;
|
|
325
332
|
if (modulo(this_0, fromInt(1000000)) === 0n) {
|
|
326
|
-
this.
|
|
333
|
+
this.f55_1 = 'MILLISECOND';
|
|
327
334
|
var tmp_0 = this;
|
|
328
335
|
// Inline function 'kotlin.Long.div' call
|
|
329
|
-
var this_1 = this.
|
|
330
|
-
tmp_0.
|
|
336
|
+
var this_1 = this.e55_1;
|
|
337
|
+
tmp_0.g55_1 = divide(this_1, fromInt(1000000));
|
|
331
338
|
} else {
|
|
332
339
|
// Inline function 'kotlin.Long.rem' call
|
|
333
|
-
var this_2 = this.
|
|
340
|
+
var this_2 = this.e55_1;
|
|
334
341
|
if (modulo(this_2, fromInt(1000)) === 0n) {
|
|
335
|
-
this.
|
|
342
|
+
this.f55_1 = 'MICROSECOND';
|
|
336
343
|
var tmp_1 = this;
|
|
337
344
|
// Inline function 'kotlin.Long.div' call
|
|
338
|
-
var this_3 = this.
|
|
339
|
-
tmp_1.
|
|
345
|
+
var this_3 = this.e55_1;
|
|
346
|
+
tmp_1.g55_1 = divide(this_3, fromInt(1000));
|
|
340
347
|
} else {
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
348
|
+
this.f55_1 = 'NANOSECOND';
|
|
349
|
+
this.g55_1 = this.e55_1;
|
|
343
350
|
}
|
|
344
351
|
}
|
|
345
352
|
}
|
|
346
353
|
}
|
|
347
354
|
}
|
|
348
355
|
}
|
|
349
|
-
protoOf(TimeBased).
|
|
350
|
-
return new TimeBased(safeMultiply(this.
|
|
356
|
+
protoOf(TimeBased).h55 = function (scalar) {
|
|
357
|
+
return new TimeBased(safeMultiply(this.e55_1, fromInt(scalar)));
|
|
351
358
|
};
|
|
352
359
|
protoOf(TimeBased).equals = function (other) {
|
|
353
360
|
var tmp;
|
|
@@ -356,7 +363,7 @@ protoOf(TimeBased).equals = function (other) {
|
|
|
356
363
|
} else {
|
|
357
364
|
var tmp_0;
|
|
358
365
|
if (other instanceof TimeBased) {
|
|
359
|
-
tmp_0 = this.
|
|
366
|
+
tmp_0 = this.e55_1 === other.e55_1;
|
|
360
367
|
} else {
|
|
361
368
|
tmp_0 = false;
|
|
362
369
|
}
|
|
@@ -365,25 +372,25 @@ protoOf(TimeBased).equals = function (other) {
|
|
|
365
372
|
return tmp;
|
|
366
373
|
};
|
|
367
374
|
protoOf(TimeBased).hashCode = function () {
|
|
368
|
-
return convertToInt(this.
|
|
375
|
+
return convertToInt(this.e55_1) ^ convertToInt(shiftRight(this.e55_1, 32));
|
|
369
376
|
};
|
|
370
377
|
protoOf(TimeBased).toString = function () {
|
|
371
|
-
return this.
|
|
378
|
+
return this.i55(this.g55_1, this.f55_1);
|
|
372
379
|
};
|
|
373
380
|
function DateBased() {
|
|
374
381
|
DateTimeUnit.call(this);
|
|
375
382
|
}
|
|
376
383
|
function DayBased(days) {
|
|
377
384
|
DateBased.call(this);
|
|
378
|
-
this.
|
|
385
|
+
this.k55_1 = days;
|
|
379
386
|
// Inline function 'kotlin.require' call
|
|
380
|
-
if (!(this.
|
|
381
|
-
var message = 'Unit duration must be positive, but was ' + this.
|
|
387
|
+
if (!(this.k55_1 > 0)) {
|
|
388
|
+
var message = 'Unit duration must be positive, but was ' + this.k55_1 + ' days.';
|
|
382
389
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
383
390
|
}
|
|
384
391
|
}
|
|
385
|
-
protoOf(DayBased).
|
|
386
|
-
return new DayBased(safeMultiply_0(this.
|
|
392
|
+
protoOf(DayBased).h55 = function (scalar) {
|
|
393
|
+
return new DayBased(safeMultiply_0(this.k55_1, scalar));
|
|
387
394
|
};
|
|
388
395
|
protoOf(DayBased).equals = function (other) {
|
|
389
396
|
var tmp;
|
|
@@ -392,7 +399,7 @@ protoOf(DayBased).equals = function (other) {
|
|
|
392
399
|
} else {
|
|
393
400
|
var tmp_0;
|
|
394
401
|
if (other instanceof DayBased) {
|
|
395
|
-
tmp_0 = this.
|
|
402
|
+
tmp_0 = this.k55_1 === other.k55_1;
|
|
396
403
|
} else {
|
|
397
404
|
tmp_0 = false;
|
|
398
405
|
}
|
|
@@ -401,22 +408,22 @@ protoOf(DayBased).equals = function (other) {
|
|
|
401
408
|
return tmp;
|
|
402
409
|
};
|
|
403
410
|
protoOf(DayBased).hashCode = function () {
|
|
404
|
-
return this.
|
|
411
|
+
return this.k55_1 ^ 65536;
|
|
405
412
|
};
|
|
406
413
|
protoOf(DayBased).toString = function () {
|
|
407
|
-
return (this.
|
|
414
|
+
return (this.k55_1 % 7 | 0) === 0 ? this.j55(this.k55_1 / 7 | 0, 'WEEK') : this.j55(this.k55_1, 'DAY');
|
|
408
415
|
};
|
|
409
416
|
function MonthBased(months) {
|
|
410
417
|
DateBased.call(this);
|
|
411
|
-
this.
|
|
418
|
+
this.l55_1 = months;
|
|
412
419
|
// Inline function 'kotlin.require' call
|
|
413
|
-
if (!(this.
|
|
414
|
-
var message = 'Unit duration must be positive, but was ' + this.
|
|
420
|
+
if (!(this.l55_1 > 0)) {
|
|
421
|
+
var message = 'Unit duration must be positive, but was ' + this.l55_1 + ' months.';
|
|
415
422
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
416
423
|
}
|
|
417
424
|
}
|
|
418
|
-
protoOf(MonthBased).
|
|
419
|
-
return new MonthBased(safeMultiply_0(this.
|
|
425
|
+
protoOf(MonthBased).h55 = function (scalar) {
|
|
426
|
+
return new MonthBased(safeMultiply_0(this.l55_1, scalar));
|
|
420
427
|
};
|
|
421
428
|
protoOf(MonthBased).equals = function (other) {
|
|
422
429
|
var tmp;
|
|
@@ -425,7 +432,7 @@ protoOf(MonthBased).equals = function (other) {
|
|
|
425
432
|
} else {
|
|
426
433
|
var tmp_0;
|
|
427
434
|
if (other instanceof MonthBased) {
|
|
428
|
-
tmp_0 = this.
|
|
435
|
+
tmp_0 = this.l55_1 === other.l55_1;
|
|
429
436
|
} else {
|
|
430
437
|
tmp_0 = false;
|
|
431
438
|
}
|
|
@@ -434,25 +441,25 @@ protoOf(MonthBased).equals = function (other) {
|
|
|
434
441
|
return tmp;
|
|
435
442
|
};
|
|
436
443
|
protoOf(MonthBased).hashCode = function () {
|
|
437
|
-
return this.
|
|
444
|
+
return this.l55_1 ^ 131072;
|
|
438
445
|
};
|
|
439
446
|
protoOf(MonthBased).toString = function () {
|
|
440
|
-
return (this.
|
|
447
|
+
return (this.l55_1 % 1200 | 0) === 0 ? this.j55(this.l55_1 / 1200 | 0, 'CENTURY') : (this.l55_1 % 12 | 0) === 0 ? this.j55(this.l55_1 / 12 | 0, 'YEAR') : (this.l55_1 % 3 | 0) === 0 ? this.j55(this.l55_1 / 3 | 0, 'QUARTER') : this.j55(this.l55_1, 'MONTH');
|
|
441
448
|
};
|
|
442
449
|
function Companion_3() {
|
|
443
450
|
Companion_instance_3 = this;
|
|
444
|
-
this.
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
454
|
-
this.
|
|
455
|
-
this.
|
|
451
|
+
this.m55_1 = new TimeBased(1n);
|
|
452
|
+
this.n55_1 = this.m55_1.h55(1000);
|
|
453
|
+
this.o55_1 = this.n55_1.h55(1000);
|
|
454
|
+
this.p55_1 = this.o55_1.h55(1000);
|
|
455
|
+
this.q55_1 = this.p55_1.h55(60);
|
|
456
|
+
this.r55_1 = this.q55_1.h55(60);
|
|
457
|
+
this.s55_1 = new DayBased(1);
|
|
458
|
+
this.t55_1 = this.s55_1.h55(7);
|
|
459
|
+
this.u55_1 = new MonthBased(1);
|
|
460
|
+
this.v55_1 = this.u55_1.h55(3);
|
|
461
|
+
this.w55_1 = this.u55_1.h55(12);
|
|
462
|
+
this.x55_1 = this.w55_1.h55(100);
|
|
456
463
|
}
|
|
457
464
|
var Companion_instance_3;
|
|
458
465
|
function Companion_getInstance_3() {
|
|
@@ -463,10 +470,10 @@ function Companion_getInstance_3() {
|
|
|
463
470
|
function DateTimeUnit() {
|
|
464
471
|
Companion_getInstance_3();
|
|
465
472
|
}
|
|
466
|
-
protoOf(DateTimeUnit).
|
|
473
|
+
protoOf(DateTimeUnit).j55 = function (value, unit) {
|
|
467
474
|
return value === 1 ? unit : '' + value + '-' + unit;
|
|
468
475
|
};
|
|
469
|
-
protoOf(DateTimeUnit).
|
|
476
|
+
protoOf(DateTimeUnit).i55 = function (value, unit) {
|
|
470
477
|
return value === 1n ? unit : value.toString() + '-' + unit;
|
|
471
478
|
};
|
|
472
479
|
function get_isoDayNumber(_this__u8e3s4) {
|
|
@@ -570,6 +577,13 @@ function DateTimeFormatException_init_$Create$_1(message, cause) {
|
|
|
570
577
|
captureStack(tmp, DateTimeFormatException_init_$Create$_1);
|
|
571
578
|
return tmp;
|
|
572
579
|
}
|
|
580
|
+
function Companion_4() {
|
|
581
|
+
this.y55_1 = 4231196759387994100n;
|
|
582
|
+
}
|
|
583
|
+
var Companion_instance_4;
|
|
584
|
+
function Companion_getInstance_4() {
|
|
585
|
+
return Companion_instance_4;
|
|
586
|
+
}
|
|
573
587
|
function DateTimeFormatException() {
|
|
574
588
|
captureStack(this, DateTimeFormatException);
|
|
575
589
|
}
|
|
@@ -593,6 +607,13 @@ function DateTimeArithmeticException_init_$Create$_0(message, cause) {
|
|
|
593
607
|
captureStack(tmp, DateTimeArithmeticException_init_$Create$_0);
|
|
594
608
|
return tmp;
|
|
595
609
|
}
|
|
610
|
+
function Companion_5() {
|
|
611
|
+
this.z55_1 = -3207806170214997982n;
|
|
612
|
+
}
|
|
613
|
+
var Companion_instance_5;
|
|
614
|
+
function Companion_getInstance_5() {
|
|
615
|
+
return Companion_instance_5;
|
|
616
|
+
}
|
|
596
617
|
function DateTimeArithmeticException() {
|
|
597
618
|
captureStack(this, DateTimeArithmeticException);
|
|
598
619
|
}
|
|
@@ -600,10 +621,10 @@ function plus_0(_this__u8e3s4, value, unit) {
|
|
|
600
621
|
return plus_1(_this__u8e3s4, fromInt(value), unit);
|
|
601
622
|
}
|
|
602
623
|
function getIsoDateFormat() {
|
|
603
|
-
return Formats_getInstance().
|
|
624
|
+
return Formats_getInstance().b56();
|
|
604
625
|
}
|
|
605
626
|
function format(_this__u8e3s4, format) {
|
|
606
|
-
return format.
|
|
627
|
+
return format.c56(_this__u8e3s4);
|
|
607
628
|
}
|
|
608
629
|
function get_number(_this__u8e3s4) {
|
|
609
630
|
return _this__u8e3s4.a1_1 + 1 | 0;
|
|
@@ -651,10 +672,9 @@ function Month(name, ordinal) {
|
|
|
651
672
|
Enum.call(this, name, ordinal);
|
|
652
673
|
}
|
|
653
674
|
function Month_0(number) {
|
|
654
|
-
// Inline function 'kotlin.require' call
|
|
655
675
|
// Inline function 'kotlin.require' call
|
|
656
676
|
if (!(1 <= number ? number <= 12 : false)) {
|
|
657
|
-
var message = '
|
|
677
|
+
var message = 'Month must be a number between 1 and 12, got ' + number;
|
|
658
678
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
659
679
|
}
|
|
660
680
|
return get_entries_0().h1(number - 1 | 0);
|
|
@@ -709,16 +729,16 @@ function Month_DECEMBER_getInstance() {
|
|
|
709
729
|
}
|
|
710
730
|
function AbstractDateTimeFormat() {
|
|
711
731
|
}
|
|
712
|
-
protoOf(AbstractDateTimeFormat).
|
|
732
|
+
protoOf(AbstractDateTimeFormat).c56 = function (value) {
|
|
713
733
|
// Inline function 'kotlin.also' call
|
|
714
734
|
var this_0 = StringBuilder_init_$Create$();
|
|
715
|
-
this.
|
|
735
|
+
this.d56().k56().l56(this.e56(value), this_0);
|
|
716
736
|
return this_0.toString();
|
|
717
737
|
};
|
|
718
|
-
protoOf(AbstractDateTimeFormat).
|
|
738
|
+
protoOf(AbstractDateTimeFormat).kl = function (input) {
|
|
719
739
|
var tmp;
|
|
720
740
|
try {
|
|
721
|
-
tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.
|
|
741
|
+
tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.d56().m56()), input, this.g56());
|
|
722
742
|
} catch ($p) {
|
|
723
743
|
var tmp_0;
|
|
724
744
|
if ($p instanceof ParseException) {
|
|
@@ -730,14 +750,14 @@ protoOf(AbstractDateTimeFormat).wk = function (input) {
|
|
|
730
750
|
}
|
|
731
751
|
var matched = tmp;
|
|
732
752
|
try {
|
|
733
|
-
return this.
|
|
734
|
-
} catch ($
|
|
735
|
-
if ($
|
|
736
|
-
var e_0 = $
|
|
753
|
+
return this.f56(matched);
|
|
754
|
+
} catch ($p_0) {
|
|
755
|
+
if ($p_0 instanceof IllegalArgumentException) {
|
|
756
|
+
var e_0 = $p_0;
|
|
737
757
|
var message = e_0.message;
|
|
738
758
|
throw DateTimeFormatException_init_$Create$_1(message == null ? "The value parsed from '" + toString(input) + "' is invalid" : '' + message + " (when parsing '" + toString(input) + "')", e_0);
|
|
739
759
|
} else {
|
|
740
|
-
throw $
|
|
760
|
+
throw $p_0;
|
|
741
761
|
}
|
|
742
762
|
}
|
|
743
763
|
};
|
|
@@ -769,7 +789,7 @@ function WithYearMonth() {
|
|
|
769
789
|
function WithDate() {
|
|
770
790
|
}
|
|
771
791
|
function char(_this__u8e3s4, value) {
|
|
772
|
-
return _this__u8e3s4.
|
|
792
|
+
return _this__u8e3s4.r56(toString_0(value));
|
|
773
793
|
}
|
|
774
794
|
function AbstractDateTimeFormatBuilder() {
|
|
775
795
|
}
|
|
@@ -801,70 +821,70 @@ function IncompleteLocalDate(yearMonth, day, dayOfWeek, dayOfYear) {
|
|
|
801
821
|
day = day === VOID ? null : day;
|
|
802
822
|
dayOfWeek = dayOfWeek === VOID ? null : dayOfWeek;
|
|
803
823
|
dayOfYear = dayOfYear === VOID ? null : dayOfYear;
|
|
804
|
-
this.
|
|
805
|
-
this.
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
824
|
+
this.y56_1 = yearMonth;
|
|
825
|
+
this.z56_1 = day;
|
|
826
|
+
this.a57_1 = dayOfWeek;
|
|
827
|
+
this.b57_1 = dayOfYear;
|
|
808
828
|
}
|
|
809
|
-
protoOf(IncompleteLocalDate).
|
|
810
|
-
this.
|
|
829
|
+
protoOf(IncompleteLocalDate).c57 = function (_set____db54di) {
|
|
830
|
+
this.z56_1 = _set____db54di;
|
|
811
831
|
};
|
|
812
|
-
protoOf(IncompleteLocalDate).
|
|
813
|
-
return this.
|
|
832
|
+
protoOf(IncompleteLocalDate).d57 = function () {
|
|
833
|
+
return this.z56_1;
|
|
814
834
|
};
|
|
815
|
-
protoOf(IncompleteLocalDate).
|
|
816
|
-
this.
|
|
835
|
+
protoOf(IncompleteLocalDate).e57 = function (_set____db54di) {
|
|
836
|
+
this.a57_1 = _set____db54di;
|
|
817
837
|
};
|
|
818
|
-
protoOf(IncompleteLocalDate).
|
|
819
|
-
return this.
|
|
838
|
+
protoOf(IncompleteLocalDate).f57 = function () {
|
|
839
|
+
return this.a57_1;
|
|
820
840
|
};
|
|
821
|
-
protoOf(IncompleteLocalDate).
|
|
822
|
-
this.
|
|
841
|
+
protoOf(IncompleteLocalDate).g57 = function (_set____db54di) {
|
|
842
|
+
this.b57_1 = _set____db54di;
|
|
823
843
|
};
|
|
824
|
-
protoOf(IncompleteLocalDate).
|
|
825
|
-
return this.
|
|
844
|
+
protoOf(IncompleteLocalDate).h57 = function () {
|
|
845
|
+
return this.b57_1;
|
|
826
846
|
};
|
|
827
|
-
protoOf(IncompleteLocalDate).
|
|
828
|
-
var year = requireParsedField(this.
|
|
829
|
-
var dayOfYear = this.
|
|
847
|
+
protoOf(IncompleteLocalDate).i57 = function () {
|
|
848
|
+
var year = requireParsedField(this.j57(), 'year');
|
|
849
|
+
var dayOfYear = this.b57_1;
|
|
830
850
|
var tmp;
|
|
831
851
|
if (dayOfYear == null) {
|
|
832
|
-
tmp =
|
|
852
|
+
tmp = LocalDate_init_$Create$(year, requireParsedField(this.o57(), 'monthNumber'), requireParsedField(this.z56_1, 'day'));
|
|
833
853
|
} else {
|
|
834
854
|
// Inline function 'kotlin.also' call
|
|
835
|
-
var this_0 = plus_0(
|
|
836
|
-
if (!(this_0.
|
|
855
|
+
var this_0 = plus_0(LocalDate_init_$Create$(year, 1, 1), dayOfYear - 1 | 0, Companion_getInstance_3().s55_1);
|
|
856
|
+
if (!(this_0.k57_1 === year)) {
|
|
837
857
|
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));
|
|
838
858
|
}
|
|
839
|
-
if (!(this.
|
|
840
|
-
throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is ' + this_0.
|
|
859
|
+
if (!(this.o57() == null) && !(get_number(this_0.n57()) === this.o57())) {
|
|
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.n57().toString() + ', ') + ('but ' + this.o57() + ' was specified as the month number'));
|
|
841
861
|
}
|
|
842
|
-
if (!(this.
|
|
843
|
-
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.
|
|
862
|
+
if (!(this.z56_1 == null) && !(this_0.l57_1 === this.z56_1)) {
|
|
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.l57_1 + ' of ' + this_0.n57().toString() + ', ') + ('but ' + this.z56_1 + ' was specified as the day of month'));
|
|
844
864
|
}
|
|
845
865
|
tmp = this_0;
|
|
846
866
|
}
|
|
847
867
|
var date = tmp;
|
|
848
|
-
var tmp0_safe_receiver = this.
|
|
868
|
+
var tmp0_safe_receiver = this.a57_1;
|
|
849
869
|
if (tmp0_safe_receiver == null)
|
|
850
870
|
null;
|
|
851
871
|
else {
|
|
852
872
|
// Inline function 'kotlin.let' call
|
|
853
|
-
if (!(tmp0_safe_receiver === get_isoDayNumber(date.
|
|
854
|
-
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.
|
|
873
|
+
if (!(tmp0_safe_receiver === get_isoDayNumber(date.f57()))) {
|
|
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.f57().toString()));
|
|
855
875
|
}
|
|
856
876
|
}
|
|
857
877
|
return date;
|
|
858
878
|
};
|
|
859
|
-
protoOf(IncompleteLocalDate).
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
863
|
-
this.
|
|
864
|
-
this.
|
|
879
|
+
protoOf(IncompleteLocalDate).p57 = function (date) {
|
|
880
|
+
this.q57(date.k57_1);
|
|
881
|
+
this.r57(get_number(date.n57()));
|
|
882
|
+
this.z56_1 = date.l57_1;
|
|
883
|
+
this.a57_1 = get_isoDayNumber(date.f57());
|
|
884
|
+
this.b57_1 = date.h57();
|
|
865
885
|
};
|
|
866
|
-
protoOf(IncompleteLocalDate).
|
|
867
|
-
return new IncompleteLocalDate(this.
|
|
886
|
+
protoOf(IncompleteLocalDate).s57 = function () {
|
|
887
|
+
return new IncompleteLocalDate(this.y56_1.s57(), this.z56_1, this.a57_1, this.b57_1);
|
|
868
888
|
};
|
|
869
889
|
protoOf(IncompleteLocalDate).equals = function (other) {
|
|
870
890
|
var tmp;
|
|
@@ -872,194 +892,194 @@ protoOf(IncompleteLocalDate).equals = function (other) {
|
|
|
872
892
|
var tmp_1;
|
|
873
893
|
var tmp_2;
|
|
874
894
|
if (other instanceof IncompleteLocalDate) {
|
|
875
|
-
tmp_2 = this.
|
|
895
|
+
tmp_2 = this.y56_1.equals(other.y56_1);
|
|
876
896
|
} else {
|
|
877
897
|
tmp_2 = false;
|
|
878
898
|
}
|
|
879
899
|
if (tmp_2) {
|
|
880
|
-
tmp_1 = this.
|
|
900
|
+
tmp_1 = this.z56_1 == other.z56_1;
|
|
881
901
|
} else {
|
|
882
902
|
tmp_1 = false;
|
|
883
903
|
}
|
|
884
904
|
if (tmp_1) {
|
|
885
|
-
tmp_0 = this.
|
|
905
|
+
tmp_0 = this.a57_1 == other.a57_1;
|
|
886
906
|
} else {
|
|
887
907
|
tmp_0 = false;
|
|
888
908
|
}
|
|
889
909
|
if (tmp_0) {
|
|
890
|
-
tmp = this.
|
|
910
|
+
tmp = this.b57_1 == other.b57_1;
|
|
891
911
|
} else {
|
|
892
912
|
tmp = false;
|
|
893
913
|
}
|
|
894
914
|
return tmp;
|
|
895
915
|
};
|
|
896
916
|
protoOf(IncompleteLocalDate).hashCode = function () {
|
|
897
|
-
var tmp = imul(this.
|
|
917
|
+
var tmp = imul(this.y56_1.hashCode(), 29791);
|
|
898
918
|
// Inline function 'kotlin.hashCode' call
|
|
899
|
-
var tmp0_safe_receiver = this.
|
|
919
|
+
var tmp0_safe_receiver = this.z56_1;
|
|
900
920
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
901
921
|
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
902
922
|
var tmp_0 = tmp + imul(tmp$ret$0, 961) | 0;
|
|
903
923
|
// Inline function 'kotlin.hashCode' call
|
|
904
|
-
var tmp0_safe_receiver_0 = this.
|
|
924
|
+
var tmp0_safe_receiver_0 = this.a57_1;
|
|
905
925
|
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
906
926
|
var tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
|
|
907
927
|
var tmp_1 = tmp_0 + imul(tmp$ret$1, 31) | 0;
|
|
908
928
|
// Inline function 'kotlin.hashCode' call
|
|
909
|
-
var tmp0_safe_receiver_1 = this.
|
|
929
|
+
var tmp0_safe_receiver_1 = this.b57_1;
|
|
910
930
|
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
|
|
911
931
|
return tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0;
|
|
912
932
|
};
|
|
913
933
|
protoOf(IncompleteLocalDate).toString = function () {
|
|
914
934
|
var tmp;
|
|
915
|
-
if (this.
|
|
916
|
-
var tmp_0 = this.
|
|
917
|
-
var tmp0_elvis_lhs = this.
|
|
935
|
+
if (this.b57_1 == null) {
|
|
936
|
+
var tmp_0 = this.y56_1.toString();
|
|
937
|
+
var tmp0_elvis_lhs = this.z56_1;
|
|
918
938
|
var tmp_1 = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
|
|
919
|
-
var tmp1_elvis_lhs = this.
|
|
939
|
+
var tmp1_elvis_lhs = this.a57_1;
|
|
920
940
|
tmp = tmp_0 + '-' + tmp_1 + ' (day of week is ' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs) + ')';
|
|
921
|
-
} else if (this.
|
|
922
|
-
var tmp2_elvis_lhs = this.
|
|
941
|
+
} else if (this.z56_1 == null && this.o57() == null) {
|
|
942
|
+
var tmp2_elvis_lhs = this.y56_1.t57_1;
|
|
923
943
|
var tmp_2 = toString(tmp2_elvis_lhs == null ? '??' : tmp2_elvis_lhs);
|
|
924
|
-
var tmp_3 = this.
|
|
925
|
-
var tmp3_elvis_lhs = this.
|
|
944
|
+
var tmp_3 = this.b57_1;
|
|
945
|
+
var tmp3_elvis_lhs = this.a57_1;
|
|
926
946
|
tmp = '(' + tmp_2 + ')-' + tmp_3 + ' (day of week is ' + toString(tmp3_elvis_lhs == null ? '??' : tmp3_elvis_lhs) + ')';
|
|
927
947
|
} else {
|
|
928
|
-
var tmp_4 = this.
|
|
929
|
-
var tmp4_elvis_lhs = this.
|
|
948
|
+
var tmp_4 = this.y56_1.toString();
|
|
949
|
+
var tmp4_elvis_lhs = this.z56_1;
|
|
930
950
|
var tmp_5 = toString(tmp4_elvis_lhs == null ? '??' : tmp4_elvis_lhs);
|
|
931
|
-
var tmp5_elvis_lhs = this.
|
|
932
|
-
tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.
|
|
951
|
+
var tmp5_elvis_lhs = this.a57_1;
|
|
952
|
+
tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.b57_1 + ')';
|
|
933
953
|
}
|
|
934
954
|
return tmp;
|
|
935
955
|
};
|
|
936
|
-
protoOf(IncompleteLocalDate).
|
|
937
|
-
this.
|
|
956
|
+
protoOf(IncompleteLocalDate).q57 = function (_set____db54di) {
|
|
957
|
+
this.y56_1.t57_1 = _set____db54di;
|
|
938
958
|
};
|
|
939
|
-
protoOf(IncompleteLocalDate).
|
|
940
|
-
return this.
|
|
959
|
+
protoOf(IncompleteLocalDate).j57 = function () {
|
|
960
|
+
return this.y56_1.t57_1;
|
|
941
961
|
};
|
|
942
|
-
protoOf(IncompleteLocalDate).
|
|
943
|
-
this.
|
|
962
|
+
protoOf(IncompleteLocalDate).r57 = function (_set____db54di) {
|
|
963
|
+
this.y56_1.u57_1 = _set____db54di;
|
|
944
964
|
};
|
|
945
|
-
protoOf(IncompleteLocalDate).
|
|
946
|
-
return this.
|
|
965
|
+
protoOf(IncompleteLocalDate).o57 = function () {
|
|
966
|
+
return this.y56_1.u57_1;
|
|
947
967
|
};
|
|
948
|
-
function
|
|
968
|
+
function Companion_6() {
|
|
949
969
|
}
|
|
950
|
-
protoOf(
|
|
970
|
+
protoOf(Companion_6).v57 = function (block) {
|
|
951
971
|
var builder = new Builder(new AppendableFormatStructure());
|
|
952
972
|
block(builder);
|
|
953
|
-
return new LocalDateFormat(builder.
|
|
973
|
+
return new LocalDateFormat(builder.f2n());
|
|
954
974
|
};
|
|
955
|
-
var
|
|
956
|
-
function
|
|
957
|
-
return
|
|
975
|
+
var Companion_instance_6;
|
|
976
|
+
function Companion_getInstance_6() {
|
|
977
|
+
return Companion_instance_6;
|
|
958
978
|
}
|
|
959
979
|
function Builder(actualBuilder) {
|
|
960
|
-
this.
|
|
980
|
+
this.w57_1 = actualBuilder;
|
|
961
981
|
}
|
|
962
|
-
protoOf(Builder).
|
|
963
|
-
return this.
|
|
982
|
+
protoOf(Builder).u56 = function () {
|
|
983
|
+
return this.w57_1;
|
|
964
984
|
};
|
|
965
|
-
protoOf(Builder).
|
|
966
|
-
return this.
|
|
985
|
+
protoOf(Builder).x57 = function (structure) {
|
|
986
|
+
return this.w57_1.w56(structure);
|
|
967
987
|
};
|
|
968
988
|
function LocalDateFormat(actualFormat) {
|
|
969
989
|
AbstractDateTimeFormat.call(this);
|
|
970
|
-
this.
|
|
990
|
+
this.z57_1 = actualFormat;
|
|
971
991
|
}
|
|
972
|
-
protoOf(LocalDateFormat).
|
|
973
|
-
return this.
|
|
992
|
+
protoOf(LocalDateFormat).d56 = function () {
|
|
993
|
+
return this.z57_1;
|
|
974
994
|
};
|
|
975
|
-
protoOf(LocalDateFormat).
|
|
995
|
+
protoOf(LocalDateFormat).a58 = function (value) {
|
|
976
996
|
// Inline function 'kotlin.apply' call
|
|
977
997
|
var this_0 = new IncompleteLocalDate();
|
|
978
|
-
this_0.
|
|
998
|
+
this_0.p57(value);
|
|
979
999
|
return this_0;
|
|
980
1000
|
};
|
|
981
|
-
protoOf(LocalDateFormat).
|
|
982
|
-
return this.
|
|
1001
|
+
protoOf(LocalDateFormat).e56 = function (value) {
|
|
1002
|
+
return this.a58(value instanceof LocalDate ? value : THROW_CCE());
|
|
983
1003
|
};
|
|
984
|
-
protoOf(LocalDateFormat).
|
|
985
|
-
return intermediate.
|
|
1004
|
+
protoOf(LocalDateFormat).b58 = function (intermediate) {
|
|
1005
|
+
return intermediate.i57();
|
|
986
1006
|
};
|
|
987
|
-
protoOf(LocalDateFormat).
|
|
988
|
-
return this.
|
|
1007
|
+
protoOf(LocalDateFormat).f56 = function (intermediate) {
|
|
1008
|
+
return this.b58(intermediate instanceof IncompleteLocalDate ? intermediate : THROW_CCE());
|
|
989
1009
|
};
|
|
990
|
-
protoOf(LocalDateFormat).
|
|
1010
|
+
protoOf(LocalDateFormat).g56 = function () {
|
|
991
1011
|
return get_emptyIncompleteLocalDate();
|
|
992
1012
|
};
|
|
993
1013
|
function AbstractWithDateBuilder() {
|
|
994
1014
|
}
|
|
995
1015
|
function DayDirective(padding) {
|
|
996
|
-
var tmp = DateFields_getInstance().
|
|
1016
|
+
var tmp = DateFields_getInstance().c58_1;
|
|
997
1017
|
// Inline function 'kotlinx.datetime.format.minDigits' call
|
|
998
1018
|
var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
|
|
999
1019
|
// Inline function 'kotlinx.datetime.format.spaces' call
|
|
1000
1020
|
var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
|
|
1001
1021
|
UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
|
|
1002
|
-
this.
|
|
1022
|
+
this.j58_1 = padding;
|
|
1003
1023
|
}
|
|
1004
1024
|
protoOf(DayDirective).equals = function (other) {
|
|
1005
1025
|
var tmp;
|
|
1006
1026
|
if (other instanceof DayDirective) {
|
|
1007
|
-
tmp = this.
|
|
1027
|
+
tmp = this.j58_1.equals(other.j58_1);
|
|
1008
1028
|
} else {
|
|
1009
1029
|
tmp = false;
|
|
1010
1030
|
}
|
|
1011
1031
|
return tmp;
|
|
1012
1032
|
};
|
|
1013
1033
|
protoOf(DayDirective).hashCode = function () {
|
|
1014
|
-
return this.
|
|
1034
|
+
return this.j58_1.hashCode();
|
|
1015
1035
|
};
|
|
1016
1036
|
function DateFieldContainer$_get_day_$ref_2ebhxx() {
|
|
1017
|
-
return function (p0) {
|
|
1018
|
-
return p0.
|
|
1019
|
-
};
|
|
1037
|
+
return constructCallableReference(function (p0) {
|
|
1038
|
+
return p0.d57();
|
|
1039
|
+
}, 1, 0, 34);
|
|
1020
1040
|
}
|
|
1021
1041
|
function DateFieldContainer$_set_day_$ref_s0jsax() {
|
|
1022
|
-
return function (p0, p1) {
|
|
1023
|
-
p0.
|
|
1042
|
+
return constructCallableReference(function (p0, p1) {
|
|
1043
|
+
p0.c57(p1);
|
|
1024
1044
|
return Unit_instance;
|
|
1025
|
-
};
|
|
1045
|
+
}, 2, 0, 35);
|
|
1026
1046
|
}
|
|
1027
1047
|
function DateFieldContainer$_get_dayOfWeek_$ref_thwqom() {
|
|
1028
|
-
return function (p0) {
|
|
1029
|
-
return p0.
|
|
1030
|
-
};
|
|
1048
|
+
return constructCallableReference(function (p0) {
|
|
1049
|
+
return p0.f57();
|
|
1050
|
+
}, 1, 0, 36);
|
|
1031
1051
|
}
|
|
1032
1052
|
function DateFieldContainer$_set_dayOfWeek_$ref_ea586a() {
|
|
1033
|
-
return function (p0, p1) {
|
|
1034
|
-
p0.
|
|
1053
|
+
return constructCallableReference(function (p0, p1) {
|
|
1054
|
+
p0.e57(p1);
|
|
1035
1055
|
return Unit_instance;
|
|
1036
|
-
};
|
|
1056
|
+
}, 2, 0, 37);
|
|
1037
1057
|
}
|
|
1038
1058
|
function DateFieldContainer$_get_dayOfYear_$ref_2m6gfz() {
|
|
1039
|
-
return function (p0) {
|
|
1040
|
-
return p0.
|
|
1041
|
-
};
|
|
1059
|
+
return constructCallableReference(function (p0) {
|
|
1060
|
+
return p0.h57();
|
|
1061
|
+
}, 1, 0, 38);
|
|
1042
1062
|
}
|
|
1043
1063
|
function DateFieldContainer$_set_dayOfYear_$ref_cll22d() {
|
|
1044
|
-
return function (p0, p1) {
|
|
1045
|
-
p0.
|
|
1064
|
+
return constructCallableReference(function (p0, p1) {
|
|
1065
|
+
p0.g57(p1);
|
|
1046
1066
|
return Unit_instance;
|
|
1047
|
-
};
|
|
1067
|
+
}, 2, 0, 39);
|
|
1048
1068
|
}
|
|
1049
1069
|
function DateFields() {
|
|
1050
1070
|
DateFields_instance = this;
|
|
1051
1071
|
var tmp = this;
|
|
1052
1072
|
var tmp_0 = KMutableProperty1;
|
|
1053
1073
|
var tmp_1 = DateFieldContainer$_get_day_$ref_2ebhxx();
|
|
1054
|
-
tmp.
|
|
1074
|
+
tmp.c58_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('day', 1, tmp_0, tmp_1, DateFieldContainer$_set_day_$ref_s0jsax())), 1, 31);
|
|
1055
1075
|
var tmp_2 = this;
|
|
1056
1076
|
var tmp_3 = KMutableProperty1;
|
|
1057
1077
|
var tmp_4 = DateFieldContainer$_get_dayOfWeek_$ref_thwqom();
|
|
1058
|
-
tmp_2.
|
|
1078
|
+
tmp_2.d58_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfWeek', 1, tmp_3, tmp_4, DateFieldContainer$_set_dayOfWeek_$ref_ea586a())), 1, 7);
|
|
1059
1079
|
var tmp_5 = this;
|
|
1060
1080
|
var tmp_6 = KMutableProperty1;
|
|
1061
1081
|
var tmp_7 = DateFieldContainer$_get_dayOfYear_$ref_2m6gfz();
|
|
1062
|
-
tmp_5.
|
|
1082
|
+
tmp_5.e58_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfYear', 1, tmp_6, tmp_7, DateFieldContainer$_set_dayOfYear_$ref_cll22d())), 1, 366);
|
|
1063
1083
|
}
|
|
1064
1084
|
var DateFields_instance;
|
|
1065
1085
|
function DateFields_getInstance() {
|
|
@@ -1069,39 +1089,39 @@ function DateFields_getInstance() {
|
|
|
1069
1089
|
}
|
|
1070
1090
|
function ISO_DATE$delegate$lambda() {
|
|
1071
1091
|
_init_properties_LocalDateFormat_kt__k1uk9u();
|
|
1072
|
-
var tmp =
|
|
1073
|
-
return tmp.
|
|
1092
|
+
var tmp = Companion_instance_6;
|
|
1093
|
+
return tmp.v57(ISO_DATE$delegate$lambda$lambda);
|
|
1074
1094
|
}
|
|
1075
1095
|
function ISO_DATE$delegate$lambda$lambda($this$build) {
|
|
1076
1096
|
_init_properties_LocalDateFormat_kt__k1uk9u();
|
|
1077
|
-
$this$build.
|
|
1097
|
+
$this$build.o56();
|
|
1078
1098
|
char($this$build, _Char___init__impl__6a9atx(45));
|
|
1079
|
-
$this$build.
|
|
1099
|
+
$this$build.q56();
|
|
1080
1100
|
char($this$build, _Char___init__impl__6a9atx(45));
|
|
1081
|
-
$this$build.
|
|
1101
|
+
$this$build.t56();
|
|
1082
1102
|
return Unit_instance;
|
|
1083
1103
|
}
|
|
1084
1104
|
function _get_ISO_DATE_$ref_powsum() {
|
|
1085
|
-
return function () {
|
|
1105
|
+
return constructCallableReference(function () {
|
|
1086
1106
|
return get_ISO_DATE();
|
|
1087
|
-
};
|
|
1107
|
+
}, 0, 0, 40);
|
|
1088
1108
|
}
|
|
1089
1109
|
function ISO_DATE_BASIC$delegate$lambda() {
|
|
1090
1110
|
_init_properties_LocalDateFormat_kt__k1uk9u();
|
|
1091
|
-
var tmp =
|
|
1092
|
-
return tmp.
|
|
1111
|
+
var tmp = Companion_instance_6;
|
|
1112
|
+
return tmp.v57(ISO_DATE_BASIC$delegate$lambda$lambda);
|
|
1093
1113
|
}
|
|
1094
1114
|
function ISO_DATE_BASIC$delegate$lambda$lambda($this$build) {
|
|
1095
1115
|
_init_properties_LocalDateFormat_kt__k1uk9u();
|
|
1096
|
-
$this$build.
|
|
1097
|
-
$this$build.
|
|
1098
|
-
$this$build.
|
|
1116
|
+
$this$build.o56();
|
|
1117
|
+
$this$build.q56();
|
|
1118
|
+
$this$build.t56();
|
|
1099
1119
|
return Unit_instance;
|
|
1100
1120
|
}
|
|
1101
1121
|
function _get_ISO_DATE_BASIC_$ref_3fs8eb() {
|
|
1102
|
-
return function () {
|
|
1122
|
+
return constructCallableReference(function () {
|
|
1103
1123
|
return get_ISO_DATE_BASIC();
|
|
1104
|
-
};
|
|
1124
|
+
}, 0, 0, 41);
|
|
1105
1125
|
}
|
|
1106
1126
|
var properties_initialized_LocalDateFormat_kt_fmnlhc;
|
|
1107
1127
|
function _init_properties_LocalDateFormat_kt__k1uk9u() {
|
|
@@ -1129,43 +1149,43 @@ var ISO_YEAR_MONTH$delegate;
|
|
|
1129
1149
|
function IncompleteYearMonth(year, monthNumber) {
|
|
1130
1150
|
year = year === VOID ? null : year;
|
|
1131
1151
|
monthNumber = monthNumber === VOID ? null : monthNumber;
|
|
1132
|
-
this.
|
|
1133
|
-
this.
|
|
1152
|
+
this.t57_1 = year;
|
|
1153
|
+
this.u57_1 = monthNumber;
|
|
1134
1154
|
}
|
|
1135
|
-
protoOf(IncompleteYearMonth).
|
|
1136
|
-
this.
|
|
1155
|
+
protoOf(IncompleteYearMonth).q57 = function (_set____db54di) {
|
|
1156
|
+
this.t57_1 = _set____db54di;
|
|
1137
1157
|
};
|
|
1138
|
-
protoOf(IncompleteYearMonth).
|
|
1139
|
-
return this.
|
|
1158
|
+
protoOf(IncompleteYearMonth).j57 = function () {
|
|
1159
|
+
return this.t57_1;
|
|
1140
1160
|
};
|
|
1141
|
-
protoOf(IncompleteYearMonth).
|
|
1142
|
-
this.
|
|
1161
|
+
protoOf(IncompleteYearMonth).r57 = function (_set____db54di) {
|
|
1162
|
+
this.u57_1 = _set____db54di;
|
|
1143
1163
|
};
|
|
1144
|
-
protoOf(IncompleteYearMonth).
|
|
1145
|
-
return this.
|
|
1164
|
+
protoOf(IncompleteYearMonth).o57 = function () {
|
|
1165
|
+
return this.u57_1;
|
|
1146
1166
|
};
|
|
1147
|
-
protoOf(IncompleteYearMonth).
|
|
1148
|
-
var year = requireParsedField(this.
|
|
1149
|
-
var month = requireParsedField(this.
|
|
1150
|
-
return
|
|
1167
|
+
protoOf(IncompleteYearMonth).o58 = function () {
|
|
1168
|
+
var year = requireParsedField(this.t57_1, 'year');
|
|
1169
|
+
var month = requireParsedField(this.u57_1, 'monthNumber');
|
|
1170
|
+
return YearMonth_init_$Create$(year, month);
|
|
1151
1171
|
};
|
|
1152
|
-
protoOf(IncompleteYearMonth).
|
|
1153
|
-
this.
|
|
1154
|
-
this.
|
|
1172
|
+
protoOf(IncompleteYearMonth).p58 = function (yearMonth) {
|
|
1173
|
+
this.t57_1 = yearMonth.q58_1;
|
|
1174
|
+
this.u57_1 = get_number(yearMonth.n57());
|
|
1155
1175
|
};
|
|
1156
|
-
protoOf(IncompleteYearMonth).
|
|
1157
|
-
return new IncompleteYearMonth(this.
|
|
1176
|
+
protoOf(IncompleteYearMonth).s57 = function () {
|
|
1177
|
+
return new IncompleteYearMonth(this.t57_1, this.u57_1);
|
|
1158
1178
|
};
|
|
1159
1179
|
protoOf(IncompleteYearMonth).equals = function (other) {
|
|
1160
1180
|
var tmp;
|
|
1161
1181
|
var tmp_0;
|
|
1162
1182
|
if (other instanceof IncompleteYearMonth) {
|
|
1163
|
-
tmp_0 = this.
|
|
1183
|
+
tmp_0 = this.t57_1 == other.t57_1;
|
|
1164
1184
|
} else {
|
|
1165
1185
|
tmp_0 = false;
|
|
1166
1186
|
}
|
|
1167
1187
|
if (tmp_0) {
|
|
1168
|
-
tmp = this.
|
|
1188
|
+
tmp = this.u57_1 == other.u57_1;
|
|
1169
1189
|
} else {
|
|
1170
1190
|
tmp = false;
|
|
1171
1191
|
}
|
|
@@ -1173,19 +1193,19 @@ protoOf(IncompleteYearMonth).equals = function (other) {
|
|
|
1173
1193
|
};
|
|
1174
1194
|
protoOf(IncompleteYearMonth).hashCode = function () {
|
|
1175
1195
|
// Inline function 'kotlin.hashCode' call
|
|
1176
|
-
var tmp0_safe_receiver = this.
|
|
1196
|
+
var tmp0_safe_receiver = this.t57_1;
|
|
1177
1197
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
1178
1198
|
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
1179
1199
|
var tmp = imul(tmp$ret$0, 31);
|
|
1180
1200
|
// Inline function 'kotlin.hashCode' call
|
|
1181
|
-
var tmp0_safe_receiver_0 = this.
|
|
1201
|
+
var tmp0_safe_receiver_0 = this.u57_1;
|
|
1182
1202
|
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
1183
1203
|
return tmp + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
|
|
1184
1204
|
};
|
|
1185
1205
|
protoOf(IncompleteYearMonth).toString = function () {
|
|
1186
|
-
var tmp0_elvis_lhs = this.
|
|
1206
|
+
var tmp0_elvis_lhs = this.t57_1;
|
|
1187
1207
|
var tmp = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
|
|
1188
|
-
var tmp1_elvis_lhs = this.
|
|
1208
|
+
var tmp1_elvis_lhs = this.u57_1;
|
|
1189
1209
|
return tmp + '-' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs);
|
|
1190
1210
|
};
|
|
1191
1211
|
function requireParsedField(field, name) {
|
|
@@ -1197,133 +1217,133 @@ function requireParsedField(field, name) {
|
|
|
1197
1217
|
}
|
|
1198
1218
|
function AbstractWithYearMonthBuilder() {
|
|
1199
1219
|
}
|
|
1200
|
-
function
|
|
1220
|
+
function Companion_7() {
|
|
1201
1221
|
}
|
|
1202
|
-
protoOf(
|
|
1222
|
+
protoOf(Companion_7).s58 = function (block) {
|
|
1203
1223
|
var builder = new Builder_0(new AppendableFormatStructure());
|
|
1204
1224
|
block(builder);
|
|
1205
|
-
return new YearMonthFormat(builder.
|
|
1225
|
+
return new YearMonthFormat(builder.f2n());
|
|
1206
1226
|
};
|
|
1207
|
-
var
|
|
1208
|
-
function
|
|
1209
|
-
return
|
|
1227
|
+
var Companion_instance_7;
|
|
1228
|
+
function Companion_getInstance_7() {
|
|
1229
|
+
return Companion_instance_7;
|
|
1210
1230
|
}
|
|
1211
1231
|
function Builder_0(actualBuilder) {
|
|
1212
|
-
this.
|
|
1232
|
+
this.t58_1 = actualBuilder;
|
|
1213
1233
|
}
|
|
1214
|
-
protoOf(Builder_0).
|
|
1215
|
-
return this.
|
|
1234
|
+
protoOf(Builder_0).u56 = function () {
|
|
1235
|
+
return this.t58_1;
|
|
1216
1236
|
};
|
|
1217
|
-
protoOf(Builder_0).
|
|
1218
|
-
return this.
|
|
1237
|
+
protoOf(Builder_0).y57 = function (structure) {
|
|
1238
|
+
return this.t58_1.w56(structure);
|
|
1219
1239
|
};
|
|
1220
1240
|
function YearMonthFormat(actualFormat) {
|
|
1221
1241
|
AbstractDateTimeFormat.call(this);
|
|
1222
|
-
this.
|
|
1242
|
+
this.u58_1 = actualFormat;
|
|
1223
1243
|
}
|
|
1224
|
-
protoOf(YearMonthFormat).
|
|
1225
|
-
return this.
|
|
1244
|
+
protoOf(YearMonthFormat).d56 = function () {
|
|
1245
|
+
return this.u58_1;
|
|
1226
1246
|
};
|
|
1227
|
-
protoOf(YearMonthFormat).
|
|
1247
|
+
protoOf(YearMonthFormat).v58 = function (value) {
|
|
1228
1248
|
// Inline function 'kotlin.apply' call
|
|
1229
1249
|
var this_0 = new IncompleteYearMonth();
|
|
1230
|
-
this_0.
|
|
1250
|
+
this_0.p58(value);
|
|
1231
1251
|
return this_0;
|
|
1232
1252
|
};
|
|
1233
|
-
protoOf(YearMonthFormat).
|
|
1234
|
-
return this.
|
|
1253
|
+
protoOf(YearMonthFormat).e56 = function (value) {
|
|
1254
|
+
return this.v58(value instanceof YearMonth ? value : THROW_CCE());
|
|
1235
1255
|
};
|
|
1236
|
-
protoOf(YearMonthFormat).
|
|
1237
|
-
return intermediate.
|
|
1256
|
+
protoOf(YearMonthFormat).w58 = function (intermediate) {
|
|
1257
|
+
return intermediate.o58();
|
|
1238
1258
|
};
|
|
1239
|
-
protoOf(YearMonthFormat).
|
|
1240
|
-
return this.
|
|
1259
|
+
protoOf(YearMonthFormat).f56 = function (intermediate) {
|
|
1260
|
+
return this.w58(intermediate instanceof IncompleteYearMonth ? intermediate : THROW_CCE());
|
|
1241
1261
|
};
|
|
1242
|
-
protoOf(YearMonthFormat).
|
|
1262
|
+
protoOf(YearMonthFormat).g56 = function () {
|
|
1243
1263
|
return get_emptyIncompleteYearMonth();
|
|
1244
1264
|
};
|
|
1245
1265
|
function YearDirective(padding, isYearOfEra) {
|
|
1246
1266
|
isYearOfEra = isYearOfEra === VOID ? false : isYearOfEra;
|
|
1247
|
-
var tmp = YearMonthFields_getInstance().
|
|
1267
|
+
var tmp = YearMonthFields_getInstance().x58_1;
|
|
1248
1268
|
// Inline function 'kotlinx.datetime.format.minDigits' call
|
|
1249
1269
|
var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 4 : 1;
|
|
1250
1270
|
// Inline function 'kotlinx.datetime.format.spaces' call
|
|
1251
1271
|
var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 4 : null;
|
|
1252
1272
|
SignedIntFieldFormatDirective.call(this, tmp, tmp_0, null, tmp$ret$1, 4);
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1273
|
+
this.e59_1 = padding;
|
|
1274
|
+
this.f59_1 = isYearOfEra;
|
|
1255
1275
|
}
|
|
1256
1276
|
protoOf(YearDirective).equals = function (other) {
|
|
1257
1277
|
var tmp;
|
|
1258
1278
|
var tmp_0;
|
|
1259
1279
|
if (other instanceof YearDirective) {
|
|
1260
|
-
tmp_0 = this.
|
|
1280
|
+
tmp_0 = this.e59_1.equals(other.e59_1);
|
|
1261
1281
|
} else {
|
|
1262
1282
|
tmp_0 = false;
|
|
1263
1283
|
}
|
|
1264
1284
|
if (tmp_0) {
|
|
1265
|
-
tmp = this.
|
|
1285
|
+
tmp = this.f59_1 === other.f59_1;
|
|
1266
1286
|
} else {
|
|
1267
1287
|
tmp = false;
|
|
1268
1288
|
}
|
|
1269
1289
|
return tmp;
|
|
1270
1290
|
};
|
|
1271
1291
|
protoOf(YearDirective).hashCode = function () {
|
|
1272
|
-
return imul(this.
|
|
1292
|
+
return imul(this.e59_1.hashCode(), 31) + getBooleanHashCode(this.f59_1) | 0;
|
|
1273
1293
|
};
|
|
1274
1294
|
function MonthDirective(padding) {
|
|
1275
|
-
var tmp = YearMonthFields_getInstance().
|
|
1295
|
+
var tmp = YearMonthFields_getInstance().y58_1;
|
|
1276
1296
|
// Inline function 'kotlinx.datetime.format.minDigits' call
|
|
1277
1297
|
var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
|
|
1278
1298
|
// Inline function 'kotlinx.datetime.format.spaces' call
|
|
1279
1299
|
var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
|
|
1280
1300
|
UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
|
|
1281
|
-
this.
|
|
1301
|
+
this.p59_1 = padding;
|
|
1282
1302
|
}
|
|
1283
1303
|
protoOf(MonthDirective).equals = function (other) {
|
|
1284
1304
|
var tmp;
|
|
1285
1305
|
if (other instanceof MonthDirective) {
|
|
1286
|
-
tmp = this.
|
|
1306
|
+
tmp = this.p59_1.equals(other.p59_1);
|
|
1287
1307
|
} else {
|
|
1288
1308
|
tmp = false;
|
|
1289
1309
|
}
|
|
1290
1310
|
return tmp;
|
|
1291
1311
|
};
|
|
1292
1312
|
protoOf(MonthDirective).hashCode = function () {
|
|
1293
|
-
return this.
|
|
1313
|
+
return this.p59_1.hashCode();
|
|
1294
1314
|
};
|
|
1295
1315
|
function YearMonthFieldContainer$_get_year_$ref_7j3zdj() {
|
|
1296
|
-
return function (p0) {
|
|
1297
|
-
return p0.
|
|
1298
|
-
};
|
|
1316
|
+
return constructCallableReference(function (p0) {
|
|
1317
|
+
return p0.j57();
|
|
1318
|
+
}, 1, 0, 42);
|
|
1299
1319
|
}
|
|
1300
1320
|
function YearMonthFieldContainer$_set_year_$ref_kc0aub() {
|
|
1301
|
-
return function (p0, p1) {
|
|
1302
|
-
p0.
|
|
1321
|
+
return constructCallableReference(function (p0, p1) {
|
|
1322
|
+
p0.q57(p1);
|
|
1303
1323
|
return Unit_instance;
|
|
1304
|
-
};
|
|
1324
|
+
}, 2, 0, 43);
|
|
1305
1325
|
}
|
|
1306
1326
|
function YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5() {
|
|
1307
|
-
return function (p0) {
|
|
1308
|
-
return p0.
|
|
1309
|
-
};
|
|
1327
|
+
return constructCallableReference(function (p0) {
|
|
1328
|
+
return p0.o57();
|
|
1329
|
+
}, 1, 0, 44);
|
|
1310
1330
|
}
|
|
1311
1331
|
function YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl() {
|
|
1312
|
-
return function (p0, p1) {
|
|
1313
|
-
p0.
|
|
1332
|
+
return constructCallableReference(function (p0, p1) {
|
|
1333
|
+
p0.r57(p1);
|
|
1314
1334
|
return Unit_instance;
|
|
1315
|
-
};
|
|
1335
|
+
}, 2, 0, 45);
|
|
1316
1336
|
}
|
|
1317
1337
|
function YearMonthFields() {
|
|
1318
1338
|
YearMonthFields_instance = this;
|
|
1319
1339
|
var tmp = this;
|
|
1320
1340
|
var tmp_0 = KMutableProperty1;
|
|
1321
1341
|
var tmp_1 = YearMonthFieldContainer$_get_year_$ref_7j3zdj();
|
|
1322
|
-
tmp.
|
|
1342
|
+
tmp.x58_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('year', 1, tmp_0, tmp_1, YearMonthFieldContainer$_set_year_$ref_kc0aub())));
|
|
1323
1343
|
var tmp_2 = this;
|
|
1324
1344
|
var tmp_3 = KMutableProperty1;
|
|
1325
1345
|
var tmp_4 = YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5();
|
|
1326
|
-
tmp_2.
|
|
1346
|
+
tmp_2.y58_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('monthNumber', 1, tmp_3, tmp_4, YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl())), 1, 12);
|
|
1327
1347
|
}
|
|
1328
1348
|
var YearMonthFields_instance;
|
|
1329
1349
|
function YearMonthFields_getInstance() {
|
|
@@ -1333,20 +1353,20 @@ function YearMonthFields_getInstance() {
|
|
|
1333
1353
|
}
|
|
1334
1354
|
function ISO_YEAR_MONTH$delegate$lambda() {
|
|
1335
1355
|
_init_properties_YearMonthFormat_kt__i0mmu0();
|
|
1336
|
-
var tmp =
|
|
1337
|
-
return tmp.
|
|
1356
|
+
var tmp = Companion_instance_7;
|
|
1357
|
+
return tmp.s58(ISO_YEAR_MONTH$delegate$lambda$lambda);
|
|
1338
1358
|
}
|
|
1339
1359
|
function ISO_YEAR_MONTH$delegate$lambda$lambda($this$build) {
|
|
1340
1360
|
_init_properties_YearMonthFormat_kt__i0mmu0();
|
|
1341
|
-
$this$build.
|
|
1361
|
+
$this$build.o56();
|
|
1342
1362
|
char($this$build, _Char___init__impl__6a9atx(45));
|
|
1343
|
-
$this$build.
|
|
1363
|
+
$this$build.q56();
|
|
1344
1364
|
return Unit_instance;
|
|
1345
1365
|
}
|
|
1346
1366
|
function _get_ISO_YEAR_MONTH_$ref_y3tv9a() {
|
|
1347
|
-
return function () {
|
|
1367
|
+
return constructCallableReference(function () {
|
|
1348
1368
|
return get_ISO_YEAR_MONTH();
|
|
1349
|
-
};
|
|
1369
|
+
}, 0, 0, 46);
|
|
1350
1370
|
}
|
|
1351
1371
|
var properties_initialized_YearMonthFormat_kt_fp0mk6;
|
|
1352
1372
|
function _init_properties_YearMonthFormat_kt__i0mmu0() {
|
|
@@ -1390,129 +1410,115 @@ function isLeapYear(year) {
|
|
|
1390
1410
|
function AppendableFormatStructure() {
|
|
1391
1411
|
var tmp = this;
|
|
1392
1412
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1393
|
-
tmp.
|
|
1413
|
+
tmp.v56_1 = ArrayList_init_$Create$();
|
|
1394
1414
|
}
|
|
1395
|
-
protoOf(AppendableFormatStructure).
|
|
1396
|
-
return new ConcatenatedFormatStructure(this.
|
|
1415
|
+
protoOf(AppendableFormatStructure).f2n = function () {
|
|
1416
|
+
return new ConcatenatedFormatStructure(this.v56_1);
|
|
1397
1417
|
};
|
|
1398
|
-
protoOf(AppendableFormatStructure).
|
|
1418
|
+
protoOf(AppendableFormatStructure).w56 = function (format) {
|
|
1399
1419
|
if (isInterface(format, NonConcatenatedFormatStructure))
|
|
1400
|
-
this.
|
|
1420
|
+
this.v56_1.e1(format);
|
|
1401
1421
|
else {
|
|
1402
1422
|
if (format instanceof ConcatenatedFormatStructure) {
|
|
1403
1423
|
// Inline function 'kotlin.collections.forEach' call
|
|
1404
|
-
var _iterator__ex2g4s = format.
|
|
1424
|
+
var _iterator__ex2g4s = format.x56_1.t();
|
|
1405
1425
|
while (_iterator__ex2g4s.u()) {
|
|
1406
1426
|
var element = _iterator__ex2g4s.v();
|
|
1407
|
-
this.
|
|
1427
|
+
this.v56_1.e1(element);
|
|
1408
1428
|
}
|
|
1409
1429
|
} else {
|
|
1410
1430
|
noWhenBranchMatchedException();
|
|
1411
1431
|
}
|
|
1412
1432
|
}
|
|
1413
1433
|
};
|
|
1414
|
-
function Accessor$getterNotNull$ref(p0) {
|
|
1415
|
-
var l = function (_this__u8e3s4) {
|
|
1416
|
-
return p0.w58(_this__u8e3s4);
|
|
1417
|
-
};
|
|
1418
|
-
l.callableName = 'getterNotNull';
|
|
1419
|
-
return l;
|
|
1420
|
-
}
|
|
1421
1434
|
function UnsignedIntFieldFormatDirective(field, minDigits, spacePadding) {
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1435
|
+
this.k58_1 = field;
|
|
1436
|
+
this.l58_1 = minDigits;
|
|
1437
|
+
this.m58_1 = spacePadding;
|
|
1438
|
+
this.n58_1 = this.k58_1.w59_1;
|
|
1426
1439
|
// Inline function 'kotlin.require' call
|
|
1427
|
-
if (!(this.
|
|
1428
|
-
var message = 'The minimum number of digits (' + this.
|
|
1440
|
+
if (!(this.l58_1 >= 0)) {
|
|
1441
|
+
var message = 'The minimum number of digits (' + this.l58_1 + ') is negative';
|
|
1429
1442
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1430
1443
|
}
|
|
1431
1444
|
// Inline function 'kotlin.require' call
|
|
1432
|
-
if (!(this.
|
|
1433
|
-
var message_0 = 'The maximum number of digits (' + this.
|
|
1445
|
+
if (!(this.n58_1 >= this.l58_1)) {
|
|
1446
|
+
var message_0 = 'The maximum number of digits (' + this.n58_1 + ') is less than the minimum number of digits (' + this.l58_1 + ')';
|
|
1434
1447
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1435
1448
|
}
|
|
1436
|
-
if (!(this.
|
|
1449
|
+
if (!(this.m58_1 == null)) {
|
|
1437
1450
|
// Inline function 'kotlin.require' call
|
|
1438
|
-
if (!(this.
|
|
1439
|
-
var message_1 = 'The space padding (' + this.
|
|
1451
|
+
if (!(this.m58_1 > this.l58_1)) {
|
|
1452
|
+
var message_1 = 'The space padding (' + this.m58_1 + ') should be more than the minimum number of digits (' + this.l58_1 + ')';
|
|
1440
1453
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1441
1454
|
}
|
|
1442
1455
|
}
|
|
1443
1456
|
}
|
|
1444
|
-
protoOf(UnsignedIntFieldFormatDirective).
|
|
1445
|
-
var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.
|
|
1446
|
-
return !(this.
|
|
1457
|
+
protoOf(UnsignedIntFieldFormatDirective).k56 = function () {
|
|
1458
|
+
var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.k58_1.q59_1), this.l58_1);
|
|
1459
|
+
return !(this.m58_1 == null) ? new SpacePaddedFormatter(formatter, this.m58_1) : formatter;
|
|
1447
1460
|
};
|
|
1448
|
-
protoOf(UnsignedIntFieldFormatDirective).
|
|
1449
|
-
return spaceAndZeroPaddedUnsignedInt(this.
|
|
1461
|
+
protoOf(UnsignedIntFieldFormatDirective).m56 = function () {
|
|
1462
|
+
return spaceAndZeroPaddedUnsignedInt(this.l58_1, this.n58_1, this.m58_1, this.k58_1.q59_1, this.k58_1.t59_1);
|
|
1450
1463
|
};
|
|
1451
|
-
function Accessor$getterNotNull$ref_0(p0) {
|
|
1452
|
-
var l = function (_this__u8e3s4) {
|
|
1453
|
-
return p0.w58(_this__u8e3s4);
|
|
1454
|
-
};
|
|
1455
|
-
l.callableName = 'getterNotNull';
|
|
1456
|
-
return l;
|
|
1457
|
-
}
|
|
1458
1464
|
function SignedIntFieldFormatDirective(field, minDigits, maxDigits, spacePadding, outputPlusOnExceededWidth) {
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
1463
|
-
this.
|
|
1465
|
+
this.g59_1 = field;
|
|
1466
|
+
this.h59_1 = minDigits;
|
|
1467
|
+
this.i59_1 = maxDigits;
|
|
1468
|
+
this.j59_1 = spacePadding;
|
|
1469
|
+
this.k59_1 = outputPlusOnExceededWidth;
|
|
1464
1470
|
// Inline function 'kotlin.require' call
|
|
1465
|
-
if (!(this.
|
|
1466
|
-
var message = 'The minimum number of digits (' + this.
|
|
1471
|
+
if (!(this.h59_1 == null || this.h59_1 >= 0)) {
|
|
1472
|
+
var message = 'The minimum number of digits (' + this.h59_1 + ') is negative';
|
|
1467
1473
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1468
1474
|
}
|
|
1469
1475
|
// Inline function 'kotlin.require' call
|
|
1470
|
-
if (!(this.
|
|
1471
|
-
var message_0 = 'The maximum number of digits (' + this.
|
|
1476
|
+
if (!(this.i59_1 == null || this.h59_1 == null || this.i59_1 >= this.h59_1)) {
|
|
1477
|
+
var message_0 = 'The maximum number of digits (' + this.i59_1 + ') is less than the minimum number of digits (' + this.h59_1 + ')';
|
|
1472
1478
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1473
1479
|
}
|
|
1474
1480
|
}
|
|
1475
|
-
protoOf(SignedIntFieldFormatDirective).
|
|
1476
|
-
var tmp = Accessor$getterNotNull$ref_0(this.
|
|
1477
|
-
var tmp0_elvis_lhs = this.
|
|
1478
|
-
var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.
|
|
1479
|
-
return !(this.
|
|
1481
|
+
protoOf(SignedIntFieldFormatDirective).k56 = function () {
|
|
1482
|
+
var tmp = Accessor$getterNotNull$ref_0(this.g59_1.x59());
|
|
1483
|
+
var tmp0_elvis_lhs = this.h59_1;
|
|
1484
|
+
var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.k59_1);
|
|
1485
|
+
return !(this.j59_1 == null) ? new SpacePaddedFormatter(formatter, this.j59_1) : formatter;
|
|
1480
1486
|
};
|
|
1481
|
-
protoOf(SignedIntFieldFormatDirective).
|
|
1482
|
-
return SignedIntParser(this.
|
|
1487
|
+
protoOf(SignedIntFieldFormatDirective).m56 = function () {
|
|
1488
|
+
return SignedIntParser(this.h59_1, this.i59_1, this.j59_1, this.g59_1.x59(), this.g59_1.m(), this.k59_1);
|
|
1483
1489
|
};
|
|
1484
1490
|
function GenericFieldSpec(accessor, name, defaultValue, sign) {
|
|
1485
1491
|
name = name === VOID ? accessor.m() : name;
|
|
1486
1492
|
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1487
1493
|
sign = sign === VOID ? null : sign;
|
|
1488
1494
|
AbstractFieldSpec.call(this);
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1495
|
+
this.y59_1 = accessor;
|
|
1496
|
+
this.z59_1 = name;
|
|
1497
|
+
this.a5a_1 = defaultValue;
|
|
1498
|
+
this.b5a_1 = sign;
|
|
1493
1499
|
}
|
|
1494
|
-
protoOf(GenericFieldSpec).
|
|
1495
|
-
return this.
|
|
1500
|
+
protoOf(GenericFieldSpec).x59 = function () {
|
|
1501
|
+
return this.y59_1;
|
|
1496
1502
|
};
|
|
1497
1503
|
protoOf(GenericFieldSpec).m = function () {
|
|
1498
|
-
return this.
|
|
1504
|
+
return this.z59_1;
|
|
1499
1505
|
};
|
|
1500
|
-
protoOf(GenericFieldSpec).
|
|
1501
|
-
return this.
|
|
1506
|
+
protoOf(GenericFieldSpec).c5a = function () {
|
|
1507
|
+
return this.a5a_1;
|
|
1502
1508
|
};
|
|
1503
1509
|
function PropertyAccessor(property, name) {
|
|
1504
1510
|
name = name === VOID ? property.callableName : name;
|
|
1505
|
-
this.
|
|
1506
|
-
this.
|
|
1511
|
+
this.d5a_1 = property;
|
|
1512
|
+
this.e5a_1 = name;
|
|
1507
1513
|
}
|
|
1508
1514
|
protoOf(PropertyAccessor).m = function () {
|
|
1509
|
-
return this.
|
|
1515
|
+
return this.e5a_1;
|
|
1510
1516
|
};
|
|
1511
|
-
protoOf(PropertyAccessor).
|
|
1512
|
-
var oldValue = this.
|
|
1517
|
+
protoOf(PropertyAccessor).f5a = function (container, newValue) {
|
|
1518
|
+
var oldValue = this.d5a_1.get(container);
|
|
1513
1519
|
var tmp;
|
|
1514
1520
|
if (oldValue === null) {
|
|
1515
|
-
this.
|
|
1521
|
+
this.d5a_1.set(container, newValue);
|
|
1516
1522
|
tmp = null;
|
|
1517
1523
|
} else if (equals(oldValue, newValue)) {
|
|
1518
1524
|
tmp = null;
|
|
@@ -1521,109 +1527,119 @@ protoOf(PropertyAccessor).m59 = function (container, newValue) {
|
|
|
1521
1527
|
}
|
|
1522
1528
|
return tmp;
|
|
1523
1529
|
};
|
|
1524
|
-
protoOf(PropertyAccessor).
|
|
1525
|
-
return this.
|
|
1530
|
+
protoOf(PropertyAccessor).g5a = function (container, newValue) {
|
|
1531
|
+
return this.f5a(container, newValue);
|
|
1526
1532
|
};
|
|
1527
|
-
protoOf(PropertyAccessor).
|
|
1528
|
-
return this.
|
|
1533
|
+
protoOf(PropertyAccessor).h5a = function (container) {
|
|
1534
|
+
return this.d5a_1.get(container);
|
|
1529
1535
|
};
|
|
1530
1536
|
function UnsignedFieldSpec(accessor, minValue, maxValue, name, defaultValue, sign) {
|
|
1531
1537
|
name = name === VOID ? accessor.m() : name;
|
|
1532
1538
|
defaultValue = defaultValue === VOID ? null : defaultValue;
|
|
1533
1539
|
sign = sign === VOID ? null : sign;
|
|
1534
1540
|
AbstractFieldSpec.call(this);
|
|
1535
|
-
this.
|
|
1536
|
-
this.
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1539
|
-
this.
|
|
1540
|
-
this.
|
|
1541
|
+
this.q59_1 = accessor;
|
|
1542
|
+
this.r59_1 = minValue;
|
|
1543
|
+
this.s59_1 = maxValue;
|
|
1544
|
+
this.t59_1 = name;
|
|
1545
|
+
this.u59_1 = defaultValue;
|
|
1546
|
+
this.v59_1 = sign;
|
|
1541
1547
|
var tmp = this;
|
|
1542
1548
|
var tmp_0;
|
|
1543
|
-
if (this.
|
|
1549
|
+
if (this.s59_1 < 10) {
|
|
1544
1550
|
tmp_0 = 1;
|
|
1545
|
-
} else if (this.
|
|
1551
|
+
} else if (this.s59_1 < 100) {
|
|
1546
1552
|
tmp_0 = 2;
|
|
1547
|
-
} else if (this.
|
|
1553
|
+
} else if (this.s59_1 < 1000) {
|
|
1548
1554
|
tmp_0 = 3;
|
|
1549
1555
|
} else {
|
|
1550
|
-
throw IllegalArgumentException_init_$Create$('Max value ' + this.
|
|
1556
|
+
throw IllegalArgumentException_init_$Create$('Max value ' + this.s59_1 + ' is too large');
|
|
1551
1557
|
}
|
|
1552
|
-
tmp.
|
|
1558
|
+
tmp.w59_1 = tmp_0;
|
|
1553
1559
|
}
|
|
1554
|
-
protoOf(UnsignedFieldSpec).
|
|
1555
|
-
return this.
|
|
1560
|
+
protoOf(UnsignedFieldSpec).x59 = function () {
|
|
1561
|
+
return this.q59_1;
|
|
1556
1562
|
};
|
|
1557
1563
|
protoOf(UnsignedFieldSpec).m = function () {
|
|
1558
|
-
return this.
|
|
1564
|
+
return this.t59_1;
|
|
1559
1565
|
};
|
|
1560
|
-
protoOf(UnsignedFieldSpec).
|
|
1561
|
-
return this.
|
|
1566
|
+
protoOf(UnsignedFieldSpec).c5a = function () {
|
|
1567
|
+
return this.u59_1;
|
|
1562
1568
|
};
|
|
1563
1569
|
function Accessor() {
|
|
1564
1570
|
}
|
|
1565
1571
|
function AbstractFieldSpec() {
|
|
1566
1572
|
}
|
|
1567
1573
|
protoOf(AbstractFieldSpec).toString = function () {
|
|
1568
|
-
return 'The field ' + this.m() + ' (default value is ' + toString_1(this.
|
|
1574
|
+
return 'The field ' + this.m() + ' (default value is ' + toString_1(this.c5a()) + ')';
|
|
1569
1575
|
};
|
|
1576
|
+
function Accessor$getterNotNull$ref(p0) {
|
|
1577
|
+
return constructCallableReference(function (p0_0) {
|
|
1578
|
+
return p0.i5a(p0_0);
|
|
1579
|
+
}, 1, 0, 47, 'getterNotNull', [p0]);
|
|
1580
|
+
}
|
|
1581
|
+
function Accessor$getterNotNull$ref_0(p0) {
|
|
1582
|
+
return constructCallableReference(function (p0_0) {
|
|
1583
|
+
return p0.i5a(p0_0);
|
|
1584
|
+
}, 1, 0, 47, 'getterNotNull', [p0]);
|
|
1585
|
+
}
|
|
1570
1586
|
function CachedFormatStructure(formats) {
|
|
1571
1587
|
ConcatenatedFormatStructure.call(this, formats);
|
|
1572
|
-
this.
|
|
1573
|
-
this.
|
|
1588
|
+
this.i56_1 = protoOf(ConcatenatedFormatStructure).k56.call(this);
|
|
1589
|
+
this.j56_1 = protoOf(ConcatenatedFormatStructure).m56.call(this);
|
|
1574
1590
|
}
|
|
1575
|
-
protoOf(CachedFormatStructure).
|
|
1576
|
-
return this.
|
|
1591
|
+
protoOf(CachedFormatStructure).k56 = function () {
|
|
1592
|
+
return this.i56_1;
|
|
1577
1593
|
};
|
|
1578
|
-
protoOf(CachedFormatStructure).
|
|
1579
|
-
return this.
|
|
1594
|
+
protoOf(CachedFormatStructure).m56 = function () {
|
|
1595
|
+
return this.j56_1;
|
|
1580
1596
|
};
|
|
1581
1597
|
function BasicFormatStructure(directive) {
|
|
1582
|
-
this.
|
|
1598
|
+
this.j5a_1 = directive;
|
|
1583
1599
|
}
|
|
1584
1600
|
protoOf(BasicFormatStructure).toString = function () {
|
|
1585
|
-
return 'BasicFormatStructure(' + toString(this.
|
|
1601
|
+
return 'BasicFormatStructure(' + toString(this.j5a_1) + ')';
|
|
1586
1602
|
};
|
|
1587
1603
|
protoOf(BasicFormatStructure).equals = function (other) {
|
|
1588
1604
|
var tmp;
|
|
1589
1605
|
if (other instanceof BasicFormatStructure) {
|
|
1590
|
-
tmp = equals(this.
|
|
1606
|
+
tmp = equals(this.j5a_1, other.j5a_1);
|
|
1591
1607
|
} else {
|
|
1592
1608
|
tmp = false;
|
|
1593
1609
|
}
|
|
1594
1610
|
return tmp;
|
|
1595
1611
|
};
|
|
1596
1612
|
protoOf(BasicFormatStructure).hashCode = function () {
|
|
1597
|
-
return hashCode(this.
|
|
1613
|
+
return hashCode(this.j5a_1);
|
|
1598
1614
|
};
|
|
1599
|
-
protoOf(BasicFormatStructure).
|
|
1600
|
-
return this.
|
|
1615
|
+
protoOf(BasicFormatStructure).m56 = function () {
|
|
1616
|
+
return this.j5a_1.m56();
|
|
1601
1617
|
};
|
|
1602
|
-
protoOf(BasicFormatStructure).
|
|
1603
|
-
return this.
|
|
1618
|
+
protoOf(BasicFormatStructure).k56 = function () {
|
|
1619
|
+
return this.j5a_1.k56();
|
|
1604
1620
|
};
|
|
1605
1621
|
function ConstantFormatStructure(string) {
|
|
1606
|
-
this.
|
|
1622
|
+
this.k5a_1 = string;
|
|
1607
1623
|
}
|
|
1608
1624
|
protoOf(ConstantFormatStructure).toString = function () {
|
|
1609
|
-
return 'ConstantFormatStructure(' + this.
|
|
1625
|
+
return 'ConstantFormatStructure(' + this.k5a_1 + ')';
|
|
1610
1626
|
};
|
|
1611
1627
|
protoOf(ConstantFormatStructure).equals = function (other) {
|
|
1612
1628
|
var tmp;
|
|
1613
1629
|
if (other instanceof ConstantFormatStructure) {
|
|
1614
|
-
tmp = this.
|
|
1630
|
+
tmp = this.k5a_1 === other.k5a_1;
|
|
1615
1631
|
} else {
|
|
1616
1632
|
tmp = false;
|
|
1617
1633
|
}
|
|
1618
1634
|
return tmp;
|
|
1619
1635
|
};
|
|
1620
1636
|
protoOf(ConstantFormatStructure).hashCode = function () {
|
|
1621
|
-
return getStringHashCode(this.
|
|
1637
|
+
return getStringHashCode(this.k5a_1);
|
|
1622
1638
|
};
|
|
1623
|
-
protoOf(ConstantFormatStructure).
|
|
1639
|
+
protoOf(ConstantFormatStructure).m56 = function () {
|
|
1624
1640
|
var tmp;
|
|
1625
1641
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1626
|
-
var this_0 = this.
|
|
1642
|
+
var this_0 = this.k5a_1;
|
|
1627
1643
|
if (charSequenceLength(this_0) === 0) {
|
|
1628
1644
|
tmp = emptyList();
|
|
1629
1645
|
} else {
|
|
@@ -1632,8 +1648,8 @@ protoOf(ConstantFormatStructure).s55 = function () {
|
|
|
1632
1648
|
// Inline function 'kotlin.apply' call
|
|
1633
1649
|
var this_1 = ArrayList_init_$Create$();
|
|
1634
1650
|
var tmp_0;
|
|
1635
|
-
if (isAsciiDigit(charCodeAt(this.
|
|
1636
|
-
var tmp0 = this.
|
|
1651
|
+
if (isAsciiDigit(charCodeAt(this.k5a_1, 0))) {
|
|
1652
|
+
var tmp0 = this.k5a_1;
|
|
1637
1653
|
var tmp$ret$5;
|
|
1638
1654
|
$l$block: {
|
|
1639
1655
|
// Inline function 'kotlin.text.takeWhile' call
|
|
@@ -1653,7 +1669,7 @@ protoOf(ConstantFormatStructure).s55 = function () {
|
|
|
1653
1669
|
tmp$ret$5 = tmp0;
|
|
1654
1670
|
}
|
|
1655
1671
|
this_1.e1(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$5))));
|
|
1656
|
-
var tmp0_0 = this.
|
|
1672
|
+
var tmp0_0 = this.k5a_1;
|
|
1657
1673
|
var tmp$ret$7;
|
|
1658
1674
|
$l$block_0: {
|
|
1659
1675
|
// Inline function 'kotlin.text.dropWhile' call
|
|
@@ -1674,7 +1690,7 @@ protoOf(ConstantFormatStructure).s55 = function () {
|
|
|
1674
1690
|
}
|
|
1675
1691
|
tmp_0 = tmp$ret$7;
|
|
1676
1692
|
} else {
|
|
1677
|
-
tmp_0 = this.
|
|
1693
|
+
tmp_0 = this.k5a_1;
|
|
1678
1694
|
}
|
|
1679
1695
|
var suffix = tmp_0;
|
|
1680
1696
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -1724,49 +1740,49 @@ protoOf(ConstantFormatStructure).s55 = function () {
|
|
|
1724
1740
|
}
|
|
1725
1741
|
return new ParserStructure(tmp, emptyList());
|
|
1726
1742
|
};
|
|
1727
|
-
protoOf(ConstantFormatStructure).
|
|
1728
|
-
return new ConstantStringFormatterStructure(this.
|
|
1743
|
+
protoOf(ConstantFormatStructure).k56 = function () {
|
|
1744
|
+
return new ConstantStringFormatterStructure(this.k5a_1);
|
|
1729
1745
|
};
|
|
1730
1746
|
function ConcatenatedFormatStructure(formats) {
|
|
1731
|
-
this.
|
|
1747
|
+
this.x56_1 = formats;
|
|
1732
1748
|
}
|
|
1733
1749
|
protoOf(ConcatenatedFormatStructure).toString = function () {
|
|
1734
|
-
return 'ConcatenatedFormatStructure(' + joinToString(this.
|
|
1750
|
+
return 'ConcatenatedFormatStructure(' + joinToString(this.x56_1, ', ') + ')';
|
|
1735
1751
|
};
|
|
1736
1752
|
protoOf(ConcatenatedFormatStructure).equals = function (other) {
|
|
1737
1753
|
var tmp;
|
|
1738
1754
|
if (other instanceof ConcatenatedFormatStructure) {
|
|
1739
|
-
tmp = equals(this.
|
|
1755
|
+
tmp = equals(this.x56_1, other.x56_1);
|
|
1740
1756
|
} else {
|
|
1741
1757
|
tmp = false;
|
|
1742
1758
|
}
|
|
1743
1759
|
return tmp;
|
|
1744
1760
|
};
|
|
1745
1761
|
protoOf(ConcatenatedFormatStructure).hashCode = function () {
|
|
1746
|
-
return hashCode(this.
|
|
1762
|
+
return hashCode(this.x56_1);
|
|
1747
1763
|
};
|
|
1748
|
-
protoOf(ConcatenatedFormatStructure).
|
|
1764
|
+
protoOf(ConcatenatedFormatStructure).m56 = function () {
|
|
1749
1765
|
// Inline function 'kotlin.collections.map' call
|
|
1750
|
-
var this_0 = this.
|
|
1766
|
+
var this_0 = this.x56_1;
|
|
1751
1767
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1752
1768
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1753
1769
|
var _iterator__ex2g4s = this_0.t();
|
|
1754
1770
|
while (_iterator__ex2g4s.u()) {
|
|
1755
1771
|
var item = _iterator__ex2g4s.v();
|
|
1756
|
-
var tmp$ret$2 = item.
|
|
1772
|
+
var tmp$ret$2 = item.m56();
|
|
1757
1773
|
destination.e1(tmp$ret$2);
|
|
1758
1774
|
}
|
|
1759
1775
|
return concat(destination);
|
|
1760
1776
|
};
|
|
1761
|
-
protoOf(ConcatenatedFormatStructure).
|
|
1777
|
+
protoOf(ConcatenatedFormatStructure).k56 = function () {
|
|
1762
1778
|
// Inline function 'kotlin.collections.map' call
|
|
1763
|
-
var this_0 = this.
|
|
1779
|
+
var this_0 = this.x56_1;
|
|
1764
1780
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1765
1781
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1766
1782
|
var _iterator__ex2g4s = this_0.t();
|
|
1767
1783
|
while (_iterator__ex2g4s.u()) {
|
|
1768
1784
|
var item = _iterator__ex2g4s.v();
|
|
1769
|
-
var tmp$ret$2 = item.
|
|
1785
|
+
var tmp$ret$2 = item.k56();
|
|
1770
1786
|
destination.e1(tmp$ret$2);
|
|
1771
1787
|
}
|
|
1772
1788
|
var formatters = destination;
|
|
@@ -1783,16 +1799,16 @@ function NonConcatenatedFormatStructure() {
|
|
|
1783
1799
|
function FormatterStructure() {
|
|
1784
1800
|
}
|
|
1785
1801
|
function SpacePaddedFormatter(formatter, padding) {
|
|
1786
|
-
this.
|
|
1787
|
-
this.
|
|
1802
|
+
this.m5a_1 = formatter;
|
|
1803
|
+
this.n5a_1 = padding;
|
|
1788
1804
|
}
|
|
1789
|
-
protoOf(SpacePaddedFormatter).
|
|
1805
|
+
protoOf(SpacePaddedFormatter).l5a = function (obj, builder, minusNotRequired) {
|
|
1790
1806
|
// Inline function 'kotlin.let' call
|
|
1791
1807
|
var it = StringBuilder_init_$Create$();
|
|
1792
|
-
this.
|
|
1808
|
+
this.m5a_1.l5a(obj, it, minusNotRequired);
|
|
1793
1809
|
var string = it.toString();
|
|
1794
1810
|
// Inline function 'kotlin.repeat' call
|
|
1795
|
-
var times = this.
|
|
1811
|
+
var times = this.n5a_1 - string.length | 0;
|
|
1796
1812
|
var inductionVariable = 0;
|
|
1797
1813
|
if (inductionVariable < times)
|
|
1798
1814
|
do {
|
|
@@ -1804,34 +1820,34 @@ protoOf(SpacePaddedFormatter).r59 = function (obj, builder, minusNotRequired) {
|
|
|
1804
1820
|
builder.f1(string);
|
|
1805
1821
|
};
|
|
1806
1822
|
function ConcatenatedFormatter(formatters) {
|
|
1807
|
-
this.
|
|
1823
|
+
this.o5a_1 = formatters;
|
|
1808
1824
|
}
|
|
1809
|
-
protoOf(ConcatenatedFormatter).
|
|
1810
|
-
var _iterator__ex2g4s = this.
|
|
1825
|
+
protoOf(ConcatenatedFormatter).l5a = function (obj, builder, minusNotRequired) {
|
|
1826
|
+
var _iterator__ex2g4s = this.o5a_1.t();
|
|
1811
1827
|
while (_iterator__ex2g4s.u()) {
|
|
1812
1828
|
var formatter = _iterator__ex2g4s.v();
|
|
1813
|
-
formatter.
|
|
1829
|
+
formatter.l5a(obj, builder, minusNotRequired);
|
|
1814
1830
|
}
|
|
1815
1831
|
};
|
|
1816
1832
|
function UnsignedIntFormatterStructure(number, zeroPadding) {
|
|
1817
|
-
this.
|
|
1818
|
-
this.
|
|
1833
|
+
this.p5a_1 = number;
|
|
1834
|
+
this.q5a_1 = zeroPadding;
|
|
1819
1835
|
// Inline function 'kotlin.require' call
|
|
1820
|
-
if (!(this.
|
|
1821
|
-
var message = 'The minimum number of digits (' + this.
|
|
1836
|
+
if (!(this.q5a_1 >= 0)) {
|
|
1837
|
+
var message = 'The minimum number of digits (' + this.q5a_1 + ') is negative';
|
|
1822
1838
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1823
1839
|
}
|
|
1824
1840
|
// Inline function 'kotlin.require' call
|
|
1825
|
-
if (!(this.
|
|
1826
|
-
var message_0 = 'The minimum number of digits (' + this.
|
|
1841
|
+
if (!(this.q5a_1 <= 9)) {
|
|
1842
|
+
var message_0 = 'The minimum number of digits (' + this.q5a_1 + ') exceeds the length of an Int';
|
|
1827
1843
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1828
1844
|
}
|
|
1829
1845
|
}
|
|
1830
|
-
protoOf(UnsignedIntFormatterStructure).
|
|
1831
|
-
var num = this.
|
|
1846
|
+
protoOf(UnsignedIntFormatterStructure).l5a = function (obj, builder, minusNotRequired) {
|
|
1847
|
+
var num = this.p5a_1(obj);
|
|
1832
1848
|
var numberStr = num.toString();
|
|
1833
1849
|
// Inline function 'kotlin.repeat' call
|
|
1834
|
-
var times = this.
|
|
1850
|
+
var times = this.q5a_1 - numberStr.length | 0;
|
|
1835
1851
|
var inductionVariable = 0;
|
|
1836
1852
|
if (inductionVariable < times)
|
|
1837
1853
|
do {
|
|
@@ -1843,70 +1859,70 @@ protoOf(UnsignedIntFormatterStructure).r59 = function (obj, builder, minusNotReq
|
|
|
1843
1859
|
builder.f1(numberStr);
|
|
1844
1860
|
};
|
|
1845
1861
|
function SignedIntFormatterStructure(number, zeroPadding, outputPlusOnExceededWidth) {
|
|
1846
|
-
this.
|
|
1847
|
-
this.
|
|
1848
|
-
this.
|
|
1862
|
+
this.r5a_1 = number;
|
|
1863
|
+
this.s5a_1 = zeroPadding;
|
|
1864
|
+
this.t5a_1 = outputPlusOnExceededWidth;
|
|
1849
1865
|
// Inline function 'kotlin.require' call
|
|
1850
|
-
if (!(this.
|
|
1851
|
-
var message = 'The minimum number of digits (' + this.
|
|
1866
|
+
if (!(this.s5a_1 >= 0)) {
|
|
1867
|
+
var message = 'The minimum number of digits (' + this.s5a_1 + ') is negative';
|
|
1852
1868
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1853
1869
|
}
|
|
1854
1870
|
// Inline function 'kotlin.require' call
|
|
1855
|
-
if (!(this.
|
|
1856
|
-
var message_0 = 'The minimum number of digits (' + this.
|
|
1871
|
+
if (!(this.s5a_1 <= 9)) {
|
|
1872
|
+
var message_0 = 'The minimum number of digits (' + this.s5a_1 + ') exceeds the length of an Int';
|
|
1857
1873
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1858
1874
|
}
|
|
1859
1875
|
}
|
|
1860
|
-
protoOf(SignedIntFormatterStructure).
|
|
1876
|
+
protoOf(SignedIntFormatterStructure).l5a = function (obj, builder, minusNotRequired) {
|
|
1861
1877
|
var innerBuilder = StringBuilder_init_$Create$();
|
|
1862
1878
|
// Inline function 'kotlin.let' call
|
|
1863
|
-
var it = this.
|
|
1879
|
+
var it = this.r5a_1(obj);
|
|
1864
1880
|
var number = minusNotRequired && it < 0 ? -it | 0 : it;
|
|
1865
|
-
if (!(this.
|
|
1881
|
+
if (!(this.t5a_1 == null) && number >= get_POWERS_OF_TEN()[this.t5a_1]) {
|
|
1866
1882
|
innerBuilder.s(_Char___init__impl__6a9atx(43));
|
|
1867
1883
|
}
|
|
1868
1884
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1869
|
-
if (abs(number) < get_POWERS_OF_TEN()[this.
|
|
1885
|
+
if (abs(number) < get_POWERS_OF_TEN()[this.s5a_1 - 1 | 0]) {
|
|
1870
1886
|
if (number >= 0) {
|
|
1871
|
-
innerBuilder.
|
|
1887
|
+
innerBuilder.ec(number + get_POWERS_OF_TEN()[this.s5a_1] | 0).jc(0);
|
|
1872
1888
|
} else {
|
|
1873
|
-
innerBuilder.
|
|
1889
|
+
innerBuilder.ec(number - get_POWERS_OF_TEN()[this.s5a_1] | 0).jc(1);
|
|
1874
1890
|
}
|
|
1875
1891
|
} else {
|
|
1876
|
-
innerBuilder.
|
|
1892
|
+
innerBuilder.ec(number);
|
|
1877
1893
|
}
|
|
1878
1894
|
builder.f1(innerBuilder);
|
|
1879
1895
|
};
|
|
1880
1896
|
function ConstantStringFormatterStructure(string) {
|
|
1881
|
-
this.
|
|
1897
|
+
this.u5a_1 = string;
|
|
1882
1898
|
}
|
|
1883
|
-
protoOf(ConstantStringFormatterStructure).
|
|
1884
|
-
builder.f1(this.
|
|
1899
|
+
protoOf(ConstantStringFormatterStructure).l5a = function (obj, builder, minusNotRequired) {
|
|
1900
|
+
builder.f1(this.u5a_1);
|
|
1885
1901
|
};
|
|
1886
1902
|
function ConstantNumberConsumer(expected) {
|
|
1887
1903
|
NumberConsumer.call(this, expected.length, 'the predefined string ' + expected);
|
|
1888
|
-
this.
|
|
1904
|
+
this.x5a_1 = expected;
|
|
1889
1905
|
}
|
|
1890
|
-
protoOf(ConstantNumberConsumer).
|
|
1906
|
+
protoOf(ConstantNumberConsumer).y5a = function (storage, input, start, end) {
|
|
1891
1907
|
var tmp;
|
|
1892
1908
|
// Inline function 'kotlin.text.substring' call
|
|
1893
|
-
if (toString(charSequenceSubSequence(input, start, end)) === this.
|
|
1909
|
+
if (toString(charSequenceSubSequence(input, start, end)) === this.x5a_1) {
|
|
1894
1910
|
tmp = null;
|
|
1895
1911
|
} else {
|
|
1896
|
-
tmp = new WrongConstant(this.
|
|
1912
|
+
tmp = new WrongConstant(this.x5a_1);
|
|
1897
1913
|
}
|
|
1898
1914
|
return tmp;
|
|
1899
1915
|
};
|
|
1900
1916
|
function NumberConsumer(length, whatThisExpects) {
|
|
1901
|
-
this.
|
|
1902
|
-
this.
|
|
1917
|
+
this.z5a_1 = length;
|
|
1918
|
+
this.a5b_1 = whatThisExpects;
|
|
1903
1919
|
}
|
|
1904
1920
|
protoOf(NumberConsumer).a = function () {
|
|
1905
|
-
return this.
|
|
1921
|
+
return this.z5a_1;
|
|
1906
1922
|
};
|
|
1907
1923
|
function ExpectedInt() {
|
|
1908
1924
|
}
|
|
1909
|
-
protoOf(ExpectedInt).
|
|
1925
|
+
protoOf(ExpectedInt).b5b = function () {
|
|
1910
1926
|
return 'expected an Int value';
|
|
1911
1927
|
};
|
|
1912
1928
|
var ExpectedInt_instance;
|
|
@@ -1914,31 +1930,31 @@ function ExpectedInt_getInstance() {
|
|
|
1914
1930
|
return ExpectedInt_instance;
|
|
1915
1931
|
}
|
|
1916
1932
|
function TooManyDigits(maxDigits) {
|
|
1917
|
-
this.
|
|
1933
|
+
this.c5b_1 = maxDigits;
|
|
1918
1934
|
}
|
|
1919
|
-
protoOf(TooManyDigits).
|
|
1920
|
-
return 'expected at most ' + this.
|
|
1935
|
+
protoOf(TooManyDigits).b5b = function () {
|
|
1936
|
+
return 'expected at most ' + this.c5b_1 + ' digits';
|
|
1921
1937
|
};
|
|
1922
1938
|
function TooFewDigits(minDigits) {
|
|
1923
|
-
this.
|
|
1939
|
+
this.d5b_1 = minDigits;
|
|
1924
1940
|
}
|
|
1925
|
-
protoOf(TooFewDigits).
|
|
1926
|
-
return 'expected at least ' + this.
|
|
1941
|
+
protoOf(TooFewDigits).b5b = function () {
|
|
1942
|
+
return 'expected at least ' + this.d5b_1 + ' digits';
|
|
1927
1943
|
};
|
|
1928
1944
|
function WrongConstant(expected) {
|
|
1929
|
-
this.
|
|
1945
|
+
this.e5b_1 = expected;
|
|
1930
1946
|
}
|
|
1931
|
-
protoOf(WrongConstant).
|
|
1932
|
-
return "expected '" + this.
|
|
1947
|
+
protoOf(WrongConstant).b5b = function () {
|
|
1948
|
+
return "expected '" + this.e5b_1 + "'";
|
|
1933
1949
|
};
|
|
1934
1950
|
function Conflicting(conflicting) {
|
|
1935
|
-
this.
|
|
1951
|
+
this.f5b_1 = conflicting;
|
|
1936
1952
|
}
|
|
1937
|
-
protoOf(Conflicting).
|
|
1938
|
-
return "attempted to overwrite the existing value '" + toString(this.
|
|
1953
|
+
protoOf(Conflicting).b5b = function () {
|
|
1954
|
+
return "attempted to overwrite the existing value '" + toString(this.f5b_1) + "'";
|
|
1939
1955
|
};
|
|
1940
1956
|
function setWithoutReassigning(_this__u8e3s4, receiver, value) {
|
|
1941
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1957
|
+
var tmp0_elvis_lhs = _this__u8e3s4.g5a(receiver, value);
|
|
1942
1958
|
var tmp;
|
|
1943
1959
|
if (tmp0_elvis_lhs == null) {
|
|
1944
1960
|
return null;
|
|
@@ -1951,25 +1967,25 @@ function setWithoutReassigning(_this__u8e3s4, receiver, value) {
|
|
|
1951
1967
|
function UnsignedIntConsumer(minLength, maxLength, setter, name, multiplyByMinus1) {
|
|
1952
1968
|
multiplyByMinus1 = multiplyByMinus1 === VOID ? false : multiplyByMinus1;
|
|
1953
1969
|
NumberConsumer.call(this, minLength == maxLength ? minLength : null, name);
|
|
1954
|
-
this.
|
|
1955
|
-
this.
|
|
1956
|
-
this.
|
|
1957
|
-
this.
|
|
1970
|
+
this.i5b_1 = minLength;
|
|
1971
|
+
this.j5b_1 = maxLength;
|
|
1972
|
+
this.k5b_1 = setter;
|
|
1973
|
+
this.l5b_1 = multiplyByMinus1;
|
|
1958
1974
|
// Inline function 'kotlin.require' call
|
|
1959
|
-
if (!(this.a() == null || numberRangeToNumber(1, 9).
|
|
1960
|
-
var message = 'Invalid length for field ' + this.
|
|
1975
|
+
if (!(this.a() == null || numberRangeToNumber(1, 9).fi(this.a()))) {
|
|
1976
|
+
var message = 'Invalid length for field ' + this.a5b_1 + ': ' + this.a();
|
|
1961
1977
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1962
1978
|
}
|
|
1963
1979
|
}
|
|
1964
|
-
protoOf(UnsignedIntConsumer).
|
|
1980
|
+
protoOf(UnsignedIntConsumer).y5a = function (storage, input, start, end) {
|
|
1965
1981
|
var tmp;
|
|
1966
|
-
if (!(this.
|
|
1967
|
-
tmp = new TooManyDigits(this.
|
|
1968
|
-
} else if (!(this.
|
|
1969
|
-
tmp = new TooFewDigits(this.
|
|
1982
|
+
if (!(this.j5b_1 == null) && (end - start | 0) > this.j5b_1) {
|
|
1983
|
+
tmp = new TooManyDigits(this.j5b_1);
|
|
1984
|
+
} else if (!(this.i5b_1 == null) && (end - start | 0) < this.i5b_1) {
|
|
1985
|
+
tmp = new TooFewDigits(this.i5b_1);
|
|
1970
1986
|
} else {
|
|
1971
1987
|
var result = parseAsciiIntOrNull(input, start, end);
|
|
1972
|
-
tmp = result == null ? ExpectedInt_instance : setWithoutReassigning(this.
|
|
1988
|
+
tmp = result == null ? ExpectedInt_instance : setWithoutReassigning(this.k5b_1, storage, this.l5b_1 ? -result | 0 : result);
|
|
1973
1989
|
}
|
|
1974
1990
|
return tmp;
|
|
1975
1991
|
};
|
|
@@ -1989,8 +2005,8 @@ function parseAsciiIntOrNull(_this__u8e3s4, start, end) {
|
|
|
1989
2005
|
return result;
|
|
1990
2006
|
}
|
|
1991
2007
|
function ParseError(position, message) {
|
|
1992
|
-
this.
|
|
1993
|
-
this.
|
|
2008
|
+
this.m5b_1 = position;
|
|
2009
|
+
this.n5b_1 = message;
|
|
1994
2010
|
}
|
|
1995
2011
|
function _ParseResult___init__impl__gvz3cn(value) {
|
|
1996
2012
|
return value;
|
|
@@ -1998,17 +2014,17 @@ function _ParseResult___init__impl__gvz3cn(value) {
|
|
|
1998
2014
|
function _ParseResult___get_value__impl__86mnxf($this) {
|
|
1999
2015
|
return $this;
|
|
2000
2016
|
}
|
|
2001
|
-
function
|
|
2017
|
+
function Companion_8() {
|
|
2002
2018
|
}
|
|
2003
|
-
protoOf(
|
|
2019
|
+
protoOf(Companion_8).o5b = function (indexOfNextUnparsed) {
|
|
2004
2020
|
return _ParseResult___init__impl__gvz3cn(indexOfNextUnparsed);
|
|
2005
2021
|
};
|
|
2006
|
-
protoOf(
|
|
2022
|
+
protoOf(Companion_8).p5b = function (position, message) {
|
|
2007
2023
|
return _ParseResult___init__impl__gvz3cn(new ParseError(position, message));
|
|
2008
2024
|
};
|
|
2009
|
-
var
|
|
2010
|
-
function
|
|
2011
|
-
return
|
|
2025
|
+
var Companion_instance_8;
|
|
2026
|
+
function Companion_getInstance_8() {
|
|
2027
|
+
return Companion_instance_8;
|
|
2012
2028
|
}
|
|
2013
2029
|
function _Parser___init__impl__gdyfby(commands) {
|
|
2014
2030
|
return commands;
|
|
@@ -2030,19 +2046,19 @@ function Parser__match_impl_nzt83d($this, input, initialContainer, startIndex) {
|
|
|
2030
2046
|
tmp = tmp0_elvis_lhs;
|
|
2031
2047
|
}
|
|
2032
2048
|
var state = tmp;
|
|
2033
|
-
var output = state.
|
|
2034
|
-
var inputPosition = state.
|
|
2035
|
-
var parserStructure = state.
|
|
2049
|
+
var output = state.q5b_1.s57();
|
|
2050
|
+
var inputPosition = state.s5b_1;
|
|
2051
|
+
var parserStructure = state.r5b_1;
|
|
2036
2052
|
// Inline function 'kotlin.run' call
|
|
2037
2053
|
$l$block: {
|
|
2038
2054
|
var inductionVariable = 0;
|
|
2039
|
-
var last = parserStructure.
|
|
2055
|
+
var last = parserStructure.u5b_1.g1() - 1 | 0;
|
|
2040
2056
|
if (inductionVariable <= last)
|
|
2041
2057
|
do {
|
|
2042
2058
|
var ix = inductionVariable;
|
|
2043
2059
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2044
2060
|
// Inline function 'kotlinx.datetime.internal.format.parser.ParseResult.match' call
|
|
2045
|
-
var this_0 = parserStructure.
|
|
2061
|
+
var this_0 = parserStructure.u5b_1.h1(ix).w5b(output, input, inputPosition);
|
|
2046
2062
|
var tmp0_subject = _ParseResult___get_value__impl__86mnxf(this_0);
|
|
2047
2063
|
if (typeof tmp0_subject === 'number') {
|
|
2048
2064
|
inputPosition = _ParseResult___get_value__impl__86mnxf(this_0);
|
|
@@ -2059,7 +2075,7 @@ function Parser__match_impl_nzt83d($this, input, initialContainer, startIndex) {
|
|
|
2059
2075
|
}
|
|
2060
2076
|
}
|
|
2061
2077
|
while (inductionVariable <= last);
|
|
2062
|
-
if (parserStructure.
|
|
2078
|
+
if (parserStructure.v5b_1.r()) {
|
|
2063
2079
|
if (false || inputPosition === charSequenceLength(input)) {
|
|
2064
2080
|
return output;
|
|
2065
2081
|
} else {
|
|
@@ -2068,12 +2084,12 @@ function Parser__match_impl_nzt83d($this, input, initialContainer, startIndex) {
|
|
|
2068
2084
|
errors.e1(it_0);
|
|
2069
2085
|
}
|
|
2070
2086
|
} else {
|
|
2071
|
-
var inductionVariable_0 = parserStructure.
|
|
2087
|
+
var inductionVariable_0 = parserStructure.v5b_1.g1() - 1 | 0;
|
|
2072
2088
|
if (0 <= inductionVariable_0)
|
|
2073
2089
|
do {
|
|
2074
2090
|
var ix_0 = inductionVariable_0;
|
|
2075
2091
|
inductionVariable_0 = inductionVariable_0 + -1 | 0;
|
|
2076
|
-
parseOptions.e1(new ParserState(output, parserStructure.
|
|
2092
|
+
parseOptions.e1(new ParserState(output, parserStructure.v5b_1.h1(ix_0), inputPosition));
|
|
2077
2093
|
}
|
|
2078
2094
|
while (0 <= inductionVariable_0);
|
|
2079
2095
|
}
|
|
@@ -2095,14 +2111,14 @@ function Parser__match$default_impl_x2xlti($this, input, initialContainer, start
|
|
|
2095
2111
|
tmp = Parser__match_impl_nzt83d($this, input, initialContainer, startIndex);
|
|
2096
2112
|
} else {
|
|
2097
2113
|
var tmp_0 = $super;
|
|
2098
|
-
tmp = (tmp_0 == null ? null : new Parser(tmp_0)).
|
|
2114
|
+
tmp = (tmp_0 == null ? null : new Parser(tmp_0)).x5b.call(new Parser($this), input, initialContainer, startIndex);
|
|
2099
2115
|
}
|
|
2100
2116
|
return tmp;
|
|
2101
2117
|
}
|
|
2102
2118
|
function ParserState(output, parserStructure, inputPosition) {
|
|
2103
|
-
this.
|
|
2104
|
-
this.
|
|
2105
|
-
this.
|
|
2119
|
+
this.q5b_1 = output;
|
|
2120
|
+
this.r5b_1 = parserStructure;
|
|
2121
|
+
this.s5b_1 = inputPosition;
|
|
2106
2122
|
}
|
|
2107
2123
|
function Parser__toString_impl_x33iea($this) {
|
|
2108
2124
|
return 'Parser(commands=' + $this.toString() + ')';
|
|
@@ -2113,22 +2129,22 @@ function Parser__hashCode_impl_bbxllf($this) {
|
|
|
2113
2129
|
function Parser__equals_impl_djxokv($this, other) {
|
|
2114
2130
|
if (!(other instanceof Parser))
|
|
2115
2131
|
return false;
|
|
2116
|
-
var tmp0_other_with_cast = other instanceof Parser ? other.
|
|
2132
|
+
var tmp0_other_with_cast = other instanceof Parser ? other.t5b_1 : THROW_CCE();
|
|
2117
2133
|
if (!equals($this, tmp0_other_with_cast))
|
|
2118
2134
|
return false;
|
|
2119
2135
|
return true;
|
|
2120
2136
|
}
|
|
2121
2137
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2122
|
-
this.
|
|
2138
|
+
this.y5b_1 = function_0;
|
|
2123
2139
|
}
|
|
2124
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
2125
|
-
return this.
|
|
2140
|
+
protoOf(sam$kotlin_Comparator$0).rc = function (a, b) {
|
|
2141
|
+
return this.y5b_1(a, b);
|
|
2126
2142
|
};
|
|
2127
2143
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2128
|
-
return this.
|
|
2144
|
+
return this.rc(a, b);
|
|
2129
2145
|
};
|
|
2130
2146
|
protoOf(sam$kotlin_Comparator$0).g3 = function () {
|
|
2131
|
-
return this.
|
|
2147
|
+
return this.y5b_1;
|
|
2132
2148
|
};
|
|
2133
2149
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2134
2150
|
var tmp;
|
|
@@ -2153,112 +2169,137 @@ function Parser$match$lambda() {
|
|
|
2153
2169
|
}
|
|
2154
2170
|
function Parser$match$lambda_0(a, b) {
|
|
2155
2171
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
2156
|
-
var tmp = b.
|
|
2157
|
-
var tmp$ret$2 = a.
|
|
2172
|
+
var tmp = b.m5b_1;
|
|
2173
|
+
var tmp$ret$2 = a.m5b_1;
|
|
2158
2174
|
return compareValues(tmp, tmp$ret$2);
|
|
2159
2175
|
}
|
|
2160
2176
|
function Parser(commands) {
|
|
2161
|
-
this.
|
|
2177
|
+
this.t5b_1 = commands;
|
|
2162
2178
|
}
|
|
2163
2179
|
protoOf(Parser).toString = function () {
|
|
2164
|
-
return Parser__toString_impl_x33iea(this.
|
|
2180
|
+
return Parser__toString_impl_x33iea(this.t5b_1);
|
|
2165
2181
|
};
|
|
2166
2182
|
protoOf(Parser).hashCode = function () {
|
|
2167
|
-
return Parser__hashCode_impl_bbxllf(this.
|
|
2183
|
+
return Parser__hashCode_impl_bbxllf(this.t5b_1);
|
|
2168
2184
|
};
|
|
2169
2185
|
protoOf(Parser).equals = function (other) {
|
|
2170
|
-
return Parser__equals_impl_djxokv(this.
|
|
2186
|
+
return Parser__equals_impl_djxokv(this.t5b_1, other);
|
|
2171
2187
|
};
|
|
2172
2188
|
function ParserStructure(operations, followedBy) {
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2189
|
+
this.u5b_1 = operations;
|
|
2190
|
+
this.v5b_1 = followedBy;
|
|
2175
2191
|
}
|
|
2176
2192
|
protoOf(ParserStructure).toString = function () {
|
|
2177
|
-
return joinToString(this.
|
|
2193
|
+
return joinToString(this.u5b_1, ', ') + '(' + joinToString(this.v5b_1, ';') + ')';
|
|
2178
2194
|
};
|
|
2195
|
+
function Companion_9() {
|
|
2196
|
+
this.z5b_1 = 5691186997393344103n;
|
|
2197
|
+
}
|
|
2198
|
+
var Companion_instance_9;
|
|
2199
|
+
function Companion_getInstance_9() {
|
|
2200
|
+
return Companion_instance_9;
|
|
2201
|
+
}
|
|
2179
2202
|
function ParseException(errors) {
|
|
2180
2203
|
Exception_init_$Init$(formatError(errors), this);
|
|
2181
2204
|
captureStack(this, ParseException);
|
|
2182
2205
|
}
|
|
2183
2206
|
function concat(_this__u8e3s4) {
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2207
|
+
var result = {_v: new ParserStructure(emptyList(), emptyList())};
|
|
2208
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2209
|
+
var accumulatedOperations = ArrayList_init_$Create$();
|
|
2210
|
+
var _iterator__ex2g4s = asReversed(_this__u8e3s4).t();
|
|
2211
|
+
while (_iterator__ex2g4s.u()) {
|
|
2212
|
+
var parser = _iterator__ex2g4s.v();
|
|
2213
|
+
if (parser.v5b_1.r()) {
|
|
2214
|
+
accumulatedOperations.e1(parser.u5b_1);
|
|
2215
|
+
} else {
|
|
2216
|
+
concat$flushAccumulatedOperations(accumulatedOperations, result);
|
|
2217
|
+
result._v = concat$simplifyAndAppend(parser, result._v);
|
|
2192
2218
|
}
|
|
2193
2219
|
}
|
|
2194
|
-
|
|
2195
|
-
return
|
|
2220
|
+
concat$flushAccumulatedOperations(accumulatedOperations, result);
|
|
2221
|
+
return result._v;
|
|
2196
2222
|
}
|
|
2197
2223
|
function formatError(errors) {
|
|
2198
2224
|
if (errors.g1() === 1) {
|
|
2199
|
-
return 'Position ' + errors.h1(0).
|
|
2225
|
+
return 'Position ' + errors.h1(0).m5b_1 + ': ' + errors.h1(0).n5b_1();
|
|
2200
2226
|
}
|
|
2201
2227
|
var averageMessageLength = 33;
|
|
2202
2228
|
var tmp0_buffer = StringBuilder_init_$Create$_0(imul(averageMessageLength, errors.g1()));
|
|
2203
2229
|
return joinTo(errors, tmp0_buffer, ', ', 'Errors: ', VOID, VOID, VOID, formatError$lambda).toString();
|
|
2204
2230
|
}
|
|
2205
|
-
function concat$
|
|
2206
|
-
var
|
|
2207
|
-
|
|
2208
|
-
|
|
2231
|
+
function concat$mergeOperations(baseOperations, numberSpan, unconditionalModifications, simplifiedParserStructure) {
|
|
2232
|
+
var operationsToMerge = simplifiedParserStructure.u5b_1;
|
|
2233
|
+
var firstOperation = firstOrNull(operationsToMerge);
|
|
2234
|
+
// Inline function 'kotlin.collections.buildList' call
|
|
2235
|
+
// Inline function 'kotlin.collections.buildListInternal' call
|
|
2236
|
+
// Inline function 'kotlin.apply' call
|
|
2237
|
+
var this_0 = ArrayList_init_$Create$();
|
|
2238
|
+
this_0.i1(baseOperations);
|
|
2239
|
+
if (numberSpan == null) {
|
|
2240
|
+
this_0.i1(operationsToMerge);
|
|
2209
2241
|
} else {
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2242
|
+
if (firstOperation instanceof NumberSpanParserOperation) {
|
|
2243
|
+
this_0.e1(new NumberSpanParserOperation(plus(numberSpan, firstOperation.a5c_1)));
|
|
2244
|
+
var inductionVariable = 1;
|
|
2245
|
+
var last = get_lastIndex_0(operationsToMerge);
|
|
2246
|
+
if (inductionVariable <= last)
|
|
2247
|
+
do {
|
|
2248
|
+
var i = inductionVariable;
|
|
2249
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2250
|
+
this_0.e1(operationsToMerge.h1(i));
|
|
2251
|
+
}
|
|
2252
|
+
while (!(i === last));
|
|
2253
|
+
} else {
|
|
2254
|
+
this_0.e1(new NumberSpanParserOperation(numberSpan));
|
|
2255
|
+
this_0.i1(operationsToMerge);
|
|
2219
2256
|
}
|
|
2220
|
-
tmp = new ParserStructure(_this__u8e3s4.a5b_1, destination);
|
|
2221
2257
|
}
|
|
2222
|
-
|
|
2258
|
+
this_0.i1(unconditionalModifications);
|
|
2259
|
+
var mergedOperations = this_0.j3();
|
|
2260
|
+
return new ParserStructure(mergedOperations, simplifiedParserStructure.v5b_1);
|
|
2223
2261
|
}
|
|
2224
|
-
function concat$
|
|
2262
|
+
function concat$simplifyAndAppend(_this__u8e3s4, other) {
|
|
2225
2263
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2226
2264
|
var newOperations = ArrayList_init_$Create$();
|
|
2227
2265
|
var currentNumberSpan = null;
|
|
2228
|
-
|
|
2229
|
-
var
|
|
2266
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2267
|
+
var unconditionalModifications = ArrayList_init_$Create$();
|
|
2268
|
+
var _iterator__ex2g4s = _this__u8e3s4.u5b_1.t();
|
|
2230
2269
|
while (_iterator__ex2g4s.u()) {
|
|
2231
2270
|
var op = _iterator__ex2g4s.v();
|
|
2232
2271
|
if (op instanceof NumberSpanParserOperation) {
|
|
2233
2272
|
if (!(currentNumberSpan == null)) {
|
|
2234
|
-
currentNumberSpan.
|
|
2273
|
+
currentNumberSpan.i1(op.a5c_1);
|
|
2235
2274
|
} else {
|
|
2236
|
-
currentNumberSpan = toMutableList(op.
|
|
2275
|
+
currentNumberSpan = toMutableList(op.a5c_1);
|
|
2237
2276
|
}
|
|
2238
2277
|
} else {
|
|
2239
|
-
if (op instanceof UnconditionalModification)
|
|
2240
|
-
|
|
2241
|
-
|
|
2278
|
+
if (op instanceof UnconditionalModification)
|
|
2279
|
+
unconditionalModifications.e1(op);
|
|
2280
|
+
else {
|
|
2242
2281
|
if (!(currentNumberSpan == null)) {
|
|
2243
2282
|
newOperations.e1(new NumberSpanParserOperation(currentNumberSpan));
|
|
2244
2283
|
currentNumberSpan = null;
|
|
2284
|
+
newOperations.i1(unconditionalModifications);
|
|
2285
|
+
unconditionalModifications.n2();
|
|
2245
2286
|
}
|
|
2246
2287
|
newOperations.e1(op);
|
|
2247
2288
|
}
|
|
2248
2289
|
}
|
|
2249
2290
|
}
|
|
2250
2291
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2251
|
-
var tmp0 = _this__u8e3s4.
|
|
2292
|
+
var tmp0 = _this__u8e3s4.v5b_1;
|
|
2252
2293
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2253
2294
|
var destination = ArrayList_init_$Create$();
|
|
2254
2295
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2255
2296
|
while (_iterator__ex2g4s_0.u()) {
|
|
2256
2297
|
var element = _iterator__ex2g4s_0.v();
|
|
2257
|
-
var simplified = concat$
|
|
2298
|
+
var simplified = concat$simplifyAndAppend(element, other);
|
|
2258
2299
|
var tmp;
|
|
2259
|
-
if (simplified.
|
|
2300
|
+
if (simplified.u5b_1.r()) {
|
|
2260
2301
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2261
|
-
var this_0 = simplified.
|
|
2302
|
+
var this_0 = simplified.v5b_1;
|
|
2262
2303
|
var tmp_0;
|
|
2263
2304
|
if (this_0.r()) {
|
|
2264
2305
|
tmp_0 = listOf(simplified);
|
|
@@ -2275,78 +2316,93 @@ function concat$simplify(_this__u8e3s4, unconditionalModifications) {
|
|
|
2275
2316
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2276
2317
|
var tmp_1;
|
|
2277
2318
|
if (destination.r()) {
|
|
2278
|
-
|
|
2319
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2320
|
+
if (!other.u5b_1.r()) {
|
|
2321
|
+
return concat$mergeOperations(newOperations, currentNumberSpan, unconditionalModifications, other);
|
|
2322
|
+
}
|
|
2323
|
+
tmp_1 = other.v5b_1;
|
|
2279
2324
|
} else {
|
|
2280
2325
|
tmp_1 = destination;
|
|
2281
2326
|
}
|
|
2282
2327
|
var mergedTails = tmp_1;
|
|
2283
2328
|
var tmp_2;
|
|
2329
|
+
var tmp_3;
|
|
2330
|
+
var tmp_4;
|
|
2284
2331
|
if (currentNumberSpan == null) {
|
|
2285
|
-
|
|
2332
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2333
|
+
tmp_4 = !newOperations.r();
|
|
2334
|
+
} else {
|
|
2335
|
+
tmp_4 = false;
|
|
2336
|
+
}
|
|
2337
|
+
if (tmp_4) {
|
|
2338
|
+
tmp_3 = true;
|
|
2286
2339
|
} else {
|
|
2287
|
-
var tmp$ret$
|
|
2340
|
+
var tmp$ret$11;
|
|
2288
2341
|
$l$block_0: {
|
|
2289
2342
|
// Inline function 'kotlin.collections.none' call
|
|
2290
|
-
var
|
|
2343
|
+
var tmp_5;
|
|
2291
2344
|
if (isInterface(mergedTails, Collection)) {
|
|
2292
|
-
|
|
2345
|
+
tmp_5 = mergedTails.r();
|
|
2293
2346
|
} else {
|
|
2294
|
-
|
|
2347
|
+
tmp_5 = false;
|
|
2295
2348
|
}
|
|
2296
|
-
if (
|
|
2297
|
-
tmp$ret$
|
|
2349
|
+
if (tmp_5) {
|
|
2350
|
+
tmp$ret$11 = true;
|
|
2298
2351
|
break $l$block_0;
|
|
2299
2352
|
}
|
|
2300
2353
|
var _iterator__ex2g4s_1 = mergedTails.t();
|
|
2301
2354
|
while (_iterator__ex2g4s_1.u()) {
|
|
2302
2355
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
2303
|
-
var
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
tmp_4 = null;
|
|
2307
|
-
} else {
|
|
2308
|
-
// Inline function 'kotlin.let' call
|
|
2309
|
-
tmp_4 = tmp0_safe_receiver instanceof NumberSpanParserOperation;
|
|
2310
|
-
}
|
|
2311
|
-
if (tmp_4 === true) {
|
|
2312
|
-
tmp$ret$8 = false;
|
|
2356
|
+
var tmp_6 = firstOrNull(element_0.u5b_1);
|
|
2357
|
+
if (tmp_6 instanceof NumberSpanParserOperation) {
|
|
2358
|
+
tmp$ret$11 = false;
|
|
2313
2359
|
break $l$block_0;
|
|
2314
2360
|
}
|
|
2315
2361
|
}
|
|
2316
|
-
tmp$ret$
|
|
2362
|
+
tmp$ret$11 = true;
|
|
2317
2363
|
}
|
|
2318
|
-
|
|
2364
|
+
tmp_3 = tmp$ret$11;
|
|
2365
|
+
}
|
|
2366
|
+
if (tmp_3) {
|
|
2367
|
+
if (!(currentNumberSpan == null)) {
|
|
2319
2368
|
newOperations.e1(new NumberSpanParserOperation(currentNumberSpan));
|
|
2320
|
-
tmp_2 = new ParserStructure(newOperations, mergedTails);
|
|
2321
|
-
} else {
|
|
2322
|
-
// Inline function 'kotlin.collections.map' call
|
|
2323
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2324
|
-
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(mergedTails, 10));
|
|
2325
|
-
var _iterator__ex2g4s_2 = mergedTails.t();
|
|
2326
|
-
while (_iterator__ex2g4s_2.u()) {
|
|
2327
|
-
var item = _iterator__ex2g4s_2.v();
|
|
2328
|
-
var firstOperation = firstOrNull(item.a5b_1);
|
|
2329
|
-
var tmp_5;
|
|
2330
|
-
if (firstOperation instanceof NumberSpanParserOperation) {
|
|
2331
|
-
tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(plus(currentNumberSpan, firstOperation.f5b_1))), drop(item.a5b_1, 1)), item.b5b_1);
|
|
2332
|
-
} else {
|
|
2333
|
-
if (firstOperation == null) {
|
|
2334
|
-
tmp_5 = new ParserStructure(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.b5b_1);
|
|
2335
|
-
} else {
|
|
2336
|
-
tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.a5b_1), item.b5b_1);
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
var tmp$ret$14 = tmp_5;
|
|
2340
|
-
destination_0.e1(tmp$ret$14);
|
|
2341
|
-
}
|
|
2342
|
-
var newTails = destination_0;
|
|
2343
|
-
tmp_2 = new ParserStructure(newOperations, newTails);
|
|
2344
2369
|
}
|
|
2370
|
+
newOperations.i1(unconditionalModifications);
|
|
2371
|
+
tmp_2 = new ParserStructure(newOperations, mergedTails);
|
|
2372
|
+
} else {
|
|
2373
|
+
// Inline function 'kotlin.collections.map' call
|
|
2374
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2375
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(mergedTails, 10));
|
|
2376
|
+
var _iterator__ex2g4s_2 = mergedTails.t();
|
|
2377
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
2378
|
+
var item = _iterator__ex2g4s_2.v();
|
|
2379
|
+
var tmp$ret$15 = concat$mergeOperations(emptyList(), currentNumberSpan, unconditionalModifications, item);
|
|
2380
|
+
destination_0.e1(tmp$ret$15);
|
|
2381
|
+
}
|
|
2382
|
+
var newTails = destination_0;
|
|
2383
|
+
tmp_2 = new ParserStructure(newOperations, newTails);
|
|
2345
2384
|
}
|
|
2346
2385
|
return tmp_2;
|
|
2347
2386
|
}
|
|
2387
|
+
function concat$flushAccumulatedOperations(accumulatedOperations, result) {
|
|
2388
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2389
|
+
if (!accumulatedOperations.r()) {
|
|
2390
|
+
// Inline function 'kotlin.collections.buildList' call
|
|
2391
|
+
// Inline function 'kotlin.collections.buildListInternal' call
|
|
2392
|
+
// Inline function 'kotlin.apply' call
|
|
2393
|
+
var this_0 = ArrayList_init_$Create$();
|
|
2394
|
+
var _iterator__ex2g4s = asReversed_0(accumulatedOperations).t();
|
|
2395
|
+
while (_iterator__ex2g4s.u()) {
|
|
2396
|
+
var parserOperations = _iterator__ex2g4s.v();
|
|
2397
|
+
this_0.i1(parserOperations);
|
|
2398
|
+
}
|
|
2399
|
+
var operations = this_0.j3();
|
|
2400
|
+
result._v = concat$simplifyAndAppend(new ParserStructure(operations, emptyList()), result._v);
|
|
2401
|
+
accumulatedOperations.n2();
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2348
2404
|
function formatError$lambda(it) {
|
|
2349
|
-
return 'position ' + it.
|
|
2405
|
+
return 'position ' + it.m5b_1 + ": '" + it.n5b_1() + "'";
|
|
2350
2406
|
}
|
|
2351
2407
|
function spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, withMinus) {
|
|
2352
2408
|
withMinus = withMinus === VOID ? false : withMinus;
|
|
@@ -2388,22 +2444,22 @@ function spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, sette
|
|
|
2388
2444
|
}
|
|
2389
2445
|
function _get_whatThisExpects__4pg11j($this) {
|
|
2390
2446
|
// Inline function 'kotlin.collections.map' call
|
|
2391
|
-
var this_0 = $this.
|
|
2447
|
+
var this_0 = $this.a5c_1;
|
|
2392
2448
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2393
2449
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2394
2450
|
var _iterator__ex2g4s = this_0.t();
|
|
2395
2451
|
while (_iterator__ex2g4s.u()) {
|
|
2396
2452
|
var item = _iterator__ex2g4s.v();
|
|
2397
2453
|
var length = item.a();
|
|
2398
|
-
var tmp$ret$2 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.
|
|
2454
|
+
var tmp$ret$2 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.a5b_1);
|
|
2399
2455
|
destination.e1(tmp$ret$2);
|
|
2400
2456
|
}
|
|
2401
2457
|
var consumerLengths = destination;
|
|
2402
2458
|
var tmp;
|
|
2403
|
-
if ($this.
|
|
2404
|
-
tmp = 'a number with at least ' + $this.
|
|
2459
|
+
if ($this.c5c_1) {
|
|
2460
|
+
tmp = 'a number with at least ' + $this.b5c_1 + ' digits: ' + toString(consumerLengths);
|
|
2405
2461
|
} else {
|
|
2406
|
-
tmp = 'a number with exactly ' + $this.
|
|
2462
|
+
tmp = 'a number with exactly ' + $this.b5c_1 + ' digits: ' + toString(consumerLengths);
|
|
2407
2463
|
}
|
|
2408
2464
|
return tmp;
|
|
2409
2465
|
}
|
|
@@ -2419,24 +2475,24 @@ function NumberSpanParserOperation$consume$lambda_0($digitsInRow, this$0) {
|
|
|
2419
2475
|
}
|
|
2420
2476
|
function NumberSpanParserOperation$consume$lambda_1($numberString, this$0, $i, $error) {
|
|
2421
2477
|
return function () {
|
|
2422
|
-
return "Can not interpret the string '" + $numberString + "' as " + this$0.
|
|
2478
|
+
return "Can not interpret the string '" + $numberString + "' as " + this$0.a5c_1.h1($i).a5b_1 + ': ' + $error.b5b();
|
|
2423
2479
|
};
|
|
2424
2480
|
}
|
|
2425
2481
|
function NumberSpanParserOperation(consumers) {
|
|
2426
|
-
this.
|
|
2482
|
+
this.a5c_1 = consumers;
|
|
2427
2483
|
var tmp = this;
|
|
2428
2484
|
// Inline function 'kotlin.collections.sumOf' call
|
|
2429
2485
|
var sum = 0;
|
|
2430
|
-
var _iterator__ex2g4s = this.
|
|
2486
|
+
var _iterator__ex2g4s = this.a5c_1.t();
|
|
2431
2487
|
while (_iterator__ex2g4s.u()) {
|
|
2432
2488
|
var element = _iterator__ex2g4s.v();
|
|
2433
2489
|
var tmp_0 = sum;
|
|
2434
2490
|
var tmp0_elvis_lhs = element.a();
|
|
2435
2491
|
sum = tmp_0 + (tmp0_elvis_lhs == null ? 1 : tmp0_elvis_lhs) | 0;
|
|
2436
2492
|
}
|
|
2437
|
-
tmp.
|
|
2493
|
+
tmp.b5c_1 = sum;
|
|
2438
2494
|
var tmp_1 = this;
|
|
2439
|
-
var tmp0 = this.
|
|
2495
|
+
var tmp0 = this.a5c_1;
|
|
2440
2496
|
var tmp$ret$2;
|
|
2441
2497
|
$l$block_0: {
|
|
2442
2498
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2460,8 +2516,8 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2460
2516
|
}
|
|
2461
2517
|
tmp$ret$2 = false;
|
|
2462
2518
|
}
|
|
2463
|
-
tmp_1.
|
|
2464
|
-
var tmp0_0 = this.
|
|
2519
|
+
tmp_1.c5c_1 = tmp$ret$2;
|
|
2520
|
+
var tmp0_0 = this.a5c_1;
|
|
2465
2521
|
var tmp$ret$4;
|
|
2466
2522
|
$l$block_2: {
|
|
2467
2523
|
// Inline function 'kotlin.collections.all' call
|
|
@@ -2492,7 +2548,7 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2492
2548
|
var message = 'Failed requirement.';
|
|
2493
2549
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2494
2550
|
}
|
|
2495
|
-
var tmp0_1 = this.
|
|
2551
|
+
var tmp0_1 = this.a5c_1;
|
|
2496
2552
|
var tmp$ret$9;
|
|
2497
2553
|
$l$block_3: {
|
|
2498
2554
|
// Inline function 'kotlin.collections.count' call
|
|
@@ -2520,7 +2576,7 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2520
2576
|
// Inline function 'kotlin.require' call
|
|
2521
2577
|
if (!(tmp$ret$9 <= 1)) {
|
|
2522
2578
|
// Inline function 'kotlin.collections.filter' call
|
|
2523
|
-
var tmp0_2 = this.
|
|
2579
|
+
var tmp0_2 = this.a5c_1;
|
|
2524
2580
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2525
2581
|
var destination = ArrayList_init_$Create$();
|
|
2526
2582
|
var _iterator__ex2g4s_3 = tmp0_2.t();
|
|
@@ -2536,7 +2592,7 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2536
2592
|
var _iterator__ex2g4s_4 = destination.t();
|
|
2537
2593
|
while (_iterator__ex2g4s_4.u()) {
|
|
2538
2594
|
var item = _iterator__ex2g4s_4.v();
|
|
2539
|
-
var tmp$ret$18 = item.
|
|
2595
|
+
var tmp$ret$18 = item.a5b_1;
|
|
2540
2596
|
destination_0.e1(tmp$ret$18);
|
|
2541
2597
|
}
|
|
2542
2598
|
var fieldNames = destination_0;
|
|
@@ -2544,43 +2600,43 @@ function NumberSpanParserOperation(consumers) {
|
|
|
2544
2600
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2545
2601
|
}
|
|
2546
2602
|
}
|
|
2547
|
-
protoOf(NumberSpanParserOperation).
|
|
2548
|
-
if ((startIndex + this.
|
|
2549
|
-
var tmp =
|
|
2550
|
-
return tmp.
|
|
2603
|
+
protoOf(NumberSpanParserOperation).w5b = function (storage, input, startIndex) {
|
|
2604
|
+
if ((startIndex + this.b5c_1 | 0) > charSequenceLength(input)) {
|
|
2605
|
+
var tmp = Companion_instance_8;
|
|
2606
|
+
return tmp.p5b(startIndex, NumberSpanParserOperation$consume$lambda(this));
|
|
2551
2607
|
}
|
|
2552
2608
|
var digitsInRow = {_v: 0};
|
|
2553
2609
|
while ((startIndex + digitsInRow._v | 0) < charSequenceLength(input) && isAsciiDigit(charSequenceGet(input, startIndex + digitsInRow._v | 0))) {
|
|
2554
2610
|
digitsInRow._v = digitsInRow._v + 1 | 0;
|
|
2555
2611
|
digitsInRow._v;
|
|
2556
2612
|
}
|
|
2557
|
-
if (digitsInRow._v < this.
|
|
2558
|
-
var tmp_0 =
|
|
2559
|
-
return tmp_0.
|
|
2613
|
+
if (digitsInRow._v < this.b5c_1) {
|
|
2614
|
+
var tmp_0 = Companion_instance_8;
|
|
2615
|
+
return tmp_0.p5b(startIndex, NumberSpanParserOperation$consume$lambda_0(digitsInRow, this));
|
|
2560
2616
|
}
|
|
2561
2617
|
var index = startIndex;
|
|
2562
2618
|
var inductionVariable = 0;
|
|
2563
|
-
var last = this.
|
|
2619
|
+
var last = this.a5c_1.g1() - 1 | 0;
|
|
2564
2620
|
if (inductionVariable <= last)
|
|
2565
2621
|
do {
|
|
2566
2622
|
var i = inductionVariable;
|
|
2567
2623
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2568
|
-
var tmp0_elvis_lhs = this.
|
|
2569
|
-
var length = tmp0_elvis_lhs == null ? (digitsInRow._v - this.
|
|
2570
|
-
var error = this.
|
|
2624
|
+
var tmp0_elvis_lhs = this.a5c_1.h1(i).a();
|
|
2625
|
+
var length = tmp0_elvis_lhs == null ? (digitsInRow._v - this.b5c_1 | 0) + 1 | 0 : tmp0_elvis_lhs;
|
|
2626
|
+
var error = this.a5c_1.h1(i).y5a(storage, input, index, index + length | 0);
|
|
2571
2627
|
if (!(error == null)) {
|
|
2572
2628
|
var tmp2 = index;
|
|
2573
2629
|
// Inline function 'kotlin.text.substring' call
|
|
2574
2630
|
var endIndex = index + length | 0;
|
|
2575
2631
|
var numberString = toString(charSequenceSubSequence(input, tmp2, endIndex));
|
|
2576
|
-
var tmp_1 =
|
|
2632
|
+
var tmp_1 = Companion_instance_8;
|
|
2577
2633
|
var tmp_2 = index;
|
|
2578
|
-
return tmp_1.
|
|
2634
|
+
return tmp_1.p5b(tmp_2, NumberSpanParserOperation$consume$lambda_1(numberString, this, i, error));
|
|
2579
2635
|
}
|
|
2580
2636
|
index = index + length | 0;
|
|
2581
2637
|
}
|
|
2582
2638
|
while (inductionVariable <= last);
|
|
2583
|
-
return
|
|
2639
|
+
return Companion_instance_8.o5b(index);
|
|
2584
2640
|
};
|
|
2585
2641
|
protoOf(NumberSpanParserOperation).toString = function () {
|
|
2586
2642
|
return _get_whatThisExpects__4pg11j(this);
|
|
@@ -2597,7 +2653,7 @@ function SignedIntParser(minDigits, maxDigits, spacePadding, setter, name, plusO
|
|
|
2597
2653
|
}
|
|
2598
2654
|
function PlainStringParserOperation$consume$lambda(this$0) {
|
|
2599
2655
|
return function () {
|
|
2600
|
-
return "Unexpected end of input: yet to parse '" + this$0.
|
|
2656
|
+
return "Unexpected end of input: yet to parse '" + this$0.d5c_1 + "'";
|
|
2601
2657
|
};
|
|
2602
2658
|
}
|
|
2603
2659
|
function PlainStringParserOperation$consume$lambda_0(this$0, $input, $startIndex, $i) {
|
|
@@ -2607,50 +2663,50 @@ function PlainStringParserOperation$consume$lambda_0(this$0, $input, $startIndex
|
|
|
2607
2663
|
// Inline function 'kotlin.text.substring' call
|
|
2608
2664
|
var endIndex = ($startIndex + $i | 0) + 1 | 0;
|
|
2609
2665
|
var tmp$ret$0 = toString(charSequenceSubSequence(tmp0, tmp2, endIndex));
|
|
2610
|
-
return 'Expected ' + this$0.
|
|
2666
|
+
return 'Expected ' + this$0.d5c_1 + ' but got ' + tmp$ret$0;
|
|
2611
2667
|
};
|
|
2612
2668
|
}
|
|
2613
2669
|
function PlainStringParserOperation(string) {
|
|
2614
|
-
this.
|
|
2670
|
+
this.d5c_1 = string;
|
|
2615
2671
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2616
|
-
var this_0 = this.
|
|
2672
|
+
var this_0 = this.d5c_1;
|
|
2617
2673
|
// Inline function 'kotlin.require' call
|
|
2618
2674
|
if (!(charSequenceLength(this_0) > 0)) {
|
|
2619
2675
|
var message = 'Empty string is not allowed';
|
|
2620
2676
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2621
2677
|
}
|
|
2622
2678
|
// Inline function 'kotlin.require' call
|
|
2623
|
-
if (!!isAsciiDigit(charCodeAt(this.
|
|
2624
|
-
var message_0 = "String '" + this.
|
|
2679
|
+
if (!!isAsciiDigit(charCodeAt(this.d5c_1, 0))) {
|
|
2680
|
+
var message_0 = "String '" + this.d5c_1 + "' starts with a digit";
|
|
2625
2681
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2626
2682
|
}
|
|
2627
2683
|
// Inline function 'kotlin.require' call
|
|
2628
|
-
if (!!isAsciiDigit(charCodeAt(this.
|
|
2629
|
-
var message_1 = "String '" + this.
|
|
2684
|
+
if (!!isAsciiDigit(charCodeAt(this.d5c_1, this.d5c_1.length - 1 | 0))) {
|
|
2685
|
+
var message_1 = "String '" + this.d5c_1 + "' ends with a digit";
|
|
2630
2686
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2631
2687
|
}
|
|
2632
2688
|
}
|
|
2633
|
-
protoOf(PlainStringParserOperation).
|
|
2634
|
-
if ((startIndex + this.
|
|
2635
|
-
var tmp =
|
|
2636
|
-
return tmp.
|
|
2689
|
+
protoOf(PlainStringParserOperation).w5b = function (storage, input, startIndex) {
|
|
2690
|
+
if ((startIndex + this.d5c_1.length | 0) > charSequenceLength(input)) {
|
|
2691
|
+
var tmp = Companion_instance_8;
|
|
2692
|
+
return tmp.p5b(startIndex, PlainStringParserOperation$consume$lambda(this));
|
|
2637
2693
|
}
|
|
2638
2694
|
var inductionVariable = 0;
|
|
2639
|
-
var last = charSequenceLength(this.
|
|
2695
|
+
var last = charSequenceLength(this.d5c_1) - 1 | 0;
|
|
2640
2696
|
if (inductionVariable <= last)
|
|
2641
2697
|
do {
|
|
2642
2698
|
var i = inductionVariable;
|
|
2643
2699
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2644
|
-
if (!(charSequenceGet(input, startIndex + i | 0) === charCodeAt(this.
|
|
2645
|
-
var tmp_0 =
|
|
2646
|
-
return tmp_0.
|
|
2700
|
+
if (!(charSequenceGet(input, startIndex + i | 0) === charCodeAt(this.d5c_1, i))) {
|
|
2701
|
+
var tmp_0 = Companion_instance_8;
|
|
2702
|
+
return tmp_0.p5b(startIndex, PlainStringParserOperation$consume$lambda_0(this, input, startIndex, i));
|
|
2647
2703
|
}
|
|
2648
2704
|
}
|
|
2649
2705
|
while (inductionVariable <= last);
|
|
2650
|
-
return
|
|
2706
|
+
return Companion_instance_8.o5b(startIndex + this.d5c_1.length | 0);
|
|
2651
2707
|
};
|
|
2652
2708
|
protoOf(PlainStringParserOperation).toString = function () {
|
|
2653
|
-
return "'" + this.
|
|
2709
|
+
return "'" + this.d5c_1 + "'";
|
|
2654
2710
|
};
|
|
2655
2711
|
function UnconditionalModification() {
|
|
2656
2712
|
}
|
|
@@ -2698,54 +2754,54 @@ function TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this
|
|
|
2698
2754
|
var annotations = emptyList();
|
|
2699
2755
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2700
2756
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2701
|
-
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().
|
|
2702
|
-
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).
|
|
2703
|
-
$this$buildClassSerialDescriptor.
|
|
2757
|
+
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().nb(), arrayOf([]), false));
|
|
2758
|
+
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).q1s();
|
|
2759
|
+
$this$buildClassSerialDescriptor.d1v(elementName, descriptor, annotations, false);
|
|
2704
2760
|
return Unit_instance;
|
|
2705
2761
|
}
|
|
2706
2762
|
function TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw() {
|
|
2707
|
-
return function (p0) {
|
|
2708
|
-
return p0.
|
|
2709
|
-
};
|
|
2763
|
+
return constructCallableReference(function (p0) {
|
|
2764
|
+
return p0.q1s();
|
|
2765
|
+
}, 1, 0, 48);
|
|
2710
2766
|
}
|
|
2711
2767
|
function TimeBasedDateTimeUnitSerializer() {
|
|
2712
2768
|
TimeBasedDateTimeUnitSerializer_instance = this;
|
|
2713
2769
|
var tmp = this;
|
|
2714
2770
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2715
|
-
tmp.
|
|
2771
|
+
tmp.e5c_1 = lazy_0(tmp_0, TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
|
|
2716
2772
|
}
|
|
2717
|
-
protoOf(TimeBasedDateTimeUnitSerializer).
|
|
2718
|
-
var tmp0 = this.
|
|
2773
|
+
protoOf(TimeBasedDateTimeUnitSerializer).q1s = function () {
|
|
2774
|
+
var tmp0 = this.e5c_1;
|
|
2719
2775
|
var tmp = KProperty1;
|
|
2720
2776
|
// Inline function 'kotlin.getValue' call
|
|
2721
2777
|
getPropertyCallableRef('descriptor', 1, tmp, TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw(), null);
|
|
2722
2778
|
return tmp0.m1();
|
|
2723
2779
|
};
|
|
2724
|
-
protoOf(TimeBasedDateTimeUnitSerializer).
|
|
2780
|
+
protoOf(TimeBasedDateTimeUnitSerializer).f5c = function (encoder, value) {
|
|
2725
2781
|
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
2726
|
-
var descriptor = this.
|
|
2727
|
-
var composite = encoder.
|
|
2728
|
-
composite.
|
|
2729
|
-
composite.
|
|
2782
|
+
var descriptor = this.q1s();
|
|
2783
|
+
var composite = encoder.g1w(descriptor);
|
|
2784
|
+
composite.q1x(TimeBasedDateTimeUnitSerializer_getInstance().q1s(), 0, value.e55_1);
|
|
2785
|
+
composite.h1w(descriptor);
|
|
2730
2786
|
};
|
|
2731
|
-
protoOf(TimeBasedDateTimeUnitSerializer).
|
|
2732
|
-
return this.
|
|
2787
|
+
protoOf(TimeBasedDateTimeUnitSerializer).d1t = function (encoder, value) {
|
|
2788
|
+
return this.f5c(encoder, value instanceof TimeBased ? value : THROW_CCE());
|
|
2733
2789
|
};
|
|
2734
|
-
protoOf(TimeBasedDateTimeUnitSerializer).
|
|
2790
|
+
protoOf(TimeBasedDateTimeUnitSerializer).e1t = function (decoder) {
|
|
2735
2791
|
var seen = {_v: false};
|
|
2736
2792
|
var nanoseconds = {_v: 0n};
|
|
2737
2793
|
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
2738
|
-
var descriptor = this.
|
|
2739
|
-
var composite = decoder.
|
|
2740
|
-
if (composite.
|
|
2741
|
-
nanoseconds._v = composite.
|
|
2794
|
+
var descriptor = this.q1s();
|
|
2795
|
+
var composite = decoder.g1w(descriptor);
|
|
2796
|
+
if (composite.v1w()) {
|
|
2797
|
+
nanoseconds._v = composite.m1w(TimeBasedDateTimeUnitSerializer_getInstance().q1s(), 0);
|
|
2742
2798
|
seen._v = true;
|
|
2743
2799
|
} else {
|
|
2744
2800
|
loop: while (true) {
|
|
2745
|
-
var elementIndex = composite.
|
|
2801
|
+
var elementIndex = composite.w1w(TimeBasedDateTimeUnitSerializer_getInstance().q1s());
|
|
2746
2802
|
switch (elementIndex) {
|
|
2747
2803
|
case 0:
|
|
2748
|
-
nanoseconds._v = composite.
|
|
2804
|
+
nanoseconds._v = composite.m1w(TimeBasedDateTimeUnitSerializer_getInstance().q1s(), 0);
|
|
2749
2805
|
seen._v = true;
|
|
2750
2806
|
break;
|
|
2751
2807
|
case -1:
|
|
@@ -2757,9 +2813,9 @@ protoOf(TimeBasedDateTimeUnitSerializer).k1s = function (decoder) {
|
|
|
2757
2813
|
}
|
|
2758
2814
|
}
|
|
2759
2815
|
var result = Unit_instance;
|
|
2760
|
-
composite.
|
|
2816
|
+
composite.h1w(descriptor);
|
|
2761
2817
|
if (!seen._v)
|
|
2762
|
-
throw MissingFieldException_init_$Create$('nanoseconds', this.
|
|
2818
|
+
throw MissingFieldException_init_$Create$('nanoseconds', this.q1s().v1t());
|
|
2763
2819
|
return new TimeBased(nanoseconds._v);
|
|
2764
2820
|
};
|
|
2765
2821
|
var TimeBasedDateTimeUnitSerializer_instance;
|
|
@@ -2769,7 +2825,7 @@ function TimeBasedDateTimeUnitSerializer_getInstance() {
|
|
|
2769
2825
|
return TimeBasedDateTimeUnitSerializer_instance;
|
|
2770
2826
|
}
|
|
2771
2827
|
function _get_impl__d88w17($this) {
|
|
2772
|
-
var tmp0 = $this.
|
|
2828
|
+
var tmp0 = $this.g5c_1;
|
|
2773
2829
|
var tmp = KProperty1;
|
|
2774
2830
|
// Inline function 'kotlin.getValue' call
|
|
2775
2831
|
getPropertyCallableRef('impl', 1, tmp, DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs(), null);
|
|
@@ -2788,31 +2844,31 @@ function DateBasedDateTimeUnitSerializer$impl$delegate$lambda() {
|
|
|
2788
2844
|
return new SealedClassSerializer('kotlinx.datetime.DateTimeUnit.DateBased', tmp, tmp_0, tmp$ret$3);
|
|
2789
2845
|
}
|
|
2790
2846
|
function DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs() {
|
|
2791
|
-
return function (p0) {
|
|
2847
|
+
return constructCallableReference(function (p0) {
|
|
2792
2848
|
return _get_impl__d88w17(p0);
|
|
2793
|
-
};
|
|
2849
|
+
}, 1, 0, 49);
|
|
2794
2850
|
}
|
|
2795
2851
|
function DateBasedDateTimeUnitSerializer() {
|
|
2796
2852
|
DateBasedDateTimeUnitSerializer_instance = this;
|
|
2797
2853
|
AbstractPolymorphicSerializer.call(this);
|
|
2798
2854
|
var tmp = this;
|
|
2799
2855
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2800
|
-
tmp.
|
|
2856
|
+
tmp.g5c_1 = lazy_0(tmp_0, DateBasedDateTimeUnitSerializer$impl$delegate$lambda);
|
|
2801
2857
|
}
|
|
2802
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2803
|
-
return _get_impl__d88w17(this).
|
|
2858
|
+
protoOf(DateBasedDateTimeUnitSerializer).g1t = function (decoder, klassName) {
|
|
2859
|
+
return _get_impl__d88w17(this).g1t(decoder, klassName);
|
|
2804
2860
|
};
|
|
2805
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2806
|
-
return _get_impl__d88w17(this).
|
|
2861
|
+
protoOf(DateBasedDateTimeUnitSerializer).h5c = function (encoder, value) {
|
|
2862
|
+
return _get_impl__d88w17(this).i1t(encoder, value);
|
|
2807
2863
|
};
|
|
2808
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2809
|
-
return this.
|
|
2864
|
+
protoOf(DateBasedDateTimeUnitSerializer).i1t = function (encoder, value) {
|
|
2865
|
+
return this.h5c(encoder, value instanceof DateBased ? value : THROW_CCE());
|
|
2810
2866
|
};
|
|
2811
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2867
|
+
protoOf(DateBasedDateTimeUnitSerializer).h1t = function () {
|
|
2812
2868
|
return getKClass(DateBased);
|
|
2813
2869
|
};
|
|
2814
|
-
protoOf(DateBasedDateTimeUnitSerializer).
|
|
2815
|
-
return _get_impl__d88w17(this).
|
|
2870
|
+
protoOf(DateBasedDateTimeUnitSerializer).q1s = function () {
|
|
2871
|
+
return _get_impl__d88w17(this).q1s();
|
|
2816
2872
|
};
|
|
2817
2873
|
var DateBasedDateTimeUnitSerializer_instance;
|
|
2818
2874
|
function DateBasedDateTimeUnitSerializer_getInstance() {
|
|
@@ -2828,54 +2884,54 @@ function DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$
|
|
|
2828
2884
|
var annotations = emptyList();
|
|
2829
2885
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2830
2886
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2831
|
-
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().
|
|
2832
|
-
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).
|
|
2833
|
-
$this$buildClassSerialDescriptor.
|
|
2887
|
+
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().mb(), arrayOf([]), false));
|
|
2888
|
+
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).q1s();
|
|
2889
|
+
$this$buildClassSerialDescriptor.d1v('days', descriptor, annotations, false);
|
|
2834
2890
|
return Unit_instance;
|
|
2835
2891
|
}
|
|
2836
2892
|
function DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3() {
|
|
2837
|
-
return function (p0) {
|
|
2838
|
-
return p0.
|
|
2839
|
-
};
|
|
2893
|
+
return constructCallableReference(function (p0) {
|
|
2894
|
+
return p0.q1s();
|
|
2895
|
+
}, 1, 0, 50);
|
|
2840
2896
|
}
|
|
2841
2897
|
function DayBasedDateTimeUnitSerializer() {
|
|
2842
2898
|
DayBasedDateTimeUnitSerializer_instance = this;
|
|
2843
2899
|
var tmp = this;
|
|
2844
2900
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2845
|
-
tmp.
|
|
2901
|
+
tmp.i5c_1 = lazy_0(tmp_0, DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
|
|
2846
2902
|
}
|
|
2847
|
-
protoOf(DayBasedDateTimeUnitSerializer).
|
|
2848
|
-
var tmp0 = this.
|
|
2903
|
+
protoOf(DayBasedDateTimeUnitSerializer).q1s = function () {
|
|
2904
|
+
var tmp0 = this.i5c_1;
|
|
2849
2905
|
var tmp = KProperty1;
|
|
2850
2906
|
// Inline function 'kotlin.getValue' call
|
|
2851
2907
|
getPropertyCallableRef('descriptor', 1, tmp, DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3(), null);
|
|
2852
2908
|
return tmp0.m1();
|
|
2853
2909
|
};
|
|
2854
|
-
protoOf(DayBasedDateTimeUnitSerializer).
|
|
2910
|
+
protoOf(DayBasedDateTimeUnitSerializer).j5c = function (encoder, value) {
|
|
2855
2911
|
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
2856
|
-
var descriptor = this.
|
|
2857
|
-
var composite = encoder.
|
|
2858
|
-
composite.
|
|
2859
|
-
composite.
|
|
2912
|
+
var descriptor = this.q1s();
|
|
2913
|
+
var composite = encoder.g1w(descriptor);
|
|
2914
|
+
composite.p1x(DayBasedDateTimeUnitSerializer_getInstance().q1s(), 0, value.k55_1);
|
|
2915
|
+
composite.h1w(descriptor);
|
|
2860
2916
|
};
|
|
2861
|
-
protoOf(DayBasedDateTimeUnitSerializer).
|
|
2862
|
-
return this.
|
|
2917
|
+
protoOf(DayBasedDateTimeUnitSerializer).d1t = function (encoder, value) {
|
|
2918
|
+
return this.j5c(encoder, value instanceof DayBased ? value : THROW_CCE());
|
|
2863
2919
|
};
|
|
2864
|
-
protoOf(DayBasedDateTimeUnitSerializer).
|
|
2920
|
+
protoOf(DayBasedDateTimeUnitSerializer).e1t = function (decoder) {
|
|
2865
2921
|
var seen = {_v: false};
|
|
2866
2922
|
var days = {_v: 0};
|
|
2867
2923
|
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
2868
|
-
var descriptor = this.
|
|
2869
|
-
var composite = decoder.
|
|
2870
|
-
if (composite.
|
|
2871
|
-
days._v = composite.
|
|
2924
|
+
var descriptor = this.q1s();
|
|
2925
|
+
var composite = decoder.g1w(descriptor);
|
|
2926
|
+
if (composite.v1w()) {
|
|
2927
|
+
days._v = composite.l1w(DayBasedDateTimeUnitSerializer_getInstance().q1s(), 0);
|
|
2872
2928
|
seen._v = true;
|
|
2873
2929
|
} else {
|
|
2874
2930
|
loop: while (true) {
|
|
2875
|
-
var elementIndex = composite.
|
|
2931
|
+
var elementIndex = composite.w1w(DayBasedDateTimeUnitSerializer_getInstance().q1s());
|
|
2876
2932
|
switch (elementIndex) {
|
|
2877
2933
|
case 0:
|
|
2878
|
-
days._v = composite.
|
|
2934
|
+
days._v = composite.l1w(DayBasedDateTimeUnitSerializer_getInstance().q1s(), 0);
|
|
2879
2935
|
seen._v = true;
|
|
2880
2936
|
break;
|
|
2881
2937
|
case -1:
|
|
@@ -2887,9 +2943,9 @@ protoOf(DayBasedDateTimeUnitSerializer).k1s = function (decoder) {
|
|
|
2887
2943
|
}
|
|
2888
2944
|
}
|
|
2889
2945
|
var result = Unit_instance;
|
|
2890
|
-
composite.
|
|
2946
|
+
composite.h1w(descriptor);
|
|
2891
2947
|
if (!seen._v)
|
|
2892
|
-
throw MissingFieldException_init_$Create$('days', this.
|
|
2948
|
+
throw MissingFieldException_init_$Create$('days', this.q1s().v1t());
|
|
2893
2949
|
return new DayBased(days._v);
|
|
2894
2950
|
};
|
|
2895
2951
|
var DayBasedDateTimeUnitSerializer_instance;
|
|
@@ -2906,54 +2962,54 @@ function MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($thi
|
|
|
2906
2962
|
var annotations = emptyList();
|
|
2907
2963
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2908
2964
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2909
|
-
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().
|
|
2910
|
-
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).
|
|
2911
|
-
$this$buildClassSerialDescriptor.
|
|
2965
|
+
var this_0 = serializer(createKType(PrimitiveClasses_getInstance().mb(), arrayOf([]), false));
|
|
2966
|
+
var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).q1s();
|
|
2967
|
+
$this$buildClassSerialDescriptor.d1v('months', descriptor, annotations, false);
|
|
2912
2968
|
return Unit_instance;
|
|
2913
2969
|
}
|
|
2914
2970
|
function MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn() {
|
|
2915
|
-
return function (p0) {
|
|
2916
|
-
return p0.
|
|
2917
|
-
};
|
|
2971
|
+
return constructCallableReference(function (p0) {
|
|
2972
|
+
return p0.q1s();
|
|
2973
|
+
}, 1, 0, 51);
|
|
2918
2974
|
}
|
|
2919
2975
|
function MonthBasedDateTimeUnitSerializer() {
|
|
2920
2976
|
MonthBasedDateTimeUnitSerializer_instance = this;
|
|
2921
2977
|
var tmp = this;
|
|
2922
2978
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2923
|
-
tmp.
|
|
2979
|
+
tmp.k5c_1 = lazy_0(tmp_0, MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
|
|
2924
2980
|
}
|
|
2925
|
-
protoOf(MonthBasedDateTimeUnitSerializer).
|
|
2926
|
-
var tmp0 = this.
|
|
2981
|
+
protoOf(MonthBasedDateTimeUnitSerializer).q1s = function () {
|
|
2982
|
+
var tmp0 = this.k5c_1;
|
|
2927
2983
|
var tmp = KProperty1;
|
|
2928
2984
|
// Inline function 'kotlin.getValue' call
|
|
2929
2985
|
getPropertyCallableRef('descriptor', 1, tmp, MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn(), null);
|
|
2930
2986
|
return tmp0.m1();
|
|
2931
2987
|
};
|
|
2932
|
-
protoOf(MonthBasedDateTimeUnitSerializer).
|
|
2988
|
+
protoOf(MonthBasedDateTimeUnitSerializer).l5c = function (encoder, value) {
|
|
2933
2989
|
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
2934
|
-
var descriptor = this.
|
|
2935
|
-
var composite = encoder.
|
|
2936
|
-
composite.
|
|
2937
|
-
composite.
|
|
2990
|
+
var descriptor = this.q1s();
|
|
2991
|
+
var composite = encoder.g1w(descriptor);
|
|
2992
|
+
composite.p1x(MonthBasedDateTimeUnitSerializer_getInstance().q1s(), 0, value.l55_1);
|
|
2993
|
+
composite.h1w(descriptor);
|
|
2938
2994
|
};
|
|
2939
|
-
protoOf(MonthBasedDateTimeUnitSerializer).
|
|
2940
|
-
return this.
|
|
2995
|
+
protoOf(MonthBasedDateTimeUnitSerializer).d1t = function (encoder, value) {
|
|
2996
|
+
return this.l5c(encoder, value instanceof MonthBased ? value : THROW_CCE());
|
|
2941
2997
|
};
|
|
2942
|
-
protoOf(MonthBasedDateTimeUnitSerializer).
|
|
2998
|
+
protoOf(MonthBasedDateTimeUnitSerializer).e1t = function (decoder) {
|
|
2943
2999
|
var seen = {_v: false};
|
|
2944
3000
|
var months = {_v: 0};
|
|
2945
3001
|
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
2946
|
-
var descriptor = this.
|
|
2947
|
-
var composite = decoder.
|
|
2948
|
-
if (composite.
|
|
2949
|
-
months._v = composite.
|
|
3002
|
+
var descriptor = this.q1s();
|
|
3003
|
+
var composite = decoder.g1w(descriptor);
|
|
3004
|
+
if (composite.v1w()) {
|
|
3005
|
+
months._v = composite.l1w(MonthBasedDateTimeUnitSerializer_getInstance().q1s(), 0);
|
|
2950
3006
|
seen._v = true;
|
|
2951
3007
|
} else {
|
|
2952
3008
|
loop: while (true) {
|
|
2953
|
-
var elementIndex = composite.
|
|
3009
|
+
var elementIndex = composite.w1w(MonthBasedDateTimeUnitSerializer_getInstance().q1s());
|
|
2954
3010
|
switch (elementIndex) {
|
|
2955
3011
|
case 0:
|
|
2956
|
-
months._v = composite.
|
|
3012
|
+
months._v = composite.l1w(MonthBasedDateTimeUnitSerializer_getInstance().q1s(), 0);
|
|
2957
3013
|
seen._v = true;
|
|
2958
3014
|
break;
|
|
2959
3015
|
case -1:
|
|
@@ -2965,9 +3021,9 @@ protoOf(MonthBasedDateTimeUnitSerializer).k1s = function (decoder) {
|
|
|
2965
3021
|
}
|
|
2966
3022
|
}
|
|
2967
3023
|
var result = Unit_instance;
|
|
2968
|
-
composite.
|
|
3024
|
+
composite.h1w(descriptor);
|
|
2969
3025
|
if (!seen._v)
|
|
2970
|
-
throw MissingFieldException_init_$Create$('months', this.
|
|
3026
|
+
throw MissingFieldException_init_$Create$('months', this.q1s().v1t());
|
|
2971
3027
|
return new MonthBased(months._v);
|
|
2972
3028
|
};
|
|
2973
3029
|
var MonthBasedDateTimeUnitSerializer_instance;
|
|
@@ -2977,7 +3033,7 @@ function MonthBasedDateTimeUnitSerializer_getInstance() {
|
|
|
2977
3033
|
return MonthBasedDateTimeUnitSerializer_instance;
|
|
2978
3034
|
}
|
|
2979
3035
|
function _get_impl__d88w17_0($this) {
|
|
2980
|
-
var tmp0 = $this.
|
|
3036
|
+
var tmp0 = $this.m5c_1;
|
|
2981
3037
|
var tmp = KProperty1;
|
|
2982
3038
|
// Inline function 'kotlin.getValue' call
|
|
2983
3039
|
getPropertyCallableRef('impl', 1, tmp, DateTimeUnitSerializer$_get_impl_$ref_2y1hvx(), null);
|
|
@@ -2996,31 +3052,31 @@ function DateTimeUnitSerializer$impl$delegate$lambda() {
|
|
|
2996
3052
|
return new SealedClassSerializer('kotlinx.datetime.DateTimeUnit', tmp, tmp_0, tmp$ret$3);
|
|
2997
3053
|
}
|
|
2998
3054
|
function DateTimeUnitSerializer$_get_impl_$ref_2y1hvx() {
|
|
2999
|
-
return function (p0) {
|
|
3055
|
+
return constructCallableReference(function (p0) {
|
|
3000
3056
|
return _get_impl__d88w17_0(p0);
|
|
3001
|
-
};
|
|
3057
|
+
}, 1, 0, 52);
|
|
3002
3058
|
}
|
|
3003
3059
|
function DateTimeUnitSerializer() {
|
|
3004
3060
|
DateTimeUnitSerializer_instance = this;
|
|
3005
3061
|
AbstractPolymorphicSerializer.call(this);
|
|
3006
3062
|
var tmp = this;
|
|
3007
3063
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
3008
|
-
tmp.
|
|
3064
|
+
tmp.m5c_1 = lazy_0(tmp_0, DateTimeUnitSerializer$impl$delegate$lambda);
|
|
3009
3065
|
}
|
|
3010
|
-
protoOf(DateTimeUnitSerializer).
|
|
3011
|
-
return _get_impl__d88w17_0(this).
|
|
3066
|
+
protoOf(DateTimeUnitSerializer).g1t = function (decoder, klassName) {
|
|
3067
|
+
return _get_impl__d88w17_0(this).g1t(decoder, klassName);
|
|
3012
3068
|
};
|
|
3013
|
-
protoOf(DateTimeUnitSerializer).
|
|
3014
|
-
return _get_impl__d88w17_0(this).
|
|
3069
|
+
protoOf(DateTimeUnitSerializer).n5c = function (encoder, value) {
|
|
3070
|
+
return _get_impl__d88w17_0(this).i1t(encoder, value);
|
|
3015
3071
|
};
|
|
3016
|
-
protoOf(DateTimeUnitSerializer).
|
|
3017
|
-
return this.
|
|
3072
|
+
protoOf(DateTimeUnitSerializer).i1t = function (encoder, value) {
|
|
3073
|
+
return this.n5c(encoder, value instanceof DateTimeUnit ? value : THROW_CCE());
|
|
3018
3074
|
};
|
|
3019
|
-
protoOf(DateTimeUnitSerializer).
|
|
3075
|
+
protoOf(DateTimeUnitSerializer).h1t = function () {
|
|
3020
3076
|
return getKClass(DateTimeUnit);
|
|
3021
3077
|
};
|
|
3022
|
-
protoOf(DateTimeUnitSerializer).
|
|
3023
|
-
return _get_impl__d88w17_0(this).
|
|
3078
|
+
protoOf(DateTimeUnitSerializer).q1s = function () {
|
|
3079
|
+
return _get_impl__d88w17_0(this).q1s();
|
|
3024
3080
|
};
|
|
3025
3081
|
var DateTimeUnitSerializer_instance;
|
|
3026
3082
|
function DateTimeUnitSerializer_getInstance() {
|
|
@@ -3033,19 +3089,19 @@ function throwUnknownIndexException(index) {
|
|
|
3033
3089
|
}
|
|
3034
3090
|
function LocalDateSerializer() {
|
|
3035
3091
|
LocalDateSerializer_instance = this;
|
|
3036
|
-
this.
|
|
3092
|
+
this.o5c_1 = PrimitiveSerialDescriptor('kotlinx.datetime.LocalDate', STRING_getInstance());
|
|
3037
3093
|
}
|
|
3038
|
-
protoOf(LocalDateSerializer).
|
|
3039
|
-
return this.
|
|
3094
|
+
protoOf(LocalDateSerializer).q1s = function () {
|
|
3095
|
+
return this.o5c_1;
|
|
3040
3096
|
};
|
|
3041
|
-
protoOf(LocalDateSerializer).
|
|
3042
|
-
return
|
|
3097
|
+
protoOf(LocalDateSerializer).e1t = function (decoder) {
|
|
3098
|
+
return Companion_getInstance_10().t5c(decoder.c1w());
|
|
3043
3099
|
};
|
|
3044
|
-
protoOf(LocalDateSerializer).
|
|
3045
|
-
encoder.
|
|
3100
|
+
protoOf(LocalDateSerializer).u5c = function (encoder, value) {
|
|
3101
|
+
encoder.j1x(value.toString());
|
|
3046
3102
|
};
|
|
3047
|
-
protoOf(LocalDateSerializer).
|
|
3048
|
-
return this.
|
|
3103
|
+
protoOf(LocalDateSerializer).d1t = function (encoder, value) {
|
|
3104
|
+
return this.u5c(encoder, value instanceof LocalDate ? value : THROW_CCE());
|
|
3049
3105
|
};
|
|
3050
3106
|
var LocalDateSerializer_instance;
|
|
3051
3107
|
function LocalDateSerializer_getInstance() {
|
|
@@ -3055,19 +3111,19 @@ function LocalDateSerializer_getInstance() {
|
|
|
3055
3111
|
}
|
|
3056
3112
|
function YearMonthSerializer() {
|
|
3057
3113
|
YearMonthSerializer_instance = this;
|
|
3058
|
-
this.
|
|
3114
|
+
this.v5c_1 = PrimitiveSerialDescriptor('kotlinx.datetime.YearMonth', STRING_getInstance());
|
|
3059
3115
|
}
|
|
3060
|
-
protoOf(YearMonthSerializer).
|
|
3061
|
-
return this.
|
|
3116
|
+
protoOf(YearMonthSerializer).q1s = function () {
|
|
3117
|
+
return this.v5c_1;
|
|
3062
3118
|
};
|
|
3063
|
-
protoOf(YearMonthSerializer).
|
|
3064
|
-
return
|
|
3119
|
+
protoOf(YearMonthSerializer).e1t = function (decoder) {
|
|
3120
|
+
return Companion_instance_11.w5c(decoder.c1w());
|
|
3065
3121
|
};
|
|
3066
|
-
protoOf(YearMonthSerializer).
|
|
3067
|
-
encoder.
|
|
3122
|
+
protoOf(YearMonthSerializer).x5c = function (encoder, value) {
|
|
3123
|
+
encoder.j1x(value.toString());
|
|
3068
3124
|
};
|
|
3069
|
-
protoOf(YearMonthSerializer).
|
|
3070
|
-
return this.
|
|
3125
|
+
protoOf(YearMonthSerializer).d1t = function (encoder, value) {
|
|
3126
|
+
return this.x5c(encoder, value instanceof YearMonth ? value : THROW_CCE());
|
|
3071
3127
|
};
|
|
3072
3128
|
var YearMonthSerializer_instance;
|
|
3073
3129
|
function YearMonthSerializer_getInstance() {
|
|
@@ -3075,21 +3131,56 @@ function YearMonthSerializer_getInstance() {
|
|
|
3075
3131
|
new YearMonthSerializer();
|
|
3076
3132
|
return YearMonthSerializer_instance;
|
|
3077
3133
|
}
|
|
3078
|
-
function
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3134
|
+
function LocalDate_init_$Init$(year, month, day, $this) {
|
|
3135
|
+
LocalDate.call($this, year, month, day, Unit_instance);
|
|
3136
|
+
var containsArg = $this.m57_1;
|
|
3137
|
+
// Inline function 'kotlin.require' call
|
|
3138
|
+
if (!(1 <= containsArg ? containsArg <= 12 : false)) {
|
|
3139
|
+
var message = 'Invalid date: month must be a number between 1 and 12, got ' + $this.m57_1;
|
|
3140
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3141
|
+
}
|
|
3142
|
+
validateYearAndDay($this);
|
|
3143
|
+
return $this;
|
|
3084
3144
|
}
|
|
3085
|
-
|
|
3086
|
-
return
|
|
3145
|
+
function LocalDate_init_$Create$(year, month, day) {
|
|
3146
|
+
return LocalDate_init_$Init$(year, month, day, objectCreate(protoOf(LocalDate)));
|
|
3147
|
+
}
|
|
3148
|
+
function validateYearAndDay($this) {
|
|
3149
|
+
var containsArg = $this.k57_1;
|
|
3150
|
+
// Inline function 'kotlin.require' call
|
|
3151
|
+
if (!(-999999999 <= containsArg ? containsArg <= 999999999 : false)) {
|
|
3152
|
+
var message = 'Invalid date: the year is out of range';
|
|
3153
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3154
|
+
}
|
|
3155
|
+
var containsArg_0 = $this.l57_1;
|
|
3156
|
+
// Inline function 'kotlin.require' call
|
|
3157
|
+
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.l57_1;
|
|
3159
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3160
|
+
}
|
|
3161
|
+
if ($this.l57_1 > 28 && $this.l57_1 > monthLength($this.m57_1, isLeapYear($this.k57_1))) {
|
|
3162
|
+
if ($this.l57_1 === 29) {
|
|
3163
|
+
throw IllegalArgumentException_init_$Create$("Invalid date 'February 29' as '" + $this.k57_1 + "' is not a leap year");
|
|
3164
|
+
} else {
|
|
3165
|
+
throw IllegalArgumentException_init_$Create$("Invalid date '" + $this.n57().toString() + ' ' + $this.l57_1 + "'");
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
function Companion_10() {
|
|
3170
|
+
Companion_instance_10 = this;
|
|
3171
|
+
this.p5c_1 = LocalDate_init_$Create$(-999999999, 1, 1);
|
|
3172
|
+
this.q5c_1 = LocalDate_init_$Create$(999999999, 12, 31);
|
|
3173
|
+
this.r5c_1 = -365243219162n;
|
|
3174
|
+
this.s5c_1 = 365241780471n;
|
|
3175
|
+
}
|
|
3176
|
+
protoOf(Companion_10).y5c = function (input, format) {
|
|
3177
|
+
return format.kl(input);
|
|
3087
3178
|
};
|
|
3088
|
-
protoOf(
|
|
3179
|
+
protoOf(Companion_10).t5c = function (input, format, $super) {
|
|
3089
3180
|
format = format === VOID ? getIsoDateFormat() : format;
|
|
3090
|
-
return $super === VOID ? this.
|
|
3181
|
+
return $super === VOID ? this.y5c(input, format) : $super.y5c.call(this, input, format);
|
|
3091
3182
|
};
|
|
3092
|
-
protoOf(
|
|
3183
|
+
protoOf(Companion_10).z5c = function (epochDays) {
|
|
3093
3184
|
// Inline function 'kotlin.require' call
|
|
3094
3185
|
if (!(-365243219162n <= epochDays ? epochDays <= 365241780471n : false)) {
|
|
3095
3186
|
var message = 'Invalid date: epoch day ' + epochDays.toString() + ' is outside the boundaries of LocalDate';
|
|
@@ -3163,19 +3254,19 @@ protoOf(Companion_7).e5c = function (epochDays) {
|
|
|
3163
3254
|
// Inline function 'kotlin.Long.plus' call
|
|
3164
3255
|
var other = marchMonth0 / 10 | 0;
|
|
3165
3256
|
yearEst = add(tmp0, fromInt(other));
|
|
3166
|
-
return new LocalDate(convertToInt(yearEst), month, dom);
|
|
3257
|
+
return new LocalDate(convertToInt(yearEst), month, dom, Unit_instance);
|
|
3167
3258
|
};
|
|
3168
|
-
var
|
|
3169
|
-
function
|
|
3170
|
-
if (
|
|
3171
|
-
new
|
|
3172
|
-
return
|
|
3259
|
+
var Companion_instance_10;
|
|
3260
|
+
function Companion_getInstance_10() {
|
|
3261
|
+
if (Companion_instance_10 == null)
|
|
3262
|
+
new Companion_10();
|
|
3263
|
+
return Companion_instance_10;
|
|
3173
3264
|
}
|
|
3174
3265
|
function Formats() {
|
|
3175
3266
|
Formats_instance = this;
|
|
3176
|
-
this.
|
|
3267
|
+
this.a56_1 = get_ISO_DATE_BASIC();
|
|
3177
3268
|
}
|
|
3178
|
-
protoOf(Formats).
|
|
3269
|
+
protoOf(Formats).b56 = function () {
|
|
3179
3270
|
return get_ISO_DATE();
|
|
3180
3271
|
};
|
|
3181
3272
|
var Formats_instance;
|
|
@@ -3188,41 +3279,17 @@ function resolvePreviousValid($this, year, month, day) {
|
|
|
3188
3279
|
// Inline function 'kotlin.math.min' call
|
|
3189
3280
|
var b = monthLength(month, isLeapYear(year));
|
|
3190
3281
|
var newDay = Math.min(day, b);
|
|
3191
|
-
return new LocalDate(year, month, newDay);
|
|
3282
|
+
return new LocalDate(year, month, newDay, Unit_instance);
|
|
3192
3283
|
}
|
|
3193
|
-
function LocalDate(year, month, day) {
|
|
3194
|
-
|
|
3195
|
-
this.
|
|
3196
|
-
this.
|
|
3197
|
-
this.
|
|
3198
|
-
// Inline function 'kotlin.require' call
|
|
3199
|
-
if (!isValidYear(this.q56_1)) {
|
|
3200
|
-
var message = 'Invalid date: the year is out of range';
|
|
3201
|
-
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3202
|
-
}
|
|
3203
|
-
var containsArg = this.s56_1;
|
|
3204
|
-
// Inline function 'kotlin.require' call
|
|
3205
|
-
if (!(1 <= containsArg ? containsArg <= 12 : false)) {
|
|
3206
|
-
var message_0 = 'Invalid date: month must be a number between 1 and 12, got ' + this.s56_1;
|
|
3207
|
-
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3208
|
-
}
|
|
3209
|
-
var containsArg_0 = this.r56_1;
|
|
3210
|
-
// Inline function 'kotlin.require' call
|
|
3211
|
-
if (!(1 <= containsArg_0 ? containsArg_0 <= 31 : false)) {
|
|
3212
|
-
var message_1 = 'Invalid date: day of month must be a number between 1 and 31, got ' + this.r56_1;
|
|
3213
|
-
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
3214
|
-
}
|
|
3215
|
-
if (this.r56_1 > 28 && this.r56_1 > monthLength(this.s56_1, isLeapYear(this.q56_1))) {
|
|
3216
|
-
if (this.r56_1 === 29) {
|
|
3217
|
-
throw IllegalArgumentException_init_$Create$("Invalid date 'February 29' as '" + this.q56_1 + "' is not a leap year");
|
|
3218
|
-
} else {
|
|
3219
|
-
throw IllegalArgumentException_init_$Create$("Invalid date '" + Month_0(month).toString() + ' ' + this.r56_1 + "'");
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3284
|
+
function LocalDate(year, month, day, unit) {
|
|
3285
|
+
Companion_getInstance_10();
|
|
3286
|
+
this.k57_1 = year;
|
|
3287
|
+
this.l57_1 = day;
|
|
3288
|
+
this.m57_1 = month;
|
|
3222
3289
|
}
|
|
3223
|
-
protoOf(LocalDate).
|
|
3224
|
-
var y = fromInt(this.
|
|
3225
|
-
var m = fromInt(this.
|
|
3290
|
+
protoOf(LocalDate).a5d = function () {
|
|
3291
|
+
var y = fromInt(this.k57_1);
|
|
3292
|
+
var m = fromInt(this.m57_1);
|
|
3226
3293
|
var total = 0n;
|
|
3227
3294
|
total = add(total, multiply(numberToLong(365), y));
|
|
3228
3295
|
if (y >= 0n) {
|
|
@@ -3261,12 +3328,12 @@ protoOf(LocalDate).f5c = function () {
|
|
|
3261
3328
|
total = add(tmp_5, tmp$ret$10);
|
|
3262
3329
|
var tmp0 = total;
|
|
3263
3330
|
// Inline function 'kotlin.Long.plus' call
|
|
3264
|
-
var other = this.
|
|
3331
|
+
var other = this.l57_1 - 1 | 0;
|
|
3265
3332
|
total = add(tmp0, fromInt(other));
|
|
3266
3333
|
if (m > 2n) {
|
|
3267
3334
|
var _unary__edvuaz = total;
|
|
3268
3335
|
total = subtract(_unary__edvuaz, get_ONE());
|
|
3269
|
-
if (!isLeapYear(this.
|
|
3336
|
+
if (!isLeapYear(this.k57_1)) {
|
|
3270
3337
|
var _unary__edvuaz_0 = total;
|
|
3271
3338
|
total = subtract(_unary__edvuaz_0, get_ONE());
|
|
3272
3339
|
}
|
|
@@ -3275,12 +3342,12 @@ protoOf(LocalDate).f5c = function () {
|
|
|
3275
3342
|
var this_5 = total;
|
|
3276
3343
|
return subtract(this_5, fromInt(719528));
|
|
3277
3344
|
};
|
|
3278
|
-
protoOf(LocalDate).
|
|
3279
|
-
return Month_0(this.
|
|
3345
|
+
protoOf(LocalDate).n57 = function () {
|
|
3346
|
+
return Month_0(this.m57_1);
|
|
3280
3347
|
};
|
|
3281
|
-
protoOf(LocalDate).
|
|
3348
|
+
protoOf(LocalDate).f57 = function () {
|
|
3282
3349
|
// Inline function 'kotlin.Long.plus' call
|
|
3283
|
-
var this_0 = this.
|
|
3350
|
+
var this_0 = this.a5d();
|
|
3284
3351
|
// Inline function 'kotlin.mod' call
|
|
3285
3352
|
var tmp0 = add(this_0, fromInt(3));
|
|
3286
3353
|
// Inline function 'kotlin.mod' call
|
|
@@ -3290,30 +3357,30 @@ protoOf(LocalDate).l56 = function () {
|
|
|
3290
3357
|
var dow0 = convertToInt(tmp$ret$2);
|
|
3291
3358
|
return DayOfWeek_0(dow0 + 1 | 0);
|
|
3292
3359
|
};
|
|
3293
|
-
protoOf(LocalDate).
|
|
3294
|
-
return (firstDayOfYear(this.
|
|
3360
|
+
protoOf(LocalDate).h57 = function () {
|
|
3361
|
+
return (firstDayOfYear(this.n57(), isLeapYear(this.k57_1)) + this.l57_1 | 0) - 1 | 0;
|
|
3295
3362
|
};
|
|
3296
|
-
protoOf(LocalDate).
|
|
3297
|
-
var y = compareTo(this.
|
|
3363
|
+
protoOf(LocalDate).b5d = function (other) {
|
|
3364
|
+
var y = compareTo(this.k57_1, other.k57_1);
|
|
3298
3365
|
if (!(y === 0)) {
|
|
3299
3366
|
return y;
|
|
3300
3367
|
}
|
|
3301
|
-
var m = compareTo(this.
|
|
3368
|
+
var m = compareTo(this.m57_1, other.m57_1);
|
|
3302
3369
|
if (!(m === 0)) {
|
|
3303
3370
|
return m;
|
|
3304
3371
|
}
|
|
3305
|
-
return compareTo(this.
|
|
3372
|
+
return compareTo(this.l57_1, other.l57_1);
|
|
3306
3373
|
};
|
|
3307
3374
|
protoOf(LocalDate).d = function (other) {
|
|
3308
|
-
return this.
|
|
3375
|
+
return this.b5d(other instanceof LocalDate ? other : THROW_CCE());
|
|
3309
3376
|
};
|
|
3310
|
-
protoOf(LocalDate).
|
|
3377
|
+
protoOf(LocalDate).c5d = function (monthsToAdd) {
|
|
3311
3378
|
if (monthsToAdd === 0n) {
|
|
3312
3379
|
return this;
|
|
3313
3380
|
}
|
|
3314
|
-
var tmp0 = multiply(numberToLong(this.
|
|
3381
|
+
var tmp0 = multiply(numberToLong(this.k57_1), 12n);
|
|
3315
3382
|
// Inline function 'kotlin.Long.plus' call
|
|
3316
|
-
var other = this.
|
|
3383
|
+
var other = this.m57_1 - 1 | 0;
|
|
3317
3384
|
var monthCount = add(tmp0, fromInt(other));
|
|
3318
3385
|
var calcMonths = safeAdd(monthCount, monthsToAdd);
|
|
3319
3386
|
// Inline function 'kotlin.floorDiv' call
|
|
@@ -3336,10 +3403,10 @@ protoOf(LocalDate).h5c = function (monthsToAdd) {
|
|
|
3336
3403
|
var r = modulo(calcMonths, other_1);
|
|
3337
3404
|
var tmp$ret$5 = add(r, other_1 & shiftRight((r ^ other_1) & (r | negate(r)), 63));
|
|
3338
3405
|
var newMonth = convertToInt(tmp$ret$5) + 1 | 0;
|
|
3339
|
-
return resolvePreviousValid(this, convertToInt(newYear), newMonth, this.
|
|
3406
|
+
return resolvePreviousValid(this, convertToInt(newYear), newMonth, this.l57_1);
|
|
3340
3407
|
};
|
|
3341
|
-
protoOf(LocalDate).
|
|
3342
|
-
return daysToAdd === 0n ? this :
|
|
3408
|
+
protoOf(LocalDate).d5d = function (daysToAdd) {
|
|
3409
|
+
return daysToAdd === 0n ? this : Companion_getInstance_10().z5c(safeAdd(this.a5d(), daysToAdd));
|
|
3343
3410
|
};
|
|
3344
3411
|
protoOf(LocalDate).equals = function (other) {
|
|
3345
3412
|
var tmp;
|
|
@@ -3348,7 +3415,7 @@ protoOf(LocalDate).equals = function (other) {
|
|
|
3348
3415
|
} else {
|
|
3349
3416
|
var tmp_0;
|
|
3350
3417
|
if (other instanceof LocalDate) {
|
|
3351
|
-
tmp_0 = this.
|
|
3418
|
+
tmp_0 = this.b5d(other) === 0;
|
|
3352
3419
|
} else {
|
|
3353
3420
|
tmp_0 = false;
|
|
3354
3421
|
}
|
|
@@ -3357,26 +3424,23 @@ protoOf(LocalDate).equals = function (other) {
|
|
|
3357
3424
|
return tmp;
|
|
3358
3425
|
};
|
|
3359
3426
|
protoOf(LocalDate).hashCode = function () {
|
|
3360
|
-
var yearValue = this.
|
|
3361
|
-
var monthValue = this.
|
|
3362
|
-
var dayValue = this.
|
|
3427
|
+
var yearValue = this.k57_1;
|
|
3428
|
+
var monthValue = this.m57_1;
|
|
3429
|
+
var dayValue = this.l57_1;
|
|
3363
3430
|
return yearValue & -2048 ^ (((yearValue << 11) + (monthValue << 6) | 0) + dayValue | 0);
|
|
3364
3431
|
};
|
|
3365
3432
|
protoOf(LocalDate).toString = function () {
|
|
3366
|
-
return format(this, Formats_getInstance().
|
|
3433
|
+
return format(this, Formats_getInstance().b56());
|
|
3367
3434
|
};
|
|
3368
|
-
function isValidYear(year) {
|
|
3369
|
-
return year >= -999999999 && year <= 999999999;
|
|
3370
|
-
}
|
|
3371
3435
|
function plus_1(_this__u8e3s4, value, unit) {
|
|
3372
3436
|
var tmp;
|
|
3373
3437
|
try {
|
|
3374
3438
|
var tmp_0;
|
|
3375
3439
|
if (unit instanceof DayBased) {
|
|
3376
|
-
tmp_0 = _this__u8e3s4.
|
|
3440
|
+
tmp_0 = _this__u8e3s4.d5d(safeMultiply(value, fromInt(unit.k55_1)));
|
|
3377
3441
|
} else {
|
|
3378
3442
|
if (unit instanceof MonthBased) {
|
|
3379
|
-
tmp_0 = _this__u8e3s4.
|
|
3443
|
+
tmp_0 = _this__u8e3s4.c5d(safeMultiply(value, fromInt(unit.l55_1)));
|
|
3380
3444
|
} else {
|
|
3381
3445
|
noWhenBranchMatchedException();
|
|
3382
3446
|
}
|
|
@@ -3444,22 +3508,44 @@ function firstDayOfYear(_this__u8e3s4, leapYear) {
|
|
|
3444
3508
|
}
|
|
3445
3509
|
return tmp;
|
|
3446
3510
|
}
|
|
3447
|
-
function
|
|
3511
|
+
function validateYear($this) {
|
|
3512
|
+
var containsArg = $this.q58_1;
|
|
3513
|
+
// Inline function 'kotlin.require' call
|
|
3514
|
+
if (!(-999999999 <= containsArg ? containsArg <= 999999999 : false)) {
|
|
3515
|
+
var message = 'Year ' + $this.q58_1 + ' is out of range: -999999999..999999999';
|
|
3516
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3517
|
+
}
|
|
3448
3518
|
}
|
|
3449
|
-
|
|
3450
|
-
|
|
3519
|
+
function YearMonth_init_$Init$(year, month, $this) {
|
|
3520
|
+
YearMonth.call($this, year, month, Unit_instance);
|
|
3521
|
+
var containsArg = $this.r58_1;
|
|
3522
|
+
// Inline function 'kotlin.require' call
|
|
3523
|
+
if (!(1 <= containsArg ? containsArg <= 12 : false)) {
|
|
3524
|
+
var message = 'Month must be in 1..12, but was ' + month;
|
|
3525
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3526
|
+
}
|
|
3527
|
+
validateYear($this);
|
|
3528
|
+
return $this;
|
|
3529
|
+
}
|
|
3530
|
+
function YearMonth_init_$Create$(year, month) {
|
|
3531
|
+
return YearMonth_init_$Init$(year, month, objectCreate(protoOf(YearMonth)));
|
|
3532
|
+
}
|
|
3533
|
+
function Companion_11() {
|
|
3534
|
+
}
|
|
3535
|
+
protoOf(Companion_11).e5d = function (input, format) {
|
|
3536
|
+
return format.kl(input);
|
|
3451
3537
|
};
|
|
3452
|
-
protoOf(
|
|
3453
|
-
format = format === VOID ? Formats_instance_0.
|
|
3454
|
-
return $super === VOID ? this.
|
|
3538
|
+
protoOf(Companion_11).w5c = function (input, format, $super) {
|
|
3539
|
+
format = format === VOID ? Formats_instance_0.b56() : format;
|
|
3540
|
+
return $super === VOID ? this.e5d(input, format) : $super.e5d.call(this, input, format);
|
|
3455
3541
|
};
|
|
3456
|
-
var
|
|
3457
|
-
function
|
|
3458
|
-
return
|
|
3542
|
+
var Companion_instance_11;
|
|
3543
|
+
function Companion_getInstance_11() {
|
|
3544
|
+
return Companion_instance_11;
|
|
3459
3545
|
}
|
|
3460
3546
|
function Formats_0() {
|
|
3461
3547
|
}
|
|
3462
|
-
protoOf(Formats_0).
|
|
3548
|
+
protoOf(Formats_0).b56 = function () {
|
|
3463
3549
|
return get_ISO_YEAR_MONTH();
|
|
3464
3550
|
};
|
|
3465
3551
|
var Formats_instance_0;
|
|
@@ -3467,64 +3553,51 @@ function Formats_getInstance_0() {
|
|
|
3467
3553
|
return Formats_instance_0;
|
|
3468
3554
|
}
|
|
3469
3555
|
function YearMonth$_get_year_$ref_chp4n6() {
|
|
3470
|
-
return function (p0) {
|
|
3471
|
-
return p0.
|
|
3472
|
-
};
|
|
3556
|
+
return constructCallableReference(function (p0) {
|
|
3557
|
+
return p0.q58_1;
|
|
3558
|
+
}, 1, 0, 53);
|
|
3473
3559
|
}
|
|
3474
3560
|
function YearMonth$_get_month_$ref_9rphhd() {
|
|
3475
|
-
return function (p0) {
|
|
3476
|
-
return p0.
|
|
3477
|
-
};
|
|
3561
|
+
return constructCallableReference(function (p0) {
|
|
3562
|
+
return p0.n57();
|
|
3563
|
+
}, 1, 0, 54);
|
|
3478
3564
|
}
|
|
3479
|
-
function YearMonth(year, month) {
|
|
3480
|
-
this.
|
|
3481
|
-
this.
|
|
3482
|
-
// Inline function 'kotlin.require' call
|
|
3483
|
-
if (!(1 <= month ? month <= 12 : false)) {
|
|
3484
|
-
var message = 'Month must be in 1..12, but was ' + month;
|
|
3485
|
-
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3486
|
-
}
|
|
3487
|
-
var containsLower = Companion_getInstance_7().u5b_1.q56_1;
|
|
3488
|
-
var containsUpper = Companion_getInstance_7().v5b_1.q56_1;
|
|
3489
|
-
var containsArg = this.w57_1;
|
|
3490
|
-
// Inline function 'kotlin.require' call
|
|
3491
|
-
if (!(containsLower <= containsArg ? containsArg <= containsUpper : false)) {
|
|
3492
|
-
var message_0 = 'Year ' + this.w57_1 + ' is out of range: ' + Companion_getInstance_7().u5b_1.q56_1 + '..' + Companion_getInstance_7().v5b_1.q56_1;
|
|
3493
|
-
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3494
|
-
}
|
|
3565
|
+
function YearMonth(year, month, unit) {
|
|
3566
|
+
this.q58_1 = year;
|
|
3567
|
+
this.r58_1 = month;
|
|
3495
3568
|
}
|
|
3496
|
-
protoOf(YearMonth).
|
|
3497
|
-
return Month_0(this.
|
|
3569
|
+
protoOf(YearMonth).n57 = function () {
|
|
3570
|
+
return Month_0(this.r58_1);
|
|
3498
3571
|
};
|
|
3499
|
-
protoOf(YearMonth).
|
|
3572
|
+
protoOf(YearMonth).f5d = function (other) {
|
|
3500
3573
|
var tmp = KProperty1;
|
|
3501
3574
|
var tmp_0 = getPropertyCallableRef('year', 1, tmp, YearMonth$_get_year_$ref_chp4n6(), null);
|
|
3502
3575
|
var tmp_1 = KProperty1;
|
|
3503
3576
|
return compareValuesBy(this, other, [tmp_0, getPropertyCallableRef('month', 1, tmp_1, YearMonth$_get_month_$ref_9rphhd(), null)]);
|
|
3504
3577
|
};
|
|
3505
3578
|
protoOf(YearMonth).d = function (other) {
|
|
3506
|
-
return this.
|
|
3579
|
+
return this.f5d(other instanceof YearMonth ? other : THROW_CCE());
|
|
3507
3580
|
};
|
|
3508
3581
|
protoOf(YearMonth).toString = function () {
|
|
3509
|
-
return Formats_instance_0.
|
|
3582
|
+
return Formats_instance_0.b56().c56(this);
|
|
3510
3583
|
};
|
|
3511
3584
|
protoOf(YearMonth).equals = function (other) {
|
|
3512
3585
|
var tmp;
|
|
3513
3586
|
var tmp_0;
|
|
3514
3587
|
if (other instanceof YearMonth) {
|
|
3515
|
-
tmp_0 = this.
|
|
3588
|
+
tmp_0 = this.q58_1 === other.q58_1;
|
|
3516
3589
|
} else {
|
|
3517
3590
|
tmp_0 = false;
|
|
3518
3591
|
}
|
|
3519
3592
|
if (tmp_0) {
|
|
3520
|
-
tmp = this.
|
|
3593
|
+
tmp = this.n57().equals(other.n57());
|
|
3521
3594
|
} else {
|
|
3522
3595
|
tmp = false;
|
|
3523
3596
|
}
|
|
3524
3597
|
return tmp;
|
|
3525
3598
|
};
|
|
3526
3599
|
protoOf(YearMonth).hashCode = function () {
|
|
3527
|
-
return imul(this.
|
|
3600
|
+
return imul(this.q58_1, 31) + this.n57().hashCode() | 0;
|
|
3528
3601
|
};
|
|
3529
3602
|
function safeAdd(a, b) {
|
|
3530
3603
|
var sum = add(a, b);
|
|
@@ -3557,27 +3630,27 @@ function safeMultiply_0(a, b) {
|
|
|
3557
3630
|
return convertToInt(total);
|
|
3558
3631
|
}
|
|
3559
3632
|
//region block: post-declaration
|
|
3560
|
-
protoOf(Builder).
|
|
3561
|
-
protoOf(Builder).
|
|
3562
|
-
protoOf(Builder).
|
|
3563
|
-
protoOf(Builder).
|
|
3564
|
-
protoOf(Builder).
|
|
3565
|
-
protoOf(Builder).
|
|
3566
|
-
protoOf(Builder).
|
|
3567
|
-
protoOf(Builder).
|
|
3568
|
-
protoOf(Builder).
|
|
3569
|
-
protoOf(Builder_0).
|
|
3570
|
-
protoOf(Builder_0).
|
|
3571
|
-
protoOf(Builder_0).
|
|
3572
|
-
protoOf(Builder_0).
|
|
3573
|
-
protoOf(Builder_0).
|
|
3574
|
-
protoOf(Builder_0).
|
|
3575
|
-
protoOf(PropertyAccessor).
|
|
3576
|
-
protoOf(SpacePaddedFormatter).
|
|
3577
|
-
protoOf(ConcatenatedFormatter).
|
|
3578
|
-
protoOf(UnsignedIntFormatterStructure).
|
|
3579
|
-
protoOf(SignedIntFormatterStructure).
|
|
3580
|
-
protoOf(ConstantStringFormatterStructure).
|
|
3633
|
+
protoOf(Builder).r56 = chars;
|
|
3634
|
+
protoOf(Builder).f2n = build;
|
|
3635
|
+
protoOf(Builder).y57 = addFormatStructureForYearMonth;
|
|
3636
|
+
protoOf(Builder).s56 = day;
|
|
3637
|
+
protoOf(Builder).t56 = day$default;
|
|
3638
|
+
protoOf(Builder).n56 = year;
|
|
3639
|
+
protoOf(Builder).o56 = year$default;
|
|
3640
|
+
protoOf(Builder).p56 = monthNumber;
|
|
3641
|
+
protoOf(Builder).q56 = monthNumber$default;
|
|
3642
|
+
protoOf(Builder_0).r56 = chars;
|
|
3643
|
+
protoOf(Builder_0).f2n = build;
|
|
3644
|
+
protoOf(Builder_0).n56 = year;
|
|
3645
|
+
protoOf(Builder_0).o56 = year$default;
|
|
3646
|
+
protoOf(Builder_0).p56 = monthNumber;
|
|
3647
|
+
protoOf(Builder_0).q56 = monthNumber$default;
|
|
3648
|
+
protoOf(PropertyAccessor).i5a = getterNotNull;
|
|
3649
|
+
protoOf(SpacePaddedFormatter).l56 = format$default;
|
|
3650
|
+
protoOf(ConcatenatedFormatter).l56 = format$default;
|
|
3651
|
+
protoOf(UnsignedIntFormatterStructure).l56 = format$default;
|
|
3652
|
+
protoOf(SignedIntFormatterStructure).l56 = format$default;
|
|
3653
|
+
protoOf(ConstantStringFormatterStructure).l56 = format$default;
|
|
3581
3654
|
//endregion
|
|
3582
3655
|
//region block: init
|
|
3583
3656
|
Companion_instance = new Companion();
|
|
@@ -3586,15 +3659,18 @@ Companion_instance_1 = new Companion_1();
|
|
|
3586
3659
|
Companion_instance_2 = new Companion_2();
|
|
3587
3660
|
Companion_instance_4 = new Companion_4();
|
|
3588
3661
|
Companion_instance_5 = new Companion_5();
|
|
3589
|
-
ExpectedInt_instance = new ExpectedInt();
|
|
3590
3662
|
Companion_instance_6 = new Companion_6();
|
|
3663
|
+
Companion_instance_7 = new Companion_7();
|
|
3664
|
+
ExpectedInt_instance = new ExpectedInt();
|
|
3591
3665
|
Companion_instance_8 = new Companion_8();
|
|
3666
|
+
Companion_instance_9 = new Companion_9();
|
|
3667
|
+
Companion_instance_11 = new Companion_11();
|
|
3592
3668
|
Formats_instance_0 = new Formats_0();
|
|
3593
3669
|
//endregion
|
|
3594
3670
|
//region block: exports
|
|
3595
3671
|
export {
|
|
3596
|
-
LocalDateSerializer_getInstance as
|
|
3672
|
+
LocalDateSerializer_getInstance as LocalDateSerializer_getInstance3klzrbs3euh5b,
|
|
3597
3673
|
};
|
|
3598
3674
|
//endregion
|
|
3599
3675
|
|
|
3600
|
-
|
|
3676
|
+
//# sourceMappingURL=Kotlin-DateTime-library-kotlinx-datetime.mjs.map
|