@glandais/vcyclist-engine 6.5.2 → 6.7.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.
@@ -28,12 +28,12 @@
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.$_$.vb;
32
- var MutableEntry = kotlin_kotlin.$_$.y2;
31
+ var THROW_CCE = kotlin_kotlin.$_$.wb;
33
32
  var isInterface = kotlin_kotlin.$_$.f8;
34
33
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.q5;
35
34
  var initMetadataForLambda = kotlin_kotlin.$_$.c8;
36
35
  var constructCallableReference = kotlin_kotlin.$_$.n7;
36
+ var MutableEntry = kotlin_kotlin.$_$.y2;
37
37
  var emptyList = kotlin_kotlin.$_$.s3;
38
38
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u1;
39
39
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.o1;
@@ -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.$_$.lb;
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.$_$.ic;
56
+ var isNaN_0 = kotlin_kotlin.$_$.jc;
57
57
  var roundToLong = kotlin_kotlin.$_$.s8;
58
- var Long = kotlin_kotlin.$_$.qb;
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.$_$.kc;
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 Exception = kotlin_kotlin.$_$.nb;
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 Monotonic_instance = kotlin_kotlin.$_$.i1;
104
- var IllegalStateException = kotlin_kotlin.$_$.pb;
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,19 +140,18 @@
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);
144
151
  initMetadataForClass(FilterOptions, 'FilterOptions', FilterOptions);
145
152
  initMetadataForLambda(BatchCalculator$setElevations$slambda, CoroutineImpl, VOID, [1]);
146
- initMetadataForCoroutine($setElevationsCOROUTINE$, CoroutineImpl);
153
+ initMetadataForLambda(BatchCalculator$mapByTile$slambda, CoroutineImpl, VOID, [1]);
154
+ initMetadataForCoroutine($mapByTileCOROUTINE$, CoroutineImpl);
147
155
  initMetadataForCoroutine($getElevationsAlongCOROUTINE$, CoroutineImpl);
148
156
  initMetadataForClass(BatchCalculator, 'BatchCalculator', VOID, VOID, VOID, [4, 7]);
149
157
  initMetadataForClass(TileEncoding, 'TileEncoding', VOID, Enum);
@@ -153,13 +161,17 @@
153
161
  initMetadataForObject(Distance, 'Distance');
154
162
  initMetadataForObject(DouglasPeucker, 'DouglasPeucker');
155
163
  initMetadataForObject(EcefConverter, 'EcefConverter');
164
+ initMetadataForClass(UnreadableFlag, 'UnreadableFlag', UnreadableFlag);
156
165
  initMetadataForCoroutine($getElevationCOROUTINE$, CoroutineImpl);
166
+ initMetadataForCoroutine($readOwnCOROUTINE$, CoroutineImpl);
157
167
  initMetadataForCoroutine($getInterpolatedElevationCOROUTINE$, CoroutineImpl);
158
168
  initMetadataForCoroutine($elevationFromPixelCOROUTINE$, CoroutineImpl);
159
- initMetadataForClass(ElevationCalculator, 'ElevationCalculator', VOID, VOID, VOID, [3, 2, 1]);
169
+ initMetadataForClass(ElevationCalculator, 'ElevationCalculator', VOID, VOID, VOID, [3, 4, 2]);
160
170
  initMetadataForObject(ElevationFunctions, 'ElevationFunctions');
161
171
  initMetadataForLambda(ElevationProvider$calculator$slambda, CoroutineImpl, VOID, [2]);
162
172
  initMetadataForLambda(ElevationProvider$calculator$slambda_1, CoroutineImpl, VOID, [2]);
173
+ initMetadataForLambda(ElevationProvider$setElevationsWithOrigin$slambda, CoroutineImpl, VOID, [1]);
174
+ initMetadataForCoroutine($sampleCOROUTINE$, CoroutineImpl);
163
175
  initMetadataForClass(ElevationProvider, 'ElevationProvider', ElevationProvider_init_$Create$, VOID, VOID, [3, 2, 6]);
164
176
  initMetadataForFunctionReference(fetchAndDecodeTile$ref, KFunctionImpl, VOID, [1]);
165
177
  initMetadataForLambda(defaultTileFetcher$slambda, CoroutineImpl, VOID, [1]);
@@ -187,15 +199,28 @@
187
199
  initMetadataForCoroutine($loadCOROUTINE$, CoroutineImpl);
188
200
  initMetadataForClass(LruCache, 'LruCache', VOID, VOID, VOID, [1, 2, 0]);
189
201
  initMetadataForClass(RawTile, 'RawTile');
202
+ initMetadataForClass(TerrainSample, 'TerrainSample');
190
203
  initMetadataForCompanion(Companion_0);
204
+ initMetadataForClass(TerrainOrigin, 'TerrainOrigin', VOID, Enum);
205
+ initMetadataForCompanion(Companion_1);
191
206
  initMetadataForClass(Tile, 'Tile');
207
+ initMetadataForClass(Entry, 'Entry');
208
+ initMetadataForCompanion(Companion_2);
209
+ initMetadataForCoroutine($cachedCOROUTINE$, CoroutineImpl);
210
+ initMetadataForCoroutine($rememberCOROUTINE$, CoroutineImpl);
211
+ initMetadataForClass(UnreadableTiles, 'UnreadableTiles', VOID, VOID, VOID, [1, 2]);
212
+ initMetadataForClass(TileFailure, 'TileFailure');
213
+ initMetadataForObject(Key, 'Key');
214
+ initMetadataForCoroutine($recordCOROUTINE$, CoroutineImpl);
215
+ initMetadataForClass(TileFailureLog, 'TileFailureLog', TileFailureLog, AbstractCoroutineContextElement, VOID, [1]);
192
216
  initMetadataForFunctionReference(fetchAndDecodeTile$ref_0, KFunctionImpl, VOID, [1]);
193
217
  initMetadataForLambda(TileManager$cache$slambda, CoroutineImpl, VOID, [1]);
218
+ initMetadataForCoroutine($getTileCOROUTINE$, CoroutineImpl);
194
219
  initMetadataForClass(TileManager, 'TileManager', VOID, VOID, VOID, [1, 0]);
195
220
  initMetadataForClass(TileFetchException, 'TileFetchException', VOID, IllegalStateException);
196
221
  initMetadataForCoroutine($awaitTurnCOROUTINE$, CoroutineImpl);
197
222
  initMetadataForClass(RequestPacer, 'RequestPacer', VOID, VOID, VOID, [0]);
198
- initMetadataForClass(Key, 'Key');
223
+ initMetadataForClass(Key_0, 'Key');
199
224
  initMetadataForCoroutine($ofCOROUTINE$, CoroutineImpl);
200
225
  initMetadataForObject(HostPacers, 'HostPacers', VOID, VOID, VOID, [3]);
201
226
  initMetadataForFunctionReference(fetchTileBytes$ref, KFunctionImpl, VOID, [1]);
@@ -204,7 +229,7 @@
204
229
  initMetadataForClass(Pixel, 'Pixel');
205
230
  initMetadataForClass(TileCoordinatesFloat, 'TileCoordinatesFloat');
206
231
  initMetadataForClass(PixelFloat, 'PixelFloat');
207
- initMetadataForCompanion(Companion_1);
232
+ initMetadataForCompanion(Companion_3);
208
233
  initMetadataForClass(Vector3D, 'Vector3D');
209
234
  initMetadataForLambda(getElevation$slambda, CoroutineImpl, VOID, [1]);
210
235
  initMetadataForLambda(getElevationsAlong$slambda, CoroutineImpl, VOID, [1]);
@@ -276,24 +301,82 @@
276
301
  var asLong = numberToLong(d);
277
302
  return toNumber(asLong) === d ? asLong.toString() : d.toString();
278
303
  }
279
- function BatchCalculator$setElevations$slambda($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation) {
280
- this.pz_1 = $coordinates;
281
- this.qz_1 = this$0;
282
- this.rz_1 = $zoomLevel;
283
- this.sz_1 = $interpolation;
284
- this.tz_1 = $results;
304
+ function BatchCalculator$setElevations$slambda(this$0, $zoomLevel, $interpolation, resultContinuation) {
305
+ this.pz_1 = this$0;
306
+ this.qz_1 = $zoomLevel;
307
+ this.rz_1 = $interpolation;
285
308
  CoroutineImpl.call(this, resultContinuation);
286
309
  }
287
- protoOf(BatchCalculator$setElevations$slambda).yz = function (_destruct__k2r9zo, $completion) {
288
- var tmp = this.zz(_destruct__k2r9zo, $completion);
310
+ protoOf(BatchCalculator$setElevations$slambda).vz = function (coord, $completion) {
311
+ var tmp = this.wz(coord, $completion);
289
312
  tmp.l7_1 = Unit_instance;
290
313
  tmp.m7_1 = null;
291
314
  return tmp.r7();
292
315
  };
293
316
  protoOf(BatchCalculator$setElevations$slambda).z7 = function (p1, $completion) {
294
- return this.yz((!(p1 == null) ? isInterface(p1, MutableEntry) : false) ? p1 : THROW_CCE(), $completion);
317
+ return this.vz((!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE(), $completion);
295
318
  };
296
319
  protoOf(BatchCalculator$setElevations$slambda).r7 = function () {
320
+ var suspendResult = this.l7_1;
321
+ $sm: do
322
+ try {
323
+ var tmp = this.j7_1;
324
+ switch (tmp) {
325
+ case 0:
326
+ this.k7_1 = 2;
327
+ this.uz_1 = this.sz_1.xz();
328
+ this.tz_1 = this.sz_1.yz();
329
+ this.j7_1 = 1;
330
+ suspendResult = this.pz_1.zz_1.d10(this.sz_1, this.qz_1, this.rz_1, this);
331
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
332
+ return suspendResult;
333
+ }
334
+
335
+ continue $sm;
336
+ case 1:
337
+ var ARGUMENT = suspendResult;
338
+ return new LatLonElevation(this.uz_1, this.tz_1, ARGUMENT);
339
+ case 2:
340
+ throw this.m7_1;
341
+ }
342
+ } catch ($p) {
343
+ var e = $p;
344
+ if (this.k7_1 === 2) {
345
+ throw e;
346
+ } else {
347
+ this.j7_1 = this.k7_1;
348
+ this.m7_1 = e;
349
+ }
350
+ }
351
+ while (true);
352
+ };
353
+ protoOf(BatchCalculator$setElevations$slambda).wz = function (coord, completion) {
354
+ var i = new BatchCalculator$setElevations$slambda(this.pz_1, this.qz_1, this.rz_1, completion);
355
+ i.sz_1 = coord;
356
+ return i;
357
+ };
358
+ function BatchCalculator$setElevations$slambda_0(this$0, $zoomLevel, $interpolation, resultContinuation) {
359
+ var i = new BatchCalculator$setElevations$slambda(this$0, $zoomLevel, $interpolation, resultContinuation);
360
+ return constructCallableReference(function (coord, $completion) {
361
+ return i.vz(coord, $completion);
362
+ }, 1);
363
+ }
364
+ function BatchCalculator$mapByTile$slambda($results, $read, $coordinates, resultContinuation) {
365
+ this.m10_1 = $results;
366
+ this.n10_1 = $read;
367
+ this.o10_1 = $coordinates;
368
+ CoroutineImpl.call(this, resultContinuation);
369
+ }
370
+ protoOf(BatchCalculator$mapByTile$slambda).s10 = function (_destruct__k2r9zo, $completion) {
371
+ var tmp = this.t10(_destruct__k2r9zo, $completion);
372
+ tmp.l7_1 = Unit_instance;
373
+ tmp.m7_1 = null;
374
+ return tmp.r7();
375
+ };
376
+ protoOf(BatchCalculator$mapByTile$slambda).z7 = function (p1, $completion) {
377
+ return this.s10((!(p1 == null) ? isInterface(p1, MutableEntry) : false) ? p1 : THROW_CCE(), $completion);
378
+ };
379
+ protoOf(BatchCalculator$mapByTile$slambda).r7 = function () {
297
380
  var suspendResult = this.l7_1;
298
381
  $sm: do
299
382
  try {
@@ -301,28 +384,27 @@
301
384
  switch (tmp) {
302
385
  case 0:
303
386
  this.k7_1 = 4;
304
- var indices = this.uz_1.q1();
305
- this.xz_1 = indices.l();
387
+ var indices = this.p10_1.q1();
388
+ this.r10_1 = indices.l();
306
389
  this.j7_1 = 1;
307
390
  continue $sm;
308
391
  case 1:
309
- if (!this.xz_1.m()) {
392
+ if (!this.r10_1.m()) {
310
393
  this.j7_1 = 3;
311
394
  continue $sm;
312
395
  }
313
396
 
314
- this.wz_1 = this.xz_1.n();
315
- this.vz_1 = this.pz_1.p(this.wz_1);
397
+ this.q10_1 = this.r10_1.n();
316
398
  this.j7_1 = 2;
317
- suspendResult = this.qz_1.a10_1.e10(this.vz_1, this.rz_1, this.sz_1, this);
399
+ suspendResult = this.n10_1(this.o10_1.p(this.q10_1), this);
318
400
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
319
401
  return suspendResult;
320
402
  }
321
403
 
322
404
  continue $sm;
323
405
  case 2:
324
- var ele = suspendResult;
325
- this.tz_1[this.wz_1] = new LatLonElevation(this.vz_1.f10(), this.vz_1.g10(), ele);
406
+ var ARGUMENT = suspendResult;
407
+ this.m10_1[this.q10_1] = ARGUMENT;
326
408
  this.j7_1 = 1;
327
409
  continue $sm;
328
410
  case 3:
@@ -341,26 +423,26 @@
341
423
  }
342
424
  while (true);
343
425
  };
344
- protoOf(BatchCalculator$setElevations$slambda).zz = function (_destruct__k2r9zo, completion) {
345
- var i = new BatchCalculator$setElevations$slambda(this.pz_1, this.qz_1, this.rz_1, this.sz_1, this.tz_1, completion);
346
- i.uz_1 = _destruct__k2r9zo;
426
+ protoOf(BatchCalculator$mapByTile$slambda).t10 = function (_destruct__k2r9zo, completion) {
427
+ var i = new BatchCalculator$mapByTile$slambda(this.m10_1, this.n10_1, this.o10_1, completion);
428
+ i.p10_1 = _destruct__k2r9zo;
347
429
  return i;
348
430
  };
349
- function BatchCalculator$setElevations$slambda_0($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation) {
350
- var i = new BatchCalculator$setElevations$slambda($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation);
431
+ function BatchCalculator$mapByTile$slambda_0($results, $read, $coordinates, resultContinuation) {
432
+ var i = new BatchCalculator$mapByTile$slambda($results, $read, $coordinates, resultContinuation);
351
433
  return constructCallableReference(function (_destruct__k2r9zo, $completion) {
352
- return i.yz(_destruct__k2r9zo, $completion);
434
+ return i.s10(_destruct__k2r9zo, $completion);
353
435
  }, 1);
354
436
  }
355
- function $setElevationsCOROUTINE$(_this__u8e3s4, coordinates, zoomLevel, interpolation, maxParallelTiles, resultContinuation) {
437
+ function $mapByTileCOROUTINE$(_this__u8e3s4, coordinates, zoomLevel, maxParallelTiles, read, resultContinuation) {
356
438
  CoroutineImpl.call(this, resultContinuation);
357
- this.p10_1 = _this__u8e3s4;
358
- this.q10_1 = coordinates;
359
- this.r10_1 = zoomLevel;
360
- this.s10_1 = interpolation;
361
- this.t10_1 = maxParallelTiles;
439
+ this.c11_1 = _this__u8e3s4;
440
+ this.d11_1 = coordinates;
441
+ this.e11_1 = zoomLevel;
442
+ this.f11_1 = maxParallelTiles;
443
+ this.g11_1 = read;
362
444
  }
363
- protoOf($setElevationsCOROUTINE$).r7 = function () {
445
+ protoOf($mapByTileCOROUTINE$).r7 = function () {
364
446
  var suspendResult = this.l7_1;
365
447
  $sm: do
366
448
  try {
@@ -368,20 +450,20 @@
368
450
  switch (tmp) {
369
451
  case 0:
370
452
  this.k7_1 = 2;
371
- if (this.q10_1.r())
453
+ if (this.d11_1.r())
372
454
  return emptyList();
373
455
  var tmp_0 = this;
374
- var size = this.q10_1.o();
375
- tmp_0.u10_1 = Array(size);
456
+ var size = this.d11_1.o();
457
+ tmp_0.h11_1 = Array(size);
376
458
  var byTile = LinkedHashMap_init_$Create$();
377
- var iterator = this.q10_1.l();
459
+ var iterator = this.d11_1.l();
378
460
  var index = 0;
379
461
  while (iterator.m()) {
380
462
  var i = index;
381
463
  index = index + 1 | 0;
382
464
  var p = iterator.n();
383
- var tile = ElevationFunctions_instance.x10(p, this.r10_1);
384
- var key = '' + tile.a11_1 + '/' + tile.y10_1 + '/' + tile.z10_1;
465
+ var tile = ElevationFunctions_instance.k11(p, this.e11_1);
466
+ var key = '' + tile.n11_1 + '/' + tile.l11_1 + '/' + tile.m11_1;
385
467
  var value = byTile.t1(key);
386
468
  var tmp_1;
387
469
  if (value == null) {
@@ -397,14 +479,14 @@
397
479
  this.j7_1 = 1;
398
480
  var tmp_2 = Flux_instance;
399
481
  var tmp_3 = byTile.w1();
400
- suspendResult = tmp_2.b11(tmp_3, this.t10_1, BatchCalculator$setElevations$slambda_0(this.q10_1, this.p10_1, this.r10_1, this.s10_1, this.u10_1, null), this);
482
+ suspendResult = tmp_2.o11(tmp_3, this.f11_1, BatchCalculator$mapByTile$slambda_0(this.h11_1, this.g11_1, this.d11_1, null), this);
401
483
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
402
484
  return suspendResult;
403
485
  }
404
486
 
405
487
  continue $sm;
406
488
  case 1:
407
- var tmp_4 = toList(this.u10_1);
489
+ var tmp_4 = toList(this.h11_1);
408
490
  return isInterface(tmp_4, KtList) ? tmp_4 : THROW_CCE();
409
491
  case 2:
410
492
  throw this.m7_1;
@@ -422,14 +504,14 @@
422
504
  };
423
505
  function $getElevationsAlongCOROUTINE$(_this__u8e3s4, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, resultContinuation) {
424
506
  CoroutineImpl.call(this, resultContinuation);
425
- this.k11_1 = _this__u8e3s4;
426
- this.l11_1 = path;
427
- this.m11_1 = zoomLevel;
428
- this.n11_1 = step;
429
- this.o11_1 = minDistance;
430
- this.p11_1 = interpolation;
431
- this.q11_1 = smoothingOptions;
432
- this.r11_1 = filterOptions;
507
+ this.x11_1 = _this__u8e3s4;
508
+ this.y11_1 = path;
509
+ this.z11_1 = zoomLevel;
510
+ this.a12_1 = step;
511
+ this.b12_1 = minDistance;
512
+ this.c12_1 = interpolation;
513
+ this.d12_1 = smoothingOptions;
514
+ this.e12_1 = filterOptions;
433
515
  }
434
516
  protoOf($getElevationsAlongCOROUTINE$).r7 = function () {
435
517
  var suspendResult = this.l7_1;
@@ -439,19 +521,19 @@
439
521
  switch (tmp) {
440
522
  case 0:
441
523
  this.k7_1 = 2;
442
- if (!(this.l11_1.o() >= 2)) {
524
+ if (!(this.y11_1.o() >= 2)) {
443
525
  var message = 'Path must contain at least 2 coordinates';
444
526
  throw IllegalArgumentException_init_$Create$(toString(message));
445
527
  }
446
528
 
447
- if (!(this.n11_1 > 1.0)) {
448
- var message_0 = 'Step is too small: ' + formatNumber(this.k11_1, this.n11_1) + ' meters';
529
+ if (!(this.a12_1 > 1.0)) {
530
+ var message_0 = 'Step is too small: ' + formatNumber(this.x11_1, this.a12_1) + ' meters';
449
531
  throw IllegalArgumentException_init_$Create$(toString(message_0));
450
532
  }
451
533
 
452
- var densified = this.k11_1.s11(this.l11_1, this.n11_1, this.o11_1);
534
+ var densified = this.x11_1.f12(this.y11_1, this.a12_1, this.b12_1);
453
535
  this.j7_1 = 1;
454
- suspendResult = this.k11_1.t11(densified, this.m11_1, this.p11_1, VOID, this);
536
+ suspendResult = this.x11_1.g12(densified, this.z11_1, this.c12_1, VOID, this);
455
537
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
456
538
  return suspendResult;
457
539
  }
@@ -460,7 +542,7 @@
460
542
  case 1:
461
543
  var withElevation = suspendResult;
462
544
  var tmp_0;
463
- var tmp1_safe_receiver = this.q11_1;
545
+ var tmp1_safe_receiver = this.d12_1;
464
546
  if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.dz_1) === true) {
465
547
  tmp_0 = withElevation.o() >= 3;
466
548
  } else {
@@ -470,12 +552,12 @@
470
552
  if (tmp_0) {
471
553
  var tmp_1 = ElevationSmoother_instance;
472
554
  var tmp_2 = withElevation;
473
- var tmp0_elvis_lhs = this.q11_1.cz_1;
474
- withElevation = tmp_1.u11(tmp_2, tmp0_elvis_lhs == null ? 50.0 : tmp0_elvis_lhs);
555
+ var tmp0_elvis_lhs = this.d12_1.cz_1;
556
+ withElevation = tmp_1.h12(tmp_2, tmp0_elvis_lhs == null ? 50.0 : tmp0_elvis_lhs);
475
557
  }
476
558
 
477
559
  var tmp_3;
478
- var tmp4_safe_receiver = this.r11_1;
560
+ var tmp4_safe_receiver = this.e12_1;
479
561
  if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.gz_1) === true) {
480
562
  tmp_3 = withElevation.o() > 2;
481
563
  } else {
@@ -485,10 +567,10 @@
485
567
  if (tmp_3) {
486
568
  var tmp_4 = DouglasPeucker_instance;
487
569
  var tmp_5 = withElevation;
488
- var tmp2_elvis_lhs = this.r11_1.ez_1;
570
+ var tmp2_elvis_lhs = this.e12_1.ez_1;
489
571
  var tmp_6 = tmp2_elvis_lhs == null ? 10.0 : tmp2_elvis_lhs;
490
- var tmp3_elvis_lhs = this.r11_1.fz_1;
491
- withElevation = tmp_4.v11(tmp_5, tmp_6, tmp3_elvis_lhs == null ? 3.0 : tmp3_elvis_lhs);
572
+ var tmp3_elvis_lhs = this.e12_1.fz_1;
573
+ withElevation = tmp_4.i12(tmp_5, tmp_6, tmp3_elvis_lhs == null ? 3.0 : tmp3_elvis_lhs);
492
574
  }
493
575
 
494
576
  return withElevation;
@@ -507,25 +589,34 @@
507
589
  while (true);
508
590
  };
509
591
  function BatchCalculator(calculator) {
510
- this.a10_1 = calculator;
592
+ this.zz_1 = calculator;
511
593
  }
512
- protoOf(BatchCalculator).w11 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) {
513
- var tmp = new $setElevationsCOROUTINE$(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
594
+ protoOf(BatchCalculator).j12 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) {
595
+ if (coordinates.r())
596
+ return emptyList();
597
+ return this.k12(coordinates, zoomLevel, maxParallelTiles, BatchCalculator$setElevations$slambda_0(this, zoomLevel, interpolation, null), $completion);
598
+ };
599
+ protoOf(BatchCalculator).g12 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion, $super) {
600
+ maxParallelTiles = maxParallelTiles === VOID ? 10 : maxParallelTiles;
601
+ return $super === VOID ? this.j12(coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) : $super.j12.call(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
602
+ };
603
+ protoOf(BatchCalculator).k12 = function (coordinates, zoomLevel, maxParallelTiles, read, $completion) {
604
+ var tmp = new $mapByTileCOROUTINE$(this, coordinates, zoomLevel, maxParallelTiles, read, $completion);
514
605
  tmp.l7_1 = Unit_instance;
515
606
  tmp.m7_1 = null;
516
607
  return tmp.r7();
517
608
  };
518
- protoOf(BatchCalculator).t11 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion, $super) {
609
+ protoOf(BatchCalculator).l12 = function (coordinates, zoomLevel, maxParallelTiles, read, $completion, $super) {
519
610
  maxParallelTiles = maxParallelTiles === VOID ? 10 : maxParallelTiles;
520
- return $super === VOID ? this.w11(coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) : $super.w11.call(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
611
+ return $super === VOID ? this.k12(coordinates, zoomLevel, maxParallelTiles, read, $completion) : $super.k12.call(this, coordinates, zoomLevel, maxParallelTiles, read, $completion);
521
612
  };
522
- protoOf(BatchCalculator).x11 = function (path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
613
+ protoOf(BatchCalculator).m12 = function (path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
523
614
  var tmp = new $getElevationsAlongCOROUTINE$(this, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
524
615
  tmp.l7_1 = Unit_instance;
525
616
  tmp.m7_1 = null;
526
617
  return tmp.r7();
527
618
  };
528
- protoOf(BatchCalculator).s11 = function (path, step, minDistance) {
619
+ protoOf(BatchCalculator).f12 = function (path, step, minDistance) {
529
620
  if (path.r())
530
621
  return emptyList();
531
622
  var out = ArrayList_init_$Create$_0(imul(path.o(), 2));
@@ -540,10 +631,10 @@
540
631
  var i = inductionVariable;
541
632
  inductionVariable = inductionVariable + 1 | 0;
542
633
  var b = path.p(i);
543
- var d = Distance_instance.y11(anchor, b);
634
+ var d = Distance_instance.n12(anchor, b);
544
635
  if (d < minDistance)
545
636
  continue $l$loop;
546
- var between = this.z11(anchor, b, step, d);
637
+ var between = this.o12(anchor, b, step, d);
547
638
  var inductionVariable_0 = 1;
548
639
  var last_0 = between.o();
549
640
  if (inductionVariable_0 < last_0)
@@ -560,15 +651,15 @@
560
651
  while (inductionVariable < last);
561
652
  return out;
562
653
  };
563
- protoOf(BatchCalculator).z11 = function (a, b, step, distance) {
654
+ protoOf(BatchCalculator).o12 = function (a, b, step, distance) {
564
655
  if (distance <= step)
565
656
  return listOf([a, b]);
566
657
  var numSteps = numberToInt(distance / step);
567
658
  var out = ArrayList_init_$Create$_0(numSteps + 2 | 0);
568
659
  // Inline function 'kotlin.collections.plusAssign' call
569
660
  out.k(a);
570
- var latDiff = b.f10() - a.f10();
571
- var lonDiff = b.g10() - a.g10();
661
+ var latDiff = b.xz() - a.xz();
662
+ var lonDiff = b.yz() - a.yz();
572
663
  var inductionVariable = 1;
573
664
  if (inductionVariable <= numSteps)
574
665
  do {
@@ -576,7 +667,7 @@
576
667
  inductionVariable = inductionVariable + 1 | 0;
577
668
  var f = i * step / distance;
578
669
  // Inline function 'kotlin.collections.plusAssign' call
579
- var element = new LatLon(a.f10() + latDiff * f, a.g10() + lonDiff * f);
670
+ var element = new LatLon(a.xz() + latDiff * f, a.yz() + lonDiff * f);
580
671
  out.k(element);
581
672
  }
582
673
  while (!(i === numSteps));
@@ -668,26 +759,26 @@
668
759
  }
669
760
  function LatLon(latitude, longitude, elevation) {
670
761
  elevation = elevation === VOID ? null : elevation;
671
- this.a12_1 = latitude;
672
- this.b12_1 = longitude;
673
- this.c12_1 = elevation;
762
+ this.p12_1 = latitude;
763
+ this.q12_1 = longitude;
764
+ this.r12_1 = elevation;
674
765
  }
675
- protoOf(LatLon).f10 = function () {
676
- return this.a12_1;
766
+ protoOf(LatLon).xz = function () {
767
+ return this.p12_1;
677
768
  };
678
- protoOf(LatLon).g10 = function () {
679
- return this.b12_1;
769
+ protoOf(LatLon).yz = function () {
770
+ return this.q12_1;
680
771
  };
681
- protoOf(LatLon).d12 = function () {
682
- return this.c12_1;
772
+ protoOf(LatLon).s12 = function () {
773
+ return this.r12_1;
683
774
  };
684
775
  protoOf(LatLon).toString = function () {
685
- return 'LatLon(latitude=' + this.a12_1 + ', longitude=' + this.b12_1 + ', elevation=' + this.c12_1 + ')';
776
+ return 'LatLon(latitude=' + this.p12_1 + ', longitude=' + this.q12_1 + ', elevation=' + this.r12_1 + ')';
686
777
  };
687
778
  protoOf(LatLon).hashCode = function () {
688
- var result = getNumberHashCode(this.a12_1);
689
- result = imul(result, 31) + getNumberHashCode(this.b12_1) | 0;
690
- result = imul(result, 31) + (this.c12_1 == null ? 0 : getNumberHashCode(this.c12_1)) | 0;
779
+ var result = getNumberHashCode(this.p12_1);
780
+ result = imul(result, 31) + getNumberHashCode(this.q12_1) | 0;
781
+ result = imul(result, 31) + (this.r12_1 == null ? 0 : getNumberHashCode(this.r12_1)) | 0;
691
782
  return result;
692
783
  };
693
784
  protoOf(LatLon).equals = function (other) {
@@ -695,37 +786,37 @@
695
786
  return true;
696
787
  if (!(other instanceof LatLon))
697
788
  return false;
698
- if (!equals(this.a12_1, other.a12_1))
789
+ if (!equals(this.p12_1, other.p12_1))
699
790
  return false;
700
- if (!equals(this.b12_1, other.b12_1))
791
+ if (!equals(this.q12_1, other.q12_1))
701
792
  return false;
702
- if (!equals(this.c12_1, other.c12_1))
793
+ if (!equals(this.r12_1, other.r12_1))
703
794
  return false;
704
795
  return true;
705
796
  };
706
797
  function Coordinates() {
707
798
  }
708
799
  function LatLonElevation(latitude, longitude, elevation) {
709
- this.e12_1 = latitude;
710
- this.f12_1 = longitude;
711
- this.g12_1 = elevation;
800
+ this.t12_1 = latitude;
801
+ this.u12_1 = longitude;
802
+ this.v12_1 = elevation;
712
803
  }
713
- protoOf(LatLonElevation).f10 = function () {
714
- return this.e12_1;
804
+ protoOf(LatLonElevation).xz = function () {
805
+ return this.t12_1;
715
806
  };
716
- protoOf(LatLonElevation).g10 = function () {
717
- return this.f12_1;
807
+ protoOf(LatLonElevation).yz = function () {
808
+ return this.u12_1;
718
809
  };
719
- protoOf(LatLonElevation).d12 = function () {
720
- return this.g12_1;
810
+ protoOf(LatLonElevation).s12 = function () {
811
+ return this.v12_1;
721
812
  };
722
813
  protoOf(LatLonElevation).toString = function () {
723
- return 'LatLonElevation(latitude=' + this.e12_1 + ', longitude=' + this.f12_1 + ', elevation=' + this.g12_1 + ')';
814
+ return 'LatLonElevation(latitude=' + this.t12_1 + ', longitude=' + this.u12_1 + ', elevation=' + this.v12_1 + ')';
724
815
  };
725
816
  protoOf(LatLonElevation).hashCode = function () {
726
- var result = getNumberHashCode(this.e12_1);
727
- result = imul(result, 31) + getNumberHashCode(this.f12_1) | 0;
728
- result = imul(result, 31) + getNumberHashCode(this.g12_1) | 0;
817
+ var result = getNumberHashCode(this.t12_1);
818
+ result = imul(result, 31) + getNumberHashCode(this.u12_1) | 0;
819
+ result = imul(result, 31) + getNumberHashCode(this.v12_1) | 0;
729
820
  return result;
730
821
  };
731
822
  protoOf(LatLonElevation).equals = function (other) {
@@ -733,21 +824,21 @@
733
824
  return true;
734
825
  if (!(other instanceof LatLonElevation))
735
826
  return false;
736
- if (!equals(this.e12_1, other.e12_1))
827
+ if (!equals(this.t12_1, other.t12_1))
737
828
  return false;
738
- if (!equals(this.f12_1, other.f12_1))
829
+ if (!equals(this.u12_1, other.u12_1))
739
830
  return false;
740
- if (!equals(this.g12_1, other.g12_1))
831
+ if (!equals(this.v12_1, other.v12_1))
741
832
  return false;
742
833
  return true;
743
834
  };
744
835
  function Distance() {
745
836
  }
746
- protoOf(Distance).y11 = function (coord1, coord2) {
747
- var lat1Rad = coord1.f10() * 0.017453292519943295;
748
- var lat2Rad = coord2.f10() * 0.017453292519943295;
749
- var deltaLat = (coord2.f10() - coord1.f10()) * 0.017453292519943295;
750
- var deltaLon = (coord2.g10() - coord1.g10()) * 0.017453292519943295;
837
+ protoOf(Distance).n12 = function (coord1, coord2) {
838
+ var lat1Rad = coord1.xz() * 0.017453292519943295;
839
+ var lat2Rad = coord2.xz() * 0.017453292519943295;
840
+ var deltaLat = (coord2.xz() - coord1.xz()) * 0.017453292519943295;
841
+ var deltaLon = (coord2.yz() - coord1.yz()) * 0.017453292519943295;
751
842
  // Inline function 'kotlin.math.sin' call
752
843
  var x = deltaLat / 2.0;
753
844
  var sinHalfLat = Math.sin(x);
@@ -769,7 +860,7 @@
769
860
  var c = 2.0 * Math.atan2(tmp0, x_2);
770
861
  return 6371000.0 * c;
771
862
  };
772
- protoOf(Distance).h12 = function (points) {
863
+ protoOf(Distance).w12 = function (points) {
773
864
  if (points.r()) {
774
865
  // Inline function 'kotlin.doubleArrayOf' call
775
866
  return new Float64Array([0.0]);
@@ -781,7 +872,7 @@
781
872
  do {
782
873
  var i = inductionVariable;
783
874
  inductionVariable = inductionVariable + 1 | 0;
784
- out[i] = out[i - 1 | 0] + this.y11(points.p(i - 1 | 0), points.p(i));
875
+ out[i] = out[i - 1 | 0] + this.n12(points.p(i - 1 | 0), points.p(i));
785
876
  }
786
877
  while (inductionVariable < last);
787
878
  return out;
@@ -800,7 +891,7 @@
800
891
  do {
801
892
  var i = inductionVariable;
802
893
  inductionVariable = inductionVariable + 1 | 0;
803
- var d = points.p(i).l12(first, last);
894
+ var d = points.p(i).a13(first, last);
804
895
  if (d > maxDistance) {
805
896
  maxDistance = d;
806
897
  maxIndex = i;
@@ -819,7 +910,7 @@
819
910
  }
820
911
  function DouglasPeucker() {
821
912
  }
822
- protoOf(DouglasPeucker).v11 = function (points, tolerance, zExaggeration) {
913
+ protoOf(DouglasPeucker).i12 = function (points, tolerance, zExaggeration) {
823
914
  if (points.o() <= 2)
824
915
  return toList_0(points);
825
916
  // Inline function 'kotlin.collections.map' call
@@ -828,12 +919,12 @@
828
919
  var _iterator__ex2g4s = points.l();
829
920
  while (_iterator__ex2g4s.m()) {
830
921
  var item = _iterator__ex2g4s.n();
831
- var tmp$ret$2 = EcefConverter_instance.m12(item, zExaggeration);
922
+ var tmp$ret$2 = EcefConverter_instance.b13(item, zExaggeration);
832
923
  destination.k(tmp$ret$2);
833
924
  }
834
925
  var ecef = destination;
835
926
  // Inline function 'kotlin.collections.map' call
836
- var this_0 = this.n12(ecef, tolerance);
927
+ var this_0 = this.c13(ecef, tolerance);
837
928
  // Inline function 'kotlin.collections.mapTo' call
838
929
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
839
930
  var _iterator__ex2g4s_0 = this_0.l();
@@ -844,7 +935,7 @@
844
935
  }
845
936
  return destination_0;
846
937
  };
847
- protoOf(DouglasPeucker).n12 = function (points, tolerance) {
938
+ protoOf(DouglasPeucker).c13 = function (points, tolerance) {
848
939
  if (points.o() <= 2)
849
940
  return toList_0(get_indices(points));
850
941
  var lastIndex = get_lastIndex(points);
@@ -865,10 +956,10 @@
865
956
  }
866
957
  function EcefConverter() {
867
958
  }
868
- protoOf(EcefConverter).m12 = function (coordinates, zExaggeration) {
869
- var latRad = coordinates.f10() * 0.017453292519943295;
870
- var lonRad = coordinates.g10() * 0.017453292519943295;
871
- var tmp0_elvis_lhs = coordinates.d12();
959
+ protoOf(EcefConverter).b13 = function (coordinates, zExaggeration) {
960
+ var latRad = coordinates.xz() * 0.017453292519943295;
961
+ var lonRad = coordinates.yz() * 0.017453292519943295;
962
+ var tmp0_elvis_lhs = coordinates.s12();
872
963
  var elevationExaggerated = zExaggeration * (tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
873
964
  // Inline function 'kotlin.math.sin' call
874
965
  var sinLat = Math.sin(latRad);
@@ -890,24 +981,27 @@
890
981
  function EcefConverter_getInstance() {
891
982
  return EcefConverter_instance;
892
983
  }
893
- function getInterpolatedElevation($this, coords, zoomLevel, $completion) {
894
- var tmp = new $getInterpolatedElevationCOROUTINE$($this, coords, zoomLevel, $completion);
984
+ function UnreadableFlag() {
985
+ this.d13_1 = false;
986
+ }
987
+ function getInterpolatedElevation($this, coords, zoomLevel, touched, $completion) {
988
+ var tmp = new $getInterpolatedElevationCOROUTINE$($this, coords, zoomLevel, touched, $completion);
895
989
  tmp.l7_1 = Unit_instance;
896
990
  tmp.m7_1 = null;
897
991
  return tmp.r7();
898
992
  }
899
- function elevationFromPixel($this, pixel, $completion) {
900
- var tmp = new $elevationFromPixelCOROUTINE$($this, pixel, $completion);
993
+ function elevationFromPixel($this, pixel, touched, $completion) {
994
+ var tmp = new $elevationFromPixelCOROUTINE$($this, pixel, touched, $completion);
901
995
  tmp.l7_1 = Unit_instance;
902
996
  tmp.m7_1 = null;
903
997
  return tmp.r7();
904
998
  }
905
999
  function $getElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, interpolation, resultContinuation) {
906
1000
  CoroutineImpl.call(this, resultContinuation);
907
- this.b14_1 = _this__u8e3s4;
908
- this.c14_1 = coords;
909
- this.d14_1 = zoomLevel;
910
- this.e14_1 = interpolation;
1001
+ this.t14_1 = _this__u8e3s4;
1002
+ this.u14_1 = coords;
1003
+ this.v14_1 = zoomLevel;
1004
+ this.w14_1 = interpolation;
911
1005
  }
912
1006
  protoOf($getElevationCOROUTINE$).r7 = function () {
913
1007
  var suspendResult = this.l7_1;
@@ -916,19 +1010,81 @@
916
1010
  var tmp = this.j7_1;
917
1011
  switch (tmp) {
918
1012
  case 0:
919
- this.k7_1 = 8;
920
1013
  this.k7_1 = 4;
921
- if (this.e14_1) {
1014
+ this.j7_1 = 1;
1015
+ suspendResult = this.t14_1.y14(this.u14_1, this.v14_1, this.w14_1, null, this);
1016
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1017
+ return suspendResult;
1018
+ }
1019
+
1020
+ continue $sm;
1021
+ case 1:
1022
+ var own = suspendResult;
1023
+ if (!isNaN_0(own))
1024
+ return own;
1025
+ var tmp0_safe_receiver = this.t14_1.c10_1;
1026
+ if (tmp0_safe_receiver == null) {
1027
+ this.x14_1 = null;
1028
+ this.j7_1 = 3;
1029
+ continue $sm;
1030
+ } else {
1031
+ this.j7_1 = 2;
1032
+ suspendResult = tmp0_safe_receiver(this.u14_1, this.w14_1, this);
1033
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1034
+ return suspendResult;
1035
+ }
1036
+ continue $sm;
1037
+ }
1038
+
1039
+ case 2:
1040
+ this.x14_1 = suspendResult;
1041
+ this.j7_1 = 3;
1042
+ continue $sm;
1043
+ case 3:
1044
+ var tmp1_elvis_lhs = this.x14_1;
1045
+ return tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs;
1046
+ case 4:
1047
+ throw this.m7_1;
1048
+ }
1049
+ } catch ($p) {
1050
+ var e = $p;
1051
+ if (this.k7_1 === 4) {
1052
+ throw e;
1053
+ } else {
1054
+ this.j7_1 = this.k7_1;
1055
+ this.m7_1 = e;
1056
+ }
1057
+ }
1058
+ while (true);
1059
+ };
1060
+ function $readOwnCOROUTINE$(_this__u8e3s4, coords, zoomLevel, interpolation, touched, resultContinuation) {
1061
+ CoroutineImpl.call(this, resultContinuation);
1062
+ this.h15_1 = _this__u8e3s4;
1063
+ this.i15_1 = coords;
1064
+ this.j15_1 = zoomLevel;
1065
+ this.k15_1 = interpolation;
1066
+ this.l15_1 = touched;
1067
+ }
1068
+ protoOf($readOwnCOROUTINE$).r7 = function () {
1069
+ var suspendResult = this.l7_1;
1070
+ $sm: do
1071
+ try {
1072
+ var tmp = this.j7_1;
1073
+ switch (tmp) {
1074
+ case 0:
1075
+ this.k7_1 = 5;
1076
+ this.k7_1 = 4;
1077
+ if (this.k15_1) {
922
1078
  this.j7_1 = 2;
923
- suspendResult = getInterpolatedElevation(this.b14_1, this.c14_1, this.d14_1, this);
1079
+ suspendResult = getInterpolatedElevation(this.h15_1, this.i15_1, this.j15_1, this.l15_1, this);
924
1080
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
925
1081
  return suspendResult;
926
1082
  }
927
1083
  continue $sm;
928
1084
  } else {
929
- var pixel = ElevationFunctions_instance.i14(this.c14_1, this.d14_1, this.b14_1.c10_1);
1085
+ var pixel = ElevationFunctions_instance.o15(this.i15_1, this.j15_1, this.h15_1.b10_1);
930
1086
  this.j7_1 = 1;
931
- suspendResult = elevationFromPixel(this.b14_1, pixel, this);
1087
+ suspendResult = elevationFromPixel(this.h15_1, pixel, this.l15_1, this);
932
1088
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
933
1089
  return suspendResult;
934
1090
  }
@@ -936,20 +1092,20 @@
936
1092
  }
937
1093
 
938
1094
  case 1:
939
- this.h14_1 = suspendResult;
1095
+ this.n15_1 = suspendResult;
940
1096
  this.j7_1 = 3;
941
1097
  continue $sm;
942
1098
  case 2:
943
- this.h14_1 = suspendResult;
1099
+ this.n15_1 = suspendResult;
944
1100
  this.j7_1 = 3;
945
1101
  continue $sm;
946
1102
  case 3:
947
- this.g14_1 = this.h14_1;
948
- this.k7_1 = 8;
949
- this.j7_1 = 5;
1103
+ this.m15_1 = this.n15_1;
1104
+ this.k7_1 = 5;
1105
+ this.j7_1 = 6;
950
1106
  continue $sm;
951
1107
  case 4:
952
- this.k7_1 = 8;
1108
+ this.k7_1 = 5;
953
1109
  var tmp_0 = this.m7_1;
954
1110
  if (tmp_0 instanceof Error) {
955
1111
  var t = this.m7_1;
@@ -960,37 +1116,14 @@
960
1116
  }
961
1117
 
962
1118
  case 5:
963
- this.k7_1 = 8;
964
- var own = this.g14_1;
965
- if (!isNaN_0(own))
966
- return own;
967
- var tmp0_safe_receiver = this.b14_1.d10_1;
968
- if (tmp0_safe_receiver == null) {
969
- this.f14_1 = null;
970
- this.j7_1 = 7;
971
- continue $sm;
972
- } else {
973
- this.j7_1 = 6;
974
- suspendResult = tmp0_safe_receiver(this.c14_1, this.e14_1, this);
975
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
976
- return suspendResult;
977
- }
978
- continue $sm;
979
- }
980
-
981
- case 6:
982
- this.f14_1 = suspendResult;
983
- this.j7_1 = 7;
984
- continue $sm;
985
- case 7:
986
- var tmp1_elvis_lhs = this.f14_1;
987
- return tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs;
988
- case 8:
989
1119
  throw this.m7_1;
1120
+ case 6:
1121
+ this.k7_1 = 5;
1122
+ return this.m15_1;
990
1123
  }
991
1124
  } catch ($p) {
992
1125
  var e = $p;
993
- if (this.k7_1 === 8) {
1126
+ if (this.k7_1 === 5) {
994
1127
  throw e;
995
1128
  } else {
996
1129
  this.j7_1 = this.k7_1;
@@ -999,11 +1132,12 @@
999
1132
  }
1000
1133
  while (true);
1001
1134
  };
1002
- function $getInterpolatedElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, resultContinuation) {
1135
+ function $getInterpolatedElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, touched, resultContinuation) {
1003
1136
  CoroutineImpl.call(this, resultContinuation);
1004
- this.w12_1 = _this__u8e3s4;
1005
- this.x12_1 = coords;
1006
- this.y12_1 = zoomLevel;
1137
+ this.m13_1 = _this__u8e3s4;
1138
+ this.n13_1 = coords;
1139
+ this.o13_1 = zoomLevel;
1140
+ this.p13_1 = touched;
1007
1141
  }
1008
1142
  protoOf($getInterpolatedElevationCOROUTINE$).r7 = function () {
1009
1143
  var suspendResult = this.l7_1;
@@ -1013,46 +1147,46 @@
1013
1147
  switch (tmp) {
1014
1148
  case 0:
1015
1149
  this.k7_1 = 5;
1016
- this.g13_1 = ElevationFunctions_instance.j14(this.x12_1, this.y12_1, this.w12_1.c10_1);
1017
- var fx = this.g13_1.l14_1 - 0.5;
1018
- var fy = this.g13_1.m14_1 - 0.5;
1150
+ this.x13_1 = ElevationFunctions_instance.p15(this.n13_1, this.o13_1, this.m13_1.b10_1);
1151
+ var fx = this.x13_1.r15_1 - 0.5;
1152
+ var fy = this.x13_1.s15_1 - 0.5;
1019
1153
  var tmp_0 = this;
1020
- tmp_0.h13_1 = numberToInt(Math.floor(fx));
1154
+ tmp_0.y13_1 = numberToInt(Math.floor(fx));
1021
1155
  var tmp_1 = this;
1022
- tmp_1.i13_1 = numberToInt(Math.floor(fy));
1023
- this.f13_1 = this.h13_1 + 1 | 0;
1024
- this.e13_1 = this.i13_1 + 1 | 0;
1025
- this.a13_1 = fx - this.h13_1;
1026
- this.z12_1 = fy - this.i13_1;
1156
+ tmp_1.z13_1 = numberToInt(Math.floor(fy));
1157
+ this.w13_1 = this.y13_1 + 1 | 0;
1158
+ this.v13_1 = this.z13_1 + 1 | 0;
1159
+ this.r13_1 = fx - this.y13_1;
1160
+ this.q13_1 = fy - this.z13_1;
1027
1161
  this.j7_1 = 1;
1028
- suspendResult = elevationFromPixel(this.w12_1, ElevationFunctions_instance.n14(new Pixel(this.g13_1.k14_1, this.h13_1, this.i13_1), this.w12_1.c10_1), this);
1162
+ suspendResult = elevationFromPixel(this.m13_1, ElevationFunctions_instance.t15(new Pixel(this.x13_1.q15_1, this.y13_1, this.z13_1), this.m13_1.b10_1), this.p13_1, this);
1029
1163
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1030
1164
  return suspendResult;
1031
1165
  }
1032
1166
 
1033
1167
  continue $sm;
1034
1168
  case 1:
1035
- this.d13_1 = suspendResult;
1169
+ this.u13_1 = suspendResult;
1036
1170
  this.j7_1 = 2;
1037
- suspendResult = elevationFromPixel(this.w12_1, ElevationFunctions_instance.n14(new Pixel(this.g13_1.k14_1, this.f13_1, this.i13_1), this.w12_1.c10_1), this);
1171
+ suspendResult = elevationFromPixel(this.m13_1, ElevationFunctions_instance.t15(new Pixel(this.x13_1.q15_1, this.w13_1, this.z13_1), this.m13_1.b10_1), this.p13_1, this);
1038
1172
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1039
1173
  return suspendResult;
1040
1174
  }
1041
1175
 
1042
1176
  continue $sm;
1043
1177
  case 2:
1044
- this.c13_1 = suspendResult;
1178
+ this.t13_1 = suspendResult;
1045
1179
  this.j7_1 = 3;
1046
- suspendResult = elevationFromPixel(this.w12_1, ElevationFunctions_instance.n14(new Pixel(this.g13_1.k14_1, this.h13_1, this.e13_1), this.w12_1.c10_1), this);
1180
+ suspendResult = elevationFromPixel(this.m13_1, ElevationFunctions_instance.t15(new Pixel(this.x13_1.q15_1, this.y13_1, this.v13_1), this.m13_1.b10_1), this.p13_1, this);
1047
1181
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1048
1182
  return suspendResult;
1049
1183
  }
1050
1184
 
1051
1185
  continue $sm;
1052
1186
  case 3:
1053
- this.b13_1 = suspendResult;
1187
+ this.s13_1 = suspendResult;
1054
1188
  this.j7_1 = 4;
1055
- suspendResult = elevationFromPixel(this.w12_1, ElevationFunctions_instance.n14(new Pixel(this.g13_1.k14_1, this.f13_1, this.e13_1), this.w12_1.c10_1), this);
1189
+ suspendResult = elevationFromPixel(this.m13_1, ElevationFunctions_instance.t15(new Pixel(this.x13_1.q15_1, this.w13_1, this.v13_1), this.m13_1.b10_1), this.p13_1, this);
1056
1190
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1057
1191
  return suspendResult;
1058
1192
  }
@@ -1060,9 +1194,9 @@
1060
1194
  continue $sm;
1061
1195
  case 4:
1062
1196
  var p11 = suspendResult;
1063
- var top = this.d13_1 * (1.0 - this.a13_1) + this.c13_1 * this.a13_1;
1064
- var bottom = this.b13_1 * (1.0 - this.a13_1) + p11 * this.a13_1;
1065
- return top * (1.0 - this.z12_1) + bottom * this.z12_1;
1197
+ var top = this.u13_1 * (1.0 - this.r13_1) + this.t13_1 * this.r13_1;
1198
+ var bottom = this.s13_1 * (1.0 - this.r13_1) + p11 * this.r13_1;
1199
+ return top * (1.0 - this.q13_1) + bottom * this.q13_1;
1066
1200
  case 5:
1067
1201
  throw this.m7_1;
1068
1202
  }
@@ -1077,10 +1211,11 @@
1077
1211
  }
1078
1212
  while (true);
1079
1213
  };
1080
- function $elevationFromPixelCOROUTINE$(_this__u8e3s4, pixel, resultContinuation) {
1214
+ function $elevationFromPixelCOROUTINE$(_this__u8e3s4, pixel, touched, resultContinuation) {
1081
1215
  CoroutineImpl.call(this, resultContinuation);
1082
- this.r13_1 = _this__u8e3s4;
1083
- this.s13_1 = pixel;
1216
+ this.i14_1 = _this__u8e3s4;
1217
+ this.j14_1 = pixel;
1218
+ this.k14_1 = touched;
1084
1219
  }
1085
1220
  protoOf($elevationFromPixelCOROUTINE$).r7 = function () {
1086
1221
  var suspendResult = this.l7_1;
@@ -1091,14 +1226,17 @@
1091
1226
  case 0:
1092
1227
  this.k7_1 = 2;
1093
1228
  this.j7_1 = 1;
1094
- suspendResult = this.r13_1.b10_1.u14(this.s13_1.o14_1, this);
1229
+ suspendResult = this.i14_1.a10_1.b16(this.j14_1.u15_1, this);
1095
1230
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1096
1231
  return suspendResult;
1097
1232
  }
1098
1233
 
1099
1234
  continue $sm;
1100
1235
  case 1:
1101
- return suspendResult.a15(this.s13_1);
1236
+ var tile = suspendResult;
1237
+ if (!(this.k14_1 == null) && tile.f16_1)
1238
+ this.k14_1.d13_1 = true;
1239
+ return tile.i16(this.j14_1);
1102
1240
  case 2:
1103
1241
  throw this.m7_1;
1104
1242
  }
@@ -1116,42 +1254,48 @@
1116
1254
  function ElevationCalculator(tileManager, tileSize, fallback) {
1117
1255
  tileSize = tileSize === VOID ? 256 : tileSize;
1118
1256
  fallback = fallback === VOID ? null : fallback;
1119
- this.b10_1 = tileManager;
1120
- this.c10_1 = tileSize;
1121
- this.d10_1 = fallback;
1257
+ this.a10_1 = tileManager;
1258
+ this.b10_1 = tileSize;
1259
+ this.c10_1 = fallback;
1122
1260
  }
1123
- protoOf(ElevationCalculator).e10 = function (coords, zoomLevel, interpolation, $completion) {
1261
+ protoOf(ElevationCalculator).d10 = function (coords, zoomLevel, interpolation, $completion) {
1124
1262
  var tmp = new $getElevationCOROUTINE$(this, coords, zoomLevel, interpolation, $completion);
1125
1263
  tmp.l7_1 = Unit_instance;
1126
1264
  tmp.m7_1 = null;
1127
1265
  return tmp.r7();
1128
1266
  };
1267
+ protoOf(ElevationCalculator).y14 = function (coords, zoomLevel, interpolation, touched, $completion) {
1268
+ var tmp = new $readOwnCOROUTINE$(this, coords, zoomLevel, interpolation, touched, $completion);
1269
+ tmp.l7_1 = Unit_instance;
1270
+ tmp.m7_1 = null;
1271
+ return tmp.r7();
1272
+ };
1129
1273
  function formatNumber_0($this, d) {
1130
1274
  var asLong = numberToLong(d);
1131
1275
  return toNumber(asLong) === d ? asLong.toString() : d.toString();
1132
1276
  }
1133
1277
  function ElevationFunctions() {
1134
- this.v10_1 = 0;
1135
- this.w10_1 = 15;
1278
+ this.i11_1 = 0;
1279
+ this.j11_1 = 15;
1136
1280
  }
1137
- protoOf(ElevationFunctions).b15 = function (degrees) {
1281
+ protoOf(ElevationFunctions).j16 = function (degrees) {
1138
1282
  return degrees * 0.017453292519943295;
1139
1283
  };
1140
- protoOf(ElevationFunctions).c15 = function (lat) {
1284
+ protoOf(ElevationFunctions).k16 = function (lat) {
1141
1285
  return lat >= -85.0511 && lat <= 85.0511;
1142
1286
  };
1143
- protoOf(ElevationFunctions).d15 = function (lon) {
1287
+ protoOf(ElevationFunctions).l16 = function (lon) {
1144
1288
  return -180.0 <= lon ? lon <= 180.0 : false;
1145
1289
  };
1146
- protoOf(ElevationFunctions).e15 = function (zoom) {
1290
+ protoOf(ElevationFunctions).m16 = function (zoom) {
1147
1291
  return 0 <= zoom ? zoom <= 15 : false;
1148
1292
  };
1149
- protoOf(ElevationFunctions).n14 = function (pixel, tileSize) {
1150
- var x = pixel.p14_1;
1151
- var y = pixel.q14_1;
1152
- var tileX = pixel.o14_1.y10_1;
1153
- var tileY = pixel.o14_1.z10_1;
1154
- var z = pixel.o14_1.a11_1;
1293
+ protoOf(ElevationFunctions).t15 = function (pixel, tileSize) {
1294
+ var x = pixel.v15_1;
1295
+ var y = pixel.w15_1;
1296
+ var tileX = pixel.u15_1.l11_1;
1297
+ var tileY = pixel.u15_1.m11_1;
1298
+ var z = pixel.u15_1.n11_1;
1155
1299
  if (x < 0) {
1156
1300
  x = x + tileSize | 0;
1157
1301
  tileX = tileX - 1 | 0;
@@ -1185,25 +1329,25 @@
1185
1329
  }
1186
1330
  return new Pixel(new TileCoordinates(tileX, tileY, z), x, y);
1187
1331
  };
1188
- protoOf(ElevationFunctions).f15 = function (coords, z) {
1332
+ protoOf(ElevationFunctions).n16 = function (coords, z) {
1189
1333
  // Inline function 'kotlin.require' call
1190
- if (!this.c15(coords.f10())) {
1191
- var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.f10()) + '. Must be between -85.0511 and 85.0511';
1334
+ if (!this.k16(coords.xz())) {
1335
+ var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.xz()) + '. Must be between -85.0511 and 85.0511';
1192
1336
  throw IllegalArgumentException_init_$Create$(toString(message));
1193
1337
  }
1194
1338
  // Inline function 'kotlin.require' call
1195
- if (!this.d15(coords.g10())) {
1196
- var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.g10()) + '. Must be between -180 and 180';
1339
+ if (!this.l16(coords.yz())) {
1340
+ var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.yz()) + '. Must be between -180 and 180';
1197
1341
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1198
1342
  }
1199
1343
  // Inline function 'kotlin.require' call
1200
- if (!this.e15(z)) {
1344
+ if (!this.m16(z)) {
1201
1345
  var message_1 = 'Invalid zoom level: ' + z + '. Must be between 0 and 15';
1202
1346
  throw IllegalArgumentException_init_$Create$(toString(message_1));
1203
1347
  }
1204
- var lat = this.b15(coords.f10());
1348
+ var lat = this.j16(coords.xz());
1205
1349
  var n = 1 << z;
1206
- var xFloat = (coords.g10() + 180.0) / 360.0 * n;
1350
+ var xFloat = (coords.yz() + 180.0) / 360.0 * n;
1207
1351
  // Inline function 'kotlin.math.tan' call
1208
1352
  var tmp = Math.tan(lat);
1209
1353
  // Inline function 'kotlin.math.cos' call
@@ -1219,27 +1363,27 @@
1219
1363
  var y = coerceIn_1(numberToInt(tmp$ret$10), 0, maxTile);
1220
1364
  return new TileCoordinatesFloat(x_0, y, xFloat, yFloat, z);
1221
1365
  };
1222
- protoOf(ElevationFunctions).x10 = function (coords, z) {
1223
- var tile = this.f15(coords, z);
1224
- return new TileCoordinates(tile.g15_1, tile.h15_1, tile.k15_1);
1366
+ protoOf(ElevationFunctions).k11 = function (coords, z) {
1367
+ var tile = this.n16(coords, z);
1368
+ return new TileCoordinates(tile.o16_1, tile.p16_1, tile.s16_1);
1225
1369
  };
1226
- protoOf(ElevationFunctions).i14 = function (coords, z, tileSize) {
1227
- var tile = this.f15(coords, z);
1370
+ protoOf(ElevationFunctions).o15 = function (coords, z, tileSize) {
1371
+ var tile = this.n16(coords, z);
1228
1372
  // Inline function 'kotlin.math.floor' call
1229
- var x = (tile.i15_1 - tile.g15_1) * tileSize;
1373
+ var x = (tile.q16_1 - tile.o16_1) * tileSize;
1230
1374
  var tmp$ret$0 = Math.floor(x);
1231
1375
  var px = coerceIn_1(numberToInt(tmp$ret$0), 0, tileSize - 1 | 0);
1232
1376
  // Inline function 'kotlin.math.floor' call
1233
- var x_0 = (tile.j15_1 - tile.h15_1) * tileSize;
1377
+ var x_0 = (tile.r16_1 - tile.p16_1) * tileSize;
1234
1378
  var tmp$ret$1 = Math.floor(x_0);
1235
1379
  var py = coerceIn_1(numberToInt(tmp$ret$1), 0, tileSize - 1 | 0);
1236
- return new Pixel(new TileCoordinates(tile.g15_1, tile.h15_1, z), px, py);
1380
+ return new Pixel(new TileCoordinates(tile.o16_1, tile.p16_1, z), px, py);
1237
1381
  };
1238
- protoOf(ElevationFunctions).j14 = function (coords, z, tileSize) {
1239
- var tile = this.f15(coords, z);
1240
- var px = (tile.i15_1 - tile.g15_1) * tileSize;
1241
- var py = (tile.j15_1 - tile.h15_1) * tileSize;
1242
- return new PixelFloat(new TileCoordinates(tile.g15_1, tile.h15_1, z), px, py);
1382
+ protoOf(ElevationFunctions).p15 = function (coords, z, tileSize) {
1383
+ var tile = this.n16(coords, z);
1384
+ var px = (tile.q16_1 - tile.o16_1) * tileSize;
1385
+ var py = (tile.r16_1 - tile.p16_1) * tileSize;
1386
+ return new PixelFloat(new TileCoordinates(tile.o16_1, tile.p16_1, z), px, py);
1243
1387
  };
1244
1388
  var ElevationFunctions_instance;
1245
1389
  function ElevationFunctions_getInstance() {
@@ -1261,19 +1405,25 @@
1261
1405
  function ElevationProvider_init_$Create$_0(config, fetcher, keepNoData) {
1262
1406
  return ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, objectCreate(protoOf(ElevationProvider)));
1263
1407
  }
1408
+ function sample($this, coords, interpolation, $completion) {
1409
+ var tmp = new $sampleCOROUTINE$($this, coords, interpolation, $completion);
1410
+ tmp.l7_1 = Unit_instance;
1411
+ tmp.m7_1 = null;
1412
+ return tmp.r7();
1413
+ }
1264
1414
  function ElevationProvider$calculator$slambda(this$0, resultContinuation) {
1265
- this.t15_1 = this$0;
1415
+ this.o17_1 = this$0;
1266
1416
  CoroutineImpl.call(this, resultContinuation);
1267
1417
  }
1268
- protoOf(ElevationProvider$calculator$slambda).w15 = function (coords, interpolation, $completion) {
1269
- var tmp = this.x15(coords, interpolation, $completion);
1418
+ protoOf(ElevationProvider$calculator$slambda).r17 = function (coords, interpolation, $completion) {
1419
+ var tmp = this.s17(coords, interpolation, $completion);
1270
1420
  tmp.l7_1 = Unit_instance;
1271
1421
  tmp.m7_1 = null;
1272
1422
  return tmp.r7();
1273
1423
  };
1274
- protoOf(ElevationProvider$calculator$slambda).y15 = function (p1, p2, $completion) {
1424
+ protoOf(ElevationProvider$calculator$slambda).t17 = function (p1, p2, $completion) {
1275
1425
  var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
1276
- return this.w15(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
1426
+ return this.r17(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
1277
1427
  };
1278
1428
  protoOf(ElevationProvider$calculator$slambda).r7 = function () {
1279
1429
  var suspendResult = this.l7_1;
@@ -1284,7 +1434,7 @@
1284
1434
  case 0:
1285
1435
  this.k7_1 = 2;
1286
1436
  this.j7_1 = 1;
1287
- suspendResult = this.t15_1.b16_1.h16(this.u15_1.f10(), this.u15_1.g10(), this.v15_1, this);
1437
+ suspendResult = this.o17_1.w17_1.c18(this.p17_1.xz(), this.p17_1.yz(), this.q17_1, this);
1288
1438
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1289
1439
  return suspendResult;
1290
1440
  }
@@ -1306,30 +1456,30 @@
1306
1456
  }
1307
1457
  while (true);
1308
1458
  };
1309
- protoOf(ElevationProvider$calculator$slambda).x15 = function (coords, interpolation, completion) {
1310
- var i = new ElevationProvider$calculator$slambda(this.t15_1, completion);
1311
- i.u15_1 = coords;
1312
- i.v15_1 = interpolation;
1459
+ protoOf(ElevationProvider$calculator$slambda).s17 = function (coords, interpolation, completion) {
1460
+ var i = new ElevationProvider$calculator$slambda(this.o17_1, completion);
1461
+ i.p17_1 = coords;
1462
+ i.q17_1 = interpolation;
1313
1463
  return i;
1314
1464
  };
1315
1465
  function ElevationProvider$calculator$slambda_0(this$0, resultContinuation) {
1316
1466
  var i = new ElevationProvider$calculator$slambda(this$0, resultContinuation);
1317
1467
  return constructCallableReference(function (coords, interpolation, $completion) {
1318
- return i.w15(coords, interpolation, $completion);
1468
+ return i.r17(coords, interpolation, $completion);
1319
1469
  }, 2);
1320
1470
  }
1321
1471
  function ElevationProvider$calculator$slambda_1(resultContinuation) {
1322
1472
  CoroutineImpl.call(this, resultContinuation);
1323
1473
  }
1324
- protoOf(ElevationProvider$calculator$slambda_1).w15 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
1325
- var tmp = this.x15(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
1474
+ protoOf(ElevationProvider$calculator$slambda_1).r17 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
1475
+ var tmp = this.s17(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
1326
1476
  tmp.l7_1 = Unit_instance;
1327
1477
  tmp.m7_1 = null;
1328
1478
  return tmp.r7();
1329
1479
  };
1330
- protoOf(ElevationProvider$calculator$slambda_1).y15 = function (p1, p2, $completion) {
1480
+ protoOf(ElevationProvider$calculator$slambda_1).t17 = function (p1, p2, $completion) {
1331
1481
  var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
1332
- return this.w15(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
1482
+ return this.r17(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
1333
1483
  };
1334
1484
  protoOf(ElevationProvider$calculator$slambda_1).r7 = function () {
1335
1485
  var suspendResult = this.l7_1;
@@ -1348,101 +1498,234 @@
1348
1498
  }
1349
1499
  while (true);
1350
1500
  };
1351
- protoOf(ElevationProvider$calculator$slambda_1).x15 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
1501
+ protoOf(ElevationProvider$calculator$slambda_1).s17 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
1352
1502
  var i = new ElevationProvider$calculator$slambda_1(completion);
1353
- i.q16_1 = _unused_var__etf5q3;
1354
- i.r16_1 = _unused_var__etf5q3_0;
1503
+ i.l18_1 = _unused_var__etf5q3;
1504
+ i.m18_1 = _unused_var__etf5q3_0;
1355
1505
  return i;
1356
1506
  };
1357
1507
  function ElevationProvider$calculator$slambda_2(resultContinuation) {
1358
1508
  var i = new ElevationProvider$calculator$slambda_1(resultContinuation);
1359
1509
  return constructCallableReference(function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
1360
- return i.w15(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
1510
+ return i.r17(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
1361
1511
  }, 2);
1362
1512
  }
1513
+ function ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation) {
1514
+ this.v18_1 = this$0;
1515
+ this.w18_1 = $interpolation;
1516
+ CoroutineImpl.call(this, resultContinuation);
1517
+ }
1518
+ protoOf(ElevationProvider$setElevationsWithOrigin$slambda).y18 = function (it, $completion) {
1519
+ var tmp = this.wz(it, $completion);
1520
+ tmp.l7_1 = Unit_instance;
1521
+ tmp.m7_1 = null;
1522
+ return tmp.r7();
1523
+ };
1524
+ protoOf(ElevationProvider$setElevationsWithOrigin$slambda).z7 = function (p1, $completion) {
1525
+ return this.y18((!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE(), $completion);
1526
+ };
1527
+ protoOf(ElevationProvider$setElevationsWithOrigin$slambda).r7 = function () {
1528
+ var suspendResult = this.l7_1;
1529
+ $sm: do
1530
+ try {
1531
+ var tmp = this.j7_1;
1532
+ switch (tmp) {
1533
+ case 0:
1534
+ this.k7_1 = 2;
1535
+ this.j7_1 = 1;
1536
+ suspendResult = sample(this.v18_1, this.x18_1, this.w18_1, this);
1537
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1538
+ return suspendResult;
1539
+ }
1540
+
1541
+ continue $sm;
1542
+ case 1:
1543
+ return suspendResult;
1544
+ case 2:
1545
+ throw this.m7_1;
1546
+ }
1547
+ } catch ($p) {
1548
+ var e = $p;
1549
+ if (this.k7_1 === 2) {
1550
+ throw e;
1551
+ } else {
1552
+ this.j7_1 = this.k7_1;
1553
+ this.m7_1 = e;
1554
+ }
1555
+ }
1556
+ while (true);
1557
+ };
1558
+ protoOf(ElevationProvider$setElevationsWithOrigin$slambda).wz = function (it, completion) {
1559
+ var i = new ElevationProvider$setElevationsWithOrigin$slambda(this.v18_1, this.w18_1, completion);
1560
+ i.x18_1 = it;
1561
+ return i;
1562
+ };
1563
+ function ElevationProvider$setElevationsWithOrigin$slambda_0(this$0, $interpolation, resultContinuation) {
1564
+ var i = new ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation);
1565
+ return constructCallableReference(function (it, $completion) {
1566
+ return i.y18(it, $completion);
1567
+ }, 1);
1568
+ }
1569
+ function $sampleCOROUTINE$(_this__u8e3s4, coords, interpolation, resultContinuation) {
1570
+ CoroutineImpl.call(this, resultContinuation);
1571
+ this.b17_1 = _this__u8e3s4;
1572
+ this.c17_1 = coords;
1573
+ this.d17_1 = interpolation;
1574
+ }
1575
+ protoOf($sampleCOROUTINE$).r7 = function () {
1576
+ var suspendResult = this.l7_1;
1577
+ $sm: do
1578
+ try {
1579
+ var tmp = this.j7_1;
1580
+ switch (tmp) {
1581
+ case 0:
1582
+ this.k7_1 = 4;
1583
+ this.e17_1 = new UnreadableFlag();
1584
+ this.j7_1 = 1;
1585
+ suspendResult = this.b17_1.a18_1.y14(this.c17_1, this.b17_1.u17_1.z18_1, this.d17_1, this.e17_1, this);
1586
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1587
+ return suspendResult;
1588
+ }
1589
+
1590
+ continue $sm;
1591
+ case 1:
1592
+ var own = suspendResult;
1593
+ if (!isNaN_0(own)) {
1594
+ return new TerrainSample(this.c17_1.xz(), this.c17_1.yz(), own, Companion_getInstance_1().h19(this.b17_1.u17_1, this.c17_1.xz(), this.c17_1.yz()), false);
1595
+ }
1596
+
1597
+ var tmp0_safe_receiver = this.b17_1.w17_1;
1598
+ if (tmp0_safe_receiver == null) {
1599
+ this.f17_1 = null;
1600
+ this.j7_1 = 3;
1601
+ continue $sm;
1602
+ } else {
1603
+ this.j7_1 = 2;
1604
+ suspendResult = sample(tmp0_safe_receiver, this.c17_1, this.d17_1, this);
1605
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1606
+ return suspendResult;
1607
+ }
1608
+ continue $sm;
1609
+ }
1610
+
1611
+ case 2:
1612
+ this.f17_1 = suspendResult;
1613
+ this.j7_1 = 3;
1614
+ continue $sm;
1615
+ case 3:
1616
+ var next = this.f17_1;
1617
+ if (!(next == null))
1618
+ return this.e17_1.d13_1 ? next.n19(VOID, VOID, VOID, VOID, true) : next;
1619
+ return new TerrainSample(this.c17_1.xz(), this.c17_1.yz(), this.b17_1.x17_1 ? NaN : 0.0, TerrainOrigin_NONE_getInstance(), this.e17_1.d13_1);
1620
+ case 4:
1621
+ throw this.m7_1;
1622
+ }
1623
+ } catch ($p) {
1624
+ var e = $p;
1625
+ if (this.k7_1 === 4) {
1626
+ throw e;
1627
+ } else {
1628
+ this.j7_1 = this.k7_1;
1629
+ this.m7_1 = e;
1630
+ }
1631
+ }
1632
+ while (true);
1633
+ };
1363
1634
  function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel) {
1364
- this.z15_1 = config;
1365
- this.a16_1 = fetcher;
1366
- this.b16_1 = fallback;
1367
- this.c16_1 = keepNoData;
1368
- this.d16_1 = surfaceModel;
1635
+ this.u17_1 = config;
1636
+ this.v17_1 = fetcher;
1637
+ this.w17_1 = fallback;
1638
+ this.x17_1 = keepNoData;
1639
+ this.y17_1 = surfaceModel;
1369
1640
  // Inline function 'kotlin.require' call
1370
- if (!ElevationFunctions_instance.e15(this.z15_1.s16_1)) {
1371
- var message = 'Invalid zoom level: ' + this.z15_1.s16_1 + '. Must be an integer between ' + '0 and 15';
1641
+ if (!ElevationFunctions_instance.m16(this.u17_1.z18_1)) {
1642
+ var message = 'Invalid zoom level: ' + this.u17_1.z18_1 + '. Must be an integer between ' + '0 and 15';
1372
1643
  throw IllegalArgumentException_init_$Create$(toString(message));
1373
1644
  }
1374
1645
  // Inline function 'kotlin.require' call
1375
- if (!(this.z15_1.t16_1 > 0)) {
1376
- var message_0 = 'Invalid cache size: ' + this.z15_1.t16_1 + '. Must be a positive integer';
1646
+ if (!(this.u17_1.a19_1 > 0)) {
1647
+ var message_0 = 'Invalid cache size: ' + this.u17_1.a19_1 + '. Must be a positive integer';
1377
1648
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1378
1649
  }
1379
1650
  // Inline function 'kotlin.require' call
1380
- if (!(this.z15_1.v16_1 > 0 && (this.z15_1.v16_1 & (this.z15_1.v16_1 - 1 | 0)) === 0)) {
1381
- var message_1 = 'Invalid tile size: ' + this.z15_1.v16_1 + '. Must be a positive power of 2';
1651
+ if (!(this.u17_1.c19_1 > 0 && (this.u17_1.c19_1 & (this.u17_1.c19_1 - 1 | 0)) === 0)) {
1652
+ var message_1 = 'Invalid tile size: ' + this.u17_1.c19_1 + '. Must be a positive power of 2';
1382
1653
  throw IllegalArgumentException_init_$Create$(toString(message_1));
1383
1654
  }
1384
1655
  // Inline function 'kotlin.require' call
1385
- if (!(this.z15_1.y16_1 >= 0)) {
1386
- var message_2 = 'Invalid maxRequestsPerSecond: ' + this.z15_1.y16_1 + '. Must be 0 (no limit) or positive';
1656
+ if (!(this.u17_1.f19_1 >= 0)) {
1657
+ var message_2 = 'Invalid maxRequestsPerSecond: ' + this.u17_1.f19_1 + '. Must be 0 (no limit) or positive';
1387
1658
  throw IllegalArgumentException_init_$Create$(toString(message_2));
1388
1659
  }
1389
- this.e16_1 = new TileManager(this.z15_1.u16_1, this.z15_1.t16_1, this.a16_1);
1390
1660
  var tmp = this;
1391
- var tmp_0;
1392
- if (!(this.b16_1 == null)) {
1393
- tmp_0 = ElevationProvider$calculator$slambda_0(this, null);
1394
- } else if (this.c16_1) {
1395
- tmp_0 = ElevationProvider$calculator$slambda_2(null);
1661
+ // Inline function 'kotlin.apply' call
1662
+ var this_0 = new TileManager(this.u17_1.b19_1, this.u17_1.a19_1, this.v17_1);
1663
+ if (!(this.w17_1 == null))
1664
+ this_0.z15_1 = new UnreadableTiles(this.u17_1.b19_1, this.u17_1.c19_1);
1665
+ tmp.z17_1 = this_0;
1666
+ var tmp_0 = this;
1667
+ var tmp_1;
1668
+ if (!(this.w17_1 == null)) {
1669
+ tmp_1 = ElevationProvider$calculator$slambda_0(this, null);
1670
+ } else if (this.x17_1) {
1671
+ tmp_1 = ElevationProvider$calculator$slambda_2(null);
1396
1672
  } else {
1397
- tmp_0 = null;
1673
+ tmp_1 = null;
1398
1674
  }
1399
- tmp.f16_1 = new ElevationCalculator(this.e16_1, this.z15_1.v16_1, tmp_0);
1400
- this.g16_1 = new BatchCalculator(this.f16_1);
1675
+ tmp_0.a18_1 = new ElevationCalculator(this.z17_1, this.u17_1.c19_1, tmp_1);
1676
+ this.b18_1 = new BatchCalculator(this.a18_1);
1401
1677
  }
1402
- protoOf(ElevationProvider).z16 = function (other) {
1678
+ protoOf(ElevationProvider).o19 = function (other) {
1403
1679
  // Inline function 'kotlin.require' call
1404
- if (!!this.c16_1) {
1680
+ if (!!this.x17_1) {
1405
1681
  var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
1406
1682
  throw IllegalArgumentException_init_$Create$(toString(message));
1407
1683
  }
1408
- return new ElevationProvider(this.z15_1, this.a16_1, other, false, this.d16_1);
1684
+ return new ElevationProvider(this.u17_1, this.v17_1, other, false, this.y17_1);
1409
1685
  };
1410
- protoOf(ElevationProvider).a17 = function (surface) {
1686
+ protoOf(ElevationProvider).p19 = function (surface) {
1411
1687
  // Inline function 'kotlin.require' call
1412
- if (!(surface == null || surface.c16_1)) {
1688
+ if (!(surface == null || surface.x17_1)) {
1413
1689
  var message = 'a surface model must keep its no-data as NaN';
1414
1690
  throw IllegalArgumentException_init_$Create$(toString(message));
1415
1691
  }
1416
1692
  // Inline function 'kotlin.require' call
1417
- if (!!this.c16_1) {
1693
+ if (!!this.x17_1) {
1418
1694
  var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
1419
1695
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1420
1696
  }
1421
- return new ElevationProvider(this.z15_1, this.a16_1, this.b16_1, false, surface);
1697
+ return new ElevationProvider(this.u17_1, this.v17_1, this.w17_1, false, surface);
1422
1698
  };
1423
- protoOf(ElevationProvider).b17 = function () {
1424
- return this.z15_1.w16_1;
1699
+ protoOf(ElevationProvider).q19 = function () {
1700
+ return this.u17_1.d19_1;
1425
1701
  };
1426
- protoOf(ElevationProvider).h16 = function (latitude, longitude, interpolation, $completion) {
1427
- return this.f16_1.e10(new LatLon(latitude, longitude), this.z15_1.s16_1, interpolation, $completion);
1702
+ protoOf(ElevationProvider).c18 = function (latitude, longitude, interpolation, $completion) {
1703
+ return this.a18_1.d10(new LatLon(latitude, longitude), this.u17_1.z18_1, interpolation, $completion);
1428
1704
  };
1429
- protoOf(ElevationProvider).c17 = function (coordinates, interpolation, $completion) {
1430
- return this.g16_1.t11(coordinates, this.z15_1.s16_1, interpolation, VOID, $completion);
1705
+ protoOf(ElevationProvider).r19 = function (coordinates, interpolation, $completion) {
1706
+ return this.b18_1.g12(coordinates, this.u17_1.z18_1, interpolation, VOID, $completion);
1431
1707
  };
1432
- protoOf(ElevationProvider).d17 = function (coordinates, interpolation, $completion, $super) {
1708
+ protoOf(ElevationProvider).s19 = function (coordinates, interpolation, $completion, $super) {
1433
1709
  interpolation = interpolation === VOID ? true : interpolation;
1434
- return $super === VOID ? this.c17(coordinates, interpolation, $completion) : $super.c17.call(this, coordinates, interpolation, $completion);
1710
+ return $super === VOID ? this.r19(coordinates, interpolation, $completion) : $super.r19.call(this, coordinates, interpolation, $completion);
1435
1711
  };
1436
- protoOf(ElevationProvider).e17 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
1437
- return this.g16_1.x11(path, this.z15_1.s16_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
1712
+ protoOf(ElevationProvider).t19 = function (coordinates, interpolation, $completion) {
1713
+ return this.b18_1.l12(coordinates, this.u17_1.z18_1, VOID, ElevationProvider$setElevationsWithOrigin$slambda_0(this, interpolation, null), $completion);
1714
+ };
1715
+ protoOf(ElevationProvider).u19 = function (coordinates, interpolation, $completion, $super) {
1716
+ interpolation = interpolation === VOID ? true : interpolation;
1717
+ return $super === VOID ? this.t19(coordinates, interpolation, $completion) : $super.t19.call(this, coordinates, interpolation, $completion);
1718
+ };
1719
+ protoOf(ElevationProvider).v19 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
1720
+ return this.b18_1.m12(path, this.u17_1.z18_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
1438
1721
  };
1439
1722
  function defaultTileFetcher(config) {
1440
- if (config.x16_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.y16_1 === 0) {
1723
+ if (config.e19_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.f19_1 === 0) {
1441
1724
  return fetchAndDecodeTile$ref_1();
1442
1725
  }
1443
- var bytes = pacedTileBytesFetcher(config.y16_1);
1726
+ var bytes = pacedTileBytesFetcher(config.f19_1);
1444
1727
  var tmp;
1445
- switch (config.x16_1.y1_1) {
1728
+ switch (config.e19_1.y1_1) {
1446
1729
  case 0:
1447
1730
  tmp = defaultTileFetcher$slambda_0(bytes, null);
1448
1731
  break;
@@ -1458,24 +1741,24 @@
1458
1741
  function fetchAndDecodeTile$ref() {
1459
1742
  KFunctionImpl.call(this, 1, 2, 2);
1460
1743
  }
1461
- protoOf(fetchAndDecodeTile$ref).i17 = function (p0, $completion) {
1744
+ protoOf(fetchAndDecodeTile$ref).z19 = function (p0, $completion) {
1462
1745
  return fetchAndDecodeTile(p0, $completion);
1463
1746
  };
1464
1747
  protoOf(fetchAndDecodeTile$ref).z7 = function (p1, $completion) {
1465
- return this.i17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1748
+ return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1466
1749
  };
1467
1750
  function defaultTileFetcher$slambda($bytes, resultContinuation) {
1468
- this.r17_1 = $bytes;
1751
+ this.i1a_1 = $bytes;
1469
1752
  CoroutineImpl.call(this, resultContinuation);
1470
1753
  }
1471
- protoOf(defaultTileFetcher$slambda).i17 = function (url, $completion) {
1472
- var tmp = this.t17(url, $completion);
1754
+ protoOf(defaultTileFetcher$slambda).z19 = function (url, $completion) {
1755
+ var tmp = this.k1a(url, $completion);
1473
1756
  tmp.l7_1 = Unit_instance;
1474
1757
  tmp.m7_1 = null;
1475
1758
  return tmp.r7();
1476
1759
  };
1477
1760
  protoOf(defaultTileFetcher$slambda).z7 = function (p1, $completion) {
1478
- return this.i17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1761
+ return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1479
1762
  };
1480
1763
  protoOf(defaultTileFetcher$slambda).r7 = function () {
1481
1764
  var suspendResult = this.l7_1;
@@ -1486,7 +1769,7 @@
1486
1769
  case 0:
1487
1770
  this.k7_1 = 3;
1488
1771
  this.j7_1 = 1;
1489
- suspendResult = this.r17_1(this.s17_1, this);
1772
+ suspendResult = this.i1a_1(this.j1a_1, this);
1490
1773
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1491
1774
  return suspendResult;
1492
1775
  }
@@ -1495,7 +1778,7 @@
1495
1778
  case 1:
1496
1779
  var ARGUMENT = suspendResult;
1497
1780
  this.j7_1 = 2;
1498
- suspendResult = decodeTileBytes(ARGUMENT, this.s17_1, this);
1781
+ suspendResult = decodeTileBytes(ARGUMENT, this.j1a_1, this);
1499
1782
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1500
1783
  return suspendResult;
1501
1784
  }
@@ -1517,30 +1800,30 @@
1517
1800
  }
1518
1801
  while (true);
1519
1802
  };
1520
- protoOf(defaultTileFetcher$slambda).t17 = function (url, completion) {
1521
- var i = new defaultTileFetcher$slambda(this.r17_1, completion);
1522
- i.s17_1 = url;
1803
+ protoOf(defaultTileFetcher$slambda).k1a = function (url, completion) {
1804
+ var i = new defaultTileFetcher$slambda(this.i1a_1, completion);
1805
+ i.j1a_1 = url;
1523
1806
  return i;
1524
1807
  };
1525
1808
  function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
1526
1809
  var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
1527
1810
  return constructCallableReference(function (url, $completion) {
1528
- return i.i17(url, $completion);
1811
+ return i.z19(url, $completion);
1529
1812
  }, 1);
1530
1813
  }
1531
1814
  function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
1532
- this.c18_1 = $bytes;
1533
- this.d18_1 = $config;
1815
+ this.t1a_1 = $bytes;
1816
+ this.u1a_1 = $config;
1534
1817
  CoroutineImpl.call(this, resultContinuation);
1535
1818
  }
1536
- protoOf(defaultTileFetcher$slambda_1).i17 = function (url, $completion) {
1537
- var tmp = this.t17(url, $completion);
1819
+ protoOf(defaultTileFetcher$slambda_1).z19 = function (url, $completion) {
1820
+ var tmp = this.k1a(url, $completion);
1538
1821
  tmp.l7_1 = Unit_instance;
1539
1822
  tmp.m7_1 = null;
1540
1823
  return tmp.r7();
1541
1824
  };
1542
1825
  protoOf(defaultTileFetcher$slambda_1).z7 = function (p1, $completion) {
1543
- return this.i17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1826
+ return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1544
1827
  };
1545
1828
  protoOf(defaultTileFetcher$slambda_1).r7 = function () {
1546
1829
  var suspendResult = this.l7_1;
@@ -1551,7 +1834,7 @@
1551
1834
  case 0:
1552
1835
  this.k7_1 = 2;
1553
1836
  this.j7_1 = 1;
1554
- suspendResult = this.c18_1(this.e18_1, this);
1837
+ suspendResult = this.t1a_1(this.v1a_1, this);
1555
1838
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1556
1839
  return suspendResult;
1557
1840
  }
@@ -1559,7 +1842,7 @@
1559
1842
  continue $sm;
1560
1843
  case 1:
1561
1844
  var ARGUMENT = suspendResult;
1562
- return decodeBil32Tile(ARGUMENT, this.d18_1.v16_1, this.e18_1);
1845
+ return decodeBil32Tile(ARGUMENT, this.u1a_1.c19_1, this.v1a_1);
1563
1846
  case 2:
1564
1847
  throw this.m7_1;
1565
1848
  }
@@ -1574,15 +1857,15 @@
1574
1857
  }
1575
1858
  while (true);
1576
1859
  };
1577
- protoOf(defaultTileFetcher$slambda_1).t17 = function (url, completion) {
1578
- var i = new defaultTileFetcher$slambda_1(this.c18_1, this.d18_1, completion);
1579
- i.e18_1 = url;
1860
+ protoOf(defaultTileFetcher$slambda_1).k1a = function (url, completion) {
1861
+ var i = new defaultTileFetcher$slambda_1(this.t1a_1, this.u1a_1, completion);
1862
+ i.v1a_1 = url;
1580
1863
  return i;
1581
1864
  };
1582
1865
  function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
1583
1866
  var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
1584
1867
  return constructCallableReference(function (url, $completion) {
1585
- return i.i17(url, $completion);
1868
+ return i.z19(url, $completion);
1586
1869
  }, 1);
1587
1870
  }
1588
1871
  function defaultTileFetcher$ref() {
@@ -1598,38 +1881,38 @@
1598
1881
  attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
1599
1882
  encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
1600
1883
  maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
1601
- this.s16_1 = zoomLevel;
1602
- this.t16_1 = cacheSize;
1603
- this.u16_1 = tileUrlTemplate;
1604
- this.v16_1 = tileSize;
1605
- this.w16_1 = attribution;
1606
- this.x16_1 = encoding;
1607
- this.y16_1 = maxRequestsPerSecond;
1608
- }
1609
- protoOf(ElevationProviderConfig).f18 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
1884
+ this.z18_1 = zoomLevel;
1885
+ this.a19_1 = cacheSize;
1886
+ this.b19_1 = tileUrlTemplate;
1887
+ this.c19_1 = tileSize;
1888
+ this.d19_1 = attribution;
1889
+ this.e19_1 = encoding;
1890
+ this.f19_1 = maxRequestsPerSecond;
1891
+ }
1892
+ protoOf(ElevationProviderConfig).w1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
1610
1893
  return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
1611
1894
  };
1612
- protoOf(ElevationProviderConfig).g18 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
1613
- zoomLevel = zoomLevel === VOID ? this.s16_1 : zoomLevel;
1614
- cacheSize = cacheSize === VOID ? this.t16_1 : cacheSize;
1615
- tileUrlTemplate = tileUrlTemplate === VOID ? this.u16_1 : tileUrlTemplate;
1616
- tileSize = tileSize === VOID ? this.v16_1 : tileSize;
1617
- attribution = attribution === VOID ? this.w16_1 : attribution;
1618
- encoding = encoding === VOID ? this.x16_1 : encoding;
1619
- maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.y16_1 : maxRequestsPerSecond;
1620
- return $super === VOID ? this.f18(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.f18.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
1895
+ protoOf(ElevationProviderConfig).x1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
1896
+ zoomLevel = zoomLevel === VOID ? this.z18_1 : zoomLevel;
1897
+ cacheSize = cacheSize === VOID ? this.a19_1 : cacheSize;
1898
+ tileUrlTemplate = tileUrlTemplate === VOID ? this.b19_1 : tileUrlTemplate;
1899
+ tileSize = tileSize === VOID ? this.c19_1 : tileSize;
1900
+ attribution = attribution === VOID ? this.d19_1 : attribution;
1901
+ encoding = encoding === VOID ? this.e19_1 : encoding;
1902
+ maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.f19_1 : maxRequestsPerSecond;
1903
+ return $super === VOID ? this.w1a(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.w1a.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
1621
1904
  };
1622
1905
  protoOf(ElevationProviderConfig).toString = function () {
1623
- return 'ElevationProviderConfig(zoomLevel=' + this.s16_1 + ', cacheSize=' + this.t16_1 + ', tileUrlTemplate=' + this.u16_1 + ', tileSize=' + this.v16_1 + ', attribution=' + this.w16_1.toString() + ', encoding=' + this.x16_1.toString() + ', maxRequestsPerSecond=' + this.y16_1 + ')';
1906
+ return 'ElevationProviderConfig(zoomLevel=' + this.z18_1 + ', cacheSize=' + this.a19_1 + ', tileUrlTemplate=' + this.b19_1 + ', tileSize=' + this.c19_1 + ', attribution=' + this.d19_1.toString() + ', encoding=' + this.e19_1.toString() + ', maxRequestsPerSecond=' + this.f19_1 + ')';
1624
1907
  };
1625
1908
  protoOf(ElevationProviderConfig).hashCode = function () {
1626
- var result = this.s16_1;
1627
- result = imul(result, 31) + this.t16_1 | 0;
1628
- result = imul(result, 31) + getStringHashCode(this.u16_1) | 0;
1629
- result = imul(result, 31) + this.v16_1 | 0;
1630
- result = imul(result, 31) + this.w16_1.hashCode() | 0;
1631
- result = imul(result, 31) + this.x16_1.hashCode() | 0;
1632
- result = imul(result, 31) + this.y16_1 | 0;
1909
+ var result = this.z18_1;
1910
+ result = imul(result, 31) + this.a19_1 | 0;
1911
+ result = imul(result, 31) + getStringHashCode(this.b19_1) | 0;
1912
+ result = imul(result, 31) + this.c19_1 | 0;
1913
+ result = imul(result, 31) + this.d19_1.hashCode() | 0;
1914
+ result = imul(result, 31) + this.e19_1.hashCode() | 0;
1915
+ result = imul(result, 31) + this.f19_1 | 0;
1633
1916
  return result;
1634
1917
  };
1635
1918
  protoOf(ElevationProviderConfig).equals = function (other) {
@@ -1637,33 +1920,33 @@
1637
1920
  return true;
1638
1921
  if (!(other instanceof ElevationProviderConfig))
1639
1922
  return false;
1640
- if (!(this.s16_1 === other.s16_1))
1923
+ if (!(this.z18_1 === other.z18_1))
1641
1924
  return false;
1642
- if (!(this.t16_1 === other.t16_1))
1925
+ if (!(this.a19_1 === other.a19_1))
1643
1926
  return false;
1644
- if (!(this.u16_1 === other.u16_1))
1927
+ if (!(this.b19_1 === other.b19_1))
1645
1928
  return false;
1646
- if (!(this.v16_1 === other.v16_1))
1929
+ if (!(this.c19_1 === other.c19_1))
1647
1930
  return false;
1648
- if (!this.w16_1.equals(other.w16_1))
1931
+ if (!this.d19_1.equals(other.d19_1))
1649
1932
  return false;
1650
- if (!this.x16_1.equals(other.x16_1))
1933
+ if (!this.e19_1.equals(other.e19_1))
1651
1934
  return false;
1652
- if (!(this.y16_1 === other.y16_1))
1935
+ if (!(this.f19_1 === other.f19_1))
1653
1936
  return false;
1654
1937
  return true;
1655
1938
  };
1656
1939
  function Attribution(text, url) {
1657
1940
  url = url === VOID ? null : url;
1658
- this.h18_1 = text;
1659
- this.i18_1 = url;
1941
+ this.y1a_1 = text;
1942
+ this.z1a_1 = url;
1660
1943
  }
1661
1944
  protoOf(Attribution).toString = function () {
1662
- return 'Attribution(text=' + this.h18_1 + ', url=' + this.i18_1 + ')';
1945
+ return 'Attribution(text=' + this.y1a_1 + ', url=' + this.z1a_1 + ')';
1663
1946
  };
1664
1947
  protoOf(Attribution).hashCode = function () {
1665
- var result = getStringHashCode(this.h18_1);
1666
- result = imul(result, 31) + (this.i18_1 == null ? 0 : getStringHashCode(this.i18_1)) | 0;
1948
+ var result = getStringHashCode(this.y1a_1);
1949
+ result = imul(result, 31) + (this.z1a_1 == null ? 0 : getStringHashCode(this.z1a_1)) | 0;
1667
1950
  return result;
1668
1951
  };
1669
1952
  protoOf(Attribution).equals = function (other) {
@@ -1671,9 +1954,9 @@
1671
1954
  return true;
1672
1955
  if (!(other instanceof Attribution))
1673
1956
  return false;
1674
- if (!(this.h18_1 === other.h18_1))
1957
+ if (!(this.y1a_1 === other.y1a_1))
1675
1958
  return false;
1676
- if (!(this.i18_1 == other.i18_1))
1959
+ if (!(this.z1a_1 == other.z1a_1))
1677
1960
  return false;
1678
1961
  return true;
1679
1962
  };
@@ -1683,7 +1966,7 @@
1683
1966
  }
1684
1967
  function ElevationSmoother() {
1685
1968
  }
1686
- protoOf(ElevationSmoother).u11 = function (points, windowSize) {
1969
+ protoOf(ElevationSmoother).h12 = function (points, windowSize) {
1687
1970
  if (points.o() < 3)
1688
1971
  return points;
1689
1972
  // Inline function 'kotlin.require' call
@@ -1691,17 +1974,17 @@
1691
1974
  var message = 'Invalid window size: ' + formatWindow(ElevationSmoother_instance, windowSize) + '. Must be positive';
1692
1975
  throw IllegalArgumentException_init_$Create$(toString(message));
1693
1976
  }
1694
- var distances = Distance_instance.h12(points);
1977
+ var distances = Distance_instance.w12(points);
1695
1978
  var tmp = 0;
1696
1979
  var tmp_0 = points.o();
1697
1980
  var tmp_1 = new Float64Array(tmp_0);
1698
1981
  while (tmp < tmp_0) {
1699
1982
  var tmp_2 = tmp;
1700
- tmp_1[tmp_2] = points.p(tmp_2).d12();
1983
+ tmp_1[tmp_2] = points.p(tmp_2).s12();
1701
1984
  tmp = tmp + 1 | 0;
1702
1985
  }
1703
1986
  var elevations = tmp_1;
1704
- var smoothed = this.j18(distances, elevations, windowSize);
1987
+ var smoothed = this.a1b(distances, elevations, windowSize);
1705
1988
  // Inline function 'kotlin.collections.List' call
1706
1989
  // Inline function 'kotlin.collections.MutableList' call
1707
1990
  var size = points.o();
@@ -1712,13 +1995,13 @@
1712
1995
  do {
1713
1996
  var index = inductionVariable;
1714
1997
  inductionVariable = inductionVariable + 1 | 0;
1715
- var tmp$ret$7 = new LatLonElevation(points.p(index).f10(), points.p(index).g10(), smoothed[index]);
1998
+ var tmp$ret$7 = new LatLonElevation(points.p(index).xz(), points.p(index).yz(), smoothed[index]);
1716
1999
  list.k(tmp$ret$7);
1717
2000
  }
1718
2001
  while (inductionVariable < size);
1719
2002
  return list;
1720
2003
  };
1721
- protoOf(ElevationSmoother).j18 = function (distanceM, elevationM, windowSize) {
2004
+ protoOf(ElevationSmoother).a1b = function (distanceM, elevationM, windowSize) {
1722
2005
  // Inline function 'kotlin.require' call
1723
2006
  if (!(distanceM.length === elevationM.length)) {
1724
2007
  var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
@@ -1817,9 +2100,9 @@
1817
2100
  var ElevationSource_IGN_LIDAR_HD_instance;
1818
2101
  function Companion() {
1819
2102
  Companion_instance_0 = this;
1820
- this.k18_1 = ElevationSource_MAPTERHORN_getInstance();
2103
+ this.b1b_1 = ElevationSource_MAPTERHORN_getInstance();
1821
2104
  }
1822
- protoOf(Companion).l18 = function () {
2105
+ protoOf(Companion).c1b = function () {
1823
2106
  // Inline function 'kotlin.collections.map' call
1824
2107
  var this_0 = get_entries();
1825
2108
  // Inline function 'kotlin.collections.mapTo' call
@@ -1827,12 +2110,12 @@
1827
2110
  var _iterator__ex2g4s = this_0.l();
1828
2111
  while (_iterator__ex2g4s.m()) {
1829
2112
  var item = _iterator__ex2g4s.n();
1830
- var tmp$ret$2 = item.o18_1;
2113
+ var tmp$ret$2 = item.f1b_1;
1831
2114
  destination.k(tmp$ret$2);
1832
2115
  }
1833
2116
  return destination;
1834
2117
  };
1835
- protoOf(Companion).p18 = function (id) {
2118
+ protoOf(Companion).g1b = function (id) {
1836
2119
  var tmp0 = get_entries();
1837
2120
  var tmp$ret$0;
1838
2121
  $l$block: {
@@ -1840,7 +2123,7 @@
1840
2123
  var _iterator__ex2g4s = tmp0.l();
1841
2124
  while (_iterator__ex2g4s.m()) {
1842
2125
  var element = _iterator__ex2g4s.n();
1843
- if (element.o18_1 === id) {
2126
+ if (element.f1b_1 === id) {
1844
2127
  tmp$ret$0 = element;
1845
2128
  break $l$block;
1846
2129
  }
@@ -1850,7 +2133,7 @@
1850
2133
  var tmp0_elvis_lhs = tmp$ret$0;
1851
2134
  var tmp;
1852
2135
  if (tmp0_elvis_lhs == null) {
1853
- throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.l18()));
2136
+ throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.c1b()));
1854
2137
  } else {
1855
2138
  tmp = tmp0_elvis_lhs;
1856
2139
  }
@@ -1874,9 +2157,9 @@
1874
2157
  var $ENTRIES;
1875
2158
  function ElevationSource(name, ordinal, id) {
1876
2159
  Enum.call(this, name, ordinal);
1877
- this.o18_1 = id;
2160
+ this.f1b_1 = id;
1878
2161
  }
1879
- protoOf(ElevationSource).q18 = function () {
2162
+ protoOf(ElevationSource).h1b = function () {
1880
2163
  var tmp;
1881
2164
  switch (this.y1_1) {
1882
2165
  case 0:
@@ -1891,14 +2174,14 @@
1891
2174
  }
1892
2175
  return tmp;
1893
2176
  };
1894
- protoOf(ElevationSource).r18 = function () {
2177
+ protoOf(ElevationSource).i1b = function () {
1895
2178
  var tmp;
1896
2179
  switch (this.y1_1) {
1897
2180
  case 0:
1898
- tmp = (new ElevationProviderConfig()).s16_1;
2181
+ tmp = (new ElevationProviderConfig()).z18_1;
1899
2182
  break;
1900
2183
  case 1:
1901
- tmp = IgnLidarHdLayer_MNT_getInstance().r18();
2184
+ tmp = IgnLidarHdLayer_MNT_getInstance().i1b();
1902
2185
  break;
1903
2186
  default:
1904
2187
  noWhenBranchMatchedException();
@@ -1906,15 +2189,15 @@
1906
2189
  }
1907
2190
  return tmp;
1908
2191
  };
1909
- protoOf(ElevationSource).v18 = function (zoomLevel) {
2192
+ protoOf(ElevationSource).m1b = function (zoomLevel) {
1910
2193
  var tmp;
1911
2194
  switch (this.y1_1) {
1912
2195
  case 0:
1913
- tmp = new ElevationProviderConfig(zoomLevel == null ? this.r18() : zoomLevel);
2196
+ tmp = new ElevationProviderConfig(zoomLevel == null ? this.i1b() : zoomLevel);
1914
2197
  break;
1915
2198
  case 1:
1916
2199
  var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
1917
- tmp = tmp_0.v18(zoomLevel == null ? this.r18() : zoomLevel);
2200
+ tmp = tmp_0.m1b(zoomLevel == null ? this.i1b() : zoomLevel);
1918
2201
  break;
1919
2202
  default:
1920
2203
  noWhenBranchMatchedException();
@@ -1931,32 +2214,32 @@
1931
2214
  tmp = fetcherFor;
1932
2215
  }
1933
2216
  fetcherFor = tmp;
1934
- var config = _this__u8e3s4.v18(zoomLevel);
2217
+ var config = _this__u8e3s4.m1b(zoomLevel);
1935
2218
  var fetcher = _this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) ? ignCoverageFiltered(config, fetcherFor(config)) : fetcherFor(config);
1936
2219
  var primary = ElevationProvider_init_$Create$(config, fetcher);
1937
- var tmp0_safe_receiver = _this__u8e3s4.q18();
2220
+ var tmp0_safe_receiver = _this__u8e3s4.h1b();
1938
2221
  var tmp_0;
1939
2222
  if (tmp0_safe_receiver == null) {
1940
2223
  tmp_0 = null;
1941
2224
  } else {
1942
2225
  // Inline function 'kotlin.let' call
1943
- tmp_0 = primary.z16(provider(tmp0_safe_receiver, null, fetcherFor));
2226
+ tmp_0 = primary.o19(provider(tmp0_safe_receiver, null, fetcherFor));
1944
2227
  }
1945
2228
  var tmp1_elvis_lhs = tmp_0;
1946
2229
  var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
1947
2230
  var tmp_1;
1948
- if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.s16_1 === IgnLidarHdLayer_MNS_getInstance().r18()) {
1949
- tmp_1 = withFallback.a17(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
2231
+ if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.z18_1 === IgnLidarHdLayer_MNS_getInstance().i1b()) {
2232
+ tmp_1 = withFallback.p19(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
1950
2233
  } else {
1951
2234
  tmp_1 = withFallback;
1952
2235
  }
1953
2236
  return tmp_1;
1954
2237
  }
1955
2238
  function wmsBbox4326(tc) {
1956
- var tiles = 1 << tc.a11_1;
1957
- var west = tc.y10_1 / tiles * 360.0 - 180.0;
1958
- var east = (tc.y10_1 + 1 | 0) / tiles * 360.0 - 180.0;
1959
- return '' + tileNorthLatitude(tc.z10_1 + 1 | 0, tiles) + ',' + west + ',' + tileNorthLatitude(tc.z10_1, tiles) + ',' + east;
2239
+ var tiles = 1 << tc.n11_1;
2240
+ var west = tc.l11_1 / tiles * 360.0 - 180.0;
2241
+ var east = (tc.l11_1 + 1 | 0) / tiles * 360.0 - 180.0;
2242
+ return '' + tileNorthLatitude(tc.m11_1 + 1 | 0, tiles) + ',' + west + ',' + tileNorthLatitude(tc.m11_1, tiles) + ',' + east;
1960
2243
  }
1961
2244
  function tileNorthLatitude(y, tiles) {
1962
2245
  // Inline function 'kotlin.math.sinh' call
@@ -1974,19 +2257,19 @@
1974
2257
  return ElevationSource_IGN_LIDAR_HD_instance;
1975
2258
  }
1976
2259
  function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
1977
- this.e19_1 = $semaphore;
1978
- this.f19_1 = $action;
1979
- this.g19_1 = $item;
2260
+ this.v1b_1 = $semaphore;
2261
+ this.w1b_1 = $action;
2262
+ this.x1b_1 = $item;
1980
2263
  CoroutineImpl.call(this, resultContinuation);
1981
2264
  }
1982
- protoOf(Flux$forEachParallel$slambda$slambda).k19 = function ($this$async, $completion) {
1983
- var tmp = this.l19($this$async, $completion);
2265
+ protoOf(Flux$forEachParallel$slambda$slambda).b1c = function ($this$async, $completion) {
2266
+ var tmp = this.c1c($this$async, $completion);
1984
2267
  tmp.l7_1 = Unit_instance;
1985
2268
  tmp.m7_1 = null;
1986
2269
  return tmp.r7();
1987
2270
  };
1988
2271
  protoOf(Flux$forEachParallel$slambda$slambda).z7 = function (p1, $completion) {
1989
- return this.k19((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2272
+ return this.b1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1990
2273
  };
1991
2274
  protoOf(Flux$forEachParallel$slambda$slambda).r7 = function () {
1992
2275
  var suspendResult = this.l7_1;
@@ -1996,41 +2279,41 @@
1996
2279
  switch (tmp) {
1997
2280
  case 0:
1998
2281
  this.k7_1 = 6;
1999
- this.i19_1 = this.e19_1;
2282
+ this.z1b_1 = this.v1b_1;
2000
2283
  this.j7_1 = 1;
2001
- suspendResult = this.i19_1.yw(this);
2284
+ suspendResult = this.z1b_1.yw(this);
2002
2285
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2003
2286
  return suspendResult;
2004
2287
  }
2005
2288
 
2006
2289
  continue $sm;
2007
2290
  case 1:
2008
- this.j19_1 = Unit_instance;
2291
+ this.a1c_1 = Unit_instance;
2009
2292
  this.j7_1 = 2;
2010
2293
  continue $sm;
2011
2294
  case 2:
2012
2295
  this.k7_1 = 5;
2013
2296
  this.j7_1 = 3;
2014
- suspendResult = this.f19_1(this.g19_1, this);
2297
+ suspendResult = this.w1b_1(this.x1b_1, this);
2015
2298
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2016
2299
  return suspendResult;
2017
2300
  }
2018
2301
 
2019
2302
  continue $sm;
2020
2303
  case 3:
2021
- this.j19_1 = Unit_instance;
2304
+ this.a1c_1 = Unit_instance;
2022
2305
  this.k7_1 = 6;
2023
2306
  this.j7_1 = 4;
2024
2307
  continue $sm;
2025
2308
  case 4:
2026
- this.j19_1;
2309
+ this.a1c_1;
2027
2310
  this.k7_1 = 6;
2028
- this.i19_1.sw();
2311
+ this.z1b_1.sw();
2029
2312
  return Unit_instance;
2030
2313
  case 5:
2031
2314
  this.k7_1 = 6;
2032
2315
  var t = this.m7_1;
2033
- this.i19_1.sw();
2316
+ this.z1b_1.sw();
2034
2317
  throw t;
2035
2318
  case 6:
2036
2319
  throw this.m7_1;
@@ -2046,31 +2329,31 @@
2046
2329
  }
2047
2330
  while (true);
2048
2331
  };
2049
- protoOf(Flux$forEachParallel$slambda$slambda).l19 = function ($this$async, completion) {
2050
- var i = new Flux$forEachParallel$slambda$slambda(this.e19_1, this.f19_1, this.g19_1, completion);
2051
- i.h19_1 = $this$async;
2332
+ protoOf(Flux$forEachParallel$slambda$slambda).c1c = function ($this$async, completion) {
2333
+ var i = new Flux$forEachParallel$slambda$slambda(this.v1b_1, this.w1b_1, this.x1b_1, completion);
2334
+ i.y1b_1 = $this$async;
2052
2335
  return i;
2053
2336
  };
2054
2337
  function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
2055
2338
  var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
2056
2339
  return constructCallableReference(function ($this$async, $completion) {
2057
- return i.k19($this$async, $completion);
2340
+ return i.b1c($this$async, $completion);
2058
2341
  }, 1);
2059
2342
  }
2060
2343
  function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
2061
- this.u19_1 = $maxParallel;
2062
- this.v19_1 = $items;
2063
- this.w19_1 = $action;
2344
+ this.l1c_1 = $maxParallel;
2345
+ this.m1c_1 = $items;
2346
+ this.n1c_1 = $action;
2064
2347
  CoroutineImpl.call(this, resultContinuation);
2065
2348
  }
2066
- protoOf(Flux$forEachParallel$slambda).y19 = function ($this$coroutineScope, $completion) {
2067
- var tmp = this.l19($this$coroutineScope, $completion);
2349
+ protoOf(Flux$forEachParallel$slambda).p1c = function ($this$coroutineScope, $completion) {
2350
+ var tmp = this.c1c($this$coroutineScope, $completion);
2068
2351
  tmp.l7_1 = Unit_instance;
2069
2352
  tmp.m7_1 = null;
2070
2353
  return tmp.r7();
2071
2354
  };
2072
2355
  protoOf(Flux$forEachParallel$slambda).z7 = function (p1, $completion) {
2073
- return this.y19((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2356
+ return this.p1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2074
2357
  };
2075
2358
  protoOf(Flux$forEachParallel$slambda).r7 = function () {
2076
2359
  var suspendResult = this.l7_1;
@@ -2080,14 +2363,14 @@
2080
2363
  switch (tmp) {
2081
2364
  case 0:
2082
2365
  this.k7_1 = 2;
2083
- var semaphore = Semaphore(this.u19_1);
2366
+ var semaphore = Semaphore(this.l1c_1);
2084
2367
  this.j7_1 = 1;
2085
- var this_0 = this.v19_1;
2368
+ var this_0 = this.m1c_1;
2086
2369
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2087
2370
  var _iterator__ex2g4s = this_0.l();
2088
2371
  while (_iterator__ex2g4s.m()) {
2089
2372
  var item = _iterator__ex2g4s.n();
2090
- destination.k(async(this.x19_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.w19_1, item, null)));
2373
+ destination.k(async(this.o1c_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.n1c_1, item, null)));
2091
2374
  }
2092
2375
 
2093
2376
  suspendResult = awaitAll(destination, this);
@@ -2112,23 +2395,23 @@
2112
2395
  }
2113
2396
  while (true);
2114
2397
  };
2115
- protoOf(Flux$forEachParallel$slambda).l19 = function ($this$coroutineScope, completion) {
2116
- var i = new Flux$forEachParallel$slambda(this.u19_1, this.v19_1, this.w19_1, completion);
2117
- i.x19_1 = $this$coroutineScope;
2398
+ protoOf(Flux$forEachParallel$slambda).c1c = function ($this$coroutineScope, completion) {
2399
+ var i = new Flux$forEachParallel$slambda(this.l1c_1, this.m1c_1, this.n1c_1, completion);
2400
+ i.o1c_1 = $this$coroutineScope;
2118
2401
  return i;
2119
2402
  };
2120
2403
  function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
2121
2404
  var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
2122
2405
  return constructCallableReference(function ($this$coroutineScope, $completion) {
2123
- return i.y19($this$coroutineScope, $completion);
2406
+ return i.p1c($this$coroutineScope, $completion);
2124
2407
  }, 1);
2125
2408
  }
2126
2409
  function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
2127
2410
  CoroutineImpl.call(this, resultContinuation);
2128
- this.h1a_1 = _this__u8e3s4;
2129
- this.i1a_1 = items;
2130
- this.j1a_1 = maxParallel;
2131
- this.k1a_1 = action;
2411
+ this.y1c_1 = _this__u8e3s4;
2412
+ this.z1c_1 = items;
2413
+ this.a1d_1 = maxParallel;
2414
+ this.b1d_1 = action;
2132
2415
  }
2133
2416
  protoOf($forEachParallelCOROUTINE$).r7 = function () {
2134
2417
  var suspendResult = this.l7_1;
@@ -2138,13 +2421,13 @@
2138
2421
  switch (tmp) {
2139
2422
  case 0:
2140
2423
  this.k7_1 = 2;
2141
- if (!(this.j1a_1 >= 1)) {
2142
- var message = 'maxParallel must be >= 1, got ' + this.j1a_1;
2424
+ if (!(this.a1d_1 >= 1)) {
2425
+ var message = 'maxParallel must be >= 1, got ' + this.a1d_1;
2143
2426
  throw IllegalArgumentException_init_$Create$(toString(message));
2144
2427
  }
2145
2428
 
2146
2429
  this.j7_1 = 1;
2147
- suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.j1a_1, this.i1a_1, this.k1a_1, null), this);
2430
+ suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.a1d_1, this.z1c_1, this.b1d_1, null), this);
2148
2431
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2149
2432
  return suspendResult;
2150
2433
  }
@@ -2168,7 +2451,7 @@
2168
2451
  };
2169
2452
  function Flux() {
2170
2453
  }
2171
- protoOf(Flux).b11 = function (items, maxParallel, action, $completion) {
2454
+ protoOf(Flux).o11 = function (items, maxParallel, action, $completion) {
2172
2455
  var tmp = new $forEachParallelCOROUTINE$(this, items, maxParallel, action, $completion);
2173
2456
  tmp.l7_1 = Unit_instance;
2174
2457
  tmp.m7_1 = null;
@@ -2181,18 +2464,33 @@
2181
2464
  function ignCoverageFiltered(config, fetcher) {
2182
2465
  return ignCoverageFiltered$slambda_0(config, fetcher, null);
2183
2466
  }
2184
- function latitudeOfRow($this, y, tiles) {
2185
- // Inline function 'kotlin.math.sinh' call
2186
- var x = 3.141592653589793 - 2.0 * 3.141592653589793 * y / tiles;
2187
- // Inline function 'kotlin.math.atan' call
2188
- var x_0 = sinh(x);
2189
- return Math.atan(x_0) * 180.0 / 3.141592653589793;
2190
- }
2191
- function intersects($this, polygon, west, south, east, north) {
2192
- // Inline function 'kotlin.arrayOf' call
2193
- // Inline function 'kotlin.js.unsafeCast' call
2194
- // Inline function 'kotlin.js.asDynamic' call
2195
- var corners = [to(west, south), to(west, north), to(east, south), to(east, north)];
2467
+ function noDataTile(tileSize) {
2468
+ var rgba = new Int8Array(imul(imul(tileSize, tileSize), 4));
2469
+ var progression = step(until(3, rgba.length), 4);
2470
+ var inductionVariable = progression.v_1;
2471
+ var last = progression.w_1;
2472
+ var step_0 = progression.x_1;
2473
+ if (step_0 > 0 && inductionVariable <= last || (step_0 < 0 && last <= inductionVariable))
2474
+ do {
2475
+ var i = inductionVariable;
2476
+ inductionVariable = inductionVariable + step_0 | 0;
2477
+ rgba[i] = -1;
2478
+ }
2479
+ while (!(i === last));
2480
+ return new RawTile(tileSize, tileSize, rgba);
2481
+ }
2482
+ function latitudeOfRow($this, y, tiles) {
2483
+ // Inline function 'kotlin.math.sinh' call
2484
+ var x = 3.141592653589793 - 2.0 * 3.141592653589793 * y / tiles;
2485
+ // Inline function 'kotlin.math.atan' call
2486
+ var x_0 = sinh(x);
2487
+ return Math.atan(x_0) * 180.0 / 3.141592653589793;
2488
+ }
2489
+ function intersects($this, polygon, west, south, east, north) {
2490
+ // Inline function 'kotlin.arrayOf' call
2491
+ // Inline function 'kotlin.js.unsafeCast' call
2492
+ // Inline function 'kotlin.js.asDynamic' call
2493
+ var corners = [to(west, south), to(west, north), to(east, south), to(east, north)];
2196
2494
  var tmp$ret$3;
2197
2495
  $l$block: {
2198
2496
  // Inline function 'kotlin.collections.any' call
@@ -2300,19 +2598,46 @@
2300
2598
  IgnLidarHdCoverage_instance = this;
2301
2599
  var tmp = this;
2302
2600
  // Inline function 'kotlin.doubleArrayOf' call
2303
- tmp.l1a_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]);
2601
+ tmp.c1d_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
2602
  var tmp_0 = this;
2305
2603
  // Inline function 'kotlin.doubleArrayOf' call
2306
- tmp_0.m1a_1 = new Float64Array([8.4, 43.15, 9.7, 43.15, 9.7, 41.25, 8.4, 41.25]);
2307
- this.n1a_1 = listOf([this.l1a_1, this.m1a_1]);
2308
- }
2309
- protoOf(IgnLidarHdCoverage).o1a = function (tc) {
2310
- var tiles = 1 << tc.a11_1;
2311
- var west = tc.y10_1 / tiles * 360.0 - 180.0;
2312
- var east = (tc.y10_1 + 1 | 0) / tiles * 360.0 - 180.0;
2313
- var north = latitudeOfRow(this, tc.z10_1, tiles);
2314
- var south = latitudeOfRow(this, tc.z10_1 + 1 | 0, tiles);
2315
- var tmp0 = this.n1a_1;
2604
+ tmp_0.d1d_1 = new Float64Array([8.4, 43.15, 9.7, 43.15, 9.7, 41.25, 8.4, 41.25]);
2605
+ this.e1d_1 = listOf([this.c1d_1, this.d1d_1]);
2606
+ }
2607
+ protoOf(IgnLidarHdCoverage).f1d = function (latitude, longitude) {
2608
+ var tmp0 = this.e1d_1;
2609
+ var tmp$ret$0;
2610
+ $l$block_0: {
2611
+ // Inline function 'kotlin.collections.any' call
2612
+ var tmp;
2613
+ if (isInterface(tmp0, Collection)) {
2614
+ tmp = tmp0.r();
2615
+ } else {
2616
+ tmp = false;
2617
+ }
2618
+ if (tmp) {
2619
+ tmp$ret$0 = false;
2620
+ break $l$block_0;
2621
+ }
2622
+ var _iterator__ex2g4s = tmp0.l();
2623
+ while (_iterator__ex2g4s.m()) {
2624
+ var element = _iterator__ex2g4s.n();
2625
+ if (inside(IgnLidarHdCoverage_getInstance(), element, longitude, latitude)) {
2626
+ tmp$ret$0 = true;
2627
+ break $l$block_0;
2628
+ }
2629
+ }
2630
+ tmp$ret$0 = false;
2631
+ }
2632
+ return tmp$ret$0;
2633
+ };
2634
+ protoOf(IgnLidarHdCoverage).g1d = function (tc) {
2635
+ var tiles = 1 << tc.n11_1;
2636
+ var west = tc.l11_1 / tiles * 360.0 - 180.0;
2637
+ var east = (tc.l11_1 + 1 | 0) / tiles * 360.0 - 180.0;
2638
+ var north = latitudeOfRow(this, tc.m11_1, tiles);
2639
+ var south = latitudeOfRow(this, tc.m11_1 + 1 | 0, tiles);
2640
+ var tmp0 = this.e1d_1;
2316
2641
  var tmp$ret$0;
2317
2642
  $l$block_0: {
2318
2643
  // Inline function 'kotlin.collections.any' call
@@ -2344,34 +2669,19 @@
2344
2669
  new IgnLidarHdCoverage();
2345
2670
  return IgnLidarHdCoverage_instance;
2346
2671
  }
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
2672
  function ignCoverageFiltered$slambda($config, $fetcher, resultContinuation) {
2363
- this.x1a_1 = $config;
2364
- this.y1a_1 = $fetcher;
2673
+ this.p1d_1 = $config;
2674
+ this.q1d_1 = $fetcher;
2365
2675
  CoroutineImpl.call(this, resultContinuation);
2366
2676
  }
2367
- protoOf(ignCoverageFiltered$slambda).i17 = function (url, $completion) {
2368
- var tmp = this.t17(url, $completion);
2677
+ protoOf(ignCoverageFiltered$slambda).z19 = function (url, $completion) {
2678
+ var tmp = this.k1a(url, $completion);
2369
2679
  tmp.l7_1 = Unit_instance;
2370
2680
  tmp.m7_1 = null;
2371
2681
  return tmp.r7();
2372
2682
  };
2373
2683
  protoOf(ignCoverageFiltered$slambda).z7 = function (p1, $completion) {
2374
- return this.i17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
2684
+ return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
2375
2685
  };
2376
2686
  protoOf(ignCoverageFiltered$slambda).r7 = function () {
2377
2687
  var suspendResult = this.l7_1;
@@ -2381,25 +2691,25 @@
2381
2691
  switch (tmp) {
2382
2692
  case 0:
2383
2693
  this.k7_1 = 3;
2384
- if (IgnLidarHdCoverage_getInstance().o1a(tileCoordinatesOf(this.z1a_1, this.x1a_1))) {
2694
+ if (IgnLidarHdCoverage_getInstance().g1d(tileCoordinatesOf(this.r1d_1, this.p1d_1))) {
2385
2695
  this.j7_1 = 1;
2386
- suspendResult = this.y1a_1(this.z1a_1, this);
2696
+ suspendResult = this.q1d_1(this.r1d_1, this);
2387
2697
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2388
2698
  return suspendResult;
2389
2699
  }
2390
2700
  continue $sm;
2391
2701
  } else {
2392
- this.a1b_1 = noDataTile(this.x1a_1.v16_1);
2702
+ this.s1d_1 = noDataTile(this.p1d_1.c19_1);
2393
2703
  this.j7_1 = 2;
2394
2704
  continue $sm;
2395
2705
  }
2396
2706
 
2397
2707
  case 1:
2398
- this.a1b_1 = suspendResult;
2708
+ this.s1d_1 = suspendResult;
2399
2709
  this.j7_1 = 2;
2400
2710
  continue $sm;
2401
2711
  case 2:
2402
- return this.a1b_1;
2712
+ return this.s1d_1;
2403
2713
  case 3:
2404
2714
  throw this.m7_1;
2405
2715
  }
@@ -2414,15 +2724,15 @@
2414
2724
  }
2415
2725
  while (true);
2416
2726
  };
2417
- protoOf(ignCoverageFiltered$slambda).t17 = function (url, completion) {
2418
- var i = new ignCoverageFiltered$slambda(this.x1a_1, this.y1a_1, completion);
2419
- i.z1a_1 = url;
2727
+ protoOf(ignCoverageFiltered$slambda).k1a = function (url, completion) {
2728
+ var i = new ignCoverageFiltered$slambda(this.p1d_1, this.q1d_1, completion);
2729
+ i.r1d_1 = url;
2420
2730
  return i;
2421
2731
  };
2422
2732
  function ignCoverageFiltered$slambda_0($config, $fetcher, resultContinuation) {
2423
2733
  var i = new ignCoverageFiltered$slambda($config, $fetcher, resultContinuation);
2424
2734
  return constructCallableReference(function (url, $completion) {
2425
- return i.i17(url, $completion);
2735
+ return i.z19(url, $completion);
2426
2736
  }, 1);
2427
2737
  }
2428
2738
  var static_init_called_1;
@@ -2437,16 +2747,27 @@
2437
2747
  var IgnLidarHdLayer_MNT_instance;
2438
2748
  var IgnLidarHdLayer_MNS_instance;
2439
2749
  var IgnLidarHdLayer_MNH_instance;
2750
+ function values_0() {
2751
+ static_init_1();
2752
+ return [IgnLidarHdLayer_MNT_getInstance(), IgnLidarHdLayer_MNS_getInstance(), IgnLidarHdLayer_MNH_getInstance()];
2753
+ }
2754
+ function get_entries_0() {
2755
+ static_init_1();
2756
+ if ($ENTRIES_0 == null)
2757
+ $ENTRIES_0 = enumEntries(values_0());
2758
+ return $ENTRIES_0;
2759
+ }
2760
+ var $ENTRIES_0;
2440
2761
  function IgnLidarHdLayer(name, ordinal, wmsLayer) {
2441
2762
  Enum.call(this, name, ordinal);
2442
- this.u18_1 = wmsLayer;
2763
+ this.l1b_1 = wmsLayer;
2443
2764
  }
2444
- protoOf(IgnLidarHdLayer).r18 = function () {
2765
+ protoOf(IgnLidarHdLayer).i1b = function () {
2445
2766
  return 15;
2446
2767
  };
2447
- protoOf(IgnLidarHdLayer).v18 = function (zoomLevel) {
2448
- var tmp1_zoomLevel = zoomLevel == null ? this.r18() : zoomLevel;
2449
- var tmp3_tileUrlTemplate = ignWmsTemplate(this.u18_1, 256);
2768
+ protoOf(IgnLidarHdLayer).m1b = function (zoomLevel) {
2769
+ var tmp1_zoomLevel = zoomLevel == null ? this.i1b() : zoomLevel;
2770
+ var tmp3_tileUrlTemplate = ignWmsTemplate(this.l1b_1, 256);
2450
2771
  var tmp4_encoding = TileEncoding_BIL32_getInstance();
2451
2772
  var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.x1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
2452
2773
  return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
@@ -2460,7 +2781,7 @@
2460
2781
  tmp = fetcherFor;
2461
2782
  }
2462
2783
  fetcherFor = tmp;
2463
- var config = _this__u8e3s4.v18(zoomLevel);
2784
+ var config = _this__u8e3s4.m1b(zoomLevel);
2464
2785
  return ElevationProvider_init_$Create$_0(config, ignCoverageFiltered(config, fetcherFor(config)), true);
2465
2786
  }
2466
2787
  function ignWmsTemplate(layer, tileSize) {
@@ -2474,14 +2795,18 @@
2474
2795
  static_init_1();
2475
2796
  return IgnLidarHdLayer_MNS_instance;
2476
2797
  }
2798
+ function IgnLidarHdLayer_MNH_getInstance() {
2799
+ static_init_1();
2800
+ return IgnLidarHdLayer_MNH_instance;
2801
+ }
2477
2802
  function Hit(value) {
2478
- this.b1b_1 = value;
2803
+ this.t1d_1 = value;
2479
2804
  }
2480
2805
  function Await(deferred) {
2481
- this.c1b_1 = deferred;
2806
+ this.u1d_1 = deferred;
2482
2807
  }
2483
2808
  function Owner(deferred) {
2484
- this.d1b_1 = deferred;
2809
+ this.v1d_1 = deferred;
2485
2810
  }
2486
2811
  function LoadAbandoned() {
2487
2812
  Exception_init_$Init$('load abandoned by its cancelled owner', this);
@@ -2500,18 +2825,18 @@
2500
2825
  return tmp.r7();
2501
2826
  }
2502
2827
  function LruCache$load$slambda(this$0, $key, resultContinuation) {
2503
- this.m1c_1 = this$0;
2504
- this.n1c_1 = $key;
2828
+ this.e1f_1 = this$0;
2829
+ this.f1f_1 = $key;
2505
2830
  CoroutineImpl.call(this, resultContinuation);
2506
2831
  }
2507
- protoOf(LruCache$load$slambda).r1c = function ($this$withContext, $completion) {
2508
- var tmp = this.l19($this$withContext, $completion);
2832
+ protoOf(LruCache$load$slambda).j1f = function ($this$withContext, $completion) {
2833
+ var tmp = this.c1c($this$withContext, $completion);
2509
2834
  tmp.l7_1 = Unit_instance;
2510
2835
  tmp.m7_1 = null;
2511
2836
  return tmp.r7();
2512
2837
  };
2513
2838
  protoOf(LruCache$load$slambda).z7 = function (p1, $completion) {
2514
- return this.r1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2839
+ return this.j1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2515
2840
  };
2516
2841
  protoOf(LruCache$load$slambda).r7 = function () {
2517
2842
  var suspendResult = this.l7_1;
@@ -2521,10 +2846,10 @@
2521
2846
  switch (tmp) {
2522
2847
  case 0:
2523
2848
  this.k7_1 = 2;
2524
- this.q1c_1 = this.m1c_1.v1c_1;
2525
- this.p1c_1 = null;
2849
+ this.i1f_1 = this.e1f_1.n1f_1;
2850
+ this.h1f_1 = null;
2526
2851
  this.j7_1 = 1;
2527
- suspendResult = this.q1c_1.qw(this.p1c_1, this);
2852
+ suspendResult = this.i1f_1.qw(this.h1f_1, this);
2528
2853
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2529
2854
  return suspendResult;
2530
2855
  }
@@ -2535,18 +2860,18 @@
2535
2860
  l$ret$1: do {
2536
2861
  var tmp_0;
2537
2862
  try {
2538
- tmp$ret$0 = this.m1c_1.x1c_1.w3(this.n1c_1);
2863
+ tmp$ret$0 = this.e1f_1.p1f_1.w3(this.f1f_1);
2539
2864
  break l$ret$1;
2540
2865
  } catch ($p) {
2541
2866
  var tmp_1;
2542
2867
  var t = $p;
2543
- this.q1c_1.bw(this.p1c_1);
2868
+ this.i1f_1.bw(this.h1f_1);
2544
2869
  throw t;
2545
2870
  }
2546
2871
  }
2547
2872
  while (false);
2548
2873
  var tmp_2 = tmp$ret$0;
2549
- this.q1c_1.bw(this.p1c_1);
2874
+ this.i1f_1.bw(this.h1f_1);
2550
2875
  return tmp_2;
2551
2876
  case 2:
2552
2877
  throw this.m7_1;
@@ -2562,31 +2887,31 @@
2562
2887
  }
2563
2888
  while (true);
2564
2889
  };
2565
- protoOf(LruCache$load$slambda).l19 = function ($this$withContext, completion) {
2566
- var i = new LruCache$load$slambda(this.m1c_1, this.n1c_1, completion);
2567
- i.o1c_1 = $this$withContext;
2890
+ protoOf(LruCache$load$slambda).c1c = function ($this$withContext, completion) {
2891
+ var i = new LruCache$load$slambda(this.e1f_1, this.f1f_1, completion);
2892
+ i.g1f_1 = $this$withContext;
2568
2893
  return i;
2569
2894
  };
2570
2895
  function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
2571
2896
  var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
2572
2897
  return constructCallableReference(function ($this$withContext, $completion) {
2573
- return i.r1c($this$withContext, $completion);
2898
+ return i.j1f($this$withContext, $completion);
2574
2899
  }, 1);
2575
2900
  }
2576
2901
  function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
2577
- this.g1d_1 = this$0;
2578
- this.h1d_1 = $key;
2579
- this.i1d_1 = $value;
2902
+ this.y1f_1 = this$0;
2903
+ this.z1f_1 = $key;
2904
+ this.a1g_1 = $value;
2580
2905
  CoroutineImpl.call(this, resultContinuation);
2581
2906
  }
2582
- protoOf(LruCache$load$slambda_1).m1d = function ($this$withContext, $completion) {
2583
- var tmp = this.l19($this$withContext, $completion);
2907
+ protoOf(LruCache$load$slambda_1).e1g = function ($this$withContext, $completion) {
2908
+ var tmp = this.c1c($this$withContext, $completion);
2584
2909
  tmp.l7_1 = Unit_instance;
2585
2910
  tmp.m7_1 = null;
2586
2911
  return tmp.r7();
2587
2912
  };
2588
2913
  protoOf(LruCache$load$slambda_1).z7 = function (p1, $completion) {
2589
- return this.m1d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2914
+ return this.e1g((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2590
2915
  };
2591
2916
  protoOf(LruCache$load$slambda_1).r7 = function () {
2592
2917
  var suspendResult = this.l7_1;
@@ -2596,10 +2921,10 @@
2596
2921
  switch (tmp) {
2597
2922
  case 0:
2598
2923
  this.k7_1 = 2;
2599
- this.l1d_1 = this.g1d_1.v1c_1;
2600
- this.k1d_1 = null;
2924
+ this.d1g_1 = this.y1f_1.n1f_1;
2925
+ this.c1g_1 = null;
2601
2926
  this.j7_1 = 1;
2602
- suspendResult = this.l1d_1.qw(this.k1d_1, this);
2927
+ suspendResult = this.d1g_1.qw(this.c1g_1, this);
2603
2928
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2604
2929
  return suspendResult;
2605
2930
  }
@@ -2610,37 +2935,37 @@
2610
2935
  l$ret$1: do {
2611
2936
  var tmp_0;
2612
2937
  try {
2613
- this.g1d_1.x1c_1.w3(this.h1d_1);
2938
+ this.y1f_1.p1f_1.w3(this.z1f_1);
2614
2939
  var oldest = null;
2615
2940
  var tmp_1;
2616
- if (this.g1d_1.w1c_1.o() >= this.g1d_1.s1c_1) {
2617
- var tmp0 = this.g1d_1.w1c_1;
2618
- var key = this.h1d_1;
2941
+ if (this.y1f_1.o1f_1.o() >= this.y1f_1.k1f_1) {
2942
+ var tmp0 = this.y1f_1.o1f_1;
2943
+ var key = this.z1f_1;
2619
2944
  tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).r1(key);
2620
2945
  } else {
2621
2946
  tmp_1 = false;
2622
2947
  }
2623
2948
  if (tmp_1) {
2624
- var iter = this.g1d_1.w1c_1.w1().l();
2949
+ var iter = this.y1f_1.o1f_1.w1().l();
2625
2950
  oldest = iter.n().q1();
2626
2951
  iter.v2();
2627
2952
  }
2628
- var tmp0_0 = this.g1d_1.w1c_1;
2629
- var tmp2 = this.h1d_1;
2630
- var value = this.i1d_1;
2953
+ var tmp0_0 = this.y1f_1.o1f_1;
2954
+ var tmp2 = this.z1f_1;
2955
+ var value = this.a1g_1;
2631
2956
  tmp0_0.v3(tmp2, value);
2632
2957
  tmp$ret$0 = oldest;
2633
2958
  break l$ret$1;
2634
2959
  } catch ($p) {
2635
2960
  var tmp_2;
2636
2961
  var t = $p;
2637
- this.l1d_1.bw(this.k1d_1);
2962
+ this.d1g_1.bw(this.c1g_1);
2638
2963
  throw t;
2639
2964
  }
2640
2965
  }
2641
2966
  while (false);
2642
2967
  var tmp_3 = tmp$ret$0;
2643
- this.l1d_1.bw(this.k1d_1);
2968
+ this.d1g_1.bw(this.c1g_1);
2644
2969
  return tmp_3;
2645
2970
  case 2:
2646
2971
  throw this.m7_1;
@@ -2656,21 +2981,21 @@
2656
2981
  }
2657
2982
  while (true);
2658
2983
  };
2659
- protoOf(LruCache$load$slambda_1).l19 = function ($this$withContext, completion) {
2660
- var i = new LruCache$load$slambda_1(this.g1d_1, this.h1d_1, this.i1d_1, completion);
2661
- i.j1d_1 = $this$withContext;
2984
+ protoOf(LruCache$load$slambda_1).c1c = function ($this$withContext, completion) {
2985
+ var i = new LruCache$load$slambda_1(this.y1f_1, this.z1f_1, this.a1g_1, completion);
2986
+ i.b1g_1 = $this$withContext;
2662
2987
  return i;
2663
2988
  };
2664
2989
  function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
2665
2990
  var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
2666
2991
  return constructCallableReference(function ($this$withContext, $completion) {
2667
- return i.m1d($this$withContext, $completion);
2992
+ return i.e1g($this$withContext, $completion);
2668
2993
  }, 1);
2669
2994
  }
2670
2995
  function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
2671
2996
  CoroutineImpl.call(this, resultContinuation);
2672
- this.v1d_1 = _this__u8e3s4;
2673
- this.w1d_1 = key;
2997
+ this.n1g_1 = _this__u8e3s4;
2998
+ this.o1g_1 = key;
2674
2999
  }
2675
3000
  protoOf($getCOROUTINE$).r7 = function () {
2676
3001
  var suspendResult = this.l7_1;
@@ -2689,7 +3014,7 @@
2689
3014
  }
2690
3015
 
2691
3016
  this.j7_1 = 2;
2692
- suspendResult = lookupOrClaim(this.v1d_1, this.w1d_1, this);
3017
+ suspendResult = lookupOrClaim(this.n1g_1, this.o1g_1, this);
2693
3018
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2694
3019
  return suspendResult;
2695
3020
  }
@@ -2698,11 +3023,11 @@
2698
3023
  case 2:
2699
3024
  var lookup = suspendResult;
2700
3025
  if (lookup instanceof Hit) {
2701
- return lookup.b1b_1;
3026
+ return lookup.t1d_1;
2702
3027
  } else {
2703
3028
  if (lookup instanceof Owner) {
2704
3029
  this.j7_1 = 7;
2705
- suspendResult = load(this.v1d_1, this.w1d_1, lookup.d1b_1, this);
3030
+ suspendResult = load(this.n1g_1, this.o1g_1, lookup.v1d_1, this);
2706
3031
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2707
3032
  return suspendResult;
2708
3033
  }
@@ -2711,7 +3036,7 @@
2711
3036
  if (lookup instanceof Await) {
2712
3037
  this.k7_1 = 4;
2713
3038
  this.j7_1 = 3;
2714
- suspendResult = lookup.c1b_1.fo(this);
3039
+ suspendResult = lookup.u1d_1.fo(this);
2715
3040
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2716
3041
  return suspendResult;
2717
3042
  }
@@ -2763,8 +3088,8 @@
2763
3088
  };
2764
3089
  function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
2765
3090
  CoroutineImpl.call(this, resultContinuation);
2766
- this.m1b_1 = _this__u8e3s4;
2767
- this.n1b_1 = key;
3091
+ this.e1e_1 = _this__u8e3s4;
3092
+ this.f1e_1 = key;
2768
3093
  }
2769
3094
  protoOf($lookupOrClaimCOROUTINE$).r7 = function () {
2770
3095
  var suspendResult = this.l7_1;
@@ -2774,10 +3099,10 @@
2774
3099
  switch (tmp) {
2775
3100
  case 0:
2776
3101
  this.k7_1 = 2;
2777
- this.p1b_1 = this.m1b_1.v1c_1;
2778
- this.o1b_1 = null;
3102
+ this.h1e_1 = this.e1e_1.n1f_1;
3103
+ this.g1e_1 = null;
2779
3104
  this.j7_1 = 1;
2780
- suspendResult = this.p1b_1.qw(this.o1b_1, this);
3105
+ suspendResult = this.h1e_1.qw(this.g1e_1, this);
2781
3106
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2782
3107
  return suspendResult;
2783
3108
  }
@@ -2790,22 +3115,22 @@
2790
3115
  try {
2791
3116
  var tmp$ret$0 = Unit_instance;
2792
3117
  l$ret$1: do {
2793
- var hit = this.m1b_1.w1c_1.w3(this.n1b_1);
3118
+ var hit = this.e1e_1.o1f_1.w3(this.f1e_1);
2794
3119
  if (!(hit == null)) {
2795
- var tmp0 = this.m1b_1.w1c_1;
2796
- var key = this.n1b_1;
3120
+ var tmp0 = this.e1e_1.o1f_1;
3121
+ var key = this.f1e_1;
2797
3122
  tmp0.v3(key, hit);
2798
3123
  tmp$ret$0 = new Hit(hit);
2799
3124
  break l$ret$1;
2800
3125
  }
2801
- var raced = this.m1b_1.x1c_1.t1(this.n1b_1);
3126
+ var raced = this.e1e_1.p1f_1.t1(this.f1e_1);
2802
3127
  var tmp_1;
2803
3128
  if (!(raced == null)) {
2804
3129
  tmp_1 = new Await(raced);
2805
3130
  } else {
2806
3131
  var ours = CompletableDeferred();
2807
- var tmp0_0 = this.m1b_1.x1c_1;
2808
- var key_0 = this.n1b_1;
3132
+ var tmp0_0 = this.e1e_1.p1f_1;
3133
+ var key_0 = this.f1e_1;
2809
3134
  tmp0_0.v3(key_0, ours);
2810
3135
  tmp_1 = new Owner(ours);
2811
3136
  }
@@ -2817,13 +3142,13 @@
2817
3142
  } catch ($p) {
2818
3143
  var tmp_2;
2819
3144
  var t = $p;
2820
- this.p1b_1.bw(this.o1b_1);
3145
+ this.h1e_1.bw(this.g1e_1);
2821
3146
  throw t;
2822
3147
  }
2823
3148
  }
2824
3149
  while (false);
2825
3150
  var tmp_3 = tmp$ret$2;
2826
- this.p1b_1.bw(this.o1b_1);
3151
+ this.h1e_1.bw(this.g1e_1);
2827
3152
  return tmp_3;
2828
3153
  case 2:
2829
3154
  throw this.m7_1;
@@ -2841,9 +3166,9 @@
2841
3166
  };
2842
3167
  function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
2843
3168
  CoroutineImpl.call(this, resultContinuation);
2844
- this.y1b_1 = _this__u8e3s4;
2845
- this.z1b_1 = key;
2846
- this.a1c_1 = ours;
3169
+ this.q1e_1 = _this__u8e3s4;
3170
+ this.r1e_1 = key;
3171
+ this.s1e_1 = ours;
2847
3172
  }
2848
3173
  protoOf($loadCOROUTINE$).r7 = function () {
2849
3174
  var suspendResult = this.l7_1;
@@ -2855,14 +3180,14 @@
2855
3180
  this.k7_1 = 6;
2856
3181
  this.k7_1 = 2;
2857
3182
  this.j7_1 = 1;
2858
- suspendResult = this.y1b_1.t1c_1(this.z1b_1, this);
3183
+ suspendResult = this.q1e_1.l1f_1(this.r1e_1, this);
2859
3184
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2860
3185
  return suspendResult;
2861
3186
  }
2862
3187
 
2863
3188
  continue $sm;
2864
3189
  case 1:
2865
- this.c1c_1 = suspendResult;
3190
+ this.u1e_1 = suspendResult;
2866
3191
  this.k7_1 = 6;
2867
3192
  this.j7_1 = 4;
2868
3193
  continue $sm;
@@ -2870,10 +3195,10 @@
2870
3195
  this.k7_1 = 6;
2871
3196
  var tmp_0 = this.m7_1;
2872
3197
  if (tmp_0 instanceof Error) {
2873
- this.d1c_1 = this.m7_1;
3198
+ this.v1e_1 = this.m7_1;
2874
3199
  this.j7_1 = 3;
2875
3200
  var tmp_1 = NonCancellable_getInstance();
2876
- suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.y1b_1, this.z1b_1, null), this);
3201
+ suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.q1e_1, this.r1e_1, null), this);
2877
3202
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2878
3203
  return suspendResult;
2879
3204
  }
@@ -2884,22 +3209,22 @@
2884
3209
 
2885
3210
  case 3:
2886
3211
  var tmp_2;
2887
- var tmp_3 = this.d1c_1;
3212
+ var tmp_3 = this.v1e_1;
2888
3213
  if (tmp_3 instanceof CancellationException) {
2889
3214
  tmp_2 = new LoadAbandoned();
2890
3215
  } else {
2891
- tmp_2 = this.d1c_1;
3216
+ tmp_2 = this.v1e_1;
2892
3217
  }
2893
3218
 
2894
- this.a1c_1.jr(tmp_2);
3219
+ this.s1e_1.jr(tmp_2);
2895
3220
  var tmp_4 = this;
2896
- throw this.d1c_1;
3221
+ throw this.v1e_1;
2897
3222
  case 4:
2898
3223
  this.k7_1 = 6;
2899
- this.b1c_1 = this.c1c_1;
3224
+ this.t1e_1 = this.u1e_1;
2900
3225
  this.j7_1 = 5;
2901
3226
  var tmp_5 = NonCancellable_getInstance();
2902
- suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.y1b_1, this.z1b_1, this.b1c_1, null), this);
3227
+ suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.q1e_1, this.r1e_1, this.t1e_1, null), this);
2903
3228
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2904
3229
  return suspendResult;
2905
3230
  }
@@ -2907,16 +3232,16 @@
2907
3232
  continue $sm;
2908
3233
  case 5:
2909
3234
  var evicted = suspendResult;
2910
- this.a1c_1.ir(this.b1c_1);
3235
+ this.s1e_1.ir(this.t1e_1);
2911
3236
  if (!(evicted == null)) {
2912
- var tmp0_safe_receiver = this.y1b_1.u1c_1;
3237
+ var tmp0_safe_receiver = this.q1e_1.m1f_1;
2913
3238
  if (tmp0_safe_receiver == null)
2914
3239
  null;
2915
3240
  else
2916
3241
  tmp0_safe_receiver(evicted);
2917
3242
  }
2918
3243
 
2919
- return this.b1c_1;
3244
+ return this.t1e_1;
2920
3245
  case 6:
2921
3246
  throw this.m7_1;
2922
3247
  }
@@ -2933,33 +3258,33 @@
2933
3258
  };
2934
3259
  function LruCache(maxSize, loader, onEvict) {
2935
3260
  onEvict = onEvict === VOID ? null : onEvict;
2936
- this.s1c_1 = maxSize;
2937
- this.t1c_1 = loader;
2938
- this.u1c_1 = onEvict;
3261
+ this.k1f_1 = maxSize;
3262
+ this.l1f_1 = loader;
3263
+ this.m1f_1 = onEvict;
2939
3264
  // Inline function 'kotlin.require' call
2940
- if (!(this.s1c_1 > 0)) {
3265
+ if (!(this.k1f_1 > 0)) {
2941
3266
  var message = 'Cache size must be greater than 0';
2942
3267
  throw IllegalArgumentException_init_$Create$(toString(message));
2943
3268
  }
2944
- this.v1c_1 = Mutex();
2945
- this.w1c_1 = LinkedHashMap_init_$Create$();
3269
+ this.n1f_1 = Mutex();
3270
+ this.o1f_1 = LinkedHashMap_init_$Create$();
2946
3271
  var tmp = this;
2947
3272
  // Inline function 'kotlin.collections.mutableMapOf' call
2948
- tmp.x1c_1 = LinkedHashMap_init_$Create$();
3273
+ tmp.p1f_1 = LinkedHashMap_init_$Create$();
2949
3274
  }
2950
- protoOf(LruCache).x1d = function (key, $completion) {
3275
+ protoOf(LruCache).p1g = function (key, $completion) {
2951
3276
  var tmp = new $getCOROUTINE$(this, key, $completion);
2952
3277
  tmp.l7_1 = Unit_instance;
2953
3278
  tmp.m7_1 = null;
2954
3279
  return tmp.r7();
2955
3280
  };
2956
3281
  function RawTile(width, height, rgba) {
2957
- this.y1d_1 = width;
2958
- this.z1d_1 = height;
2959
- this.a1e_1 = rgba;
3282
+ this.q1g_1 = width;
3283
+ this.r1g_1 = height;
3284
+ this.s1g_1 = rgba;
2960
3285
  // Inline function 'kotlin.require' call
2961
- if (!(this.a1e_1.length === imul(imul(this.y1d_1, this.z1d_1), 4))) {
2962
- var message = 'rgba size ' + this.a1e_1.length + ' does not match width*height*4 (' + imul(imul(this.y1d_1, this.z1d_1), 4) + ')';
3286
+ if (!(this.s1g_1.length === imul(imul(this.q1g_1, this.r1g_1), 4))) {
3287
+ var message = 'rgba size ' + this.s1g_1.length + ' does not match width*height*4 (' + imul(imul(this.q1g_1, this.r1g_1), 4) + ')';
2963
3288
  throw IllegalArgumentException_init_$Create$(toString(message));
2964
3289
  }
2965
3290
  }
@@ -2968,100 +3293,614 @@
2968
3293
  return true;
2969
3294
  if (!(other instanceof RawTile))
2970
3295
  return false;
2971
- return this.y1d_1 === other.y1d_1 && this.z1d_1 === other.z1d_1 && contentEquals(this.a1e_1, other.a1e_1);
3296
+ return this.q1g_1 === other.q1g_1 && this.r1g_1 === other.r1g_1 && contentEquals(this.s1g_1, other.s1g_1);
2972
3297
  };
2973
3298
  protoOf(RawTile).hashCode = function () {
2974
- var result = this.y1d_1;
2975
- result = imul(31, result) + this.z1d_1 | 0;
2976
- result = imul(31, result) + contentHashCode(this.a1e_1) | 0;
3299
+ var result = this.q1g_1;
3300
+ result = imul(31, result) + this.r1g_1 | 0;
3301
+ result = imul(31, result) + contentHashCode(this.s1g_1) | 0;
2977
3302
  return result;
2978
3303
  };
3304
+ function TerrainSample(latitude, longitude, elevation, origin, afterError) {
3305
+ this.i19_1 = latitude;
3306
+ this.j19_1 = longitude;
3307
+ this.k19_1 = elevation;
3308
+ this.l19_1 = origin;
3309
+ this.m19_1 = afterError;
3310
+ }
3311
+ protoOf(TerrainSample).t1g = function (latitude, longitude, elevation, origin, afterError) {
3312
+ return new TerrainSample(latitude, longitude, elevation, origin, afterError);
3313
+ };
3314
+ protoOf(TerrainSample).n19 = function (latitude, longitude, elevation, origin, afterError, $super) {
3315
+ latitude = latitude === VOID ? this.i19_1 : latitude;
3316
+ longitude = longitude === VOID ? this.j19_1 : longitude;
3317
+ elevation = elevation === VOID ? this.k19_1 : elevation;
3318
+ origin = origin === VOID ? this.l19_1 : origin;
3319
+ afterError = afterError === VOID ? this.m19_1 : afterError;
3320
+ return $super === VOID ? this.t1g(latitude, longitude, elevation, origin, afterError) : $super.t1g.call(this, latitude, longitude, elevation, origin, afterError);
3321
+ };
3322
+ protoOf(TerrainSample).toString = function () {
3323
+ return 'TerrainSample(latitude=' + this.i19_1 + ', longitude=' + this.j19_1 + ', elevation=' + this.k19_1 + ', origin=' + this.l19_1.toString() + ', afterError=' + this.m19_1 + ')';
3324
+ };
3325
+ protoOf(TerrainSample).hashCode = function () {
3326
+ var result = getNumberHashCode(this.i19_1);
3327
+ result = imul(result, 31) + getNumberHashCode(this.j19_1) | 0;
3328
+ result = imul(result, 31) + getNumberHashCode(this.k19_1) | 0;
3329
+ result = imul(result, 31) + this.l19_1.hashCode() | 0;
3330
+ result = imul(result, 31) + getBooleanHashCode(this.m19_1) | 0;
3331
+ return result;
3332
+ };
3333
+ protoOf(TerrainSample).equals = function (other) {
3334
+ if (this === other)
3335
+ return true;
3336
+ if (!(other instanceof TerrainSample))
3337
+ return false;
3338
+ if (!equals(this.i19_1, other.i19_1))
3339
+ return false;
3340
+ if (!equals(this.j19_1, other.j19_1))
3341
+ return false;
3342
+ if (!equals(this.k19_1, other.k19_1))
3343
+ return false;
3344
+ if (!this.l19_1.equals(other.l19_1))
3345
+ return false;
3346
+ if (!(this.m19_1 === other.m19_1))
3347
+ return false;
3348
+ return true;
3349
+ };
3350
+ var static_init_called_2;
3351
+ function static_init_2() {
3352
+ if (static_init_called_2)
3353
+ return Unit_instance;
3354
+ static_init_called_2 = true;
3355
+ TerrainOrigin_IGN_LIDAR_HD_instance = new TerrainOrigin('IGN_LIDAR_HD', 0, 'ign-lidar-hd', true);
3356
+ TerrainOrigin_MAPTERHORN_MEASURED_instance = new TerrainOrigin('MAPTERHORN_MEASURED', 1, 'mapterhorn-measured', true);
3357
+ TerrainOrigin_MAPTERHORN_instance = new TerrainOrigin('MAPTERHORN', 2, 'mapterhorn', false);
3358
+ TerrainOrigin_OTHER_instance = new TerrainOrigin('OTHER', 3, 'other', false);
3359
+ TerrainOrigin_NONE_instance = new TerrainOrigin('NONE', 4, 'none', false);
3360
+ if (Companion_instance_1 == null) {
3361
+ Companion_instance;
3362
+ new Companion_0();
3363
+ }
3364
+ }
3365
+ var TerrainOrigin_IGN_LIDAR_HD_instance;
3366
+ var TerrainOrigin_MAPTERHORN_MEASURED_instance;
3367
+ var TerrainOrigin_MAPTERHORN_instance;
3368
+ var TerrainOrigin_OTHER_instance;
3369
+ var TerrainOrigin_NONE_instance;
3370
+ function Companion_0() {
3371
+ Companion_instance_1 = this;
3372
+ var tmp = this;
3373
+ // Inline function 'kotlin.collections.map' call
3374
+ var this_0 = get_entries_1();
3375
+ // Inline function 'kotlin.collections.mapTo' call
3376
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
3377
+ var _iterator__ex2g4s = this_0.l();
3378
+ while (_iterator__ex2g4s.m()) {
3379
+ var item = _iterator__ex2g4s.n();
3380
+ var tmp$ret$2 = item.w1g_1;
3381
+ destination.k(tmp$ret$2);
3382
+ }
3383
+ tmp.g19_1 = destination;
3384
+ }
3385
+ protoOf(Companion_0).h19 = function (config, latitude, longitude) {
3386
+ var template = config.b19_1;
3387
+ var tmp;
3388
+ var tmp0 = get_entries_0();
3389
+ var tmp$ret$0;
3390
+ $l$block_0: {
3391
+ // Inline function 'kotlin.collections.any' call
3392
+ var tmp_0;
3393
+ if (isInterface(tmp0, Collection)) {
3394
+ tmp_0 = tmp0.r();
3395
+ } else {
3396
+ tmp_0 = false;
3397
+ }
3398
+ if (tmp_0) {
3399
+ tmp$ret$0 = false;
3400
+ break $l$block_0;
3401
+ }
3402
+ var _iterator__ex2g4s = tmp0.l();
3403
+ while (_iterator__ex2g4s.m()) {
3404
+ var element = _iterator__ex2g4s.n();
3405
+ if (element.m1b(config.z18_1).b19_1 === template) {
3406
+ tmp$ret$0 = true;
3407
+ break $l$block_0;
3408
+ }
3409
+ }
3410
+ tmp$ret$0 = false;
3411
+ }
3412
+ if (tmp$ret$0) {
3413
+ tmp = TerrainOrigin_IGN_LIDAR_HD_getInstance();
3414
+ } else {
3415
+ if (template === ElevationSource_MAPTERHORN_getInstance().m1b(config.z18_1).b19_1) {
3416
+ tmp = IgnLidarHdCoverage_getInstance().f1d(latitude, longitude) ? TerrainOrigin_MAPTERHORN_MEASURED_getInstance() : TerrainOrigin_MAPTERHORN_getInstance();
3417
+ } else {
3418
+ tmp = TerrainOrigin_OTHER_getInstance();
3419
+ }
3420
+ }
3421
+ return tmp;
3422
+ };
3423
+ var Companion_instance_1;
3424
+ function Companion_getInstance_1() {
3425
+ static_init_2();
3426
+ return Companion_instance_1;
3427
+ }
3428
+ function values_1() {
3429
+ static_init_2();
3430
+ return [TerrainOrigin_IGN_LIDAR_HD_getInstance(), TerrainOrigin_MAPTERHORN_MEASURED_getInstance(), TerrainOrigin_MAPTERHORN_getInstance(), TerrainOrigin_OTHER_getInstance(), TerrainOrigin_NONE_getInstance()];
3431
+ }
3432
+ function get_entries_1() {
3433
+ static_init_2();
3434
+ if ($ENTRIES_1 == null)
3435
+ $ENTRIES_1 = enumEntries(values_1());
3436
+ return $ENTRIES_1;
3437
+ }
3438
+ var $ENTRIES_1;
3439
+ function TerrainOrigin(name, ordinal, id, measured) {
3440
+ Enum.call(this, name, ordinal);
3441
+ this.w1g_1 = id;
3442
+ this.x1g_1 = measured;
3443
+ }
3444
+ function TerrainOrigin_IGN_LIDAR_HD_getInstance() {
3445
+ static_init_2();
3446
+ return TerrainOrigin_IGN_LIDAR_HD_instance;
3447
+ }
3448
+ function TerrainOrigin_MAPTERHORN_MEASURED_getInstance() {
3449
+ static_init_2();
3450
+ return TerrainOrigin_MAPTERHORN_MEASURED_instance;
3451
+ }
3452
+ function TerrainOrigin_MAPTERHORN_getInstance() {
3453
+ static_init_2();
3454
+ return TerrainOrigin_MAPTERHORN_instance;
3455
+ }
3456
+ function TerrainOrigin_OTHER_getInstance() {
3457
+ static_init_2();
3458
+ return TerrainOrigin_OTHER_instance;
3459
+ }
3460
+ function TerrainOrigin_NONE_getInstance() {
3461
+ static_init_2();
3462
+ return TerrainOrigin_NONE_instance;
3463
+ }
2979
3464
  function Tile_init_$Init$(raw, $this) {
2980
- Tile.call($this, raw.y1d_1, raw.z1d_1, raw.a1e_1);
3465
+ Tile.call($this, raw.q1g_1, raw.r1g_1, raw.s1g_1);
2981
3466
  return $this;
2982
3467
  }
2983
3468
  function Tile_init_$Create$(raw) {
2984
3469
  return Tile_init_$Init$(raw, objectCreate(protoOf(Tile)));
2985
3470
  }
2986
- function Companion_0() {
3471
+ function Companion_1() {
2987
3472
  }
2988
- protoOf(Companion_0).b1e = function (r, g, b) {
3473
+ protoOf(Companion_1).y1g = function (r, g, b) {
2989
3474
  var raw = r * 256.0 + g + b / 256.0 - 32768.0;
2990
3475
  return round(raw * 100.0) / 100.0;
2991
3476
  };
2992
- var Companion_instance_1;
2993
- function Companion_getInstance_1() {
2994
- return Companion_instance_1;
3477
+ var Companion_instance_2;
3478
+ function Companion_getInstance_2() {
3479
+ return Companion_instance_2;
2995
3480
  }
2996
3481
  function Tile(width, height, rgba) {
2997
- this.v14_1 = width;
2998
- this.w14_1 = height;
2999
- this.x14_1 = rgba;
3482
+ this.c16_1 = width;
3483
+ this.d16_1 = height;
3484
+ this.e16_1 = rgba;
3485
+ this.f16_1 = false;
3000
3486
  var tmp = this;
3001
3487
  var tmp_0 = 0;
3002
- var tmp_1 = imul(this.v14_1, this.w14_1);
3488
+ var tmp_1 = imul(this.c16_1, this.d16_1);
3003
3489
  var tmp_2 = new Float64Array(tmp_1);
3004
3490
  while (tmp_0 < tmp_1) {
3005
3491
  tmp_2[tmp_0] = NaN;
3006
3492
  tmp_0 = tmp_0 + 1 | 0;
3007
3493
  }
3008
- tmp.y14_1 = tmp_2;
3009
- this.z14_1 = 0;
3494
+ tmp.g16_1 = tmp_2;
3495
+ this.h16_1 = 0;
3010
3496
  }
3011
- protoOf(Tile).a15 = function (pixel) {
3012
- var containsUpper = this.v14_1;
3013
- var containsArg = pixel.p14_1;
3497
+ protoOf(Tile).i16 = function (pixel) {
3498
+ var containsUpper = this.c16_1;
3499
+ var containsArg = pixel.v15_1;
3014
3500
  // Inline function 'kotlin.require' call
3015
3501
  if (!(0 <= containsArg ? containsArg < containsUpper : false)) {
3016
- var message = 'Invalid x position: ' + pixel.p14_1 + '. Must be between 0 and ' + (this.v14_1 - 1 | 0);
3502
+ var message = 'Invalid x position: ' + pixel.v15_1 + '. Must be between 0 and ' + (this.c16_1 - 1 | 0);
3017
3503
  throw IllegalArgumentException_init_$Create$(toString(message));
3018
3504
  }
3019
- var containsUpper_0 = this.w14_1;
3020
- var containsArg_0 = pixel.q14_1;
3505
+ var containsUpper_0 = this.d16_1;
3506
+ var containsArg_0 = pixel.w15_1;
3021
3507
  // Inline function 'kotlin.require' call
3022
3508
  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.w14_1 - 1 | 0);
3509
+ var message_0 = 'Invalid y position: ' + pixel.w15_1 + '. Must be between 0 and ' + (this.d16_1 - 1 | 0);
3024
3510
  throw IllegalArgumentException_init_$Create$(toString(message_0));
3025
3511
  }
3026
- var idx = imul(pixel.q14_1, this.v14_1) + pixel.p14_1 | 0;
3027
- var cached = this.y14_1[idx];
3512
+ var idx = imul(pixel.w15_1, this.c16_1) + pixel.v15_1 | 0;
3513
+ var cached = this.g16_1[idx];
3028
3514
  if (!isNaN_0(cached))
3029
3515
  return cached;
3030
3516
  var byteOffset = imul(idx, 4);
3031
- var r = this.x14_1[byteOffset] & 255;
3032
- var g = this.x14_1[byteOffset + 1 | 0] & 255;
3033
- var b = this.x14_1[byteOffset + 2 | 0] & 255;
3034
- var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_1.b1e(r, g, b);
3035
- this.y14_1[idx] = elevation;
3036
- this.z14_1 = this.z14_1 + 1 | 0;
3517
+ var r = this.e16_1[byteOffset] & 255;
3518
+ var g = this.e16_1[byteOffset + 1 | 0] & 255;
3519
+ var b = this.e16_1[byteOffset + 2 | 0] & 255;
3520
+ var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_2.y1g(r, g, b);
3521
+ this.g16_1[idx] = elevation;
3522
+ this.h16_1 = this.h16_1 + 1 | 0;
3037
3523
  return elevation;
3038
3524
  };
3525
+ function UnreadableTiles$Companion$monotonicClock$lambda($origin) {
3526
+ return function () {
3527
+ return _Duration___get_inWholeMilliseconds__impl__msfiry(ValueTimeMark__elapsedNow_impl_eonqvs($origin));
3528
+ };
3529
+ }
3530
+ function Entry(failure, untilMs) {
3531
+ this.z1g_1 = failure;
3532
+ this.a1h_1 = untilMs;
3533
+ }
3534
+ function _get_empty__hz710c($this) {
3535
+ var tmp0 = $this.h1h_1;
3536
+ var tmp = KProperty1;
3537
+ // Inline function 'kotlin.getValue' call
3538
+ getPropertyCallableRef('empty', 1, tmp, UnreadableTiles$_get_empty_$ref_9kivqt(), null);
3539
+ return tmp0.q1();
3540
+ }
3541
+ function Companion_2() {
3542
+ Companion_instance_3 = this;
3543
+ this.i1h_1 = new Long(60000, 0);
3544
+ var tmp = this;
3545
+ // Inline function 'kotlin.let' call
3546
+ var origin = Monotonic_instance.wb();
3547
+ tmp.j1h_1 = UnreadableTiles$Companion$monotonicClock$lambda(origin);
3548
+ }
3549
+ var Companion_instance_3;
3550
+ function Companion_getInstance_3() {
3551
+ if (Companion_instance_3 == null)
3552
+ new Companion_2();
3553
+ return Companion_instance_3;
3554
+ }
3555
+ function UnreadableTiles$empty$delegate$lambda(this$0) {
3556
+ return function () {
3557
+ // Inline function 'kotlin.also' call
3558
+ var this_0 = Tile_init_$Create$(noDataTile(this$0.c1h_1));
3559
+ this_0.f16_1 = true;
3560
+ return this_0;
3561
+ };
3562
+ }
3563
+ function UnreadableTiles$_get_empty_$ref_9kivqt() {
3564
+ return constructCallableReference(function (p0) {
3565
+ return _get_empty__hz710c(p0);
3566
+ }, 1, 0, 4);
3567
+ }
3568
+ function $cachedCOROUTINE$(_this__u8e3s4, tc, resultContinuation) {
3569
+ CoroutineImpl.call(this, resultContinuation);
3570
+ this.s1h_1 = _this__u8e3s4;
3571
+ this.t1h_1 = tc;
3572
+ }
3573
+ protoOf($cachedCOROUTINE$).r7 = function () {
3574
+ var suspendResult = this.l7_1;
3575
+ $sm: do
3576
+ try {
3577
+ var tmp = this.j7_1;
3578
+ switch (tmp) {
3579
+ case 0:
3580
+ this.k7_1 = 4;
3581
+ this.w1h_1 = this.s1h_1.f1h_1;
3582
+ this.v1h_1 = null;
3583
+ this.j7_1 = 1;
3584
+ suspendResult = this.w1h_1.qw(this.v1h_1, this);
3585
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3586
+ return suspendResult;
3587
+ }
3588
+
3589
+ continue $sm;
3590
+ case 1:
3591
+ var tmp$ret$2 = Unit_instance;
3592
+ l$ret$3: do {
3593
+ var tmp$ret$0;
3594
+ l$ret$1: do {
3595
+ var tmp_0;
3596
+ try {
3597
+ var tmp0_elvis_lhs = this.s1h_1.g1h_1.t1(this.t1h_1);
3598
+ var tmp_1;
3599
+ if (tmp0_elvis_lhs == null) {
3600
+ tmp$ret$0 = null;
3601
+ break l$ret$1;
3602
+ } else {
3603
+ tmp_1 = tmp0_elvis_lhs;
3604
+ }
3605
+ var e = tmp_1;
3606
+ if (compare(this.s1h_1.e1h_1(), e.a1h_1) >= 0) {
3607
+ this.s1h_1.g1h_1.w3(this.t1h_1);
3608
+ tmp$ret$0 = null;
3609
+ break l$ret$1;
3610
+ }
3611
+ tmp$ret$2 = e;
3612
+ break l$ret$3;
3613
+ } catch ($p) {
3614
+ var tmp_2;
3615
+ var t = $p;
3616
+ this.w1h_1.bw(this.v1h_1);
3617
+ throw t;
3618
+ }
3619
+ }
3620
+ while (false);
3621
+ var tmp_3 = tmp$ret$0;
3622
+ this.w1h_1.bw(this.v1h_1);
3623
+ return tmp_3;
3624
+ }
3625
+ while (false);
3626
+ var tmp_4 = tmp$ret$2;
3627
+ this.w1h_1.bw(this.v1h_1);
3628
+ var entry = tmp_4;
3629
+ var tmp0_safe_receiver = this.p7().w7(Key_instance);
3630
+ if (tmp0_safe_receiver == null) {
3631
+ this.u1h_1 = null;
3632
+ this.j7_1 = 3;
3633
+ continue $sm;
3634
+ } else {
3635
+ this.j7_1 = 2;
3636
+ suspendResult = tmp0_safe_receiver.a1i(entry.z1g_1, this);
3637
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3638
+ return suspendResult;
3639
+ }
3640
+ continue $sm;
3641
+ }
3642
+
3643
+ case 2:
3644
+ var tmp_5 = this;
3645
+ tmp_5.u1h_1 = Unit_instance;
3646
+ this.j7_1 = 3;
3647
+ continue $sm;
3648
+ case 3:
3649
+ return _get_empty__hz710c(this.s1h_1);
3650
+ case 4:
3651
+ throw this.m7_1;
3652
+ }
3653
+ } catch ($p_0) {
3654
+ var e_0 = $p_0;
3655
+ if (this.k7_1 === 4) {
3656
+ throw e_0;
3657
+ } else {
3658
+ this.j7_1 = this.k7_1;
3659
+ this.m7_1 = e_0;
3660
+ }
3661
+ }
3662
+ while (true);
3663
+ };
3664
+ function $rememberCOROUTINE$(_this__u8e3s4, tc, error, resultContinuation) {
3665
+ CoroutineImpl.call(this, resultContinuation);
3666
+ this.j1i_1 = _this__u8e3s4;
3667
+ this.k1i_1 = tc;
3668
+ this.l1i_1 = error;
3669
+ }
3670
+ protoOf($rememberCOROUTINE$).r7 = function () {
3671
+ var suspendResult = this.l7_1;
3672
+ $sm: do
3673
+ try {
3674
+ var tmp = this.j7_1;
3675
+ switch (tmp) {
3676
+ case 0:
3677
+ this.k7_1 = 4;
3678
+ var tmp_0 = this;
3679
+ var tmp0_elvis_lhs = this.l1i_1.message;
3680
+ var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.l1i_1).t8() : tmp0_elvis_lhs;
3681
+ tmp_0.n1i_1 = new TileFailure(this.j1i_1.b1h_1, this.k1i_1, tmp1_elvis_lhs == null ? 'error' : tmp1_elvis_lhs);
3682
+ this.p1i_1 = this.j1i_1.f1h_1;
3683
+ this.o1i_1 = null;
3684
+ this.j7_1 = 1;
3685
+ suspendResult = this.p1i_1.qw(this.o1i_1, this);
3686
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3687
+ return suspendResult;
3688
+ }
3689
+
3690
+ continue $sm;
3691
+ case 1:
3692
+ l$ret$1: do {
3693
+ var tmp_1;
3694
+ try {
3695
+ var tmp0 = this.j1i_1.g1h_1;
3696
+ var tmp2 = this.k1i_1;
3697
+ var value = new Entry(this.n1i_1, add(this.j1i_1.e1h_1(), this.j1i_1.d1h_1));
3698
+ tmp0.v3(tmp2, value);
3699
+ break l$ret$1;
3700
+ } catch ($p) {
3701
+ var tmp_2;
3702
+ var t = $p;
3703
+ this.p1i_1.bw(this.o1i_1);
3704
+ throw t;
3705
+ }
3706
+ }
3707
+ while (false);
3708
+ this.p1i_1.bw(this.o1i_1);
3709
+ var tmp2_safe_receiver = this.p7().w7(Key_instance);
3710
+ if (tmp2_safe_receiver == null) {
3711
+ this.m1i_1 = null;
3712
+ this.j7_1 = 3;
3713
+ continue $sm;
3714
+ } else {
3715
+ this.j7_1 = 2;
3716
+ suspendResult = tmp2_safe_receiver.a1i(this.n1i_1, this);
3717
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3718
+ return suspendResult;
3719
+ }
3720
+ continue $sm;
3721
+ }
3722
+
3723
+ case 2:
3724
+ var tmp_3 = this;
3725
+ tmp_3.m1i_1 = Unit_instance;
3726
+ this.j7_1 = 3;
3727
+ continue $sm;
3728
+ case 3:
3729
+ return _get_empty__hz710c(this.j1i_1);
3730
+ case 4:
3731
+ throw this.m7_1;
3732
+ }
3733
+ } catch ($p_0) {
3734
+ var e = $p_0;
3735
+ if (this.k7_1 === 4) {
3736
+ throw e;
3737
+ } else {
3738
+ this.j7_1 = this.k7_1;
3739
+ this.m7_1 = e;
3740
+ }
3741
+ }
3742
+ while (true);
3743
+ };
3744
+ function UnreadableTiles(urlTemplate, tileSize, retryAfterMs, now) {
3745
+ Companion_getInstance_3();
3746
+ retryAfterMs = retryAfterMs === VOID ? new Long(60000, 0) : retryAfterMs;
3747
+ now = now === VOID ? Companion_getInstance_3().j1h_1 : now;
3748
+ this.b1h_1 = urlTemplate;
3749
+ this.c1h_1 = tileSize;
3750
+ this.d1h_1 = retryAfterMs;
3751
+ this.e1h_1 = now;
3752
+ this.f1h_1 = Mutex();
3753
+ this.g1h_1 = HashMap_init_$Create$();
3754
+ var tmp = this;
3755
+ tmp.h1h_1 = lazy(UnreadableTiles$empty$delegate$lambda(this));
3756
+ }
3757
+ protoOf(UnreadableTiles).q1i = function (tc, $completion) {
3758
+ var tmp = new $cachedCOROUTINE$(this, tc, $completion);
3759
+ tmp.l7_1 = Unit_instance;
3760
+ tmp.m7_1 = null;
3761
+ return tmp.r7();
3762
+ };
3763
+ protoOf(UnreadableTiles).r1i = function (tc, error, $completion) {
3764
+ var tmp = new $rememberCOROUTINE$(this, tc, error, $completion);
3765
+ tmp.l7_1 = Unit_instance;
3766
+ tmp.m7_1 = null;
3767
+ return tmp.r7();
3768
+ };
3769
+ function TileFailure(urlTemplate, tile, message) {
3770
+ this.s1i_1 = urlTemplate;
3771
+ this.t1i_1 = tile;
3772
+ this.u1i_1 = message;
3773
+ }
3774
+ protoOf(TileFailure).toString = function () {
3775
+ return 'TileFailure(urlTemplate=' + this.s1i_1 + ', tile=' + this.t1i_1.toString() + ', message=' + this.u1i_1 + ')';
3776
+ };
3777
+ protoOf(TileFailure).hashCode = function () {
3778
+ var result = getStringHashCode(this.s1i_1);
3779
+ result = imul(result, 31) + this.t1i_1.hashCode() | 0;
3780
+ result = imul(result, 31) + getStringHashCode(this.u1i_1) | 0;
3781
+ return result;
3782
+ };
3783
+ protoOf(TileFailure).equals = function (other) {
3784
+ if (this === other)
3785
+ return true;
3786
+ if (!(other instanceof TileFailure))
3787
+ return false;
3788
+ if (!(this.s1i_1 === other.s1i_1))
3789
+ return false;
3790
+ if (!this.t1i_1.equals(other.t1i_1))
3791
+ return false;
3792
+ if (!(this.u1i_1 === other.u1i_1))
3793
+ return false;
3794
+ return true;
3795
+ };
3796
+ function Key() {
3797
+ }
3798
+ var Key_instance;
3799
+ function Key_getInstance() {
3800
+ return Key_instance;
3801
+ }
3802
+ function $recordCOROUTINE$(_this__u8e3s4, failure, resultContinuation) {
3803
+ CoroutineImpl.call(this, resultContinuation);
3804
+ this.d1j_1 = _this__u8e3s4;
3805
+ this.e1j_1 = failure;
3806
+ }
3807
+ protoOf($recordCOROUTINE$).r7 = function () {
3808
+ var suspendResult = this.l7_1;
3809
+ $sm: do
3810
+ try {
3811
+ var tmp = this.j7_1;
3812
+ switch (tmp) {
3813
+ case 0:
3814
+ this.k7_1 = 2;
3815
+ this.g1j_1 = this.d1j_1.y1h_1;
3816
+ this.f1j_1 = null;
3817
+ this.j7_1 = 1;
3818
+ suspendResult = this.g1j_1.qw(this.f1j_1, this);
3819
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3820
+ return suspendResult;
3821
+ }
3822
+
3823
+ continue $sm;
3824
+ case 1:
3825
+ l$ret$1: do {
3826
+ var tmp_0;
3827
+ try {
3828
+ var tmp0 = this.d1j_1.z1h_1;
3829
+ var key = this.e1j_1.s1i_1 + '|' + this.e1j_1.t1i_1.toString();
3830
+ var value = tmp0.t1(key);
3831
+ var tmp_1;
3832
+ if (value == null) {
3833
+ var answer = this.e1j_1;
3834
+ tmp0.v3(key, answer);
3835
+ tmp_1 = answer;
3836
+ } else {
3837
+ tmp_1 = value;
3838
+ }
3839
+ break l$ret$1;
3840
+ } catch ($p) {
3841
+ var tmp_2;
3842
+ var t = $p;
3843
+ this.g1j_1.bw(this.f1j_1);
3844
+ throw t;
3845
+ }
3846
+ }
3847
+ while (false);
3848
+ this.g1j_1.bw(this.f1j_1);
3849
+ return Unit_instance;
3850
+ case 2:
3851
+ throw this.m7_1;
3852
+ }
3853
+ } catch ($p_0) {
3854
+ var e = $p_0;
3855
+ if (this.k7_1 === 2) {
3856
+ throw e;
3857
+ } else {
3858
+ this.j7_1 = this.k7_1;
3859
+ this.m7_1 = e;
3860
+ }
3861
+ }
3862
+ while (true);
3863
+ };
3864
+ function TileFailureLog() {
3865
+ AbstractCoroutineContextElement.call(this, Key_instance);
3866
+ this.y1h_1 = Mutex();
3867
+ this.z1h_1 = LinkedHashMap_init_$Create$();
3868
+ }
3869
+ protoOf(TileFailureLog).a1i = function (failure, $completion) {
3870
+ var tmp = new $recordCOROUTINE$(this, failure, $completion);
3871
+ tmp.l7_1 = Unit_instance;
3872
+ tmp.m7_1 = null;
3873
+ return tmp.r7();
3874
+ };
3875
+ protoOf(TileFailureLog).h1j = function () {
3876
+ return toList_0(this.z1h_1.v1());
3877
+ };
3039
3878
  function buildUrl($this, tc) {
3040
3879
  // Inline function 'kotlin.let' call
3041
- var it = replace(replace(replace($this.r14_1, '{z}', tc.a11_1.toString()), '{x}', tc.y10_1.toString()), '{y}', tc.z10_1.toString());
3880
+ var it = replace(replace(replace($this.x15_1, '{z}', tc.n11_1.toString()), '{x}', tc.l11_1.toString()), '{y}', tc.m11_1.toString());
3042
3881
  return contains(it, '{bbox}') ? replace(it, '{bbox}', wmsBbox4326(tc)) : it;
3043
3882
  }
3044
3883
  function fetchAndDecodeTile$ref_0() {
3045
3884
  KFunctionImpl.call(this, 1, 2, 2);
3046
3885
  }
3047
- protoOf(fetchAndDecodeTile$ref_0).i17 = function (p0, $completion) {
3886
+ protoOf(fetchAndDecodeTile$ref_0).z19 = function (p0, $completion) {
3048
3887
  return fetchAndDecodeTile(p0, $completion);
3049
3888
  };
3050
3889
  protoOf(fetchAndDecodeTile$ref_0).z7 = function (p1, $completion) {
3051
- return this.i17((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
3890
+ return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
3052
3891
  };
3053
3892
  function TileManager$cache$slambda(this$0, resultContinuation) {
3054
- this.n1e_1 = this$0;
3893
+ this.t1j_1 = this$0;
3055
3894
  CoroutineImpl.call(this, resultContinuation);
3056
3895
  }
3057
- protoOf(TileManager$cache$slambda).p1e = function (tc, $completion) {
3058
- var tmp = this.q1e(tc, $completion);
3896
+ protoOf(TileManager$cache$slambda).v1j = function (tc, $completion) {
3897
+ var tmp = this.w1j(tc, $completion);
3059
3898
  tmp.l7_1 = Unit_instance;
3060
3899
  tmp.m7_1 = null;
3061
3900
  return tmp.r7();
3062
3901
  };
3063
3902
  protoOf(TileManager$cache$slambda).z7 = function (p1, $completion) {
3064
- return this.p1e(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
3903
+ return this.v1j(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
3065
3904
  };
3066
3905
  protoOf(TileManager$cache$slambda).r7 = function () {
3067
3906
  var suspendResult = this.l7_1;
@@ -3072,7 +3911,7 @@
3072
3911
  case 0:
3073
3912
  this.k7_1 = 2;
3074
3913
  this.j7_1 = 1;
3075
- suspendResult = this.n1e_1.s14_1(buildUrl(this.n1e_1, this.o1e_1), this);
3914
+ suspendResult = this.t1j_1.y15_1(buildUrl(this.t1j_1, this.u1j_1), this);
3076
3915
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3077
3916
  return suspendResult;
3078
3917
  }
@@ -3095,17 +3934,121 @@
3095
3934
  }
3096
3935
  while (true);
3097
3936
  };
3098
- protoOf(TileManager$cache$slambda).q1e = function (tc, completion) {
3099
- var i = new TileManager$cache$slambda(this.n1e_1, completion);
3100
- i.o1e_1 = tc;
3937
+ protoOf(TileManager$cache$slambda).w1j = function (tc, completion) {
3938
+ var i = new TileManager$cache$slambda(this.t1j_1, completion);
3939
+ i.u1j_1 = tc;
3101
3940
  return i;
3102
3941
  };
3103
3942
  function TileManager$cache$slambda_0(this$0, resultContinuation) {
3104
3943
  var i = new TileManager$cache$slambda(this$0, resultContinuation);
3105
3944
  return constructCallableReference(function (tc, $completion) {
3106
- return i.p1e(tc, $completion);
3945
+ return i.v1j(tc, $completion);
3107
3946
  }, 1);
3108
3947
  }
3948
+ function $getTileCOROUTINE$(_this__u8e3s4, tileCoords, resultContinuation) {
3949
+ CoroutineImpl.call(this, resultContinuation);
3950
+ this.f1k_1 = _this__u8e3s4;
3951
+ this.g1k_1 = tileCoords;
3952
+ }
3953
+ protoOf($getTileCOROUTINE$).r7 = function () {
3954
+ var suspendResult = this.l7_1;
3955
+ $sm: do
3956
+ try {
3957
+ var tmp = this.j7_1;
3958
+ switch (tmp) {
3959
+ case 0:
3960
+ this.k7_1 = 8;
3961
+ var tmp0_elvis_lhs = this.f1k_1.z15_1;
3962
+ if (tmp0_elvis_lhs == null) {
3963
+ this.j7_1 = 1;
3964
+ suspendResult = this.f1k_1.a16_1.p1g(this.g1k_1, this);
3965
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3966
+ return suspendResult;
3967
+ }
3968
+ continue $sm;
3969
+ } else {
3970
+ this.j1k_1 = tmp0_elvis_lhs;
3971
+ this.j7_1 = 2;
3972
+ continue $sm;
3973
+ }
3974
+
3975
+ case 1:
3976
+ var tmp_0 = this;
3977
+ return suspendResult;
3978
+ case 2:
3979
+ this.i1k_1 = this.j1k_1;
3980
+ this.j7_1 = 3;
3981
+ suspendResult = this.i1k_1.q1i(this.g1k_1, this);
3982
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3983
+ return suspendResult;
3984
+ }
3985
+
3986
+ continue $sm;
3987
+ case 3:
3988
+ var tmp1_safe_receiver = suspendResult;
3989
+ if (tmp1_safe_receiver == null)
3990
+ null;
3991
+ else {
3992
+ return tmp1_safe_receiver;
3993
+ }
3994
+
3995
+ this.k7_1 = 5;
3996
+ this.j7_1 = 4;
3997
+ suspendResult = this.f1k_1.a16_1.p1g(this.g1k_1, this);
3998
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3999
+ return suspendResult;
4000
+ }
4001
+
4002
+ continue $sm;
4003
+ case 4:
4004
+ this.h1k_1 = suspendResult;
4005
+ this.k7_1 = 8;
4006
+ this.j7_1 = 7;
4007
+ continue $sm;
4008
+ case 5:
4009
+ this.k7_1 = 8;
4010
+ var tmp_1 = this.m7_1;
4011
+ if (tmp_1 instanceof CancellationException) {
4012
+ var e = this.m7_1;
4013
+ var tmp_2 = this;
4014
+ throw e;
4015
+ } else {
4016
+ var tmp_3 = this.m7_1;
4017
+ if (tmp_3 instanceof Exception) {
4018
+ var e_0 = this.m7_1;
4019
+ ensureActive(this.p7());
4020
+ this.j7_1 = 6;
4021
+ suspendResult = this.i1k_1.r1i(this.g1k_1, e_0, this);
4022
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
4023
+ return suspendResult;
4024
+ }
4025
+ continue $sm;
4026
+ } else {
4027
+ throw this.m7_1;
4028
+ }
4029
+ }
4030
+
4031
+ case 6:
4032
+ this.h1k_1 = suspendResult;
4033
+ this.j7_1 = 7;
4034
+ continue $sm;
4035
+ case 7:
4036
+ this.k7_1 = 8;
4037
+ return this.h1k_1;
4038
+ case 8:
4039
+ throw this.m7_1;
4040
+ }
4041
+ } catch ($p) {
4042
+ var e_1 = $p;
4043
+ if (this.k7_1 === 8) {
4044
+ throw e_1;
4045
+ } else {
4046
+ this.j7_1 = this.k7_1;
4047
+ this.m7_1 = e_1;
4048
+ }
4049
+ }
4050
+ while (true);
4051
+ };
3109
4052
  function TileManager(urlTemplate, cacheSize, fetcher) {
3110
4053
  var tmp;
3111
4054
  if (fetcher === VOID) {
@@ -3114,13 +4057,17 @@
3114
4057
  tmp = fetcher;
3115
4058
  }
3116
4059
  fetcher = tmp;
3117
- this.r14_1 = urlTemplate;
3118
- this.s14_1 = fetcher;
4060
+ this.x15_1 = urlTemplate;
4061
+ this.y15_1 = fetcher;
4062
+ this.z15_1 = null;
3119
4063
  var tmp_0 = this;
3120
- tmp_0.t14_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
4064
+ tmp_0.a16_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
3121
4065
  }
3122
- protoOf(TileManager).u14 = function (tileCoords, $completion) {
3123
- return this.t14_1.x1d(tileCoords, $completion);
4066
+ protoOf(TileManager).b16 = function (tileCoords, $completion) {
4067
+ var tmp = new $getTileCOROUTINE$(this, tileCoords, $completion);
4068
+ tmp.l7_1 = Unit_instance;
4069
+ tmp.m7_1 = null;
4070
+ return tmp.r7();
3124
4071
  };
3125
4072
  function get_processClock() {
3126
4073
  _init_properties_TileRequestPacing_kt__e3tnun();
@@ -3159,13 +4106,13 @@
3159
4106
  retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
3160
4107
  IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
3161
4108
  captureStack(this, TileFetchException);
3162
- this.r1e_1 = url;
3163
- this.s1e_1 = status;
3164
- this.t1e_1 = retryAfterSeconds;
4109
+ this.k1k_1 = url;
4110
+ this.l1k_1 = status;
4111
+ this.m1k_1 = retryAfterSeconds;
3165
4112
  }
3166
4113
  function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
3167
4114
  CoroutineImpl.call(this, resultContinuation);
3168
- this.c1f_1 = _this__u8e3s4;
4115
+ this.v1k_1 = _this__u8e3s4;
3169
4116
  }
3170
4117
  protoOf($awaitTurnCOROUTINE$).r7 = function () {
3171
4118
  var suspendResult = this.l7_1;
@@ -3175,10 +4122,10 @@
3175
4122
  switch (tmp) {
3176
4123
  case 0:
3177
4124
  this.k7_1 = 4;
3178
- this.e1f_1 = this.c1f_1.h1f_1;
3179
- this.d1f_1 = null;
4125
+ this.x1k_1 = this.v1k_1.a1l_1;
4126
+ this.w1k_1 = null;
3180
4127
  this.j7_1 = 1;
3181
- suspendResult = this.e1f_1.qw(this.d1f_1, this);
4128
+ suspendResult = this.x1k_1.qw(this.w1k_1, this);
3182
4129
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3183
4130
  return suspendResult;
3184
4131
  }
@@ -3189,22 +4136,22 @@
3189
4136
  l$ret$1: do {
3190
4137
  var tmp_0;
3191
4138
  try {
3192
- var t = toNumber(this.c1f_1.f1f_1());
3193
- var b = this.c1f_1.i1f_1;
4139
+ var t = toNumber(this.v1k_1.y1k_1());
4140
+ var b = this.v1k_1.b1l_1;
3194
4141
  var slot = Math.max(t, b);
3195
- this.c1f_1.i1f_1 = slot + this.c1f_1.g1f_1;
4142
+ this.v1k_1.b1l_1 = slot + this.v1k_1.z1k_1;
3196
4143
  tmp$ret$0 = slot - t;
3197
4144
  break l$ret$1;
3198
4145
  } catch ($p) {
3199
4146
  var tmp_1;
3200
4147
  var t_0 = $p;
3201
- this.e1f_1.bw(this.d1f_1);
4148
+ this.x1k_1.bw(this.w1k_1);
3202
4149
  throw t_0;
3203
4150
  }
3204
4151
  }
3205
4152
  while (false);
3206
4153
  var tmp_2 = tmp$ret$0;
3207
- this.e1f_1.bw(this.d1f_1);
4154
+ this.x1k_1.bw(this.w1k_1);
3208
4155
  var waitMs = tmp_2;
3209
4156
  if (waitMs > 0) {
3210
4157
  this.j7_1 = 2;
@@ -3238,50 +4185,50 @@
3238
4185
  while (true);
3239
4186
  };
3240
4187
  function RequestPacer(perSecond, now) {
3241
- this.f1f_1 = now;
3242
- this.g1f_1 = 1000.0 / perSecond;
3243
- this.h1f_1 = Mutex();
3244
- this.i1f_1 = -Infinity;
4188
+ this.y1k_1 = now;
4189
+ this.z1k_1 = 1000.0 / perSecond;
4190
+ this.a1l_1 = Mutex();
4191
+ this.b1l_1 = -Infinity;
3245
4192
  }
3246
- protoOf(RequestPacer).j1f = function ($completion) {
4193
+ protoOf(RequestPacer).c1l = function ($completion) {
3247
4194
  var tmp = new $awaitTurnCOROUTINE$(this, $completion);
3248
4195
  tmp.l7_1 = Unit_instance;
3249
4196
  tmp.m7_1 = null;
3250
4197
  return tmp.r7();
3251
4198
  };
3252
- function Key(host, perSecond, clock) {
3253
- this.k1f_1 = host;
3254
- this.l1f_1 = perSecond;
3255
- this.m1f_1 = clock;
4199
+ function Key_0(host, perSecond, clock) {
4200
+ this.d1l_1 = host;
4201
+ this.e1l_1 = perSecond;
4202
+ this.f1l_1 = clock;
3256
4203
  }
3257
- protoOf(Key).toString = function () {
3258
- return 'Key(host=' + this.k1f_1 + ', perSecond=' + this.l1f_1 + ', clock=' + toString(this.m1f_1) + ')';
4204
+ protoOf(Key_0).toString = function () {
4205
+ return 'Key(host=' + this.d1l_1 + ', perSecond=' + this.e1l_1 + ', clock=' + toString(this.f1l_1) + ')';
3259
4206
  };
3260
- protoOf(Key).hashCode = function () {
3261
- var result = getStringHashCode(this.k1f_1);
3262
- result = imul(result, 31) + this.l1f_1 | 0;
3263
- result = imul(result, 31) + hashCode(this.m1f_1) | 0;
4207
+ protoOf(Key_0).hashCode = function () {
4208
+ var result = getStringHashCode(this.d1l_1);
4209
+ result = imul(result, 31) + this.e1l_1 | 0;
4210
+ result = imul(result, 31) + hashCode(this.f1l_1) | 0;
3264
4211
  return result;
3265
4212
  };
3266
- protoOf(Key).equals = function (other) {
4213
+ protoOf(Key_0).equals = function (other) {
3267
4214
  if (this === other)
3268
4215
  return true;
3269
- if (!(other instanceof Key))
4216
+ if (!(other instanceof Key_0))
3270
4217
  return false;
3271
- if (!(this.k1f_1 === other.k1f_1))
4218
+ if (!(this.d1l_1 === other.d1l_1))
3272
4219
  return false;
3273
- if (!(this.l1f_1 === other.l1f_1))
4220
+ if (!(this.e1l_1 === other.e1l_1))
3274
4221
  return false;
3275
- if (!equals(this.m1f_1, other.m1f_1))
4222
+ if (!equals(this.f1l_1, other.f1l_1))
3276
4223
  return false;
3277
4224
  return true;
3278
4225
  };
3279
4226
  function $ofCOROUTINE$(_this__u8e3s4, host, perSecond, clock, resultContinuation) {
3280
4227
  CoroutineImpl.call(this, resultContinuation);
3281
- this.v1f_1 = _this__u8e3s4;
3282
- this.w1f_1 = host;
3283
- this.x1f_1 = perSecond;
3284
- this.y1f_1 = clock;
4228
+ this.o1l_1 = _this__u8e3s4;
4229
+ this.p1l_1 = host;
4230
+ this.q1l_1 = perSecond;
4231
+ this.r1l_1 = clock;
3285
4232
  }
3286
4233
  protoOf($ofCOROUTINE$).r7 = function () {
3287
4234
  var suspendResult = this.l7_1;
@@ -3291,10 +4238,10 @@
3291
4238
  switch (tmp) {
3292
4239
  case 0:
3293
4240
  this.k7_1 = 2;
3294
- this.a1g_1 = this.v1f_1.b1g_1;
3295
- this.z1f_1 = null;
4241
+ this.t1l_1 = this.o1l_1.u1l_1;
4242
+ this.s1l_1 = null;
3296
4243
  this.j7_1 = 1;
3297
- suspendResult = this.a1g_1.qw(this.z1f_1, this);
4244
+ suspendResult = this.t1l_1.qw(this.s1l_1, this);
3298
4245
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3299
4246
  return suspendResult;
3300
4247
  }
@@ -3305,12 +4252,12 @@
3305
4252
  l$ret$1: do {
3306
4253
  var tmp_0;
3307
4254
  try {
3308
- var tmp0 = HostPacers_getInstance().c1g_1;
3309
- var key = new Key(this.w1f_1, this.x1f_1, this.y1f_1);
4255
+ var tmp0 = HostPacers_getInstance().v1l_1;
4256
+ var key = new Key_0(this.p1l_1, this.q1l_1, this.r1l_1);
3310
4257
  var value = tmp0.t1(key);
3311
4258
  var tmp_1;
3312
4259
  if (value == null) {
3313
- var answer = new RequestPacer(this.x1f_1, this.y1f_1);
4260
+ var answer = new RequestPacer(this.q1l_1, this.r1l_1);
3314
4261
  tmp0.v3(key, answer);
3315
4262
  tmp_1 = answer;
3316
4263
  } else {
@@ -3321,13 +4268,13 @@
3321
4268
  } catch ($p) {
3322
4269
  var tmp_2;
3323
4270
  var t = $p;
3324
- this.a1g_1.bw(this.z1f_1);
4271
+ this.t1l_1.bw(this.s1l_1);
3325
4272
  throw t;
3326
4273
  }
3327
4274
  }
3328
4275
  while (false);
3329
4276
  var tmp_3 = tmp$ret$0;
3330
- this.a1g_1.bw(this.z1f_1);
4277
+ this.t1l_1.bw(this.s1l_1);
3331
4278
  return tmp_3;
3332
4279
  case 2:
3333
4280
  throw this.m7_1;
@@ -3345,10 +4292,10 @@
3345
4292
  };
3346
4293
  function HostPacers() {
3347
4294
  HostPacers_instance = this;
3348
- this.b1g_1 = Mutex();
3349
- this.c1g_1 = HashMap_init_$Create$();
4295
+ this.u1l_1 = Mutex();
4296
+ this.v1l_1 = HashMap_init_$Create$();
3350
4297
  }
3351
- protoOf(HostPacers).d1g = function (host, perSecond, clock, $completion) {
4298
+ protoOf(HostPacers).w1l = function (host, perSecond, clock, $completion) {
3352
4299
  var tmp = new $ofCOROUTINE$(this, host, perSecond, clock, $completion);
3353
4300
  tmp.l7_1 = Unit_instance;
3354
4301
  tmp.m7_1 = null;
@@ -3370,29 +4317,29 @@
3370
4317
  };
3371
4318
  }
3372
4319
  function fetchTileBytes$ref() {
3373
- KFunctionImpl.call(this, 1, 2, 4);
4320
+ KFunctionImpl.call(this, 1, 2, 5);
3374
4321
  }
3375
- protoOf(fetchTileBytes$ref).h1g = function (p0, $completion) {
4322
+ protoOf(fetchTileBytes$ref).a1m = function (p0, $completion) {
3376
4323
  return fetchTileBytes(p0, $completion);
3377
4324
  };
3378
4325
  protoOf(fetchTileBytes$ref).z7 = function (p1, $completion) {
3379
- return this.h1g((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
4326
+ return this.a1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
3380
4327
  };
3381
4328
  function pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
3382
- this.q1g_1 = $maxRequestsPerSecond;
3383
- this.r1g_1 = $now;
3384
- this.s1g_1 = $fetch;
3385
- this.t1g_1 = $maxAttempts;
4329
+ this.j1m_1 = $maxRequestsPerSecond;
4330
+ this.k1m_1 = $now;
4331
+ this.l1m_1 = $fetch;
4332
+ this.m1m_1 = $maxAttempts;
3386
4333
  CoroutineImpl.call(this, resultContinuation);
3387
4334
  }
3388
- protoOf(pacedTileBytesFetcher$slambda).h1g = function (url, $completion) {
3389
- var tmp = this.t17(url, $completion);
4335
+ protoOf(pacedTileBytesFetcher$slambda).a1m = function (url, $completion) {
4336
+ var tmp = this.k1a(url, $completion);
3390
4337
  tmp.l7_1 = Unit_instance;
3391
4338
  tmp.m7_1 = null;
3392
4339
  return tmp.r7();
3393
4340
  };
3394
4341
  protoOf(pacedTileBytesFetcher$slambda).z7 = function (p1, $completion) {
3395
- return this.h1g((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
4342
+ return this.a1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
3396
4343
  };
3397
4344
  protoOf(pacedTileBytesFetcher$slambda).r7 = function () {
3398
4345
  var suspendResult = this.l7_1;
@@ -3402,43 +4349,43 @@
3402
4349
  switch (tmp) {
3403
4350
  case 0:
3404
4351
  this.k7_1 = 11;
3405
- if (this.q1g_1 > 0) {
4352
+ if (this.j1m_1 > 0) {
3406
4353
  this.j7_1 = 1;
3407
- suspendResult = HostPacers_getInstance().d1g(hostOf(this.u1g_1), this.q1g_1, this.r1g_1, this);
4354
+ suspendResult = HostPacers_getInstance().w1l(hostOf(this.n1m_1), this.j1m_1, this.k1m_1, this);
3408
4355
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3409
4356
  return suspendResult;
3410
4357
  }
3411
4358
  continue $sm;
3412
4359
  } else {
3413
- this.a1h_1 = null;
4360
+ this.t1m_1 = null;
3414
4361
  this.j7_1 = 2;
3415
4362
  continue $sm;
3416
4363
  }
3417
4364
 
3418
4365
  case 1:
3419
- this.a1h_1 = suspendResult;
4366
+ this.t1m_1 = suspendResult;
3420
4367
  this.j7_1 = 2;
3421
4368
  continue $sm;
3422
4369
  case 2:
3423
- this.z1g_1 = this.a1h_1;
3424
- this.x1g_1 = 1;
3425
- this.v1g_1 = null;
4370
+ this.s1m_1 = this.t1m_1;
4371
+ this.q1m_1 = 1;
4372
+ this.o1m_1 = null;
3426
4373
  this.j7_1 = 3;
3427
4374
  continue $sm;
3428
4375
  case 3:
3429
- if (!(this.v1g_1 == null)) {
4376
+ if (!(this.o1m_1 == null)) {
3430
4377
  this.j7_1 = 10;
3431
4378
  continue $sm;
3432
4379
  }
3433
4380
 
3434
- var tmp0_safe_receiver = this.z1g_1;
4381
+ var tmp0_safe_receiver = this.s1m_1;
3435
4382
  if (tmp0_safe_receiver == null) {
3436
- this.y1g_1 = null;
4383
+ this.r1m_1 = null;
3437
4384
  this.j7_1 = 5;
3438
4385
  continue $sm;
3439
4386
  } else {
3440
4387
  this.j7_1 = 4;
3441
- suspendResult = tmp0_safe_receiver.j1f(this);
4388
+ suspendResult = tmp0_safe_receiver.c1l(this);
3442
4389
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3443
4390
  return suspendResult;
3444
4391
  }
@@ -3447,13 +4394,13 @@
3447
4394
 
3448
4395
  case 4:
3449
4396
  var tmp_0 = this;
3450
- tmp_0.y1g_1 = Unit_instance;
4397
+ tmp_0.r1m_1 = Unit_instance;
3451
4398
  this.j7_1 = 5;
3452
4399
  continue $sm;
3453
4400
  case 5:
3454
4401
  this.k7_1 = 7;
3455
4402
  this.j7_1 = 6;
3456
- suspendResult = this.s1g_1(this.u1g_1, this);
4403
+ suspendResult = this.l1m_1(this.n1m_1, this);
3457
4404
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3458
4405
  return suspendResult;
3459
4406
  }
@@ -3461,8 +4408,8 @@
3461
4408
  continue $sm;
3462
4409
  case 6:
3463
4410
  var tmp_1 = this;
3464
- this.v1g_1 = suspendResult;
3465
- tmp_1.w1g_1 = Unit_instance;
4411
+ this.o1m_1 = suspendResult;
4412
+ tmp_1.p1m_1 = Unit_instance;
3466
4413
  this.k7_1 = 11;
3467
4414
  this.j7_1 = 9;
3468
4415
  continue $sm;
@@ -3471,11 +4418,11 @@
3471
4418
  var tmp_2 = this.m7_1;
3472
4419
  if (tmp_2 instanceof TileFetchException) {
3473
4420
  var e = this.m7_1;
3474
- if (!(e.s1e_1 === 429) && !(e.s1e_1 === 503) || this.x1g_1 >= this.t1g_1)
4421
+ if (!(e.l1k_1 === 429) && !(e.l1k_1 === 503) || this.q1m_1 >= this.m1m_1)
3475
4422
  throw e;
3476
4423
  this.j7_1 = 8;
3477
- var tmp1_elvis_lhs = e.t1e_1;
3478
- suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.x1g_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
4424
+ var tmp1_elvis_lhs = e.m1k_1;
4425
+ suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.q1m_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
3479
4426
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3480
4427
  return suspendResult;
3481
4428
  }
@@ -3486,9 +4433,9 @@
3486
4433
 
3487
4434
  case 8:
3488
4435
  var tmp_3 = this;
3489
- var _unary__edvuaz = this.x1g_1;
3490
- this.x1g_1 = _unary__edvuaz + 1 | 0;
3491
- tmp_3.w1g_1 = _unary__edvuaz;
4436
+ var _unary__edvuaz = this.q1m_1;
4437
+ this.q1m_1 = _unary__edvuaz + 1 | 0;
4438
+ tmp_3.p1m_1 = _unary__edvuaz;
3492
4439
  this.j7_1 = 9;
3493
4440
  continue $sm;
3494
4441
  case 9:
@@ -3496,7 +4443,7 @@
3496
4443
  this.j7_1 = 3;
3497
4444
  continue $sm;
3498
4445
  case 10:
3499
- return this.v1g_1;
4446
+ return this.o1m_1;
3500
4447
  case 11:
3501
4448
  throw this.m7_1;
3502
4449
  }
@@ -3511,15 +4458,15 @@
3511
4458
  }
3512
4459
  while (true);
3513
4460
  };
3514
- protoOf(pacedTileBytesFetcher$slambda).t17 = function (url, completion) {
3515
- var i = new pacedTileBytesFetcher$slambda(this.q1g_1, this.r1g_1, this.s1g_1, this.t1g_1, completion);
3516
- i.u1g_1 = url;
4461
+ protoOf(pacedTileBytesFetcher$slambda).k1a = function (url, completion) {
4462
+ var i = new pacedTileBytesFetcher$slambda(this.j1m_1, this.k1m_1, this.l1m_1, this.m1m_1, completion);
4463
+ i.n1m_1 = url;
3517
4464
  return i;
3518
4465
  };
3519
4466
  function pacedTileBytesFetcher$slambda_0($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
3520
4467
  var i = new pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation);
3521
4468
  return constructCallableReference(function (url, $completion) {
3522
- return i.h1g(url, $completion);
4469
+ return i.a1m(url, $completion);
3523
4470
  }, 1);
3524
4471
  }
3525
4472
  var properties_initialized_TileRequestPacing_kt_zdwibl;
@@ -3532,7 +4479,7 @@
3532
4479
  function tileCoordinatesOf(url, config) {
3533
4480
  var names = ArrayList_init_$Create$();
3534
4481
  var pattern = StringBuilder_init_$Create$();
3535
- var rest = config.u16_1;
4482
+ var rest = config.b19_1;
3536
4483
  var placeholder = Regex_init_$Create$('\\{(z|x|y|bbox)\\}');
3537
4484
  $l$loop: while (true) {
3538
4485
  var tmp0_elvis_lhs = placeholder.ta(rest);
@@ -3554,7 +4501,7 @@
3554
4501
  var tmp1_elvis_lhs = Regex_init_$Create$(pattern.toString()).ua(url);
3555
4502
  var tmp_0;
3556
4503
  if (tmp1_elvis_lhs == null) {
3557
- throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.u16_1);
4504
+ throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.b19_1);
3558
4505
  } else {
3559
4506
  tmp_0 = tmp1_elvis_lhs;
3560
4507
  }
@@ -3562,7 +4509,7 @@
3562
4509
  var values = toMap(zip(names, drop(match.kb(), 1)));
3563
4510
  var tmp2_safe_receiver = values.t1('z');
3564
4511
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toInt(tmp2_safe_receiver);
3565
- var z = tmp3_elvis_lhs == null ? config.s16_1 : tmp3_elvis_lhs;
4512
+ var z = tmp3_elvis_lhs == null ? config.z18_1 : tmp3_elvis_lhs;
3566
4513
  var bbox = values.t1('bbox');
3567
4514
  if (bbox == null)
3568
4515
  return new TileCoordinates(toInt(getValue(values, 'x')), toInt(getValue(values, 'y')), z);
@@ -3593,17 +4540,17 @@
3593
4540
  return new TileCoordinates(x, y, z);
3594
4541
  }
3595
4542
  function TileCoordinates(x, y, z) {
3596
- this.y10_1 = x;
3597
- this.z10_1 = y;
3598
- this.a11_1 = z;
4543
+ this.l11_1 = x;
4544
+ this.m11_1 = y;
4545
+ this.n11_1 = z;
3599
4546
  }
3600
4547
  protoOf(TileCoordinates).toString = function () {
3601
- return 'TileCoordinates(x=' + this.y10_1 + ', y=' + this.z10_1 + ', z=' + this.a11_1 + ')';
4548
+ return 'TileCoordinates(x=' + this.l11_1 + ', y=' + this.m11_1 + ', z=' + this.n11_1 + ')';
3602
4549
  };
3603
4550
  protoOf(TileCoordinates).hashCode = function () {
3604
- var result = this.y10_1;
3605
- result = imul(result, 31) + this.z10_1 | 0;
3606
- result = imul(result, 31) + this.a11_1 | 0;
4551
+ var result = this.l11_1;
4552
+ result = imul(result, 31) + this.m11_1 | 0;
4553
+ result = imul(result, 31) + this.n11_1 | 0;
3607
4554
  return result;
3608
4555
  };
3609
4556
  protoOf(TileCoordinates).equals = function (other) {
@@ -3611,26 +4558,26 @@
3611
4558
  return true;
3612
4559
  if (!(other instanceof TileCoordinates))
3613
4560
  return false;
3614
- if (!(this.y10_1 === other.y10_1))
4561
+ if (!(this.l11_1 === other.l11_1))
3615
4562
  return false;
3616
- if (!(this.z10_1 === other.z10_1))
4563
+ if (!(this.m11_1 === other.m11_1))
3617
4564
  return false;
3618
- if (!(this.a11_1 === other.a11_1))
4565
+ if (!(this.n11_1 === other.n11_1))
3619
4566
  return false;
3620
4567
  return true;
3621
4568
  };
3622
4569
  function Pixel(tile, x, y) {
3623
- this.o14_1 = tile;
3624
- this.p14_1 = x;
3625
- this.q14_1 = y;
4570
+ this.u15_1 = tile;
4571
+ this.v15_1 = x;
4572
+ this.w15_1 = y;
3626
4573
  }
3627
4574
  protoOf(Pixel).toString = function () {
3628
- return 'Pixel(tile=' + this.o14_1.toString() + ', x=' + this.p14_1 + ', y=' + this.q14_1 + ')';
4575
+ return 'Pixel(tile=' + this.u15_1.toString() + ', x=' + this.v15_1 + ', y=' + this.w15_1 + ')';
3629
4576
  };
3630
4577
  protoOf(Pixel).hashCode = function () {
3631
- var result = this.o14_1.hashCode();
3632
- result = imul(result, 31) + this.p14_1 | 0;
3633
- result = imul(result, 31) + this.q14_1 | 0;
4578
+ var result = this.u15_1.hashCode();
4579
+ result = imul(result, 31) + this.v15_1 | 0;
4580
+ result = imul(result, 31) + this.w15_1 | 0;
3634
4581
  return result;
3635
4582
  };
3636
4583
  protoOf(Pixel).equals = function (other) {
@@ -3638,30 +4585,30 @@
3638
4585
  return true;
3639
4586
  if (!(other instanceof Pixel))
3640
4587
  return false;
3641
- if (!this.o14_1.equals(other.o14_1))
4588
+ if (!this.u15_1.equals(other.u15_1))
3642
4589
  return false;
3643
- if (!(this.p14_1 === other.p14_1))
4590
+ if (!(this.v15_1 === other.v15_1))
3644
4591
  return false;
3645
- if (!(this.q14_1 === other.q14_1))
4592
+ if (!(this.w15_1 === other.w15_1))
3646
4593
  return false;
3647
4594
  return true;
3648
4595
  };
3649
4596
  function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
3650
- this.g15_1 = x;
3651
- this.h15_1 = y;
3652
- this.i15_1 = xFloat;
3653
- this.j15_1 = yFloat;
3654
- this.k15_1 = z;
4597
+ this.o16_1 = x;
4598
+ this.p16_1 = y;
4599
+ this.q16_1 = xFloat;
4600
+ this.r16_1 = yFloat;
4601
+ this.s16_1 = z;
3655
4602
  }
3656
4603
  protoOf(TileCoordinatesFloat).toString = function () {
3657
- return 'TileCoordinatesFloat(x=' + this.g15_1 + ', y=' + this.h15_1 + ', xFloat=' + this.i15_1 + ', yFloat=' + this.j15_1 + ', z=' + this.k15_1 + ')';
4604
+ return 'TileCoordinatesFloat(x=' + this.o16_1 + ', y=' + this.p16_1 + ', xFloat=' + this.q16_1 + ', yFloat=' + this.r16_1 + ', z=' + this.s16_1 + ')';
3658
4605
  };
3659
4606
  protoOf(TileCoordinatesFloat).hashCode = function () {
3660
- var result = this.g15_1;
3661
- result = imul(result, 31) + this.h15_1 | 0;
3662
- result = imul(result, 31) + getNumberHashCode(this.i15_1) | 0;
3663
- result = imul(result, 31) + getNumberHashCode(this.j15_1) | 0;
3664
- result = imul(result, 31) + this.k15_1 | 0;
4607
+ var result = this.o16_1;
4608
+ result = imul(result, 31) + this.p16_1 | 0;
4609
+ result = imul(result, 31) + getNumberHashCode(this.q16_1) | 0;
4610
+ result = imul(result, 31) + getNumberHashCode(this.r16_1) | 0;
4611
+ result = imul(result, 31) + this.s16_1 | 0;
3665
4612
  return result;
3666
4613
  };
3667
4614
  protoOf(TileCoordinatesFloat).equals = function (other) {
@@ -3669,30 +4616,30 @@
3669
4616
  return true;
3670
4617
  if (!(other instanceof TileCoordinatesFloat))
3671
4618
  return false;
3672
- if (!(this.g15_1 === other.g15_1))
4619
+ if (!(this.o16_1 === other.o16_1))
3673
4620
  return false;
3674
- if (!(this.h15_1 === other.h15_1))
4621
+ if (!(this.p16_1 === other.p16_1))
3675
4622
  return false;
3676
- if (!equals(this.i15_1, other.i15_1))
4623
+ if (!equals(this.q16_1, other.q16_1))
3677
4624
  return false;
3678
- if (!equals(this.j15_1, other.j15_1))
4625
+ if (!equals(this.r16_1, other.r16_1))
3679
4626
  return false;
3680
- if (!(this.k15_1 === other.k15_1))
4627
+ if (!(this.s16_1 === other.s16_1))
3681
4628
  return false;
3682
4629
  return true;
3683
4630
  };
3684
4631
  function PixelFloat(tile, x, y) {
3685
- this.k14_1 = tile;
3686
- this.l14_1 = x;
3687
- this.m14_1 = y;
4632
+ this.q15_1 = tile;
4633
+ this.r15_1 = x;
4634
+ this.s15_1 = y;
3688
4635
  }
3689
4636
  protoOf(PixelFloat).toString = function () {
3690
- return 'PixelFloat(tile=' + this.k14_1.toString() + ', x=' + this.l14_1 + ', y=' + this.m14_1 + ')';
4637
+ return 'PixelFloat(tile=' + this.q15_1.toString() + ', x=' + this.r15_1 + ', y=' + this.s15_1 + ')';
3691
4638
  };
3692
4639
  protoOf(PixelFloat).hashCode = function () {
3693
- var result = this.k14_1.hashCode();
3694
- result = imul(result, 31) + getNumberHashCode(this.l14_1) | 0;
3695
- result = imul(result, 31) + getNumberHashCode(this.m14_1) | 0;
4640
+ var result = this.q15_1.hashCode();
4641
+ result = imul(result, 31) + getNumberHashCode(this.r15_1) | 0;
4642
+ result = imul(result, 31) + getNumberHashCode(this.s15_1) | 0;
3696
4643
  return result;
3697
4644
  };
3698
4645
  protoOf(PixelFloat).equals = function (other) {
@@ -3700,69 +4647,69 @@
3700
4647
  return true;
3701
4648
  if (!(other instanceof PixelFloat))
3702
4649
  return false;
3703
- if (!this.k14_1.equals(other.k14_1))
4650
+ if (!this.q15_1.equals(other.q15_1))
3704
4651
  return false;
3705
- if (!equals(this.l14_1, other.l14_1))
4652
+ if (!equals(this.r15_1, other.r15_1))
3706
4653
  return false;
3707
- if (!equals(this.m14_1, other.m14_1))
4654
+ if (!equals(this.s15_1, other.s15_1))
3708
4655
  return false;
3709
4656
  return true;
3710
4657
  };
3711
- function Companion_1() {
3712
- Companion_instance_2 = this;
3713
- this.b1h_1 = new Vector3D(0.0, 0.0, 0.0);
4658
+ function Companion_3() {
4659
+ Companion_instance_4 = this;
4660
+ this.u1m_1 = new Vector3D(0.0, 0.0, 0.0);
3714
4661
  }
3715
- var Companion_instance_2;
3716
- function Companion_getInstance_2() {
3717
- if (Companion_instance_2 == null)
3718
- new Companion_1();
3719
- return Companion_instance_2;
4662
+ var Companion_instance_4;
4663
+ function Companion_getInstance_4() {
4664
+ if (Companion_instance_4 == null)
4665
+ new Companion_3();
4666
+ return Companion_instance_4;
3720
4667
  }
3721
4668
  function Vector3D(x, y, z) {
3722
- Companion_getInstance_2();
3723
- this.i12_1 = x;
3724
- this.j12_1 = y;
3725
- this.k12_1 = z;
4669
+ Companion_getInstance_4();
4670
+ this.x12_1 = x;
4671
+ this.y12_1 = y;
4672
+ this.z12_1 = z;
3726
4673
  }
3727
- protoOf(Vector3D).c1h = function (other) {
3728
- var tmp0 = this.i12_1 - other.i12_1;
4674
+ protoOf(Vector3D).v1m = function (other) {
4675
+ var tmp0 = this.x12_1 - other.x12_1;
3729
4676
  // Inline function 'kotlin.math.hypot' call
3730
- var y = this.j12_1 - other.j12_1;
4677
+ var y = this.y12_1 - other.y12_1;
3731
4678
  var tmp0_0 = hypot(tmp0, y);
3732
4679
  // Inline function 'kotlin.math.hypot' call
3733
- var y_0 = this.k12_1 - other.k12_1;
4680
+ var y_0 = this.z12_1 - other.z12_1;
3734
4681
  return hypot(tmp0_0, y_0);
3735
4682
  };
3736
- protoOf(Vector3D).d1h = function (other) {
3737
- return new Vector3D(this.i12_1 - other.i12_1, this.j12_1 - other.j12_1, this.k12_1 - other.k12_1);
4683
+ protoOf(Vector3D).w1m = function (other) {
4684
+ return new Vector3D(this.x12_1 - other.x12_1, this.y12_1 - other.y12_1, this.z12_1 - other.z12_1);
3738
4685
  };
3739
- protoOf(Vector3D).e1h = function (other) {
3740
- return new Vector3D(this.i12_1 + other.i12_1, this.j12_1 + other.j12_1, this.k12_1 + other.k12_1);
4686
+ protoOf(Vector3D).x1m = function (other) {
4687
+ return new Vector3D(this.x12_1 + other.x12_1, this.y12_1 + other.y12_1, this.z12_1 + other.z12_1);
3741
4688
  };
3742
- protoOf(Vector3D).f1h = function (scalar) {
3743
- return new Vector3D(this.i12_1 * scalar, this.j12_1 * scalar, this.k12_1 * scalar);
4689
+ protoOf(Vector3D).y1m = function (scalar) {
4690
+ return new Vector3D(this.x12_1 * scalar, this.y12_1 * scalar, this.z12_1 * scalar);
3744
4691
  };
3745
- protoOf(Vector3D).g1h = function (other) {
3746
- return this.i12_1 * other.i12_1 + this.j12_1 * other.j12_1 + this.k12_1 * other.k12_1;
4692
+ protoOf(Vector3D).z1m = function (other) {
4693
+ return this.x12_1 * other.x12_1 + this.y12_1 * other.y12_1 + this.z12_1 * other.z12_1;
3747
4694
  };
3748
- protoOf(Vector3D).l12 = function (segmentStart, segmentEnd) {
3749
- var segmentVector = segmentEnd.d1h(segmentStart);
3750
- var segmentLengthSq = segmentVector.g1h(segmentVector);
4695
+ protoOf(Vector3D).a13 = function (segmentStart, segmentEnd) {
4696
+ var segmentVector = segmentEnd.w1m(segmentStart);
4697
+ var segmentLengthSq = segmentVector.z1m(segmentVector);
3751
4698
  if (segmentLengthSq === 0.0)
3752
- return this.c1h(segmentStart);
3753
- var pointVector = this.d1h(segmentStart);
3754
- var projection = pointVector.g1h(segmentVector) / segmentLengthSq;
4699
+ return this.v1m(segmentStart);
4700
+ var pointVector = this.w1m(segmentStart);
4701
+ var projection = pointVector.z1m(segmentVector) / segmentLengthSq;
3755
4702
  var clamped = coerceIn_0(projection, 0.0, 1.0);
3756
- var closest = segmentStart.e1h(segmentVector.f1h(clamped));
3757
- return this.c1h(closest);
4703
+ var closest = segmentStart.x1m(segmentVector.y1m(clamped));
4704
+ return this.v1m(closest);
3758
4705
  };
3759
4706
  protoOf(Vector3D).toString = function () {
3760
- return 'Vector3D(x=' + this.i12_1 + ', y=' + this.j12_1 + ', z=' + this.k12_1 + ')';
4707
+ return 'Vector3D(x=' + this.x12_1 + ', y=' + this.y12_1 + ', z=' + this.z12_1 + ')';
3761
4708
  };
3762
4709
  protoOf(Vector3D).hashCode = function () {
3763
- var result = getNumberHashCode(this.i12_1);
3764
- result = imul(result, 31) + getNumberHashCode(this.j12_1) | 0;
3765
- result = imul(result, 31) + getNumberHashCode(this.k12_1) | 0;
4710
+ var result = getNumberHashCode(this.x12_1);
4711
+ result = imul(result, 31) + getNumberHashCode(this.y12_1) | 0;
4712
+ result = imul(result, 31) + getNumberHashCode(this.z12_1) | 0;
3766
4713
  return result;
3767
4714
  };
3768
4715
  protoOf(Vector3D).equals = function (other) {
@@ -3770,11 +4717,11 @@
3770
4717
  return true;
3771
4718
  if (!(other instanceof Vector3D))
3772
4719
  return false;
3773
- if (!equals(this.i12_1, other.i12_1))
4720
+ if (!equals(this.x12_1, other.x12_1))
3774
4721
  return false;
3775
- if (!equals(this.j12_1, other.j12_1))
4722
+ if (!equals(this.y12_1, other.y12_1))
3776
4723
  return false;
3777
- if (!equals(this.k12_1, other.k12_1))
4724
+ if (!equals(this.z12_1, other.z12_1))
3778
4725
  return false;
3779
4726
  return true;
3780
4727
  };
@@ -3811,25 +4758,25 @@
3811
4758
  tmp = null;
3812
4759
  } else {
3813
4760
  // Inline function 'kotlin.let' call
3814
- tmp = Companion_getInstance_0().p18(tmp2_safe_receiver);
4761
+ tmp = Companion_getInstance_0().g1b(tmp2_safe_receiver);
3815
4762
  }
3816
4763
  var tmp3_elvis_lhs = tmp;
3817
- var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().k18_1 : tmp3_elvis_lhs;
3818
- var base = source.v18(configDto == null ? null : configDto.zoomLevel);
4764
+ var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().b1b_1 : tmp3_elvis_lhs;
4765
+ var base = source.m1b(configDto == null ? null : configDto.zoomLevel);
3819
4766
  var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
3820
- var tmp_0 = tmp6_elvis_lhs == null ? base.t16_1 : tmp6_elvis_lhs;
4767
+ var tmp_0 = tmp6_elvis_lhs == null ? base.a19_1 : tmp6_elvis_lhs;
3821
4768
  var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
3822
- var tmp_1 = tmp8_elvis_lhs == null ? base.u16_1 : tmp8_elvis_lhs;
4769
+ var tmp_1 = tmp8_elvis_lhs == null ? base.b19_1 : tmp8_elvis_lhs;
3823
4770
  var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
3824
- var cfg = base.g18(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.v16_1 : tmp10_elvis_lhs);
4771
+ var cfg = base.x1a(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.c19_1 : tmp10_elvis_lhs);
3825
4772
  var primary = ElevationProvider_init_$Create$(cfg);
3826
- var tmp11_safe_receiver = source.q18();
4773
+ var tmp11_safe_receiver = source.h1b();
3827
4774
  var tmp_2;
3828
4775
  if (tmp11_safe_receiver == null) {
3829
4776
  tmp_2 = null;
3830
4777
  } else {
3831
4778
  // Inline function 'kotlin.let' call
3832
- tmp_2 = primary.z16(provider(tmp11_safe_receiver));
4779
+ tmp_2 = primary.o19(provider(tmp11_safe_receiver));
3833
4780
  }
3834
4781
  var tmp12_elvis_lhs = tmp_2;
3835
4782
  return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
@@ -3837,8 +4784,8 @@
3837
4784
  function elevationAttribution(provider) {
3838
4785
  _init_properties_ElevationJsApi_kt__1yyas4();
3839
4786
  var o = {};
3840
- o.text = provider.b17().h18_1;
3841
- o.url = provider.b17().i18_1;
4787
+ o.text = provider.q19().y1a_1;
4788
+ o.url = provider.q19().z1a_1;
3842
4789
  // Inline function 'kotlin.js.unsafeCast' call
3843
4790
  return o;
3844
4791
  }
@@ -3911,20 +4858,20 @@
3911
4858
  return o;
3912
4859
  }
3913
4860
  function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
3914
- this.p1h_1 = $provider;
3915
- this.q1h_1 = $latitude;
3916
- this.r1h_1 = $longitude;
3917
- this.s1h_1 = $interpolation;
4861
+ this.i1n_1 = $provider;
4862
+ this.j1n_1 = $latitude;
4863
+ this.k1n_1 = $longitude;
4864
+ this.l1n_1 = $interpolation;
3918
4865
  CoroutineImpl.call(this, resultContinuation);
3919
4866
  }
3920
- protoOf(getElevation$slambda).u1h = function ($this$promise, $completion) {
3921
- var tmp = this.l19($this$promise, $completion);
4867
+ protoOf(getElevation$slambda).n1n = function ($this$promise, $completion) {
4868
+ var tmp = this.c1c($this$promise, $completion);
3922
4869
  tmp.l7_1 = Unit_instance;
3923
4870
  tmp.m7_1 = null;
3924
4871
  return tmp.r7();
3925
4872
  };
3926
4873
  protoOf(getElevation$slambda).z7 = function (p1, $completion) {
3927
- return this.u1h((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
4874
+ return this.n1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
3928
4875
  };
3929
4876
  protoOf(getElevation$slambda).r7 = function () {
3930
4877
  var suspendResult = this.l7_1;
@@ -3935,7 +4882,7 @@
3935
4882
  case 0:
3936
4883
  this.k7_1 = 2;
3937
4884
  this.j7_1 = 1;
3938
- suspendResult = this.p1h_1.h16(this.q1h_1, this.r1h_1, this.s1h_1, this);
4885
+ suspendResult = this.i1n_1.c18(this.j1n_1, this.k1n_1, this.l1n_1, this);
3939
4886
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3940
4887
  return suspendResult;
3941
4888
  }
@@ -3957,31 +4904,31 @@
3957
4904
  }
3958
4905
  while (true);
3959
4906
  };
3960
- protoOf(getElevation$slambda).l19 = function ($this$promise, completion) {
3961
- var i = new getElevation$slambda(this.p1h_1, this.q1h_1, this.r1h_1, this.s1h_1, completion);
3962
- i.t1h_1 = $this$promise;
4907
+ protoOf(getElevation$slambda).c1c = function ($this$promise, completion) {
4908
+ var i = new getElevation$slambda(this.i1n_1, this.j1n_1, this.k1n_1, this.l1n_1, completion);
4909
+ i.m1n_1 = $this$promise;
3963
4910
  return i;
3964
4911
  };
3965
4912
  function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
3966
4913
  var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
3967
4914
  return constructCallableReference(function ($this$promise, $completion) {
3968
- return i.u1h($this$promise, $completion);
4915
+ return i.n1n($this$promise, $completion);
3969
4916
  }, 1);
3970
4917
  }
3971
4918
  function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
3972
- this.d1i_1 = $path;
3973
- this.e1i_1 = $provider;
3974
- this.f1i_1 = $options;
4919
+ this.w1n_1 = $path;
4920
+ this.x1n_1 = $provider;
4921
+ this.y1n_1 = $options;
3975
4922
  CoroutineImpl.call(this, resultContinuation);
3976
4923
  }
3977
- protoOf(getElevationsAlong$slambda).h1i = function ($this$promise, $completion) {
3978
- var tmp = this.l19($this$promise, $completion);
4924
+ protoOf(getElevationsAlong$slambda).a1o = function ($this$promise, $completion) {
4925
+ var tmp = this.c1c($this$promise, $completion);
3979
4926
  tmp.l7_1 = Unit_instance;
3980
4927
  tmp.m7_1 = null;
3981
4928
  return tmp.r7();
3982
4929
  };
3983
4930
  protoOf(getElevationsAlong$slambda).z7 = function (p1, $completion) {
3984
- return this.h1i((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
4931
+ return this.a1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
3985
4932
  };
3986
4933
  protoOf(getElevationsAlong$slambda).r7 = function () {
3987
4934
  var suspendResult = this.l7_1;
@@ -3991,7 +4938,7 @@
3991
4938
  switch (tmp) {
3992
4939
  case 0:
3993
4940
  this.k7_1 = 2;
3994
- var this_0 = this.d1i_1;
4941
+ var this_0 = this.w1n_1;
3995
4942
  var destination = ArrayList_init_$Create$_0(this_0.length);
3996
4943
  var inductionVariable = 0;
3997
4944
  var last = this_0.length;
@@ -4003,21 +4950,21 @@
4003
4950
 
4004
4951
  var coords = destination;
4005
4952
  this.j7_1 = 1;
4006
- var tmp0_safe_receiver = this.f1i_1;
4953
+ var tmp0_safe_receiver = this.y1n_1;
4007
4954
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
4008
4955
  var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
4009
- var tmp2_safe_receiver = this.f1i_1;
4956
+ var tmp2_safe_receiver = this.y1n_1;
4010
4957
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
4011
4958
  var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
4012
- var tmp4_safe_receiver = this.f1i_1;
4959
+ var tmp4_safe_receiver = this.y1n_1;
4013
4960
  var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
4014
4961
  var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
4015
- var tmp6_safe_receiver = this.f1i_1;
4962
+ var tmp6_safe_receiver = this.y1n_1;
4016
4963
  var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
4017
4964
  var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
4018
- var tmp8_safe_receiver = this.f1i_1;
4965
+ var tmp8_safe_receiver = this.y1n_1;
4019
4966
  var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
4020
- suspendResult = this.e1i_1.e17(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
4967
+ suspendResult = this.x1n_1.v19(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
4021
4968
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4022
4969
  return suspendResult;
4023
4970
  }
@@ -4031,7 +4978,7 @@
4031
4978
  while (tmp_4 < tmp_5) {
4032
4979
  var tmp_7 = tmp_4;
4033
4980
  var c = results.p(tmp_7);
4034
- tmp_6[tmp_7] = coordsEle(c.f10(), c.g10(), c.d12());
4981
+ tmp_6[tmp_7] = coordsEle(c.xz(), c.yz(), c.s12());
4035
4982
  tmp_4 = tmp_4 + 1 | 0;
4036
4983
  }
4037
4984
 
@@ -4050,15 +4997,15 @@
4050
4997
  }
4051
4998
  while (true);
4052
4999
  };
4053
- protoOf(getElevationsAlong$slambda).l19 = function ($this$promise, completion) {
4054
- var i = new getElevationsAlong$slambda(this.d1i_1, this.e1i_1, this.f1i_1, completion);
4055
- i.g1i_1 = $this$promise;
5000
+ protoOf(getElevationsAlong$slambda).c1c = function ($this$promise, completion) {
5001
+ var i = new getElevationsAlong$slambda(this.w1n_1, this.x1n_1, this.y1n_1, completion);
5002
+ i.z1n_1 = $this$promise;
4056
5003
  return i;
4057
5004
  };
4058
5005
  function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
4059
5006
  var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
4060
5007
  return constructCallableReference(function ($this$promise, $completion) {
4061
- return i.h1i($this$promise, $completion);
5008
+ return i.a1o($this$promise, $completion);
4062
5009
  }, 1);
4063
5010
  }
4064
5011
  var properties_initialized_ElevationJsApi_kt_8pvyh6;
@@ -4208,11 +5155,11 @@
4208
5155
  function _get_nodeWebpDecoderPromise_$ref_s562t() {
4209
5156
  return constructCallableReference(function () {
4210
5157
  return get_nodeWebpDecoderPromise();
4211
- }, 0, 0, 5);
5158
+ }, 0, 0, 6);
4212
5159
  }
4213
5160
  function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
4214
5161
  CoroutineImpl.call(this, resultContinuation);
4215
- this.q1i_1 = url;
5162
+ this.j1o_1 = url;
4216
5163
  }
4217
5164
  protoOf($fetchAndDecodeTileCOROUTINE$).r7 = function () {
4218
5165
  var suspendResult = this.l7_1;
@@ -4224,14 +5171,14 @@
4224
5171
  this.k7_1 = 4;
4225
5172
  if (get_isNode()) {
4226
5173
  this.j7_1 = 2;
4227
- suspendResult = decodeNode(this.q1i_1, this);
5174
+ suspendResult = decodeNode(this.j1o_1, this);
4228
5175
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4229
5176
  return suspendResult;
4230
5177
  }
4231
5178
  continue $sm;
4232
5179
  } else {
4233
5180
  this.j7_1 = 1;
4234
- suspendResult = decodeBrowser(this.q1i_1, this);
5181
+ suspendResult = decodeBrowser(this.j1o_1, this);
4235
5182
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4236
5183
  return suspendResult;
4237
5184
  }
@@ -4239,15 +5186,15 @@
4239
5186
  }
4240
5187
 
4241
5188
  case 1:
4242
- this.r1i_1 = suspendResult;
5189
+ this.k1o_1 = suspendResult;
4243
5190
  this.j7_1 = 3;
4244
5191
  continue $sm;
4245
5192
  case 2:
4246
- this.r1i_1 = suspendResult;
5193
+ this.k1o_1 = suspendResult;
4247
5194
  this.j7_1 = 3;
4248
5195
  continue $sm;
4249
5196
  case 3:
4250
- return this.r1i_1;
5197
+ return this.k1o_1;
4251
5198
  case 4:
4252
5199
  throw this.m7_1;
4253
5200
  }
@@ -4264,8 +5211,8 @@
4264
5211
  };
4265
5212
  function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
4266
5213
  CoroutineImpl.call(this, resultContinuation);
4267
- this.a1j_1 = bytes;
4268
- this.b1j_1 = sourceUrl;
5214
+ this.t1o_1 = bytes;
5215
+ this.u1o_1 = sourceUrl;
4269
5216
  }
4270
5217
  protoOf($decodeTileBytesCOROUTINE$).r7 = function () {
4271
5218
  var suspendResult = this.l7_1;
@@ -4277,14 +5224,14 @@
4277
5224
  this.k7_1 = 4;
4278
5225
  if (get_isNode()) {
4279
5226
  this.j7_1 = 2;
4280
- suspendResult = decodeBytesNode(this.a1j_1, this.b1j_1, this);
5227
+ suspendResult = decodeBytesNode(this.t1o_1, this.u1o_1, this);
4281
5228
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4282
5229
  return suspendResult;
4283
5230
  }
4284
5231
  continue $sm;
4285
5232
  } else {
4286
5233
  this.j7_1 = 1;
4287
- suspendResult = decodeBlob(blobOf(this.a1j_1), this.b1j_1, this);
5234
+ suspendResult = decodeBlob(blobOf(this.t1o_1), this.u1o_1, this);
4288
5235
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4289
5236
  return suspendResult;
4290
5237
  }
@@ -4292,15 +5239,15 @@
4292
5239
  }
4293
5240
 
4294
5241
  case 1:
4295
- this.c1j_1 = suspendResult;
5242
+ this.v1o_1 = suspendResult;
4296
5243
  this.j7_1 = 3;
4297
5244
  continue $sm;
4298
5245
  case 2:
4299
- this.c1j_1 = suspendResult;
5246
+ this.v1o_1 = suspendResult;
4300
5247
  this.j7_1 = 3;
4301
5248
  continue $sm;
4302
5249
  case 3:
4303
- return this.c1j_1;
5250
+ return this.v1o_1;
4304
5251
  case 4:
4305
5252
  throw this.m7_1;
4306
5253
  }
@@ -4317,7 +5264,7 @@
4317
5264
  };
4318
5265
  function $decodeNodeCOROUTINE$(url, resultContinuation) {
4319
5266
  CoroutineImpl.call(this, resultContinuation);
4320
- this.l1j_1 = url;
5267
+ this.e1p_1 = url;
4321
5268
  }
4322
5269
  protoOf($decodeNodeCOROUTINE$).r7 = function () {
4323
5270
  var suspendResult = this.l7_1;
@@ -4328,7 +5275,7 @@
4328
5275
  case 0:
4329
5276
  this.k7_1 = 4;
4330
5277
  this.j7_1 = 1;
4331
- suspendResult = await_0(fetchUrlNode(this.l1j_1), this);
5278
+ suspendResult = await_0(fetchUrlNode(this.e1p_1), this);
4332
5279
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4333
5280
  return suspendResult;
4334
5281
  }
@@ -4336,7 +5283,7 @@
4336
5283
  continue $sm;
4337
5284
  case 1:
4338
5285
  var res = suspendResult;
4339
- requireOk(res, this.l1j_1);
5286
+ requireOk(res, this.e1p_1);
4340
5287
  this.j7_1 = 2;
4341
5288
  suspendResult = await_0(responseArrayBuffer(res), this);
4342
5289
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
@@ -4372,7 +5319,7 @@
4372
5319
  };
4373
5320
  function $decodeBrowserCOROUTINE$(url, resultContinuation) {
4374
5321
  CoroutineImpl.call(this, resultContinuation);
4375
- this.u1j_1 = url;
5322
+ this.n1p_1 = url;
4376
5323
  }
4377
5324
  protoOf($decodeBrowserCOROUTINE$).r7 = function () {
4378
5325
  var suspendResult = this.l7_1;
@@ -4383,7 +5330,7 @@
4383
5330
  case 0:
4384
5331
  this.k7_1 = 4;
4385
5332
  this.j7_1 = 1;
4386
- suspendResult = await_0(fetchUrlBrowser(this.u1j_1), this);
5333
+ suspendResult = await_0(fetchUrlBrowser(this.n1p_1), this);
4387
5334
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4388
5335
  return suspendResult;
4389
5336
  }
@@ -4391,7 +5338,7 @@
4391
5338
  continue $sm;
4392
5339
  case 1:
4393
5340
  var res = suspendResult;
4394
- requireOk(res, this.u1j_1);
5341
+ requireOk(res, this.n1p_1);
4395
5342
  this.j7_1 = 2;
4396
5343
  suspendResult = await_0(res.blob(), this);
4397
5344
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
@@ -4402,7 +5349,7 @@
4402
5349
  case 2:
4403
5350
  var ARGUMENT = suspendResult;
4404
5351
  this.j7_1 = 3;
4405
- suspendResult = decodeBlob(ARGUMENT, this.u1j_1, this);
5352
+ suspendResult = decodeBlob(ARGUMENT, this.n1p_1, this);
4406
5353
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4407
5354
  return suspendResult;
4408
5355
  }
@@ -4426,8 +5373,8 @@
4426
5373
  };
4427
5374
  function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
4428
5375
  CoroutineImpl.call(this, resultContinuation);
4429
- this.d1k_1 = bytes;
4430
- this.e1k_1 = sourceUrl;
5376
+ this.w1p_1 = bytes;
5377
+ this.x1p_1 = sourceUrl;
4431
5378
  }
4432
5379
  protoOf($decodeBytesNodeCOROUTINE$).r7 = function () {
4433
5380
  var suspendResult = this.l7_1;
@@ -4437,7 +5384,7 @@
4437
5384
  switch (tmp) {
4438
5385
  case 0:
4439
5386
  this.k7_1 = 4;
4440
- var view = this.d1k_1;
5387
+ var view = this.w1p_1;
4441
5388
  var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
4442
5389
  this.k7_1 = 2;
4443
5390
  this.j7_1 = 1;
@@ -4448,7 +5395,7 @@
4448
5395
 
4449
5396
  continue $sm;
4450
5397
  case 1:
4451
- this.f1k_1 = suspendResult;
5398
+ this.y1p_1 = suspendResult;
4452
5399
  this.k7_1 = 4;
4453
5400
  this.j7_1 = 3;
4454
5401
  continue $sm;
@@ -4458,7 +5405,7 @@
4458
5405
  if (tmp_0 instanceof Error) {
4459
5406
  var e = this.m7_1;
4460
5407
  var tmp_1 = this;
4461
- var this_0 = this.e1k_1;
5408
+ var this_0 = this.x1p_1;
4462
5409
  var tmp_2;
4463
5410
  if (charSequenceLength(this_0) === 0) {
4464
5411
  tmp_2 = '<unnamed bytes>';
@@ -4473,7 +5420,7 @@
4473
5420
 
4474
5421
  case 3:
4475
5422
  this.k7_1 = 4;
4476
- var image = this.f1k_1;
5423
+ var image = this.y1p_1;
4477
5424
  return rawTileFromJsquash(image);
4478
5425
  case 4:
4479
5426
  throw this.m7_1;
@@ -4491,8 +5438,8 @@
4491
5438
  };
4492
5439
  function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
4493
5440
  CoroutineImpl.call(this, resultContinuation);
4494
- this.o1k_1 = blob;
4495
- this.p1k_1 = sourceUrl;
5441
+ this.h1q_1 = blob;
5442
+ this.i1q_1 = sourceUrl;
4496
5443
  }
4497
5444
  protoOf($decodeBlobCOROUTINE$).r7 = function () {
4498
5445
  var suspendResult = this.l7_1;
@@ -4504,14 +5451,14 @@
4504
5451
  this.k7_1 = 3;
4505
5452
  this.k7_1 = 2;
4506
5453
  this.j7_1 = 1;
4507
- suspendResult = await_0(window.createImageBitmap(this.o1k_1), this);
5454
+ suspendResult = await_0(window.createImageBitmap(this.h1q_1), this);
4508
5455
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4509
5456
  return suspendResult;
4510
5457
  }
4511
5458
 
4512
5459
  continue $sm;
4513
5460
  case 1:
4514
- this.q1k_1 = suspendResult;
5461
+ this.j1q_1 = suspendResult;
4515
5462
  this.k7_1 = 3;
4516
5463
  this.j7_1 = 4;
4517
5464
  continue $sm;
@@ -4521,7 +5468,7 @@
4521
5468
  if (tmp_0 instanceof Error) {
4522
5469
  var e = this.m7_1;
4523
5470
  var tmp_1 = this;
4524
- var this_0 = this.p1k_1;
5471
+ var this_0 = this.i1q_1;
4525
5472
  var tmp_2;
4526
5473
  if (charSequenceLength(this_0) === 0) {
4527
5474
  tmp_2 = '<unnamed bytes>';
@@ -4538,7 +5485,7 @@
4538
5485
  throw this.m7_1;
4539
5486
  case 4:
4540
5487
  this.k7_1 = 3;
4541
- var bitmap = this.q1k_1;
5488
+ var bitmap = this.j1q_1;
4542
5489
  l$ret$3: do {
4543
5490
  var tmp$ret$0;
4544
5491
  l$ret$1: do {
@@ -4586,7 +5533,7 @@
4586
5533
  };
4587
5534
  function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
4588
5535
  CoroutineImpl.call(this, resultContinuation);
4589
- this.z1k_1 = buffer;
5536
+ this.s1q_1 = buffer;
4590
5537
  }
4591
5538
  protoOf($decodeWebpNodeCOROUTINE$).r7 = function () {
4592
5539
  var suspendResult = this.l7_1;
@@ -4605,7 +5552,7 @@
4605
5552
  continue $sm;
4606
5553
  case 1:
4607
5554
  var decode = suspendResult;
4608
- var resultPromise = decode(this.z1k_1);
5555
+ var resultPromise = decode(this.s1q_1);
4609
5556
  this.j7_1 = 2;
4610
5557
  suspendResult = await_0(resultPromise, this);
4611
5558
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
@@ -4631,7 +5578,7 @@
4631
5578
  };
4632
5579
  function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
4633
5580
  CoroutineImpl.call(this, resultContinuation);
4634
- this.i1l_1 = url;
5581
+ this.b1r_1 = url;
4635
5582
  }
4636
5583
  protoOf($fetchTileBytesCOROUTINE$).r7 = function () {
4637
5584
  var suspendResult = this.l7_1;
@@ -4643,14 +5590,14 @@
4643
5590
  this.k7_1 = 5;
4644
5591
  if (get_isNode()) {
4645
5592
  this.j7_1 = 2;
4646
- suspendResult = await_0(fetchUrlNode(this.i1l_1), this);
5593
+ suspendResult = await_0(fetchUrlNode(this.b1r_1), this);
4647
5594
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4648
5595
  return suspendResult;
4649
5596
  }
4650
5597
  continue $sm;
4651
5598
  } else {
4652
5599
  this.j7_1 = 1;
4653
- suspendResult = await_0(fetchUrlBrowser(this.i1l_1), this);
5600
+ suspendResult = await_0(fetchUrlBrowser(this.b1r_1), this);
4654
5601
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4655
5602
  return suspendResult;
4656
5603
  }
@@ -4658,16 +5605,16 @@
4658
5605
  }
4659
5606
 
4660
5607
  case 1:
4661
- this.j1l_1 = suspendResult;
5608
+ this.c1r_1 = suspendResult;
4662
5609
  this.j7_1 = 3;
4663
5610
  continue $sm;
4664
5611
  case 2:
4665
- this.j1l_1 = suspendResult;
5612
+ this.c1r_1 = suspendResult;
4666
5613
  this.j7_1 = 3;
4667
5614
  continue $sm;
4668
5615
  case 3:
4669
- var res = this.j1l_1;
4670
- requireOk(res, this.i1l_1);
5616
+ var res = this.c1r_1;
5617
+ requireOk(res, this.b1r_1);
4671
5618
  this.j7_1 = 4;
4672
5619
  suspendResult = await_0(responseArrayBuffer(res), this);
4673
5620
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
@@ -4704,14 +5651,14 @@
4704
5651
  function fetchAndDecodeTile$ref_1() {
4705
5652
  var i = new fetchAndDecodeTile$ref();
4706
5653
  return constructCallableReference(function (p0, $completion) {
4707
- return i.i17(p0, $completion);
5654
+ return i.z19(p0, $completion);
4708
5655
  }, 1, 1, 2, 'fetchAndDecodeTile');
4709
5656
  }
4710
5657
  function fetchTileBytes$ref_0() {
4711
5658
  var i = new fetchTileBytes$ref();
4712
5659
  return constructCallableReference(function (p0, $completion) {
4713
- return i.h1g(p0, $completion);
4714
- }, 1, 1, 4, 'fetchTileBytes');
5660
+ return i.a1m(p0, $completion);
5661
+ }, 1, 1, 5, 'fetchTileBytes');
4715
5662
  }
4716
5663
  //region block: init
4717
5664
  Distance_instance = new Distance();
@@ -4720,7 +5667,8 @@
4720
5667
  ElevationFunctions_instance = new ElevationFunctions();
4721
5668
  ElevationSmoother_instance = new ElevationSmoother();
4722
5669
  Flux_instance = new Flux();
4723
- Companion_instance_1 = new Companion_0();
5670
+ Companion_instance_2 = new Companion_1();
5671
+ Key_instance = new Key();
4724
5672
  //endregion
4725
5673
  //region block: exports
4726
5674
  function $jsExportAll$(_) {
@@ -4736,14 +5684,21 @@
4736
5684
  $jsExportAll$(_);
4737
5685
  _.$jsExportAll$ = $jsExportAll$;
4738
5686
  _.$_$ = _.$_$ || {};
4739
- _.$_$.a = Distance_instance;
4740
- _.$_$.b = DouglasPeucker_instance;
4741
- _.$_$.c = ElevationSmoother_instance;
4742
- _.$_$.d = Companion_getInstance_0;
4743
- _.$_$.e = LatLonElevation;
4744
- _.$_$.f = LatLon;
4745
- _.$_$.g = Vector3D;
4746
- _.$_$.h = provider;
5687
+ _.$_$.a = TerrainOrigin_IGN_LIDAR_HD_getInstance;
5688
+ _.$_$.b = TerrainOrigin_MAPTERHORN_MEASURED_getInstance;
5689
+ _.$_$.c = TerrainOrigin_MAPTERHORN_getInstance;
5690
+ _.$_$.d = TerrainOrigin_NONE_getInstance;
5691
+ _.$_$.e = TerrainOrigin_OTHER_getInstance;
5692
+ _.$_$.f = Distance_instance;
5693
+ _.$_$.g = DouglasPeucker_instance;
5694
+ _.$_$.h = ElevationSmoother_instance;
5695
+ _.$_$.i = Companion_getInstance_0;
5696
+ _.$_$.j = LatLonElevation;
5697
+ _.$_$.k = LatLon;
5698
+ _.$_$.l = get_entries_1;
5699
+ _.$_$.m = TileFailureLog;
5700
+ _.$_$.n = Vector3D;
5701
+ _.$_$.o = provider;
4747
5702
  //endregion
4748
5703
  return _;
4749
5704
  }));