@glandais/vcyclist-engine 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin-kotlin-stdlib.js +2339 -1925
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +1226 -1205
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +1 -1
- package/package.json +1 -1
- package/vcyclist-elevation.js +923 -943
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +1055 -1058
- package/vcyclist-engine.js.map +1 -1
- package/xmlutil-core.js +8130 -3743
- package/xmlutil-core.js.map +1 -1
package/vcyclist-engine.js
CHANGED
|
@@ -22,81 +22,82 @@
|
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
24
|
var imul = Math.imul;
|
|
25
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
25
|
+
var protoOf = kotlin_kotlin.$_$.h5;
|
|
26
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.v4;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.a;
|
|
28
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
29
|
-
var equals = kotlin_kotlin.$_$.
|
|
30
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
31
|
-
var toString = kotlin_kotlin.$_$.
|
|
32
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
33
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
34
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
35
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
36
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
38
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
39
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
40
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
41
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
28
|
+
var getNumberHashCode = kotlin_kotlin.$_$.q4;
|
|
29
|
+
var equals = kotlin_kotlin.$_$.o4;
|
|
30
|
+
var initMetadataForClass = kotlin_kotlin.$_$.u4;
|
|
31
|
+
var toString = kotlin_kotlin.$_$.j5;
|
|
32
|
+
var hashCode = kotlin_kotlin.$_$.t4;
|
|
33
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.p4;
|
|
34
|
+
var CoroutineImpl = kotlin_kotlin.$_$.p3;
|
|
35
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.a3;
|
|
36
|
+
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
37
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.w4;
|
|
38
|
+
var initMetadataForObject = kotlin_kotlin.$_$.a5;
|
|
39
|
+
var getStringHashCode = kotlin_kotlin.$_$.s4;
|
|
40
|
+
var toString_0 = kotlin_kotlin.$_$.n7;
|
|
41
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
42
42
|
var MathConstants_getInstance = kotlin_io_github_glandais_elevation.$_$.d;
|
|
43
|
-
var isNaN_0 = kotlin_kotlin.$_$.
|
|
44
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
45
|
-
var Long = kotlin_kotlin.$_$.
|
|
46
|
-
var compare = kotlin_kotlin.$_$.
|
|
47
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
48
|
-
var listOf = kotlin_kotlin.$_$.
|
|
49
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
43
|
+
var isNaN_0 = kotlin_kotlin.$_$.i7;
|
|
44
|
+
var numberToLong = kotlin_kotlin.$_$.c4;
|
|
45
|
+
var Long = kotlin_kotlin.$_$.y6;
|
|
46
|
+
var compare = kotlin_kotlin.$_$.v3;
|
|
47
|
+
var roundToInt = kotlin_kotlin.$_$.k5;
|
|
48
|
+
var listOf = kotlin_kotlin.$_$.q2;
|
|
49
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
50
50
|
var EventType_START_ELEMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.a;
|
|
51
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
52
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
53
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
54
|
-
var trim = kotlin_kotlin.$_$.
|
|
55
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
56
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
57
|
-
var toDoubleOrNull = kotlin_kotlin.$_$.
|
|
58
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
59
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
60
|
-
var Companion_getInstance = kotlin_kotlin.$_$.
|
|
61
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
51
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
52
|
+
var THROW_CCE = kotlin_kotlin.$_$.c7;
|
|
53
|
+
var isCharSequence = kotlin_kotlin.$_$.b5;
|
|
54
|
+
var trim = kotlin_kotlin.$_$.s6;
|
|
55
|
+
var charSequenceLength = kotlin_kotlin.$_$.k4;
|
|
56
|
+
var isBlank = kotlin_kotlin.$_$.h6;
|
|
57
|
+
var toDoubleOrNull = kotlin_kotlin.$_$.p6;
|
|
58
|
+
var numberToInt = kotlin_kotlin.$_$.f5;
|
|
59
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
60
|
+
var Companion_getInstance = kotlin_kotlin.$_$.p;
|
|
61
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.x6;
|
|
62
62
|
var get_xmlStreaming = kotlin_io_github_pdvrieze_xmlutil_core.$_$.e;
|
|
63
|
-
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
63
|
+
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.k1;
|
|
64
64
|
var XmlException = kotlin_io_github_pdvrieze_xmlutil_core.$_$.c;
|
|
65
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
66
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
67
|
-
var toNumber = kotlin_kotlin.$_$.
|
|
65
|
+
var firstOrNull = kotlin_kotlin.$_$.m2;
|
|
66
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
67
|
+
var toNumber = kotlin_kotlin.$_$.e4;
|
|
68
68
|
var XmlDeclMode_None_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.b;
|
|
69
69
|
var newGenericWriter = kotlin_io_github_pdvrieze_xmlutil_core.$_$.d;
|
|
70
70
|
var LatLon = kotlin_io_github_glandais_elevation.$_$.g;
|
|
71
71
|
var ElevationSmoother_instance = kotlin_io_github_glandais_elevation.$_$.c;
|
|
72
|
-
var until = kotlin_kotlin.$_$.
|
|
72
|
+
var until = kotlin_kotlin.$_$.r5;
|
|
73
73
|
var LatLonElevation = kotlin_io_github_glandais_elevation.$_$.f;
|
|
74
74
|
var arrayCopy = kotlin_kotlin.$_$.a2;
|
|
75
75
|
var Distance_instance = kotlin_io_github_glandais_elevation.$_$.a;
|
|
76
76
|
var DouglasPeucker_instance = kotlin_io_github_glandais_elevation.$_$.b;
|
|
77
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
78
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
79
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
80
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
81
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
82
|
-
var Enum = kotlin_kotlin.$_$.
|
|
83
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
84
|
-
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
85
|
-
var multiply = kotlin_kotlin.$_$.
|
|
86
|
-
var subtract = kotlin_kotlin.$_$.
|
|
87
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
88
|
-
var add = kotlin_kotlin.$_$.
|
|
89
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
90
|
-
var sorted = kotlin_kotlin.$_$.
|
|
91
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
92
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
77
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.e2;
|
|
78
|
+
var mapCapacity = kotlin_kotlin.$_$.s2;
|
|
79
|
+
var coerceAtLeast = kotlin_kotlin.$_$.m5;
|
|
80
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
81
|
+
var enumEntries = kotlin_kotlin.$_$.r3;
|
|
82
|
+
var Enum = kotlin_kotlin.$_$.u6;
|
|
83
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.k7;
|
|
84
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.y;
|
|
85
|
+
var multiply = kotlin_kotlin.$_$.b4;
|
|
86
|
+
var subtract = kotlin_kotlin.$_$.d4;
|
|
87
|
+
var equalsLong = kotlin_kotlin.$_$.y3;
|
|
88
|
+
var add = kotlin_kotlin.$_$.u3;
|
|
89
|
+
var get_ONE = kotlin_kotlin.$_$.t3;
|
|
90
|
+
var sorted = kotlin_kotlin.$_$.v2;
|
|
91
|
+
var Default_getInstance = kotlin_kotlin.$_$.o;
|
|
92
|
+
var emptyList = kotlin_kotlin.$_$.k2;
|
|
93
93
|
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
94
94
|
var promise = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
95
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
95
|
+
var copyToArray = kotlin_kotlin.$_$.j2;
|
|
96
96
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
97
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
97
|
+
var isInterface = kotlin_kotlin.$_$.c5;
|
|
98
98
|
var ElevationProvider = kotlin_io_github_glandais_elevation.$_$.e;
|
|
99
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
99
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.z4;
|
|
100
|
+
var constructCallableReference = kotlin_kotlin.$_$.m4;
|
|
100
101
|
//endregion
|
|
101
102
|
//region block: pre-declaration
|
|
102
103
|
initMetadataForCompanion(Companion);
|
|
@@ -160,7 +161,7 @@
|
|
|
160
161
|
//endregion
|
|
161
162
|
function Companion() {
|
|
162
163
|
Companion_instance = this;
|
|
163
|
-
this.
|
|
164
|
+
this.x1o_1 = new Bike();
|
|
164
165
|
}
|
|
165
166
|
var Companion_instance;
|
|
166
167
|
function Companion_getInstance_0() {
|
|
@@ -175,21 +176,21 @@
|
|
|
175
176
|
inertiaRear = inertiaRear === VOID ? 0.07 : inertiaRear;
|
|
176
177
|
wheelRadiusM = wheelRadiusM === VOID ? 0.7 : wheelRadiusM;
|
|
177
178
|
efficiency = efficiency === VOID ? 0.976 : efficiency;
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
181
|
-
this.
|
|
182
|
-
this.
|
|
179
|
+
this.y1o_1 = crr;
|
|
180
|
+
this.z1o_1 = inertiaFront;
|
|
181
|
+
this.a1p_1 = inertiaRear;
|
|
182
|
+
this.b1p_1 = wheelRadiusM;
|
|
183
|
+
this.c1p_1 = efficiency;
|
|
183
184
|
}
|
|
184
185
|
protoOf(Bike).toString = function () {
|
|
185
|
-
return 'Bike(crr=' + this.
|
|
186
|
+
return 'Bike(crr=' + this.y1o_1 + ', inertiaFront=' + this.z1o_1 + ', inertiaRear=' + this.a1p_1 + ', wheelRadiusM=' + this.b1p_1 + ', efficiency=' + this.c1p_1 + ')';
|
|
186
187
|
};
|
|
187
188
|
protoOf(Bike).hashCode = function () {
|
|
188
|
-
var result = getNumberHashCode(this.
|
|
189
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
190
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
191
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
192
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
189
|
+
var result = getNumberHashCode(this.y1o_1);
|
|
190
|
+
result = imul(result, 31) + getNumberHashCode(this.z1o_1) | 0;
|
|
191
|
+
result = imul(result, 31) + getNumberHashCode(this.a1p_1) | 0;
|
|
192
|
+
result = imul(result, 31) + getNumberHashCode(this.b1p_1) | 0;
|
|
193
|
+
result = imul(result, 31) + getNumberHashCode(this.c1p_1) | 0;
|
|
193
194
|
return result;
|
|
194
195
|
};
|
|
195
196
|
protoOf(Bike).equals = function (other) {
|
|
@@ -197,41 +198,41 @@
|
|
|
197
198
|
return true;
|
|
198
199
|
if (!(other instanceof Bike))
|
|
199
200
|
return false;
|
|
200
|
-
if (!equals(this.
|
|
201
|
+
if (!equals(this.y1o_1, other.y1o_1))
|
|
201
202
|
return false;
|
|
202
|
-
if (!equals(this.
|
|
203
|
+
if (!equals(this.z1o_1, other.z1o_1))
|
|
203
204
|
return false;
|
|
204
|
-
if (!equals(this.
|
|
205
|
+
if (!equals(this.a1p_1, other.a1p_1))
|
|
205
206
|
return false;
|
|
206
|
-
if (!equals(this.
|
|
207
|
+
if (!equals(this.b1p_1, other.b1p_1))
|
|
207
208
|
return false;
|
|
208
|
-
if (!equals(this.
|
|
209
|
+
if (!equals(this.c1p_1, other.c1p_1))
|
|
209
210
|
return false;
|
|
210
211
|
return true;
|
|
211
212
|
};
|
|
212
213
|
function Course(path, cyclist, bike) {
|
|
213
|
-
cyclist = cyclist === VOID ? Companion_getInstance_2().
|
|
214
|
-
bike = bike === VOID ? Companion_getInstance_0().
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
214
|
+
cyclist = cyclist === VOID ? Companion_getInstance_2().d1p_1 : cyclist;
|
|
215
|
+
bike = bike === VOID ? Companion_getInstance_0().x1o_1 : bike;
|
|
216
|
+
this.e1p_1 = path;
|
|
217
|
+
this.f1p_1 = cyclist;
|
|
218
|
+
this.g1p_1 = bike;
|
|
218
219
|
}
|
|
219
|
-
protoOf(Course).
|
|
220
|
+
protoOf(Course).h1p = function (path, cyclist, bike) {
|
|
220
221
|
return new Course(path, cyclist, bike);
|
|
221
222
|
};
|
|
222
|
-
protoOf(Course).
|
|
223
|
-
path = path === VOID ? this.
|
|
224
|
-
cyclist = cyclist === VOID ? this.
|
|
225
|
-
bike = bike === VOID ? this.
|
|
226
|
-
return $super === VOID ? this.
|
|
223
|
+
protoOf(Course).i1p = function (path, cyclist, bike, $super) {
|
|
224
|
+
path = path === VOID ? this.e1p_1 : path;
|
|
225
|
+
cyclist = cyclist === VOID ? this.f1p_1 : cyclist;
|
|
226
|
+
bike = bike === VOID ? this.g1p_1 : bike;
|
|
227
|
+
return $super === VOID ? this.h1p(path, cyclist, bike) : $super.h1p.call(this, path, cyclist, bike);
|
|
227
228
|
};
|
|
228
229
|
protoOf(Course).toString = function () {
|
|
229
|
-
return 'Course(path=' + toString(this.
|
|
230
|
+
return 'Course(path=' + toString(this.e1p_1) + ', cyclist=' + this.f1p_1.toString() + ', bike=' + this.g1p_1.toString() + ')';
|
|
230
231
|
};
|
|
231
232
|
protoOf(Course).hashCode = function () {
|
|
232
|
-
var result = hashCode(this.
|
|
233
|
-
result = imul(result, 31) + this.
|
|
234
|
-
result = imul(result, 31) + this.
|
|
233
|
+
var result = hashCode(this.e1p_1);
|
|
234
|
+
result = imul(result, 31) + this.f1p_1.hashCode() | 0;
|
|
235
|
+
result = imul(result, 31) + this.g1p_1.hashCode() | 0;
|
|
235
236
|
return result;
|
|
236
237
|
};
|
|
237
238
|
protoOf(Course).equals = function (other) {
|
|
@@ -239,17 +240,17 @@
|
|
|
239
240
|
return true;
|
|
240
241
|
if (!(other instanceof Course))
|
|
241
242
|
return false;
|
|
242
|
-
if (!equals(this.
|
|
243
|
+
if (!equals(this.e1p_1, other.e1p_1))
|
|
243
244
|
return false;
|
|
244
|
-
if (!this.
|
|
245
|
+
if (!this.f1p_1.equals(other.f1p_1))
|
|
245
246
|
return false;
|
|
246
|
-
if (!this.
|
|
247
|
+
if (!this.g1p_1.equals(other.g1p_1))
|
|
247
248
|
return false;
|
|
248
249
|
return true;
|
|
249
250
|
};
|
|
250
251
|
function Companion_0() {
|
|
251
252
|
Companion_instance_0 = this;
|
|
252
|
-
this.
|
|
253
|
+
this.j1p_1 = new PowerProviderConstant(280.0);
|
|
253
254
|
}
|
|
254
255
|
var Companion_instance_0;
|
|
255
256
|
function Companion_getInstance_1() {
|
|
@@ -262,42 +263,42 @@
|
|
|
262
263
|
rhoProvider = rhoProvider === VOID ? RhoProviderDefault_instance : rhoProvider;
|
|
263
264
|
aeroProvider = aeroProvider === VOID ? AeroProviderConstant_instance : aeroProvider;
|
|
264
265
|
windProvider = windProvider === VOID ? WindProviderNone_instance : windProvider;
|
|
265
|
-
cyclistPowerProvider = cyclistPowerProvider === VOID ? Companion_getInstance_1().
|
|
266
|
-
this.
|
|
267
|
-
this.
|
|
268
|
-
this.
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
266
|
+
cyclistPowerProvider = cyclistPowerProvider === VOID ? Companion_getInstance_1().j1p_1 : cyclistPowerProvider;
|
|
267
|
+
this.k1p_1 = course;
|
|
268
|
+
this.l1p_1 = rhoProvider;
|
|
269
|
+
this.m1p_1 = aeroProvider;
|
|
270
|
+
this.n1p_1 = windProvider;
|
|
271
|
+
this.o1p_1 = cyclistPowerProvider;
|
|
271
272
|
}
|
|
272
|
-
protoOf(CoursePhysics).
|
|
273
|
-
return this.
|
|
273
|
+
protoOf(CoursePhysics).p1p = function () {
|
|
274
|
+
return this.k1p_1.e1p_1;
|
|
274
275
|
};
|
|
275
|
-
protoOf(CoursePhysics).
|
|
276
|
-
return this.
|
|
276
|
+
protoOf(CoursePhysics).q1p = function () {
|
|
277
|
+
return this.k1p_1.f1p_1;
|
|
277
278
|
};
|
|
278
|
-
protoOf(CoursePhysics).
|
|
279
|
-
return this.
|
|
279
|
+
protoOf(CoursePhysics).r1p = function () {
|
|
280
|
+
return this.k1p_1.g1p_1;
|
|
280
281
|
};
|
|
281
|
-
protoOf(CoursePhysics).
|
|
282
|
+
protoOf(CoursePhysics).s1p = function (course, rhoProvider, aeroProvider, windProvider, cyclistPowerProvider) {
|
|
282
283
|
return new CoursePhysics(course, rhoProvider, aeroProvider, windProvider, cyclistPowerProvider);
|
|
283
284
|
};
|
|
284
|
-
protoOf(CoursePhysics).
|
|
285
|
-
course = course === VOID ? this.
|
|
286
|
-
rhoProvider = rhoProvider === VOID ? this.
|
|
287
|
-
aeroProvider = aeroProvider === VOID ? this.
|
|
288
|
-
windProvider = windProvider === VOID ? this.
|
|
289
|
-
cyclistPowerProvider = cyclistPowerProvider === VOID ? this.
|
|
290
|
-
return $super === VOID ? this.
|
|
285
|
+
protoOf(CoursePhysics).t1p = function (course, rhoProvider, aeroProvider, windProvider, cyclistPowerProvider, $super) {
|
|
286
|
+
course = course === VOID ? this.k1p_1 : course;
|
|
287
|
+
rhoProvider = rhoProvider === VOID ? this.l1p_1 : rhoProvider;
|
|
288
|
+
aeroProvider = aeroProvider === VOID ? this.m1p_1 : aeroProvider;
|
|
289
|
+
windProvider = windProvider === VOID ? this.n1p_1 : windProvider;
|
|
290
|
+
cyclistPowerProvider = cyclistPowerProvider === VOID ? this.o1p_1 : cyclistPowerProvider;
|
|
291
|
+
return $super === VOID ? this.s1p(course, rhoProvider, aeroProvider, windProvider, cyclistPowerProvider) : $super.s1p.call(this, course, rhoProvider, aeroProvider, windProvider, cyclistPowerProvider);
|
|
291
292
|
};
|
|
292
293
|
protoOf(CoursePhysics).toString = function () {
|
|
293
|
-
return 'CoursePhysics(course=' + this.
|
|
294
|
+
return 'CoursePhysics(course=' + this.k1p_1.toString() + ', rhoProvider=' + toString(this.l1p_1) + ', aeroProvider=' + toString(this.m1p_1) + ', windProvider=' + toString(this.n1p_1) + ', cyclistPowerProvider=' + toString(this.o1p_1) + ')';
|
|
294
295
|
};
|
|
295
296
|
protoOf(CoursePhysics).hashCode = function () {
|
|
296
|
-
var result = this.
|
|
297
|
-
result = imul(result, 31) + hashCode(this.
|
|
298
|
-
result = imul(result, 31) + hashCode(this.
|
|
299
|
-
result = imul(result, 31) + hashCode(this.
|
|
300
|
-
result = imul(result, 31) + hashCode(this.
|
|
297
|
+
var result = this.k1p_1.hashCode();
|
|
298
|
+
result = imul(result, 31) + hashCode(this.l1p_1) | 0;
|
|
299
|
+
result = imul(result, 31) + hashCode(this.m1p_1) | 0;
|
|
300
|
+
result = imul(result, 31) + hashCode(this.n1p_1) | 0;
|
|
301
|
+
result = imul(result, 31) + hashCode(this.o1p_1) | 0;
|
|
301
302
|
return result;
|
|
302
303
|
};
|
|
303
304
|
protoOf(CoursePhysics).equals = function (other) {
|
|
@@ -305,21 +306,21 @@
|
|
|
305
306
|
return true;
|
|
306
307
|
if (!(other instanceof CoursePhysics))
|
|
307
308
|
return false;
|
|
308
|
-
if (!this.
|
|
309
|
+
if (!this.k1p_1.equals(other.k1p_1))
|
|
309
310
|
return false;
|
|
310
|
-
if (!equals(this.
|
|
311
|
+
if (!equals(this.l1p_1, other.l1p_1))
|
|
311
312
|
return false;
|
|
312
|
-
if (!equals(this.
|
|
313
|
+
if (!equals(this.m1p_1, other.m1p_1))
|
|
313
314
|
return false;
|
|
314
|
-
if (!equals(this.
|
|
315
|
+
if (!equals(this.n1p_1, other.n1p_1))
|
|
315
316
|
return false;
|
|
316
|
-
if (!equals(this.
|
|
317
|
+
if (!equals(this.o1p_1, other.o1p_1))
|
|
317
318
|
return false;
|
|
318
319
|
return true;
|
|
319
320
|
};
|
|
320
321
|
function Companion_1() {
|
|
321
322
|
Companion_instance_1 = this;
|
|
322
|
-
this.
|
|
323
|
+
this.d1p_1 = new Cyclist();
|
|
323
324
|
}
|
|
324
325
|
var Companion_instance_1;
|
|
325
326
|
function Companion_getInstance_2() {
|
|
@@ -335,34 +336,34 @@
|
|
|
335
336
|
frontalAreaM2 = frontalAreaM2 === VOID ? 0.5 : frontalAreaM2;
|
|
336
337
|
maxLeanAngleDeg = maxLeanAngleDeg === VOID ? 35.0 : maxLeanAngleDeg;
|
|
337
338
|
maxSpeedKmH = maxSpeedKmH === VOID ? 100.0 : maxSpeedKmH;
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
}
|
|
345
|
-
protoOf(Cyclist).
|
|
339
|
+
this.u1p_1 = massKg;
|
|
340
|
+
this.v1p_1 = maxBrakeG;
|
|
341
|
+
this.w1p_1 = cd;
|
|
342
|
+
this.x1p_1 = frontalAreaM2;
|
|
343
|
+
this.y1p_1 = maxLeanAngleDeg;
|
|
344
|
+
this.z1p_1 = maxSpeedKmH;
|
|
345
|
+
}
|
|
346
|
+
protoOf(Cyclist).a1q = function () {
|
|
346
347
|
// Inline function 'kotlin.math.tan' call
|
|
347
|
-
var x = this.
|
|
348
|
+
var x = this.y1p_1 * 3.141592653589793 / 180.0;
|
|
348
349
|
return Math.tan(x);
|
|
349
350
|
};
|
|
350
|
-
protoOf(Cyclist).
|
|
351
|
-
return this.
|
|
351
|
+
protoOf(Cyclist).b1q = function () {
|
|
352
|
+
return this.v1p_1 * 9.8;
|
|
352
353
|
};
|
|
353
|
-
protoOf(Cyclist).
|
|
354
|
-
return this.
|
|
354
|
+
protoOf(Cyclist).c1q = function () {
|
|
355
|
+
return this.z1p_1 / 3.6;
|
|
355
356
|
};
|
|
356
357
|
protoOf(Cyclist).toString = function () {
|
|
357
|
-
return 'Cyclist(massKg=' + this.
|
|
358
|
+
return 'Cyclist(massKg=' + this.u1p_1 + ', maxBrakeG=' + this.v1p_1 + ', cd=' + this.w1p_1 + ', frontalAreaM2=' + this.x1p_1 + ', maxLeanAngleDeg=' + this.y1p_1 + ', maxSpeedKmH=' + this.z1p_1 + ')';
|
|
358
359
|
};
|
|
359
360
|
protoOf(Cyclist).hashCode = function () {
|
|
360
|
-
var result = getNumberHashCode(this.
|
|
361
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
362
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
363
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
364
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
365
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
361
|
+
var result = getNumberHashCode(this.u1p_1);
|
|
362
|
+
result = imul(result, 31) + getNumberHashCode(this.v1p_1) | 0;
|
|
363
|
+
result = imul(result, 31) + getNumberHashCode(this.w1p_1) | 0;
|
|
364
|
+
result = imul(result, 31) + getNumberHashCode(this.x1p_1) | 0;
|
|
365
|
+
result = imul(result, 31) + getNumberHashCode(this.y1p_1) | 0;
|
|
366
|
+
result = imul(result, 31) + getNumberHashCode(this.z1p_1) | 0;
|
|
366
367
|
return result;
|
|
367
368
|
};
|
|
368
369
|
protoOf(Cyclist).equals = function (other) {
|
|
@@ -370,17 +371,17 @@
|
|
|
370
371
|
return true;
|
|
371
372
|
if (!(other instanceof Cyclist))
|
|
372
373
|
return false;
|
|
373
|
-
if (!equals(this.
|
|
374
|
+
if (!equals(this.u1p_1, other.u1p_1))
|
|
374
375
|
return false;
|
|
375
|
-
if (!equals(this.
|
|
376
|
+
if (!equals(this.v1p_1, other.v1p_1))
|
|
376
377
|
return false;
|
|
377
|
-
if (!equals(this.
|
|
378
|
+
if (!equals(this.w1p_1, other.w1p_1))
|
|
378
379
|
return false;
|
|
379
|
-
if (!equals(this.
|
|
380
|
+
if (!equals(this.x1p_1, other.x1p_1))
|
|
380
381
|
return false;
|
|
381
|
-
if (!equals(this.
|
|
382
|
+
if (!equals(this.y1p_1, other.y1p_1))
|
|
382
383
|
return false;
|
|
383
|
-
if (!equals(this.
|
|
384
|
+
if (!equals(this.z1p_1, other.z1p_1))
|
|
384
385
|
return false;
|
|
385
386
|
return true;
|
|
386
387
|
};
|
|
@@ -388,17 +389,17 @@
|
|
|
388
389
|
enabled = enabled === VOID ? true : enabled;
|
|
389
390
|
toleranceM = toleranceM === VOID ? 10.0 : toleranceM;
|
|
390
391
|
zExaggeration = zExaggeration === VOID ? 3.0 : zExaggeration;
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
392
|
+
this.d1q_1 = enabled;
|
|
393
|
+
this.e1q_1 = toleranceM;
|
|
394
|
+
this.f1q_1 = zExaggeration;
|
|
394
395
|
}
|
|
395
396
|
protoOf(SimplifyPathOptions).toString = function () {
|
|
396
|
-
return 'SimplifyPathOptions(enabled=' + this.
|
|
397
|
+
return 'SimplifyPathOptions(enabled=' + this.d1q_1 + ', toleranceM=' + this.e1q_1 + ', zExaggeration=' + this.f1q_1 + ')';
|
|
397
398
|
};
|
|
398
399
|
protoOf(SimplifyPathOptions).hashCode = function () {
|
|
399
|
-
var result = getBooleanHashCode(this.
|
|
400
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
401
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
400
|
+
var result = getBooleanHashCode(this.d1q_1);
|
|
401
|
+
result = imul(result, 31) + getNumberHashCode(this.e1q_1) | 0;
|
|
402
|
+
result = imul(result, 31) + getNumberHashCode(this.f1q_1) | 0;
|
|
402
403
|
return result;
|
|
403
404
|
};
|
|
404
405
|
protoOf(SimplifyPathOptions).equals = function (other) {
|
|
@@ -406,17 +407,17 @@
|
|
|
406
407
|
return true;
|
|
407
408
|
if (!(other instanceof SimplifyPathOptions))
|
|
408
409
|
return false;
|
|
409
|
-
if (!(this.
|
|
410
|
+
if (!(this.d1q_1 === other.d1q_1))
|
|
410
411
|
return false;
|
|
411
|
-
if (!equals(this.
|
|
412
|
+
if (!equals(this.e1q_1, other.e1q_1))
|
|
412
413
|
return false;
|
|
413
|
-
if (!equals(this.
|
|
414
|
+
if (!equals(this.f1q_1, other.f1q_1))
|
|
414
415
|
return false;
|
|
415
416
|
return true;
|
|
416
417
|
};
|
|
417
418
|
function Companion_2() {
|
|
418
419
|
Companion_instance_2 = this;
|
|
419
|
-
this.
|
|
420
|
+
this.g1q_1 = new EnhanceOptions();
|
|
420
421
|
}
|
|
421
422
|
var Companion_instance_2;
|
|
422
423
|
function Companion_getInstance_3() {
|
|
@@ -431,21 +432,21 @@
|
|
|
431
432
|
virtualizeTrack = virtualizeTrack === VOID ? true : virtualizeTrack;
|
|
432
433
|
computeOnePointPerSecond = computeOnePointPerSecond === VOID ? true : computeOnePointPerSecond;
|
|
433
434
|
simplifyPath = simplifyPath === VOID ? new SimplifyPathOptions() : simplifyPath;
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
435
|
+
this.h1q_1 = fixElevation;
|
|
436
|
+
this.i1q_1 = computeMaxSpeeds;
|
|
437
|
+
this.j1q_1 = virtualizeTrack;
|
|
438
|
+
this.k1q_1 = computeOnePointPerSecond;
|
|
439
|
+
this.l1q_1 = simplifyPath;
|
|
439
440
|
}
|
|
440
441
|
protoOf(EnhanceOptions).toString = function () {
|
|
441
|
-
return 'EnhanceOptions(fixElevation=' + this.
|
|
442
|
+
return 'EnhanceOptions(fixElevation=' + this.h1q_1 + ', computeMaxSpeeds=' + this.i1q_1 + ', virtualizeTrack=' + this.j1q_1 + ', computeOnePointPerSecond=' + this.k1q_1 + ', simplifyPath=' + this.l1q_1.toString() + ')';
|
|
442
443
|
};
|
|
443
444
|
protoOf(EnhanceOptions).hashCode = function () {
|
|
444
|
-
var result = getBooleanHashCode(this.
|
|
445
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
446
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
447
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
448
|
-
result = imul(result, 31) + this.
|
|
445
|
+
var result = getBooleanHashCode(this.h1q_1);
|
|
446
|
+
result = imul(result, 31) + getBooleanHashCode(this.i1q_1) | 0;
|
|
447
|
+
result = imul(result, 31) + getBooleanHashCode(this.j1q_1) | 0;
|
|
448
|
+
result = imul(result, 31) + getBooleanHashCode(this.k1q_1) | 0;
|
|
449
|
+
result = imul(result, 31) + this.l1q_1.hashCode() | 0;
|
|
449
450
|
return result;
|
|
450
451
|
};
|
|
451
452
|
protoOf(EnhanceOptions).equals = function (other) {
|
|
@@ -453,100 +454,100 @@
|
|
|
453
454
|
return true;
|
|
454
455
|
if (!(other instanceof EnhanceOptions))
|
|
455
456
|
return false;
|
|
456
|
-
if (!(this.
|
|
457
|
+
if (!(this.h1q_1 === other.h1q_1))
|
|
457
458
|
return false;
|
|
458
|
-
if (!(this.
|
|
459
|
+
if (!(this.i1q_1 === other.i1q_1))
|
|
459
460
|
return false;
|
|
460
|
-
if (!(this.
|
|
461
|
+
if (!(this.j1q_1 === other.j1q_1))
|
|
461
462
|
return false;
|
|
462
|
-
if (!(this.
|
|
463
|
+
if (!(this.k1q_1 === other.k1q_1))
|
|
463
464
|
return false;
|
|
464
|
-
if (!this.
|
|
465
|
+
if (!this.l1q_1.equals(other.l1q_1))
|
|
465
466
|
return false;
|
|
466
467
|
return true;
|
|
467
468
|
};
|
|
468
469
|
function $enhanceCourseCOROUTINE$(_this__u8e3s4, course, options, elevationProvider, resultContinuation) {
|
|
469
470
|
CoroutineImpl.call(this, resultContinuation);
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
472
|
-
this.
|
|
473
|
-
this.
|
|
471
|
+
this.u1q_1 = _this__u8e3s4;
|
|
472
|
+
this.v1q_1 = course;
|
|
473
|
+
this.w1q_1 = options;
|
|
474
|
+
this.x1q_1 = elevationProvider;
|
|
474
475
|
}
|
|
475
|
-
protoOf($enhanceCourseCOROUTINE$).
|
|
476
|
-
var suspendResult = this.
|
|
476
|
+
protoOf($enhanceCourseCOROUTINE$).o6 = function () {
|
|
477
|
+
var suspendResult = this.i6_1;
|
|
477
478
|
$sm: do
|
|
478
479
|
try {
|
|
479
|
-
var tmp = this.
|
|
480
|
+
var tmp = this.g6_1;
|
|
480
481
|
switch (tmp) {
|
|
481
482
|
case 0:
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
if (this.
|
|
486
|
-
this.
|
|
487
|
-
suspendResult = ElevationStep_instance.
|
|
483
|
+
this.h6_1 = 3;
|
|
484
|
+
this.y1q_1 = this.v1q_1.p1p();
|
|
485
|
+
this.y1q_1 = PointPerDistance_instance.z1q(this.y1q_1, -1.0, 30.0);
|
|
486
|
+
if (this.w1q_1.h1q_1 && !(this.x1q_1 == null)) {
|
|
487
|
+
this.g6_1 = 1;
|
|
488
|
+
suspendResult = ElevationStep_instance.b1r(this.y1q_1, this.x1q_1, this);
|
|
488
489
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
489
490
|
return suspendResult;
|
|
490
491
|
}
|
|
491
492
|
continue $sm;
|
|
492
493
|
} else {
|
|
493
|
-
this.
|
|
494
|
+
this.g6_1 = 2;
|
|
494
495
|
continue $sm;
|
|
495
496
|
}
|
|
496
497
|
|
|
497
498
|
case 1:
|
|
498
|
-
this.
|
|
499
|
-
this.
|
|
499
|
+
this.y1q_1 = suspendResult;
|
|
500
|
+
this.g6_1 = 2;
|
|
500
501
|
continue $sm;
|
|
501
502
|
case 2:
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
504
|
-
var working = this.
|
|
505
|
-
if (this.
|
|
506
|
-
MaxSpeedComputer_instance.
|
|
503
|
+
this.y1q_1 = PointPerDistance_instance.z1q(this.y1q_1, 1.0, 2.0);
|
|
504
|
+
this.y1q_1 = ElevationStep_instance.c1r(this.y1q_1);
|
|
505
|
+
var working = this.v1q_1.t1p(this.v1q_1.k1p_1.i1p(this.y1q_1));
|
|
506
|
+
if (this.w1q_1.i1q_1 || this.w1q_1.j1q_1) {
|
|
507
|
+
MaxSpeedComputer_instance.i1r(working.k1p_1);
|
|
507
508
|
}
|
|
508
509
|
|
|
509
|
-
if (this.
|
|
510
|
-
this.
|
|
511
|
-
working = working.
|
|
510
|
+
if (this.w1q_1.j1q_1) {
|
|
511
|
+
this.y1q_1 = VirtualizeService_instance.k1r(working);
|
|
512
|
+
working = working.t1p(working.k1p_1.i1p(this.y1q_1));
|
|
512
513
|
}
|
|
513
514
|
|
|
514
|
-
if (this.
|
|
515
|
-
this.
|
|
515
|
+
if (this.w1q_1.k1q_1) {
|
|
516
|
+
this.y1q_1 = PointPerSecond_instance.l1r(this.y1q_1);
|
|
516
517
|
}
|
|
517
518
|
|
|
518
|
-
if (this.
|
|
519
|
-
this.
|
|
519
|
+
if (this.w1q_1.l1q_1.d1q_1) {
|
|
520
|
+
this.y1q_1 = PathSimplifier_instance.m1r(this.y1q_1, this.w1q_1.l1q_1.e1q_1, this.w1q_1.l1q_1.f1q_1);
|
|
520
521
|
}
|
|
521
522
|
|
|
522
|
-
return this.
|
|
523
|
+
return this.y1q_1;
|
|
523
524
|
case 3:
|
|
524
|
-
throw this.
|
|
525
|
+
throw this.j6_1;
|
|
525
526
|
}
|
|
526
527
|
} catch ($p) {
|
|
527
528
|
var e = $p;
|
|
528
|
-
if (this.
|
|
529
|
+
if (this.h6_1 === 3) {
|
|
529
530
|
throw e;
|
|
530
531
|
} else {
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
532
|
+
this.g6_1 = this.h6_1;
|
|
533
|
+
this.j6_1 = e;
|
|
533
534
|
}
|
|
534
535
|
}
|
|
535
536
|
while (true);
|
|
536
537
|
};
|
|
537
538
|
function Enhancer() {
|
|
538
539
|
}
|
|
539
|
-
protoOf(Enhancer).
|
|
540
|
+
protoOf(Enhancer).n1r = function (path) {
|
|
540
541
|
return new CoursePhysics(new Course(path), RhoProviderEstimate_instance, AeroProviderConstant_instance, WindProviderNone_instance, new PowerProviderConstant(280.0));
|
|
541
542
|
};
|
|
542
|
-
protoOf(Enhancer).
|
|
543
|
-
return this.
|
|
543
|
+
protoOf(Enhancer).o1r = function (path, elevationProvider, options, $completion) {
|
|
544
|
+
return this.p1r(this.n1r(path), options, elevationProvider, $completion);
|
|
544
545
|
};
|
|
545
|
-
protoOf(Enhancer).
|
|
546
|
+
protoOf(Enhancer).p1r = function (course, options, elevationProvider, $completion) {
|
|
546
547
|
var tmp = new $enhanceCourseCOROUTINE$(this, course, options, elevationProvider, $completion);
|
|
547
|
-
tmp.
|
|
548
|
-
tmp.
|
|
549
|
-
return tmp.
|
|
548
|
+
tmp.i6_1 = Unit_instance;
|
|
549
|
+
tmp.j6_1 = null;
|
|
550
|
+
return tmp.o6();
|
|
550
551
|
};
|
|
551
552
|
var Enhancer_instance;
|
|
552
553
|
function Enhancer_getInstance() {
|
|
@@ -554,15 +555,15 @@
|
|
|
554
555
|
}
|
|
555
556
|
function GpxDocument(name, tracks) {
|
|
556
557
|
name = name === VOID ? 'noname' : name;
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
558
|
+
this.q1r_1 = name;
|
|
559
|
+
this.r1r_1 = tracks;
|
|
559
560
|
}
|
|
560
561
|
protoOf(GpxDocument).toString = function () {
|
|
561
|
-
return 'GpxDocument(name=' + this.
|
|
562
|
+
return 'GpxDocument(name=' + this.q1r_1 + ', tracks=' + toString(this.r1r_1) + ')';
|
|
562
563
|
};
|
|
563
564
|
protoOf(GpxDocument).hashCode = function () {
|
|
564
|
-
var result = getStringHashCode(this.
|
|
565
|
-
result = imul(result, 31) + hashCode(this.
|
|
565
|
+
var result = getStringHashCode(this.q1r_1);
|
|
566
|
+
result = imul(result, 31) + hashCode(this.r1r_1) | 0;
|
|
566
567
|
return result;
|
|
567
568
|
};
|
|
568
569
|
protoOf(GpxDocument).equals = function (other) {
|
|
@@ -570,26 +571,26 @@
|
|
|
570
571
|
return true;
|
|
571
572
|
if (!(other instanceof GpxDocument))
|
|
572
573
|
return false;
|
|
573
|
-
if (!(this.
|
|
574
|
+
if (!(this.q1r_1 === other.q1r_1))
|
|
574
575
|
return false;
|
|
575
|
-
if (!equals(this.
|
|
576
|
+
if (!equals(this.r1r_1, other.r1r_1))
|
|
576
577
|
return false;
|
|
577
578
|
return true;
|
|
578
579
|
};
|
|
579
580
|
function GpxTrack(name, type, points) {
|
|
580
581
|
name = name === VOID ? null : name;
|
|
581
582
|
type = type === VOID ? null : type;
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
583
|
+
this.s1r_1 = name;
|
|
584
|
+
this.t1r_1 = type;
|
|
585
|
+
this.u1r_1 = points;
|
|
585
586
|
}
|
|
586
587
|
protoOf(GpxTrack).toString = function () {
|
|
587
|
-
return 'GpxTrack(name=' + this.
|
|
588
|
+
return 'GpxTrack(name=' + this.s1r_1 + ', type=' + this.t1r_1 + ', points=' + toString(this.u1r_1) + ')';
|
|
588
589
|
};
|
|
589
590
|
protoOf(GpxTrack).hashCode = function () {
|
|
590
|
-
var result = this.
|
|
591
|
-
result = imul(result, 31) + (this.
|
|
592
|
-
result = imul(result, 31) + hashCode(this.
|
|
591
|
+
var result = this.s1r_1 == null ? 0 : getStringHashCode(this.s1r_1);
|
|
592
|
+
result = imul(result, 31) + (this.t1r_1 == null ? 0 : getStringHashCode(this.t1r_1)) | 0;
|
|
593
|
+
result = imul(result, 31) + hashCode(this.u1r_1) | 0;
|
|
593
594
|
return result;
|
|
594
595
|
};
|
|
595
596
|
protoOf(GpxTrack).equals = function (other) {
|
|
@@ -597,11 +598,11 @@
|
|
|
597
598
|
return true;
|
|
598
599
|
if (!(other instanceof GpxTrack))
|
|
599
600
|
return false;
|
|
600
|
-
if (!(this.
|
|
601
|
+
if (!(this.s1r_1 == other.s1r_1))
|
|
601
602
|
return false;
|
|
602
|
-
if (!(this.
|
|
603
|
+
if (!(this.t1r_1 == other.t1r_1))
|
|
603
604
|
return false;
|
|
604
|
-
if (!equals(this.
|
|
605
|
+
if (!equals(this.u1r_1, other.u1r_1))
|
|
605
606
|
return false;
|
|
606
607
|
return true;
|
|
607
608
|
};
|
|
@@ -612,27 +613,27 @@
|
|
|
612
613
|
cadence = cadence === VOID ? null : cadence;
|
|
613
614
|
temperatureC = temperatureC === VOID ? null : temperatureC;
|
|
614
615
|
powerW = powerW === VOID ? null : powerW;
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
616
|
+
this.v1r_1 = latitudeDeg;
|
|
617
|
+
this.w1r_1 = longitudeDeg;
|
|
618
|
+
this.x1r_1 = elevationM;
|
|
619
|
+
this.y1r_1 = timeEpochMs;
|
|
620
|
+
this.z1r_1 = heartRate;
|
|
621
|
+
this.a1s_1 = cadence;
|
|
622
|
+
this.b1s_1 = temperatureC;
|
|
623
|
+
this.c1s_1 = powerW;
|
|
623
624
|
}
|
|
624
625
|
protoOf(GpxTrackPoint).toString = function () {
|
|
625
|
-
return 'GpxTrackPoint(latitudeDeg=' + this.
|
|
626
|
+
return 'GpxTrackPoint(latitudeDeg=' + this.v1r_1 + ', longitudeDeg=' + this.w1r_1 + ', elevationM=' + this.x1r_1 + ', timeEpochMs=' + toString_0(this.y1r_1) + ', heartRate=' + this.z1r_1 + ', cadence=' + this.a1s_1 + ', temperatureC=' + this.b1s_1 + ', powerW=' + this.c1s_1 + ')';
|
|
626
627
|
};
|
|
627
628
|
protoOf(GpxTrackPoint).hashCode = function () {
|
|
628
|
-
var result = getNumberHashCode(this.
|
|
629
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
630
|
-
result = imul(result, 31) + (this.
|
|
631
|
-
result = imul(result, 31) + (this.
|
|
632
|
-
result = imul(result, 31) + (this.
|
|
633
|
-
result = imul(result, 31) + (this.
|
|
634
|
-
result = imul(result, 31) + (this.
|
|
635
|
-
result = imul(result, 31) + (this.
|
|
629
|
+
var result = getNumberHashCode(this.v1r_1);
|
|
630
|
+
result = imul(result, 31) + getNumberHashCode(this.w1r_1) | 0;
|
|
631
|
+
result = imul(result, 31) + (this.x1r_1 == null ? 0 : getNumberHashCode(this.x1r_1)) | 0;
|
|
632
|
+
result = imul(result, 31) + (this.y1r_1 == null ? 0 : this.y1r_1.hashCode()) | 0;
|
|
633
|
+
result = imul(result, 31) + (this.z1r_1 == null ? 0 : this.z1r_1) | 0;
|
|
634
|
+
result = imul(result, 31) + (this.a1s_1 == null ? 0 : this.a1s_1) | 0;
|
|
635
|
+
result = imul(result, 31) + (this.b1s_1 == null ? 0 : getNumberHashCode(this.b1s_1)) | 0;
|
|
636
|
+
result = imul(result, 31) + (this.c1s_1 == null ? 0 : getNumberHashCode(this.c1s_1)) | 0;
|
|
636
637
|
return result;
|
|
637
638
|
};
|
|
638
639
|
protoOf(GpxTrackPoint).equals = function (other) {
|
|
@@ -640,21 +641,21 @@
|
|
|
640
641
|
return true;
|
|
641
642
|
if (!(other instanceof GpxTrackPoint))
|
|
642
643
|
return false;
|
|
643
|
-
if (!equals(this.
|
|
644
|
+
if (!equals(this.v1r_1, other.v1r_1))
|
|
644
645
|
return false;
|
|
645
|
-
if (!equals(this.
|
|
646
|
+
if (!equals(this.w1r_1, other.w1r_1))
|
|
646
647
|
return false;
|
|
647
|
-
if (!equals(this.
|
|
648
|
+
if (!equals(this.x1r_1, other.x1r_1))
|
|
648
649
|
return false;
|
|
649
|
-
if (!equals(this.
|
|
650
|
+
if (!equals(this.y1r_1, other.y1r_1))
|
|
650
651
|
return false;
|
|
651
|
-
if (!(this.
|
|
652
|
+
if (!(this.z1r_1 == other.z1r_1))
|
|
652
653
|
return false;
|
|
653
|
-
if (!(this.
|
|
654
|
+
if (!(this.a1s_1 == other.a1s_1))
|
|
654
655
|
return false;
|
|
655
|
-
if (!equals(this.
|
|
656
|
+
if (!equals(this.b1s_1, other.b1s_1))
|
|
656
657
|
return false;
|
|
657
|
-
if (!equals(this.
|
|
658
|
+
if (!equals(this.c1s_1, other.c1s_1))
|
|
658
659
|
return false;
|
|
659
660
|
return true;
|
|
660
661
|
};
|
|
@@ -663,7 +664,7 @@
|
|
|
663
664
|
type = type === VOID ? 'cycling' : type;
|
|
664
665
|
// Inline function 'kotlin.collections.List' call
|
|
665
666
|
// Inline function 'kotlin.collections.MutableList' call
|
|
666
|
-
var size = _this__u8e3s4.
|
|
667
|
+
var size = _this__u8e3s4.d1s_1;
|
|
667
668
|
var list = ArrayList_init_$Create$(size);
|
|
668
669
|
// Inline function 'kotlin.repeat' call
|
|
669
670
|
var inductionVariable = 0;
|
|
@@ -671,10 +672,10 @@
|
|
|
671
672
|
do {
|
|
672
673
|
var index = inductionVariable;
|
|
673
674
|
inductionVariable = inductionVariable + 1 | 0;
|
|
674
|
-
var tmp = _this__u8e3s4.
|
|
675
|
-
var tmp_0 = _this__u8e3s4.
|
|
675
|
+
var tmp = _this__u8e3s4.f1s(index) * MathConstants_getInstance().yv_1;
|
|
676
|
+
var tmp_0 = _this__u8e3s4.g1s(index) * MathConstants_getInstance().yv_1;
|
|
676
677
|
// Inline function 'kotlin.takeUnless' call
|
|
677
|
-
var this_0 = _this__u8e3s4.
|
|
678
|
+
var this_0 = _this__u8e3s4.h1s(index);
|
|
678
679
|
var tmp_1;
|
|
679
680
|
if (!isNaN_0(this_0)) {
|
|
680
681
|
tmp_1 = this_0;
|
|
@@ -683,7 +684,7 @@
|
|
|
683
684
|
}
|
|
684
685
|
var tmp_2 = tmp_1;
|
|
685
686
|
// Inline function 'kotlin.takeIf' call
|
|
686
|
-
var this_1 = numberToLong(_this__u8e3s4.
|
|
687
|
+
var this_1 = numberToLong(_this__u8e3s4.i1s(index));
|
|
687
688
|
var tmp_3;
|
|
688
689
|
if (compare(this_1, new Long(0, 0)) > 0) {
|
|
689
690
|
tmp_3 = this_1;
|
|
@@ -692,7 +693,7 @@
|
|
|
692
693
|
}
|
|
693
694
|
var tmp_4 = tmp_3;
|
|
694
695
|
// Inline function 'kotlin.takeUnless' call
|
|
695
|
-
var this_2 = _this__u8e3s4.
|
|
696
|
+
var this_2 = _this__u8e3s4.j1s(index);
|
|
696
697
|
var tmp_5;
|
|
697
698
|
if (!(isNaN_0(this_2) || this_2 === 0.0)) {
|
|
698
699
|
tmp_5 = this_2;
|
|
@@ -702,7 +703,7 @@
|
|
|
702
703
|
var tmp0_safe_receiver = tmp_5;
|
|
703
704
|
var tmp_6 = tmp0_safe_receiver == null ? null : roundToInt(tmp0_safe_receiver);
|
|
704
705
|
// Inline function 'kotlin.takeUnless' call
|
|
705
|
-
var this_3 = _this__u8e3s4.
|
|
706
|
+
var this_3 = _this__u8e3s4.k1s(index);
|
|
706
707
|
var tmp_7;
|
|
707
708
|
if (!(isNaN_0(this_3) || this_3 === 0.0)) {
|
|
708
709
|
tmp_7 = this_3;
|
|
@@ -712,7 +713,7 @@
|
|
|
712
713
|
var tmp1_safe_receiver = tmp_7;
|
|
713
714
|
var tmp_8 = tmp1_safe_receiver == null ? null : roundToInt(tmp1_safe_receiver);
|
|
714
715
|
// Inline function 'kotlin.takeUnless' call
|
|
715
|
-
var this_4 = _this__u8e3s4.
|
|
716
|
+
var this_4 = _this__u8e3s4.l1s(index);
|
|
716
717
|
var tmp_9;
|
|
717
718
|
if (!(isNaN_0(this_4) || this_4 === 0.0)) {
|
|
718
719
|
tmp_9 = this_4;
|
|
@@ -721,7 +722,7 @@
|
|
|
721
722
|
}
|
|
722
723
|
var tmp_10 = tmp_9;
|
|
723
724
|
// Inline function 'kotlin.takeUnless' call
|
|
724
|
-
var this_5 = _this__u8e3s4.
|
|
725
|
+
var this_5 = _this__u8e3s4.m1s(index);
|
|
725
726
|
var tmp_11;
|
|
726
727
|
if (!(isNaN_0(this_5) || this_5 === 0.0)) {
|
|
727
728
|
tmp_11 = this_5;
|
|
@@ -730,7 +731,7 @@
|
|
|
730
731
|
}
|
|
731
732
|
var tmp$ret$15 = tmp_11;
|
|
732
733
|
var tmp$ret$4 = new GpxTrackPoint(tmp, tmp_0, tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, tmp$ret$15);
|
|
733
|
-
list.
|
|
734
|
+
list.n(tmp$ret$4);
|
|
734
735
|
}
|
|
735
736
|
while (inductionVariable < size);
|
|
736
737
|
var points = list;
|
|
@@ -742,11 +743,11 @@
|
|
|
742
743
|
return new GpxDocument(name, listOf(toGpxTrack(_this__u8e3s4, trackName)));
|
|
743
744
|
}
|
|
744
745
|
function parseDocument($this, reader) {
|
|
745
|
-
while (reader.
|
|
746
|
-
var ev = reader.
|
|
746
|
+
while (reader.i()) {
|
|
747
|
+
var ev = reader.j();
|
|
747
748
|
if (ev.equals(EventType_START_ELEMENT_getInstance())) {
|
|
748
|
-
if (!(reader.
|
|
749
|
-
throw IllegalArgumentException_init_$Create$('Invalid GPX file: missing gpx root element (found ' + reader.
|
|
749
|
+
if (!(reader.u16() === 'gpx')) {
|
|
750
|
+
throw IllegalArgumentException_init_$Create$('Invalid GPX file: missing gpx root element (found ' + reader.u16() + ')');
|
|
750
751
|
}
|
|
751
752
|
return parseGpxRoot($this, reader);
|
|
752
753
|
}
|
|
@@ -757,18 +758,18 @@
|
|
|
757
758
|
var name = 'noname';
|
|
758
759
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
759
760
|
var tracks = ArrayList_init_$Create$_0();
|
|
760
|
-
while (reader.
|
|
761
|
-
var ev = reader.
|
|
762
|
-
switch (ev.
|
|
761
|
+
while (reader.i()) {
|
|
762
|
+
var ev = reader.j();
|
|
763
|
+
switch (ev.n1_1) {
|
|
763
764
|
case 1:
|
|
764
|
-
switch (reader.
|
|
765
|
+
switch (reader.u16()) {
|
|
765
766
|
case 'metadata':
|
|
766
767
|
var metaName = parseMetadataName($this, reader);
|
|
767
768
|
if (!(metaName == null))
|
|
768
769
|
name = metaName;
|
|
769
770
|
break;
|
|
770
771
|
case 'trk':
|
|
771
|
-
tracks.
|
|
772
|
+
tracks.n(parseTrack($this, reader));
|
|
772
773
|
break;
|
|
773
774
|
default:
|
|
774
775
|
skipElement($this, reader);
|
|
@@ -786,11 +787,11 @@
|
|
|
786
787
|
}
|
|
787
788
|
function parseMetadataName($this, reader) {
|
|
788
789
|
var name = null;
|
|
789
|
-
while (reader.
|
|
790
|
-
var ev = reader.
|
|
791
|
-
switch (ev.
|
|
790
|
+
while (reader.i()) {
|
|
791
|
+
var ev = reader.j();
|
|
792
|
+
switch (ev.n1_1) {
|
|
792
793
|
case 1:
|
|
793
|
-
if (reader.
|
|
794
|
+
if (reader.u16() === 'name' && name == null) {
|
|
794
795
|
// Inline function 'kotlin.text.trim' call
|
|
795
796
|
var this_0 = readElementText($this, reader);
|
|
796
797
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
@@ -821,11 +822,11 @@
|
|
|
821
822
|
var type = null;
|
|
822
823
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
823
824
|
var points = ArrayList_init_$Create$_0();
|
|
824
|
-
while (reader.
|
|
825
|
-
var ev = reader.
|
|
826
|
-
switch (ev.
|
|
825
|
+
while (reader.i()) {
|
|
826
|
+
var ev = reader.j();
|
|
827
|
+
switch (ev.n1_1) {
|
|
827
828
|
case 1:
|
|
828
|
-
switch (reader.
|
|
829
|
+
switch (reader.u16()) {
|
|
829
830
|
case 'name':
|
|
830
831
|
// Inline function 'kotlin.text.trim' call
|
|
831
832
|
|
|
@@ -880,12 +881,12 @@
|
|
|
880
881
|
return new GpxTrack(name, type, points);
|
|
881
882
|
}
|
|
882
883
|
function parseTrackSegment($this, reader, accum) {
|
|
883
|
-
while (reader.
|
|
884
|
-
var ev = reader.
|
|
885
|
-
switch (ev.
|
|
884
|
+
while (reader.i()) {
|
|
885
|
+
var ev = reader.j();
|
|
886
|
+
switch (ev.n1_1) {
|
|
886
887
|
case 1:
|
|
887
|
-
if (reader.
|
|
888
|
-
accum.
|
|
888
|
+
if (reader.u16() === 'trkpt') {
|
|
889
|
+
accum.n(parseTrackPoint($this, reader));
|
|
889
890
|
} else {
|
|
890
891
|
skipElement($this, reader);
|
|
891
892
|
}
|
|
@@ -899,8 +900,8 @@
|
|
|
899
900
|
}
|
|
900
901
|
}
|
|
901
902
|
function parseTrackPoint($this, reader) {
|
|
902
|
-
var latStr = reader.
|
|
903
|
-
var lonStr = reader.
|
|
903
|
+
var latStr = reader.f17(null, 'lat');
|
|
904
|
+
var lonStr = reader.f17(null, 'lon');
|
|
904
905
|
var tmp;
|
|
905
906
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
906
907
|
if (latStr == null || isBlank(latStr)) {
|
|
@@ -931,11 +932,11 @@
|
|
|
931
932
|
var elevation = null;
|
|
932
933
|
var timeMs = null;
|
|
933
934
|
var ext = new ExtensionsAccumulator();
|
|
934
|
-
while (reader.
|
|
935
|
-
var ev = reader.
|
|
936
|
-
switch (ev.
|
|
935
|
+
while (reader.i()) {
|
|
936
|
+
var ev = reader.j();
|
|
937
|
+
switch (ev.n1_1) {
|
|
937
938
|
case 1:
|
|
938
|
-
switch (reader.
|
|
939
|
+
switch (reader.u16()) {
|
|
939
940
|
case 'ele':
|
|
940
941
|
// Inline function 'kotlin.text.trim' call
|
|
941
942
|
|
|
@@ -969,19 +970,19 @@
|
|
|
969
970
|
|
|
970
971
|
break;
|
|
971
972
|
case 2:
|
|
972
|
-
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.
|
|
973
|
+
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.n1s_1, ext.o1s_1, ext.p1s_1, ext.q1s_1);
|
|
973
974
|
default:
|
|
974
975
|
break;
|
|
975
976
|
}
|
|
976
977
|
}
|
|
977
|
-
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.
|
|
978
|
+
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.n1s_1, ext.o1s_1, ext.p1s_1, ext.q1s_1);
|
|
978
979
|
}
|
|
979
980
|
function parseExtensions($this, reader, ext) {
|
|
980
|
-
while (reader.
|
|
981
|
-
var ev = reader.
|
|
982
|
-
switch (ev.
|
|
981
|
+
while (reader.i()) {
|
|
982
|
+
var ev = reader.j();
|
|
983
|
+
switch (ev.n1_1) {
|
|
983
984
|
case 1:
|
|
984
|
-
var ln = reader.
|
|
985
|
+
var ln = reader.u16();
|
|
985
986
|
// Inline function 'kotlin.text.lowercase' call
|
|
986
987
|
|
|
987
988
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -994,8 +995,8 @@
|
|
|
994
995
|
else {
|
|
995
996
|
// Inline function 'kotlin.let' call
|
|
996
997
|
var tmp = ext;
|
|
997
|
-
var tmp0_elvis_lhs = ext.
|
|
998
|
-
tmp.
|
|
998
|
+
var tmp0_elvis_lhs = ext.q1s_1;
|
|
999
|
+
tmp.q1s_1 = tmp0_elvis_lhs == null ? tmp2_safe_receiver : tmp0_elvis_lhs;
|
|
999
1000
|
}
|
|
1000
1001
|
|
|
1001
1002
|
break;
|
|
@@ -1006,8 +1007,8 @@
|
|
|
1006
1007
|
null;
|
|
1007
1008
|
else {
|
|
1008
1009
|
// Inline function 'kotlin.let' call
|
|
1009
|
-
if (ext.
|
|
1010
|
-
ext.
|
|
1010
|
+
if (ext.n1s_1 == null)
|
|
1011
|
+
ext.n1s_1 = numberToInt(tmp3_safe_receiver);
|
|
1011
1012
|
}
|
|
1012
1013
|
|
|
1013
1014
|
break;
|
|
@@ -1018,8 +1019,8 @@
|
|
|
1018
1019
|
null;
|
|
1019
1020
|
else {
|
|
1020
1021
|
// Inline function 'kotlin.let' call
|
|
1021
|
-
if (ext.
|
|
1022
|
-
ext.
|
|
1022
|
+
if (ext.o1s_1 == null)
|
|
1023
|
+
ext.o1s_1 = numberToInt(tmp4_safe_receiver);
|
|
1023
1024
|
}
|
|
1024
1025
|
|
|
1025
1026
|
break;
|
|
@@ -1032,8 +1033,8 @@
|
|
|
1032
1033
|
else {
|
|
1033
1034
|
// Inline function 'kotlin.let' call
|
|
1034
1035
|
var tmp_0 = ext;
|
|
1035
|
-
var tmp0_elvis_lhs_0 = ext.
|
|
1036
|
-
tmp_0.
|
|
1036
|
+
var tmp0_elvis_lhs_0 = ext.p1s_1;
|
|
1037
|
+
tmp_0.p1s_1 = tmp0_elvis_lhs_0 == null ? tmp5_safe_receiver : tmp0_elvis_lhs_0;
|
|
1037
1038
|
}
|
|
1038
1039
|
|
|
1039
1040
|
break;
|
|
@@ -1052,13 +1053,13 @@
|
|
|
1052
1053
|
}
|
|
1053
1054
|
function readElementText($this, reader) {
|
|
1054
1055
|
var sb = StringBuilder_init_$Create$();
|
|
1055
|
-
while (reader.
|
|
1056
|
-
var ev = reader.
|
|
1057
|
-
switch (ev.
|
|
1056
|
+
while (reader.i()) {
|
|
1057
|
+
var ev = reader.j();
|
|
1058
|
+
switch (ev.n1_1) {
|
|
1058
1059
|
case 4:
|
|
1059
1060
|
case 5:
|
|
1060
1061
|
case 9:
|
|
1061
|
-
sb.
|
|
1062
|
+
sb.u5(reader.z16());
|
|
1062
1063
|
break;
|
|
1063
1064
|
case 1:
|
|
1064
1065
|
skipElement($this, reader);
|
|
@@ -1079,8 +1080,8 @@
|
|
|
1079
1080
|
}
|
|
1080
1081
|
function skipElement($this, reader) {
|
|
1081
1082
|
var depth = 1;
|
|
1082
|
-
while (reader.
|
|
1083
|
-
switch (reader.
|
|
1083
|
+
while (reader.i() && depth > 0) {
|
|
1084
|
+
switch (reader.j().n1_1) {
|
|
1084
1085
|
case 1:
|
|
1085
1086
|
depth = depth + 1 | 0;
|
|
1086
1087
|
break;
|
|
@@ -1095,7 +1096,7 @@
|
|
|
1095
1096
|
function parseTimeIsoToMs($this, text) {
|
|
1096
1097
|
var tmp;
|
|
1097
1098
|
try {
|
|
1098
|
-
tmp = Companion_getInstance().
|
|
1099
|
+
tmp = Companion_getInstance().wc(text).ad();
|
|
1099
1100
|
} catch ($p) {
|
|
1100
1101
|
var tmp_0;
|
|
1101
1102
|
if ($p instanceof IllegalArgumentException) {
|
|
@@ -1118,22 +1119,22 @@
|
|
|
1118
1119
|
cadence = cadence === VOID ? null : cadence;
|
|
1119
1120
|
temperatureC = temperatureC === VOID ? null : temperatureC;
|
|
1120
1121
|
powerW = powerW === VOID ? null : powerW;
|
|
1121
|
-
this.
|
|
1122
|
-
this.
|
|
1123
|
-
this.
|
|
1124
|
-
this.
|
|
1122
|
+
this.n1s_1 = heartRate;
|
|
1123
|
+
this.o1s_1 = cadence;
|
|
1124
|
+
this.p1s_1 = temperatureC;
|
|
1125
|
+
this.q1s_1 = powerW;
|
|
1125
1126
|
}
|
|
1126
1127
|
function GpxParser() {
|
|
1127
1128
|
}
|
|
1128
|
-
protoOf(GpxParser).
|
|
1129
|
+
protoOf(GpxParser).r1s = function (xml) {
|
|
1129
1130
|
var tmp;
|
|
1130
1131
|
try {
|
|
1131
|
-
tmp = get_xmlStreaming().
|
|
1132
|
+
tmp = get_xmlStreaming().z17(xml);
|
|
1132
1133
|
} catch ($p) {
|
|
1133
1134
|
var tmp_0;
|
|
1134
1135
|
if ($p instanceof XmlException) {
|
|
1135
1136
|
var e = $p;
|
|
1136
|
-
throw IllegalArgumentException_init_$Create$_0('Invalid GPX XML: ' + e.
|
|
1137
|
+
throw IllegalArgumentException_init_$Create$_0('Invalid GPX XML: ' + e.e(), e);
|
|
1137
1138
|
} else {
|
|
1138
1139
|
throw $p;
|
|
1139
1140
|
}
|
|
@@ -1142,17 +1143,17 @@
|
|
|
1142
1143
|
var tmp_1;
|
|
1143
1144
|
try {
|
|
1144
1145
|
tmp_1 = parseDocument(this, reader);
|
|
1145
|
-
} catch ($
|
|
1146
|
+
} catch ($p_0) {
|
|
1146
1147
|
var tmp_2;
|
|
1147
|
-
if ($
|
|
1148
|
-
var e_0 = $
|
|
1149
|
-
throw IllegalArgumentException_init_$Create$_0('Invalid GPX XML: ' + e_0.
|
|
1148
|
+
if ($p_0 instanceof XmlException) {
|
|
1149
|
+
var e_0 = $p_0;
|
|
1150
|
+
throw IllegalArgumentException_init_$Create$_0('Invalid GPX XML: ' + e_0.e(), e_0);
|
|
1150
1151
|
} else {
|
|
1151
|
-
throw $
|
|
1152
|
+
throw $p_0;
|
|
1152
1153
|
}
|
|
1153
1154
|
}
|
|
1154
1155
|
finally {
|
|
1155
|
-
reader.
|
|
1156
|
+
reader.h17();
|
|
1156
1157
|
}
|
|
1157
1158
|
return tmp_1;
|
|
1158
1159
|
};
|
|
@@ -1161,7 +1162,7 @@
|
|
|
1161
1162
|
return GpxParser_instance;
|
|
1162
1163
|
}
|
|
1163
1164
|
function firstTrackAsPath(_this__u8e3s4) {
|
|
1164
|
-
var tmp0_elvis_lhs = firstOrNull(_this__u8e3s4.
|
|
1165
|
+
var tmp0_elvis_lhs = firstOrNull(_this__u8e3s4.r1r_1);
|
|
1165
1166
|
var tmp;
|
|
1166
1167
|
if (tmp0_elvis_lhs == null) {
|
|
1167
1168
|
// Inline function 'kotlin.error' call
|
|
@@ -1174,182 +1175,182 @@
|
|
|
1174
1175
|
return toPath(track);
|
|
1175
1176
|
}
|
|
1176
1177
|
function toPath(_this__u8e3s4) {
|
|
1177
|
-
var n = _this__u8e3s4.
|
|
1178
|
+
var n = _this__u8e3s4.u1r_1.k();
|
|
1178
1179
|
var path = new Path(n);
|
|
1179
|
-
var iterator = _this__u8e3s4.
|
|
1180
|
+
var iterator = _this__u8e3s4.u1r_1.h();
|
|
1180
1181
|
var index = 0;
|
|
1181
|
-
while (iterator.
|
|
1182
|
+
while (iterator.i()) {
|
|
1182
1183
|
var i = index;
|
|
1183
1184
|
index = index + 1 | 0;
|
|
1184
|
-
var p = iterator.
|
|
1185
|
-
path.
|
|
1186
|
-
path.
|
|
1187
|
-
var tmp0_elvis_lhs = p.
|
|
1188
|
-
path.
|
|
1189
|
-
var tmp1_elvis_lhs = p.
|
|
1190
|
-
path.
|
|
1191
|
-
var tmp2_safe_receiver = p.
|
|
1185
|
+
var p = iterator.j();
|
|
1186
|
+
path.s1s(i, p.v1r_1 * MathConstants_getInstance().xv_1);
|
|
1187
|
+
path.t1s(i, p.w1r_1 * MathConstants_getInstance().xv_1);
|
|
1188
|
+
var tmp0_elvis_lhs = p.x1r_1;
|
|
1189
|
+
path.u1s(i, tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
|
|
1190
|
+
var tmp1_elvis_lhs = p.y1r_1;
|
|
1191
|
+
path.v1s(i, toNumber(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs));
|
|
1192
|
+
var tmp2_safe_receiver = p.c1s_1;
|
|
1192
1193
|
if (tmp2_safe_receiver == null)
|
|
1193
1194
|
null;
|
|
1194
1195
|
else {
|
|
1195
1196
|
// Inline function 'kotlin.let' call
|
|
1196
|
-
path.
|
|
1197
|
+
path.w1s(i, tmp2_safe_receiver);
|
|
1197
1198
|
}
|
|
1198
|
-
var tmp3_safe_receiver = p.
|
|
1199
|
+
var tmp3_safe_receiver = p.z1r_1;
|
|
1199
1200
|
if (tmp3_safe_receiver == null)
|
|
1200
1201
|
null;
|
|
1201
1202
|
else {
|
|
1202
1203
|
// Inline function 'kotlin.let' call
|
|
1203
|
-
path.
|
|
1204
|
+
path.x1s(i, tmp3_safe_receiver);
|
|
1204
1205
|
}
|
|
1205
|
-
var tmp4_safe_receiver = p.
|
|
1206
|
+
var tmp4_safe_receiver = p.a1s_1;
|
|
1206
1207
|
if (tmp4_safe_receiver == null)
|
|
1207
1208
|
null;
|
|
1208
1209
|
else {
|
|
1209
1210
|
// Inline function 'kotlin.let' call
|
|
1210
|
-
path.
|
|
1211
|
+
path.y1s(i, tmp4_safe_receiver);
|
|
1211
1212
|
}
|
|
1212
|
-
var tmp5_safe_receiver = p.
|
|
1213
|
+
var tmp5_safe_receiver = p.b1s_1;
|
|
1213
1214
|
if (tmp5_safe_receiver == null)
|
|
1214
1215
|
null;
|
|
1215
1216
|
else {
|
|
1216
1217
|
// Inline function 'kotlin.let' call
|
|
1217
|
-
path.
|
|
1218
|
+
path.z1s(i, tmp5_safe_receiver);
|
|
1218
1219
|
}
|
|
1219
1220
|
}
|
|
1220
|
-
path.
|
|
1221
|
+
path.j1t();
|
|
1221
1222
|
return path;
|
|
1222
1223
|
}
|
|
1223
1224
|
function writeDocument($this, w, document) {
|
|
1224
|
-
w.
|
|
1225
|
-
w.
|
|
1226
|
-
w.
|
|
1227
|
-
w.
|
|
1228
|
-
w.
|
|
1229
|
-
w.
|
|
1230
|
-
w.
|
|
1231
|
-
w.
|
|
1232
|
-
w.
|
|
1233
|
-
w.
|
|
1234
|
-
writeMetadata($this, w, document.
|
|
1235
|
-
var _iterator__ex2g4s = document.
|
|
1236
|
-
while (_iterator__ex2g4s.
|
|
1237
|
-
var track = _iterator__ex2g4s.
|
|
1225
|
+
w.z18('', 'http://www.topografix.com/GPX/1/1');
|
|
1226
|
+
w.z18('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
1227
|
+
w.z18('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
|
|
1228
|
+
w.b19('http://www.topografix.com/GPX/1/1', 'gpx', '');
|
|
1229
|
+
w.d19(null, 'version', null, '1.1');
|
|
1230
|
+
w.d19(null, 'creator', null, '@glandais/vcyclist');
|
|
1231
|
+
w.a19('', 'http://www.topografix.com/GPX/1/1');
|
|
1232
|
+
w.a19('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
1233
|
+
w.a19('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
|
|
1234
|
+
w.d19('http://www.w3.org/2001/XMLSchema-instance', 'schemaLocation', 'xsi', 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd');
|
|
1235
|
+
writeMetadata($this, w, document.q1r_1);
|
|
1236
|
+
var _iterator__ex2g4s = document.r1r_1.h();
|
|
1237
|
+
while (_iterator__ex2g4s.i()) {
|
|
1238
|
+
var track = _iterator__ex2g4s.j();
|
|
1238
1239
|
writeTrack($this, w, track);
|
|
1239
1240
|
}
|
|
1240
|
-
w.
|
|
1241
|
+
w.g19('http://www.topografix.com/GPX/1/1', 'gpx', '');
|
|
1241
1242
|
}
|
|
1242
1243
|
function writeMetadata($this, w, name) {
|
|
1243
|
-
w.
|
|
1244
|
+
w.b19('http://www.topografix.com/GPX/1/1', 'metadata', '');
|
|
1244
1245
|
writeSimpleText($this, w, 'name', name);
|
|
1245
|
-
w.
|
|
1246
|
+
w.g19('http://www.topografix.com/GPX/1/1', 'metadata', '');
|
|
1246
1247
|
}
|
|
1247
1248
|
function writeTrack($this, w, track) {
|
|
1248
|
-
w.
|
|
1249
|
-
var tmp0_safe_receiver = track.
|
|
1249
|
+
w.b19('http://www.topografix.com/GPX/1/1', 'trk', '');
|
|
1250
|
+
var tmp0_safe_receiver = track.s1r_1;
|
|
1250
1251
|
if (tmp0_safe_receiver == null)
|
|
1251
1252
|
null;
|
|
1252
1253
|
else {
|
|
1253
1254
|
// Inline function 'kotlin.let' call
|
|
1254
1255
|
writeSimpleText(GpxWriter_instance, w, 'name', tmp0_safe_receiver);
|
|
1255
1256
|
}
|
|
1256
|
-
var tmp1_safe_receiver = track.
|
|
1257
|
+
var tmp1_safe_receiver = track.t1r_1;
|
|
1257
1258
|
if (tmp1_safe_receiver == null)
|
|
1258
1259
|
null;
|
|
1259
1260
|
else {
|
|
1260
1261
|
// Inline function 'kotlin.let' call
|
|
1261
1262
|
writeSimpleText(GpxWriter_instance, w, 'type', tmp1_safe_receiver);
|
|
1262
1263
|
}
|
|
1263
|
-
w.
|
|
1264
|
-
var _iterator__ex2g4s = track.
|
|
1265
|
-
while (_iterator__ex2g4s.
|
|
1266
|
-
var p = _iterator__ex2g4s.
|
|
1264
|
+
w.b19('http://www.topografix.com/GPX/1/1', 'trkseg', '');
|
|
1265
|
+
var _iterator__ex2g4s = track.u1r_1.h();
|
|
1266
|
+
while (_iterator__ex2g4s.i()) {
|
|
1267
|
+
var p = _iterator__ex2g4s.j();
|
|
1267
1268
|
writeTrackPoint($this, w, p);
|
|
1268
1269
|
}
|
|
1269
|
-
w.
|
|
1270
|
-
w.
|
|
1270
|
+
w.g19('http://www.topografix.com/GPX/1/1', 'trkseg', '');
|
|
1271
|
+
w.g19('http://www.topografix.com/GPX/1/1', 'trk', '');
|
|
1271
1272
|
}
|
|
1272
1273
|
function writeTrackPoint($this, w, p) {
|
|
1273
|
-
w.
|
|
1274
|
-
w.
|
|
1275
|
-
w.
|
|
1276
|
-
var tmp0_safe_receiver = p.
|
|
1274
|
+
w.b19('http://www.topografix.com/GPX/1/1', 'trkpt', '');
|
|
1275
|
+
w.d19(null, 'lat', null, p.v1r_1.toString());
|
|
1276
|
+
w.d19(null, 'lon', null, p.w1r_1.toString());
|
|
1277
|
+
var tmp0_safe_receiver = p.y1r_1;
|
|
1277
1278
|
if (tmp0_safe_receiver == null)
|
|
1278
1279
|
null;
|
|
1279
1280
|
else {
|
|
1280
1281
|
// Inline function 'kotlin.let' call
|
|
1281
|
-
writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().
|
|
1282
|
+
writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().tc(tmp0_safe_receiver).toString());
|
|
1282
1283
|
}
|
|
1283
|
-
var tmp1_safe_receiver = p.
|
|
1284
|
+
var tmp1_safe_receiver = p.x1r_1;
|
|
1284
1285
|
if (tmp1_safe_receiver == null)
|
|
1285
1286
|
null;
|
|
1286
1287
|
else {
|
|
1287
1288
|
// Inline function 'kotlin.let' call
|
|
1288
1289
|
writeSimpleText(GpxWriter_instance, w, 'ele', tmp1_safe_receiver.toString());
|
|
1289
1290
|
}
|
|
1290
|
-
var hasGarminExt = !(p.
|
|
1291
|
-
var hasPower = !(p.
|
|
1291
|
+
var hasGarminExt = !(p.z1r_1 == null) || !(p.a1s_1 == null) || !(p.b1s_1 == null);
|
|
1292
|
+
var hasPower = !(p.c1s_1 == null);
|
|
1292
1293
|
if (hasGarminExt || hasPower) {
|
|
1293
|
-
w.
|
|
1294
|
+
w.b19('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
1294
1295
|
if (hasPower) {
|
|
1295
|
-
writeSimpleText($this, w, 'power', p.
|
|
1296
|
+
writeSimpleText($this, w, 'power', p.c1s_1.toString());
|
|
1296
1297
|
}
|
|
1297
1298
|
if (hasGarminExt) {
|
|
1298
|
-
w.
|
|
1299
|
-
var tmp2_safe_receiver = p.
|
|
1299
|
+
w.b19('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
|
|
1300
|
+
var tmp2_safe_receiver = p.z1r_1;
|
|
1300
1301
|
if (tmp2_safe_receiver == null)
|
|
1301
1302
|
null;
|
|
1302
1303
|
else {
|
|
1303
1304
|
// Inline function 'kotlin.let' call
|
|
1304
1305
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'hr', 'gpxtpx', tmp2_safe_receiver.toString());
|
|
1305
1306
|
}
|
|
1306
|
-
var tmp3_safe_receiver = p.
|
|
1307
|
+
var tmp3_safe_receiver = p.a1s_1;
|
|
1307
1308
|
if (tmp3_safe_receiver == null)
|
|
1308
1309
|
null;
|
|
1309
1310
|
else {
|
|
1310
1311
|
// Inline function 'kotlin.let' call
|
|
1311
1312
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'cad', 'gpxtpx', tmp3_safe_receiver.toString());
|
|
1312
1313
|
}
|
|
1313
|
-
var tmp4_safe_receiver = p.
|
|
1314
|
+
var tmp4_safe_receiver = p.b1s_1;
|
|
1314
1315
|
if (tmp4_safe_receiver == null)
|
|
1315
1316
|
null;
|
|
1316
1317
|
else {
|
|
1317
1318
|
// Inline function 'kotlin.let' call
|
|
1318
1319
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'atemp', 'gpxtpx', tmp4_safe_receiver.toString());
|
|
1319
1320
|
}
|
|
1320
|
-
w.
|
|
1321
|
+
w.g19('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
|
|
1321
1322
|
}
|
|
1322
|
-
w.
|
|
1323
|
+
w.g19('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
1323
1324
|
}
|
|
1324
|
-
w.
|
|
1325
|
+
w.g19('http://www.topografix.com/GPX/1/1', 'trkpt', '');
|
|
1325
1326
|
}
|
|
1326
1327
|
function writeSimpleText($this, w, localName, text) {
|
|
1327
|
-
w.
|
|
1328
|
-
w.
|
|
1329
|
-
w.
|
|
1328
|
+
w.b19('http://www.topografix.com/GPX/1/1', localName, '');
|
|
1329
|
+
w.c19(text);
|
|
1330
|
+
w.g19('http://www.topografix.com/GPX/1/1', localName, '');
|
|
1330
1331
|
}
|
|
1331
1332
|
function writeNamespaced($this, w, namespace, localName, prefix, text) {
|
|
1332
|
-
w.
|
|
1333
|
-
w.
|
|
1334
|
-
w.
|
|
1333
|
+
w.b19(namespace, localName, prefix);
|
|
1334
|
+
w.c19(text);
|
|
1335
|
+
w.g19(namespace, localName, prefix);
|
|
1335
1336
|
}
|
|
1336
1337
|
function GpxWriter() {
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
}
|
|
1345
|
-
protoOf(GpxWriter).
|
|
1338
|
+
this.k1t_1 = 'http://www.topografix.com/GPX/1/1';
|
|
1339
|
+
this.l1t_1 = 'http://www.w3.org/2001/XMLSchema-instance';
|
|
1340
|
+
this.m1t_1 = 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1';
|
|
1341
|
+
this.n1t_1 = 'xsi';
|
|
1342
|
+
this.o1t_1 = 'gpxtpx';
|
|
1343
|
+
this.p1t_1 = 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd';
|
|
1344
|
+
this.q1t_1 = '@glandais/vcyclist';
|
|
1345
|
+
}
|
|
1346
|
+
protoOf(GpxWriter).r1t = function (document) {
|
|
1346
1347
|
var out = StringBuilder_init_$Create$();
|
|
1347
|
-
out.
|
|
1348
|
+
out.u5('<?xml version="1.0" encoding="UTF-8"?>\n');
|
|
1348
1349
|
var writer = newGenericWriter(get_xmlStreaming(), out, false, XmlDeclMode_None_getInstance());
|
|
1349
1350
|
try {
|
|
1350
1351
|
writeDocument(this, writer, document);
|
|
1351
1352
|
}finally {
|
|
1352
|
-
writer.
|
|
1353
|
+
writer.h17();
|
|
1353
1354
|
}
|
|
1354
1355
|
return out.toString();
|
|
1355
1356
|
};
|
|
@@ -1358,17 +1359,17 @@
|
|
|
1358
1359
|
return GpxWriter_instance;
|
|
1359
1360
|
}
|
|
1360
1361
|
function copyAllSlots($this, source) {
|
|
1361
|
-
var out = new Path(source.
|
|
1362
|
+
var out = new Path(source.d1s_1);
|
|
1362
1363
|
var inductionVariable = 0;
|
|
1363
|
-
var last = source.
|
|
1364
|
+
var last = source.d1s_1;
|
|
1364
1365
|
if (inductionVariable < last)
|
|
1365
1366
|
do {
|
|
1366
1367
|
var i = inductionVariable;
|
|
1367
1368
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1368
|
-
var _iterator__ex2g4s = get_entries().
|
|
1369
|
-
while (_iterator__ex2g4s.
|
|
1370
|
-
var field = _iterator__ex2g4s.
|
|
1371
|
-
out.
|
|
1369
|
+
var _iterator__ex2g4s = get_entries().h();
|
|
1370
|
+
while (_iterator__ex2g4s.i()) {
|
|
1371
|
+
var field = _iterator__ex2g4s.j();
|
|
1372
|
+
out.t1t(i, field, source.s1t(i, field));
|
|
1372
1373
|
}
|
|
1373
1374
|
}
|
|
1374
1375
|
while (inductionVariable < last);
|
|
@@ -1376,33 +1377,33 @@
|
|
|
1376
1377
|
}
|
|
1377
1378
|
function $fixElevationCOROUTINE$(_this__u8e3s4, source, provider, resultContinuation) {
|
|
1378
1379
|
CoroutineImpl.call(this, resultContinuation);
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1380
|
+
this.c1u_1 = _this__u8e3s4;
|
|
1381
|
+
this.d1u_1 = source;
|
|
1382
|
+
this.e1u_1 = provider;
|
|
1382
1383
|
}
|
|
1383
|
-
protoOf($fixElevationCOROUTINE$).
|
|
1384
|
-
var suspendResult = this.
|
|
1384
|
+
protoOf($fixElevationCOROUTINE$).o6 = function () {
|
|
1385
|
+
var suspendResult = this.i6_1;
|
|
1385
1386
|
$sm: do
|
|
1386
1387
|
try {
|
|
1387
|
-
var tmp = this.
|
|
1388
|
+
var tmp = this.g6_1;
|
|
1388
1389
|
switch (tmp) {
|
|
1389
1390
|
case 0:
|
|
1390
|
-
this.
|
|
1391
|
-
if (this.
|
|
1391
|
+
this.h6_1 = 2;
|
|
1392
|
+
if (this.d1u_1.d1s_1 === 0)
|
|
1392
1393
|
return new Path(0);
|
|
1393
|
-
var size = this.
|
|
1394
|
+
var size = this.d1u_1.d1s_1;
|
|
1394
1395
|
var list = ArrayList_init_$Create$(size);
|
|
1395
1396
|
var inductionVariable = 0;
|
|
1396
1397
|
if (inductionVariable < size)
|
|
1397
1398
|
do {
|
|
1398
1399
|
var index = inductionVariable;
|
|
1399
1400
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1400
|
-
list.
|
|
1401
|
+
list.n(new LatLon(this.d1u_1.f1s(index) * MathConstants_getInstance().yv_1, this.d1u_1.g1s(index) * MathConstants_getInstance().yv_1));
|
|
1401
1402
|
}
|
|
1402
1403
|
while (inductionVariable < size);
|
|
1403
1404
|
var coords = list;
|
|
1404
|
-
this.
|
|
1405
|
-
suspendResult = this.
|
|
1405
|
+
this.g6_1 = 1;
|
|
1406
|
+
suspendResult = this.e1u_1.xz(coords, VOID, this);
|
|
1406
1407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1407
1408
|
return suspendResult;
|
|
1408
1409
|
}
|
|
@@ -1410,47 +1411,47 @@
|
|
|
1410
1411
|
continue $sm;
|
|
1411
1412
|
case 1:
|
|
1412
1413
|
var corrected = suspendResult;
|
|
1413
|
-
var out = copyAllSlots(this.
|
|
1414
|
+
var out = copyAllSlots(this.c1u_1, this.d1u_1);
|
|
1414
1415
|
var inductionVariable_0 = 0;
|
|
1415
|
-
var last = out.
|
|
1416
|
+
var last = out.d1s_1;
|
|
1416
1417
|
if (inductionVariable_0 < last)
|
|
1417
1418
|
do {
|
|
1418
1419
|
var i = inductionVariable_0;
|
|
1419
1420
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1420
|
-
out.
|
|
1421
|
+
out.u1s(i, corrected.l(i).cw());
|
|
1421
1422
|
}
|
|
1422
1423
|
while (inductionVariable_0 < last);
|
|
1423
|
-
out.
|
|
1424
|
+
out.j1t();
|
|
1424
1425
|
return out;
|
|
1425
1426
|
case 2:
|
|
1426
|
-
throw this.
|
|
1427
|
+
throw this.j6_1;
|
|
1427
1428
|
}
|
|
1428
1429
|
} catch ($p) {
|
|
1429
1430
|
var e = $p;
|
|
1430
|
-
if (this.
|
|
1431
|
+
if (this.h6_1 === 2) {
|
|
1431
1432
|
throw e;
|
|
1432
1433
|
} else {
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1434
|
+
this.g6_1 = this.h6_1;
|
|
1435
|
+
this.j6_1 = e;
|
|
1435
1436
|
}
|
|
1436
1437
|
}
|
|
1437
1438
|
while (true);
|
|
1438
1439
|
};
|
|
1439
1440
|
function ElevationStep() {
|
|
1440
|
-
this.
|
|
1441
|
+
this.a1r_1 = 150.0;
|
|
1441
1442
|
}
|
|
1442
|
-
protoOf(ElevationStep).
|
|
1443
|
+
protoOf(ElevationStep).b1r = function (source, provider, $completion) {
|
|
1443
1444
|
var tmp = new $fixElevationCOROUTINE$(this, source, provider, $completion);
|
|
1444
|
-
tmp.
|
|
1445
|
-
tmp.
|
|
1446
|
-
return tmp.
|
|
1445
|
+
tmp.i6_1 = Unit_instance;
|
|
1446
|
+
tmp.j6_1 = null;
|
|
1447
|
+
return tmp.o6();
|
|
1447
1448
|
};
|
|
1448
|
-
protoOf(ElevationStep).
|
|
1449
|
-
if (source.
|
|
1449
|
+
protoOf(ElevationStep).f1u = function (source, windowM) {
|
|
1450
|
+
if (source.d1s_1 === 0)
|
|
1450
1451
|
return new Path(0);
|
|
1451
1452
|
// Inline function 'kotlin.collections.List' call
|
|
1452
1453
|
// Inline function 'kotlin.collections.MutableList' call
|
|
1453
|
-
var size = source.
|
|
1454
|
+
var size = source.d1s_1;
|
|
1454
1455
|
var list = ArrayList_init_$Create$(size);
|
|
1455
1456
|
// Inline function 'kotlin.repeat' call
|
|
1456
1457
|
var inductionVariable = 0;
|
|
@@ -1458,207 +1459,207 @@
|
|
|
1458
1459
|
do {
|
|
1459
1460
|
var index = inductionVariable;
|
|
1460
1461
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1461
|
-
var tmp$ret$4 = source.
|
|
1462
|
-
list.
|
|
1462
|
+
var tmp$ret$4 = source.g1u(index);
|
|
1463
|
+
list.n(tmp$ret$4);
|
|
1463
1464
|
}
|
|
1464
1465
|
while (inductionVariable < size);
|
|
1465
1466
|
var coords = list;
|
|
1466
|
-
var smoothed = ElevationSmoother_instance.
|
|
1467
|
+
var smoothed = ElevationSmoother_instance.rv(coords, windowM);
|
|
1467
1468
|
var out = copyAllSlots(this, source);
|
|
1468
1469
|
var inductionVariable_0 = 0;
|
|
1469
|
-
var last = out.
|
|
1470
|
+
var last = out.d1s_1;
|
|
1470
1471
|
if (inductionVariable_0 < last)
|
|
1471
1472
|
do {
|
|
1472
1473
|
var i = inductionVariable_0;
|
|
1473
1474
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1474
|
-
out.
|
|
1475
|
+
out.u1s(i, smoothed.l(i).cw());
|
|
1475
1476
|
}
|
|
1476
1477
|
while (inductionVariable_0 < last);
|
|
1477
|
-
out.
|
|
1478
|
+
out.j1t();
|
|
1478
1479
|
return out;
|
|
1479
1480
|
};
|
|
1480
|
-
protoOf(ElevationStep).
|
|
1481
|
+
protoOf(ElevationStep).c1r = function (source, windowM, $super) {
|
|
1481
1482
|
windowM = windowM === VOID ? 150.0 : windowM;
|
|
1482
|
-
return $super === VOID ? this.
|
|
1483
|
+
return $super === VOID ? this.f1u(source, windowM) : $super.f1u.call(this, source, windowM);
|
|
1483
1484
|
};
|
|
1484
1485
|
var ElevationStep_instance;
|
|
1485
1486
|
function ElevationStep_getInstance() {
|
|
1486
1487
|
return ElevationStep_instance;
|
|
1487
1488
|
}
|
|
1488
1489
|
function GeneratedPath(size) {
|
|
1489
|
-
this.
|
|
1490
|
+
this.d1s_1 = size;
|
|
1490
1491
|
// Inline function 'kotlin.require' call
|
|
1491
|
-
if (!(this.
|
|
1492
|
-
var message = 'Negative size: ' + this.
|
|
1492
|
+
if (!(this.d1s_1 >= 0)) {
|
|
1493
|
+
var message = 'Negative size: ' + this.d1s_1;
|
|
1493
1494
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1494
1495
|
}
|
|
1495
|
-
this.
|
|
1496
|
+
this.e1s_1 = new Float64Array(imul(this.d1s_1, 36));
|
|
1496
1497
|
}
|
|
1497
|
-
protoOf(GeneratedPath).
|
|
1498
|
-
return this.
|
|
1498
|
+
protoOf(GeneratedPath).s1t = function (i, field) {
|
|
1499
|
+
return this.e1s_1[imul(i, 36) + field.n1_1 | 0];
|
|
1499
1500
|
};
|
|
1500
|
-
protoOf(GeneratedPath).
|
|
1501
|
-
this.
|
|
1501
|
+
protoOf(GeneratedPath).t1t = function (i, field, v) {
|
|
1502
|
+
this.e1s_1[imul(i, 36) + field.n1_1 | 0] = v;
|
|
1502
1503
|
};
|
|
1503
|
-
protoOf(GeneratedPath).
|
|
1504
|
-
return this.
|
|
1504
|
+
protoOf(GeneratedPath).f1s = function (i) {
|
|
1505
|
+
return this.e1s_1[imul(i, 36) + 0 | 0];
|
|
1505
1506
|
};
|
|
1506
|
-
protoOf(GeneratedPath).
|
|
1507
|
-
this.
|
|
1507
|
+
protoOf(GeneratedPath).s1s = function (i, v) {
|
|
1508
|
+
this.e1s_1[imul(i, 36) + 0 | 0] = v;
|
|
1508
1509
|
};
|
|
1509
|
-
protoOf(GeneratedPath).
|
|
1510
|
-
return this.
|
|
1510
|
+
protoOf(GeneratedPath).g1s = function (i) {
|
|
1511
|
+
return this.e1s_1[imul(i, 36) + 1 | 0];
|
|
1511
1512
|
};
|
|
1512
|
-
protoOf(GeneratedPath).
|
|
1513
|
-
this.
|
|
1513
|
+
protoOf(GeneratedPath).t1s = function (i, v) {
|
|
1514
|
+
this.e1s_1[imul(i, 36) + 1 | 0] = v;
|
|
1514
1515
|
};
|
|
1515
|
-
protoOf(GeneratedPath).
|
|
1516
|
-
return this.
|
|
1516
|
+
protoOf(GeneratedPath).h1u = function (i) {
|
|
1517
|
+
return this.e1s_1[imul(i, 36) + 2 | 0];
|
|
1517
1518
|
};
|
|
1518
|
-
protoOf(GeneratedPath).
|
|
1519
|
-
this.
|
|
1519
|
+
protoOf(GeneratedPath).i1u = function (i, v) {
|
|
1520
|
+
this.e1s_1[imul(i, 36) + 2 | 0] = v;
|
|
1520
1521
|
};
|
|
1521
|
-
protoOf(GeneratedPath).
|
|
1522
|
-
this.
|
|
1522
|
+
protoOf(GeneratedPath).j1u = function (i, v) {
|
|
1523
|
+
this.e1s_1[imul(i, 36) + 3 | 0] = v;
|
|
1523
1524
|
};
|
|
1524
|
-
protoOf(GeneratedPath).
|
|
1525
|
-
return this.
|
|
1525
|
+
protoOf(GeneratedPath).i1s = function (i) {
|
|
1526
|
+
return this.e1s_1[imul(i, 36) + 4 | 0];
|
|
1526
1527
|
};
|
|
1527
|
-
protoOf(GeneratedPath).
|
|
1528
|
-
this.
|
|
1528
|
+
protoOf(GeneratedPath).v1s = function (i, v) {
|
|
1529
|
+
this.e1s_1[imul(i, 36) + 4 | 0] = v;
|
|
1529
1530
|
};
|
|
1530
|
-
protoOf(GeneratedPath).
|
|
1531
|
-
return this.
|
|
1531
|
+
protoOf(GeneratedPath).k1u = function (i) {
|
|
1532
|
+
return this.e1s_1[imul(i, 36) + 5 | 0];
|
|
1532
1533
|
};
|
|
1533
|
-
protoOf(GeneratedPath).
|
|
1534
|
-
this.
|
|
1534
|
+
protoOf(GeneratedPath).l1u = function (i, v) {
|
|
1535
|
+
this.e1s_1[imul(i, 36) + 5 | 0] = v;
|
|
1535
1536
|
};
|
|
1536
|
-
protoOf(GeneratedPath).
|
|
1537
|
-
return this.
|
|
1537
|
+
protoOf(GeneratedPath).m1u = function (i) {
|
|
1538
|
+
return this.e1s_1[imul(i, 36) + 6 | 0];
|
|
1538
1539
|
};
|
|
1539
|
-
protoOf(GeneratedPath).
|
|
1540
|
-
this.
|
|
1540
|
+
protoOf(GeneratedPath).n1u = function (i, v) {
|
|
1541
|
+
this.e1s_1[imul(i, 36) + 6 | 0] = v;
|
|
1541
1542
|
};
|
|
1542
|
-
protoOf(GeneratedPath).
|
|
1543
|
-
return this.
|
|
1543
|
+
protoOf(GeneratedPath).o1u = function (i) {
|
|
1544
|
+
return this.e1s_1[imul(i, 36) + 7 | 0];
|
|
1544
1545
|
};
|
|
1545
|
-
protoOf(GeneratedPath).
|
|
1546
|
-
this.
|
|
1546
|
+
protoOf(GeneratedPath).p1u = function (i, v) {
|
|
1547
|
+
this.e1s_1[imul(i, 36) + 7 | 0] = v;
|
|
1547
1548
|
};
|
|
1548
|
-
protoOf(GeneratedPath).
|
|
1549
|
-
return this.
|
|
1549
|
+
protoOf(GeneratedPath).h1s = function (i) {
|
|
1550
|
+
return this.e1s_1[imul(i, 36) + 8 | 0];
|
|
1550
1551
|
};
|
|
1551
|
-
protoOf(GeneratedPath).
|
|
1552
|
-
this.
|
|
1552
|
+
protoOf(GeneratedPath).u1s = function (i, v) {
|
|
1553
|
+
this.e1s_1[imul(i, 36) + 8 | 0] = v;
|
|
1553
1554
|
};
|
|
1554
|
-
protoOf(GeneratedPath).
|
|
1555
|
-
return this.
|
|
1555
|
+
protoOf(GeneratedPath).q1u = function (i) {
|
|
1556
|
+
return this.e1s_1[imul(i, 36) + 9 | 0];
|
|
1556
1557
|
};
|
|
1557
|
-
protoOf(GeneratedPath).
|
|
1558
|
-
this.
|
|
1558
|
+
protoOf(GeneratedPath).r1u = function (i, v) {
|
|
1559
|
+
this.e1s_1[imul(i, 36) + 9 | 0] = v;
|
|
1559
1560
|
};
|
|
1560
|
-
protoOf(GeneratedPath).
|
|
1561
|
-
this.
|
|
1561
|
+
protoOf(GeneratedPath).s1u = function (i, v) {
|
|
1562
|
+
this.e1s_1[imul(i, 36) + 10 | 0] = v;
|
|
1562
1563
|
};
|
|
1563
|
-
protoOf(GeneratedPath).
|
|
1564
|
-
this.
|
|
1564
|
+
protoOf(GeneratedPath).t1u = function (i, v) {
|
|
1565
|
+
this.e1s_1[imul(i, 36) + 11 | 0] = v;
|
|
1565
1566
|
};
|
|
1566
|
-
protoOf(GeneratedPath).
|
|
1567
|
-
this.
|
|
1567
|
+
protoOf(GeneratedPath).u1u = function (i, v) {
|
|
1568
|
+
this.e1s_1[imul(i, 36) + 12 | 0] = v;
|
|
1568
1569
|
};
|
|
1569
|
-
protoOf(GeneratedPath).
|
|
1570
|
-
this.
|
|
1570
|
+
protoOf(GeneratedPath).v1u = function (i, v) {
|
|
1571
|
+
this.e1s_1[imul(i, 36) + 13 | 0] = v;
|
|
1571
1572
|
};
|
|
1572
|
-
protoOf(GeneratedPath).
|
|
1573
|
-
this.
|
|
1573
|
+
protoOf(GeneratedPath).w1u = function (i, v) {
|
|
1574
|
+
this.e1s_1[imul(i, 36) + 14 | 0] = v;
|
|
1574
1575
|
};
|
|
1575
|
-
protoOf(GeneratedPath).
|
|
1576
|
-
this.
|
|
1576
|
+
protoOf(GeneratedPath).x1u = function (i, v) {
|
|
1577
|
+
this.e1s_1[imul(i, 36) + 15 | 0] = v;
|
|
1577
1578
|
};
|
|
1578
|
-
protoOf(GeneratedPath).
|
|
1579
|
-
this.
|
|
1579
|
+
protoOf(GeneratedPath).y1u = function (i, v) {
|
|
1580
|
+
this.e1s_1[imul(i, 36) + 16 | 0] = v;
|
|
1580
1581
|
};
|
|
1581
|
-
protoOf(GeneratedPath).
|
|
1582
|
-
this.
|
|
1582
|
+
protoOf(GeneratedPath).z1u = function (i, v) {
|
|
1583
|
+
this.e1s_1[imul(i, 36) + 17 | 0] = v;
|
|
1583
1584
|
};
|
|
1584
|
-
protoOf(GeneratedPath).
|
|
1585
|
-
return this.
|
|
1585
|
+
protoOf(GeneratedPath).m1s = function (i) {
|
|
1586
|
+
return this.e1s_1[imul(i, 36) + 18 | 0];
|
|
1586
1587
|
};
|
|
1587
|
-
protoOf(GeneratedPath).
|
|
1588
|
-
this.
|
|
1588
|
+
protoOf(GeneratedPath).w1s = function (i, v) {
|
|
1589
|
+
this.e1s_1[imul(i, 36) + 18 | 0] = v;
|
|
1589
1590
|
};
|
|
1590
|
-
protoOf(GeneratedPath).
|
|
1591
|
-
this.
|
|
1591
|
+
protoOf(GeneratedPath).a1v = function (i, v) {
|
|
1592
|
+
this.e1s_1[imul(i, 36) + 19 | 0] = v;
|
|
1592
1593
|
};
|
|
1593
|
-
protoOf(GeneratedPath).
|
|
1594
|
-
this.
|
|
1594
|
+
protoOf(GeneratedPath).b1v = function (i, v) {
|
|
1595
|
+
this.e1s_1[imul(i, 36) + 20 | 0] = v;
|
|
1595
1596
|
};
|
|
1596
|
-
protoOf(GeneratedPath).
|
|
1597
|
-
this.
|
|
1597
|
+
protoOf(GeneratedPath).c1v = function (i, v) {
|
|
1598
|
+
this.e1s_1[imul(i, 36) + 21 | 0] = v;
|
|
1598
1599
|
};
|
|
1599
|
-
protoOf(GeneratedPath).
|
|
1600
|
-
this.
|
|
1600
|
+
protoOf(GeneratedPath).d1v = function (i, v) {
|
|
1601
|
+
this.e1s_1[imul(i, 36) + 22 | 0] = v;
|
|
1601
1602
|
};
|
|
1602
|
-
protoOf(GeneratedPath).
|
|
1603
|
-
this.
|
|
1603
|
+
protoOf(GeneratedPath).e1v = function (i, v) {
|
|
1604
|
+
this.e1s_1[imul(i, 36) + 23 | 0] = v;
|
|
1604
1605
|
};
|
|
1605
|
-
protoOf(GeneratedPath).
|
|
1606
|
-
this.
|
|
1606
|
+
protoOf(GeneratedPath).f1v = function (i, v) {
|
|
1607
|
+
this.e1s_1[imul(i, 36) + 24 | 0] = v;
|
|
1607
1608
|
};
|
|
1608
|
-
protoOf(GeneratedPath).
|
|
1609
|
-
this.
|
|
1609
|
+
protoOf(GeneratedPath).g1v = function (i, v) {
|
|
1610
|
+
this.e1s_1[imul(i, 36) + 25 | 0] = v;
|
|
1610
1611
|
};
|
|
1611
|
-
protoOf(GeneratedPath).
|
|
1612
|
-
return this.
|
|
1612
|
+
protoOf(GeneratedPath).h1v = function (i) {
|
|
1613
|
+
return this.e1s_1[imul(i, 36) + 26 | 0];
|
|
1613
1614
|
};
|
|
1614
|
-
protoOf(GeneratedPath).
|
|
1615
|
-
this.
|
|
1615
|
+
protoOf(GeneratedPath).i1v = function (i, v) {
|
|
1616
|
+
this.e1s_1[imul(i, 36) + 26 | 0] = v;
|
|
1616
1617
|
};
|
|
1617
|
-
protoOf(GeneratedPath).
|
|
1618
|
-
return this.
|
|
1618
|
+
protoOf(GeneratedPath).j1v = function (i) {
|
|
1619
|
+
return this.e1s_1[imul(i, 36) + 27 | 0];
|
|
1619
1620
|
};
|
|
1620
|
-
protoOf(GeneratedPath).
|
|
1621
|
-
this.
|
|
1621
|
+
protoOf(GeneratedPath).k1v = function (i, v) {
|
|
1622
|
+
this.e1s_1[imul(i, 36) + 27 | 0] = v;
|
|
1622
1623
|
};
|
|
1623
|
-
protoOf(GeneratedPath).
|
|
1624
|
-
return this.
|
|
1624
|
+
protoOf(GeneratedPath).l1v = function (i) {
|
|
1625
|
+
return this.e1s_1[imul(i, 36) + 28 | 0];
|
|
1625
1626
|
};
|
|
1626
|
-
protoOf(GeneratedPath).
|
|
1627
|
-
this.
|
|
1627
|
+
protoOf(GeneratedPath).m1v = function (i, v) {
|
|
1628
|
+
this.e1s_1[imul(i, 36) + 28 | 0] = v;
|
|
1628
1629
|
};
|
|
1629
|
-
protoOf(GeneratedPath).
|
|
1630
|
-
this.
|
|
1630
|
+
protoOf(GeneratedPath).n1v = function (i, v) {
|
|
1631
|
+
this.e1s_1[imul(i, 36) + 29 | 0] = v;
|
|
1631
1632
|
};
|
|
1632
|
-
protoOf(GeneratedPath).
|
|
1633
|
-
this.
|
|
1633
|
+
protoOf(GeneratedPath).o1v = function (i, v) {
|
|
1634
|
+
this.e1s_1[imul(i, 36) + 30 | 0] = v;
|
|
1634
1635
|
};
|
|
1635
|
-
protoOf(GeneratedPath).
|
|
1636
|
-
return this.
|
|
1636
|
+
protoOf(GeneratedPath).l1s = function (i) {
|
|
1637
|
+
return this.e1s_1[imul(i, 36) + 31 | 0];
|
|
1637
1638
|
};
|
|
1638
|
-
protoOf(GeneratedPath).
|
|
1639
|
-
this.
|
|
1639
|
+
protoOf(GeneratedPath).z1s = function (i, v) {
|
|
1640
|
+
this.e1s_1[imul(i, 36) + 31 | 0] = v;
|
|
1640
1641
|
};
|
|
1641
|
-
protoOf(GeneratedPath).
|
|
1642
|
-
this.
|
|
1642
|
+
protoOf(GeneratedPath).p1v = function (i, v) {
|
|
1643
|
+
this.e1s_1[imul(i, 36) + 32 | 0] = v;
|
|
1643
1644
|
};
|
|
1644
|
-
protoOf(GeneratedPath).
|
|
1645
|
-
this.
|
|
1645
|
+
protoOf(GeneratedPath).q1v = function (i, v) {
|
|
1646
|
+
this.e1s_1[imul(i, 36) + 33 | 0] = v;
|
|
1646
1647
|
};
|
|
1647
|
-
protoOf(GeneratedPath).
|
|
1648
|
-
return this.
|
|
1648
|
+
protoOf(GeneratedPath).j1s = function (i) {
|
|
1649
|
+
return this.e1s_1[imul(i, 36) + 34 | 0];
|
|
1649
1650
|
};
|
|
1650
|
-
protoOf(GeneratedPath).
|
|
1651
|
-
this.
|
|
1651
|
+
protoOf(GeneratedPath).x1s = function (i, v) {
|
|
1652
|
+
this.e1s_1[imul(i, 36) + 34 | 0] = v;
|
|
1652
1653
|
};
|
|
1653
|
-
protoOf(GeneratedPath).
|
|
1654
|
-
return this.
|
|
1654
|
+
protoOf(GeneratedPath).k1s = function (i) {
|
|
1655
|
+
return this.e1s_1[imul(i, 36) + 35 | 0];
|
|
1655
1656
|
};
|
|
1656
|
-
protoOf(GeneratedPath).
|
|
1657
|
-
this.
|
|
1657
|
+
protoOf(GeneratedPath).y1s = function (i, v) {
|
|
1658
|
+
this.e1s_1[imul(i, 36) + 35 | 0] = v;
|
|
1658
1659
|
};
|
|
1659
1660
|
function Companion_3() {
|
|
1660
1661
|
Companion_instance_3 = this;
|
|
1661
|
-
this.
|
|
1662
|
+
this.r1v_1 = new BoundsRad(0.0, 0.0, 0.0, 0.0);
|
|
1662
1663
|
}
|
|
1663
1664
|
var Companion_instance_3;
|
|
1664
1665
|
function Companion_getInstance_4() {
|
|
@@ -1668,19 +1669,19 @@
|
|
|
1668
1669
|
}
|
|
1669
1670
|
function BoundsRad(minLat, maxLat, minLon, maxLon) {
|
|
1670
1671
|
Companion_getInstance_4();
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1672
|
+
this.s1v_1 = minLat;
|
|
1673
|
+
this.t1v_1 = maxLat;
|
|
1674
|
+
this.u1v_1 = minLon;
|
|
1675
|
+
this.v1v_1 = maxLon;
|
|
1675
1676
|
}
|
|
1676
1677
|
protoOf(BoundsRad).toString = function () {
|
|
1677
|
-
return 'BoundsRad(minLat=' + this.
|
|
1678
|
+
return 'BoundsRad(minLat=' + this.s1v_1 + ', maxLat=' + this.t1v_1 + ', minLon=' + this.u1v_1 + ', maxLon=' + this.v1v_1 + ')';
|
|
1678
1679
|
};
|
|
1679
1680
|
protoOf(BoundsRad).hashCode = function () {
|
|
1680
|
-
var result = getNumberHashCode(this.
|
|
1681
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1682
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1683
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1681
|
+
var result = getNumberHashCode(this.s1v_1);
|
|
1682
|
+
result = imul(result, 31) + getNumberHashCode(this.t1v_1) | 0;
|
|
1683
|
+
result = imul(result, 31) + getNumberHashCode(this.u1v_1) | 0;
|
|
1684
|
+
result = imul(result, 31) + getNumberHashCode(this.v1v_1) | 0;
|
|
1684
1685
|
return result;
|
|
1685
1686
|
};
|
|
1686
1687
|
protoOf(BoundsRad).equals = function (other) {
|
|
@@ -1688,39 +1689,39 @@
|
|
|
1688
1689
|
return true;
|
|
1689
1690
|
if (!(other instanceof BoundsRad))
|
|
1690
1691
|
return false;
|
|
1691
|
-
if (!equals(this.
|
|
1692
|
+
if (!equals(this.s1v_1, other.s1v_1))
|
|
1692
1693
|
return false;
|
|
1693
|
-
if (!equals(this.
|
|
1694
|
+
if (!equals(this.t1v_1, other.t1v_1))
|
|
1694
1695
|
return false;
|
|
1695
|
-
if (!equals(this.
|
|
1696
|
+
if (!equals(this.u1v_1, other.u1v_1))
|
|
1696
1697
|
return false;
|
|
1697
|
-
if (!equals(this.
|
|
1698
|
+
if (!equals(this.v1v_1, other.v1v_1))
|
|
1698
1699
|
return false;
|
|
1699
1700
|
return true;
|
|
1700
1701
|
};
|
|
1701
1702
|
function copyStatsFrom($this, other) {
|
|
1702
|
-
$this.
|
|
1703
|
-
$this.
|
|
1704
|
-
$this.
|
|
1705
|
-
$this.
|
|
1706
|
-
$this.
|
|
1707
|
-
$this.
|
|
1708
|
-
$this.
|
|
1703
|
+
$this.c1t_1 = other.c1t_1;
|
|
1704
|
+
$this.d1t_1 = other.d1t_1;
|
|
1705
|
+
$this.e1t_1 = other.e1t_1;
|
|
1706
|
+
$this.f1t_1 = other.f1t_1;
|
|
1707
|
+
$this.g1t_1 = other.g1t_1;
|
|
1708
|
+
$this.h1t_1 = other.h1t_1;
|
|
1709
|
+
$this.i1t_1 = other.i1t_1;
|
|
1709
1710
|
}
|
|
1710
1711
|
function resetStats($this) {
|
|
1711
|
-
$this.
|
|
1712
|
-
$this.
|
|
1713
|
-
$this.
|
|
1714
|
-
$this.
|
|
1715
|
-
$this.
|
|
1716
|
-
$this.
|
|
1717
|
-
$this.
|
|
1712
|
+
$this.c1t_1 = 0.0;
|
|
1713
|
+
$this.d1t_1 = 0.0;
|
|
1714
|
+
$this.e1t_1 = 0.0;
|
|
1715
|
+
$this.f1t_1 = 0.0;
|
|
1716
|
+
$this.g1t_1 = 0.0;
|
|
1717
|
+
$this.h1t_1 = 0.0;
|
|
1718
|
+
$this.i1t_1 = Companion_getInstance_4().r1v_1;
|
|
1718
1719
|
}
|
|
1719
1720
|
function computeBearing($this, from, to) {
|
|
1720
|
-
var lat1 = $this.
|
|
1721
|
-
var lon1 = $this.
|
|
1722
|
-
var lat2 = $this.
|
|
1723
|
-
var lon2 = $this.
|
|
1721
|
+
var lat1 = $this.f1s(from);
|
|
1722
|
+
var lon1 = $this.g1s(from);
|
|
1723
|
+
var lat2 = $this.f1s(to);
|
|
1724
|
+
var lon2 = $this.g1s(to);
|
|
1724
1725
|
// Inline function 'kotlin.math.cos' call
|
|
1725
1726
|
var x1 = lon1 * Math.cos(lat1);
|
|
1726
1727
|
var y1 = lat1;
|
|
@@ -1741,32 +1742,32 @@
|
|
|
1741
1742
|
}
|
|
1742
1743
|
function Path(size) {
|
|
1743
1744
|
GeneratedPath.call(this, size);
|
|
1744
|
-
this.
|
|
1745
|
-
this.
|
|
1746
|
-
this.
|
|
1747
|
-
this.
|
|
1748
|
-
this.
|
|
1749
|
-
this.
|
|
1750
|
-
this.
|
|
1751
|
-
}
|
|
1752
|
-
protoOf(Path).
|
|
1753
|
-
return until(0, this.
|
|
1754
|
-
};
|
|
1755
|
-
protoOf(Path).
|
|
1756
|
-
return this.
|
|
1757
|
-
};
|
|
1758
|
-
protoOf(Path).
|
|
1759
|
-
return this.
|
|
1760
|
-
};
|
|
1761
|
-
protoOf(Path).
|
|
1762
|
-
return new LatLonElevation(this.
|
|
1763
|
-
};
|
|
1764
|
-
protoOf(Path).
|
|
1765
|
-
var out = new Path(this.
|
|
1766
|
-
var tmp0 = this.
|
|
1767
|
-
var tmp2 = out.
|
|
1745
|
+
this.c1t_1 = 0.0;
|
|
1746
|
+
this.d1t_1 = 0.0;
|
|
1747
|
+
this.e1t_1 = 0.0;
|
|
1748
|
+
this.f1t_1 = 0.0;
|
|
1749
|
+
this.g1t_1 = 0.0;
|
|
1750
|
+
this.h1t_1 = 0.0;
|
|
1751
|
+
this.i1t_1 = Companion_getInstance_4().r1v_1;
|
|
1752
|
+
}
|
|
1753
|
+
protoOf(Path).w1v = function () {
|
|
1754
|
+
return until(0, this.d1s_1);
|
|
1755
|
+
};
|
|
1756
|
+
protoOf(Path).x1v = function (i) {
|
|
1757
|
+
return this.f1s(i) * MathConstants_getInstance().yv_1;
|
|
1758
|
+
};
|
|
1759
|
+
protoOf(Path).y1v = function (i) {
|
|
1760
|
+
return this.g1s(i) * MathConstants_getInstance().yv_1;
|
|
1761
|
+
};
|
|
1762
|
+
protoOf(Path).g1u = function (i) {
|
|
1763
|
+
return new LatLonElevation(this.x1v(i), this.y1v(i), this.h1s(i));
|
|
1764
|
+
};
|
|
1765
|
+
protoOf(Path).z1v = function () {
|
|
1766
|
+
var out = new Path(this.d1s_1);
|
|
1767
|
+
var tmp0 = this.e1s_1;
|
|
1768
|
+
var tmp2 = out.e1s_1;
|
|
1768
1769
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1769
|
-
var endIndex = this.
|
|
1770
|
+
var endIndex = this.e1s_1.length;
|
|
1770
1771
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1771
1772
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1772
1773
|
var tmp = tmp0;
|
|
@@ -1776,11 +1777,11 @@
|
|
|
1776
1777
|
copyStatsFrom(out, this);
|
|
1777
1778
|
return out;
|
|
1778
1779
|
};
|
|
1779
|
-
protoOf(Path).
|
|
1780
|
+
protoOf(Path).j1t = function () {
|
|
1780
1781
|
resetStats(this);
|
|
1781
|
-
if (this.
|
|
1782
|
+
if (this.d1s_1 === 0)
|
|
1782
1783
|
return Unit_instance;
|
|
1783
|
-
var timeStart = this.
|
|
1784
|
+
var timeStart = this.i1s(0);
|
|
1784
1785
|
var cumDist = 0.0;
|
|
1785
1786
|
var minLat = Infinity;
|
|
1786
1787
|
var maxLat = -Infinity;
|
|
@@ -1791,14 +1792,14 @@
|
|
|
1791
1792
|
var gain = 0.0;
|
|
1792
1793
|
var loss = 0.0;
|
|
1793
1794
|
var inductionVariable = 0;
|
|
1794
|
-
var last = this.
|
|
1795
|
+
var last = this.d1s_1;
|
|
1795
1796
|
if (inductionVariable < last)
|
|
1796
1797
|
do {
|
|
1797
1798
|
var i = inductionVariable;
|
|
1798
1799
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1799
|
-
var lat = this.
|
|
1800
|
-
var lon = this.
|
|
1801
|
-
var ele = this.
|
|
1800
|
+
var lat = this.f1s(i);
|
|
1801
|
+
var lon = this.g1s(i);
|
|
1802
|
+
var ele = this.h1s(i);
|
|
1802
1803
|
// Inline function 'kotlin.math.min' call
|
|
1803
1804
|
var a = minLat;
|
|
1804
1805
|
minLat = Math.min(a, lat);
|
|
@@ -1818,103 +1819,103 @@
|
|
|
1818
1819
|
var a_4 = maxEle;
|
|
1819
1820
|
maxEle = Math.max(a_4, ele);
|
|
1820
1821
|
if (i > 0) {
|
|
1821
|
-
var prevCoord = new LatLon(this.
|
|
1822
|
-
var curCoord = new LatLon(this.
|
|
1823
|
-
cumDist = cumDist + Distance_instance.
|
|
1824
|
-
var dEle = ele - this.
|
|
1822
|
+
var prevCoord = new LatLon(this.x1v(i - 1 | 0), this.y1v(i - 1 | 0));
|
|
1823
|
+
var curCoord = new LatLon(this.x1v(i), this.y1v(i));
|
|
1824
|
+
cumDist = cumDist + Distance_instance.vv(prevCoord, curCoord);
|
|
1825
|
+
var dEle = ele - this.h1s(i - 1 | 0);
|
|
1825
1826
|
if (dEle > 0)
|
|
1826
1827
|
gain = gain + dEle;
|
|
1827
1828
|
else
|
|
1828
1829
|
loss = loss + dEle;
|
|
1829
1830
|
}
|
|
1830
|
-
this.
|
|
1831
|
+
this.i1u(i, cumDist);
|
|
1831
1832
|
}
|
|
1832
1833
|
while (inductionVariable < last);
|
|
1833
|
-
this.
|
|
1834
|
-
this.
|
|
1835
|
-
this.
|
|
1836
|
-
this.
|
|
1837
|
-
this.
|
|
1838
|
-
this.
|
|
1839
|
-
this.
|
|
1834
|
+
this.c1t_1 = cumDist;
|
|
1835
|
+
this.d1t_1 = minEle === Infinity ? 0.0 : minEle;
|
|
1836
|
+
this.e1t_1 = maxEle === -Infinity ? 0.0 : maxEle;
|
|
1837
|
+
this.f1t_1 = gain;
|
|
1838
|
+
this.g1t_1 = loss;
|
|
1839
|
+
this.i1t_1 = new BoundsRad(minLat, maxLat, minLon, maxLon);
|
|
1840
|
+
this.h1t_1 = this.d1s_1 >= 2 ? this.i1s(this.d1s_1 - 1 | 0) - timeStart : 0.0;
|
|
1840
1841
|
var inductionVariable_0 = 0;
|
|
1841
|
-
var last_0 = this.
|
|
1842
|
+
var last_0 = this.d1s_1;
|
|
1842
1843
|
if (inductionVariable_0 < last_0)
|
|
1843
1844
|
$l$loop: do {
|
|
1844
1845
|
var i_0 = inductionVariable_0;
|
|
1845
1846
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1846
|
-
this.
|
|
1847
|
-
if (this.
|
|
1847
|
+
this.l1u(i_0, (this.i1s(i_0) - timeStart) / 1000.0);
|
|
1848
|
+
if (this.d1s_1 <= 1)
|
|
1848
1849
|
continue $l$loop;
|
|
1849
1850
|
// Inline function 'kotlin.math.max' call
|
|
1850
1851
|
var b = i_0 - 1 | 0;
|
|
1851
1852
|
var im1 = Math.max(0, b);
|
|
1852
|
-
var tmp0 = this.
|
|
1853
|
+
var tmp0 = this.d1s_1 - 1 | 0;
|
|
1853
1854
|
// Inline function 'kotlin.math.min' call
|
|
1854
1855
|
var b_0 = i_0 + 1 | 0;
|
|
1855
1856
|
var ip1 = Math.min(tmp0, b_0);
|
|
1856
|
-
this.
|
|
1857
|
-
var dDist = (this.
|
|
1858
|
-
var dEle_0 = (this.
|
|
1857
|
+
this.p1u(i_0, computeBearing(this, im1, ip1));
|
|
1858
|
+
var dDist = (this.h1u(ip1) - this.h1u(im1)) / 2.0;
|
|
1859
|
+
var dEle_0 = (this.h1s(ip1) - this.h1s(im1)) / 2.0;
|
|
1859
1860
|
var grade = dDist === 0.0 ? 0.0 : dEle_0 / dDist;
|
|
1860
|
-
this.
|
|
1861
|
-
var dTime = (this.
|
|
1862
|
-
this.
|
|
1863
|
-
this.
|
|
1864
|
-
this.
|
|
1861
|
+
this.r1u(i_0, grade);
|
|
1862
|
+
var dTime = (this.i1s(ip1) - this.i1s(im1)) / 2000.0;
|
|
1863
|
+
this.j1u(i_0, dDist);
|
|
1864
|
+
this.n1u(i_0, dTime);
|
|
1865
|
+
this.k1v(i_0, dTime === 0.0 ? 0.0 : dDist / dTime);
|
|
1865
1866
|
}
|
|
1866
1867
|
while (inductionVariable_0 < last_0);
|
|
1867
1868
|
};
|
|
1868
1869
|
function PathSimplifier() {
|
|
1869
1870
|
}
|
|
1870
|
-
protoOf(PathSimplifier).
|
|
1871
|
-
if (path.
|
|
1872
|
-
return path.
|
|
1873
|
-
var coords = ArrayList_init_$Create$(path.
|
|
1871
|
+
protoOf(PathSimplifier).m1r = function (path, toleranceM, zExaggeration) {
|
|
1872
|
+
if (path.d1s_1 <= 2)
|
|
1873
|
+
return path.z1v();
|
|
1874
|
+
var coords = ArrayList_init_$Create$(path.d1s_1);
|
|
1874
1875
|
var inductionVariable = 0;
|
|
1875
|
-
var last = path.
|
|
1876
|
+
var last = path.d1s_1;
|
|
1876
1877
|
if (inductionVariable < last)
|
|
1877
1878
|
do {
|
|
1878
1879
|
var i = inductionVariable;
|
|
1879
1880
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1880
1881
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1881
|
-
var element = new LatLonElevation(path.
|
|
1882
|
-
coords.
|
|
1882
|
+
var element = new LatLonElevation(path.f1s(i) * MathConstants_getInstance().yv_1, path.g1s(i) * MathConstants_getInstance().yv_1, path.h1s(i));
|
|
1883
|
+
coords.n(element);
|
|
1883
1884
|
}
|
|
1884
1885
|
while (inductionVariable < last);
|
|
1885
|
-
var simplified = DouglasPeucker_instance.
|
|
1886
|
-
var retainedIndices = ArrayList_init_$Create$(simplified.
|
|
1886
|
+
var simplified = DouglasPeucker_instance.sv(coords, toleranceM, zExaggeration);
|
|
1887
|
+
var retainedIndices = ArrayList_init_$Create$(simplified.k());
|
|
1887
1888
|
var cursor = 0;
|
|
1888
|
-
var _iterator__ex2g4s = simplified.
|
|
1889
|
-
while (_iterator__ex2g4s.
|
|
1890
|
-
var kept = _iterator__ex2g4s.
|
|
1891
|
-
while (cursor < coords.
|
|
1889
|
+
var _iterator__ex2g4s = simplified.h();
|
|
1890
|
+
while (_iterator__ex2g4s.i()) {
|
|
1891
|
+
var kept = _iterator__ex2g4s.j();
|
|
1892
|
+
while (cursor < coords.k() && !(coords.l(cursor) === kept)) {
|
|
1892
1893
|
cursor = cursor + 1 | 0;
|
|
1893
1894
|
}
|
|
1894
|
-
if (cursor === coords.
|
|
1895
|
+
if (cursor === coords.k()) {
|
|
1895
1896
|
// Inline function 'kotlin.error' call
|
|
1896
1897
|
var message = 'PathSimplifier: retained point not found in source';
|
|
1897
1898
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1898
1899
|
}
|
|
1899
1900
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1900
1901
|
var element_0 = cursor;
|
|
1901
|
-
retainedIndices.
|
|
1902
|
+
retainedIndices.n(element_0);
|
|
1902
1903
|
cursor = cursor + 1 | 0;
|
|
1903
1904
|
}
|
|
1904
|
-
var out = new Path(retainedIndices.
|
|
1905
|
-
var iterator = retainedIndices.
|
|
1905
|
+
var out = new Path(retainedIndices.k());
|
|
1906
|
+
var iterator = retainedIndices.h();
|
|
1906
1907
|
var index = 0;
|
|
1907
|
-
while (iterator.
|
|
1908
|
+
while (iterator.i()) {
|
|
1908
1909
|
var dstIdx = index;
|
|
1909
1910
|
index = index + 1 | 0;
|
|
1910
|
-
var srcIdx = iterator.
|
|
1911
|
-
var _iterator__ex2g4s_0 = get_entries().
|
|
1912
|
-
while (_iterator__ex2g4s_0.
|
|
1913
|
-
var field = _iterator__ex2g4s_0.
|
|
1914
|
-
out.
|
|
1911
|
+
var srcIdx = iterator.j();
|
|
1912
|
+
var _iterator__ex2g4s_0 = get_entries().h();
|
|
1913
|
+
while (_iterator__ex2g4s_0.i()) {
|
|
1914
|
+
var field = _iterator__ex2g4s_0.j();
|
|
1915
|
+
out.t1t(dstIdx, field, path.s1t(srcIdx, field));
|
|
1915
1916
|
}
|
|
1916
1917
|
}
|
|
1917
|
-
out.
|
|
1918
|
+
out.j1t();
|
|
1918
1919
|
return out;
|
|
1919
1920
|
};
|
|
1920
1921
|
var PathSimplifier_instance;
|
|
@@ -1959,23 +1960,23 @@
|
|
|
1959
1960
|
var PointField_CADENCE_instance;
|
|
1960
1961
|
function Companion_5() {
|
|
1961
1962
|
Companion_instance_5 = this;
|
|
1962
|
-
this.
|
|
1963
|
+
this.a1w_1 = 36;
|
|
1963
1964
|
var tmp = this;
|
|
1964
1965
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1965
1966
|
var this_0 = get_entries();
|
|
1966
1967
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1967
1968
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1968
1969
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1969
|
-
var _iterator__ex2g4s = this_0.
|
|
1970
|
-
while (_iterator__ex2g4s.
|
|
1971
|
-
var element = _iterator__ex2g4s.
|
|
1972
|
-
var tmp$ret$2 = element.
|
|
1973
|
-
destination.
|
|
1970
|
+
var _iterator__ex2g4s = this_0.h();
|
|
1971
|
+
while (_iterator__ex2g4s.i()) {
|
|
1972
|
+
var element = _iterator__ex2g4s.j();
|
|
1973
|
+
var tmp$ret$2 = element.e1w_1;
|
|
1974
|
+
destination.a3(tmp$ret$2, element);
|
|
1974
1975
|
}
|
|
1975
|
-
tmp.
|
|
1976
|
+
tmp.b1w_1 = destination;
|
|
1976
1977
|
}
|
|
1977
|
-
protoOf(Companion_5).
|
|
1978
|
-
return this.
|
|
1978
|
+
protoOf(Companion_5).k1w = function (prop) {
|
|
1979
|
+
return this.b1w_1.j1(prop);
|
|
1979
1980
|
};
|
|
1980
1981
|
var Companion_instance_5;
|
|
1981
1982
|
function Companion_getInstance_6() {
|
|
@@ -2040,12 +2041,12 @@
|
|
|
2040
2041
|
notSelectable = notSelectable === VOID ? false : notSelectable;
|
|
2041
2042
|
anglesInRadians = anglesInRadians === VOID ? false : anglesInRadians;
|
|
2042
2043
|
Enum.call(this, name, ordinal);
|
|
2043
|
-
this.
|
|
2044
|
-
this.
|
|
2045
|
-
this.
|
|
2046
|
-
this.
|
|
2047
|
-
this.
|
|
2048
|
-
this.
|
|
2044
|
+
this.e1w_1 = prop;
|
|
2045
|
+
this.f1w_1 = unit;
|
|
2046
|
+
this.g1w_1 = shortDescription;
|
|
2047
|
+
this.h1w_1 = category;
|
|
2048
|
+
this.i1w_1 = notSelectable;
|
|
2049
|
+
this.j1w_1 = anglesInRadians;
|
|
2049
2050
|
}
|
|
2050
2051
|
function PointField_LATITUDE_getInstance() {
|
|
2051
2052
|
PointField_initEntries();
|
|
@@ -2227,8 +2228,8 @@
|
|
|
2227
2228
|
}
|
|
2228
2229
|
function PointFieldCategory(name, ordinal, id, displayName) {
|
|
2229
2230
|
Enum.call(this, name, ordinal);
|
|
2230
|
-
this.
|
|
2231
|
-
this.
|
|
2231
|
+
this.n1w_1 = id;
|
|
2232
|
+
this.o1w_1 = displayName;
|
|
2232
2233
|
}
|
|
2233
2234
|
function PointFieldCategory_COORDINATES_getInstance() {
|
|
2234
2235
|
PointFieldCategory_initEntries();
|
|
@@ -2287,35 +2288,35 @@
|
|
|
2287
2288
|
return PointFieldCategory_PHYSIOLOGICAL_instance;
|
|
2288
2289
|
}
|
|
2289
2290
|
function Copy(sourceIndex) {
|
|
2290
|
-
this.
|
|
2291
|
+
this.p1w_1 = sourceIndex;
|
|
2291
2292
|
}
|
|
2292
2293
|
protoOf(Copy).toString = function () {
|
|
2293
|
-
return 'Copy(sourceIndex=' + this.
|
|
2294
|
+
return 'Copy(sourceIndex=' + this.p1w_1 + ')';
|
|
2294
2295
|
};
|
|
2295
2296
|
protoOf(Copy).hashCode = function () {
|
|
2296
|
-
return this.
|
|
2297
|
+
return this.p1w_1;
|
|
2297
2298
|
};
|
|
2298
2299
|
protoOf(Copy).equals = function (other) {
|
|
2299
2300
|
if (this === other)
|
|
2300
2301
|
return true;
|
|
2301
2302
|
if (!(other instanceof Copy))
|
|
2302
2303
|
return false;
|
|
2303
|
-
if (!(this.
|
|
2304
|
+
if (!(this.p1w_1 === other.p1w_1))
|
|
2304
2305
|
return false;
|
|
2305
2306
|
return true;
|
|
2306
2307
|
};
|
|
2307
2308
|
function Interpolate(from, to, coef) {
|
|
2308
|
-
this.
|
|
2309
|
-
this.
|
|
2310
|
-
this.
|
|
2309
|
+
this.q1w_1 = from;
|
|
2310
|
+
this.r1w_1 = to;
|
|
2311
|
+
this.s1w_1 = coef;
|
|
2311
2312
|
}
|
|
2312
2313
|
protoOf(Interpolate).toString = function () {
|
|
2313
|
-
return 'Interpolate(from=' + this.
|
|
2314
|
+
return 'Interpolate(from=' + this.q1w_1 + ', to=' + this.r1w_1 + ', coef=' + this.s1w_1 + ')';
|
|
2314
2315
|
};
|
|
2315
2316
|
protoOf(Interpolate).hashCode = function () {
|
|
2316
|
-
var result = this.
|
|
2317
|
-
result = imul(result, 31) + this.
|
|
2318
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2317
|
+
var result = this.q1w_1;
|
|
2318
|
+
result = imul(result, 31) + this.r1w_1 | 0;
|
|
2319
|
+
result = imul(result, 31) + getNumberHashCode(this.s1w_1) | 0;
|
|
2319
2320
|
return result;
|
|
2320
2321
|
};
|
|
2321
2322
|
protoOf(Interpolate).equals = function (other) {
|
|
@@ -2323,35 +2324,35 @@
|
|
|
2323
2324
|
return true;
|
|
2324
2325
|
if (!(other instanceof Interpolate))
|
|
2325
2326
|
return false;
|
|
2326
|
-
if (!(this.
|
|
2327
|
+
if (!(this.q1w_1 === other.q1w_1))
|
|
2327
2328
|
return false;
|
|
2328
|
-
if (!(this.
|
|
2329
|
+
if (!(this.r1w_1 === other.r1w_1))
|
|
2329
2330
|
return false;
|
|
2330
|
-
if (!equals(this.
|
|
2331
|
+
if (!equals(this.s1w_1, other.s1w_1))
|
|
2331
2332
|
return false;
|
|
2332
2333
|
return true;
|
|
2333
2334
|
};
|
|
2334
2335
|
function buildPlan($this, source, minDistanceM, maxDistanceM) {
|
|
2335
|
-
var n = source.
|
|
2336
|
+
var n = source.d1s_1;
|
|
2336
2337
|
var plan = ArrayList_init_$Create$(n);
|
|
2337
2338
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2338
2339
|
var element = new Copy(0);
|
|
2339
|
-
plan.
|
|
2340
|
-
var lastAddedDistance = source.
|
|
2340
|
+
plan.n(element);
|
|
2341
|
+
var lastAddedDistance = source.h1u(0);
|
|
2341
2342
|
var lastAddedIndex = 0;
|
|
2342
2343
|
var inductionVariable = 1;
|
|
2343
2344
|
if (inductionVariable < n)
|
|
2344
2345
|
$l$loop: do {
|
|
2345
2346
|
var i = inductionVariable;
|
|
2346
2347
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2347
|
-
var curDist = source.
|
|
2348
|
+
var curDist = source.h1u(i);
|
|
2348
2349
|
var gap = curDist - lastAddedDistance;
|
|
2349
2350
|
if (gap < minDistanceM)
|
|
2350
2351
|
continue $l$loop;
|
|
2351
2352
|
else if (gap <= maxDistanceM) {
|
|
2352
2353
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2353
2354
|
var element_0 = new Copy(i);
|
|
2354
|
-
plan.
|
|
2355
|
+
plan.n(element_0);
|
|
2355
2356
|
lastAddedDistance = curDist;
|
|
2356
2357
|
lastAddedIndex = i;
|
|
2357
2358
|
} else {
|
|
@@ -2367,20 +2368,20 @@
|
|
|
2367
2368
|
var j = inductionVariable_0;
|
|
2368
2369
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2369
2370
|
var targetDistance = lastAddedDistance + j * spacing;
|
|
2370
|
-
while (index1 < (i - 1 | 0) && source.
|
|
2371
|
+
while (index1 < (i - 1 | 0) && source.h1u(index1 + 1 | 0) < targetDistance) {
|
|
2371
2372
|
index1 = index1 + 1 | 0;
|
|
2372
2373
|
}
|
|
2373
|
-
var dist1 = source.
|
|
2374
|
-
var dist2 = source.
|
|
2374
|
+
var dist1 = source.h1u(index1);
|
|
2375
|
+
var dist2 = source.h1u(index1 + 1 | 0);
|
|
2375
2376
|
var coef = (targetDistance - dist1) / (dist2 - dist1);
|
|
2376
2377
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2377
2378
|
var element_1 = new Interpolate(index1, index1 + 1 | 0, coef);
|
|
2378
|
-
plan.
|
|
2379
|
+
plan.n(element_1);
|
|
2379
2380
|
}
|
|
2380
2381
|
while (inductionVariable_0 < numSegments);
|
|
2381
2382
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2382
2383
|
var element_2 = new Copy(i);
|
|
2383
|
-
plan.
|
|
2384
|
+
plan.n(element_2);
|
|
2384
2385
|
lastAddedDistance = curDist;
|
|
2385
2386
|
lastAddedIndex = i;
|
|
2386
2387
|
}
|
|
@@ -2389,60 +2390,60 @@
|
|
|
2389
2390
|
return plan;
|
|
2390
2391
|
}
|
|
2391
2392
|
function materialize($this, source, plan) {
|
|
2392
|
-
var out = new Path(plan.
|
|
2393
|
-
var iterator = plan.
|
|
2393
|
+
var out = new Path(plan.k());
|
|
2394
|
+
var iterator = plan.h();
|
|
2394
2395
|
var index = 0;
|
|
2395
|
-
while (iterator.
|
|
2396
|
+
while (iterator.i()) {
|
|
2396
2397
|
var dstIdx = index;
|
|
2397
2398
|
index = index + 1 | 0;
|
|
2398
|
-
var op = iterator.
|
|
2399
|
+
var op = iterator.j();
|
|
2399
2400
|
if (op instanceof Copy) {
|
|
2400
|
-
copyFields($this, source, op.
|
|
2401
|
+
copyFields($this, source, op.p1w_1, out, dstIdx);
|
|
2401
2402
|
} else {
|
|
2402
2403
|
if (op instanceof Interpolate) {
|
|
2403
|
-
interpolateFields($this, source, op.
|
|
2404
|
+
interpolateFields($this, source, op.q1w_1, op.r1w_1, op.s1w_1, out, dstIdx);
|
|
2404
2405
|
} else {
|
|
2405
2406
|
noWhenBranchMatchedException();
|
|
2406
2407
|
}
|
|
2407
2408
|
}
|
|
2408
2409
|
}
|
|
2409
|
-
out.
|
|
2410
|
+
out.j1t();
|
|
2410
2411
|
return out;
|
|
2411
2412
|
}
|
|
2412
2413
|
function copyFields($this, src, srcIdx, dst, dstIdx) {
|
|
2413
|
-
var _iterator__ex2g4s = get_entries().
|
|
2414
|
-
while (_iterator__ex2g4s.
|
|
2415
|
-
var field = _iterator__ex2g4s.
|
|
2416
|
-
dst.
|
|
2414
|
+
var _iterator__ex2g4s = get_entries().h();
|
|
2415
|
+
while (_iterator__ex2g4s.i()) {
|
|
2416
|
+
var field = _iterator__ex2g4s.j();
|
|
2417
|
+
dst.t1t(dstIdx, field, src.s1t(srcIdx, field));
|
|
2417
2418
|
}
|
|
2418
2419
|
}
|
|
2419
2420
|
function interpolateFields($this, src, i1, i2, coef, dst, dstIdx) {
|
|
2420
|
-
var _iterator__ex2g4s = get_entries().
|
|
2421
|
-
while (_iterator__ex2g4s.
|
|
2422
|
-
var field = _iterator__ex2g4s.
|
|
2423
|
-
var v1 = src.
|
|
2424
|
-
var v2 = src.
|
|
2421
|
+
var _iterator__ex2g4s = get_entries().h();
|
|
2422
|
+
while (_iterator__ex2g4s.i()) {
|
|
2423
|
+
var field = _iterator__ex2g4s.j();
|
|
2424
|
+
var v1 = src.s1t(i1, field);
|
|
2425
|
+
var v2 = src.s1t(i2, field);
|
|
2425
2426
|
var v = isNaN_0(v1) || isNaN_0(v2) ? NaN : v1 + (v2 - v1) * coef;
|
|
2426
|
-
dst.
|
|
2427
|
+
dst.t1t(dstIdx, field, v);
|
|
2427
2428
|
}
|
|
2428
2429
|
}
|
|
2429
2430
|
function PointPerDistance() {
|
|
2430
2431
|
}
|
|
2431
|
-
protoOf(PointPerDistance).
|
|
2432
|
-
return this.
|
|
2432
|
+
protoOf(PointPerDistance).z1q = function (source, minDistanceM, maxDistanceM) {
|
|
2433
|
+
return this.t1w(source, minDistanceM, maxDistanceM);
|
|
2433
2434
|
};
|
|
2434
|
-
protoOf(PointPerDistance).
|
|
2435
|
+
protoOf(PointPerDistance).t1w = function (source, minDistanceM, maxDistanceM) {
|
|
2435
2436
|
// Inline function 'kotlin.require' call
|
|
2436
2437
|
if (!(maxDistanceM > 0.0)) {
|
|
2437
2438
|
var message = 'maxDistanceM must be > 0, got ' + maxDistanceM;
|
|
2438
2439
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2439
2440
|
}
|
|
2440
|
-
if (source.
|
|
2441
|
+
if (source.d1s_1 === 0)
|
|
2441
2442
|
return new Path(0);
|
|
2442
|
-
if (source.
|
|
2443
|
+
if (source.d1s_1 === 1) {
|
|
2443
2444
|
var out = new Path(1);
|
|
2444
2445
|
copyFields(this, source, 0, out, 0);
|
|
2445
|
-
out.
|
|
2446
|
+
out.j1t();
|
|
2446
2447
|
return out;
|
|
2447
2448
|
}
|
|
2448
2449
|
var plan = buildPlan(this, source, minDistanceM, maxDistanceM);
|
|
@@ -2453,35 +2454,35 @@
|
|
|
2453
2454
|
return PointPerDistance_instance;
|
|
2454
2455
|
}
|
|
2455
2456
|
function Copy_0(sourceIndex) {
|
|
2456
|
-
this.
|
|
2457
|
+
this.u1w_1 = sourceIndex;
|
|
2457
2458
|
}
|
|
2458
2459
|
protoOf(Copy_0).toString = function () {
|
|
2459
|
-
return 'Copy(sourceIndex=' + this.
|
|
2460
|
+
return 'Copy(sourceIndex=' + this.u1w_1 + ')';
|
|
2460
2461
|
};
|
|
2461
2462
|
protoOf(Copy_0).hashCode = function () {
|
|
2462
|
-
return this.
|
|
2463
|
+
return this.u1w_1;
|
|
2463
2464
|
};
|
|
2464
2465
|
protoOf(Copy_0).equals = function (other) {
|
|
2465
2466
|
if (this === other)
|
|
2466
2467
|
return true;
|
|
2467
2468
|
if (!(other instanceof Copy_0))
|
|
2468
2469
|
return false;
|
|
2469
|
-
if (!(this.
|
|
2470
|
+
if (!(this.u1w_1 === other.u1w_1))
|
|
2470
2471
|
return false;
|
|
2471
2472
|
return true;
|
|
2472
2473
|
};
|
|
2473
2474
|
function Interpolate_0(from, to, coef) {
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
this.
|
|
2475
|
+
this.v1w_1 = from;
|
|
2476
|
+
this.w1w_1 = to;
|
|
2477
|
+
this.x1w_1 = coef;
|
|
2477
2478
|
}
|
|
2478
2479
|
protoOf(Interpolate_0).toString = function () {
|
|
2479
|
-
return 'Interpolate(from=' + this.
|
|
2480
|
+
return 'Interpolate(from=' + this.v1w_1 + ', to=' + this.w1w_1 + ', coef=' + this.x1w_1 + ')';
|
|
2480
2481
|
};
|
|
2481
2482
|
protoOf(Interpolate_0).hashCode = function () {
|
|
2482
|
-
var result = this.
|
|
2483
|
-
result = imul(result, 31) + this.
|
|
2484
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2483
|
+
var result = this.v1w_1;
|
|
2484
|
+
result = imul(result, 31) + this.w1w_1 | 0;
|
|
2485
|
+
result = imul(result, 31) + getNumberHashCode(this.x1w_1) | 0;
|
|
2485
2486
|
return result;
|
|
2486
2487
|
};
|
|
2487
2488
|
protoOf(Interpolate_0).equals = function (other) {
|
|
@@ -2489,23 +2490,23 @@
|
|
|
2489
2490
|
return true;
|
|
2490
2491
|
if (!(other instanceof Interpolate_0))
|
|
2491
2492
|
return false;
|
|
2492
|
-
if (!(this.
|
|
2493
|
+
if (!(this.v1w_1 === other.v1w_1))
|
|
2493
2494
|
return false;
|
|
2494
|
-
if (!(this.
|
|
2495
|
+
if (!(this.w1w_1 === other.w1w_1))
|
|
2495
2496
|
return false;
|
|
2496
|
-
if (!equals(this.
|
|
2497
|
+
if (!equals(this.x1w_1, other.x1w_1))
|
|
2497
2498
|
return false;
|
|
2498
2499
|
return true;
|
|
2499
2500
|
};
|
|
2500
2501
|
function buildPlan_0($this, source) {
|
|
2501
2502
|
var plan = LinkedHashMap_init_$Create$_0();
|
|
2502
|
-
var n = source.
|
|
2503
|
+
var n = source.d1s_1;
|
|
2503
2504
|
var inductionVariable = 0;
|
|
2504
2505
|
if (inductionVariable < n)
|
|
2505
2506
|
$l$loop_0: do {
|
|
2506
2507
|
var i = inductionVariable;
|
|
2507
2508
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2508
|
-
var time1 = source.
|
|
2509
|
+
var time1 = source.i1s(i);
|
|
2509
2510
|
// Inline function 'kotlin.math.floor' call
|
|
2510
2511
|
var x = time1 / 1000.0;
|
|
2511
2512
|
var tmp$ret$0 = Math.floor(x);
|
|
@@ -2514,18 +2515,18 @@
|
|
|
2514
2515
|
if (i === 0 && !equalsLong(msInSec1, new Long(0, 0))) {
|
|
2515
2516
|
// Inline function 'kotlin.collections.set' call
|
|
2516
2517
|
var value = new Copy_0(i);
|
|
2517
|
-
plan.
|
|
2518
|
+
plan.a3(epoch1, value);
|
|
2518
2519
|
}
|
|
2519
2520
|
if (i === (n - 1 | 0)) {
|
|
2520
2521
|
if (!equalsLong(msInSec1, new Long(0, 0))) {
|
|
2521
2522
|
var tmp2 = add(epoch1, new Long(1, 0));
|
|
2522
2523
|
// Inline function 'kotlin.collections.set' call
|
|
2523
2524
|
var value_0 = new Copy_0(i);
|
|
2524
|
-
plan.
|
|
2525
|
+
plan.a3(tmp2, value_0);
|
|
2525
2526
|
}
|
|
2526
2527
|
continue $l$loop_0;
|
|
2527
2528
|
}
|
|
2528
|
-
var time2 = source.
|
|
2529
|
+
var time2 = source.i1s(i + 1 | 0);
|
|
2529
2530
|
// Inline function 'kotlin.math.floor' call
|
|
2530
2531
|
var x_0 = time2 / 1000.0;
|
|
2531
2532
|
var tmp$ret$3 = Math.floor(x_0);
|
|
@@ -2544,7 +2545,7 @@
|
|
|
2544
2545
|
var tmp2_0 = e;
|
|
2545
2546
|
// Inline function 'kotlin.collections.set' call
|
|
2546
2547
|
var value_1 = new Interpolate_0(i, i + 1 | 0, coef);
|
|
2547
|
-
plan.
|
|
2548
|
+
plan.a3(tmp2_0, value_1);
|
|
2548
2549
|
var _unary__edvuaz = e;
|
|
2549
2550
|
e = add(_unary__edvuaz, get_ONE());
|
|
2550
2551
|
}
|
|
@@ -2553,15 +2554,15 @@
|
|
|
2553
2554
|
return plan;
|
|
2554
2555
|
}
|
|
2555
2556
|
function materialize_0($this, source, plan) {
|
|
2556
|
-
var sortedEpochs = sorted(plan.
|
|
2557
|
-
var out = new Path(sortedEpochs.
|
|
2558
|
-
var iterator = sortedEpochs.
|
|
2557
|
+
var sortedEpochs = sorted(plan.k1());
|
|
2558
|
+
var out = new Path(sortedEpochs.k());
|
|
2559
|
+
var iterator = sortedEpochs.h();
|
|
2559
2560
|
var index = 0;
|
|
2560
|
-
$l$loop: while (iterator.
|
|
2561
|
+
$l$loop: while (iterator.i()) {
|
|
2561
2562
|
var idx = index;
|
|
2562
2563
|
index = index + 1 | 0;
|
|
2563
|
-
var epoch = iterator.
|
|
2564
|
-
var tmp0_elvis_lhs = plan.
|
|
2564
|
+
var epoch = iterator.j();
|
|
2565
|
+
var tmp0_elvis_lhs = plan.j1(epoch);
|
|
2565
2566
|
var tmp;
|
|
2566
2567
|
if (tmp0_elvis_lhs == null) {
|
|
2567
2568
|
continue $l$loop;
|
|
@@ -2570,40 +2571,40 @@
|
|
|
2570
2571
|
}
|
|
2571
2572
|
var data = tmp;
|
|
2572
2573
|
if (data instanceof Copy_0) {
|
|
2573
|
-
copyFields_0($this, source, data.
|
|
2574
|
+
copyFields_0($this, source, data.u1w_1, out, idx);
|
|
2574
2575
|
} else {
|
|
2575
2576
|
if (data instanceof Interpolate_0) {
|
|
2576
|
-
interpolateFields_0($this, source, data.
|
|
2577
|
+
interpolateFields_0($this, source, data.v1w_1, data.w1w_1, data.x1w_1, out, idx);
|
|
2577
2578
|
} else {
|
|
2578
2579
|
noWhenBranchMatchedException();
|
|
2579
2580
|
}
|
|
2580
2581
|
}
|
|
2581
|
-
out.
|
|
2582
|
+
out.v1s(idx, toNumber(multiply(epoch, new Long(1000, 0))));
|
|
2582
2583
|
}
|
|
2583
|
-
out.
|
|
2584
|
+
out.j1t();
|
|
2584
2585
|
return out;
|
|
2585
2586
|
}
|
|
2586
2587
|
function copyFields_0($this, src, srcIdx, dst, dstIdx) {
|
|
2587
|
-
var _iterator__ex2g4s = get_entries().
|
|
2588
|
-
while (_iterator__ex2g4s.
|
|
2589
|
-
var field = _iterator__ex2g4s.
|
|
2590
|
-
dst.
|
|
2588
|
+
var _iterator__ex2g4s = get_entries().h();
|
|
2589
|
+
while (_iterator__ex2g4s.i()) {
|
|
2590
|
+
var field = _iterator__ex2g4s.j();
|
|
2591
|
+
dst.t1t(dstIdx, field, src.s1t(srcIdx, field));
|
|
2591
2592
|
}
|
|
2592
2593
|
}
|
|
2593
2594
|
function interpolateFields_0($this, src, i1, i2, coef, dst, dstIdx) {
|
|
2594
|
-
var _iterator__ex2g4s = get_entries().
|
|
2595
|
-
while (_iterator__ex2g4s.
|
|
2596
|
-
var field = _iterator__ex2g4s.
|
|
2597
|
-
var v1 = src.
|
|
2598
|
-
var v2 = src.
|
|
2595
|
+
var _iterator__ex2g4s = get_entries().h();
|
|
2596
|
+
while (_iterator__ex2g4s.i()) {
|
|
2597
|
+
var field = _iterator__ex2g4s.j();
|
|
2598
|
+
var v1 = src.s1t(i1, field);
|
|
2599
|
+
var v2 = src.s1t(i2, field);
|
|
2599
2600
|
var v = isNaN_0(v1) || isNaN_0(v2) ? NaN : v1 + (v2 - v1) * coef;
|
|
2600
|
-
dst.
|
|
2601
|
+
dst.t1t(dstIdx, field, v);
|
|
2601
2602
|
}
|
|
2602
2603
|
}
|
|
2603
2604
|
function PointPerSecond() {
|
|
2604
2605
|
}
|
|
2605
|
-
protoOf(PointPerSecond).
|
|
2606
|
-
if (source.
|
|
2606
|
+
protoOf(PointPerSecond).l1r = function (source) {
|
|
2607
|
+
if (source.d1s_1 === 0)
|
|
2607
2608
|
return new Path(0);
|
|
2608
2609
|
var plan = buildPlan_0(this, source);
|
|
2609
2610
|
return materialize_0(this, source, plan);
|
|
@@ -2613,15 +2614,15 @@
|
|
|
2613
2614
|
return PointPerSecond_instance;
|
|
2614
2615
|
}
|
|
2615
2616
|
function computeWithWind($this, path, i, aeroCoef, wind) {
|
|
2616
|
-
var speed = path.
|
|
2617
|
-
var bearing = path.
|
|
2618
|
-
path.
|
|
2619
|
-
path.
|
|
2620
|
-
var windDirectionAsBearing = 3.141592653589793 / 2.0 - wind.
|
|
2621
|
-
path.
|
|
2617
|
+
var speed = path.j1v(i);
|
|
2618
|
+
var bearing = path.o1u(i);
|
|
2619
|
+
path.p1v(i, wind.y1w_1);
|
|
2620
|
+
path.q1v(i, wind.z1w_1);
|
|
2621
|
+
var windDirectionAsBearing = 3.141592653589793 / 2.0 - wind.z1w_1;
|
|
2622
|
+
path.u1u(i, windDirectionAsBearing);
|
|
2622
2623
|
var alpha = windDirectionAsBearing - bearing;
|
|
2623
|
-
path.
|
|
2624
|
-
var v = wind.
|
|
2624
|
+
path.v1u(i, alpha);
|
|
2625
|
+
var v = wind.y1w_1;
|
|
2625
2626
|
// Inline function 'kotlin.math.cos' call
|
|
2626
2627
|
var l1 = speed + v * Math.cos(alpha);
|
|
2627
2628
|
var l2 = l1 * l1;
|
|
@@ -2636,21 +2637,21 @@
|
|
|
2636
2637
|
return tmp_1 * Math.sqrt(l3) * l1 * speed;
|
|
2637
2638
|
}
|
|
2638
2639
|
function AeroPowerProvider() {
|
|
2639
|
-
this.
|
|
2640
|
+
this.a1x_1 = 1.2;
|
|
2640
2641
|
}
|
|
2641
|
-
protoOf(AeroPowerProvider).
|
|
2642
|
-
var aeroCoef = course.
|
|
2643
|
-
path.
|
|
2644
|
-
var wind = course.
|
|
2642
|
+
protoOf(AeroPowerProvider).b1x = function (course, path, pointIndex) {
|
|
2643
|
+
var aeroCoef = course.m1p_1.c1x(course, path, pointIndex);
|
|
2644
|
+
path.t1u(pointIndex, aeroCoef);
|
|
2645
|
+
var wind = course.n1p_1.d1x(course.k1p_1, path, pointIndex);
|
|
2645
2646
|
var tmp;
|
|
2646
|
-
if (wind.
|
|
2647
|
-
var v = path.
|
|
2647
|
+
if (wind.y1w_1 === 0.0) {
|
|
2648
|
+
var v = path.j1v(pointIndex);
|
|
2648
2649
|
tmp = -aeroCoef * v * v * v;
|
|
2649
2650
|
} else {
|
|
2650
2651
|
tmp = computeWithWind(this, path, pointIndex, aeroCoef, wind);
|
|
2651
2652
|
}
|
|
2652
2653
|
var pAir = tmp;
|
|
2653
|
-
path.
|
|
2654
|
+
path.w1u(pointIndex, pAir);
|
|
2654
2655
|
return pAir;
|
|
2655
2656
|
};
|
|
2656
2657
|
var AeroPowerProvider_instance;
|
|
@@ -2659,17 +2660,17 @@
|
|
|
2659
2660
|
}
|
|
2660
2661
|
function AeroProviderConstant() {
|
|
2661
2662
|
}
|
|
2662
|
-
protoOf(AeroProviderConstant).
|
|
2663
|
-
var rho = course.
|
|
2664
|
-
return course.
|
|
2663
|
+
protoOf(AeroProviderConstant).c1x = function (course, path, pointIndex) {
|
|
2664
|
+
var rho = course.l1p_1.e1x(course.k1p_1, path, pointIndex);
|
|
2665
|
+
return course.q1p().w1p_1 * course.q1p().x1p_1 * rho / 2.0;
|
|
2665
2666
|
};
|
|
2666
2667
|
var AeroProviderConstant_instance;
|
|
2667
2668
|
function AeroProviderConstant_getInstance() {
|
|
2668
2669
|
return AeroProviderConstant_instance;
|
|
2669
2670
|
}
|
|
2670
2671
|
function Companion_6() {
|
|
2671
|
-
this.
|
|
2672
|
-
this.
|
|
2672
|
+
this.f1x_1 = 0.05;
|
|
2673
|
+
this.g1x_1 = 3.0;
|
|
2673
2674
|
}
|
|
2674
2675
|
var Companion_instance_6;
|
|
2675
2676
|
function Companion_getInstance_7() {
|
|
@@ -2677,10 +2678,10 @@
|
|
|
2677
2678
|
}
|
|
2678
2679
|
function CyclistPowerProviderBase(useHarmonics, random) {
|
|
2679
2680
|
random = random === VOID ? Default_getInstance() : random;
|
|
2680
|
-
this.
|
|
2681
|
+
this.h1x_1 = useHarmonics;
|
|
2681
2682
|
var tmp = this;
|
|
2682
2683
|
var tmp_0;
|
|
2683
|
-
if (this.
|
|
2684
|
+
if (this.h1x_1) {
|
|
2684
2685
|
// Inline function 'kotlin.collections.List' call
|
|
2685
2686
|
// Inline function 'kotlin.collections.MutableList' call
|
|
2686
2687
|
var list = ArrayList_init_$Create$(20);
|
|
@@ -2690,48 +2691,48 @@
|
|
|
2690
2691
|
do {
|
|
2691
2692
|
var index = inductionVariable;
|
|
2692
2693
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2693
|
-
var tmp$ret$4 = new Harmonic(1.0 + random.
|
|
2694
|
-
list.
|
|
2694
|
+
var tmp$ret$4 = new Harmonic(1.0 + random.qb() * 9.0, random.qb() * 3.141592653589793, random.qb() * 0.01);
|
|
2695
|
+
list.n(tmp$ret$4);
|
|
2695
2696
|
}
|
|
2696
2697
|
while (inductionVariable < 20);
|
|
2697
2698
|
tmp_0 = list;
|
|
2698
2699
|
} else {
|
|
2699
2700
|
tmp_0 = emptyList();
|
|
2700
2701
|
}
|
|
2701
|
-
tmp.
|
|
2702
|
-
}
|
|
2703
|
-
protoOf(CyclistPowerProviderBase).
|
|
2704
|
-
var power = this.
|
|
2705
|
-
path.
|
|
2706
|
-
if (this.
|
|
2707
|
-
var x = path.
|
|
2708
|
-
var _iterator__ex2g4s = this.
|
|
2709
|
-
while (_iterator__ex2g4s.
|
|
2710
|
-
var h = _iterator__ex2g4s.
|
|
2702
|
+
tmp.i1x_1 = tmp_0;
|
|
2703
|
+
}
|
|
2704
|
+
protoOf(CyclistPowerProviderBase).b1x = function (course, path, pointIndex) {
|
|
2705
|
+
var power = this.j1x(course, path, pointIndex);
|
|
2706
|
+
path.a1v(pointIndex, power);
|
|
2707
|
+
if (this.h1x_1) {
|
|
2708
|
+
var x = path.i1s(pointIndex) / 10000.0;
|
|
2709
|
+
var _iterator__ex2g4s = this.i1x_1.h();
|
|
2710
|
+
while (_iterator__ex2g4s.i()) {
|
|
2711
|
+
var h = _iterator__ex2g4s.j();
|
|
2711
2712
|
var tmp = power;
|
|
2712
|
-
var tmp_0 = h.
|
|
2713
|
+
var tmp_0 = h.m1x_1 * power;
|
|
2713
2714
|
// Inline function 'kotlin.math.cos' call
|
|
2714
|
-
var x_0 = h.
|
|
2715
|
+
var x_0 = h.k1x_1 * x - h.l1x_1;
|
|
2715
2716
|
power = tmp + tmp_0 * Math.cos(x_0);
|
|
2716
2717
|
}
|
|
2717
2718
|
}
|
|
2718
|
-
path.
|
|
2719
|
-
var powerNeeded = -PowerComputer_instance.
|
|
2720
|
-
path.
|
|
2719
|
+
path.b1v(pointIndex, power);
|
|
2720
|
+
var powerNeeded = -PowerComputer_instance.n1x(course, path, pointIndex, false);
|
|
2721
|
+
path.c1v(pointIndex, powerNeeded);
|
|
2721
2722
|
return power;
|
|
2722
2723
|
};
|
|
2723
2724
|
function GravPowerProvider() {
|
|
2724
2725
|
}
|
|
2725
|
-
protoOf(GravPowerProvider).
|
|
2726
|
-
var m = course.
|
|
2727
|
-
var grade = path.
|
|
2728
|
-
var speed = path.
|
|
2726
|
+
protoOf(GravPowerProvider).b1x = function (course, path, pointIndex) {
|
|
2727
|
+
var m = course.q1p().u1p_1;
|
|
2728
|
+
var grade = path.q1u(pointIndex);
|
|
2729
|
+
var speed = path.j1v(pointIndex);
|
|
2729
2730
|
var tmp = -m * 9.8 * speed;
|
|
2730
2731
|
// Inline function 'kotlin.math.atan' call
|
|
2731
2732
|
// Inline function 'kotlin.math.sin' call
|
|
2732
2733
|
var x = Math.atan(grade);
|
|
2733
2734
|
var p = tmp * Math.sin(x);
|
|
2734
|
-
path.
|
|
2735
|
+
path.x1u(pointIndex, p);
|
|
2735
2736
|
return p;
|
|
2736
2737
|
};
|
|
2737
2738
|
var GravPowerProvider_instance;
|
|
@@ -2739,17 +2740,17 @@
|
|
|
2739
2740
|
return GravPowerProvider_instance;
|
|
2740
2741
|
}
|
|
2741
2742
|
function Harmonic(freqRadS, phaseRad, amp) {
|
|
2742
|
-
this.
|
|
2743
|
-
this.
|
|
2744
|
-
this.
|
|
2743
|
+
this.k1x_1 = freqRadS;
|
|
2744
|
+
this.l1x_1 = phaseRad;
|
|
2745
|
+
this.m1x_1 = amp;
|
|
2745
2746
|
}
|
|
2746
2747
|
protoOf(Harmonic).toString = function () {
|
|
2747
|
-
return 'Harmonic(freqRadS=' + this.
|
|
2748
|
+
return 'Harmonic(freqRadS=' + this.k1x_1 + ', phaseRad=' + this.l1x_1 + ', amp=' + this.m1x_1 + ')';
|
|
2748
2749
|
};
|
|
2749
2750
|
protoOf(Harmonic).hashCode = function () {
|
|
2750
|
-
var result = getNumberHashCode(this.
|
|
2751
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2752
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2751
|
+
var result = getNumberHashCode(this.k1x_1);
|
|
2752
|
+
result = imul(result, 31) + getNumberHashCode(this.l1x_1) | 0;
|
|
2753
|
+
result = imul(result, 31) + getNumberHashCode(this.m1x_1) | 0;
|
|
2753
2754
|
return result;
|
|
2754
2755
|
};
|
|
2755
2756
|
protoOf(Harmonic).equals = function (other) {
|
|
@@ -2757,39 +2758,39 @@
|
|
|
2757
2758
|
return true;
|
|
2758
2759
|
if (!(other instanceof Harmonic))
|
|
2759
2760
|
return false;
|
|
2760
|
-
if (!equals(this.
|
|
2761
|
+
if (!equals(this.k1x_1, other.k1x_1))
|
|
2761
2762
|
return false;
|
|
2762
|
-
if (!equals(this.
|
|
2763
|
+
if (!equals(this.l1x_1, other.l1x_1))
|
|
2763
2764
|
return false;
|
|
2764
|
-
if (!equals(this.
|
|
2765
|
+
if (!equals(this.m1x_1, other.m1x_1))
|
|
2765
2766
|
return false;
|
|
2766
2767
|
return true;
|
|
2767
2768
|
};
|
|
2768
2769
|
function computeCorneringLimit($this, course, currentIndex, window_0) {
|
|
2769
|
-
var path = course.
|
|
2770
|
+
var path = course.e1p_1;
|
|
2770
2771
|
var radius = computeRadiusWindowed($this, path, currentIndex, window_0);
|
|
2771
2772
|
// Inline function 'kotlin.math.sqrt' call
|
|
2772
|
-
var x = 9.8 * radius * course.
|
|
2773
|
+
var x = 9.8 * radius * course.f1p_1.a1q();
|
|
2773
2774
|
var vMax = Math.sqrt(x);
|
|
2774
2775
|
// Inline function 'kotlin.math.min' call
|
|
2775
|
-
var a = course.
|
|
2776
|
+
var a = course.f1p_1.c1q();
|
|
2776
2777
|
var result = Math.min(a, vMax);
|
|
2777
|
-
path.
|
|
2778
|
+
path.n1v(currentIndex, result);
|
|
2778
2779
|
return result;
|
|
2779
2780
|
}
|
|
2780
2781
|
function computeRadiusWindowed($this, path, i, k) {
|
|
2781
2782
|
// Inline function 'kotlin.math.max' call
|
|
2782
2783
|
var b = i - k | 0;
|
|
2783
2784
|
var mini = Math.max(0, b);
|
|
2784
|
-
var tmp0 = path.
|
|
2785
|
+
var tmp0 = path.d1s_1 - 1 | 0;
|
|
2785
2786
|
// Inline function 'kotlin.math.min' call
|
|
2786
2787
|
var b_0 = i + k | 0;
|
|
2787
2788
|
var maxi = Math.min(tmp0, b_0);
|
|
2788
|
-
var totalBearingChange = $this.
|
|
2789
|
-
var totalDistance = path.
|
|
2789
|
+
var totalBearingChange = $this.o1x(path.o1u(maxi) - path.o1u(mini));
|
|
2790
|
+
var totalDistance = path.h1u(maxi) - path.h1u(mini);
|
|
2790
2791
|
// Inline function 'kotlin.math.abs' call
|
|
2791
2792
|
if (Math.abs(totalBearingChange) < 0.001) {
|
|
2792
|
-
path.
|
|
2793
|
+
path.s1u(i, 200.0);
|
|
2793
2794
|
return 200.0;
|
|
2794
2795
|
}
|
|
2795
2796
|
// Inline function 'kotlin.math.abs' call
|
|
@@ -2798,47 +2799,47 @@
|
|
|
2798
2799
|
// Inline function 'kotlin.math.max' call
|
|
2799
2800
|
var b_1 = Math.min(200.0, raw);
|
|
2800
2801
|
var clamped = Math.max(5.0, b_1);
|
|
2801
|
-
path.
|
|
2802
|
+
path.s1u(i, clamped);
|
|
2802
2803
|
return clamped;
|
|
2803
2804
|
}
|
|
2804
2805
|
function computeBrakingLimit($this, course, currentIndex, nextIndex) {
|
|
2805
|
-
var path = course.
|
|
2806
|
-
var vf = path.
|
|
2807
|
-
var a = course.
|
|
2808
|
-
var d = path.
|
|
2806
|
+
var path = course.e1p_1;
|
|
2807
|
+
var vf = path.l1v(nextIndex);
|
|
2808
|
+
var a = course.f1p_1.b1q();
|
|
2809
|
+
var d = path.h1u(nextIndex) - path.h1u(currentIndex);
|
|
2809
2810
|
// Inline function 'kotlin.math.sqrt' call
|
|
2810
2811
|
var x = vf * vf + 2.0 * a * d;
|
|
2811
2812
|
return Math.sqrt(x);
|
|
2812
2813
|
}
|
|
2813
2814
|
function MaxSpeedComputer() {
|
|
2814
|
-
this.
|
|
2815
|
-
this.
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2818
|
-
this.
|
|
2819
|
-
}
|
|
2820
|
-
protoOf(MaxSpeedComputer).
|
|
2821
|
-
var path = course.
|
|
2822
|
-
var n = path.
|
|
2815
|
+
this.d1r_1 = 200.0;
|
|
2816
|
+
this.e1r_1 = 5.0;
|
|
2817
|
+
this.f1r_1 = 2.0;
|
|
2818
|
+
this.g1r_1 = 0.001;
|
|
2819
|
+
this.h1r_1 = 10;
|
|
2820
|
+
}
|
|
2821
|
+
protoOf(MaxSpeedComputer).i1r = function (course) {
|
|
2822
|
+
var path = course.e1p_1;
|
|
2823
|
+
var n = path.d1s_1;
|
|
2823
2824
|
var inductionVariable = n - 1 | 0;
|
|
2824
2825
|
if (0 <= inductionVariable)
|
|
2825
2826
|
do {
|
|
2826
2827
|
var i = inductionVariable;
|
|
2827
2828
|
inductionVariable = inductionVariable + -1 | 0;
|
|
2828
2829
|
if (i === (n - 1 | 0)) {
|
|
2829
|
-
path.
|
|
2830
|
+
path.m1v(i, 2.0);
|
|
2830
2831
|
} else {
|
|
2831
2832
|
var cornering = computeCorneringLimit(this, course, i, 10);
|
|
2832
2833
|
var braking = computeBrakingLimit(this, course, i, i + 1 | 0);
|
|
2833
2834
|
// Inline function 'kotlin.math.min' call
|
|
2834
2835
|
var tmp$ret$0 = Math.min(cornering, braking);
|
|
2835
|
-
path.
|
|
2836
|
+
path.m1v(i, tmp$ret$0);
|
|
2836
2837
|
}
|
|
2837
2838
|
}
|
|
2838
2839
|
while (0 <= inductionVariable);
|
|
2839
|
-
path.
|
|
2840
|
+
path.j1t();
|
|
2840
2841
|
};
|
|
2841
|
-
protoOf(MaxSpeedComputer).
|
|
2842
|
+
protoOf(MaxSpeedComputer).o1x = function (angleIn) {
|
|
2842
2843
|
var a = angleIn;
|
|
2843
2844
|
while (a > 3.141592653589793)
|
|
2844
2845
|
a = a - 2.0 * 3.141592653589793;
|
|
@@ -2852,11 +2853,11 @@
|
|
|
2852
2853
|
}
|
|
2853
2854
|
function MuscularPowerProvider() {
|
|
2854
2855
|
}
|
|
2855
|
-
protoOf(MuscularPowerProvider).
|
|
2856
|
-
var muscular = course.
|
|
2857
|
-
path.
|
|
2858
|
-
var wheel = muscular * course.
|
|
2859
|
-
path.
|
|
2856
|
+
protoOf(MuscularPowerProvider).b1x = function (course, path, pointIndex) {
|
|
2857
|
+
var muscular = course.o1p_1.b1x(course, path, pointIndex);
|
|
2858
|
+
path.d1v(pointIndex, muscular);
|
|
2859
|
+
var wheel = muscular * course.r1p().c1p_1;
|
|
2860
|
+
path.e1v(pointIndex, wheel);
|
|
2860
2861
|
return wheel;
|
|
2861
2862
|
};
|
|
2862
2863
|
var MuscularPowerProvider_instance;
|
|
@@ -2869,7 +2870,7 @@
|
|
|
2869
2870
|
var tol = dx / 1.0E7;
|
|
2870
2871
|
while (dt2 - dt1 >= tol) {
|
|
2871
2872
|
var dtMid = (dt1 + dt2) / 2.0;
|
|
2872
|
-
var dxMid = $this.
|
|
2873
|
+
var dxMid = $this.p1x(pSum, equivalentMass, currentSpeed, dtMid);
|
|
2873
2874
|
if (dxMid < dx)
|
|
2874
2875
|
dt1 = dtMid;
|
|
2875
2876
|
else
|
|
@@ -2879,18 +2880,18 @@
|
|
|
2879
2880
|
}
|
|
2880
2881
|
function PowerComputer() {
|
|
2881
2882
|
}
|
|
2882
|
-
protoOf(PowerComputer).
|
|
2883
|
+
protoOf(PowerComputer).n1x = function (course, path, pointIndex, withCyclist) {
|
|
2883
2884
|
var pSum = 0.0;
|
|
2884
|
-
pSum = pSum + WheelBearingsPowerProvider_instance.
|
|
2885
|
-
pSum = pSum + RollingResistancePowerProvider_instance.
|
|
2886
|
-
pSum = pSum + AeroPowerProvider_instance.
|
|
2887
|
-
pSum = pSum + GravPowerProvider_instance.
|
|
2885
|
+
pSum = pSum + WheelBearingsPowerProvider_instance.b1x(course, path, pointIndex);
|
|
2886
|
+
pSum = pSum + RollingResistancePowerProvider_instance.b1x(course, path, pointIndex);
|
|
2887
|
+
pSum = pSum + AeroPowerProvider_instance.b1x(course, path, pointIndex);
|
|
2888
|
+
pSum = pSum + GravPowerProvider_instance.b1x(course, path, pointIndex);
|
|
2888
2889
|
if (withCyclist) {
|
|
2889
|
-
pSum = pSum + MuscularPowerProvider_instance.
|
|
2890
|
+
pSum = pSum + MuscularPowerProvider_instance.b1x(course, path, pointIndex);
|
|
2890
2891
|
}
|
|
2891
2892
|
return pSum;
|
|
2892
2893
|
};
|
|
2893
|
-
protoOf(PowerComputer).
|
|
2894
|
+
protoOf(PowerComputer).p1x = function (pSum, equivalentMass, currentSpeed, dt) {
|
|
2894
2895
|
// Inline function 'kotlin.math.sqrt' call
|
|
2895
2896
|
var x = dt * pSum / (0.5 * equivalentMass) + currentSpeed * currentSpeed;
|
|
2896
2897
|
var tmp0 = Math.sqrt(x);
|
|
@@ -2899,40 +2900,40 @@
|
|
|
2899
2900
|
var newSpeed = Math.max(tmp0, b);
|
|
2900
2901
|
return (currentSpeed + newSpeed) * dt / 2.0;
|
|
2901
2902
|
};
|
|
2902
|
-
protoOf(PowerComputer).
|
|
2903
|
+
protoOf(PowerComputer).q1x = function (equivalentMass, s1, s2, dt) {
|
|
2903
2904
|
return 0.5 * equivalentMass * (s2 * s2 - s1 * s1) / dt;
|
|
2904
2905
|
};
|
|
2905
|
-
protoOf(PowerComputer).
|
|
2906
|
+
protoOf(PowerComputer).r1x = function (pSum, equivalentMass, currentSpeed, dx) {
|
|
2906
2907
|
var dt = 0.1;
|
|
2907
|
-
while (this.
|
|
2908
|
+
while (this.p1x(pSum, equivalentMass, currentSpeed, dt) <= dx) {
|
|
2908
2909
|
dt = dt + 0.1;
|
|
2909
2910
|
}
|
|
2910
2911
|
return getDtInner(this, pSum, equivalentMass, currentSpeed, dx, dt - 0.1, dt);
|
|
2911
2912
|
};
|
|
2912
|
-
protoOf(PowerComputer).
|
|
2913
|
+
protoOf(PowerComputer).s1x = function (course, path, equivalentMass, i) {
|
|
2913
2914
|
if (i === 0) {
|
|
2914
|
-
path.
|
|
2915
|
+
path.i1v(i, 0.0);
|
|
2915
2916
|
return Unit_instance;
|
|
2916
2917
|
}
|
|
2917
|
-
var resistive = this.
|
|
2918
|
-
var s1 = path.
|
|
2919
|
-
var s2 = path.
|
|
2920
|
-
var dtSeconds = path.
|
|
2921
|
-
var totPower = this.
|
|
2922
|
-
path.
|
|
2918
|
+
var resistive = this.n1x(course, path, i - 1 | 0, false);
|
|
2919
|
+
var s1 = path.j1v(i - 1 | 0);
|
|
2920
|
+
var s2 = path.j1v(i);
|
|
2921
|
+
var dtSeconds = path.m1u(i) / 1000.0;
|
|
2922
|
+
var totPower = this.q1x(equivalentMass, s1, s2, dtSeconds);
|
|
2923
|
+
path.f1v(i, totPower);
|
|
2923
2924
|
var powerWheel = totPower - resistive;
|
|
2924
|
-
path.
|
|
2925
|
+
path.g1v(i, powerWheel);
|
|
2925
2926
|
// Inline function 'kotlin.math.max' call
|
|
2926
|
-
var computed = Math.max(0.0, powerWheel) / course.
|
|
2927
|
-
path.
|
|
2927
|
+
var computed = Math.max(0.0, powerWheel) / course.r1p().c1p_1;
|
|
2928
|
+
path.i1v(i, computed);
|
|
2928
2929
|
};
|
|
2929
|
-
protoOf(PowerComputer).
|
|
2930
|
-
var m = course.
|
|
2931
|
-
var totalInertia = course.
|
|
2932
|
-
return m + totalInertia / (course.
|
|
2930
|
+
protoOf(PowerComputer).t1x = function (course) {
|
|
2931
|
+
var m = course.f1p_1.u1p_1;
|
|
2932
|
+
var totalInertia = course.g1p_1.z1o_1 + course.g1p_1.a1p_1;
|
|
2933
|
+
return m + totalInertia / (course.g1p_1.b1p_1 * course.g1p_1.b1p_1);
|
|
2933
2934
|
};
|
|
2934
|
-
protoOf(PowerComputer).
|
|
2935
|
-
return this.
|
|
2935
|
+
protoOf(PowerComputer).u1x = function (course) {
|
|
2936
|
+
return this.t1x(course.k1p_1);
|
|
2936
2937
|
};
|
|
2937
2938
|
var PowerComputer_instance;
|
|
2938
2939
|
function PowerComputer_getInstance() {
|
|
@@ -2942,34 +2943,34 @@
|
|
|
2942
2943
|
useHarmonics = useHarmonics === VOID ? false : useHarmonics;
|
|
2943
2944
|
random = random === VOID ? Default_getInstance() : random;
|
|
2944
2945
|
CyclistPowerProviderBase.call(this, useHarmonics, random);
|
|
2945
|
-
this.
|
|
2946
|
+
this.x1x_1 = power;
|
|
2946
2947
|
}
|
|
2947
|
-
protoOf(PowerProviderConstant).
|
|
2948
|
-
return this.
|
|
2948
|
+
protoOf(PowerProviderConstant).j1x = function (course, path, pointIndex) {
|
|
2949
|
+
return this.x1x_1;
|
|
2949
2950
|
};
|
|
2950
2951
|
function PowerProviderConstantWithTiring(power, useHarmonics, durationSeconds, random) {
|
|
2951
2952
|
useHarmonics = useHarmonics === VOID ? false : useHarmonics;
|
|
2952
2953
|
random = random === VOID ? Default_getInstance() : random;
|
|
2953
2954
|
CyclistPowerProviderBase.call(this, useHarmonics, random);
|
|
2954
|
-
this.
|
|
2955
|
-
this.
|
|
2955
|
+
this.a1y_1 = power;
|
|
2956
|
+
this.b1y_1 = durationSeconds;
|
|
2956
2957
|
// Inline function 'kotlin.require' call
|
|
2957
|
-
if (!(this.
|
|
2958
|
-
var message = 'durationSeconds must be > 0, got ' + this.
|
|
2958
|
+
if (!(this.b1y_1 > 0.0)) {
|
|
2959
|
+
var message = 'durationSeconds must be > 0, got ' + this.b1y_1;
|
|
2959
2960
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2960
2961
|
}
|
|
2961
2962
|
}
|
|
2962
|
-
protoOf(PowerProviderConstantWithTiring).
|
|
2963
|
-
var elapsedS = path.
|
|
2963
|
+
protoOf(PowerProviderConstantWithTiring).j1x = function (course, path, pointIndex) {
|
|
2964
|
+
var elapsedS = path.k1u(pointIndex) / 1000.0;
|
|
2964
2965
|
// Inline function 'kotlin.math.max' call
|
|
2965
|
-
var b = 1.0 - 0.6 * elapsedS / this.
|
|
2966
|
+
var b = 1.0 - 0.6 * elapsedS / this.b1y_1;
|
|
2966
2967
|
var c = Math.max(0.5, b);
|
|
2967
|
-
return this.
|
|
2968
|
+
return this.a1y_1 * c;
|
|
2968
2969
|
};
|
|
2969
2970
|
function PowerProviderFromData() {
|
|
2970
2971
|
}
|
|
2971
|
-
protoOf(PowerProviderFromData).
|
|
2972
|
-
return path.
|
|
2972
|
+
protoOf(PowerProviderFromData).b1x = function (course, path, pointIndex) {
|
|
2973
|
+
return path.m1s(pointIndex);
|
|
2973
2974
|
};
|
|
2974
2975
|
var PowerProviderFromData_instance;
|
|
2975
2976
|
function PowerProviderFromData_getInstance() {
|
|
@@ -2977,7 +2978,7 @@
|
|
|
2977
2978
|
}
|
|
2978
2979
|
function RhoProviderDefault() {
|
|
2979
2980
|
}
|
|
2980
|
-
protoOf(RhoProviderDefault).
|
|
2981
|
+
protoOf(RhoProviderDefault).e1x = function (course, path, pointIndex) {
|
|
2981
2982
|
return 1.225;
|
|
2982
2983
|
};
|
|
2983
2984
|
var RhoProviderDefault_instance;
|
|
@@ -2985,16 +2986,16 @@
|
|
|
2985
2986
|
return RhoProviderDefault_instance;
|
|
2986
2987
|
}
|
|
2987
2988
|
function RhoProviderEstimate() {
|
|
2988
|
-
this.
|
|
2989
|
-
this.
|
|
2990
|
-
this.
|
|
2991
|
-
this.
|
|
2992
|
-
this.
|
|
2993
|
-
}
|
|
2994
|
-
protoOf(RhoProviderEstimate).
|
|
2995
|
-
var providedTemp = path.
|
|
2989
|
+
this.c1y_1 = 101325.0;
|
|
2990
|
+
this.d1y_1 = 288.15;
|
|
2991
|
+
this.e1y_1 = 9.80665;
|
|
2992
|
+
this.f1y_1 = 0.0065;
|
|
2993
|
+
this.g1y_1 = 287.05;
|
|
2994
|
+
}
|
|
2995
|
+
protoOf(RhoProviderEstimate).e1x = function (course, path, pointIndex) {
|
|
2996
|
+
var providedTemp = path.s1t(pointIndex, PointField_TEMPERATURE_getInstance());
|
|
2996
2997
|
var temperatureC = isNaN_0(providedTemp) || providedTemp === 0.0 ? 15.0 : providedTemp;
|
|
2997
|
-
var providedElevation = path.
|
|
2998
|
+
var providedElevation = path.h1s(pointIndex);
|
|
2998
2999
|
var altitude = isNaN_0(providedElevation) ? 0.0 : providedElevation;
|
|
2999
3000
|
var tKelvin = temperatureC + 273.15;
|
|
3000
3001
|
var tmp0 = 1.0 - 0.0065 * altitude / 288.15;
|
|
@@ -3009,17 +3010,17 @@
|
|
|
3009
3010
|
}
|
|
3010
3011
|
function RollingResistancePowerProvider() {
|
|
3011
3012
|
}
|
|
3012
|
-
protoOf(RollingResistancePowerProvider).
|
|
3013
|
-
var m = course.
|
|
3014
|
-
var crr = course.
|
|
3015
|
-
var grade = path.
|
|
3016
|
-
var speed = path.
|
|
3013
|
+
protoOf(RollingResistancePowerProvider).b1x = function (course, path, pointIndex) {
|
|
3014
|
+
var m = course.q1p().u1p_1;
|
|
3015
|
+
var crr = course.r1p().y1o_1;
|
|
3016
|
+
var grade = path.q1u(pointIndex);
|
|
3017
|
+
var speed = path.j1v(pointIndex);
|
|
3017
3018
|
// Inline function 'kotlin.math.atan' call
|
|
3018
3019
|
// Inline function 'kotlin.math.cos' call
|
|
3019
3020
|
var x = Math.atan(grade);
|
|
3020
3021
|
var coef = Math.cos(x);
|
|
3021
3022
|
var p = -coef * m * 9.8 * speed * crr;
|
|
3022
|
-
path.
|
|
3023
|
+
path.y1u(pointIndex, p);
|
|
3023
3024
|
return p;
|
|
3024
3025
|
};
|
|
3025
3026
|
var RollingResistancePowerProvider_instance;
|
|
@@ -3027,18 +3028,18 @@
|
|
|
3027
3028
|
return RollingResistancePowerProvider_instance;
|
|
3028
3029
|
}
|
|
3029
3030
|
function copyAllFields($this, src, i, dst, j) {
|
|
3030
|
-
var _iterator__ex2g4s = get_entries().
|
|
3031
|
-
while (_iterator__ex2g4s.
|
|
3032
|
-
var field = _iterator__ex2g4s.
|
|
3033
|
-
dst.
|
|
3031
|
+
var _iterator__ex2g4s = get_entries().h();
|
|
3032
|
+
while (_iterator__ex2g4s.i()) {
|
|
3033
|
+
var field = _iterator__ex2g4s.j();
|
|
3034
|
+
dst.t1t(j, field, src.s1t(i, field));
|
|
3034
3035
|
}
|
|
3035
3036
|
}
|
|
3036
3037
|
function VirtualizeService() {
|
|
3037
|
-
this.
|
|
3038
|
+
this.j1r_1 = 100000;
|
|
3038
3039
|
}
|
|
3039
|
-
protoOf(VirtualizeService).
|
|
3040
|
-
var input = course.
|
|
3041
|
-
var n = input.
|
|
3040
|
+
protoOf(VirtualizeService).k1r = function (course) {
|
|
3041
|
+
var input = course.p1p();
|
|
3042
|
+
var n = input.d1s_1;
|
|
3042
3043
|
if (n === 0)
|
|
3043
3044
|
return new Path(0);
|
|
3044
3045
|
if (n === 1) {
|
|
@@ -3046,54 +3047,54 @@
|
|
|
3046
3047
|
copyAllFields(this, input, 0, singleton, 0);
|
|
3047
3048
|
return singleton;
|
|
3048
3049
|
}
|
|
3049
|
-
var mEq = PowerComputer_instance.
|
|
3050
|
+
var mEq = PowerComputer_instance.u1x(course);
|
|
3050
3051
|
var out = new Path(n);
|
|
3051
3052
|
copyAllFields(this, input, 0, out, 0);
|
|
3052
3053
|
var speed = 0.5555555555555556;
|
|
3053
3054
|
var startTimeMs = 0.0;
|
|
3054
3055
|
var timeMs = startTimeMs;
|
|
3055
|
-
out.
|
|
3056
|
-
out.
|
|
3057
|
-
out.
|
|
3058
|
-
out.
|
|
3056
|
+
out.v1s(0, timeMs);
|
|
3057
|
+
out.l1u(0, 0.0);
|
|
3058
|
+
out.k1v(0, speed);
|
|
3059
|
+
out.o1v(0, speed);
|
|
3059
3060
|
var i = 1;
|
|
3060
3061
|
var iter = 0;
|
|
3061
3062
|
$l$loop: while (i < n) {
|
|
3062
|
-
var dx = input.
|
|
3063
|
-
var pSum = PowerComputer_instance.
|
|
3064
|
-
var dt = PowerComputer_instance.
|
|
3063
|
+
var dx = input.h1u(i) - input.h1u(i - 1 | 0);
|
|
3064
|
+
var pSum = PowerComputer_instance.n1x(course, out, i - 1 | 0, true);
|
|
3065
|
+
var dt = PowerComputer_instance.r1x(pSum, mEq, speed, dx);
|
|
3065
3066
|
var speedNew = 2.0 * dx / dt - speed;
|
|
3066
3067
|
copyAllFields(this, input, i, out, i);
|
|
3067
|
-
var speedMax = input.
|
|
3068
|
+
var speedMax = input.l1v(i);
|
|
3068
3069
|
if (speedNew > speedMax) {
|
|
3069
3070
|
speedNew = speedMax;
|
|
3070
3071
|
dt = 2.0 * dx / (speedNew + speed);
|
|
3071
3072
|
}
|
|
3072
3073
|
speed = speedNew;
|
|
3073
3074
|
timeMs = timeMs + dt * 1000.0;
|
|
3074
|
-
out.
|
|
3075
|
-
out.
|
|
3076
|
-
out.
|
|
3077
|
-
out.
|
|
3078
|
-
out.
|
|
3079
|
-
out.
|
|
3075
|
+
out.v1s(i, timeMs);
|
|
3076
|
+
out.l1u(i, timeMs - startTimeMs);
|
|
3077
|
+
out.j1u(i, dx);
|
|
3078
|
+
out.n1u(i, dt * 1000.0);
|
|
3079
|
+
out.k1v(i, speed);
|
|
3080
|
+
out.o1v(i, speed);
|
|
3080
3081
|
i = i + 1 | 0;
|
|
3081
3082
|
var _unary__edvuaz = iter;
|
|
3082
3083
|
iter = _unary__edvuaz + 1 | 0;
|
|
3083
3084
|
if (_unary__edvuaz > 100000)
|
|
3084
3085
|
break $l$loop;
|
|
3085
3086
|
}
|
|
3086
|
-
var progression = out.
|
|
3087
|
-
var inductionVariable = progression.
|
|
3088
|
-
var last = progression.
|
|
3087
|
+
var progression = out.w1v();
|
|
3088
|
+
var inductionVariable = progression.bc_1;
|
|
3089
|
+
var last = progression.cc_1;
|
|
3089
3090
|
if (inductionVariable <= last)
|
|
3090
3091
|
do {
|
|
3091
3092
|
var j = inductionVariable;
|
|
3092
3093
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3093
|
-
PowerComputer_instance.
|
|
3094
|
+
PowerComputer_instance.s1x(course, out, mEq, j);
|
|
3094
3095
|
}
|
|
3095
3096
|
while (!(j === last));
|
|
3096
|
-
out.
|
|
3097
|
+
out.j1t();
|
|
3097
3098
|
return out;
|
|
3098
3099
|
};
|
|
3099
3100
|
var VirtualizeService_instance;
|
|
@@ -3102,10 +3103,10 @@
|
|
|
3102
3103
|
}
|
|
3103
3104
|
function WheelBearingsPowerProvider() {
|
|
3104
3105
|
}
|
|
3105
|
-
protoOf(WheelBearingsPowerProvider).
|
|
3106
|
-
var speed = path.
|
|
3106
|
+
protoOf(WheelBearingsPowerProvider).b1x = function (course, path, pointIndex) {
|
|
3107
|
+
var speed = path.j1v(pointIndex);
|
|
3107
3108
|
var p = -speed * (91.0 + 8.7 * speed) / 1000.0;
|
|
3108
|
-
path.
|
|
3109
|
+
path.z1u(pointIndex, p);
|
|
3109
3110
|
return p;
|
|
3110
3111
|
};
|
|
3111
3112
|
var WheelBearingsPowerProvider_instance;
|
|
@@ -3114,7 +3115,7 @@
|
|
|
3114
3115
|
}
|
|
3115
3116
|
function Companion_7() {
|
|
3116
3117
|
Companion_instance_7 = this;
|
|
3117
|
-
this.
|
|
3118
|
+
this.h1y_1 = new Wind(0.0, 0.0);
|
|
3118
3119
|
}
|
|
3119
3120
|
var Companion_instance_7;
|
|
3120
3121
|
function Companion_getInstance_8() {
|
|
@@ -3124,15 +3125,15 @@
|
|
|
3124
3125
|
}
|
|
3125
3126
|
function Wind(speedMS, directionRad) {
|
|
3126
3127
|
Companion_getInstance_8();
|
|
3127
|
-
this.
|
|
3128
|
-
this.
|
|
3128
|
+
this.y1w_1 = speedMS;
|
|
3129
|
+
this.z1w_1 = directionRad;
|
|
3129
3130
|
}
|
|
3130
3131
|
protoOf(Wind).toString = function () {
|
|
3131
|
-
return 'Wind(speedMS=' + this.
|
|
3132
|
+
return 'Wind(speedMS=' + this.y1w_1 + ', directionRad=' + this.z1w_1 + ')';
|
|
3132
3133
|
};
|
|
3133
3134
|
protoOf(Wind).hashCode = function () {
|
|
3134
|
-
var result = getNumberHashCode(this.
|
|
3135
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3135
|
+
var result = getNumberHashCode(this.y1w_1);
|
|
3136
|
+
result = imul(result, 31) + getNumberHashCode(this.z1w_1) | 0;
|
|
3136
3137
|
return result;
|
|
3137
3138
|
};
|
|
3138
3139
|
protoOf(Wind).equals = function (other) {
|
|
@@ -3140,50 +3141,50 @@
|
|
|
3140
3141
|
return true;
|
|
3141
3142
|
if (!(other instanceof Wind))
|
|
3142
3143
|
return false;
|
|
3143
|
-
if (!equals(this.
|
|
3144
|
+
if (!equals(this.y1w_1, other.y1w_1))
|
|
3144
3145
|
return false;
|
|
3145
|
-
if (!equals(this.
|
|
3146
|
+
if (!equals(this.z1w_1, other.z1w_1))
|
|
3146
3147
|
return false;
|
|
3147
3148
|
return true;
|
|
3148
3149
|
};
|
|
3149
3150
|
function WindProviderNone() {
|
|
3150
3151
|
}
|
|
3151
|
-
protoOf(WindProviderNone).
|
|
3152
|
-
return Companion_getInstance_8().
|
|
3152
|
+
protoOf(WindProviderNone).d1x = function (course, path, pointIndex) {
|
|
3153
|
+
return Companion_getInstance_8().h1y_1;
|
|
3153
3154
|
};
|
|
3154
3155
|
var WindProviderNone_instance;
|
|
3155
3156
|
function WindProviderNone_getInstance() {
|
|
3156
3157
|
return WindProviderNone_instance;
|
|
3157
3158
|
}
|
|
3158
3159
|
function WindProviderConstant(wind) {
|
|
3159
|
-
this.
|
|
3160
|
+
this.i1y_1 = wind;
|
|
3160
3161
|
}
|
|
3161
|
-
protoOf(WindProviderConstant).
|
|
3162
|
-
return this.
|
|
3162
|
+
protoOf(WindProviderConstant).d1x = function (course, path, pointIndex) {
|
|
3163
|
+
return this.i1y_1;
|
|
3163
3164
|
};
|
|
3164
3165
|
function parseGpx(xml) {
|
|
3165
|
-
return firstTrackAsPath(GpxParser_instance.
|
|
3166
|
+
return firstTrackAsPath(GpxParser_instance.r1s(xml));
|
|
3166
3167
|
}
|
|
3167
3168
|
function pathSize(path) {
|
|
3168
|
-
return path.
|
|
3169
|
+
return path.d1s_1;
|
|
3169
3170
|
}
|
|
3170
3171
|
function pathTotalDistance(path) {
|
|
3171
|
-
return path.
|
|
3172
|
+
return path.c1t_1;
|
|
3172
3173
|
}
|
|
3173
3174
|
function pathDurationMs(path) {
|
|
3174
|
-
return path.
|
|
3175
|
+
return path.h1t_1;
|
|
3175
3176
|
}
|
|
3176
3177
|
function pathElevationGain(path) {
|
|
3177
|
-
return path.
|
|
3178
|
+
return path.f1t_1;
|
|
3178
3179
|
}
|
|
3179
3180
|
function pathElevationLoss(path) {
|
|
3180
|
-
return path.
|
|
3181
|
+
return path.g1t_1;
|
|
3181
3182
|
}
|
|
3182
3183
|
function pointAt(path, i) {
|
|
3183
|
-
return pointObj(path.
|
|
3184
|
+
return pointObj(path.x1v(i), path.y1v(i), path.h1s(i), path.i1s(i), path.j1v(i), path.h1v(i), path.h1u(i), path.q1u(i));
|
|
3184
3185
|
}
|
|
3185
3186
|
function writeGpx(path) {
|
|
3186
|
-
return GpxWriter_instance.
|
|
3187
|
+
return GpxWriter_instance.r1t(toGpxDocument(path, VOID, 'virtualized'));
|
|
3187
3188
|
}
|
|
3188
3189
|
function enhance(path, options) {
|
|
3189
3190
|
var tmp = GlobalScope_instance;
|
|
@@ -3194,7 +3195,7 @@
|
|
|
3194
3195
|
return promise(tmp, VOID, VOID, enhanceWithCourse$slambda_0(options, path, cyclist, bike, wind, power, null));
|
|
3195
3196
|
}
|
|
3196
3197
|
function getField(path, i, fieldProp) {
|
|
3197
|
-
var tmp0_elvis_lhs = Companion_getInstance_6().
|
|
3198
|
+
var tmp0_elvis_lhs = Companion_getInstance_6().k1w(fieldProp);
|
|
3198
3199
|
var tmp;
|
|
3199
3200
|
if (tmp0_elvis_lhs == null) {
|
|
3200
3201
|
// Inline function 'kotlin.error' call
|
|
@@ -3204,35 +3205,35 @@
|
|
|
3204
3205
|
tmp = tmp0_elvis_lhs;
|
|
3205
3206
|
}
|
|
3206
3207
|
var field = tmp;
|
|
3207
|
-
return path.
|
|
3208
|
+
return path.s1t(i, field);
|
|
3208
3209
|
}
|
|
3209
3210
|
function fieldDefinitions() {
|
|
3210
3211
|
// Inline function 'kotlin.collections.map' call
|
|
3211
3212
|
var this_0 = get_entries();
|
|
3212
3213
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3213
3214
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3214
|
-
var _iterator__ex2g4s = this_0.
|
|
3215
|
-
while (_iterator__ex2g4s.
|
|
3216
|
-
var item = _iterator__ex2g4s.
|
|
3215
|
+
var _iterator__ex2g4s = this_0.h();
|
|
3216
|
+
while (_iterator__ex2g4s.i()) {
|
|
3217
|
+
var item = _iterator__ex2g4s.j();
|
|
3217
3218
|
var o = {};
|
|
3218
|
-
o.prop = item.
|
|
3219
|
-
o.unit = item.
|
|
3220
|
-
o.shortDescription = item.
|
|
3221
|
-
o.categoryId = item.
|
|
3222
|
-
o.categoryName = item.
|
|
3223
|
-
o.notSelectable = item.
|
|
3224
|
-
o.anglesInRadians = item.
|
|
3219
|
+
o.prop = item.e1w_1;
|
|
3220
|
+
o.unit = item.f1w_1;
|
|
3221
|
+
o.shortDescription = item.g1w_1;
|
|
3222
|
+
o.categoryId = item.h1w_1.n1w_1;
|
|
3223
|
+
o.categoryName = item.h1w_1.o1w_1;
|
|
3224
|
+
o.notSelectable = item.i1w_1;
|
|
3225
|
+
o.anglesInRadians = item.j1w_1;
|
|
3225
3226
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3226
|
-
destination.
|
|
3227
|
+
destination.n(o);
|
|
3227
3228
|
}
|
|
3228
3229
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3229
3230
|
return copyToArray(destination);
|
|
3230
3231
|
}
|
|
3231
3232
|
function pathLatitudeDeg(path, i) {
|
|
3232
|
-
return path.
|
|
3233
|
+
return path.x1v(i);
|
|
3233
3234
|
}
|
|
3234
3235
|
function pathLongitudeDeg(path, i) {
|
|
3235
|
-
return path.
|
|
3236
|
+
return path.y1v(i);
|
|
3236
3237
|
}
|
|
3237
3238
|
function pointObj(latitudeDeg, longitudeDeg, elevation, timeMs, speed, pComputedPower, distance, grade) {
|
|
3238
3239
|
var o = {};
|
|
@@ -3314,31 +3315,31 @@
|
|
|
3314
3315
|
return tmp;
|
|
3315
3316
|
}
|
|
3316
3317
|
function enhance$slambda($options, $path, resultContinuation) {
|
|
3317
|
-
this.
|
|
3318
|
-
this.
|
|
3318
|
+
this.r1y_1 = $options;
|
|
3319
|
+
this.s1y_1 = $path;
|
|
3319
3320
|
CoroutineImpl.call(this, resultContinuation);
|
|
3320
3321
|
}
|
|
3321
|
-
protoOf(enhance$slambda).
|
|
3322
|
-
var tmp = this.
|
|
3323
|
-
tmp.
|
|
3324
|
-
tmp.
|
|
3325
|
-
return tmp.
|
|
3322
|
+
protoOf(enhance$slambda).u1y = function ($this$promise, $completion) {
|
|
3323
|
+
var tmp = this.q10($this$promise, $completion);
|
|
3324
|
+
tmp.i6_1 = Unit_instance;
|
|
3325
|
+
tmp.j6_1 = null;
|
|
3326
|
+
return tmp.o6();
|
|
3326
3327
|
};
|
|
3327
|
-
protoOf(enhance$slambda).
|
|
3328
|
-
return this.
|
|
3328
|
+
protoOf(enhance$slambda).w6 = function (p1, $completion) {
|
|
3329
|
+
return this.u1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3329
3330
|
};
|
|
3330
|
-
protoOf(enhance$slambda).
|
|
3331
|
-
var suspendResult = this.
|
|
3331
|
+
protoOf(enhance$slambda).o6 = function () {
|
|
3332
|
+
var suspendResult = this.i6_1;
|
|
3332
3333
|
$sm: do
|
|
3333
3334
|
try {
|
|
3334
|
-
var tmp = this.
|
|
3335
|
+
var tmp = this.g6_1;
|
|
3335
3336
|
switch (tmp) {
|
|
3336
3337
|
case 0:
|
|
3337
|
-
this.
|
|
3338
|
-
var opts = toEnhanceOptions(this.
|
|
3339
|
-
var provider = opts.
|
|
3340
|
-
this.
|
|
3341
|
-
suspendResult = Enhancer_instance.
|
|
3338
|
+
this.h6_1 = 2;
|
|
3339
|
+
var opts = toEnhanceOptions(this.r1y_1);
|
|
3340
|
+
var provider = opts.h1q_1 ? new ElevationProvider() : null;
|
|
3341
|
+
this.g6_1 = 1;
|
|
3342
|
+
suspendResult = Enhancer_instance.o1r(this.s1y_1, provider, opts, this);
|
|
3342
3343
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3343
3344
|
return suspendResult;
|
|
3344
3345
|
}
|
|
@@ -3347,63 +3348,61 @@
|
|
|
3347
3348
|
case 1:
|
|
3348
3349
|
return suspendResult;
|
|
3349
3350
|
case 2:
|
|
3350
|
-
throw this.
|
|
3351
|
+
throw this.j6_1;
|
|
3351
3352
|
}
|
|
3352
3353
|
} catch ($p) {
|
|
3353
3354
|
var e = $p;
|
|
3354
|
-
if (this.
|
|
3355
|
+
if (this.h6_1 === 2) {
|
|
3355
3356
|
throw e;
|
|
3356
3357
|
} else {
|
|
3357
|
-
this.
|
|
3358
|
-
this.
|
|
3358
|
+
this.g6_1 = this.h6_1;
|
|
3359
|
+
this.j6_1 = e;
|
|
3359
3360
|
}
|
|
3360
3361
|
}
|
|
3361
3362
|
while (true);
|
|
3362
3363
|
};
|
|
3363
|
-
protoOf(enhance$slambda).
|
|
3364
|
-
var i = new enhance$slambda(this.
|
|
3365
|
-
i.
|
|
3364
|
+
protoOf(enhance$slambda).q10 = function ($this$promise, completion) {
|
|
3365
|
+
var i = new enhance$slambda(this.r1y_1, this.s1y_1, completion);
|
|
3366
|
+
i.t1y_1 = $this$promise;
|
|
3366
3367
|
return i;
|
|
3367
3368
|
};
|
|
3368
3369
|
function enhance$slambda_0($options, $path, resultContinuation) {
|
|
3369
3370
|
var i = new enhance$slambda($options, $path, resultContinuation);
|
|
3370
|
-
|
|
3371
|
-
return i.
|
|
3372
|
-
};
|
|
3373
|
-
l.$arity = 1;
|
|
3374
|
-
return l;
|
|
3371
|
+
return constructCallableReference(function ($this$promise, $completion) {
|
|
3372
|
+
return i.u1y($this$promise, $completion);
|
|
3373
|
+
}, 1);
|
|
3375
3374
|
}
|
|
3376
3375
|
function enhanceWithCourse$slambda($options, $path, $cyclist, $bike, $wind, $power, resultContinuation) {
|
|
3377
|
-
this.
|
|
3378
|
-
this.
|
|
3379
|
-
this.
|
|
3380
|
-
this.
|
|
3381
|
-
this.
|
|
3382
|
-
this.
|
|
3376
|
+
this.d1z_1 = $options;
|
|
3377
|
+
this.e1z_1 = $path;
|
|
3378
|
+
this.f1z_1 = $cyclist;
|
|
3379
|
+
this.g1z_1 = $bike;
|
|
3380
|
+
this.h1z_1 = $wind;
|
|
3381
|
+
this.i1z_1 = $power;
|
|
3383
3382
|
CoroutineImpl.call(this, resultContinuation);
|
|
3384
3383
|
}
|
|
3385
|
-
protoOf(enhanceWithCourse$slambda).
|
|
3386
|
-
var tmp = this.
|
|
3387
|
-
tmp.
|
|
3388
|
-
tmp.
|
|
3389
|
-
return tmp.
|
|
3384
|
+
protoOf(enhanceWithCourse$slambda).u1y = function ($this$promise, $completion) {
|
|
3385
|
+
var tmp = this.q10($this$promise, $completion);
|
|
3386
|
+
tmp.i6_1 = Unit_instance;
|
|
3387
|
+
tmp.j6_1 = null;
|
|
3388
|
+
return tmp.o6();
|
|
3390
3389
|
};
|
|
3391
|
-
protoOf(enhanceWithCourse$slambda).
|
|
3392
|
-
return this.
|
|
3390
|
+
protoOf(enhanceWithCourse$slambda).w6 = function (p1, $completion) {
|
|
3391
|
+
return this.u1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3393
3392
|
};
|
|
3394
|
-
protoOf(enhanceWithCourse$slambda).
|
|
3395
|
-
var suspendResult = this.
|
|
3393
|
+
protoOf(enhanceWithCourse$slambda).o6 = function () {
|
|
3394
|
+
var suspendResult = this.i6_1;
|
|
3396
3395
|
$sm: do
|
|
3397
3396
|
try {
|
|
3398
|
-
var tmp = this.
|
|
3397
|
+
var tmp = this.g6_1;
|
|
3399
3398
|
switch (tmp) {
|
|
3400
3399
|
case 0:
|
|
3401
|
-
this.
|
|
3402
|
-
var opts = toEnhanceOptions(this.
|
|
3403
|
-
var provider = opts.
|
|
3404
|
-
var course = new CoursePhysics(new Course(this.
|
|
3405
|
-
this.
|
|
3406
|
-
suspendResult = Enhancer_instance.
|
|
3400
|
+
this.h6_1 = 2;
|
|
3401
|
+
var opts = toEnhanceOptions(this.d1z_1);
|
|
3402
|
+
var provider = opts.h1q_1 ? new ElevationProvider() : null;
|
|
3403
|
+
var course = new CoursePhysics(new Course(this.e1z_1, toCyclist(this.f1z_1), toBike(this.g1z_1)), RhoProviderEstimate_instance, AeroProviderConstant_instance, toWindProvider(this.h1z_1), toCyclistPowerProvider(this.i1z_1));
|
|
3404
|
+
this.g6_1 = 1;
|
|
3405
|
+
suspendResult = Enhancer_instance.p1r(course, opts, provider, this);
|
|
3407
3406
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3408
3407
|
return suspendResult;
|
|
3409
3408
|
}
|
|
@@ -3412,31 +3411,29 @@
|
|
|
3412
3411
|
case 1:
|
|
3413
3412
|
return suspendResult;
|
|
3414
3413
|
case 2:
|
|
3415
|
-
throw this.
|
|
3414
|
+
throw this.j6_1;
|
|
3416
3415
|
}
|
|
3417
3416
|
} catch ($p) {
|
|
3418
3417
|
var e = $p;
|
|
3419
|
-
if (this.
|
|
3418
|
+
if (this.h6_1 === 2) {
|
|
3420
3419
|
throw e;
|
|
3421
3420
|
} else {
|
|
3422
|
-
this.
|
|
3423
|
-
this.
|
|
3421
|
+
this.g6_1 = this.h6_1;
|
|
3422
|
+
this.j6_1 = e;
|
|
3424
3423
|
}
|
|
3425
3424
|
}
|
|
3426
3425
|
while (true);
|
|
3427
3426
|
};
|
|
3428
|
-
protoOf(enhanceWithCourse$slambda).
|
|
3429
|
-
var i = new enhanceWithCourse$slambda(this.
|
|
3430
|
-
i.
|
|
3427
|
+
protoOf(enhanceWithCourse$slambda).q10 = function ($this$promise, completion) {
|
|
3428
|
+
var i = new enhanceWithCourse$slambda(this.d1z_1, this.e1z_1, this.f1z_1, this.g1z_1, this.h1z_1, this.i1z_1, completion);
|
|
3429
|
+
i.j1z_1 = $this$promise;
|
|
3431
3430
|
return i;
|
|
3432
3431
|
};
|
|
3433
3432
|
function enhanceWithCourse$slambda_0($options, $path, $cyclist, $bike, $wind, $power, resultContinuation) {
|
|
3434
3433
|
var i = new enhanceWithCourse$slambda($options, $path, $cyclist, $bike, $wind, $power, resultContinuation);
|
|
3435
|
-
|
|
3436
|
-
return i.
|
|
3437
|
-
};
|
|
3438
|
-
l.$arity = 1;
|
|
3439
|
-
return l;
|
|
3434
|
+
return constructCallableReference(function ($this$promise, $completion) {
|
|
3435
|
+
return i.u1y($this$promise, $completion);
|
|
3436
|
+
}, 1);
|
|
3440
3437
|
}
|
|
3441
3438
|
//region block: init
|
|
3442
3439
|
Enhancer_instance = new Enhancer();
|