game_client_logic_deb 1.5.6 → 1.6.33
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/88b0986a7186d029-atomicfu-js-ir.js +51 -69
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Kodein-kodein-di.js +859 -1137
- package/Kodein-kodein-di.js.map +1 -1
- package/KosiTypeSystem-kaverit.js +111 -145
- package/KosiTypeSystem-kaverit.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +145 -142
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +1 -1
- package/Logic_Debertz-core.js +2548 -2407
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +20850 -22269
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +140 -50
- package/Logic_Debertz-game_client.js +6595 -7298
- package/Logic_Debertz-game_client.js.map +1 -1
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +11110 -12336
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/{kotlin-kotlinx-atomicfu-runtime-js-ir.js → kotlin-kotlinx-atomicfu-runtime.js} +2 -2
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +2574 -2984
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1865 -2255
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3648 -4790
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +3 -2
- package/uuid-js-ir.js +51 -65
- package/uuid-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
- /package/{kotlin-kotlinx-atomicfu-runtime-js-ir.js.map → kotlin-kotlinx-atomicfu-runtime.js.map} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', '@js-joda/core', './kotlin-kotlin-stdlib
|
|
3
|
+
define(['exports', '@js-joda/core', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core-js-ir.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('@js-joda/core'), require('./kotlin-kotlin-stdlib
|
|
5
|
+
factory(module.exports, require('@js-joda/core'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core-js-ir.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof this['@js-joda/core'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'Kotlin-DateTime-library-kotlinx-datetime-js-ir'. Its dependency '@js-joda/core' was not found. Please, check whether '@js-joda/core' is loaded prior to 'Kotlin-DateTime-library-kotlinx-datetime-js-ir'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof this['kotlin-kotlin-stdlib
|
|
11
|
-
throw new Error("Error loading module 'Kotlin-DateTime-library-kotlinx-datetime-js-ir'. Its dependency 'kotlin-kotlin-stdlib
|
|
10
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'Kotlin-DateTime-library-kotlinx-datetime-js-ir'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'Kotlin-DateTime-library-kotlinx-datetime-js-ir'.");
|
|
12
12
|
}
|
|
13
13
|
if (typeof this['kotlinx-serialization-kotlinx-serialization-core-js-ir'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module 'Kotlin-DateTime-library-kotlinx-datetime-js-ir'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core-js-ir' is loaded prior to 'Kotlin-DateTime-library-kotlinx-datetime-js-ir'.");
|
|
15
15
|
}
|
|
16
|
-
root['Kotlin-DateTime-library-kotlinx-datetime-js-ir'] = factory(typeof this['Kotlin-DateTime-library-kotlinx-datetime-js-ir'] === 'undefined' ? {} : this['Kotlin-DateTime-library-kotlinx-datetime-js-ir'], this['@js-joda/core'], this['kotlin-kotlin-stdlib
|
|
16
|
+
root['Kotlin-DateTime-library-kotlinx-datetime-js-ir'] = factory(typeof this['Kotlin-DateTime-library-kotlinx-datetime-js-ir'] === 'undefined' ? {} : this['Kotlin-DateTime-library-kotlinx-datetime-js-ir'], this['@js-joda/core'], this['kotlin-kotlin-stdlib'], this['kotlinx-serialization-kotlinx-serialization-core-js-ir']);
|
|
17
17
|
}
|
|
18
18
|
}(this, function (_, $module$_js_joda_core_gcv2k, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) {
|
|
19
19
|
'use strict';
|
|
@@ -21,72 +21,84 @@
|
|
|
21
21
|
var Instant = $module$_js_joda_core_gcv2k.Instant;
|
|
22
22
|
var Clock = $module$_js_joda_core_gcv2k.Clock;
|
|
23
23
|
var OffsetDateTime = $module$_js_joda_core_gcv2k.OffsetDateTime;
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
28
|
-
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.
|
|
29
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
30
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var ArithmeticException = kotlin_kotlin.$_$.
|
|
47
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
48
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
49
|
-
var _Duration___get_inWholeSeconds__impl__hpy7b3 = kotlin_kotlin.$_$.
|
|
50
|
-
var _Duration___get_nanosecondsComponent__impl__nh19kq = kotlin_kotlin.$_$.
|
|
51
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
24
|
+
var Duration = $module$_js_joda_core_gcv2k.Duration;
|
|
25
|
+
var protoOf = kotlin_kotlin.$_$.ka;
|
|
26
|
+
var objectMeta = kotlin_kotlin.$_$.ja;
|
|
27
|
+
var setMetadataFor = kotlin_kotlin.$_$.la;
|
|
28
|
+
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.j1;
|
|
29
|
+
var objectCreate = kotlin_kotlin.$_$.ia;
|
|
30
|
+
var captureStack = kotlin_kotlin.$_$.c9;
|
|
31
|
+
var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.i1;
|
|
32
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.rc;
|
|
33
|
+
var classMeta = kotlin_kotlin.$_$.h9;
|
|
34
|
+
var VOID = kotlin_kotlin.$_$.f;
|
|
35
|
+
var Long = kotlin_kotlin.$_$.tc;
|
|
36
|
+
var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
|
|
37
|
+
var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1;
|
|
38
|
+
var THROW_CCE = kotlin_kotlin.$_$.zc;
|
|
39
|
+
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k2;
|
|
40
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g2;
|
|
41
|
+
var indexOf = kotlin_kotlin.$_$.kb;
|
|
42
|
+
var charSequenceLength = kotlin_kotlin.$_$.f9;
|
|
43
|
+
var charSequenceGet = kotlin_kotlin.$_$.e9;
|
|
44
|
+
var toLong = kotlin_kotlin.$_$.na;
|
|
45
|
+
var Unit_instance = kotlin_kotlin.$_$.t4;
|
|
46
|
+
var ArithmeticException = kotlin_kotlin.$_$.ic;
|
|
47
|
+
var numberToLong = kotlin_kotlin.$_$.ha;
|
|
48
|
+
var numberToInt = kotlin_kotlin.$_$.ga;
|
|
49
|
+
var _Duration___get_inWholeSeconds__impl__hpy7b3 = kotlin_kotlin.$_$.c2;
|
|
50
|
+
var _Duration___get_nanosecondsComponent__impl__nh19kq = kotlin_kotlin.$_$.d2;
|
|
51
|
+
var numberToDouble = kotlin_kotlin.$_$.fa;
|
|
52
|
+
var Companion_getInstance = kotlin_kotlin.$_$.l4;
|
|
53
|
+
var DurationUnit_SECONDS_getInstance = kotlin_kotlin.$_$.i;
|
|
54
|
+
var toDuration = kotlin_kotlin.$_$.gc;
|
|
55
|
+
var DurationUnit_NANOSECONDS_getInstance = kotlin_kotlin.$_$.h;
|
|
56
|
+
var Duration__plus_impl_yu9v8f = kotlin_kotlin.$_$.e2;
|
|
57
|
+
var equals = kotlin_kotlin.$_$.k9;
|
|
58
|
+
var Comparable = kotlin_kotlin.$_$.kc;
|
|
59
|
+
var ArithmeticException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
55
60
|
//endregion
|
|
56
61
|
//region block: pre-declaration
|
|
57
62
|
setMetadataFor(System, 'System', objectMeta);
|
|
58
|
-
setMetadataFor(DateTimeFormatException, 'DateTimeFormatException', classMeta, IllegalArgumentException);
|
|
63
|
+
setMetadataFor(DateTimeFormatException, 'DateTimeFormatException', classMeta, IllegalArgumentException, VOID, DateTimeFormatException_init_$Create$);
|
|
59
64
|
setMetadataFor(InstantIso8601Serializer, 'InstantIso8601Serializer', objectMeta, VOID, [KSerializer]);
|
|
60
65
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
61
|
-
setMetadataFor(Instant_0, 'Instant', classMeta, VOID, [Comparable], VOID, {0: InstantIso8601Serializer_getInstance});
|
|
66
|
+
setMetadataFor(Instant_0, 'Instant', classMeta, VOID, [Comparable], VOID, VOID, {0: InstantIso8601Serializer_getInstance});
|
|
62
67
|
//endregion
|
|
63
68
|
function System() {
|
|
64
|
-
System_instance = this;
|
|
65
69
|
}
|
|
66
|
-
protoOf(System).
|
|
67
|
-
return
|
|
70
|
+
protoOf(System).e2f = function () {
|
|
71
|
+
return Companion_getInstance_0().e2f();
|
|
68
72
|
};
|
|
69
73
|
var System_instance;
|
|
70
74
|
function System_getInstance() {
|
|
71
|
-
if (System_instance == null)
|
|
72
|
-
new System();
|
|
73
75
|
return System_instance;
|
|
74
76
|
}
|
|
75
|
-
function DateTimeFormatException_init_$Init$(
|
|
76
|
-
IllegalArgumentException_init_$Init$(
|
|
77
|
+
function DateTimeFormatException_init_$Init$($this) {
|
|
78
|
+
IllegalArgumentException_init_$Init$($this);
|
|
77
79
|
DateTimeFormatException.call($this);
|
|
78
80
|
return $this;
|
|
79
81
|
}
|
|
80
|
-
function DateTimeFormatException_init_$Create$(
|
|
81
|
-
var tmp = DateTimeFormatException_init_$Init$(
|
|
82
|
+
function DateTimeFormatException_init_$Create$() {
|
|
83
|
+
var tmp = DateTimeFormatException_init_$Init$(objectCreate(protoOf(DateTimeFormatException)));
|
|
82
84
|
captureStack(tmp, DateTimeFormatException_init_$Create$);
|
|
83
85
|
return tmp;
|
|
84
86
|
}
|
|
87
|
+
function DateTimeFormatException_init_$Init$_0(cause, $this) {
|
|
88
|
+
IllegalArgumentException_init_$Init$_0(cause, $this);
|
|
89
|
+
DateTimeFormatException.call($this);
|
|
90
|
+
return $this;
|
|
91
|
+
}
|
|
92
|
+
function DateTimeFormatException_init_$Create$_0(cause) {
|
|
93
|
+
var tmp = DateTimeFormatException_init_$Init$_0(cause, objectCreate(protoOf(DateTimeFormatException)));
|
|
94
|
+
captureStack(tmp, DateTimeFormatException_init_$Create$_0);
|
|
95
|
+
return tmp;
|
|
96
|
+
}
|
|
85
97
|
function DateTimeFormatException() {
|
|
86
98
|
captureStack(this, DateTimeFormatException);
|
|
87
99
|
}
|
|
88
100
|
function toInstant(_this__u8e3s4) {
|
|
89
|
-
return
|
|
101
|
+
return Companion_getInstance_0().j2f(_this__u8e3s4);
|
|
90
102
|
}
|
|
91
103
|
function get_DISTANT_PAST_SECONDS() {
|
|
92
104
|
return DISTANT_PAST_SECONDS;
|
|
@@ -110,19 +122,19 @@
|
|
|
110
122
|
var NANOS_PER_ONE;
|
|
111
123
|
function InstantIso8601Serializer() {
|
|
112
124
|
InstantIso8601Serializer_instance = this;
|
|
113
|
-
this.
|
|
125
|
+
this.k2f_1 = PrimitiveSerialDescriptor('Instant', STRING_getInstance());
|
|
114
126
|
}
|
|
115
|
-
protoOf(InstantIso8601Serializer).
|
|
116
|
-
return this.
|
|
127
|
+
protoOf(InstantIso8601Serializer).p1c = function () {
|
|
128
|
+
return this.k2f_1;
|
|
117
129
|
};
|
|
118
|
-
protoOf(InstantIso8601Serializer).
|
|
119
|
-
return
|
|
130
|
+
protoOf(InstantIso8601Serializer).r1c = function (decoder) {
|
|
131
|
+
return Companion_getInstance_0().j2f(decoder.s1f());
|
|
120
132
|
};
|
|
121
|
-
protoOf(InstantIso8601Serializer).
|
|
122
|
-
encoder.
|
|
133
|
+
protoOf(InstantIso8601Serializer).l2f = function (encoder, value) {
|
|
134
|
+
encoder.b1h(value.toString());
|
|
123
135
|
};
|
|
124
|
-
protoOf(InstantIso8601Serializer).
|
|
125
|
-
return this.
|
|
136
|
+
protoOf(InstantIso8601Serializer).q1c = function (encoder, value) {
|
|
137
|
+
return this.l2f(encoder, value instanceof Instant_0 ? value : THROW_CCE());
|
|
126
138
|
};
|
|
127
139
|
var InstantIso8601Serializer_instance;
|
|
128
140
|
function InstantIso8601Serializer_getInstance() {
|
|
@@ -142,11 +154,9 @@
|
|
|
142
154
|
do {
|
|
143
155
|
var index = inductionVariable;
|
|
144
156
|
inductionVariable = inductionVariable + -1 | 0;
|
|
145
|
-
var tmp$ret$0;
|
|
146
157
|
// Inline function 'kotlinx.datetime.Companion.fixOffsetRepresentation.<anonymous>' call
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
if (tmp$ret$0) {
|
|
158
|
+
var c = charSequenceGet(isoString, index);
|
|
159
|
+
if (c === _Char___init__impl__6a9atx(43) ? true : c === _Char___init__impl__6a9atx(45)) {
|
|
150
160
|
tmp$ret$1 = index;
|
|
151
161
|
break $l$block;
|
|
152
162
|
}
|
|
@@ -162,39 +172,34 @@
|
|
|
162
172
|
}
|
|
163
173
|
function Companion() {
|
|
164
174
|
Companion_instance = this;
|
|
165
|
-
this.
|
|
166
|
-
this.
|
|
167
|
-
this.
|
|
168
|
-
this.
|
|
175
|
+
this.f2f_1 = new Instant_0(Instant.ofEpochSecond(get_DISTANT_PAST_SECONDS(), 999999999));
|
|
176
|
+
this.g2f_1 = new Instant_0(Instant.ofEpochSecond(get_DISTANT_FUTURE_SECONDS(), 0));
|
|
177
|
+
this.h2f_1 = new Instant_0(Instant.MIN);
|
|
178
|
+
this.i2f_1 = new Instant_0(Instant.MAX);
|
|
169
179
|
}
|
|
170
|
-
protoOf(Companion).
|
|
180
|
+
protoOf(Companion).e2f = function () {
|
|
171
181
|
return new Instant_0(Clock.systemUTC().instant());
|
|
172
182
|
};
|
|
173
|
-
protoOf(Companion).
|
|
183
|
+
protoOf(Companion).m2f = function (epochMilliseconds) {
|
|
174
184
|
var tmp;
|
|
175
185
|
try {
|
|
176
|
-
var tmp$ret$0;
|
|
177
186
|
// Inline function 'kotlin.Long.div' call
|
|
178
|
-
var
|
|
179
|
-
|
|
180
|
-
var tmp_0 = tmp$ret$0;
|
|
181
|
-
var tmp$ret$2;
|
|
187
|
+
var other = get_MILLIS_PER_ONE();
|
|
188
|
+
var tmp_0 = epochMilliseconds.d8(toLong(other));
|
|
182
189
|
// Inline function 'kotlin.Long.times' call
|
|
183
|
-
var tmp$ret$1;
|
|
184
190
|
// Inline function 'kotlin.Long.rem' call
|
|
185
|
-
var
|
|
186
|
-
|
|
187
|
-
var
|
|
188
|
-
var
|
|
189
|
-
tmp
|
|
190
|
-
tmp = this.h2e(tmp_0, tmp$ret$2);
|
|
191
|
+
var other_0 = get_MILLIS_PER_ONE();
|
|
192
|
+
var this_0 = epochMilliseconds.j9(toLong(other_0));
|
|
193
|
+
var other_1 = get_NANOS_PER_MILLI();
|
|
194
|
+
var tmp$ret$2 = this_0.e8(toLong(other_1));
|
|
195
|
+
tmp = this.n2f(tmp_0, tmp$ret$2);
|
|
191
196
|
} catch ($p) {
|
|
192
197
|
var tmp_1;
|
|
193
198
|
if ($p instanceof Error) {
|
|
194
199
|
var e = $p;
|
|
195
200
|
if (!isJodaDateTimeException(e))
|
|
196
201
|
throw e;
|
|
197
|
-
tmp_1 = epochMilliseconds.
|
|
202
|
+
tmp_1 = epochMilliseconds.f8(new Long(0, 0)) > 0 ? this.i2f_1 : this.h2f_1;
|
|
198
203
|
} else {
|
|
199
204
|
throw $p;
|
|
200
205
|
}
|
|
@@ -202,7 +207,7 @@
|
|
|
202
207
|
}
|
|
203
208
|
return tmp;
|
|
204
209
|
};
|
|
205
|
-
protoOf(Companion).
|
|
210
|
+
protoOf(Companion).j2f = function (isoString) {
|
|
206
211
|
var tmp;
|
|
207
212
|
try {
|
|
208
213
|
tmp = new Instant_0(OffsetDateTime.parse(fixOffsetRepresentation(this, isoString)).toInstant());
|
|
@@ -211,34 +216,29 @@
|
|
|
211
216
|
if ($p instanceof Error) {
|
|
212
217
|
var e = $p;
|
|
213
218
|
if (isJodaDateTimeParseException(e))
|
|
214
|
-
throw DateTimeFormatException_init_$Create$(e);
|
|
219
|
+
throw DateTimeFormatException_init_$Create$_0(e);
|
|
215
220
|
throw e;
|
|
216
221
|
} else {
|
|
217
222
|
throw $p;
|
|
218
223
|
}
|
|
219
|
-
tmp = tmp_0;
|
|
220
224
|
}
|
|
221
225
|
return tmp;
|
|
222
226
|
};
|
|
223
|
-
protoOf(Companion).
|
|
227
|
+
protoOf(Companion).n2f = function (epochSeconds, nanosecondAdjustment) {
|
|
224
228
|
var tmp;
|
|
225
229
|
try {
|
|
226
|
-
var tmp$ret$0;
|
|
227
230
|
// Inline function 'kotlin.floorDiv' call
|
|
228
|
-
var
|
|
229
|
-
var q = nanosecondAdjustment.
|
|
230
|
-
if (nanosecondAdjustment.
|
|
231
|
-
|
|
232
|
-
q = tmp0.zg();
|
|
231
|
+
var other = toLong(get_NANOS_PER_ONE());
|
|
232
|
+
var q = nanosecondAdjustment.d8(other);
|
|
233
|
+
if (nanosecondAdjustment.t9(other).f8(new Long(0, 0)) < 0 ? !q.e8(other).equals(nanosecondAdjustment) : false) {
|
|
234
|
+
q = q.l9();
|
|
233
235
|
}
|
|
234
|
-
tmp$ret$0 = q;
|
|
236
|
+
var tmp$ret$0 = q;
|
|
235
237
|
var secs = safeAdd(epochSeconds, tmp$ret$0);
|
|
236
|
-
var tmp$ret$1;
|
|
237
238
|
// Inline function 'kotlin.mod' call
|
|
238
|
-
var
|
|
239
|
-
var r = nanosecondAdjustment.
|
|
240
|
-
|
|
241
|
-
var nos = tmp$ret$1.y5();
|
|
239
|
+
var other_0 = toLong(get_NANOS_PER_ONE());
|
|
240
|
+
var r = nanosecondAdjustment.j9(other_0);
|
|
241
|
+
var nos = r.h9(other_0.r9(r.t9(other_0).r9(r.s9(r.m9())).p9(63))).w9();
|
|
242
242
|
tmp = new Instant_0(Instant.ofEpochSecond(secs, nos));
|
|
243
243
|
} catch ($p) {
|
|
244
244
|
var tmp_0;
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
}
|
|
253
253
|
if (tmp_1)
|
|
254
254
|
throw e;
|
|
255
|
-
tmp_0 = epochSeconds.
|
|
255
|
+
tmp_0 = epochSeconds.f8(new Long(0, 0)) > 0 ? this.i2f_1 : this.h2f_1;
|
|
256
256
|
} else {
|
|
257
257
|
throw $p;
|
|
258
258
|
}
|
|
@@ -261,68 +261,74 @@
|
|
|
261
261
|
return tmp;
|
|
262
262
|
};
|
|
263
263
|
var Companion_instance;
|
|
264
|
-
function
|
|
264
|
+
function Companion_getInstance_0() {
|
|
265
265
|
if (Companion_instance == null)
|
|
266
266
|
new Companion();
|
|
267
267
|
return Companion_instance;
|
|
268
268
|
}
|
|
269
269
|
function Instant_0(value) {
|
|
270
|
-
|
|
271
|
-
this.
|
|
270
|
+
Companion_getInstance_0();
|
|
271
|
+
this.o2f_1 = value;
|
|
272
272
|
}
|
|
273
|
-
protoOf(Instant_0).
|
|
274
|
-
return numberToLong(this.
|
|
273
|
+
protoOf(Instant_0).p2f = function () {
|
|
274
|
+
return numberToLong(this.o2f_1.epochSecond());
|
|
275
275
|
};
|
|
276
|
-
protoOf(Instant_0).
|
|
277
|
-
return numberToInt(this.
|
|
276
|
+
protoOf(Instant_0).q2f = function () {
|
|
277
|
+
return numberToInt(this.o2f_1.nano());
|
|
278
278
|
};
|
|
279
|
-
protoOf(Instant_0).
|
|
280
|
-
var tmp$ret$1;
|
|
279
|
+
protoOf(Instant_0).r2f = function () {
|
|
281
280
|
// Inline function 'kotlin.Long.plus' call
|
|
282
|
-
var tmp$ret$0;
|
|
283
281
|
// Inline function 'kotlin.Long.times' call
|
|
284
|
-
var
|
|
285
|
-
var
|
|
286
|
-
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
tmp$ret$1 = tmp2_plus.u5(toLong(tmp3_plus));
|
|
290
|
-
return tmp$ret$1;
|
|
282
|
+
var this_0 = this.p2f();
|
|
283
|
+
var other = get_MILLIS_PER_ONE();
|
|
284
|
+
var this_1 = this_0.e8(toLong(other));
|
|
285
|
+
var other_0 = this.q2f() / get_NANOS_PER_MILLI() | 0;
|
|
286
|
+
return this_1.h9(toLong(other_0));
|
|
291
287
|
};
|
|
292
|
-
protoOf(Instant_0).
|
|
293
|
-
var tmp$ret$0;
|
|
288
|
+
protoOf(Instant_0).s2f = function (duration) {
|
|
294
289
|
// Inline function 'kotlin.time.Duration.toComponents' call
|
|
295
290
|
// Inline function 'kotlin.contracts.contract' call
|
|
296
|
-
var
|
|
297
|
-
var
|
|
291
|
+
var seconds = _Duration___get_inWholeSeconds__impl__hpy7b3(duration);
|
|
292
|
+
var nanoseconds = _Duration___get_nanosecondsComponent__impl__nh19kq(duration);
|
|
298
293
|
var tmp;
|
|
299
294
|
try {
|
|
300
|
-
tmp = new Instant_0(this.
|
|
295
|
+
tmp = new Instant_0(this.t2f(seconds.s5(), nanoseconds));
|
|
301
296
|
} catch ($p) {
|
|
302
297
|
var tmp_0;
|
|
303
298
|
if ($p instanceof Error) {
|
|
304
299
|
var e = $p;
|
|
305
300
|
if (!isJodaDateTimeException(e))
|
|
306
301
|
throw e;
|
|
307
|
-
tmp_0 =
|
|
302
|
+
tmp_0 = seconds.f8(new Long(0, 0)) > 0 ? Companion_getInstance_0().i2f_1 : Companion_getInstance_0().h2f_1;
|
|
308
303
|
} else {
|
|
309
304
|
throw $p;
|
|
310
305
|
}
|
|
311
306
|
tmp = tmp_0;
|
|
312
307
|
}
|
|
313
308
|
return tmp;
|
|
314
|
-
return tmp$ret$0;
|
|
315
309
|
};
|
|
316
|
-
protoOf(Instant_0).
|
|
317
|
-
var newSeconds = numberToDouble(this.
|
|
318
|
-
var newNanos = numberToDouble(this.
|
|
310
|
+
protoOf(Instant_0).t2f = function (seconds, nanos) {
|
|
311
|
+
var newSeconds = numberToDouble(this.o2f_1.epochSecond()) + seconds;
|
|
312
|
+
var newNanos = numberToDouble(this.o2f_1.nano()) + nanos;
|
|
319
313
|
return Instant.ofEpochSecond(newSeconds, newNanos);
|
|
320
314
|
};
|
|
321
|
-
protoOf(Instant_0).
|
|
322
|
-
|
|
315
|
+
protoOf(Instant_0).u2f = function (other) {
|
|
316
|
+
var diff = Duration.between(other.o2f_1, this.o2f_1);
|
|
317
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
318
|
+
Companion_getInstance();
|
|
319
|
+
var this_0 = numberToDouble(diff.seconds());
|
|
320
|
+
var tmp = toDuration(this_0, DurationUnit_SECONDS_getInstance());
|
|
321
|
+
// Inline function 'kotlin.time.Companion.nanoseconds' call
|
|
322
|
+
Companion_getInstance();
|
|
323
|
+
var this_1 = numberToDouble(diff.nano());
|
|
324
|
+
var tmp$ret$1 = toDuration(this_1, DurationUnit_NANOSECONDS_getInstance());
|
|
325
|
+
return Duration__plus_impl_yu9v8f(tmp, tmp$ret$1);
|
|
326
|
+
};
|
|
327
|
+
protoOf(Instant_0).v2f = function (other) {
|
|
328
|
+
return numberToInt(this.o2f_1.compareTo(other.o2f_1));
|
|
323
329
|
};
|
|
324
|
-
protoOf(Instant_0).
|
|
325
|
-
return this.
|
|
330
|
+
protoOf(Instant_0).d = function (other) {
|
|
331
|
+
return this.v2f(other instanceof Instant_0 ? other : THROW_CCE());
|
|
326
332
|
};
|
|
327
333
|
protoOf(Instant_0).equals = function (other) {
|
|
328
334
|
var tmp;
|
|
@@ -331,7 +337,7 @@
|
|
|
331
337
|
} else {
|
|
332
338
|
var tmp_0;
|
|
333
339
|
if (other instanceof Instant_0) {
|
|
334
|
-
tmp_0 = equals(this.
|
|
340
|
+
tmp_0 = equals(this.o2f_1, other.o2f_1);
|
|
335
341
|
} else {
|
|
336
342
|
tmp_0 = false;
|
|
337
343
|
}
|
|
@@ -340,31 +346,28 @@
|
|
|
340
346
|
return tmp;
|
|
341
347
|
};
|
|
342
348
|
protoOf(Instant_0).hashCode = function () {
|
|
343
|
-
return numberToInt(this.
|
|
349
|
+
return numberToInt(this.o2f_1.hashCode());
|
|
344
350
|
};
|
|
345
351
|
protoOf(Instant_0).toString = function () {
|
|
346
|
-
return this.
|
|
352
|
+
return this.o2f_1.toString();
|
|
347
353
|
};
|
|
348
354
|
function isJodaDateTimeException(_this__u8e3s4) {
|
|
349
|
-
var tmp$ret$0;
|
|
350
355
|
// Inline function 'kotlin.js.asDynamic' call
|
|
351
|
-
|
|
352
|
-
return tmp$ret$0.name == 'DateTimeException';
|
|
356
|
+
return _this__u8e3s4.name == 'DateTimeException';
|
|
353
357
|
}
|
|
354
358
|
function isJodaDateTimeParseException(_this__u8e3s4) {
|
|
355
|
-
var tmp$ret$0;
|
|
356
359
|
// Inline function 'kotlin.js.asDynamic' call
|
|
357
|
-
|
|
358
|
-
return tmp$ret$0.name == 'DateTimeParseException';
|
|
360
|
+
return _this__u8e3s4.name == 'DateTimeParseException';
|
|
359
361
|
}
|
|
360
362
|
function safeAdd(a, b) {
|
|
361
|
-
var sum = a.
|
|
362
|
-
if (a.
|
|
363
|
-
throw ArithmeticException_init_$Create$('Addition overflows a long: ' + toString(
|
|
363
|
+
var sum = a.h9(b);
|
|
364
|
+
if (a.t9(sum).f8(new Long(0, 0)) < 0 ? a.t9(b).f8(new Long(0, 0)) >= 0 : false) {
|
|
365
|
+
throw ArithmeticException_init_$Create$('Addition overflows a long: ' + a.toString() + ' + ' + b.toString());
|
|
364
366
|
}
|
|
365
367
|
return sum;
|
|
366
368
|
}
|
|
367
369
|
//region block: init
|
|
370
|
+
System_instance = new System();
|
|
368
371
|
DISTANT_PAST_SECONDS = new Long(-931914497, -750);
|
|
369
372
|
DISTANT_FUTURE_SECONDS = new Long(1151527680, 720);
|
|
370
373
|
NANOS_PER_MILLI = 1000000;
|
|
@@ -373,8 +376,8 @@
|
|
|
373
376
|
//endregion
|
|
374
377
|
//region block: exports
|
|
375
378
|
_.$_$ = _.$_$ || {};
|
|
376
|
-
_.$_$.a =
|
|
377
|
-
_.$_$.b =
|
|
379
|
+
_.$_$.a = System_instance;
|
|
380
|
+
_.$_$.b = Companion_getInstance_0;
|
|
378
381
|
_.$_$.c = toInstant;
|
|
379
382
|
//endregion
|
|
380
383
|
return _;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../../../mnt/agent/work/8ebe0a8279b7bad8/core/common/src/Clock.kt","../../../../../../../../../../../../mnt/agent/work/8ebe0a8279b7bad8/core/common/src/Exceptions.kt","../../../../../../../../../../../../mnt/agent/work/8ebe0a8279b7bad8/core/common/src/Instant.kt","../../../../../../../../../../../../mnt/agent/work/8ebe0a8279b7bad8/core/common/src/internal/dateCalculations.kt","../../../../../../../../../../../../mnt/agent/work/8ebe0a8279b7bad8/core/common/src/serializers/InstantSerializers.kt","../../../../../../../../../../../../mnt/agent/work/8ebe0a8279b7bad8/core/js/src/Instant.kt","common/src/generated/_Strings.kt","js-ir/runtime/long.kt","src/kotlin/util/FloorDivMod.kt","src/kotlin/time/Duration.kt","../../../../../../../../../../../../mnt/agent/work/8ebe0a8279b7bad8/core/js/src/JSJodaExceptions.kt","src/jsMainSources/libraries/stdlib/js/src/kotlin/dynamic.kt","../../../../../../../../../../../../mnt/agent/work/8ebe0a8279b7bad8/core/js/src/internal/mathJs.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["<init>","now","DateTimeFormatException_init_$Init$","DateTimeFormatException_init_$Create$","cause","toInstant","<this>","<get-DISTANT_PAST_SECONDS>","<get-DISTANT_FUTURE_SECONDS>","<get-NANOS_PER_MILLI>","<get-MILLIS_PER_ONE>","<get-NANOS_PER_ONE>","<get-descriptor>","deserialize","decoder","serialize","encoder","value","fixOffsetRepresentation","isoString","time","index","offset","separator","fromEpochMilliseconds","epochMilliseconds","e","parse","fromEpochSeconds","epochSeconds","nanosecondAdjustment","q","secs","r","nos","<get-epochSeconds>","<get-nanosecondsOfSecond>","toEpochMilliseconds","plus","duration","plusFix","seconds","nanos","newSeconds","newNanos","minus","other","diff","compareTo","equals","hashCode","toString","isJodaDateTimeException","isJodaDateTimeParseException","safeAdd","a","b","sum"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBIA,CAAAA,EAAA;A,EAAA,C;iCACaC,CAAAA,EAAqB;A,IAA4C,OAAL,+B;EA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