@glandais/vcyclist-engine 6.5.2 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fit-kotlin-sdk.js +3765 -3765
- package/kotlin-kotlin-stdlib.js +40 -39
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +1 -1
- package/kotlinx-coroutines-core.js +24 -24
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
- package/vcyclist-elevation.js +1074 -592
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +1671 -1584
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +209 -209
- package/vcyclist-gpx.js +1313 -1313
- package/xmlutil-core.js +2414 -2414
package/vcyclist-elevation.js
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
var toNumber = kotlin_kotlin.$_$.d7;
|
|
29
29
|
var CoroutineImpl = kotlin_kotlin.$_$.f6;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.l1;
|
|
31
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
31
|
+
var THROW_CCE = kotlin_kotlin.$_$.wb;
|
|
32
32
|
var MutableEntry = kotlin_kotlin.$_$.y2;
|
|
33
33
|
var isInterface = kotlin_kotlin.$_$.f8;
|
|
34
34
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.q5;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n1;
|
|
46
46
|
var listOf = kotlin_kotlin.$_$.k4;
|
|
47
47
|
var numberToInt = kotlin_kotlin.$_$.k8;
|
|
48
|
-
var Enum = kotlin_kotlin.$_$.
|
|
48
|
+
var Enum = kotlin_kotlin.$_$.mb;
|
|
49
49
|
var charSequenceLength = kotlin_kotlin.$_$.l7;
|
|
50
50
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.d;
|
|
51
51
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.i;
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
54
54
|
var FloatCompanionObject_instance = kotlin_kotlin.$_$.d1;
|
|
55
55
|
var floatFromBits = kotlin_kotlin.$_$.r7;
|
|
56
|
-
var isNaN_0 = kotlin_kotlin.$_$.
|
|
56
|
+
var isNaN_0 = kotlin_kotlin.$_$.jc;
|
|
57
57
|
var roundToLong = kotlin_kotlin.$_$.s8;
|
|
58
|
-
var Long = kotlin_kotlin.$_$.
|
|
58
|
+
var Long = kotlin_kotlin.$_$.rb;
|
|
59
59
|
var coerceIn = kotlin_kotlin.$_$.a9;
|
|
60
60
|
var convertToInt = kotlin_kotlin.$_$.q6;
|
|
61
61
|
var initMetadataForInterface = kotlin_kotlin.$_$.b8;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.k2;
|
|
70
70
|
var coerceIn_1 = kotlin_kotlin.$_$.z8;
|
|
71
71
|
var objectCreate = kotlin_kotlin.$_$.l8;
|
|
72
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
72
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.lc;
|
|
73
73
|
var KFunctionImpl = kotlin_kotlin.$_$.g9;
|
|
74
74
|
var initMetadataForFunctionReference = kotlin_kotlin.$_$.a8;
|
|
75
75
|
var getStringHashCode = kotlin_kotlin.$_$.v7;
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
83
83
|
var awaitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
84
84
|
var coroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
85
|
-
var to = kotlin_kotlin.$_$.qc;
|
|
86
|
-
var Collection = kotlin_kotlin.$_$.u2;
|
|
87
85
|
var until = kotlin_kotlin.$_$.f9;
|
|
88
86
|
var step = kotlin_kotlin.$_$.e9;
|
|
89
|
-
var
|
|
87
|
+
var to = kotlin_kotlin.$_$.rc;
|
|
88
|
+
var Collection = kotlin_kotlin.$_$.u2;
|
|
89
|
+
var Exception = kotlin_kotlin.$_$.ob;
|
|
90
90
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.d2;
|
|
91
91
|
var captureStack = kotlin_kotlin.$_$.h7;
|
|
92
92
|
var KtMap = kotlin_kotlin.$_$.w2;
|
|
@@ -98,18 +98,27 @@
|
|
|
98
98
|
var contentEquals = kotlin_kotlin.$_$.h3;
|
|
99
99
|
var contentHashCode = kotlin_kotlin.$_$.i3;
|
|
100
100
|
var round = kotlin_kotlin.$_$.t8;
|
|
101
|
+
var ValueTimeMark__elapsedNow_impl_eonqvs = kotlin_kotlin.$_$.c;
|
|
102
|
+
var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.b;
|
|
103
|
+
var KProperty1 = kotlin_kotlin.$_$.j9;
|
|
104
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.u7;
|
|
105
|
+
var Monotonic_instance = kotlin_kotlin.$_$.i1;
|
|
106
|
+
var ValueTimeMark = kotlin_kotlin.$_$.ib;
|
|
107
|
+
var compare = kotlin_kotlin.$_$.o6;
|
|
108
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.h9;
|
|
109
|
+
var add = kotlin_kotlin.$_$.k6;
|
|
110
|
+
var HashMap_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
111
|
+
var lazy = kotlin_kotlin.$_$.kc;
|
|
112
|
+
var AbstractCoroutineContextElement = kotlin_kotlin.$_$.u5;
|
|
101
113
|
var replace = kotlin_kotlin.$_$.la;
|
|
102
114
|
var contains = kotlin_kotlin.$_$.t9;
|
|
103
|
-
var
|
|
104
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
115
|
+
var ensureActive = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
|
|
116
|
+
var IllegalStateException = kotlin_kotlin.$_$.qb;
|
|
105
117
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.i2;
|
|
106
118
|
var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
107
119
|
var hashCode = kotlin_kotlin.$_$.w7;
|
|
108
|
-
var HashMap_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
109
120
|
var substringAfter = kotlin_kotlin.$_$.ra;
|
|
110
121
|
var substringBefore = kotlin_kotlin.$_$.ta;
|
|
111
|
-
var ValueTimeMark__elapsedNow_impl_eonqvs = kotlin_kotlin.$_$.c;
|
|
112
|
-
var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.b;
|
|
113
122
|
var shiftLeft = kotlin_kotlin.$_$.z6;
|
|
114
123
|
var multiply = kotlin_kotlin.$_$.w6;
|
|
115
124
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
@@ -131,13 +140,11 @@
|
|
|
131
140
|
var sorted = kotlin_kotlin.$_$.b5;
|
|
132
141
|
var setOf = kotlin_kotlin.$_$.x4;
|
|
133
142
|
var KProperty0 = kotlin_kotlin.$_$.i9;
|
|
134
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.u7;
|
|
135
143
|
var isCharSequence = kotlin_kotlin.$_$.e8;
|
|
136
144
|
var trim = kotlin_kotlin.$_$.gb;
|
|
137
145
|
var toLongOrNull = kotlin_kotlin.$_$.bb;
|
|
138
146
|
var isNumber = kotlin_kotlin.$_$.g8;
|
|
139
147
|
var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
|
|
140
|
-
var lazy = kotlin_kotlin.$_$.jc;
|
|
141
148
|
//endregion
|
|
142
149
|
//region block: pre-declaration
|
|
143
150
|
initMetadataForClass(SmoothingOptions, 'SmoothingOptions', SmoothingOptions);
|
|
@@ -189,13 +196,23 @@
|
|
|
189
196
|
initMetadataForClass(RawTile, 'RawTile');
|
|
190
197
|
initMetadataForCompanion(Companion_0);
|
|
191
198
|
initMetadataForClass(Tile, 'Tile');
|
|
199
|
+
initMetadataForClass(Entry, 'Entry');
|
|
200
|
+
initMetadataForCompanion(Companion_1);
|
|
201
|
+
initMetadataForCoroutine($cachedCOROUTINE$, CoroutineImpl);
|
|
202
|
+
initMetadataForCoroutine($rememberCOROUTINE$, CoroutineImpl);
|
|
203
|
+
initMetadataForClass(UnreadableTiles, 'UnreadableTiles', VOID, VOID, VOID, [1, 2]);
|
|
204
|
+
initMetadataForClass(TileFailure, 'TileFailure');
|
|
205
|
+
initMetadataForObject(Key, 'Key');
|
|
206
|
+
initMetadataForCoroutine($recordCOROUTINE$, CoroutineImpl);
|
|
207
|
+
initMetadataForClass(TileFailureLog, 'TileFailureLog', TileFailureLog, AbstractCoroutineContextElement, VOID, [1]);
|
|
192
208
|
initMetadataForFunctionReference(fetchAndDecodeTile$ref_0, KFunctionImpl, VOID, [1]);
|
|
193
209
|
initMetadataForLambda(TileManager$cache$slambda, CoroutineImpl, VOID, [1]);
|
|
210
|
+
initMetadataForCoroutine($getTileCOROUTINE$, CoroutineImpl);
|
|
194
211
|
initMetadataForClass(TileManager, 'TileManager', VOID, VOID, VOID, [1, 0]);
|
|
195
212
|
initMetadataForClass(TileFetchException, 'TileFetchException', VOID, IllegalStateException);
|
|
196
213
|
initMetadataForCoroutine($awaitTurnCOROUTINE$, CoroutineImpl);
|
|
197
214
|
initMetadataForClass(RequestPacer, 'RequestPacer', VOID, VOID, VOID, [0]);
|
|
198
|
-
initMetadataForClass(
|
|
215
|
+
initMetadataForClass(Key_0, 'Key');
|
|
199
216
|
initMetadataForCoroutine($ofCOROUTINE$, CoroutineImpl);
|
|
200
217
|
initMetadataForObject(HostPacers, 'HostPacers', VOID, VOID, VOID, [3]);
|
|
201
218
|
initMetadataForFunctionReference(fetchTileBytes$ref, KFunctionImpl, VOID, [1]);
|
|
@@ -204,7 +221,7 @@
|
|
|
204
221
|
initMetadataForClass(Pixel, 'Pixel');
|
|
205
222
|
initMetadataForClass(TileCoordinatesFloat, 'TileCoordinatesFloat');
|
|
206
223
|
initMetadataForClass(PixelFloat, 'PixelFloat');
|
|
207
|
-
initMetadataForCompanion(
|
|
224
|
+
initMetadataForCompanion(Companion_2);
|
|
208
225
|
initMetadataForClass(Vector3D, 'Vector3D');
|
|
209
226
|
initMetadataForLambda(getElevation$slambda, CoroutineImpl, VOID, [1]);
|
|
210
227
|
initMetadataForLambda(getElevationsAlong$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -1091,14 +1108,14 @@
|
|
|
1091
1108
|
case 0:
|
|
1092
1109
|
this.k7_1 = 2;
|
|
1093
1110
|
this.j7_1 = 1;
|
|
1094
|
-
suspendResult = this.r13_1.b10_1.
|
|
1111
|
+
suspendResult = this.r13_1.b10_1.v14(this.s13_1.o14_1, this);
|
|
1095
1112
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1096
1113
|
return suspendResult;
|
|
1097
1114
|
}
|
|
1098
1115
|
|
|
1099
1116
|
continue $sm;
|
|
1100
1117
|
case 1:
|
|
1101
|
-
return suspendResult.
|
|
1118
|
+
return suspendResult.b15(this.s13_1);
|
|
1102
1119
|
case 2:
|
|
1103
1120
|
throw this.m7_1;
|
|
1104
1121
|
}
|
|
@@ -1134,16 +1151,16 @@
|
|
|
1134
1151
|
this.v10_1 = 0;
|
|
1135
1152
|
this.w10_1 = 15;
|
|
1136
1153
|
}
|
|
1137
|
-
protoOf(ElevationFunctions).
|
|
1154
|
+
protoOf(ElevationFunctions).c15 = function (degrees) {
|
|
1138
1155
|
return degrees * 0.017453292519943295;
|
|
1139
1156
|
};
|
|
1140
|
-
protoOf(ElevationFunctions).
|
|
1157
|
+
protoOf(ElevationFunctions).d15 = function (lat) {
|
|
1141
1158
|
return lat >= -85.0511 && lat <= 85.0511;
|
|
1142
1159
|
};
|
|
1143
|
-
protoOf(ElevationFunctions).
|
|
1160
|
+
protoOf(ElevationFunctions).e15 = function (lon) {
|
|
1144
1161
|
return -180.0 <= lon ? lon <= 180.0 : false;
|
|
1145
1162
|
};
|
|
1146
|
-
protoOf(ElevationFunctions).
|
|
1163
|
+
protoOf(ElevationFunctions).f15 = function (zoom) {
|
|
1147
1164
|
return 0 <= zoom ? zoom <= 15 : false;
|
|
1148
1165
|
};
|
|
1149
1166
|
protoOf(ElevationFunctions).n14 = function (pixel, tileSize) {
|
|
@@ -1185,23 +1202,23 @@
|
|
|
1185
1202
|
}
|
|
1186
1203
|
return new Pixel(new TileCoordinates(tileX, tileY, z), x, y);
|
|
1187
1204
|
};
|
|
1188
|
-
protoOf(ElevationFunctions).
|
|
1205
|
+
protoOf(ElevationFunctions).g15 = function (coords, z) {
|
|
1189
1206
|
// Inline function 'kotlin.require' call
|
|
1190
|
-
if (!this.
|
|
1207
|
+
if (!this.d15(coords.f10())) {
|
|
1191
1208
|
var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.f10()) + '. Must be between -85.0511 and 85.0511';
|
|
1192
1209
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1193
1210
|
}
|
|
1194
1211
|
// Inline function 'kotlin.require' call
|
|
1195
|
-
if (!this.
|
|
1212
|
+
if (!this.e15(coords.g10())) {
|
|
1196
1213
|
var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.g10()) + '. Must be between -180 and 180';
|
|
1197
1214
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1198
1215
|
}
|
|
1199
1216
|
// Inline function 'kotlin.require' call
|
|
1200
|
-
if (!this.
|
|
1217
|
+
if (!this.f15(z)) {
|
|
1201
1218
|
var message_1 = 'Invalid zoom level: ' + z + '. Must be between 0 and 15';
|
|
1202
1219
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1203
1220
|
}
|
|
1204
|
-
var lat = this.
|
|
1221
|
+
var lat = this.c15(coords.f10());
|
|
1205
1222
|
var n = 1 << z;
|
|
1206
1223
|
var xFloat = (coords.g10() + 180.0) / 360.0 * n;
|
|
1207
1224
|
// Inline function 'kotlin.math.tan' call
|
|
@@ -1220,26 +1237,26 @@
|
|
|
1220
1237
|
return new TileCoordinatesFloat(x_0, y, xFloat, yFloat, z);
|
|
1221
1238
|
};
|
|
1222
1239
|
protoOf(ElevationFunctions).x10 = function (coords, z) {
|
|
1223
|
-
var tile = this.
|
|
1224
|
-
return new TileCoordinates(tile.
|
|
1240
|
+
var tile = this.g15(coords, z);
|
|
1241
|
+
return new TileCoordinates(tile.h15_1, tile.i15_1, tile.l15_1);
|
|
1225
1242
|
};
|
|
1226
1243
|
protoOf(ElevationFunctions).i14 = function (coords, z, tileSize) {
|
|
1227
|
-
var tile = this.
|
|
1244
|
+
var tile = this.g15(coords, z);
|
|
1228
1245
|
// Inline function 'kotlin.math.floor' call
|
|
1229
|
-
var x = (tile.
|
|
1246
|
+
var x = (tile.j15_1 - tile.h15_1) * tileSize;
|
|
1230
1247
|
var tmp$ret$0 = Math.floor(x);
|
|
1231
1248
|
var px = coerceIn_1(numberToInt(tmp$ret$0), 0, tileSize - 1 | 0);
|
|
1232
1249
|
// Inline function 'kotlin.math.floor' call
|
|
1233
|
-
var x_0 = (tile.
|
|
1250
|
+
var x_0 = (tile.k15_1 - tile.i15_1) * tileSize;
|
|
1234
1251
|
var tmp$ret$1 = Math.floor(x_0);
|
|
1235
1252
|
var py = coerceIn_1(numberToInt(tmp$ret$1), 0, tileSize - 1 | 0);
|
|
1236
|
-
return new Pixel(new TileCoordinates(tile.
|
|
1253
|
+
return new Pixel(new TileCoordinates(tile.h15_1, tile.i15_1, z), px, py);
|
|
1237
1254
|
};
|
|
1238
1255
|
protoOf(ElevationFunctions).j14 = function (coords, z, tileSize) {
|
|
1239
|
-
var tile = this.
|
|
1240
|
-
var px = (tile.
|
|
1241
|
-
var py = (tile.
|
|
1242
|
-
return new PixelFloat(new TileCoordinates(tile.
|
|
1256
|
+
var tile = this.g15(coords, z);
|
|
1257
|
+
var px = (tile.j15_1 - tile.h15_1) * tileSize;
|
|
1258
|
+
var py = (tile.k15_1 - tile.i15_1) * tileSize;
|
|
1259
|
+
return new PixelFloat(new TileCoordinates(tile.h15_1, tile.i15_1, z), px, py);
|
|
1243
1260
|
};
|
|
1244
1261
|
var ElevationFunctions_instance;
|
|
1245
1262
|
function ElevationFunctions_getInstance() {
|
|
@@ -1262,18 +1279,18 @@
|
|
|
1262
1279
|
return ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, objectCreate(protoOf(ElevationProvider)));
|
|
1263
1280
|
}
|
|
1264
1281
|
function ElevationProvider$calculator$slambda(this$0, resultContinuation) {
|
|
1265
|
-
this.
|
|
1282
|
+
this.u15_1 = this$0;
|
|
1266
1283
|
CoroutineImpl.call(this, resultContinuation);
|
|
1267
1284
|
}
|
|
1268
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1269
|
-
var tmp = this.
|
|
1285
|
+
protoOf(ElevationProvider$calculator$slambda).x15 = function (coords, interpolation, $completion) {
|
|
1286
|
+
var tmp = this.y15(coords, interpolation, $completion);
|
|
1270
1287
|
tmp.l7_1 = Unit_instance;
|
|
1271
1288
|
tmp.m7_1 = null;
|
|
1272
1289
|
return tmp.r7();
|
|
1273
1290
|
};
|
|
1274
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1291
|
+
protoOf(ElevationProvider$calculator$slambda).z15 = function (p1, p2, $completion) {
|
|
1275
1292
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1276
|
-
return this.
|
|
1293
|
+
return this.x15(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1277
1294
|
};
|
|
1278
1295
|
protoOf(ElevationProvider$calculator$slambda).r7 = function () {
|
|
1279
1296
|
var suspendResult = this.l7_1;
|
|
@@ -1284,7 +1301,7 @@
|
|
|
1284
1301
|
case 0:
|
|
1285
1302
|
this.k7_1 = 2;
|
|
1286
1303
|
this.j7_1 = 1;
|
|
1287
|
-
suspendResult = this.
|
|
1304
|
+
suspendResult = this.u15_1.c16_1.i16(this.v15_1.f10(), this.v15_1.g10(), this.w15_1, this);
|
|
1288
1305
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1289
1306
|
return suspendResult;
|
|
1290
1307
|
}
|
|
@@ -1306,30 +1323,30 @@
|
|
|
1306
1323
|
}
|
|
1307
1324
|
while (true);
|
|
1308
1325
|
};
|
|
1309
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1310
|
-
var i = new ElevationProvider$calculator$slambda(this.
|
|
1311
|
-
i.
|
|
1312
|
-
i.
|
|
1326
|
+
protoOf(ElevationProvider$calculator$slambda).y15 = function (coords, interpolation, completion) {
|
|
1327
|
+
var i = new ElevationProvider$calculator$slambda(this.u15_1, completion);
|
|
1328
|
+
i.v15_1 = coords;
|
|
1329
|
+
i.w15_1 = interpolation;
|
|
1313
1330
|
return i;
|
|
1314
1331
|
};
|
|
1315
1332
|
function ElevationProvider$calculator$slambda_0(this$0, resultContinuation) {
|
|
1316
1333
|
var i = new ElevationProvider$calculator$slambda(this$0, resultContinuation);
|
|
1317
1334
|
return constructCallableReference(function (coords, interpolation, $completion) {
|
|
1318
|
-
return i.
|
|
1335
|
+
return i.x15(coords, interpolation, $completion);
|
|
1319
1336
|
}, 2);
|
|
1320
1337
|
}
|
|
1321
1338
|
function ElevationProvider$calculator$slambda_1(resultContinuation) {
|
|
1322
1339
|
CoroutineImpl.call(this, resultContinuation);
|
|
1323
1340
|
}
|
|
1324
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1325
|
-
var tmp = this.
|
|
1341
|
+
protoOf(ElevationProvider$calculator$slambda_1).x15 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1342
|
+
var tmp = this.y15(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1326
1343
|
tmp.l7_1 = Unit_instance;
|
|
1327
1344
|
tmp.m7_1 = null;
|
|
1328
1345
|
return tmp.r7();
|
|
1329
1346
|
};
|
|
1330
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1347
|
+
protoOf(ElevationProvider$calculator$slambda_1).z15 = function (p1, p2, $completion) {
|
|
1331
1348
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1332
|
-
return this.
|
|
1349
|
+
return this.x15(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1333
1350
|
};
|
|
1334
1351
|
protoOf(ElevationProvider$calculator$slambda_1).r7 = function () {
|
|
1335
1352
|
var suspendResult = this.l7_1;
|
|
@@ -1348,101 +1365,106 @@
|
|
|
1348
1365
|
}
|
|
1349
1366
|
while (true);
|
|
1350
1367
|
};
|
|
1351
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1368
|
+
protoOf(ElevationProvider$calculator$slambda_1).y15 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
|
|
1352
1369
|
var i = new ElevationProvider$calculator$slambda_1(completion);
|
|
1353
|
-
i.
|
|
1354
|
-
i.
|
|
1370
|
+
i.r16_1 = _unused_var__etf5q3;
|
|
1371
|
+
i.s16_1 = _unused_var__etf5q3_0;
|
|
1355
1372
|
return i;
|
|
1356
1373
|
};
|
|
1357
1374
|
function ElevationProvider$calculator$slambda_2(resultContinuation) {
|
|
1358
1375
|
var i = new ElevationProvider$calculator$slambda_1(resultContinuation);
|
|
1359
1376
|
return constructCallableReference(function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1360
|
-
return i.
|
|
1377
|
+
return i.x15(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1361
1378
|
}, 2);
|
|
1362
1379
|
}
|
|
1363
1380
|
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel) {
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1381
|
+
this.a16_1 = config;
|
|
1382
|
+
this.b16_1 = fetcher;
|
|
1383
|
+
this.c16_1 = fallback;
|
|
1384
|
+
this.d16_1 = keepNoData;
|
|
1385
|
+
this.e16_1 = surfaceModel;
|
|
1369
1386
|
// Inline function 'kotlin.require' call
|
|
1370
|
-
if (!ElevationFunctions_instance.
|
|
1371
|
-
var message = 'Invalid zoom level: ' + this.
|
|
1387
|
+
if (!ElevationFunctions_instance.f15(this.a16_1.t16_1)) {
|
|
1388
|
+
var message = 'Invalid zoom level: ' + this.a16_1.t16_1 + '. Must be an integer between ' + '0 and 15';
|
|
1372
1389
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1373
1390
|
}
|
|
1374
1391
|
// Inline function 'kotlin.require' call
|
|
1375
|
-
if (!(this.
|
|
1376
|
-
var message_0 = 'Invalid cache size: ' + this.
|
|
1392
|
+
if (!(this.a16_1.u16_1 > 0)) {
|
|
1393
|
+
var message_0 = 'Invalid cache size: ' + this.a16_1.u16_1 + '. Must be a positive integer';
|
|
1377
1394
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1378
1395
|
}
|
|
1379
1396
|
// Inline function 'kotlin.require' call
|
|
1380
|
-
if (!(this.
|
|
1381
|
-
var message_1 = 'Invalid tile size: ' + this.
|
|
1397
|
+
if (!(this.a16_1.w16_1 > 0 && (this.a16_1.w16_1 & (this.a16_1.w16_1 - 1 | 0)) === 0)) {
|
|
1398
|
+
var message_1 = 'Invalid tile size: ' + this.a16_1.w16_1 + '. Must be a positive power of 2';
|
|
1382
1399
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1383
1400
|
}
|
|
1384
1401
|
// Inline function 'kotlin.require' call
|
|
1385
|
-
if (!(this.
|
|
1386
|
-
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.
|
|
1402
|
+
if (!(this.a16_1.z16_1 >= 0)) {
|
|
1403
|
+
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.a16_1.z16_1 + '. Must be 0 (no limit) or positive';
|
|
1387
1404
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
1388
1405
|
}
|
|
1389
|
-
this.e16_1 = new TileManager(this.z15_1.u16_1, this.z15_1.t16_1, this.a16_1);
|
|
1390
1406
|
var tmp = this;
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1407
|
+
// Inline function 'kotlin.apply' call
|
|
1408
|
+
var this_0 = new TileManager(this.a16_1.v16_1, this.a16_1.u16_1, this.b16_1);
|
|
1409
|
+
if (!(this.c16_1 == null))
|
|
1410
|
+
this_0.t14_1 = new UnreadableTiles(this.a16_1.v16_1, this.a16_1.w16_1);
|
|
1411
|
+
tmp.f16_1 = this_0;
|
|
1412
|
+
var tmp_0 = this;
|
|
1413
|
+
var tmp_1;
|
|
1414
|
+
if (!(this.c16_1 == null)) {
|
|
1415
|
+
tmp_1 = ElevationProvider$calculator$slambda_0(this, null);
|
|
1416
|
+
} else if (this.d16_1) {
|
|
1417
|
+
tmp_1 = ElevationProvider$calculator$slambda_2(null);
|
|
1396
1418
|
} else {
|
|
1397
|
-
|
|
1419
|
+
tmp_1 = null;
|
|
1398
1420
|
}
|
|
1399
|
-
|
|
1400
|
-
this.
|
|
1421
|
+
tmp_0.g16_1 = new ElevationCalculator(this.f16_1, this.a16_1.w16_1, tmp_1);
|
|
1422
|
+
this.h16_1 = new BatchCalculator(this.g16_1);
|
|
1401
1423
|
}
|
|
1402
|
-
protoOf(ElevationProvider).
|
|
1424
|
+
protoOf(ElevationProvider).a17 = function (other) {
|
|
1403
1425
|
// Inline function 'kotlin.require' call
|
|
1404
|
-
if (!!this.
|
|
1426
|
+
if (!!this.d16_1) {
|
|
1405
1427
|
var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
|
|
1406
1428
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1407
1429
|
}
|
|
1408
|
-
return new ElevationProvider(this.
|
|
1430
|
+
return new ElevationProvider(this.a16_1, this.b16_1, other, false, this.e16_1);
|
|
1409
1431
|
};
|
|
1410
|
-
protoOf(ElevationProvider).
|
|
1432
|
+
protoOf(ElevationProvider).b17 = function (surface) {
|
|
1411
1433
|
// Inline function 'kotlin.require' call
|
|
1412
|
-
if (!(surface == null || surface.
|
|
1434
|
+
if (!(surface == null || surface.d16_1)) {
|
|
1413
1435
|
var message = 'a surface model must keep its no-data as NaN';
|
|
1414
1436
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1415
1437
|
}
|
|
1416
1438
|
// Inline function 'kotlin.require' call
|
|
1417
|
-
if (!!this.
|
|
1439
|
+
if (!!this.d16_1) {
|
|
1418
1440
|
var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
|
|
1419
1441
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1420
1442
|
}
|
|
1421
|
-
return new ElevationProvider(this.
|
|
1443
|
+
return new ElevationProvider(this.a16_1, this.b16_1, this.c16_1, false, surface);
|
|
1422
1444
|
};
|
|
1423
|
-
protoOf(ElevationProvider).
|
|
1424
|
-
return this.
|
|
1445
|
+
protoOf(ElevationProvider).c17 = function () {
|
|
1446
|
+
return this.a16_1.x16_1;
|
|
1425
1447
|
};
|
|
1426
|
-
protoOf(ElevationProvider).
|
|
1427
|
-
return this.
|
|
1448
|
+
protoOf(ElevationProvider).i16 = function (latitude, longitude, interpolation, $completion) {
|
|
1449
|
+
return this.g16_1.e10(new LatLon(latitude, longitude), this.a16_1.t16_1, interpolation, $completion);
|
|
1428
1450
|
};
|
|
1429
|
-
protoOf(ElevationProvider).
|
|
1430
|
-
return this.
|
|
1451
|
+
protoOf(ElevationProvider).d17 = function (coordinates, interpolation, $completion) {
|
|
1452
|
+
return this.h16_1.t11(coordinates, this.a16_1.t16_1, interpolation, VOID, $completion);
|
|
1431
1453
|
};
|
|
1432
|
-
protoOf(ElevationProvider).
|
|
1454
|
+
protoOf(ElevationProvider).e17 = function (coordinates, interpolation, $completion, $super) {
|
|
1433
1455
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1434
|
-
return $super === VOID ? this.
|
|
1456
|
+
return $super === VOID ? this.d17(coordinates, interpolation, $completion) : $super.d17.call(this, coordinates, interpolation, $completion);
|
|
1435
1457
|
};
|
|
1436
|
-
protoOf(ElevationProvider).
|
|
1437
|
-
return this.
|
|
1458
|
+
protoOf(ElevationProvider).f17 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
1459
|
+
return this.h16_1.x11(path, this.a16_1.t16_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
1438
1460
|
};
|
|
1439
1461
|
function defaultTileFetcher(config) {
|
|
1440
|
-
if (config.
|
|
1462
|
+
if (config.y16_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.z16_1 === 0) {
|
|
1441
1463
|
return fetchAndDecodeTile$ref_1();
|
|
1442
1464
|
}
|
|
1443
|
-
var bytes = pacedTileBytesFetcher(config.
|
|
1465
|
+
var bytes = pacedTileBytesFetcher(config.z16_1);
|
|
1444
1466
|
var tmp;
|
|
1445
|
-
switch (config.
|
|
1467
|
+
switch (config.y16_1.y1_1) {
|
|
1446
1468
|
case 0:
|
|
1447
1469
|
tmp = defaultTileFetcher$slambda_0(bytes, null);
|
|
1448
1470
|
break;
|
|
@@ -1458,24 +1480,24 @@
|
|
|
1458
1480
|
function fetchAndDecodeTile$ref() {
|
|
1459
1481
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
1460
1482
|
}
|
|
1461
|
-
protoOf(fetchAndDecodeTile$ref).
|
|
1483
|
+
protoOf(fetchAndDecodeTile$ref).j17 = function (p0, $completion) {
|
|
1462
1484
|
return fetchAndDecodeTile(p0, $completion);
|
|
1463
1485
|
};
|
|
1464
1486
|
protoOf(fetchAndDecodeTile$ref).z7 = function (p1, $completion) {
|
|
1465
|
-
return this.
|
|
1487
|
+
return this.j17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1466
1488
|
};
|
|
1467
1489
|
function defaultTileFetcher$slambda($bytes, resultContinuation) {
|
|
1468
|
-
this.
|
|
1490
|
+
this.s17_1 = $bytes;
|
|
1469
1491
|
CoroutineImpl.call(this, resultContinuation);
|
|
1470
1492
|
}
|
|
1471
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1472
|
-
var tmp = this.
|
|
1493
|
+
protoOf(defaultTileFetcher$slambda).j17 = function (url, $completion) {
|
|
1494
|
+
var tmp = this.u17(url, $completion);
|
|
1473
1495
|
tmp.l7_1 = Unit_instance;
|
|
1474
1496
|
tmp.m7_1 = null;
|
|
1475
1497
|
return tmp.r7();
|
|
1476
1498
|
};
|
|
1477
1499
|
protoOf(defaultTileFetcher$slambda).z7 = function (p1, $completion) {
|
|
1478
|
-
return this.
|
|
1500
|
+
return this.j17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1479
1501
|
};
|
|
1480
1502
|
protoOf(defaultTileFetcher$slambda).r7 = function () {
|
|
1481
1503
|
var suspendResult = this.l7_1;
|
|
@@ -1486,7 +1508,7 @@
|
|
|
1486
1508
|
case 0:
|
|
1487
1509
|
this.k7_1 = 3;
|
|
1488
1510
|
this.j7_1 = 1;
|
|
1489
|
-
suspendResult = this.
|
|
1511
|
+
suspendResult = this.s17_1(this.t17_1, this);
|
|
1490
1512
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1491
1513
|
return suspendResult;
|
|
1492
1514
|
}
|
|
@@ -1495,7 +1517,7 @@
|
|
|
1495
1517
|
case 1:
|
|
1496
1518
|
var ARGUMENT = suspendResult;
|
|
1497
1519
|
this.j7_1 = 2;
|
|
1498
|
-
suspendResult = decodeTileBytes(ARGUMENT, this.
|
|
1520
|
+
suspendResult = decodeTileBytes(ARGUMENT, this.t17_1, this);
|
|
1499
1521
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1500
1522
|
return suspendResult;
|
|
1501
1523
|
}
|
|
@@ -1517,30 +1539,30 @@
|
|
|
1517
1539
|
}
|
|
1518
1540
|
while (true);
|
|
1519
1541
|
};
|
|
1520
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1521
|
-
var i = new defaultTileFetcher$slambda(this.
|
|
1522
|
-
i.
|
|
1542
|
+
protoOf(defaultTileFetcher$slambda).u17 = function (url, completion) {
|
|
1543
|
+
var i = new defaultTileFetcher$slambda(this.s17_1, completion);
|
|
1544
|
+
i.t17_1 = url;
|
|
1523
1545
|
return i;
|
|
1524
1546
|
};
|
|
1525
1547
|
function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
|
|
1526
1548
|
var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
|
|
1527
1549
|
return constructCallableReference(function (url, $completion) {
|
|
1528
|
-
return i.
|
|
1550
|
+
return i.j17(url, $completion);
|
|
1529
1551
|
}, 1);
|
|
1530
1552
|
}
|
|
1531
1553
|
function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
|
|
1532
|
-
this.
|
|
1533
|
-
this.
|
|
1554
|
+
this.d18_1 = $bytes;
|
|
1555
|
+
this.e18_1 = $config;
|
|
1534
1556
|
CoroutineImpl.call(this, resultContinuation);
|
|
1535
1557
|
}
|
|
1536
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1537
|
-
var tmp = this.
|
|
1558
|
+
protoOf(defaultTileFetcher$slambda_1).j17 = function (url, $completion) {
|
|
1559
|
+
var tmp = this.u17(url, $completion);
|
|
1538
1560
|
tmp.l7_1 = Unit_instance;
|
|
1539
1561
|
tmp.m7_1 = null;
|
|
1540
1562
|
return tmp.r7();
|
|
1541
1563
|
};
|
|
1542
1564
|
protoOf(defaultTileFetcher$slambda_1).z7 = function (p1, $completion) {
|
|
1543
|
-
return this.
|
|
1565
|
+
return this.j17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1544
1566
|
};
|
|
1545
1567
|
protoOf(defaultTileFetcher$slambda_1).r7 = function () {
|
|
1546
1568
|
var suspendResult = this.l7_1;
|
|
@@ -1551,7 +1573,7 @@
|
|
|
1551
1573
|
case 0:
|
|
1552
1574
|
this.k7_1 = 2;
|
|
1553
1575
|
this.j7_1 = 1;
|
|
1554
|
-
suspendResult = this.
|
|
1576
|
+
suspendResult = this.d18_1(this.f18_1, this);
|
|
1555
1577
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1556
1578
|
return suspendResult;
|
|
1557
1579
|
}
|
|
@@ -1559,7 +1581,7 @@
|
|
|
1559
1581
|
continue $sm;
|
|
1560
1582
|
case 1:
|
|
1561
1583
|
var ARGUMENT = suspendResult;
|
|
1562
|
-
return decodeBil32Tile(ARGUMENT, this.
|
|
1584
|
+
return decodeBil32Tile(ARGUMENT, this.e18_1.w16_1, this.f18_1);
|
|
1563
1585
|
case 2:
|
|
1564
1586
|
throw this.m7_1;
|
|
1565
1587
|
}
|
|
@@ -1574,15 +1596,15 @@
|
|
|
1574
1596
|
}
|
|
1575
1597
|
while (true);
|
|
1576
1598
|
};
|
|
1577
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1578
|
-
var i = new defaultTileFetcher$slambda_1(this.
|
|
1579
|
-
i.
|
|
1599
|
+
protoOf(defaultTileFetcher$slambda_1).u17 = function (url, completion) {
|
|
1600
|
+
var i = new defaultTileFetcher$slambda_1(this.d18_1, this.e18_1, completion);
|
|
1601
|
+
i.f18_1 = url;
|
|
1580
1602
|
return i;
|
|
1581
1603
|
};
|
|
1582
1604
|
function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
|
|
1583
1605
|
var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
|
|
1584
1606
|
return constructCallableReference(function (url, $completion) {
|
|
1585
|
-
return i.
|
|
1607
|
+
return i.j17(url, $completion);
|
|
1586
1608
|
}, 1);
|
|
1587
1609
|
}
|
|
1588
1610
|
function defaultTileFetcher$ref() {
|
|
@@ -1598,38 +1620,38 @@
|
|
|
1598
1620
|
attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
|
|
1599
1621
|
encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
|
|
1600
1622
|
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
}
|
|
1609
|
-
protoOf(ElevationProviderConfig).
|
|
1623
|
+
this.t16_1 = zoomLevel;
|
|
1624
|
+
this.u16_1 = cacheSize;
|
|
1625
|
+
this.v16_1 = tileUrlTemplate;
|
|
1626
|
+
this.w16_1 = tileSize;
|
|
1627
|
+
this.x16_1 = attribution;
|
|
1628
|
+
this.y16_1 = encoding;
|
|
1629
|
+
this.z16_1 = maxRequestsPerSecond;
|
|
1630
|
+
}
|
|
1631
|
+
protoOf(ElevationProviderConfig).g18 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
|
|
1610
1632
|
return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1611
1633
|
};
|
|
1612
|
-
protoOf(ElevationProviderConfig).
|
|
1613
|
-
zoomLevel = zoomLevel === VOID ? this.
|
|
1614
|
-
cacheSize = cacheSize === VOID ? this.
|
|
1615
|
-
tileUrlTemplate = tileUrlTemplate === VOID ? this.
|
|
1616
|
-
tileSize = tileSize === VOID ? this.
|
|
1617
|
-
attribution = attribution === VOID ? this.
|
|
1618
|
-
encoding = encoding === VOID ? this.
|
|
1619
|
-
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.
|
|
1620
|
-
return $super === VOID ? this.
|
|
1634
|
+
protoOf(ElevationProviderConfig).h18 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
|
|
1635
|
+
zoomLevel = zoomLevel === VOID ? this.t16_1 : zoomLevel;
|
|
1636
|
+
cacheSize = cacheSize === VOID ? this.u16_1 : cacheSize;
|
|
1637
|
+
tileUrlTemplate = tileUrlTemplate === VOID ? this.v16_1 : tileUrlTemplate;
|
|
1638
|
+
tileSize = tileSize === VOID ? this.w16_1 : tileSize;
|
|
1639
|
+
attribution = attribution === VOID ? this.x16_1 : attribution;
|
|
1640
|
+
encoding = encoding === VOID ? this.y16_1 : encoding;
|
|
1641
|
+
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.z16_1 : maxRequestsPerSecond;
|
|
1642
|
+
return $super === VOID ? this.g18(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.g18.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1621
1643
|
};
|
|
1622
1644
|
protoOf(ElevationProviderConfig).toString = function () {
|
|
1623
|
-
return 'ElevationProviderConfig(zoomLevel=' + this.
|
|
1645
|
+
return 'ElevationProviderConfig(zoomLevel=' + this.t16_1 + ', cacheSize=' + this.u16_1 + ', tileUrlTemplate=' + this.v16_1 + ', tileSize=' + this.w16_1 + ', attribution=' + this.x16_1.toString() + ', encoding=' + this.y16_1.toString() + ', maxRequestsPerSecond=' + this.z16_1 + ')';
|
|
1624
1646
|
};
|
|
1625
1647
|
protoOf(ElevationProviderConfig).hashCode = function () {
|
|
1626
|
-
var result = this.
|
|
1627
|
-
result = imul(result, 31) + this.
|
|
1628
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1629
|
-
result = imul(result, 31) + this.
|
|
1630
|
-
result = imul(result, 31) + this.w16_1.hashCode() | 0;
|
|
1648
|
+
var result = this.t16_1;
|
|
1649
|
+
result = imul(result, 31) + this.u16_1 | 0;
|
|
1650
|
+
result = imul(result, 31) + getStringHashCode(this.v16_1) | 0;
|
|
1651
|
+
result = imul(result, 31) + this.w16_1 | 0;
|
|
1631
1652
|
result = imul(result, 31) + this.x16_1.hashCode() | 0;
|
|
1632
|
-
result = imul(result, 31) + this.y16_1 | 0;
|
|
1653
|
+
result = imul(result, 31) + this.y16_1.hashCode() | 0;
|
|
1654
|
+
result = imul(result, 31) + this.z16_1 | 0;
|
|
1633
1655
|
return result;
|
|
1634
1656
|
};
|
|
1635
1657
|
protoOf(ElevationProviderConfig).equals = function (other) {
|
|
@@ -1637,33 +1659,33 @@
|
|
|
1637
1659
|
return true;
|
|
1638
1660
|
if (!(other instanceof ElevationProviderConfig))
|
|
1639
1661
|
return false;
|
|
1640
|
-
if (!(this.s16_1 === other.s16_1))
|
|
1641
|
-
return false;
|
|
1642
1662
|
if (!(this.t16_1 === other.t16_1))
|
|
1643
1663
|
return false;
|
|
1644
1664
|
if (!(this.u16_1 === other.u16_1))
|
|
1645
1665
|
return false;
|
|
1646
1666
|
if (!(this.v16_1 === other.v16_1))
|
|
1647
1667
|
return false;
|
|
1648
|
-
if (!this.w16_1
|
|
1668
|
+
if (!(this.w16_1 === other.w16_1))
|
|
1649
1669
|
return false;
|
|
1650
1670
|
if (!this.x16_1.equals(other.x16_1))
|
|
1651
1671
|
return false;
|
|
1652
|
-
if (!
|
|
1672
|
+
if (!this.y16_1.equals(other.y16_1))
|
|
1673
|
+
return false;
|
|
1674
|
+
if (!(this.z16_1 === other.z16_1))
|
|
1653
1675
|
return false;
|
|
1654
1676
|
return true;
|
|
1655
1677
|
};
|
|
1656
1678
|
function Attribution(text, url) {
|
|
1657
1679
|
url = url === VOID ? null : url;
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1680
|
+
this.i18_1 = text;
|
|
1681
|
+
this.j18_1 = url;
|
|
1660
1682
|
}
|
|
1661
1683
|
protoOf(Attribution).toString = function () {
|
|
1662
|
-
return 'Attribution(text=' + this.
|
|
1684
|
+
return 'Attribution(text=' + this.i18_1 + ', url=' + this.j18_1 + ')';
|
|
1663
1685
|
};
|
|
1664
1686
|
protoOf(Attribution).hashCode = function () {
|
|
1665
|
-
var result = getStringHashCode(this.
|
|
1666
|
-
result = imul(result, 31) + (this.
|
|
1687
|
+
var result = getStringHashCode(this.i18_1);
|
|
1688
|
+
result = imul(result, 31) + (this.j18_1 == null ? 0 : getStringHashCode(this.j18_1)) | 0;
|
|
1667
1689
|
return result;
|
|
1668
1690
|
};
|
|
1669
1691
|
protoOf(Attribution).equals = function (other) {
|
|
@@ -1671,9 +1693,9 @@
|
|
|
1671
1693
|
return true;
|
|
1672
1694
|
if (!(other instanceof Attribution))
|
|
1673
1695
|
return false;
|
|
1674
|
-
if (!(this.
|
|
1696
|
+
if (!(this.i18_1 === other.i18_1))
|
|
1675
1697
|
return false;
|
|
1676
|
-
if (!(this.
|
|
1698
|
+
if (!(this.j18_1 == other.j18_1))
|
|
1677
1699
|
return false;
|
|
1678
1700
|
return true;
|
|
1679
1701
|
};
|
|
@@ -1701,7 +1723,7 @@
|
|
|
1701
1723
|
tmp = tmp + 1 | 0;
|
|
1702
1724
|
}
|
|
1703
1725
|
var elevations = tmp_1;
|
|
1704
|
-
var smoothed = this.
|
|
1726
|
+
var smoothed = this.k18(distances, elevations, windowSize);
|
|
1705
1727
|
// Inline function 'kotlin.collections.List' call
|
|
1706
1728
|
// Inline function 'kotlin.collections.MutableList' call
|
|
1707
1729
|
var size = points.o();
|
|
@@ -1718,7 +1740,7 @@
|
|
|
1718
1740
|
while (inductionVariable < size);
|
|
1719
1741
|
return list;
|
|
1720
1742
|
};
|
|
1721
|
-
protoOf(ElevationSmoother).
|
|
1743
|
+
protoOf(ElevationSmoother).k18 = function (distanceM, elevationM, windowSize) {
|
|
1722
1744
|
// Inline function 'kotlin.require' call
|
|
1723
1745
|
if (!(distanceM.length === elevationM.length)) {
|
|
1724
1746
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
@@ -1817,9 +1839,9 @@
|
|
|
1817
1839
|
var ElevationSource_IGN_LIDAR_HD_instance;
|
|
1818
1840
|
function Companion() {
|
|
1819
1841
|
Companion_instance_0 = this;
|
|
1820
|
-
this.
|
|
1842
|
+
this.l18_1 = ElevationSource_MAPTERHORN_getInstance();
|
|
1821
1843
|
}
|
|
1822
|
-
protoOf(Companion).
|
|
1844
|
+
protoOf(Companion).m18 = function () {
|
|
1823
1845
|
// Inline function 'kotlin.collections.map' call
|
|
1824
1846
|
var this_0 = get_entries();
|
|
1825
1847
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1827,12 +1849,12 @@
|
|
|
1827
1849
|
var _iterator__ex2g4s = this_0.l();
|
|
1828
1850
|
while (_iterator__ex2g4s.m()) {
|
|
1829
1851
|
var item = _iterator__ex2g4s.n();
|
|
1830
|
-
var tmp$ret$2 = item.
|
|
1852
|
+
var tmp$ret$2 = item.p18_1;
|
|
1831
1853
|
destination.k(tmp$ret$2);
|
|
1832
1854
|
}
|
|
1833
1855
|
return destination;
|
|
1834
1856
|
};
|
|
1835
|
-
protoOf(Companion).
|
|
1857
|
+
protoOf(Companion).q18 = function (id) {
|
|
1836
1858
|
var tmp0 = get_entries();
|
|
1837
1859
|
var tmp$ret$0;
|
|
1838
1860
|
$l$block: {
|
|
@@ -1840,7 +1862,7 @@
|
|
|
1840
1862
|
var _iterator__ex2g4s = tmp0.l();
|
|
1841
1863
|
while (_iterator__ex2g4s.m()) {
|
|
1842
1864
|
var element = _iterator__ex2g4s.n();
|
|
1843
|
-
if (element.
|
|
1865
|
+
if (element.p18_1 === id) {
|
|
1844
1866
|
tmp$ret$0 = element;
|
|
1845
1867
|
break $l$block;
|
|
1846
1868
|
}
|
|
@@ -1850,7 +1872,7 @@
|
|
|
1850
1872
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
1851
1873
|
var tmp;
|
|
1852
1874
|
if (tmp0_elvis_lhs == null) {
|
|
1853
|
-
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.
|
|
1875
|
+
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.m18()));
|
|
1854
1876
|
} else {
|
|
1855
1877
|
tmp = tmp0_elvis_lhs;
|
|
1856
1878
|
}
|
|
@@ -1874,9 +1896,9 @@
|
|
|
1874
1896
|
var $ENTRIES;
|
|
1875
1897
|
function ElevationSource(name, ordinal, id) {
|
|
1876
1898
|
Enum.call(this, name, ordinal);
|
|
1877
|
-
this.
|
|
1899
|
+
this.p18_1 = id;
|
|
1878
1900
|
}
|
|
1879
|
-
protoOf(ElevationSource).
|
|
1901
|
+
protoOf(ElevationSource).r18 = function () {
|
|
1880
1902
|
var tmp;
|
|
1881
1903
|
switch (this.y1_1) {
|
|
1882
1904
|
case 0:
|
|
@@ -1891,14 +1913,14 @@
|
|
|
1891
1913
|
}
|
|
1892
1914
|
return tmp;
|
|
1893
1915
|
};
|
|
1894
|
-
protoOf(ElevationSource).
|
|
1916
|
+
protoOf(ElevationSource).s18 = function () {
|
|
1895
1917
|
var tmp;
|
|
1896
1918
|
switch (this.y1_1) {
|
|
1897
1919
|
case 0:
|
|
1898
|
-
tmp = (new ElevationProviderConfig()).
|
|
1920
|
+
tmp = (new ElevationProviderConfig()).t16_1;
|
|
1899
1921
|
break;
|
|
1900
1922
|
case 1:
|
|
1901
|
-
tmp = IgnLidarHdLayer_MNT_getInstance().
|
|
1923
|
+
tmp = IgnLidarHdLayer_MNT_getInstance().s18();
|
|
1902
1924
|
break;
|
|
1903
1925
|
default:
|
|
1904
1926
|
noWhenBranchMatchedException();
|
|
@@ -1906,15 +1928,15 @@
|
|
|
1906
1928
|
}
|
|
1907
1929
|
return tmp;
|
|
1908
1930
|
};
|
|
1909
|
-
protoOf(ElevationSource).
|
|
1931
|
+
protoOf(ElevationSource).w18 = function (zoomLevel) {
|
|
1910
1932
|
var tmp;
|
|
1911
1933
|
switch (this.y1_1) {
|
|
1912
1934
|
case 0:
|
|
1913
|
-
tmp = new ElevationProviderConfig(zoomLevel == null ? this.
|
|
1935
|
+
tmp = new ElevationProviderConfig(zoomLevel == null ? this.s18() : zoomLevel);
|
|
1914
1936
|
break;
|
|
1915
1937
|
case 1:
|
|
1916
1938
|
var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
|
|
1917
|
-
tmp = tmp_0.
|
|
1939
|
+
tmp = tmp_0.w18(zoomLevel == null ? this.s18() : zoomLevel);
|
|
1918
1940
|
break;
|
|
1919
1941
|
default:
|
|
1920
1942
|
noWhenBranchMatchedException();
|
|
@@ -1931,22 +1953,22 @@
|
|
|
1931
1953
|
tmp = fetcherFor;
|
|
1932
1954
|
}
|
|
1933
1955
|
fetcherFor = tmp;
|
|
1934
|
-
var config = _this__u8e3s4.
|
|
1956
|
+
var config = _this__u8e3s4.w18(zoomLevel);
|
|
1935
1957
|
var fetcher = _this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) ? ignCoverageFiltered(config, fetcherFor(config)) : fetcherFor(config);
|
|
1936
1958
|
var primary = ElevationProvider_init_$Create$(config, fetcher);
|
|
1937
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1959
|
+
var tmp0_safe_receiver = _this__u8e3s4.r18();
|
|
1938
1960
|
var tmp_0;
|
|
1939
1961
|
if (tmp0_safe_receiver == null) {
|
|
1940
1962
|
tmp_0 = null;
|
|
1941
1963
|
} else {
|
|
1942
1964
|
// Inline function 'kotlin.let' call
|
|
1943
|
-
tmp_0 = primary.
|
|
1965
|
+
tmp_0 = primary.a17(provider(tmp0_safe_receiver, null, fetcherFor));
|
|
1944
1966
|
}
|
|
1945
1967
|
var tmp1_elvis_lhs = tmp_0;
|
|
1946
1968
|
var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
|
|
1947
1969
|
var tmp_1;
|
|
1948
|
-
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.
|
|
1949
|
-
tmp_1 = withFallback.
|
|
1970
|
+
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.t16_1 === IgnLidarHdLayer_MNS_getInstance().s18()) {
|
|
1971
|
+
tmp_1 = withFallback.b17(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
|
|
1950
1972
|
} else {
|
|
1951
1973
|
tmp_1 = withFallback;
|
|
1952
1974
|
}
|
|
@@ -1974,19 +1996,19 @@
|
|
|
1974
1996
|
return ElevationSource_IGN_LIDAR_HD_instance;
|
|
1975
1997
|
}
|
|
1976
1998
|
function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
1999
|
+
this.f19_1 = $semaphore;
|
|
2000
|
+
this.g19_1 = $action;
|
|
2001
|
+
this.h19_1 = $item;
|
|
1980
2002
|
CoroutineImpl.call(this, resultContinuation);
|
|
1981
2003
|
}
|
|
1982
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
1983
|
-
var tmp = this.
|
|
2004
|
+
protoOf(Flux$forEachParallel$slambda$slambda).l19 = function ($this$async, $completion) {
|
|
2005
|
+
var tmp = this.m19($this$async, $completion);
|
|
1984
2006
|
tmp.l7_1 = Unit_instance;
|
|
1985
2007
|
tmp.m7_1 = null;
|
|
1986
2008
|
return tmp.r7();
|
|
1987
2009
|
};
|
|
1988
2010
|
protoOf(Flux$forEachParallel$slambda$slambda).z7 = function (p1, $completion) {
|
|
1989
|
-
return this.
|
|
2011
|
+
return this.l19((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1990
2012
|
};
|
|
1991
2013
|
protoOf(Flux$forEachParallel$slambda$slambda).r7 = function () {
|
|
1992
2014
|
var suspendResult = this.l7_1;
|
|
@@ -1996,41 +2018,41 @@
|
|
|
1996
2018
|
switch (tmp) {
|
|
1997
2019
|
case 0:
|
|
1998
2020
|
this.k7_1 = 6;
|
|
1999
|
-
this.
|
|
2021
|
+
this.j19_1 = this.f19_1;
|
|
2000
2022
|
this.j7_1 = 1;
|
|
2001
|
-
suspendResult = this.
|
|
2023
|
+
suspendResult = this.j19_1.yw(this);
|
|
2002
2024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2003
2025
|
return suspendResult;
|
|
2004
2026
|
}
|
|
2005
2027
|
|
|
2006
2028
|
continue $sm;
|
|
2007
2029
|
case 1:
|
|
2008
|
-
this.
|
|
2030
|
+
this.k19_1 = Unit_instance;
|
|
2009
2031
|
this.j7_1 = 2;
|
|
2010
2032
|
continue $sm;
|
|
2011
2033
|
case 2:
|
|
2012
2034
|
this.k7_1 = 5;
|
|
2013
2035
|
this.j7_1 = 3;
|
|
2014
|
-
suspendResult = this.
|
|
2036
|
+
suspendResult = this.g19_1(this.h19_1, this);
|
|
2015
2037
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2016
2038
|
return suspendResult;
|
|
2017
2039
|
}
|
|
2018
2040
|
|
|
2019
2041
|
continue $sm;
|
|
2020
2042
|
case 3:
|
|
2021
|
-
this.
|
|
2043
|
+
this.k19_1 = Unit_instance;
|
|
2022
2044
|
this.k7_1 = 6;
|
|
2023
2045
|
this.j7_1 = 4;
|
|
2024
2046
|
continue $sm;
|
|
2025
2047
|
case 4:
|
|
2026
|
-
this.
|
|
2048
|
+
this.k19_1;
|
|
2027
2049
|
this.k7_1 = 6;
|
|
2028
|
-
this.
|
|
2050
|
+
this.j19_1.sw();
|
|
2029
2051
|
return Unit_instance;
|
|
2030
2052
|
case 5:
|
|
2031
2053
|
this.k7_1 = 6;
|
|
2032
2054
|
var t = this.m7_1;
|
|
2033
|
-
this.
|
|
2055
|
+
this.j19_1.sw();
|
|
2034
2056
|
throw t;
|
|
2035
2057
|
case 6:
|
|
2036
2058
|
throw this.m7_1;
|
|
@@ -2046,31 +2068,31 @@
|
|
|
2046
2068
|
}
|
|
2047
2069
|
while (true);
|
|
2048
2070
|
};
|
|
2049
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2050
|
-
var i = new Flux$forEachParallel$slambda$slambda(this.
|
|
2051
|
-
i.
|
|
2071
|
+
protoOf(Flux$forEachParallel$slambda$slambda).m19 = function ($this$async, completion) {
|
|
2072
|
+
var i = new Flux$forEachParallel$slambda$slambda(this.f19_1, this.g19_1, this.h19_1, completion);
|
|
2073
|
+
i.i19_1 = $this$async;
|
|
2052
2074
|
return i;
|
|
2053
2075
|
};
|
|
2054
2076
|
function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
|
|
2055
2077
|
var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
|
|
2056
2078
|
return constructCallableReference(function ($this$async, $completion) {
|
|
2057
|
-
return i.
|
|
2079
|
+
return i.l19($this$async, $completion);
|
|
2058
2080
|
}, 1);
|
|
2059
2081
|
}
|
|
2060
2082
|
function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
|
|
2061
|
-
this.
|
|
2062
|
-
this.
|
|
2063
|
-
this.
|
|
2083
|
+
this.v19_1 = $maxParallel;
|
|
2084
|
+
this.w19_1 = $items;
|
|
2085
|
+
this.x19_1 = $action;
|
|
2064
2086
|
CoroutineImpl.call(this, resultContinuation);
|
|
2065
2087
|
}
|
|
2066
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2067
|
-
var tmp = this.
|
|
2088
|
+
protoOf(Flux$forEachParallel$slambda).z19 = function ($this$coroutineScope, $completion) {
|
|
2089
|
+
var tmp = this.m19($this$coroutineScope, $completion);
|
|
2068
2090
|
tmp.l7_1 = Unit_instance;
|
|
2069
2091
|
tmp.m7_1 = null;
|
|
2070
2092
|
return tmp.r7();
|
|
2071
2093
|
};
|
|
2072
2094
|
protoOf(Flux$forEachParallel$slambda).z7 = function (p1, $completion) {
|
|
2073
|
-
return this.
|
|
2095
|
+
return this.z19((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2074
2096
|
};
|
|
2075
2097
|
protoOf(Flux$forEachParallel$slambda).r7 = function () {
|
|
2076
2098
|
var suspendResult = this.l7_1;
|
|
@@ -2080,14 +2102,14 @@
|
|
|
2080
2102
|
switch (tmp) {
|
|
2081
2103
|
case 0:
|
|
2082
2104
|
this.k7_1 = 2;
|
|
2083
|
-
var semaphore = Semaphore(this.
|
|
2105
|
+
var semaphore = Semaphore(this.v19_1);
|
|
2084
2106
|
this.j7_1 = 1;
|
|
2085
|
-
var this_0 = this.
|
|
2107
|
+
var this_0 = this.w19_1;
|
|
2086
2108
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2087
2109
|
var _iterator__ex2g4s = this_0.l();
|
|
2088
2110
|
while (_iterator__ex2g4s.m()) {
|
|
2089
2111
|
var item = _iterator__ex2g4s.n();
|
|
2090
|
-
destination.k(async(this.
|
|
2112
|
+
destination.k(async(this.y19_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.x19_1, item, null)));
|
|
2091
2113
|
}
|
|
2092
2114
|
|
|
2093
2115
|
suspendResult = awaitAll(destination, this);
|
|
@@ -2112,23 +2134,23 @@
|
|
|
2112
2134
|
}
|
|
2113
2135
|
while (true);
|
|
2114
2136
|
};
|
|
2115
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2116
|
-
var i = new Flux$forEachParallel$slambda(this.
|
|
2117
|
-
i.
|
|
2137
|
+
protoOf(Flux$forEachParallel$slambda).m19 = function ($this$coroutineScope, completion) {
|
|
2138
|
+
var i = new Flux$forEachParallel$slambda(this.v19_1, this.w19_1, this.x19_1, completion);
|
|
2139
|
+
i.y19_1 = $this$coroutineScope;
|
|
2118
2140
|
return i;
|
|
2119
2141
|
};
|
|
2120
2142
|
function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
|
|
2121
2143
|
var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
|
|
2122
2144
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
2123
|
-
return i.
|
|
2145
|
+
return i.z19($this$coroutineScope, $completion);
|
|
2124
2146
|
}, 1);
|
|
2125
2147
|
}
|
|
2126
2148
|
function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
|
|
2127
2149
|
CoroutineImpl.call(this, resultContinuation);
|
|
2128
|
-
this.
|
|
2129
|
-
this.
|
|
2130
|
-
this.
|
|
2131
|
-
this.
|
|
2150
|
+
this.i1a_1 = _this__u8e3s4;
|
|
2151
|
+
this.j1a_1 = items;
|
|
2152
|
+
this.k1a_1 = maxParallel;
|
|
2153
|
+
this.l1a_1 = action;
|
|
2132
2154
|
}
|
|
2133
2155
|
protoOf($forEachParallelCOROUTINE$).r7 = function () {
|
|
2134
2156
|
var suspendResult = this.l7_1;
|
|
@@ -2138,13 +2160,13 @@
|
|
|
2138
2160
|
switch (tmp) {
|
|
2139
2161
|
case 0:
|
|
2140
2162
|
this.k7_1 = 2;
|
|
2141
|
-
if (!(this.
|
|
2142
|
-
var message = 'maxParallel must be >= 1, got ' + this.
|
|
2163
|
+
if (!(this.k1a_1 >= 1)) {
|
|
2164
|
+
var message = 'maxParallel must be >= 1, got ' + this.k1a_1;
|
|
2143
2165
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2144
2166
|
}
|
|
2145
2167
|
|
|
2146
2168
|
this.j7_1 = 1;
|
|
2147
|
-
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.
|
|
2169
|
+
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.k1a_1, this.j1a_1, this.l1a_1, null), this);
|
|
2148
2170
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2149
2171
|
return suspendResult;
|
|
2150
2172
|
}
|
|
@@ -2181,6 +2203,21 @@
|
|
|
2181
2203
|
function ignCoverageFiltered(config, fetcher) {
|
|
2182
2204
|
return ignCoverageFiltered$slambda_0(config, fetcher, null);
|
|
2183
2205
|
}
|
|
2206
|
+
function noDataTile(tileSize) {
|
|
2207
|
+
var rgba = new Int8Array(imul(imul(tileSize, tileSize), 4));
|
|
2208
|
+
var progression = step(until(3, rgba.length), 4);
|
|
2209
|
+
var inductionVariable = progression.v_1;
|
|
2210
|
+
var last = progression.w_1;
|
|
2211
|
+
var step_0 = progression.x_1;
|
|
2212
|
+
if (step_0 > 0 && inductionVariable <= last || (step_0 < 0 && last <= inductionVariable))
|
|
2213
|
+
do {
|
|
2214
|
+
var i = inductionVariable;
|
|
2215
|
+
inductionVariable = inductionVariable + step_0 | 0;
|
|
2216
|
+
rgba[i] = -1;
|
|
2217
|
+
}
|
|
2218
|
+
while (!(i === last));
|
|
2219
|
+
return new RawTile(tileSize, tileSize, rgba);
|
|
2220
|
+
}
|
|
2184
2221
|
function latitudeOfRow($this, y, tiles) {
|
|
2185
2222
|
// Inline function 'kotlin.math.sinh' call
|
|
2186
2223
|
var x = 3.141592653589793 - 2.0 * 3.141592653589793 * y / tiles;
|
|
@@ -2300,19 +2337,19 @@
|
|
|
2300
2337
|
IgnLidarHdCoverage_instance = this;
|
|
2301
2338
|
var tmp = this;
|
|
2302
2339
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2303
|
-
tmp.
|
|
2340
|
+
tmp.m1a_1 = new Float64Array([2.4, 51.4, 3.0, 51.15, 3.4, 50.85, 4.3, 50.55, 4.7, 50.35, 5.0, 50.25, 5.2, 49.95, 5.85, 49.62, 6.4, 49.56, 7.4, 49.3, 8.35, 49.1, 8.0, 48.4, 7.75, 47.75, 7.7, 47.6, 6.95, 47.2, 6.55, 46.75, 7.0, 46.45, 7.15, 46.0, 7.05, 45.6, 7.35, 45.3, 7.15, 44.9, 7.15, 44.6, 7.85, 44.2, 7.7, 43.65, 7.7, 43.3, 6.5, 42.9, 4.5, 43.1, 3.4, 42.9, 3.4, 42.35, 2.3, 42.25, 1.3, 42.35, 0.4, 42.55, -0.7, 42.65, -1.4, 42.9, -1.9, 43.2, -2.1, 43.5, -1.7, 44.5, -2.6, 46.6, -3.4, 47.2, -5.3, 47.8, -5.35, 48.65, -4.2, 48.95, -2.4, 49.05, -2.1, 49.8, -0.2, 49.85, 1.2, 50.25, 1.4, 51.05]);
|
|
2304
2341
|
var tmp_0 = this;
|
|
2305
2342
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2306
|
-
tmp_0.
|
|
2307
|
-
this.
|
|
2343
|
+
tmp_0.n1a_1 = new Float64Array([8.4, 43.15, 9.7, 43.15, 9.7, 41.25, 8.4, 41.25]);
|
|
2344
|
+
this.o1a_1 = listOf([this.m1a_1, this.n1a_1]);
|
|
2308
2345
|
}
|
|
2309
|
-
protoOf(IgnLidarHdCoverage).
|
|
2346
|
+
protoOf(IgnLidarHdCoverage).p1a = function (tc) {
|
|
2310
2347
|
var tiles = 1 << tc.a11_1;
|
|
2311
2348
|
var west = tc.y10_1 / tiles * 360.0 - 180.0;
|
|
2312
2349
|
var east = (tc.y10_1 + 1 | 0) / tiles * 360.0 - 180.0;
|
|
2313
2350
|
var north = latitudeOfRow(this, tc.z10_1, tiles);
|
|
2314
2351
|
var south = latitudeOfRow(this, tc.z10_1 + 1 | 0, tiles);
|
|
2315
|
-
var tmp0 = this.
|
|
2352
|
+
var tmp0 = this.o1a_1;
|
|
2316
2353
|
var tmp$ret$0;
|
|
2317
2354
|
$l$block_0: {
|
|
2318
2355
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2344,34 +2381,19 @@
|
|
|
2344
2381
|
new IgnLidarHdCoverage();
|
|
2345
2382
|
return IgnLidarHdCoverage_instance;
|
|
2346
2383
|
}
|
|
2347
|
-
function noDataTile(tileSize) {
|
|
2348
|
-
var rgba = new Int8Array(imul(imul(tileSize, tileSize), 4));
|
|
2349
|
-
var progression = step(until(3, rgba.length), 4);
|
|
2350
|
-
var inductionVariable = progression.v_1;
|
|
2351
|
-
var last = progression.w_1;
|
|
2352
|
-
var step_0 = progression.x_1;
|
|
2353
|
-
if (step_0 > 0 && inductionVariable <= last || (step_0 < 0 && last <= inductionVariable))
|
|
2354
|
-
do {
|
|
2355
|
-
var i = inductionVariable;
|
|
2356
|
-
inductionVariable = inductionVariable + step_0 | 0;
|
|
2357
|
-
rgba[i] = -1;
|
|
2358
|
-
}
|
|
2359
|
-
while (!(i === last));
|
|
2360
|
-
return new RawTile(tileSize, tileSize, rgba);
|
|
2361
|
-
}
|
|
2362
2384
|
function ignCoverageFiltered$slambda($config, $fetcher, resultContinuation) {
|
|
2363
|
-
this.
|
|
2364
|
-
this.
|
|
2385
|
+
this.y1a_1 = $config;
|
|
2386
|
+
this.z1a_1 = $fetcher;
|
|
2365
2387
|
CoroutineImpl.call(this, resultContinuation);
|
|
2366
2388
|
}
|
|
2367
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2368
|
-
var tmp = this.
|
|
2389
|
+
protoOf(ignCoverageFiltered$slambda).j17 = function (url, $completion) {
|
|
2390
|
+
var tmp = this.u17(url, $completion);
|
|
2369
2391
|
tmp.l7_1 = Unit_instance;
|
|
2370
2392
|
tmp.m7_1 = null;
|
|
2371
2393
|
return tmp.r7();
|
|
2372
2394
|
};
|
|
2373
2395
|
protoOf(ignCoverageFiltered$slambda).z7 = function (p1, $completion) {
|
|
2374
|
-
return this.
|
|
2396
|
+
return this.j17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2375
2397
|
};
|
|
2376
2398
|
protoOf(ignCoverageFiltered$slambda).r7 = function () {
|
|
2377
2399
|
var suspendResult = this.l7_1;
|
|
@@ -2381,25 +2403,25 @@
|
|
|
2381
2403
|
switch (tmp) {
|
|
2382
2404
|
case 0:
|
|
2383
2405
|
this.k7_1 = 3;
|
|
2384
|
-
if (IgnLidarHdCoverage_getInstance().
|
|
2406
|
+
if (IgnLidarHdCoverage_getInstance().p1a(tileCoordinatesOf(this.a1b_1, this.y1a_1))) {
|
|
2385
2407
|
this.j7_1 = 1;
|
|
2386
|
-
suspendResult = this.
|
|
2408
|
+
suspendResult = this.z1a_1(this.a1b_1, this);
|
|
2387
2409
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2388
2410
|
return suspendResult;
|
|
2389
2411
|
}
|
|
2390
2412
|
continue $sm;
|
|
2391
2413
|
} else {
|
|
2392
|
-
this.
|
|
2414
|
+
this.b1b_1 = noDataTile(this.y1a_1.w16_1);
|
|
2393
2415
|
this.j7_1 = 2;
|
|
2394
2416
|
continue $sm;
|
|
2395
2417
|
}
|
|
2396
2418
|
|
|
2397
2419
|
case 1:
|
|
2398
|
-
this.
|
|
2420
|
+
this.b1b_1 = suspendResult;
|
|
2399
2421
|
this.j7_1 = 2;
|
|
2400
2422
|
continue $sm;
|
|
2401
2423
|
case 2:
|
|
2402
|
-
return this.
|
|
2424
|
+
return this.b1b_1;
|
|
2403
2425
|
case 3:
|
|
2404
2426
|
throw this.m7_1;
|
|
2405
2427
|
}
|
|
@@ -2414,15 +2436,15 @@
|
|
|
2414
2436
|
}
|
|
2415
2437
|
while (true);
|
|
2416
2438
|
};
|
|
2417
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2418
|
-
var i = new ignCoverageFiltered$slambda(this.
|
|
2419
|
-
i.
|
|
2439
|
+
protoOf(ignCoverageFiltered$slambda).u17 = function (url, completion) {
|
|
2440
|
+
var i = new ignCoverageFiltered$slambda(this.y1a_1, this.z1a_1, completion);
|
|
2441
|
+
i.a1b_1 = url;
|
|
2420
2442
|
return i;
|
|
2421
2443
|
};
|
|
2422
2444
|
function ignCoverageFiltered$slambda_0($config, $fetcher, resultContinuation) {
|
|
2423
2445
|
var i = new ignCoverageFiltered$slambda($config, $fetcher, resultContinuation);
|
|
2424
2446
|
return constructCallableReference(function (url, $completion) {
|
|
2425
|
-
return i.
|
|
2447
|
+
return i.j17(url, $completion);
|
|
2426
2448
|
}, 1);
|
|
2427
2449
|
}
|
|
2428
2450
|
var static_init_called_1;
|
|
@@ -2439,14 +2461,14 @@
|
|
|
2439
2461
|
var IgnLidarHdLayer_MNH_instance;
|
|
2440
2462
|
function IgnLidarHdLayer(name, ordinal, wmsLayer) {
|
|
2441
2463
|
Enum.call(this, name, ordinal);
|
|
2442
|
-
this.
|
|
2464
|
+
this.v18_1 = wmsLayer;
|
|
2443
2465
|
}
|
|
2444
|
-
protoOf(IgnLidarHdLayer).
|
|
2466
|
+
protoOf(IgnLidarHdLayer).s18 = function () {
|
|
2445
2467
|
return 15;
|
|
2446
2468
|
};
|
|
2447
|
-
protoOf(IgnLidarHdLayer).
|
|
2448
|
-
var tmp1_zoomLevel = zoomLevel == null ? this.
|
|
2449
|
-
var tmp3_tileUrlTemplate = ignWmsTemplate(this.
|
|
2469
|
+
protoOf(IgnLidarHdLayer).w18 = function (zoomLevel) {
|
|
2470
|
+
var tmp1_zoomLevel = zoomLevel == null ? this.s18() : zoomLevel;
|
|
2471
|
+
var tmp3_tileUrlTemplate = ignWmsTemplate(this.v18_1, 256);
|
|
2450
2472
|
var tmp4_encoding = TileEncoding_BIL32_getInstance();
|
|
2451
2473
|
var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.x1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
|
|
2452
2474
|
return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
|
|
@@ -2460,7 +2482,7 @@
|
|
|
2460
2482
|
tmp = fetcherFor;
|
|
2461
2483
|
}
|
|
2462
2484
|
fetcherFor = tmp;
|
|
2463
|
-
var config = _this__u8e3s4.
|
|
2485
|
+
var config = _this__u8e3s4.w18(zoomLevel);
|
|
2464
2486
|
return ElevationProvider_init_$Create$_0(config, ignCoverageFiltered(config, fetcherFor(config)), true);
|
|
2465
2487
|
}
|
|
2466
2488
|
function ignWmsTemplate(layer, tileSize) {
|
|
@@ -2475,13 +2497,13 @@
|
|
|
2475
2497
|
return IgnLidarHdLayer_MNS_instance;
|
|
2476
2498
|
}
|
|
2477
2499
|
function Hit(value) {
|
|
2478
|
-
this.
|
|
2500
|
+
this.c1b_1 = value;
|
|
2479
2501
|
}
|
|
2480
2502
|
function Await(deferred) {
|
|
2481
|
-
this.
|
|
2503
|
+
this.d1b_1 = deferred;
|
|
2482
2504
|
}
|
|
2483
2505
|
function Owner(deferred) {
|
|
2484
|
-
this.
|
|
2506
|
+
this.e1b_1 = deferred;
|
|
2485
2507
|
}
|
|
2486
2508
|
function LoadAbandoned() {
|
|
2487
2509
|
Exception_init_$Init$('load abandoned by its cancelled owner', this);
|
|
@@ -2500,18 +2522,18 @@
|
|
|
2500
2522
|
return tmp.r7();
|
|
2501
2523
|
}
|
|
2502
2524
|
function LruCache$load$slambda(this$0, $key, resultContinuation) {
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2525
|
+
this.n1c_1 = this$0;
|
|
2526
|
+
this.o1c_1 = $key;
|
|
2505
2527
|
CoroutineImpl.call(this, resultContinuation);
|
|
2506
2528
|
}
|
|
2507
|
-
protoOf(LruCache$load$slambda).
|
|
2508
|
-
var tmp = this.
|
|
2529
|
+
protoOf(LruCache$load$slambda).s1c = function ($this$withContext, $completion) {
|
|
2530
|
+
var tmp = this.m19($this$withContext, $completion);
|
|
2509
2531
|
tmp.l7_1 = Unit_instance;
|
|
2510
2532
|
tmp.m7_1 = null;
|
|
2511
2533
|
return tmp.r7();
|
|
2512
2534
|
};
|
|
2513
2535
|
protoOf(LruCache$load$slambda).z7 = function (p1, $completion) {
|
|
2514
|
-
return this.
|
|
2536
|
+
return this.s1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2515
2537
|
};
|
|
2516
2538
|
protoOf(LruCache$load$slambda).r7 = function () {
|
|
2517
2539
|
var suspendResult = this.l7_1;
|
|
@@ -2521,10 +2543,10 @@
|
|
|
2521
2543
|
switch (tmp) {
|
|
2522
2544
|
case 0:
|
|
2523
2545
|
this.k7_1 = 2;
|
|
2524
|
-
this.
|
|
2525
|
-
this.
|
|
2546
|
+
this.r1c_1 = this.n1c_1.w1c_1;
|
|
2547
|
+
this.q1c_1 = null;
|
|
2526
2548
|
this.j7_1 = 1;
|
|
2527
|
-
suspendResult = this.
|
|
2549
|
+
suspendResult = this.r1c_1.qw(this.q1c_1, this);
|
|
2528
2550
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2529
2551
|
return suspendResult;
|
|
2530
2552
|
}
|
|
@@ -2535,18 +2557,18 @@
|
|
|
2535
2557
|
l$ret$1: do {
|
|
2536
2558
|
var tmp_0;
|
|
2537
2559
|
try {
|
|
2538
|
-
tmp$ret$0 = this.
|
|
2560
|
+
tmp$ret$0 = this.n1c_1.y1c_1.w3(this.o1c_1);
|
|
2539
2561
|
break l$ret$1;
|
|
2540
2562
|
} catch ($p) {
|
|
2541
2563
|
var tmp_1;
|
|
2542
2564
|
var t = $p;
|
|
2543
|
-
this.
|
|
2565
|
+
this.r1c_1.bw(this.q1c_1);
|
|
2544
2566
|
throw t;
|
|
2545
2567
|
}
|
|
2546
2568
|
}
|
|
2547
2569
|
while (false);
|
|
2548
2570
|
var tmp_2 = tmp$ret$0;
|
|
2549
|
-
this.
|
|
2571
|
+
this.r1c_1.bw(this.q1c_1);
|
|
2550
2572
|
return tmp_2;
|
|
2551
2573
|
case 2:
|
|
2552
2574
|
throw this.m7_1;
|
|
@@ -2562,31 +2584,31 @@
|
|
|
2562
2584
|
}
|
|
2563
2585
|
while (true);
|
|
2564
2586
|
};
|
|
2565
|
-
protoOf(LruCache$load$slambda).
|
|
2566
|
-
var i = new LruCache$load$slambda(this.
|
|
2567
|
-
i.
|
|
2587
|
+
protoOf(LruCache$load$slambda).m19 = function ($this$withContext, completion) {
|
|
2588
|
+
var i = new LruCache$load$slambda(this.n1c_1, this.o1c_1, completion);
|
|
2589
|
+
i.p1c_1 = $this$withContext;
|
|
2568
2590
|
return i;
|
|
2569
2591
|
};
|
|
2570
2592
|
function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
|
|
2571
2593
|
var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
|
|
2572
2594
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2573
|
-
return i.
|
|
2595
|
+
return i.s1c($this$withContext, $completion);
|
|
2574
2596
|
}, 1);
|
|
2575
2597
|
}
|
|
2576
2598
|
function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
|
|
2577
|
-
this.
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2599
|
+
this.h1d_1 = this$0;
|
|
2600
|
+
this.i1d_1 = $key;
|
|
2601
|
+
this.j1d_1 = $value;
|
|
2580
2602
|
CoroutineImpl.call(this, resultContinuation);
|
|
2581
2603
|
}
|
|
2582
|
-
protoOf(LruCache$load$slambda_1).
|
|
2583
|
-
var tmp = this.
|
|
2604
|
+
protoOf(LruCache$load$slambda_1).n1d = function ($this$withContext, $completion) {
|
|
2605
|
+
var tmp = this.m19($this$withContext, $completion);
|
|
2584
2606
|
tmp.l7_1 = Unit_instance;
|
|
2585
2607
|
tmp.m7_1 = null;
|
|
2586
2608
|
return tmp.r7();
|
|
2587
2609
|
};
|
|
2588
2610
|
protoOf(LruCache$load$slambda_1).z7 = function (p1, $completion) {
|
|
2589
|
-
return this.
|
|
2611
|
+
return this.n1d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2590
2612
|
};
|
|
2591
2613
|
protoOf(LruCache$load$slambda_1).r7 = function () {
|
|
2592
2614
|
var suspendResult = this.l7_1;
|
|
@@ -2596,10 +2618,10 @@
|
|
|
2596
2618
|
switch (tmp) {
|
|
2597
2619
|
case 0:
|
|
2598
2620
|
this.k7_1 = 2;
|
|
2599
|
-
this.
|
|
2600
|
-
this.
|
|
2621
|
+
this.m1d_1 = this.h1d_1.w1c_1;
|
|
2622
|
+
this.l1d_1 = null;
|
|
2601
2623
|
this.j7_1 = 1;
|
|
2602
|
-
suspendResult = this.
|
|
2624
|
+
suspendResult = this.m1d_1.qw(this.l1d_1, this);
|
|
2603
2625
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2604
2626
|
return suspendResult;
|
|
2605
2627
|
}
|
|
@@ -2610,37 +2632,37 @@
|
|
|
2610
2632
|
l$ret$1: do {
|
|
2611
2633
|
var tmp_0;
|
|
2612
2634
|
try {
|
|
2613
|
-
this.
|
|
2635
|
+
this.h1d_1.y1c_1.w3(this.i1d_1);
|
|
2614
2636
|
var oldest = null;
|
|
2615
2637
|
var tmp_1;
|
|
2616
|
-
if (this.
|
|
2617
|
-
var tmp0 = this.
|
|
2618
|
-
var key = this.
|
|
2638
|
+
if (this.h1d_1.x1c_1.o() >= this.h1d_1.t1c_1) {
|
|
2639
|
+
var tmp0 = this.h1d_1.x1c_1;
|
|
2640
|
+
var key = this.i1d_1;
|
|
2619
2641
|
tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).r1(key);
|
|
2620
2642
|
} else {
|
|
2621
2643
|
tmp_1 = false;
|
|
2622
2644
|
}
|
|
2623
2645
|
if (tmp_1) {
|
|
2624
|
-
var iter = this.
|
|
2646
|
+
var iter = this.h1d_1.x1c_1.w1().l();
|
|
2625
2647
|
oldest = iter.n().q1();
|
|
2626
2648
|
iter.v2();
|
|
2627
2649
|
}
|
|
2628
|
-
var tmp0_0 = this.
|
|
2629
|
-
var tmp2 = this.
|
|
2630
|
-
var value = this.
|
|
2650
|
+
var tmp0_0 = this.h1d_1.x1c_1;
|
|
2651
|
+
var tmp2 = this.i1d_1;
|
|
2652
|
+
var value = this.j1d_1;
|
|
2631
2653
|
tmp0_0.v3(tmp2, value);
|
|
2632
2654
|
tmp$ret$0 = oldest;
|
|
2633
2655
|
break l$ret$1;
|
|
2634
2656
|
} catch ($p) {
|
|
2635
2657
|
var tmp_2;
|
|
2636
2658
|
var t = $p;
|
|
2637
|
-
this.
|
|
2659
|
+
this.m1d_1.bw(this.l1d_1);
|
|
2638
2660
|
throw t;
|
|
2639
2661
|
}
|
|
2640
2662
|
}
|
|
2641
2663
|
while (false);
|
|
2642
2664
|
var tmp_3 = tmp$ret$0;
|
|
2643
|
-
this.
|
|
2665
|
+
this.m1d_1.bw(this.l1d_1);
|
|
2644
2666
|
return tmp_3;
|
|
2645
2667
|
case 2:
|
|
2646
2668
|
throw this.m7_1;
|
|
@@ -2656,21 +2678,21 @@
|
|
|
2656
2678
|
}
|
|
2657
2679
|
while (true);
|
|
2658
2680
|
};
|
|
2659
|
-
protoOf(LruCache$load$slambda_1).
|
|
2660
|
-
var i = new LruCache$load$slambda_1(this.
|
|
2661
|
-
i.
|
|
2681
|
+
protoOf(LruCache$load$slambda_1).m19 = function ($this$withContext, completion) {
|
|
2682
|
+
var i = new LruCache$load$slambda_1(this.h1d_1, this.i1d_1, this.j1d_1, completion);
|
|
2683
|
+
i.k1d_1 = $this$withContext;
|
|
2662
2684
|
return i;
|
|
2663
2685
|
};
|
|
2664
2686
|
function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
|
|
2665
2687
|
var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
|
|
2666
2688
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2667
|
-
return i.
|
|
2689
|
+
return i.n1d($this$withContext, $completion);
|
|
2668
2690
|
}, 1);
|
|
2669
2691
|
}
|
|
2670
2692
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2671
2693
|
CoroutineImpl.call(this, resultContinuation);
|
|
2672
|
-
this.
|
|
2673
|
-
this.
|
|
2694
|
+
this.w1d_1 = _this__u8e3s4;
|
|
2695
|
+
this.x1d_1 = key;
|
|
2674
2696
|
}
|
|
2675
2697
|
protoOf($getCOROUTINE$).r7 = function () {
|
|
2676
2698
|
var suspendResult = this.l7_1;
|
|
@@ -2689,7 +2711,7 @@
|
|
|
2689
2711
|
}
|
|
2690
2712
|
|
|
2691
2713
|
this.j7_1 = 2;
|
|
2692
|
-
suspendResult = lookupOrClaim(this.
|
|
2714
|
+
suspendResult = lookupOrClaim(this.w1d_1, this.x1d_1, this);
|
|
2693
2715
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2694
2716
|
return suspendResult;
|
|
2695
2717
|
}
|
|
@@ -2698,11 +2720,11 @@
|
|
|
2698
2720
|
case 2:
|
|
2699
2721
|
var lookup = suspendResult;
|
|
2700
2722
|
if (lookup instanceof Hit) {
|
|
2701
|
-
return lookup.
|
|
2723
|
+
return lookup.c1b_1;
|
|
2702
2724
|
} else {
|
|
2703
2725
|
if (lookup instanceof Owner) {
|
|
2704
2726
|
this.j7_1 = 7;
|
|
2705
|
-
suspendResult = load(this.
|
|
2727
|
+
suspendResult = load(this.w1d_1, this.x1d_1, lookup.e1b_1, this);
|
|
2706
2728
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2707
2729
|
return suspendResult;
|
|
2708
2730
|
}
|
|
@@ -2711,7 +2733,7 @@
|
|
|
2711
2733
|
if (lookup instanceof Await) {
|
|
2712
2734
|
this.k7_1 = 4;
|
|
2713
2735
|
this.j7_1 = 3;
|
|
2714
|
-
suspendResult = lookup.
|
|
2736
|
+
suspendResult = lookup.d1b_1.fo(this);
|
|
2715
2737
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2716
2738
|
return suspendResult;
|
|
2717
2739
|
}
|
|
@@ -2763,8 +2785,8 @@
|
|
|
2763
2785
|
};
|
|
2764
2786
|
function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2765
2787
|
CoroutineImpl.call(this, resultContinuation);
|
|
2766
|
-
this.
|
|
2767
|
-
this.
|
|
2788
|
+
this.n1b_1 = _this__u8e3s4;
|
|
2789
|
+
this.o1b_1 = key;
|
|
2768
2790
|
}
|
|
2769
2791
|
protoOf($lookupOrClaimCOROUTINE$).r7 = function () {
|
|
2770
2792
|
var suspendResult = this.l7_1;
|
|
@@ -2774,10 +2796,10 @@
|
|
|
2774
2796
|
switch (tmp) {
|
|
2775
2797
|
case 0:
|
|
2776
2798
|
this.k7_1 = 2;
|
|
2777
|
-
this.
|
|
2778
|
-
this.
|
|
2799
|
+
this.q1b_1 = this.n1b_1.w1c_1;
|
|
2800
|
+
this.p1b_1 = null;
|
|
2779
2801
|
this.j7_1 = 1;
|
|
2780
|
-
suspendResult = this.
|
|
2802
|
+
suspendResult = this.q1b_1.qw(this.p1b_1, this);
|
|
2781
2803
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2782
2804
|
return suspendResult;
|
|
2783
2805
|
}
|
|
@@ -2790,22 +2812,22 @@
|
|
|
2790
2812
|
try {
|
|
2791
2813
|
var tmp$ret$0 = Unit_instance;
|
|
2792
2814
|
l$ret$1: do {
|
|
2793
|
-
var hit = this.
|
|
2815
|
+
var hit = this.n1b_1.x1c_1.w3(this.o1b_1);
|
|
2794
2816
|
if (!(hit == null)) {
|
|
2795
|
-
var tmp0 = this.
|
|
2796
|
-
var key = this.
|
|
2817
|
+
var tmp0 = this.n1b_1.x1c_1;
|
|
2818
|
+
var key = this.o1b_1;
|
|
2797
2819
|
tmp0.v3(key, hit);
|
|
2798
2820
|
tmp$ret$0 = new Hit(hit);
|
|
2799
2821
|
break l$ret$1;
|
|
2800
2822
|
}
|
|
2801
|
-
var raced = this.
|
|
2823
|
+
var raced = this.n1b_1.y1c_1.t1(this.o1b_1);
|
|
2802
2824
|
var tmp_1;
|
|
2803
2825
|
if (!(raced == null)) {
|
|
2804
2826
|
tmp_1 = new Await(raced);
|
|
2805
2827
|
} else {
|
|
2806
2828
|
var ours = CompletableDeferred();
|
|
2807
|
-
var tmp0_0 = this.
|
|
2808
|
-
var key_0 = this.
|
|
2829
|
+
var tmp0_0 = this.n1b_1.y1c_1;
|
|
2830
|
+
var key_0 = this.o1b_1;
|
|
2809
2831
|
tmp0_0.v3(key_0, ours);
|
|
2810
2832
|
tmp_1 = new Owner(ours);
|
|
2811
2833
|
}
|
|
@@ -2817,13 +2839,13 @@
|
|
|
2817
2839
|
} catch ($p) {
|
|
2818
2840
|
var tmp_2;
|
|
2819
2841
|
var t = $p;
|
|
2820
|
-
this.
|
|
2842
|
+
this.q1b_1.bw(this.p1b_1);
|
|
2821
2843
|
throw t;
|
|
2822
2844
|
}
|
|
2823
2845
|
}
|
|
2824
2846
|
while (false);
|
|
2825
2847
|
var tmp_3 = tmp$ret$2;
|
|
2826
|
-
this.
|
|
2848
|
+
this.q1b_1.bw(this.p1b_1);
|
|
2827
2849
|
return tmp_3;
|
|
2828
2850
|
case 2:
|
|
2829
2851
|
throw this.m7_1;
|
|
@@ -2841,9 +2863,9 @@
|
|
|
2841
2863
|
};
|
|
2842
2864
|
function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
|
|
2843
2865
|
CoroutineImpl.call(this, resultContinuation);
|
|
2844
|
-
this.
|
|
2845
|
-
this.
|
|
2846
|
-
this.
|
|
2866
|
+
this.z1b_1 = _this__u8e3s4;
|
|
2867
|
+
this.a1c_1 = key;
|
|
2868
|
+
this.b1c_1 = ours;
|
|
2847
2869
|
}
|
|
2848
2870
|
protoOf($loadCOROUTINE$).r7 = function () {
|
|
2849
2871
|
var suspendResult = this.l7_1;
|
|
@@ -2855,14 +2877,14 @@
|
|
|
2855
2877
|
this.k7_1 = 6;
|
|
2856
2878
|
this.k7_1 = 2;
|
|
2857
2879
|
this.j7_1 = 1;
|
|
2858
|
-
suspendResult = this.
|
|
2880
|
+
suspendResult = this.z1b_1.u1c_1(this.a1c_1, this);
|
|
2859
2881
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2860
2882
|
return suspendResult;
|
|
2861
2883
|
}
|
|
2862
2884
|
|
|
2863
2885
|
continue $sm;
|
|
2864
2886
|
case 1:
|
|
2865
|
-
this.
|
|
2887
|
+
this.d1c_1 = suspendResult;
|
|
2866
2888
|
this.k7_1 = 6;
|
|
2867
2889
|
this.j7_1 = 4;
|
|
2868
2890
|
continue $sm;
|
|
@@ -2870,10 +2892,10 @@
|
|
|
2870
2892
|
this.k7_1 = 6;
|
|
2871
2893
|
var tmp_0 = this.m7_1;
|
|
2872
2894
|
if (tmp_0 instanceof Error) {
|
|
2873
|
-
this.
|
|
2895
|
+
this.e1c_1 = this.m7_1;
|
|
2874
2896
|
this.j7_1 = 3;
|
|
2875
2897
|
var tmp_1 = NonCancellable_getInstance();
|
|
2876
|
-
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.
|
|
2898
|
+
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.z1b_1, this.a1c_1, null), this);
|
|
2877
2899
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2878
2900
|
return suspendResult;
|
|
2879
2901
|
}
|
|
@@ -2884,22 +2906,22 @@
|
|
|
2884
2906
|
|
|
2885
2907
|
case 3:
|
|
2886
2908
|
var tmp_2;
|
|
2887
|
-
var tmp_3 = this.
|
|
2909
|
+
var tmp_3 = this.e1c_1;
|
|
2888
2910
|
if (tmp_3 instanceof CancellationException) {
|
|
2889
2911
|
tmp_2 = new LoadAbandoned();
|
|
2890
2912
|
} else {
|
|
2891
|
-
tmp_2 = this.
|
|
2913
|
+
tmp_2 = this.e1c_1;
|
|
2892
2914
|
}
|
|
2893
2915
|
|
|
2894
|
-
this.
|
|
2916
|
+
this.b1c_1.jr(tmp_2);
|
|
2895
2917
|
var tmp_4 = this;
|
|
2896
|
-
throw this.
|
|
2918
|
+
throw this.e1c_1;
|
|
2897
2919
|
case 4:
|
|
2898
2920
|
this.k7_1 = 6;
|
|
2899
|
-
this.
|
|
2921
|
+
this.c1c_1 = this.d1c_1;
|
|
2900
2922
|
this.j7_1 = 5;
|
|
2901
2923
|
var tmp_5 = NonCancellable_getInstance();
|
|
2902
|
-
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.
|
|
2924
|
+
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.z1b_1, this.a1c_1, this.c1c_1, null), this);
|
|
2903
2925
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2904
2926
|
return suspendResult;
|
|
2905
2927
|
}
|
|
@@ -2907,16 +2929,16 @@
|
|
|
2907
2929
|
continue $sm;
|
|
2908
2930
|
case 5:
|
|
2909
2931
|
var evicted = suspendResult;
|
|
2910
|
-
this.
|
|
2932
|
+
this.b1c_1.ir(this.c1c_1);
|
|
2911
2933
|
if (!(evicted == null)) {
|
|
2912
|
-
var tmp0_safe_receiver = this.
|
|
2934
|
+
var tmp0_safe_receiver = this.z1b_1.v1c_1;
|
|
2913
2935
|
if (tmp0_safe_receiver == null)
|
|
2914
2936
|
null;
|
|
2915
2937
|
else
|
|
2916
2938
|
tmp0_safe_receiver(evicted);
|
|
2917
2939
|
}
|
|
2918
2940
|
|
|
2919
|
-
return this.
|
|
2941
|
+
return this.c1c_1;
|
|
2920
2942
|
case 6:
|
|
2921
2943
|
throw this.m7_1;
|
|
2922
2944
|
}
|
|
@@ -2933,33 +2955,33 @@
|
|
|
2933
2955
|
};
|
|
2934
2956
|
function LruCache(maxSize, loader, onEvict) {
|
|
2935
2957
|
onEvict = onEvict === VOID ? null : onEvict;
|
|
2936
|
-
this.
|
|
2937
|
-
this.
|
|
2938
|
-
this.
|
|
2958
|
+
this.t1c_1 = maxSize;
|
|
2959
|
+
this.u1c_1 = loader;
|
|
2960
|
+
this.v1c_1 = onEvict;
|
|
2939
2961
|
// Inline function 'kotlin.require' call
|
|
2940
|
-
if (!(this.
|
|
2962
|
+
if (!(this.t1c_1 > 0)) {
|
|
2941
2963
|
var message = 'Cache size must be greater than 0';
|
|
2942
2964
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2943
2965
|
}
|
|
2944
|
-
this.
|
|
2945
|
-
this.
|
|
2966
|
+
this.w1c_1 = Mutex();
|
|
2967
|
+
this.x1c_1 = LinkedHashMap_init_$Create$();
|
|
2946
2968
|
var tmp = this;
|
|
2947
2969
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2948
|
-
tmp.
|
|
2970
|
+
tmp.y1c_1 = LinkedHashMap_init_$Create$();
|
|
2949
2971
|
}
|
|
2950
|
-
protoOf(LruCache).
|
|
2972
|
+
protoOf(LruCache).y1d = function (key, $completion) {
|
|
2951
2973
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
2952
2974
|
tmp.l7_1 = Unit_instance;
|
|
2953
2975
|
tmp.m7_1 = null;
|
|
2954
2976
|
return tmp.r7();
|
|
2955
2977
|
};
|
|
2956
2978
|
function RawTile(width, height, rgba) {
|
|
2957
|
-
this.
|
|
2958
|
-
this.
|
|
2959
|
-
this.
|
|
2979
|
+
this.z1d_1 = width;
|
|
2980
|
+
this.a1e_1 = height;
|
|
2981
|
+
this.b1e_1 = rgba;
|
|
2960
2982
|
// Inline function 'kotlin.require' call
|
|
2961
|
-
if (!(this.
|
|
2962
|
-
var message = 'rgba size ' + this.
|
|
2983
|
+
if (!(this.b1e_1.length === imul(imul(this.z1d_1, this.a1e_1), 4))) {
|
|
2984
|
+
var message = 'rgba size ' + this.b1e_1.length + ' does not match width*height*4 (' + imul(imul(this.z1d_1, this.a1e_1), 4) + ')';
|
|
2963
2985
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2964
2986
|
}
|
|
2965
2987
|
}
|
|
@@ -2968,16 +2990,16 @@
|
|
|
2968
2990
|
return true;
|
|
2969
2991
|
if (!(other instanceof RawTile))
|
|
2970
2992
|
return false;
|
|
2971
|
-
return this.
|
|
2993
|
+
return this.z1d_1 === other.z1d_1 && this.a1e_1 === other.a1e_1 && contentEquals(this.b1e_1, other.b1e_1);
|
|
2972
2994
|
};
|
|
2973
2995
|
protoOf(RawTile).hashCode = function () {
|
|
2974
|
-
var result = this.
|
|
2975
|
-
result = imul(31, result) + this.
|
|
2976
|
-
result = imul(31, result) + contentHashCode(this.
|
|
2996
|
+
var result = this.z1d_1;
|
|
2997
|
+
result = imul(31, result) + this.a1e_1 | 0;
|
|
2998
|
+
result = imul(31, result) + contentHashCode(this.b1e_1) | 0;
|
|
2977
2999
|
return result;
|
|
2978
3000
|
};
|
|
2979
3001
|
function Tile_init_$Init$(raw, $this) {
|
|
2980
|
-
Tile.call($this, raw.
|
|
3002
|
+
Tile.call($this, raw.z1d_1, raw.a1e_1, raw.b1e_1);
|
|
2981
3003
|
return $this;
|
|
2982
3004
|
}
|
|
2983
3005
|
function Tile_init_$Create$(raw) {
|
|
@@ -2985,7 +3007,7 @@
|
|
|
2985
3007
|
}
|
|
2986
3008
|
function Companion_0() {
|
|
2987
3009
|
}
|
|
2988
|
-
protoOf(Companion_0).
|
|
3010
|
+
protoOf(Companion_0).c1e = function (r, g, b) {
|
|
2989
3011
|
var raw = r * 256.0 + g + b / 256.0 - 32768.0;
|
|
2990
3012
|
return round(raw * 100.0) / 100.0;
|
|
2991
3013
|
};
|
|
@@ -2994,48 +3016,398 @@
|
|
|
2994
3016
|
return Companion_instance_1;
|
|
2995
3017
|
}
|
|
2996
3018
|
function Tile(width, height, rgba) {
|
|
2997
|
-
this.
|
|
2998
|
-
this.
|
|
2999
|
-
this.
|
|
3019
|
+
this.w14_1 = width;
|
|
3020
|
+
this.x14_1 = height;
|
|
3021
|
+
this.y14_1 = rgba;
|
|
3000
3022
|
var tmp = this;
|
|
3001
3023
|
var tmp_0 = 0;
|
|
3002
|
-
var tmp_1 = imul(this.
|
|
3024
|
+
var tmp_1 = imul(this.w14_1, this.x14_1);
|
|
3003
3025
|
var tmp_2 = new Float64Array(tmp_1);
|
|
3004
3026
|
while (tmp_0 < tmp_1) {
|
|
3005
3027
|
tmp_2[tmp_0] = NaN;
|
|
3006
3028
|
tmp_0 = tmp_0 + 1 | 0;
|
|
3007
3029
|
}
|
|
3008
|
-
tmp.
|
|
3009
|
-
this.
|
|
3030
|
+
tmp.z14_1 = tmp_2;
|
|
3031
|
+
this.a15_1 = 0;
|
|
3010
3032
|
}
|
|
3011
|
-
protoOf(Tile).
|
|
3012
|
-
var containsUpper = this.
|
|
3033
|
+
protoOf(Tile).b15 = function (pixel) {
|
|
3034
|
+
var containsUpper = this.w14_1;
|
|
3013
3035
|
var containsArg = pixel.p14_1;
|
|
3014
3036
|
// Inline function 'kotlin.require' call
|
|
3015
3037
|
if (!(0 <= containsArg ? containsArg < containsUpper : false)) {
|
|
3016
|
-
var message = 'Invalid x position: ' + pixel.p14_1 + '. Must be between 0 and ' + (this.
|
|
3038
|
+
var message = 'Invalid x position: ' + pixel.p14_1 + '. Must be between 0 and ' + (this.w14_1 - 1 | 0);
|
|
3017
3039
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3018
3040
|
}
|
|
3019
|
-
var containsUpper_0 = this.
|
|
3041
|
+
var containsUpper_0 = this.x14_1;
|
|
3020
3042
|
var containsArg_0 = pixel.q14_1;
|
|
3021
3043
|
// Inline function 'kotlin.require' call
|
|
3022
3044
|
if (!(0 <= containsArg_0 ? containsArg_0 < containsUpper_0 : false)) {
|
|
3023
|
-
var message_0 = 'Invalid y position: ' + pixel.q14_1 + '. Must be between 0 and ' + (this.
|
|
3045
|
+
var message_0 = 'Invalid y position: ' + pixel.q14_1 + '. Must be between 0 and ' + (this.x14_1 - 1 | 0);
|
|
3024
3046
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3025
3047
|
}
|
|
3026
|
-
var idx = imul(pixel.q14_1, this.
|
|
3027
|
-
var cached = this.
|
|
3048
|
+
var idx = imul(pixel.q14_1, this.w14_1) + pixel.p14_1 | 0;
|
|
3049
|
+
var cached = this.z14_1[idx];
|
|
3028
3050
|
if (!isNaN_0(cached))
|
|
3029
3051
|
return cached;
|
|
3030
3052
|
var byteOffset = imul(idx, 4);
|
|
3031
|
-
var r = this.
|
|
3032
|
-
var g = this.
|
|
3033
|
-
var b = this.
|
|
3034
|
-
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_1.
|
|
3035
|
-
this.
|
|
3036
|
-
this.
|
|
3053
|
+
var r = this.y14_1[byteOffset] & 255;
|
|
3054
|
+
var g = this.y14_1[byteOffset + 1 | 0] & 255;
|
|
3055
|
+
var b = this.y14_1[byteOffset + 2 | 0] & 255;
|
|
3056
|
+
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_1.c1e(r, g, b);
|
|
3057
|
+
this.z14_1[idx] = elevation;
|
|
3058
|
+
this.a15_1 = this.a15_1 + 1 | 0;
|
|
3037
3059
|
return elevation;
|
|
3038
3060
|
};
|
|
3061
|
+
function UnreadableTiles$Companion$monotonicClock$lambda($origin) {
|
|
3062
|
+
return function () {
|
|
3063
|
+
return _Duration___get_inWholeMilliseconds__impl__msfiry(ValueTimeMark__elapsedNow_impl_eonqvs($origin));
|
|
3064
|
+
};
|
|
3065
|
+
}
|
|
3066
|
+
function Entry(failure, untilMs) {
|
|
3067
|
+
this.d1e_1 = failure;
|
|
3068
|
+
this.e1e_1 = untilMs;
|
|
3069
|
+
}
|
|
3070
|
+
function _get_empty__hz710c($this) {
|
|
3071
|
+
var tmp0 = $this.l1e_1;
|
|
3072
|
+
var tmp = KProperty1;
|
|
3073
|
+
// Inline function 'kotlin.getValue' call
|
|
3074
|
+
getPropertyCallableRef('empty', 1, tmp, UnreadableTiles$_get_empty_$ref_9kivqt(), null);
|
|
3075
|
+
return tmp0.q1();
|
|
3076
|
+
}
|
|
3077
|
+
function Companion_1() {
|
|
3078
|
+
Companion_instance_2 = this;
|
|
3079
|
+
this.m1e_1 = new Long(60000, 0);
|
|
3080
|
+
var tmp = this;
|
|
3081
|
+
// Inline function 'kotlin.let' call
|
|
3082
|
+
var origin = Monotonic_instance.wb();
|
|
3083
|
+
tmp.n1e_1 = UnreadableTiles$Companion$monotonicClock$lambda(origin);
|
|
3084
|
+
}
|
|
3085
|
+
var Companion_instance_2;
|
|
3086
|
+
function Companion_getInstance_2() {
|
|
3087
|
+
if (Companion_instance_2 == null)
|
|
3088
|
+
new Companion_1();
|
|
3089
|
+
return Companion_instance_2;
|
|
3090
|
+
}
|
|
3091
|
+
function UnreadableTiles$empty$delegate$lambda(this$0) {
|
|
3092
|
+
return function () {
|
|
3093
|
+
return Tile_init_$Create$(noDataTile(this$0.g1e_1));
|
|
3094
|
+
};
|
|
3095
|
+
}
|
|
3096
|
+
function UnreadableTiles$_get_empty_$ref_9kivqt() {
|
|
3097
|
+
return constructCallableReference(function (p0) {
|
|
3098
|
+
return _get_empty__hz710c(p0);
|
|
3099
|
+
}, 1, 0, 4);
|
|
3100
|
+
}
|
|
3101
|
+
function $cachedCOROUTINE$(_this__u8e3s4, tc, resultContinuation) {
|
|
3102
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
3103
|
+
this.w1e_1 = _this__u8e3s4;
|
|
3104
|
+
this.x1e_1 = tc;
|
|
3105
|
+
}
|
|
3106
|
+
protoOf($cachedCOROUTINE$).r7 = function () {
|
|
3107
|
+
var suspendResult = this.l7_1;
|
|
3108
|
+
$sm: do
|
|
3109
|
+
try {
|
|
3110
|
+
var tmp = this.j7_1;
|
|
3111
|
+
switch (tmp) {
|
|
3112
|
+
case 0:
|
|
3113
|
+
this.k7_1 = 4;
|
|
3114
|
+
this.a1f_1 = this.w1e_1.j1e_1;
|
|
3115
|
+
this.z1e_1 = null;
|
|
3116
|
+
this.j7_1 = 1;
|
|
3117
|
+
suspendResult = this.a1f_1.qw(this.z1e_1, this);
|
|
3118
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3119
|
+
return suspendResult;
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
continue $sm;
|
|
3123
|
+
case 1:
|
|
3124
|
+
var tmp$ret$2 = Unit_instance;
|
|
3125
|
+
l$ret$3: do {
|
|
3126
|
+
var tmp$ret$0;
|
|
3127
|
+
l$ret$1: do {
|
|
3128
|
+
var tmp_0;
|
|
3129
|
+
try {
|
|
3130
|
+
var tmp0_elvis_lhs = this.w1e_1.k1e_1.t1(this.x1e_1);
|
|
3131
|
+
var tmp_1;
|
|
3132
|
+
if (tmp0_elvis_lhs == null) {
|
|
3133
|
+
tmp$ret$0 = null;
|
|
3134
|
+
break l$ret$1;
|
|
3135
|
+
} else {
|
|
3136
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
3137
|
+
}
|
|
3138
|
+
var e = tmp_1;
|
|
3139
|
+
if (compare(this.w1e_1.i1e_1(), e.e1e_1) >= 0) {
|
|
3140
|
+
this.w1e_1.k1e_1.w3(this.x1e_1);
|
|
3141
|
+
tmp$ret$0 = null;
|
|
3142
|
+
break l$ret$1;
|
|
3143
|
+
}
|
|
3144
|
+
tmp$ret$2 = e;
|
|
3145
|
+
break l$ret$3;
|
|
3146
|
+
} catch ($p) {
|
|
3147
|
+
var tmp_2;
|
|
3148
|
+
var t = $p;
|
|
3149
|
+
this.a1f_1.bw(this.z1e_1);
|
|
3150
|
+
throw t;
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3153
|
+
while (false);
|
|
3154
|
+
var tmp_3 = tmp$ret$0;
|
|
3155
|
+
this.a1f_1.bw(this.z1e_1);
|
|
3156
|
+
return tmp_3;
|
|
3157
|
+
}
|
|
3158
|
+
while (false);
|
|
3159
|
+
var tmp_4 = tmp$ret$2;
|
|
3160
|
+
this.a1f_1.bw(this.z1e_1);
|
|
3161
|
+
var entry = tmp_4;
|
|
3162
|
+
var tmp0_safe_receiver = this.p7().w7(Key_instance);
|
|
3163
|
+
if (tmp0_safe_receiver == null) {
|
|
3164
|
+
this.y1e_1 = null;
|
|
3165
|
+
this.j7_1 = 3;
|
|
3166
|
+
continue $sm;
|
|
3167
|
+
} else {
|
|
3168
|
+
this.j7_1 = 2;
|
|
3169
|
+
suspendResult = tmp0_safe_receiver.e1f(entry.d1e_1, this);
|
|
3170
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3171
|
+
return suspendResult;
|
|
3172
|
+
}
|
|
3173
|
+
continue $sm;
|
|
3174
|
+
}
|
|
3175
|
+
|
|
3176
|
+
case 2:
|
|
3177
|
+
var tmp_5 = this;
|
|
3178
|
+
tmp_5.y1e_1 = Unit_instance;
|
|
3179
|
+
this.j7_1 = 3;
|
|
3180
|
+
continue $sm;
|
|
3181
|
+
case 3:
|
|
3182
|
+
return _get_empty__hz710c(this.w1e_1);
|
|
3183
|
+
case 4:
|
|
3184
|
+
throw this.m7_1;
|
|
3185
|
+
}
|
|
3186
|
+
} catch ($p_0) {
|
|
3187
|
+
var e_0 = $p_0;
|
|
3188
|
+
if (this.k7_1 === 4) {
|
|
3189
|
+
throw e_0;
|
|
3190
|
+
} else {
|
|
3191
|
+
this.j7_1 = this.k7_1;
|
|
3192
|
+
this.m7_1 = e_0;
|
|
3193
|
+
}
|
|
3194
|
+
}
|
|
3195
|
+
while (true);
|
|
3196
|
+
};
|
|
3197
|
+
function $rememberCOROUTINE$(_this__u8e3s4, tc, error, resultContinuation) {
|
|
3198
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
3199
|
+
this.n1f_1 = _this__u8e3s4;
|
|
3200
|
+
this.o1f_1 = tc;
|
|
3201
|
+
this.p1f_1 = error;
|
|
3202
|
+
}
|
|
3203
|
+
protoOf($rememberCOROUTINE$).r7 = function () {
|
|
3204
|
+
var suspendResult = this.l7_1;
|
|
3205
|
+
$sm: do
|
|
3206
|
+
try {
|
|
3207
|
+
var tmp = this.j7_1;
|
|
3208
|
+
switch (tmp) {
|
|
3209
|
+
case 0:
|
|
3210
|
+
this.k7_1 = 4;
|
|
3211
|
+
var tmp_0 = this;
|
|
3212
|
+
var tmp0_elvis_lhs = this.p1f_1.message;
|
|
3213
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.p1f_1).t8() : tmp0_elvis_lhs;
|
|
3214
|
+
tmp_0.r1f_1 = new TileFailure(this.n1f_1.f1e_1, this.o1f_1, tmp1_elvis_lhs == null ? 'error' : tmp1_elvis_lhs);
|
|
3215
|
+
this.t1f_1 = this.n1f_1.j1e_1;
|
|
3216
|
+
this.s1f_1 = null;
|
|
3217
|
+
this.j7_1 = 1;
|
|
3218
|
+
suspendResult = this.t1f_1.qw(this.s1f_1, this);
|
|
3219
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3220
|
+
return suspendResult;
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3223
|
+
continue $sm;
|
|
3224
|
+
case 1:
|
|
3225
|
+
l$ret$1: do {
|
|
3226
|
+
var tmp_1;
|
|
3227
|
+
try {
|
|
3228
|
+
var tmp0 = this.n1f_1.k1e_1;
|
|
3229
|
+
var tmp2 = this.o1f_1;
|
|
3230
|
+
var value = new Entry(this.r1f_1, add(this.n1f_1.i1e_1(), this.n1f_1.h1e_1));
|
|
3231
|
+
tmp0.v3(tmp2, value);
|
|
3232
|
+
break l$ret$1;
|
|
3233
|
+
} catch ($p) {
|
|
3234
|
+
var tmp_2;
|
|
3235
|
+
var t = $p;
|
|
3236
|
+
this.t1f_1.bw(this.s1f_1);
|
|
3237
|
+
throw t;
|
|
3238
|
+
}
|
|
3239
|
+
}
|
|
3240
|
+
while (false);
|
|
3241
|
+
this.t1f_1.bw(this.s1f_1);
|
|
3242
|
+
var tmp2_safe_receiver = this.p7().w7(Key_instance);
|
|
3243
|
+
if (tmp2_safe_receiver == null) {
|
|
3244
|
+
this.q1f_1 = null;
|
|
3245
|
+
this.j7_1 = 3;
|
|
3246
|
+
continue $sm;
|
|
3247
|
+
} else {
|
|
3248
|
+
this.j7_1 = 2;
|
|
3249
|
+
suspendResult = tmp2_safe_receiver.e1f(this.r1f_1, this);
|
|
3250
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3251
|
+
return suspendResult;
|
|
3252
|
+
}
|
|
3253
|
+
continue $sm;
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
case 2:
|
|
3257
|
+
var tmp_3 = this;
|
|
3258
|
+
tmp_3.q1f_1 = Unit_instance;
|
|
3259
|
+
this.j7_1 = 3;
|
|
3260
|
+
continue $sm;
|
|
3261
|
+
case 3:
|
|
3262
|
+
return _get_empty__hz710c(this.n1f_1);
|
|
3263
|
+
case 4:
|
|
3264
|
+
throw this.m7_1;
|
|
3265
|
+
}
|
|
3266
|
+
} catch ($p_0) {
|
|
3267
|
+
var e = $p_0;
|
|
3268
|
+
if (this.k7_1 === 4) {
|
|
3269
|
+
throw e;
|
|
3270
|
+
} else {
|
|
3271
|
+
this.j7_1 = this.k7_1;
|
|
3272
|
+
this.m7_1 = e;
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
while (true);
|
|
3276
|
+
};
|
|
3277
|
+
function UnreadableTiles(urlTemplate, tileSize, retryAfterMs, now) {
|
|
3278
|
+
Companion_getInstance_2();
|
|
3279
|
+
retryAfterMs = retryAfterMs === VOID ? new Long(60000, 0) : retryAfterMs;
|
|
3280
|
+
now = now === VOID ? Companion_getInstance_2().n1e_1 : now;
|
|
3281
|
+
this.f1e_1 = urlTemplate;
|
|
3282
|
+
this.g1e_1 = tileSize;
|
|
3283
|
+
this.h1e_1 = retryAfterMs;
|
|
3284
|
+
this.i1e_1 = now;
|
|
3285
|
+
this.j1e_1 = Mutex();
|
|
3286
|
+
this.k1e_1 = HashMap_init_$Create$();
|
|
3287
|
+
var tmp = this;
|
|
3288
|
+
tmp.l1e_1 = lazy(UnreadableTiles$empty$delegate$lambda(this));
|
|
3289
|
+
}
|
|
3290
|
+
protoOf(UnreadableTiles).u1f = function (tc, $completion) {
|
|
3291
|
+
var tmp = new $cachedCOROUTINE$(this, tc, $completion);
|
|
3292
|
+
tmp.l7_1 = Unit_instance;
|
|
3293
|
+
tmp.m7_1 = null;
|
|
3294
|
+
return tmp.r7();
|
|
3295
|
+
};
|
|
3296
|
+
protoOf(UnreadableTiles).v1f = function (tc, error, $completion) {
|
|
3297
|
+
var tmp = new $rememberCOROUTINE$(this, tc, error, $completion);
|
|
3298
|
+
tmp.l7_1 = Unit_instance;
|
|
3299
|
+
tmp.m7_1 = null;
|
|
3300
|
+
return tmp.r7();
|
|
3301
|
+
};
|
|
3302
|
+
function TileFailure(urlTemplate, tile, message) {
|
|
3303
|
+
this.w1f_1 = urlTemplate;
|
|
3304
|
+
this.x1f_1 = tile;
|
|
3305
|
+
this.y1f_1 = message;
|
|
3306
|
+
}
|
|
3307
|
+
protoOf(TileFailure).toString = function () {
|
|
3308
|
+
return 'TileFailure(urlTemplate=' + this.w1f_1 + ', tile=' + this.x1f_1.toString() + ', message=' + this.y1f_1 + ')';
|
|
3309
|
+
};
|
|
3310
|
+
protoOf(TileFailure).hashCode = function () {
|
|
3311
|
+
var result = getStringHashCode(this.w1f_1);
|
|
3312
|
+
result = imul(result, 31) + this.x1f_1.hashCode() | 0;
|
|
3313
|
+
result = imul(result, 31) + getStringHashCode(this.y1f_1) | 0;
|
|
3314
|
+
return result;
|
|
3315
|
+
};
|
|
3316
|
+
protoOf(TileFailure).equals = function (other) {
|
|
3317
|
+
if (this === other)
|
|
3318
|
+
return true;
|
|
3319
|
+
if (!(other instanceof TileFailure))
|
|
3320
|
+
return false;
|
|
3321
|
+
if (!(this.w1f_1 === other.w1f_1))
|
|
3322
|
+
return false;
|
|
3323
|
+
if (!this.x1f_1.equals(other.x1f_1))
|
|
3324
|
+
return false;
|
|
3325
|
+
if (!(this.y1f_1 === other.y1f_1))
|
|
3326
|
+
return false;
|
|
3327
|
+
return true;
|
|
3328
|
+
};
|
|
3329
|
+
function Key() {
|
|
3330
|
+
}
|
|
3331
|
+
var Key_instance;
|
|
3332
|
+
function Key_getInstance() {
|
|
3333
|
+
return Key_instance;
|
|
3334
|
+
}
|
|
3335
|
+
function $recordCOROUTINE$(_this__u8e3s4, failure, resultContinuation) {
|
|
3336
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
3337
|
+
this.h1g_1 = _this__u8e3s4;
|
|
3338
|
+
this.i1g_1 = failure;
|
|
3339
|
+
}
|
|
3340
|
+
protoOf($recordCOROUTINE$).r7 = function () {
|
|
3341
|
+
var suspendResult = this.l7_1;
|
|
3342
|
+
$sm: do
|
|
3343
|
+
try {
|
|
3344
|
+
var tmp = this.j7_1;
|
|
3345
|
+
switch (tmp) {
|
|
3346
|
+
case 0:
|
|
3347
|
+
this.k7_1 = 2;
|
|
3348
|
+
this.k1g_1 = this.h1g_1.c1f_1;
|
|
3349
|
+
this.j1g_1 = null;
|
|
3350
|
+
this.j7_1 = 1;
|
|
3351
|
+
suspendResult = this.k1g_1.qw(this.j1g_1, this);
|
|
3352
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3353
|
+
return suspendResult;
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
continue $sm;
|
|
3357
|
+
case 1:
|
|
3358
|
+
l$ret$1: do {
|
|
3359
|
+
var tmp_0;
|
|
3360
|
+
try {
|
|
3361
|
+
var tmp0 = this.h1g_1.d1f_1;
|
|
3362
|
+
var key = this.i1g_1.w1f_1 + '|' + this.i1g_1.x1f_1.toString();
|
|
3363
|
+
var value = tmp0.t1(key);
|
|
3364
|
+
var tmp_1;
|
|
3365
|
+
if (value == null) {
|
|
3366
|
+
var answer = this.i1g_1;
|
|
3367
|
+
tmp0.v3(key, answer);
|
|
3368
|
+
tmp_1 = answer;
|
|
3369
|
+
} else {
|
|
3370
|
+
tmp_1 = value;
|
|
3371
|
+
}
|
|
3372
|
+
break l$ret$1;
|
|
3373
|
+
} catch ($p) {
|
|
3374
|
+
var tmp_2;
|
|
3375
|
+
var t = $p;
|
|
3376
|
+
this.k1g_1.bw(this.j1g_1);
|
|
3377
|
+
throw t;
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
3380
|
+
while (false);
|
|
3381
|
+
this.k1g_1.bw(this.j1g_1);
|
|
3382
|
+
return Unit_instance;
|
|
3383
|
+
case 2:
|
|
3384
|
+
throw this.m7_1;
|
|
3385
|
+
}
|
|
3386
|
+
} catch ($p_0) {
|
|
3387
|
+
var e = $p_0;
|
|
3388
|
+
if (this.k7_1 === 2) {
|
|
3389
|
+
throw e;
|
|
3390
|
+
} else {
|
|
3391
|
+
this.j7_1 = this.k7_1;
|
|
3392
|
+
this.m7_1 = e;
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3395
|
+
while (true);
|
|
3396
|
+
};
|
|
3397
|
+
function TileFailureLog() {
|
|
3398
|
+
AbstractCoroutineContextElement.call(this, Key_instance);
|
|
3399
|
+
this.c1f_1 = Mutex();
|
|
3400
|
+
this.d1f_1 = LinkedHashMap_init_$Create$();
|
|
3401
|
+
}
|
|
3402
|
+
protoOf(TileFailureLog).e1f = function (failure, $completion) {
|
|
3403
|
+
var tmp = new $recordCOROUTINE$(this, failure, $completion);
|
|
3404
|
+
tmp.l7_1 = Unit_instance;
|
|
3405
|
+
tmp.m7_1 = null;
|
|
3406
|
+
return tmp.r7();
|
|
3407
|
+
};
|
|
3408
|
+
protoOf(TileFailureLog).l1g = function () {
|
|
3409
|
+
return toList_0(this.d1f_1.v1());
|
|
3410
|
+
};
|
|
3039
3411
|
function buildUrl($this, tc) {
|
|
3040
3412
|
// Inline function 'kotlin.let' call
|
|
3041
3413
|
var it = replace(replace(replace($this.r14_1, '{z}', tc.a11_1.toString()), '{x}', tc.y10_1.toString()), '{y}', tc.z10_1.toString());
|
|
@@ -3044,24 +3416,24 @@
|
|
|
3044
3416
|
function fetchAndDecodeTile$ref_0() {
|
|
3045
3417
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
3046
3418
|
}
|
|
3047
|
-
protoOf(fetchAndDecodeTile$ref_0).
|
|
3419
|
+
protoOf(fetchAndDecodeTile$ref_0).j17 = function (p0, $completion) {
|
|
3048
3420
|
return fetchAndDecodeTile(p0, $completion);
|
|
3049
3421
|
};
|
|
3050
3422
|
protoOf(fetchAndDecodeTile$ref_0).z7 = function (p1, $completion) {
|
|
3051
|
-
return this.
|
|
3423
|
+
return this.j17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3052
3424
|
};
|
|
3053
3425
|
function TileManager$cache$slambda(this$0, resultContinuation) {
|
|
3054
|
-
this.
|
|
3426
|
+
this.x1g_1 = this$0;
|
|
3055
3427
|
CoroutineImpl.call(this, resultContinuation);
|
|
3056
3428
|
}
|
|
3057
|
-
protoOf(TileManager$cache$slambda).
|
|
3058
|
-
var tmp = this.
|
|
3429
|
+
protoOf(TileManager$cache$slambda).z1g = function (tc, $completion) {
|
|
3430
|
+
var tmp = this.a1h(tc, $completion);
|
|
3059
3431
|
tmp.l7_1 = Unit_instance;
|
|
3060
3432
|
tmp.m7_1 = null;
|
|
3061
3433
|
return tmp.r7();
|
|
3062
3434
|
};
|
|
3063
3435
|
protoOf(TileManager$cache$slambda).z7 = function (p1, $completion) {
|
|
3064
|
-
return this.
|
|
3436
|
+
return this.z1g(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
|
|
3065
3437
|
};
|
|
3066
3438
|
protoOf(TileManager$cache$slambda).r7 = function () {
|
|
3067
3439
|
var suspendResult = this.l7_1;
|
|
@@ -3072,7 +3444,7 @@
|
|
|
3072
3444
|
case 0:
|
|
3073
3445
|
this.k7_1 = 2;
|
|
3074
3446
|
this.j7_1 = 1;
|
|
3075
|
-
suspendResult = this.
|
|
3447
|
+
suspendResult = this.x1g_1.s14_1(buildUrl(this.x1g_1, this.y1g_1), this);
|
|
3076
3448
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3077
3449
|
return suspendResult;
|
|
3078
3450
|
}
|
|
@@ -3095,17 +3467,121 @@
|
|
|
3095
3467
|
}
|
|
3096
3468
|
while (true);
|
|
3097
3469
|
};
|
|
3098
|
-
protoOf(TileManager$cache$slambda).
|
|
3099
|
-
var i = new TileManager$cache$slambda(this.
|
|
3100
|
-
i.
|
|
3470
|
+
protoOf(TileManager$cache$slambda).a1h = function (tc, completion) {
|
|
3471
|
+
var i = new TileManager$cache$slambda(this.x1g_1, completion);
|
|
3472
|
+
i.y1g_1 = tc;
|
|
3101
3473
|
return i;
|
|
3102
3474
|
};
|
|
3103
3475
|
function TileManager$cache$slambda_0(this$0, resultContinuation) {
|
|
3104
3476
|
var i = new TileManager$cache$slambda(this$0, resultContinuation);
|
|
3105
3477
|
return constructCallableReference(function (tc, $completion) {
|
|
3106
|
-
return i.
|
|
3478
|
+
return i.z1g(tc, $completion);
|
|
3107
3479
|
}, 1);
|
|
3108
3480
|
}
|
|
3481
|
+
function $getTileCOROUTINE$(_this__u8e3s4, tileCoords, resultContinuation) {
|
|
3482
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
3483
|
+
this.j1h_1 = _this__u8e3s4;
|
|
3484
|
+
this.k1h_1 = tileCoords;
|
|
3485
|
+
}
|
|
3486
|
+
protoOf($getTileCOROUTINE$).r7 = function () {
|
|
3487
|
+
var suspendResult = this.l7_1;
|
|
3488
|
+
$sm: do
|
|
3489
|
+
try {
|
|
3490
|
+
var tmp = this.j7_1;
|
|
3491
|
+
switch (tmp) {
|
|
3492
|
+
case 0:
|
|
3493
|
+
this.k7_1 = 8;
|
|
3494
|
+
var tmp0_elvis_lhs = this.j1h_1.t14_1;
|
|
3495
|
+
if (tmp0_elvis_lhs == null) {
|
|
3496
|
+
this.j7_1 = 1;
|
|
3497
|
+
suspendResult = this.j1h_1.u14_1.y1d(this.k1h_1, this);
|
|
3498
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3499
|
+
return suspendResult;
|
|
3500
|
+
}
|
|
3501
|
+
continue $sm;
|
|
3502
|
+
} else {
|
|
3503
|
+
this.n1h_1 = tmp0_elvis_lhs;
|
|
3504
|
+
this.j7_1 = 2;
|
|
3505
|
+
continue $sm;
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
case 1:
|
|
3509
|
+
var tmp_0 = this;
|
|
3510
|
+
return suspendResult;
|
|
3511
|
+
case 2:
|
|
3512
|
+
this.m1h_1 = this.n1h_1;
|
|
3513
|
+
this.j7_1 = 3;
|
|
3514
|
+
suspendResult = this.m1h_1.u1f(this.k1h_1, this);
|
|
3515
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3516
|
+
return suspendResult;
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
continue $sm;
|
|
3520
|
+
case 3:
|
|
3521
|
+
var tmp1_safe_receiver = suspendResult;
|
|
3522
|
+
if (tmp1_safe_receiver == null)
|
|
3523
|
+
null;
|
|
3524
|
+
else {
|
|
3525
|
+
return tmp1_safe_receiver;
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
this.k7_1 = 5;
|
|
3529
|
+
this.j7_1 = 4;
|
|
3530
|
+
suspendResult = this.j1h_1.u14_1.y1d(this.k1h_1, this);
|
|
3531
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3532
|
+
return suspendResult;
|
|
3533
|
+
}
|
|
3534
|
+
|
|
3535
|
+
continue $sm;
|
|
3536
|
+
case 4:
|
|
3537
|
+
this.l1h_1 = suspendResult;
|
|
3538
|
+
this.k7_1 = 8;
|
|
3539
|
+
this.j7_1 = 7;
|
|
3540
|
+
continue $sm;
|
|
3541
|
+
case 5:
|
|
3542
|
+
this.k7_1 = 8;
|
|
3543
|
+
var tmp_1 = this.m7_1;
|
|
3544
|
+
if (tmp_1 instanceof CancellationException) {
|
|
3545
|
+
var e = this.m7_1;
|
|
3546
|
+
var tmp_2 = this;
|
|
3547
|
+
throw e;
|
|
3548
|
+
} else {
|
|
3549
|
+
var tmp_3 = this.m7_1;
|
|
3550
|
+
if (tmp_3 instanceof Exception) {
|
|
3551
|
+
var e_0 = this.m7_1;
|
|
3552
|
+
ensureActive(this.p7());
|
|
3553
|
+
this.j7_1 = 6;
|
|
3554
|
+
suspendResult = this.m1h_1.v1f(this.k1h_1, e_0, this);
|
|
3555
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3556
|
+
return suspendResult;
|
|
3557
|
+
}
|
|
3558
|
+
continue $sm;
|
|
3559
|
+
} else {
|
|
3560
|
+
throw this.m7_1;
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
case 6:
|
|
3565
|
+
this.l1h_1 = suspendResult;
|
|
3566
|
+
this.j7_1 = 7;
|
|
3567
|
+
continue $sm;
|
|
3568
|
+
case 7:
|
|
3569
|
+
this.k7_1 = 8;
|
|
3570
|
+
return this.l1h_1;
|
|
3571
|
+
case 8:
|
|
3572
|
+
throw this.m7_1;
|
|
3573
|
+
}
|
|
3574
|
+
} catch ($p) {
|
|
3575
|
+
var e_1 = $p;
|
|
3576
|
+
if (this.k7_1 === 8) {
|
|
3577
|
+
throw e_1;
|
|
3578
|
+
} else {
|
|
3579
|
+
this.j7_1 = this.k7_1;
|
|
3580
|
+
this.m7_1 = e_1;
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
while (true);
|
|
3584
|
+
};
|
|
3109
3585
|
function TileManager(urlTemplate, cacheSize, fetcher) {
|
|
3110
3586
|
var tmp;
|
|
3111
3587
|
if (fetcher === VOID) {
|
|
@@ -3116,11 +3592,15 @@
|
|
|
3116
3592
|
fetcher = tmp;
|
|
3117
3593
|
this.r14_1 = urlTemplate;
|
|
3118
3594
|
this.s14_1 = fetcher;
|
|
3595
|
+
this.t14_1 = null;
|
|
3119
3596
|
var tmp_0 = this;
|
|
3120
|
-
tmp_0.
|
|
3597
|
+
tmp_0.u14_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
|
|
3121
3598
|
}
|
|
3122
|
-
protoOf(TileManager).
|
|
3123
|
-
|
|
3599
|
+
protoOf(TileManager).v14 = function (tileCoords, $completion) {
|
|
3600
|
+
var tmp = new $getTileCOROUTINE$(this, tileCoords, $completion);
|
|
3601
|
+
tmp.l7_1 = Unit_instance;
|
|
3602
|
+
tmp.m7_1 = null;
|
|
3603
|
+
return tmp.r7();
|
|
3124
3604
|
};
|
|
3125
3605
|
function get_processClock() {
|
|
3126
3606
|
_init_properties_TileRequestPacing_kt__e3tnun();
|
|
@@ -3159,13 +3639,13 @@
|
|
|
3159
3639
|
retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
|
|
3160
3640
|
IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
|
|
3161
3641
|
captureStack(this, TileFetchException);
|
|
3162
|
-
this.
|
|
3163
|
-
this.
|
|
3164
|
-
this.
|
|
3642
|
+
this.o1h_1 = url;
|
|
3643
|
+
this.p1h_1 = status;
|
|
3644
|
+
this.q1h_1 = retryAfterSeconds;
|
|
3165
3645
|
}
|
|
3166
3646
|
function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
3167
3647
|
CoroutineImpl.call(this, resultContinuation);
|
|
3168
|
-
this.
|
|
3648
|
+
this.z1h_1 = _this__u8e3s4;
|
|
3169
3649
|
}
|
|
3170
3650
|
protoOf($awaitTurnCOROUTINE$).r7 = function () {
|
|
3171
3651
|
var suspendResult = this.l7_1;
|
|
@@ -3175,10 +3655,10 @@
|
|
|
3175
3655
|
switch (tmp) {
|
|
3176
3656
|
case 0:
|
|
3177
3657
|
this.k7_1 = 4;
|
|
3178
|
-
this.
|
|
3179
|
-
this.
|
|
3658
|
+
this.b1i_1 = this.z1h_1.e1i_1;
|
|
3659
|
+
this.a1i_1 = null;
|
|
3180
3660
|
this.j7_1 = 1;
|
|
3181
|
-
suspendResult = this.
|
|
3661
|
+
suspendResult = this.b1i_1.qw(this.a1i_1, this);
|
|
3182
3662
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3183
3663
|
return suspendResult;
|
|
3184
3664
|
}
|
|
@@ -3189,22 +3669,22 @@
|
|
|
3189
3669
|
l$ret$1: do {
|
|
3190
3670
|
var tmp_0;
|
|
3191
3671
|
try {
|
|
3192
|
-
var t = toNumber(this.
|
|
3193
|
-
var b = this.
|
|
3672
|
+
var t = toNumber(this.z1h_1.c1i_1());
|
|
3673
|
+
var b = this.z1h_1.f1i_1;
|
|
3194
3674
|
var slot = Math.max(t, b);
|
|
3195
|
-
this.
|
|
3675
|
+
this.z1h_1.f1i_1 = slot + this.z1h_1.d1i_1;
|
|
3196
3676
|
tmp$ret$0 = slot - t;
|
|
3197
3677
|
break l$ret$1;
|
|
3198
3678
|
} catch ($p) {
|
|
3199
3679
|
var tmp_1;
|
|
3200
3680
|
var t_0 = $p;
|
|
3201
|
-
this.
|
|
3681
|
+
this.b1i_1.bw(this.a1i_1);
|
|
3202
3682
|
throw t_0;
|
|
3203
3683
|
}
|
|
3204
3684
|
}
|
|
3205
3685
|
while (false);
|
|
3206
3686
|
var tmp_2 = tmp$ret$0;
|
|
3207
|
-
this.
|
|
3687
|
+
this.b1i_1.bw(this.a1i_1);
|
|
3208
3688
|
var waitMs = tmp_2;
|
|
3209
3689
|
if (waitMs > 0) {
|
|
3210
3690
|
this.j7_1 = 2;
|
|
@@ -3238,50 +3718,50 @@
|
|
|
3238
3718
|
while (true);
|
|
3239
3719
|
};
|
|
3240
3720
|
function RequestPacer(perSecond, now) {
|
|
3241
|
-
this.
|
|
3242
|
-
this.
|
|
3243
|
-
this.
|
|
3244
|
-
this.
|
|
3721
|
+
this.c1i_1 = now;
|
|
3722
|
+
this.d1i_1 = 1000.0 / perSecond;
|
|
3723
|
+
this.e1i_1 = Mutex();
|
|
3724
|
+
this.f1i_1 = -Infinity;
|
|
3245
3725
|
}
|
|
3246
|
-
protoOf(RequestPacer).
|
|
3726
|
+
protoOf(RequestPacer).g1i = function ($completion) {
|
|
3247
3727
|
var tmp = new $awaitTurnCOROUTINE$(this, $completion);
|
|
3248
3728
|
tmp.l7_1 = Unit_instance;
|
|
3249
3729
|
tmp.m7_1 = null;
|
|
3250
3730
|
return tmp.r7();
|
|
3251
3731
|
};
|
|
3252
|
-
function
|
|
3253
|
-
this.
|
|
3254
|
-
this.
|
|
3255
|
-
this.
|
|
3732
|
+
function Key_0(host, perSecond, clock) {
|
|
3733
|
+
this.h1i_1 = host;
|
|
3734
|
+
this.i1i_1 = perSecond;
|
|
3735
|
+
this.j1i_1 = clock;
|
|
3256
3736
|
}
|
|
3257
|
-
protoOf(
|
|
3258
|
-
return 'Key(host=' + this.
|
|
3737
|
+
protoOf(Key_0).toString = function () {
|
|
3738
|
+
return 'Key(host=' + this.h1i_1 + ', perSecond=' + this.i1i_1 + ', clock=' + toString(this.j1i_1) + ')';
|
|
3259
3739
|
};
|
|
3260
|
-
protoOf(
|
|
3261
|
-
var result = getStringHashCode(this.
|
|
3262
|
-
result = imul(result, 31) + this.
|
|
3263
|
-
result = imul(result, 31) + hashCode(this.
|
|
3740
|
+
protoOf(Key_0).hashCode = function () {
|
|
3741
|
+
var result = getStringHashCode(this.h1i_1);
|
|
3742
|
+
result = imul(result, 31) + this.i1i_1 | 0;
|
|
3743
|
+
result = imul(result, 31) + hashCode(this.j1i_1) | 0;
|
|
3264
3744
|
return result;
|
|
3265
3745
|
};
|
|
3266
|
-
protoOf(
|
|
3746
|
+
protoOf(Key_0).equals = function (other) {
|
|
3267
3747
|
if (this === other)
|
|
3268
3748
|
return true;
|
|
3269
|
-
if (!(other instanceof
|
|
3749
|
+
if (!(other instanceof Key_0))
|
|
3270
3750
|
return false;
|
|
3271
|
-
if (!(this.
|
|
3751
|
+
if (!(this.h1i_1 === other.h1i_1))
|
|
3272
3752
|
return false;
|
|
3273
|
-
if (!(this.
|
|
3753
|
+
if (!(this.i1i_1 === other.i1i_1))
|
|
3274
3754
|
return false;
|
|
3275
|
-
if (!equals(this.
|
|
3755
|
+
if (!equals(this.j1i_1, other.j1i_1))
|
|
3276
3756
|
return false;
|
|
3277
3757
|
return true;
|
|
3278
3758
|
};
|
|
3279
3759
|
function $ofCOROUTINE$(_this__u8e3s4, host, perSecond, clock, resultContinuation) {
|
|
3280
3760
|
CoroutineImpl.call(this, resultContinuation);
|
|
3281
|
-
this.
|
|
3282
|
-
this.
|
|
3283
|
-
this.
|
|
3284
|
-
this.
|
|
3761
|
+
this.s1i_1 = _this__u8e3s4;
|
|
3762
|
+
this.t1i_1 = host;
|
|
3763
|
+
this.u1i_1 = perSecond;
|
|
3764
|
+
this.v1i_1 = clock;
|
|
3285
3765
|
}
|
|
3286
3766
|
protoOf($ofCOROUTINE$).r7 = function () {
|
|
3287
3767
|
var suspendResult = this.l7_1;
|
|
@@ -3291,10 +3771,10 @@
|
|
|
3291
3771
|
switch (tmp) {
|
|
3292
3772
|
case 0:
|
|
3293
3773
|
this.k7_1 = 2;
|
|
3294
|
-
this.
|
|
3295
|
-
this.
|
|
3774
|
+
this.x1i_1 = this.s1i_1.y1i_1;
|
|
3775
|
+
this.w1i_1 = null;
|
|
3296
3776
|
this.j7_1 = 1;
|
|
3297
|
-
suspendResult = this.
|
|
3777
|
+
suspendResult = this.x1i_1.qw(this.w1i_1, this);
|
|
3298
3778
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3299
3779
|
return suspendResult;
|
|
3300
3780
|
}
|
|
@@ -3305,12 +3785,12 @@
|
|
|
3305
3785
|
l$ret$1: do {
|
|
3306
3786
|
var tmp_0;
|
|
3307
3787
|
try {
|
|
3308
|
-
var tmp0 = HostPacers_getInstance().
|
|
3309
|
-
var key = new
|
|
3788
|
+
var tmp0 = HostPacers_getInstance().z1i_1;
|
|
3789
|
+
var key = new Key_0(this.t1i_1, this.u1i_1, this.v1i_1);
|
|
3310
3790
|
var value = tmp0.t1(key);
|
|
3311
3791
|
var tmp_1;
|
|
3312
3792
|
if (value == null) {
|
|
3313
|
-
var answer = new RequestPacer(this.
|
|
3793
|
+
var answer = new RequestPacer(this.u1i_1, this.v1i_1);
|
|
3314
3794
|
tmp0.v3(key, answer);
|
|
3315
3795
|
tmp_1 = answer;
|
|
3316
3796
|
} else {
|
|
@@ -3321,13 +3801,13 @@
|
|
|
3321
3801
|
} catch ($p) {
|
|
3322
3802
|
var tmp_2;
|
|
3323
3803
|
var t = $p;
|
|
3324
|
-
this.
|
|
3804
|
+
this.x1i_1.bw(this.w1i_1);
|
|
3325
3805
|
throw t;
|
|
3326
3806
|
}
|
|
3327
3807
|
}
|
|
3328
3808
|
while (false);
|
|
3329
3809
|
var tmp_3 = tmp$ret$0;
|
|
3330
|
-
this.
|
|
3810
|
+
this.x1i_1.bw(this.w1i_1);
|
|
3331
3811
|
return tmp_3;
|
|
3332
3812
|
case 2:
|
|
3333
3813
|
throw this.m7_1;
|
|
@@ -3345,10 +3825,10 @@
|
|
|
3345
3825
|
};
|
|
3346
3826
|
function HostPacers() {
|
|
3347
3827
|
HostPacers_instance = this;
|
|
3348
|
-
this.
|
|
3349
|
-
this.
|
|
3828
|
+
this.y1i_1 = Mutex();
|
|
3829
|
+
this.z1i_1 = HashMap_init_$Create$();
|
|
3350
3830
|
}
|
|
3351
|
-
protoOf(HostPacers).
|
|
3831
|
+
protoOf(HostPacers).a1j = function (host, perSecond, clock, $completion) {
|
|
3352
3832
|
var tmp = new $ofCOROUTINE$(this, host, perSecond, clock, $completion);
|
|
3353
3833
|
tmp.l7_1 = Unit_instance;
|
|
3354
3834
|
tmp.m7_1 = null;
|
|
@@ -3370,29 +3850,29 @@
|
|
|
3370
3850
|
};
|
|
3371
3851
|
}
|
|
3372
3852
|
function fetchTileBytes$ref() {
|
|
3373
|
-
KFunctionImpl.call(this, 1, 2,
|
|
3853
|
+
KFunctionImpl.call(this, 1, 2, 5);
|
|
3374
3854
|
}
|
|
3375
|
-
protoOf(fetchTileBytes$ref).
|
|
3855
|
+
protoOf(fetchTileBytes$ref).e1j = function (p0, $completion) {
|
|
3376
3856
|
return fetchTileBytes(p0, $completion);
|
|
3377
3857
|
};
|
|
3378
3858
|
protoOf(fetchTileBytes$ref).z7 = function (p1, $completion) {
|
|
3379
|
-
return this.
|
|
3859
|
+
return this.e1j((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3380
3860
|
};
|
|
3381
3861
|
function pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
3382
|
-
this.
|
|
3383
|
-
this.
|
|
3384
|
-
this.
|
|
3385
|
-
this.
|
|
3862
|
+
this.n1j_1 = $maxRequestsPerSecond;
|
|
3863
|
+
this.o1j_1 = $now;
|
|
3864
|
+
this.p1j_1 = $fetch;
|
|
3865
|
+
this.q1j_1 = $maxAttempts;
|
|
3386
3866
|
CoroutineImpl.call(this, resultContinuation);
|
|
3387
3867
|
}
|
|
3388
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
3389
|
-
var tmp = this.
|
|
3868
|
+
protoOf(pacedTileBytesFetcher$slambda).e1j = function (url, $completion) {
|
|
3869
|
+
var tmp = this.u17(url, $completion);
|
|
3390
3870
|
tmp.l7_1 = Unit_instance;
|
|
3391
3871
|
tmp.m7_1 = null;
|
|
3392
3872
|
return tmp.r7();
|
|
3393
3873
|
};
|
|
3394
3874
|
protoOf(pacedTileBytesFetcher$slambda).z7 = function (p1, $completion) {
|
|
3395
|
-
return this.
|
|
3875
|
+
return this.e1j((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3396
3876
|
};
|
|
3397
3877
|
protoOf(pacedTileBytesFetcher$slambda).r7 = function () {
|
|
3398
3878
|
var suspendResult = this.l7_1;
|
|
@@ -3402,43 +3882,43 @@
|
|
|
3402
3882
|
switch (tmp) {
|
|
3403
3883
|
case 0:
|
|
3404
3884
|
this.k7_1 = 11;
|
|
3405
|
-
if (this.
|
|
3885
|
+
if (this.n1j_1 > 0) {
|
|
3406
3886
|
this.j7_1 = 1;
|
|
3407
|
-
suspendResult = HostPacers_getInstance().
|
|
3887
|
+
suspendResult = HostPacers_getInstance().a1j(hostOf(this.r1j_1), this.n1j_1, this.o1j_1, this);
|
|
3408
3888
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3409
3889
|
return suspendResult;
|
|
3410
3890
|
}
|
|
3411
3891
|
continue $sm;
|
|
3412
3892
|
} else {
|
|
3413
|
-
this.
|
|
3893
|
+
this.x1j_1 = null;
|
|
3414
3894
|
this.j7_1 = 2;
|
|
3415
3895
|
continue $sm;
|
|
3416
3896
|
}
|
|
3417
3897
|
|
|
3418
3898
|
case 1:
|
|
3419
|
-
this.
|
|
3899
|
+
this.x1j_1 = suspendResult;
|
|
3420
3900
|
this.j7_1 = 2;
|
|
3421
3901
|
continue $sm;
|
|
3422
3902
|
case 2:
|
|
3423
|
-
this.
|
|
3424
|
-
this.
|
|
3425
|
-
this.
|
|
3903
|
+
this.w1j_1 = this.x1j_1;
|
|
3904
|
+
this.u1j_1 = 1;
|
|
3905
|
+
this.s1j_1 = null;
|
|
3426
3906
|
this.j7_1 = 3;
|
|
3427
3907
|
continue $sm;
|
|
3428
3908
|
case 3:
|
|
3429
|
-
if (!(this.
|
|
3909
|
+
if (!(this.s1j_1 == null)) {
|
|
3430
3910
|
this.j7_1 = 10;
|
|
3431
3911
|
continue $sm;
|
|
3432
3912
|
}
|
|
3433
3913
|
|
|
3434
|
-
var tmp0_safe_receiver = this.
|
|
3914
|
+
var tmp0_safe_receiver = this.w1j_1;
|
|
3435
3915
|
if (tmp0_safe_receiver == null) {
|
|
3436
|
-
this.
|
|
3916
|
+
this.v1j_1 = null;
|
|
3437
3917
|
this.j7_1 = 5;
|
|
3438
3918
|
continue $sm;
|
|
3439
3919
|
} else {
|
|
3440
3920
|
this.j7_1 = 4;
|
|
3441
|
-
suspendResult = tmp0_safe_receiver.
|
|
3921
|
+
suspendResult = tmp0_safe_receiver.g1i(this);
|
|
3442
3922
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3443
3923
|
return suspendResult;
|
|
3444
3924
|
}
|
|
@@ -3447,13 +3927,13 @@
|
|
|
3447
3927
|
|
|
3448
3928
|
case 4:
|
|
3449
3929
|
var tmp_0 = this;
|
|
3450
|
-
tmp_0.
|
|
3930
|
+
tmp_0.v1j_1 = Unit_instance;
|
|
3451
3931
|
this.j7_1 = 5;
|
|
3452
3932
|
continue $sm;
|
|
3453
3933
|
case 5:
|
|
3454
3934
|
this.k7_1 = 7;
|
|
3455
3935
|
this.j7_1 = 6;
|
|
3456
|
-
suspendResult = this.
|
|
3936
|
+
suspendResult = this.p1j_1(this.r1j_1, this);
|
|
3457
3937
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3458
3938
|
return suspendResult;
|
|
3459
3939
|
}
|
|
@@ -3461,8 +3941,8 @@
|
|
|
3461
3941
|
continue $sm;
|
|
3462
3942
|
case 6:
|
|
3463
3943
|
var tmp_1 = this;
|
|
3464
|
-
this.
|
|
3465
|
-
tmp_1.
|
|
3944
|
+
this.s1j_1 = suspendResult;
|
|
3945
|
+
tmp_1.t1j_1 = Unit_instance;
|
|
3466
3946
|
this.k7_1 = 11;
|
|
3467
3947
|
this.j7_1 = 9;
|
|
3468
3948
|
continue $sm;
|
|
@@ -3471,11 +3951,11 @@
|
|
|
3471
3951
|
var tmp_2 = this.m7_1;
|
|
3472
3952
|
if (tmp_2 instanceof TileFetchException) {
|
|
3473
3953
|
var e = this.m7_1;
|
|
3474
|
-
if (!(e.
|
|
3954
|
+
if (!(e.p1h_1 === 429) && !(e.p1h_1 === 503) || this.u1j_1 >= this.q1j_1)
|
|
3475
3955
|
throw e;
|
|
3476
3956
|
this.j7_1 = 8;
|
|
3477
|
-
var tmp1_elvis_lhs = e.
|
|
3478
|
-
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.
|
|
3957
|
+
var tmp1_elvis_lhs = e.q1h_1;
|
|
3958
|
+
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.u1j_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
|
|
3479
3959
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3480
3960
|
return suspendResult;
|
|
3481
3961
|
}
|
|
@@ -3486,9 +3966,9 @@
|
|
|
3486
3966
|
|
|
3487
3967
|
case 8:
|
|
3488
3968
|
var tmp_3 = this;
|
|
3489
|
-
var _unary__edvuaz = this.
|
|
3490
|
-
this.
|
|
3491
|
-
tmp_3.
|
|
3969
|
+
var _unary__edvuaz = this.u1j_1;
|
|
3970
|
+
this.u1j_1 = _unary__edvuaz + 1 | 0;
|
|
3971
|
+
tmp_3.t1j_1 = _unary__edvuaz;
|
|
3492
3972
|
this.j7_1 = 9;
|
|
3493
3973
|
continue $sm;
|
|
3494
3974
|
case 9:
|
|
@@ -3496,7 +3976,7 @@
|
|
|
3496
3976
|
this.j7_1 = 3;
|
|
3497
3977
|
continue $sm;
|
|
3498
3978
|
case 10:
|
|
3499
|
-
return this.
|
|
3979
|
+
return this.s1j_1;
|
|
3500
3980
|
case 11:
|
|
3501
3981
|
throw this.m7_1;
|
|
3502
3982
|
}
|
|
@@ -3511,15 +3991,15 @@
|
|
|
3511
3991
|
}
|
|
3512
3992
|
while (true);
|
|
3513
3993
|
};
|
|
3514
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
3515
|
-
var i = new pacedTileBytesFetcher$slambda(this.
|
|
3516
|
-
i.
|
|
3994
|
+
protoOf(pacedTileBytesFetcher$slambda).u17 = function (url, completion) {
|
|
3995
|
+
var i = new pacedTileBytesFetcher$slambda(this.n1j_1, this.o1j_1, this.p1j_1, this.q1j_1, completion);
|
|
3996
|
+
i.r1j_1 = url;
|
|
3517
3997
|
return i;
|
|
3518
3998
|
};
|
|
3519
3999
|
function pacedTileBytesFetcher$slambda_0($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
3520
4000
|
var i = new pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation);
|
|
3521
4001
|
return constructCallableReference(function (url, $completion) {
|
|
3522
|
-
return i.
|
|
4002
|
+
return i.e1j(url, $completion);
|
|
3523
4003
|
}, 1);
|
|
3524
4004
|
}
|
|
3525
4005
|
var properties_initialized_TileRequestPacing_kt_zdwibl;
|
|
@@ -3532,7 +4012,7 @@
|
|
|
3532
4012
|
function tileCoordinatesOf(url, config) {
|
|
3533
4013
|
var names = ArrayList_init_$Create$();
|
|
3534
4014
|
var pattern = StringBuilder_init_$Create$();
|
|
3535
|
-
var rest = config.
|
|
4015
|
+
var rest = config.v16_1;
|
|
3536
4016
|
var placeholder = Regex_init_$Create$('\\{(z|x|y|bbox)\\}');
|
|
3537
4017
|
$l$loop: while (true) {
|
|
3538
4018
|
var tmp0_elvis_lhs = placeholder.ta(rest);
|
|
@@ -3554,7 +4034,7 @@
|
|
|
3554
4034
|
var tmp1_elvis_lhs = Regex_init_$Create$(pattern.toString()).ua(url);
|
|
3555
4035
|
var tmp_0;
|
|
3556
4036
|
if (tmp1_elvis_lhs == null) {
|
|
3557
|
-
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.
|
|
4037
|
+
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.v16_1);
|
|
3558
4038
|
} else {
|
|
3559
4039
|
tmp_0 = tmp1_elvis_lhs;
|
|
3560
4040
|
}
|
|
@@ -3562,7 +4042,7 @@
|
|
|
3562
4042
|
var values = toMap(zip(names, drop(match.kb(), 1)));
|
|
3563
4043
|
var tmp2_safe_receiver = values.t1('z');
|
|
3564
4044
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toInt(tmp2_safe_receiver);
|
|
3565
|
-
var z = tmp3_elvis_lhs == null ? config.
|
|
4045
|
+
var z = tmp3_elvis_lhs == null ? config.t16_1 : tmp3_elvis_lhs;
|
|
3566
4046
|
var bbox = values.t1('bbox');
|
|
3567
4047
|
if (bbox == null)
|
|
3568
4048
|
return new TileCoordinates(toInt(getValue(values, 'x')), toInt(getValue(values, 'y')), z);
|
|
@@ -3647,21 +4127,21 @@
|
|
|
3647
4127
|
return true;
|
|
3648
4128
|
};
|
|
3649
4129
|
function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
|
|
3650
|
-
this.
|
|
3651
|
-
this.
|
|
3652
|
-
this.
|
|
3653
|
-
this.
|
|
3654
|
-
this.
|
|
4130
|
+
this.h15_1 = x;
|
|
4131
|
+
this.i15_1 = y;
|
|
4132
|
+
this.j15_1 = xFloat;
|
|
4133
|
+
this.k15_1 = yFloat;
|
|
4134
|
+
this.l15_1 = z;
|
|
3655
4135
|
}
|
|
3656
4136
|
protoOf(TileCoordinatesFloat).toString = function () {
|
|
3657
|
-
return 'TileCoordinatesFloat(x=' + this.
|
|
4137
|
+
return 'TileCoordinatesFloat(x=' + this.h15_1 + ', y=' + this.i15_1 + ', xFloat=' + this.j15_1 + ', yFloat=' + this.k15_1 + ', z=' + this.l15_1 + ')';
|
|
3658
4138
|
};
|
|
3659
4139
|
protoOf(TileCoordinatesFloat).hashCode = function () {
|
|
3660
|
-
var result = this.
|
|
3661
|
-
result = imul(result, 31) + this.
|
|
3662
|
-
result = imul(result, 31) + getNumberHashCode(this.i15_1) | 0;
|
|
4140
|
+
var result = this.h15_1;
|
|
4141
|
+
result = imul(result, 31) + this.i15_1 | 0;
|
|
3663
4142
|
result = imul(result, 31) + getNumberHashCode(this.j15_1) | 0;
|
|
3664
|
-
result = imul(result, 31) + this.k15_1 | 0;
|
|
4143
|
+
result = imul(result, 31) + getNumberHashCode(this.k15_1) | 0;
|
|
4144
|
+
result = imul(result, 31) + this.l15_1 | 0;
|
|
3665
4145
|
return result;
|
|
3666
4146
|
};
|
|
3667
4147
|
protoOf(TileCoordinatesFloat).equals = function (other) {
|
|
@@ -3669,15 +4149,15 @@
|
|
|
3669
4149
|
return true;
|
|
3670
4150
|
if (!(other instanceof TileCoordinatesFloat))
|
|
3671
4151
|
return false;
|
|
3672
|
-
if (!(this.g15_1 === other.g15_1))
|
|
3673
|
-
return false;
|
|
3674
4152
|
if (!(this.h15_1 === other.h15_1))
|
|
3675
4153
|
return false;
|
|
3676
|
-
if (!
|
|
4154
|
+
if (!(this.i15_1 === other.i15_1))
|
|
3677
4155
|
return false;
|
|
3678
4156
|
if (!equals(this.j15_1, other.j15_1))
|
|
3679
4157
|
return false;
|
|
3680
|
-
if (!(this.k15_1
|
|
4158
|
+
if (!equals(this.k15_1, other.k15_1))
|
|
4159
|
+
return false;
|
|
4160
|
+
if (!(this.l15_1 === other.l15_1))
|
|
3681
4161
|
return false;
|
|
3682
4162
|
return true;
|
|
3683
4163
|
};
|
|
@@ -3708,23 +4188,23 @@
|
|
|
3708
4188
|
return false;
|
|
3709
4189
|
return true;
|
|
3710
4190
|
};
|
|
3711
|
-
function
|
|
3712
|
-
|
|
3713
|
-
this.
|
|
4191
|
+
function Companion_2() {
|
|
4192
|
+
Companion_instance_3 = this;
|
|
4193
|
+
this.y1j_1 = new Vector3D(0.0, 0.0, 0.0);
|
|
3714
4194
|
}
|
|
3715
|
-
var
|
|
3716
|
-
function
|
|
3717
|
-
if (
|
|
3718
|
-
new
|
|
3719
|
-
return
|
|
4195
|
+
var Companion_instance_3;
|
|
4196
|
+
function Companion_getInstance_3() {
|
|
4197
|
+
if (Companion_instance_3 == null)
|
|
4198
|
+
new Companion_2();
|
|
4199
|
+
return Companion_instance_3;
|
|
3720
4200
|
}
|
|
3721
4201
|
function Vector3D(x, y, z) {
|
|
3722
|
-
|
|
4202
|
+
Companion_getInstance_3();
|
|
3723
4203
|
this.i12_1 = x;
|
|
3724
4204
|
this.j12_1 = y;
|
|
3725
4205
|
this.k12_1 = z;
|
|
3726
4206
|
}
|
|
3727
|
-
protoOf(Vector3D).
|
|
4207
|
+
protoOf(Vector3D).z1j = function (other) {
|
|
3728
4208
|
var tmp0 = this.i12_1 - other.i12_1;
|
|
3729
4209
|
// Inline function 'kotlin.math.hypot' call
|
|
3730
4210
|
var y = this.j12_1 - other.j12_1;
|
|
@@ -3733,28 +4213,28 @@
|
|
|
3733
4213
|
var y_0 = this.k12_1 - other.k12_1;
|
|
3734
4214
|
return hypot(tmp0_0, y_0);
|
|
3735
4215
|
};
|
|
3736
|
-
protoOf(Vector3D).
|
|
4216
|
+
protoOf(Vector3D).a1k = function (other) {
|
|
3737
4217
|
return new Vector3D(this.i12_1 - other.i12_1, this.j12_1 - other.j12_1, this.k12_1 - other.k12_1);
|
|
3738
4218
|
};
|
|
3739
|
-
protoOf(Vector3D).
|
|
4219
|
+
protoOf(Vector3D).b1k = function (other) {
|
|
3740
4220
|
return new Vector3D(this.i12_1 + other.i12_1, this.j12_1 + other.j12_1, this.k12_1 + other.k12_1);
|
|
3741
4221
|
};
|
|
3742
|
-
protoOf(Vector3D).
|
|
4222
|
+
protoOf(Vector3D).c1k = function (scalar) {
|
|
3743
4223
|
return new Vector3D(this.i12_1 * scalar, this.j12_1 * scalar, this.k12_1 * scalar);
|
|
3744
4224
|
};
|
|
3745
|
-
protoOf(Vector3D).
|
|
4225
|
+
protoOf(Vector3D).d1k = function (other) {
|
|
3746
4226
|
return this.i12_1 * other.i12_1 + this.j12_1 * other.j12_1 + this.k12_1 * other.k12_1;
|
|
3747
4227
|
};
|
|
3748
4228
|
protoOf(Vector3D).l12 = function (segmentStart, segmentEnd) {
|
|
3749
|
-
var segmentVector = segmentEnd.
|
|
3750
|
-
var segmentLengthSq = segmentVector.
|
|
4229
|
+
var segmentVector = segmentEnd.a1k(segmentStart);
|
|
4230
|
+
var segmentLengthSq = segmentVector.d1k(segmentVector);
|
|
3751
4231
|
if (segmentLengthSq === 0.0)
|
|
3752
|
-
return this.
|
|
3753
|
-
var pointVector = this.
|
|
3754
|
-
var projection = pointVector.
|
|
4232
|
+
return this.z1j(segmentStart);
|
|
4233
|
+
var pointVector = this.a1k(segmentStart);
|
|
4234
|
+
var projection = pointVector.d1k(segmentVector) / segmentLengthSq;
|
|
3755
4235
|
var clamped = coerceIn_0(projection, 0.0, 1.0);
|
|
3756
|
-
var closest = segmentStart.
|
|
3757
|
-
return this.
|
|
4236
|
+
var closest = segmentStart.b1k(segmentVector.c1k(clamped));
|
|
4237
|
+
return this.z1j(closest);
|
|
3758
4238
|
};
|
|
3759
4239
|
protoOf(Vector3D).toString = function () {
|
|
3760
4240
|
return 'Vector3D(x=' + this.i12_1 + ', y=' + this.j12_1 + ', z=' + this.k12_1 + ')';
|
|
@@ -3811,25 +4291,25 @@
|
|
|
3811
4291
|
tmp = null;
|
|
3812
4292
|
} else {
|
|
3813
4293
|
// Inline function 'kotlin.let' call
|
|
3814
|
-
tmp = Companion_getInstance_0().
|
|
4294
|
+
tmp = Companion_getInstance_0().q18(tmp2_safe_receiver);
|
|
3815
4295
|
}
|
|
3816
4296
|
var tmp3_elvis_lhs = tmp;
|
|
3817
|
-
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().
|
|
3818
|
-
var base = source.
|
|
4297
|
+
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().l18_1 : tmp3_elvis_lhs;
|
|
4298
|
+
var base = source.w18(configDto == null ? null : configDto.zoomLevel);
|
|
3819
4299
|
var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
|
|
3820
|
-
var tmp_0 = tmp6_elvis_lhs == null ? base.
|
|
4300
|
+
var tmp_0 = tmp6_elvis_lhs == null ? base.u16_1 : tmp6_elvis_lhs;
|
|
3821
4301
|
var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
|
|
3822
|
-
var tmp_1 = tmp8_elvis_lhs == null ? base.
|
|
4302
|
+
var tmp_1 = tmp8_elvis_lhs == null ? base.v16_1 : tmp8_elvis_lhs;
|
|
3823
4303
|
var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
|
|
3824
|
-
var cfg = base.
|
|
4304
|
+
var cfg = base.h18(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.w16_1 : tmp10_elvis_lhs);
|
|
3825
4305
|
var primary = ElevationProvider_init_$Create$(cfg);
|
|
3826
|
-
var tmp11_safe_receiver = source.
|
|
4306
|
+
var tmp11_safe_receiver = source.r18();
|
|
3827
4307
|
var tmp_2;
|
|
3828
4308
|
if (tmp11_safe_receiver == null) {
|
|
3829
4309
|
tmp_2 = null;
|
|
3830
4310
|
} else {
|
|
3831
4311
|
// Inline function 'kotlin.let' call
|
|
3832
|
-
tmp_2 = primary.
|
|
4312
|
+
tmp_2 = primary.a17(provider(tmp11_safe_receiver));
|
|
3833
4313
|
}
|
|
3834
4314
|
var tmp12_elvis_lhs = tmp_2;
|
|
3835
4315
|
return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
|
|
@@ -3837,8 +4317,8 @@
|
|
|
3837
4317
|
function elevationAttribution(provider) {
|
|
3838
4318
|
_init_properties_ElevationJsApi_kt__1yyas4();
|
|
3839
4319
|
var o = {};
|
|
3840
|
-
o.text = provider.
|
|
3841
|
-
o.url = provider.
|
|
4320
|
+
o.text = provider.c17().i18_1;
|
|
4321
|
+
o.url = provider.c17().j18_1;
|
|
3842
4322
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3843
4323
|
return o;
|
|
3844
4324
|
}
|
|
@@ -3911,20 +4391,20 @@
|
|
|
3911
4391
|
return o;
|
|
3912
4392
|
}
|
|
3913
4393
|
function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
3914
|
-
this.
|
|
3915
|
-
this.
|
|
3916
|
-
this.
|
|
3917
|
-
this.
|
|
4394
|
+
this.m1k_1 = $provider;
|
|
4395
|
+
this.n1k_1 = $latitude;
|
|
4396
|
+
this.o1k_1 = $longitude;
|
|
4397
|
+
this.p1k_1 = $interpolation;
|
|
3918
4398
|
CoroutineImpl.call(this, resultContinuation);
|
|
3919
4399
|
}
|
|
3920
|
-
protoOf(getElevation$slambda).
|
|
3921
|
-
var tmp = this.
|
|
4400
|
+
protoOf(getElevation$slambda).r1k = function ($this$promise, $completion) {
|
|
4401
|
+
var tmp = this.m19($this$promise, $completion);
|
|
3922
4402
|
tmp.l7_1 = Unit_instance;
|
|
3923
4403
|
tmp.m7_1 = null;
|
|
3924
4404
|
return tmp.r7();
|
|
3925
4405
|
};
|
|
3926
4406
|
protoOf(getElevation$slambda).z7 = function (p1, $completion) {
|
|
3927
|
-
return this.
|
|
4407
|
+
return this.r1k((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3928
4408
|
};
|
|
3929
4409
|
protoOf(getElevation$slambda).r7 = function () {
|
|
3930
4410
|
var suspendResult = this.l7_1;
|
|
@@ -3935,7 +4415,7 @@
|
|
|
3935
4415
|
case 0:
|
|
3936
4416
|
this.k7_1 = 2;
|
|
3937
4417
|
this.j7_1 = 1;
|
|
3938
|
-
suspendResult = this.
|
|
4418
|
+
suspendResult = this.m1k_1.i16(this.n1k_1, this.o1k_1, this.p1k_1, this);
|
|
3939
4419
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3940
4420
|
return suspendResult;
|
|
3941
4421
|
}
|
|
@@ -3957,31 +4437,31 @@
|
|
|
3957
4437
|
}
|
|
3958
4438
|
while (true);
|
|
3959
4439
|
};
|
|
3960
|
-
protoOf(getElevation$slambda).
|
|
3961
|
-
var i = new getElevation$slambda(this.
|
|
3962
|
-
i.
|
|
4440
|
+
protoOf(getElevation$slambda).m19 = function ($this$promise, completion) {
|
|
4441
|
+
var i = new getElevation$slambda(this.m1k_1, this.n1k_1, this.o1k_1, this.p1k_1, completion);
|
|
4442
|
+
i.q1k_1 = $this$promise;
|
|
3963
4443
|
return i;
|
|
3964
4444
|
};
|
|
3965
4445
|
function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
3966
4446
|
var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
|
|
3967
4447
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
3968
|
-
return i.
|
|
4448
|
+
return i.r1k($this$promise, $completion);
|
|
3969
4449
|
}, 1);
|
|
3970
4450
|
}
|
|
3971
4451
|
function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
|
|
3972
|
-
this.
|
|
3973
|
-
this.
|
|
3974
|
-
this.
|
|
4452
|
+
this.a1l_1 = $path;
|
|
4453
|
+
this.b1l_1 = $provider;
|
|
4454
|
+
this.c1l_1 = $options;
|
|
3975
4455
|
CoroutineImpl.call(this, resultContinuation);
|
|
3976
4456
|
}
|
|
3977
|
-
protoOf(getElevationsAlong$slambda).
|
|
3978
|
-
var tmp = this.
|
|
4457
|
+
protoOf(getElevationsAlong$slambda).e1l = function ($this$promise, $completion) {
|
|
4458
|
+
var tmp = this.m19($this$promise, $completion);
|
|
3979
4459
|
tmp.l7_1 = Unit_instance;
|
|
3980
4460
|
tmp.m7_1 = null;
|
|
3981
4461
|
return tmp.r7();
|
|
3982
4462
|
};
|
|
3983
4463
|
protoOf(getElevationsAlong$slambda).z7 = function (p1, $completion) {
|
|
3984
|
-
return this.
|
|
4464
|
+
return this.e1l((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3985
4465
|
};
|
|
3986
4466
|
protoOf(getElevationsAlong$slambda).r7 = function () {
|
|
3987
4467
|
var suspendResult = this.l7_1;
|
|
@@ -3991,7 +4471,7 @@
|
|
|
3991
4471
|
switch (tmp) {
|
|
3992
4472
|
case 0:
|
|
3993
4473
|
this.k7_1 = 2;
|
|
3994
|
-
var this_0 = this.
|
|
4474
|
+
var this_0 = this.a1l_1;
|
|
3995
4475
|
var destination = ArrayList_init_$Create$_0(this_0.length);
|
|
3996
4476
|
var inductionVariable = 0;
|
|
3997
4477
|
var last = this_0.length;
|
|
@@ -4003,21 +4483,21 @@
|
|
|
4003
4483
|
|
|
4004
4484
|
var coords = destination;
|
|
4005
4485
|
this.j7_1 = 1;
|
|
4006
|
-
var tmp0_safe_receiver = this.
|
|
4486
|
+
var tmp0_safe_receiver = this.c1l_1;
|
|
4007
4487
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
|
|
4008
4488
|
var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
|
|
4009
|
-
var tmp2_safe_receiver = this.
|
|
4489
|
+
var tmp2_safe_receiver = this.c1l_1;
|
|
4010
4490
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
|
|
4011
4491
|
var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
4012
|
-
var tmp4_safe_receiver = this.
|
|
4492
|
+
var tmp4_safe_receiver = this.c1l_1;
|
|
4013
4493
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
|
|
4014
4494
|
var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
|
|
4015
|
-
var tmp6_safe_receiver = this.
|
|
4495
|
+
var tmp6_safe_receiver = this.c1l_1;
|
|
4016
4496
|
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
|
|
4017
4497
|
var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
|
|
4018
|
-
var tmp8_safe_receiver = this.
|
|
4498
|
+
var tmp8_safe_receiver = this.c1l_1;
|
|
4019
4499
|
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
|
|
4020
|
-
suspendResult = this.
|
|
4500
|
+
suspendResult = this.b1l_1.f17(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
|
|
4021
4501
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4022
4502
|
return suspendResult;
|
|
4023
4503
|
}
|
|
@@ -4050,15 +4530,15 @@
|
|
|
4050
4530
|
}
|
|
4051
4531
|
while (true);
|
|
4052
4532
|
};
|
|
4053
|
-
protoOf(getElevationsAlong$slambda).
|
|
4054
|
-
var i = new getElevationsAlong$slambda(this.
|
|
4055
|
-
i.
|
|
4533
|
+
protoOf(getElevationsAlong$slambda).m19 = function ($this$promise, completion) {
|
|
4534
|
+
var i = new getElevationsAlong$slambda(this.a1l_1, this.b1l_1, this.c1l_1, completion);
|
|
4535
|
+
i.d1l_1 = $this$promise;
|
|
4056
4536
|
return i;
|
|
4057
4537
|
};
|
|
4058
4538
|
function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
|
|
4059
4539
|
var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
|
|
4060
4540
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
4061
|
-
return i.
|
|
4541
|
+
return i.e1l($this$promise, $completion);
|
|
4062
4542
|
}, 1);
|
|
4063
4543
|
}
|
|
4064
4544
|
var properties_initialized_ElevationJsApi_kt_8pvyh6;
|
|
@@ -4208,11 +4688,11 @@
|
|
|
4208
4688
|
function _get_nodeWebpDecoderPromise_$ref_s562t() {
|
|
4209
4689
|
return constructCallableReference(function () {
|
|
4210
4690
|
return get_nodeWebpDecoderPromise();
|
|
4211
|
-
}, 0, 0,
|
|
4691
|
+
}, 0, 0, 6);
|
|
4212
4692
|
}
|
|
4213
4693
|
function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
|
|
4214
4694
|
CoroutineImpl.call(this, resultContinuation);
|
|
4215
|
-
this.
|
|
4695
|
+
this.n1l_1 = url;
|
|
4216
4696
|
}
|
|
4217
4697
|
protoOf($fetchAndDecodeTileCOROUTINE$).r7 = function () {
|
|
4218
4698
|
var suspendResult = this.l7_1;
|
|
@@ -4224,14 +4704,14 @@
|
|
|
4224
4704
|
this.k7_1 = 4;
|
|
4225
4705
|
if (get_isNode()) {
|
|
4226
4706
|
this.j7_1 = 2;
|
|
4227
|
-
suspendResult = decodeNode(this.
|
|
4707
|
+
suspendResult = decodeNode(this.n1l_1, this);
|
|
4228
4708
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4229
4709
|
return suspendResult;
|
|
4230
4710
|
}
|
|
4231
4711
|
continue $sm;
|
|
4232
4712
|
} else {
|
|
4233
4713
|
this.j7_1 = 1;
|
|
4234
|
-
suspendResult = decodeBrowser(this.
|
|
4714
|
+
suspendResult = decodeBrowser(this.n1l_1, this);
|
|
4235
4715
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4236
4716
|
return suspendResult;
|
|
4237
4717
|
}
|
|
@@ -4239,15 +4719,15 @@
|
|
|
4239
4719
|
}
|
|
4240
4720
|
|
|
4241
4721
|
case 1:
|
|
4242
|
-
this.
|
|
4722
|
+
this.o1l_1 = suspendResult;
|
|
4243
4723
|
this.j7_1 = 3;
|
|
4244
4724
|
continue $sm;
|
|
4245
4725
|
case 2:
|
|
4246
|
-
this.
|
|
4726
|
+
this.o1l_1 = suspendResult;
|
|
4247
4727
|
this.j7_1 = 3;
|
|
4248
4728
|
continue $sm;
|
|
4249
4729
|
case 3:
|
|
4250
|
-
return this.
|
|
4730
|
+
return this.o1l_1;
|
|
4251
4731
|
case 4:
|
|
4252
4732
|
throw this.m7_1;
|
|
4253
4733
|
}
|
|
@@ -4264,8 +4744,8 @@
|
|
|
4264
4744
|
};
|
|
4265
4745
|
function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
4266
4746
|
CoroutineImpl.call(this, resultContinuation);
|
|
4267
|
-
this.
|
|
4268
|
-
this.
|
|
4747
|
+
this.x1l_1 = bytes;
|
|
4748
|
+
this.y1l_1 = sourceUrl;
|
|
4269
4749
|
}
|
|
4270
4750
|
protoOf($decodeTileBytesCOROUTINE$).r7 = function () {
|
|
4271
4751
|
var suspendResult = this.l7_1;
|
|
@@ -4277,14 +4757,14 @@
|
|
|
4277
4757
|
this.k7_1 = 4;
|
|
4278
4758
|
if (get_isNode()) {
|
|
4279
4759
|
this.j7_1 = 2;
|
|
4280
|
-
suspendResult = decodeBytesNode(this.
|
|
4760
|
+
suspendResult = decodeBytesNode(this.x1l_1, this.y1l_1, this);
|
|
4281
4761
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4282
4762
|
return suspendResult;
|
|
4283
4763
|
}
|
|
4284
4764
|
continue $sm;
|
|
4285
4765
|
} else {
|
|
4286
4766
|
this.j7_1 = 1;
|
|
4287
|
-
suspendResult = decodeBlob(blobOf(this.
|
|
4767
|
+
suspendResult = decodeBlob(blobOf(this.x1l_1), this.y1l_1, this);
|
|
4288
4768
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4289
4769
|
return suspendResult;
|
|
4290
4770
|
}
|
|
@@ -4292,15 +4772,15 @@
|
|
|
4292
4772
|
}
|
|
4293
4773
|
|
|
4294
4774
|
case 1:
|
|
4295
|
-
this.
|
|
4775
|
+
this.z1l_1 = suspendResult;
|
|
4296
4776
|
this.j7_1 = 3;
|
|
4297
4777
|
continue $sm;
|
|
4298
4778
|
case 2:
|
|
4299
|
-
this.
|
|
4779
|
+
this.z1l_1 = suspendResult;
|
|
4300
4780
|
this.j7_1 = 3;
|
|
4301
4781
|
continue $sm;
|
|
4302
4782
|
case 3:
|
|
4303
|
-
return this.
|
|
4783
|
+
return this.z1l_1;
|
|
4304
4784
|
case 4:
|
|
4305
4785
|
throw this.m7_1;
|
|
4306
4786
|
}
|
|
@@ -4317,7 +4797,7 @@
|
|
|
4317
4797
|
};
|
|
4318
4798
|
function $decodeNodeCOROUTINE$(url, resultContinuation) {
|
|
4319
4799
|
CoroutineImpl.call(this, resultContinuation);
|
|
4320
|
-
this.
|
|
4800
|
+
this.i1m_1 = url;
|
|
4321
4801
|
}
|
|
4322
4802
|
protoOf($decodeNodeCOROUTINE$).r7 = function () {
|
|
4323
4803
|
var suspendResult = this.l7_1;
|
|
@@ -4328,7 +4808,7 @@
|
|
|
4328
4808
|
case 0:
|
|
4329
4809
|
this.k7_1 = 4;
|
|
4330
4810
|
this.j7_1 = 1;
|
|
4331
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
4811
|
+
suspendResult = await_0(fetchUrlNode(this.i1m_1), this);
|
|
4332
4812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4333
4813
|
return suspendResult;
|
|
4334
4814
|
}
|
|
@@ -4336,7 +4816,7 @@
|
|
|
4336
4816
|
continue $sm;
|
|
4337
4817
|
case 1:
|
|
4338
4818
|
var res = suspendResult;
|
|
4339
|
-
requireOk(res, this.
|
|
4819
|
+
requireOk(res, this.i1m_1);
|
|
4340
4820
|
this.j7_1 = 2;
|
|
4341
4821
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
4342
4822
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4372,7 +4852,7 @@
|
|
|
4372
4852
|
};
|
|
4373
4853
|
function $decodeBrowserCOROUTINE$(url, resultContinuation) {
|
|
4374
4854
|
CoroutineImpl.call(this, resultContinuation);
|
|
4375
|
-
this.
|
|
4855
|
+
this.r1m_1 = url;
|
|
4376
4856
|
}
|
|
4377
4857
|
protoOf($decodeBrowserCOROUTINE$).r7 = function () {
|
|
4378
4858
|
var suspendResult = this.l7_1;
|
|
@@ -4383,7 +4863,7 @@
|
|
|
4383
4863
|
case 0:
|
|
4384
4864
|
this.k7_1 = 4;
|
|
4385
4865
|
this.j7_1 = 1;
|
|
4386
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
4866
|
+
suspendResult = await_0(fetchUrlBrowser(this.r1m_1), this);
|
|
4387
4867
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4388
4868
|
return suspendResult;
|
|
4389
4869
|
}
|
|
@@ -4391,7 +4871,7 @@
|
|
|
4391
4871
|
continue $sm;
|
|
4392
4872
|
case 1:
|
|
4393
4873
|
var res = suspendResult;
|
|
4394
|
-
requireOk(res, this.
|
|
4874
|
+
requireOk(res, this.r1m_1);
|
|
4395
4875
|
this.j7_1 = 2;
|
|
4396
4876
|
suspendResult = await_0(res.blob(), this);
|
|
4397
4877
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4402,7 +4882,7 @@
|
|
|
4402
4882
|
case 2:
|
|
4403
4883
|
var ARGUMENT = suspendResult;
|
|
4404
4884
|
this.j7_1 = 3;
|
|
4405
|
-
suspendResult = decodeBlob(ARGUMENT, this.
|
|
4885
|
+
suspendResult = decodeBlob(ARGUMENT, this.r1m_1, this);
|
|
4406
4886
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4407
4887
|
return suspendResult;
|
|
4408
4888
|
}
|
|
@@ -4426,8 +4906,8 @@
|
|
|
4426
4906
|
};
|
|
4427
4907
|
function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
4428
4908
|
CoroutineImpl.call(this, resultContinuation);
|
|
4429
|
-
this.
|
|
4430
|
-
this.
|
|
4909
|
+
this.a1n_1 = bytes;
|
|
4910
|
+
this.b1n_1 = sourceUrl;
|
|
4431
4911
|
}
|
|
4432
4912
|
protoOf($decodeBytesNodeCOROUTINE$).r7 = function () {
|
|
4433
4913
|
var suspendResult = this.l7_1;
|
|
@@ -4437,7 +4917,7 @@
|
|
|
4437
4917
|
switch (tmp) {
|
|
4438
4918
|
case 0:
|
|
4439
4919
|
this.k7_1 = 4;
|
|
4440
|
-
var view = this.
|
|
4920
|
+
var view = this.a1n_1;
|
|
4441
4921
|
var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
|
|
4442
4922
|
this.k7_1 = 2;
|
|
4443
4923
|
this.j7_1 = 1;
|
|
@@ -4448,7 +4928,7 @@
|
|
|
4448
4928
|
|
|
4449
4929
|
continue $sm;
|
|
4450
4930
|
case 1:
|
|
4451
|
-
this.
|
|
4931
|
+
this.c1n_1 = suspendResult;
|
|
4452
4932
|
this.k7_1 = 4;
|
|
4453
4933
|
this.j7_1 = 3;
|
|
4454
4934
|
continue $sm;
|
|
@@ -4458,7 +4938,7 @@
|
|
|
4458
4938
|
if (tmp_0 instanceof Error) {
|
|
4459
4939
|
var e = this.m7_1;
|
|
4460
4940
|
var tmp_1 = this;
|
|
4461
|
-
var this_0 = this.
|
|
4941
|
+
var this_0 = this.b1n_1;
|
|
4462
4942
|
var tmp_2;
|
|
4463
4943
|
if (charSequenceLength(this_0) === 0) {
|
|
4464
4944
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -4473,7 +4953,7 @@
|
|
|
4473
4953
|
|
|
4474
4954
|
case 3:
|
|
4475
4955
|
this.k7_1 = 4;
|
|
4476
|
-
var image = this.
|
|
4956
|
+
var image = this.c1n_1;
|
|
4477
4957
|
return rawTileFromJsquash(image);
|
|
4478
4958
|
case 4:
|
|
4479
4959
|
throw this.m7_1;
|
|
@@ -4491,8 +4971,8 @@
|
|
|
4491
4971
|
};
|
|
4492
4972
|
function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
|
|
4493
4973
|
CoroutineImpl.call(this, resultContinuation);
|
|
4494
|
-
this.
|
|
4495
|
-
this.
|
|
4974
|
+
this.l1n_1 = blob;
|
|
4975
|
+
this.m1n_1 = sourceUrl;
|
|
4496
4976
|
}
|
|
4497
4977
|
protoOf($decodeBlobCOROUTINE$).r7 = function () {
|
|
4498
4978
|
var suspendResult = this.l7_1;
|
|
@@ -4504,14 +4984,14 @@
|
|
|
4504
4984
|
this.k7_1 = 3;
|
|
4505
4985
|
this.k7_1 = 2;
|
|
4506
4986
|
this.j7_1 = 1;
|
|
4507
|
-
suspendResult = await_0(window.createImageBitmap(this.
|
|
4987
|
+
suspendResult = await_0(window.createImageBitmap(this.l1n_1), this);
|
|
4508
4988
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4509
4989
|
return suspendResult;
|
|
4510
4990
|
}
|
|
4511
4991
|
|
|
4512
4992
|
continue $sm;
|
|
4513
4993
|
case 1:
|
|
4514
|
-
this.
|
|
4994
|
+
this.n1n_1 = suspendResult;
|
|
4515
4995
|
this.k7_1 = 3;
|
|
4516
4996
|
this.j7_1 = 4;
|
|
4517
4997
|
continue $sm;
|
|
@@ -4521,7 +5001,7 @@
|
|
|
4521
5001
|
if (tmp_0 instanceof Error) {
|
|
4522
5002
|
var e = this.m7_1;
|
|
4523
5003
|
var tmp_1 = this;
|
|
4524
|
-
var this_0 = this.
|
|
5004
|
+
var this_0 = this.m1n_1;
|
|
4525
5005
|
var tmp_2;
|
|
4526
5006
|
if (charSequenceLength(this_0) === 0) {
|
|
4527
5007
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -4538,7 +5018,7 @@
|
|
|
4538
5018
|
throw this.m7_1;
|
|
4539
5019
|
case 4:
|
|
4540
5020
|
this.k7_1 = 3;
|
|
4541
|
-
var bitmap = this.
|
|
5021
|
+
var bitmap = this.n1n_1;
|
|
4542
5022
|
l$ret$3: do {
|
|
4543
5023
|
var tmp$ret$0;
|
|
4544
5024
|
l$ret$1: do {
|
|
@@ -4586,7 +5066,7 @@
|
|
|
4586
5066
|
};
|
|
4587
5067
|
function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
|
|
4588
5068
|
CoroutineImpl.call(this, resultContinuation);
|
|
4589
|
-
this.
|
|
5069
|
+
this.w1n_1 = buffer;
|
|
4590
5070
|
}
|
|
4591
5071
|
protoOf($decodeWebpNodeCOROUTINE$).r7 = function () {
|
|
4592
5072
|
var suspendResult = this.l7_1;
|
|
@@ -4605,7 +5085,7 @@
|
|
|
4605
5085
|
continue $sm;
|
|
4606
5086
|
case 1:
|
|
4607
5087
|
var decode = suspendResult;
|
|
4608
|
-
var resultPromise = decode(this.
|
|
5088
|
+
var resultPromise = decode(this.w1n_1);
|
|
4609
5089
|
this.j7_1 = 2;
|
|
4610
5090
|
suspendResult = await_0(resultPromise, this);
|
|
4611
5091
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4631,7 +5111,7 @@
|
|
|
4631
5111
|
};
|
|
4632
5112
|
function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
|
|
4633
5113
|
CoroutineImpl.call(this, resultContinuation);
|
|
4634
|
-
this.
|
|
5114
|
+
this.f1o_1 = url;
|
|
4635
5115
|
}
|
|
4636
5116
|
protoOf($fetchTileBytesCOROUTINE$).r7 = function () {
|
|
4637
5117
|
var suspendResult = this.l7_1;
|
|
@@ -4643,14 +5123,14 @@
|
|
|
4643
5123
|
this.k7_1 = 5;
|
|
4644
5124
|
if (get_isNode()) {
|
|
4645
5125
|
this.j7_1 = 2;
|
|
4646
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5126
|
+
suspendResult = await_0(fetchUrlNode(this.f1o_1), this);
|
|
4647
5127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4648
5128
|
return suspendResult;
|
|
4649
5129
|
}
|
|
4650
5130
|
continue $sm;
|
|
4651
5131
|
} else {
|
|
4652
5132
|
this.j7_1 = 1;
|
|
4653
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5133
|
+
suspendResult = await_0(fetchUrlBrowser(this.f1o_1), this);
|
|
4654
5134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4655
5135
|
return suspendResult;
|
|
4656
5136
|
}
|
|
@@ -4658,16 +5138,16 @@
|
|
|
4658
5138
|
}
|
|
4659
5139
|
|
|
4660
5140
|
case 1:
|
|
4661
|
-
this.
|
|
5141
|
+
this.g1o_1 = suspendResult;
|
|
4662
5142
|
this.j7_1 = 3;
|
|
4663
5143
|
continue $sm;
|
|
4664
5144
|
case 2:
|
|
4665
|
-
this.
|
|
5145
|
+
this.g1o_1 = suspendResult;
|
|
4666
5146
|
this.j7_1 = 3;
|
|
4667
5147
|
continue $sm;
|
|
4668
5148
|
case 3:
|
|
4669
|
-
var res = this.
|
|
4670
|
-
requireOk(res, this.
|
|
5149
|
+
var res = this.g1o_1;
|
|
5150
|
+
requireOk(res, this.f1o_1);
|
|
4671
5151
|
this.j7_1 = 4;
|
|
4672
5152
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
4673
5153
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4704,14 +5184,14 @@
|
|
|
4704
5184
|
function fetchAndDecodeTile$ref_1() {
|
|
4705
5185
|
var i = new fetchAndDecodeTile$ref();
|
|
4706
5186
|
return constructCallableReference(function (p0, $completion) {
|
|
4707
|
-
return i.
|
|
5187
|
+
return i.j17(p0, $completion);
|
|
4708
5188
|
}, 1, 1, 2, 'fetchAndDecodeTile');
|
|
4709
5189
|
}
|
|
4710
5190
|
function fetchTileBytes$ref_0() {
|
|
4711
5191
|
var i = new fetchTileBytes$ref();
|
|
4712
5192
|
return constructCallableReference(function (p0, $completion) {
|
|
4713
|
-
return i.
|
|
4714
|
-
}, 1, 1,
|
|
5193
|
+
return i.e1j(p0, $completion);
|
|
5194
|
+
}, 1, 1, 5, 'fetchTileBytes');
|
|
4715
5195
|
}
|
|
4716
5196
|
//region block: init
|
|
4717
5197
|
Distance_instance = new Distance();
|
|
@@ -4721,6 +5201,7 @@
|
|
|
4721
5201
|
ElevationSmoother_instance = new ElevationSmoother();
|
|
4722
5202
|
Flux_instance = new Flux();
|
|
4723
5203
|
Companion_instance_1 = new Companion_0();
|
|
5204
|
+
Key_instance = new Key();
|
|
4724
5205
|
//endregion
|
|
4725
5206
|
//region block: exports
|
|
4726
5207
|
function $jsExportAll$(_) {
|
|
@@ -4742,8 +5223,9 @@
|
|
|
4742
5223
|
_.$_$.d = Companion_getInstance_0;
|
|
4743
5224
|
_.$_$.e = LatLonElevation;
|
|
4744
5225
|
_.$_$.f = LatLon;
|
|
4745
|
-
_.$_$.g =
|
|
4746
|
-
_.$_$.h =
|
|
5226
|
+
_.$_$.g = TileFailureLog;
|
|
5227
|
+
_.$_$.h = Vector3D;
|
|
5228
|
+
_.$_$.i = provider;
|
|
4747
5229
|
//endregion
|
|
4748
5230
|
return _;
|
|
4749
5231
|
}));
|