@glandais/vcyclist-engine 6.1.0 → 6.3.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.
@@ -19,103 +19,103 @@
19
19
  var sinh = Math.sinh;
20
20
  var hypot = Math.hypot;
21
21
  var VOID = kotlin_kotlin.$_$.a;
22
- var protoOf = kotlin_kotlin.$_$.s7;
23
- var getNumberHashCode = kotlin_kotlin.$_$.z6;
24
- var getBooleanHashCode = kotlin_kotlin.$_$.y6;
25
- var equals = kotlin_kotlin.$_$.w6;
26
- var initMetadataForClass = kotlin_kotlin.$_$.d7;
27
- var numberToLong = kotlin_kotlin.$_$.e6;
28
- var toNumber = kotlin_kotlin.$_$.j6;
29
- var CoroutineImpl = kotlin_kotlin.$_$.l5;
22
+ var protoOf = kotlin_kotlin.$_$.g8;
23
+ var getNumberHashCode = kotlin_kotlin.$_$.n7;
24
+ var getBooleanHashCode = kotlin_kotlin.$_$.m7;
25
+ var equals = kotlin_kotlin.$_$.k7;
26
+ var initMetadataForClass = kotlin_kotlin.$_$.r7;
27
+ var numberToLong = kotlin_kotlin.$_$.s6;
28
+ var toNumber = kotlin_kotlin.$_$.x6;
29
+ var CoroutineImpl = kotlin_kotlin.$_$.z5;
30
30
  var Unit_instance = kotlin_kotlin.$_$.k1;
31
- var THROW_CCE = kotlin_kotlin.$_$.xa;
31
+ var THROW_CCE = kotlin_kotlin.$_$.mb;
32
32
  var MutableEntry = kotlin_kotlin.$_$.w2;
33
- var isInterface = kotlin_kotlin.$_$.l7;
34
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.w4;
35
- var initMetadataForLambda = kotlin_kotlin.$_$.i7;
36
- var constructCallableReference = kotlin_kotlin.$_$.t6;
37
- var emptyList = kotlin_kotlin.$_$.l3;
33
+ var isInterface = kotlin_kotlin.$_$.z7;
34
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.k5;
35
+ var initMetadataForLambda = kotlin_kotlin.$_$.w7;
36
+ var constructCallableReference = kotlin_kotlin.$_$.h7;
37
+ var emptyList = kotlin_kotlin.$_$.p3;
38
38
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t1;
39
39
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n1;
40
- var toList = kotlin_kotlin.$_$.q4;
40
+ var toList = kotlin_kotlin.$_$.e5;
41
41
  var KtList = kotlin_kotlin.$_$.t2;
42
- var initMetadataForCoroutine = kotlin_kotlin.$_$.f7;
43
- var toString = kotlin_kotlin.$_$.v7;
42
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.t7;
43
+ var toString = kotlin_kotlin.$_$.j8;
44
44
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
45
45
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m1;
46
- var listOf = kotlin_kotlin.$_$.y3;
47
- var numberToInt = kotlin_kotlin.$_$.q7;
48
- var Enum = kotlin_kotlin.$_$.na;
49
- var charSequenceLength = kotlin_kotlin.$_$.r6;
46
+ var listOf = kotlin_kotlin.$_$.g4;
47
+ var numberToInt = kotlin_kotlin.$_$.e8;
48
+ var Enum = kotlin_kotlin.$_$.cb;
49
+ var charSequenceLength = kotlin_kotlin.$_$.f7;
50
50
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.d;
51
51
  var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.i;
52
- var toByte = kotlin_kotlin.$_$.t7;
52
+ var toByte = kotlin_kotlin.$_$.h8;
53
53
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.h2;
54
54
  var FloatCompanionObject_instance = kotlin_kotlin.$_$.d1;
55
- var floatFromBits = kotlin_kotlin.$_$.x6;
56
- var isNaN_0 = kotlin_kotlin.$_$.jb;
57
- var roundToLong = kotlin_kotlin.$_$.x7;
58
- var Long = kotlin_kotlin.$_$.sa;
59
- var coerceIn = kotlin_kotlin.$_$.f8;
60
- var convertToInt = kotlin_kotlin.$_$.w5;
61
- var initMetadataForInterface = kotlin_kotlin.$_$.h7;
62
- var coerceIn_0 = kotlin_kotlin.$_$.d8;
63
- var initMetadataForObject = kotlin_kotlin.$_$.j7;
64
- var toList_0 = kotlin_kotlin.$_$.p4;
65
- var collectionSizeOrDefault = kotlin_kotlin.$_$.c3;
66
- var get_indices = kotlin_kotlin.$_$.r3;
67
- var get_lastIndex = kotlin_kotlin.$_$.u3;
68
- var checkBuilderCapacity = kotlin_kotlin.$_$.a3;
55
+ var floatFromBits = kotlin_kotlin.$_$.l7;
56
+ var isNaN_0 = kotlin_kotlin.$_$.zb;
57
+ var roundToLong = kotlin_kotlin.$_$.m8;
58
+ var Long = kotlin_kotlin.$_$.hb;
59
+ var coerceIn = kotlin_kotlin.$_$.u8;
60
+ var convertToInt = kotlin_kotlin.$_$.k6;
61
+ var initMetadataForInterface = kotlin_kotlin.$_$.v7;
62
+ var coerceIn_0 = kotlin_kotlin.$_$.s8;
63
+ var initMetadataForObject = kotlin_kotlin.$_$.x7;
64
+ var toList_0 = kotlin_kotlin.$_$.d5;
65
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.e3;
66
+ var get_indices = kotlin_kotlin.$_$.x3;
67
+ var get_lastIndex = kotlin_kotlin.$_$.a4;
68
+ var checkBuilderCapacity = kotlin_kotlin.$_$.b3;
69
69
  var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.i2;
70
- var coerceIn_1 = kotlin_kotlin.$_$.e8;
71
- var objectCreate = kotlin_kotlin.$_$.r7;
72
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.lb;
73
- var KFunctionImpl = kotlin_kotlin.$_$.k8;
74
- var initMetadataForFunctionReference = kotlin_kotlin.$_$.g7;
75
- var getStringHashCode = kotlin_kotlin.$_$.b7;
70
+ var coerceIn_1 = kotlin_kotlin.$_$.t8;
71
+ var objectCreate = kotlin_kotlin.$_$.f8;
72
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.bc;
73
+ var KFunctionImpl = kotlin_kotlin.$_$.z8;
74
+ var initMetadataForFunctionReference = kotlin_kotlin.$_$.u7;
75
+ var getStringHashCode = kotlin_kotlin.$_$.p7;
76
76
  var Companion_instance = kotlin_kotlin.$_$.i1;
77
- var joinToString = kotlin_kotlin.$_$.s3;
78
- var initMetadataForCompanion = kotlin_kotlin.$_$.e7;
79
- var enumEntries = kotlin_kotlin.$_$.n5;
77
+ var joinToString = kotlin_kotlin.$_$.y3;
78
+ var initMetadataForCompanion = kotlin_kotlin.$_$.s7;
79
+ var enumEntries = kotlin_kotlin.$_$.b6;
80
80
  var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
81
81
  var Semaphore = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
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 Exception = kotlin_kotlin.$_$.pa;
85
+ var Exception = kotlin_kotlin.$_$.eb;
86
86
  var Exception_init_$Init$ = kotlin_kotlin.$_$.b2;
87
- var captureStack = kotlin_kotlin.$_$.n6;
87
+ var captureStack = kotlin_kotlin.$_$.b7;
88
88
  var KtMap = kotlin_kotlin.$_$.u2;
89
89
  var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
90
90
  var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b;
91
91
  var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
92
- var CancellationException = kotlin_kotlin.$_$.v4;
92
+ var CancellationException = kotlin_kotlin.$_$.j5;
93
93
  var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
94
- var contentEquals = kotlin_kotlin.$_$.d3;
95
- var contentHashCode = kotlin_kotlin.$_$.e3;
96
- var round = kotlin_kotlin.$_$.y7;
97
- var replace = kotlin_kotlin.$_$.p9;
98
- var contains = kotlin_kotlin.$_$.x8;
99
- var IllegalStateException = kotlin_kotlin.$_$.ra;
94
+ var contentEquals = kotlin_kotlin.$_$.f3;
95
+ var contentHashCode = kotlin_kotlin.$_$.g3;
96
+ var round = kotlin_kotlin.$_$.n8;
97
+ var replace = kotlin_kotlin.$_$.ea;
98
+ var contains = kotlin_kotlin.$_$.m9;
99
+ var IllegalStateException = kotlin_kotlin.$_$.gb;
100
100
  var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.g2;
101
101
  var Monotonic_instance = kotlin_kotlin.$_$.h1;
102
102
  var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
103
- var shiftLeft = kotlin_kotlin.$_$.f6;
104
- var multiply = kotlin_kotlin.$_$.c6;
103
+ var shiftLeft = kotlin_kotlin.$_$.t6;
104
+ var multiply = kotlin_kotlin.$_$.q6;
105
105
  var ValueTimeMark__elapsedNow_impl_eonqvs = kotlin_kotlin.$_$.c;
106
106
  var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.b;
107
107
  var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
108
- var promise = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
109
- var sorted = kotlin_kotlin.$_$.k4;
110
- var setOf = kotlin_kotlin.$_$.i4;
111
- var KProperty0 = kotlin_kotlin.$_$.m8;
112
- var getPropertyCallableRef = kotlin_kotlin.$_$.a7;
113
- var isCharSequence = kotlin_kotlin.$_$.k7;
114
- var trim = kotlin_kotlin.$_$.ia;
115
- var toLongOrNull = kotlin_kotlin.$_$.da;
116
- var isNumber = kotlin_kotlin.$_$.m7;
108
+ var promise = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n;
109
+ var sorted = kotlin_kotlin.$_$.x4;
110
+ var setOf = kotlin_kotlin.$_$.t4;
111
+ var KProperty0 = kotlin_kotlin.$_$.b9;
112
+ var getPropertyCallableRef = kotlin_kotlin.$_$.o7;
113
+ var isCharSequence = kotlin_kotlin.$_$.y7;
114
+ var trim = kotlin_kotlin.$_$.xa;
115
+ var toLongOrNull = kotlin_kotlin.$_$.sa;
116
+ var isNumber = kotlin_kotlin.$_$.a8;
117
117
  var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
118
- var lazy = kotlin_kotlin.$_$.kb;
118
+ var lazy = kotlin_kotlin.$_$.ac;
119
119
  //endregion
120
120
  //region block: pre-declaration
121
121
  initMetadataForClass(SmoothingOptions, 'SmoothingOptions', SmoothingOptions);
@@ -137,6 +137,7 @@
137
137
  initMetadataForClass(ElevationCalculator, 'ElevationCalculator', VOID, VOID, VOID, [3, 2, 1]);
138
138
  initMetadataForObject(ElevationFunctions, 'ElevationFunctions');
139
139
  initMetadataForLambda(ElevationProvider$calculator$slambda, CoroutineImpl, VOID, [2]);
140
+ initMetadataForLambda(ElevationProvider$calculator$slambda_1, CoroutineImpl, VOID, [2]);
140
141
  initMetadataForClass(ElevationProvider, 'ElevationProvider', ElevationProvider_init_$Create$, VOID, VOID, [3, 2, 6]);
141
142
  initMetadataForFunctionReference(fetchAndDecodeTile$ref, KFunctionImpl, VOID, [1]);
142
143
  initMetadataForLambda(defaultTileFetcher$slambda, CoroutineImpl, VOID, [1]);
@@ -150,6 +151,7 @@
150
151
  initMetadataForLambda(Flux$forEachParallel$slambda, CoroutineImpl, VOID, [1]);
151
152
  initMetadataForCoroutine($forEachParallelCOROUTINE$, CoroutineImpl);
152
153
  initMetadataForObject(Flux, 'Flux', VOID, VOID, VOID, [3]);
154
+ initMetadataForClass(IgnLidarHdLayer, 'IgnLidarHdLayer', VOID, Enum);
153
155
  initMetadataForClass(Hit, 'Hit');
154
156
  initMetadataForClass(Await, 'Await');
155
157
  initMetadataForClass(Owner, 'Owner');
@@ -173,8 +175,8 @@
173
175
  initMetadataForLambda(pacedTileBytesFetcher$slambda, CoroutineImpl, VOID, [1]);
174
176
  initMetadataForClass(TileCoordinates, 'TileCoordinates');
175
177
  initMetadataForClass(Pixel, 'Pixel');
176
- initMetadataForClass(PixelFloat, 'PixelFloat');
177
178
  initMetadataForClass(TileCoordinatesFloat, 'TileCoordinatesFloat');
179
+ initMetadataForClass(PixelFloat, 'PixelFloat');
178
180
  initMetadataForCompanion(Companion_1);
179
181
  initMetadataForClass(Vector3D, 'Vector3D');
180
182
  initMetadataForLambda(getElevation$slambda, CoroutineImpl, VOID, [1]);
@@ -191,15 +193,15 @@
191
193
  function SmoothingOptions(windowSize, enabled) {
192
194
  windowSize = windowSize === VOID ? 50.0 : windowSize;
193
195
  enabled = enabled === VOID ? false : enabled;
194
- this.windowSize_1 = windowSize;
195
- this.enabled_1 = enabled;
196
+ this.dy_1 = windowSize;
197
+ this.ey_1 = enabled;
196
198
  }
197
199
  protoOf(SmoothingOptions).toString = function () {
198
- return 'SmoothingOptions(windowSize=' + this.windowSize_1 + ', enabled=' + this.enabled_1 + ')';
200
+ return 'SmoothingOptions(windowSize=' + this.dy_1 + ', enabled=' + this.ey_1 + ')';
199
201
  };
200
202
  protoOf(SmoothingOptions).hashCode = function () {
201
- var result = this.windowSize_1 == null ? 0 : getNumberHashCode(this.windowSize_1);
202
- result = imul(result, 31) + getBooleanHashCode(this.enabled_1) | 0;
203
+ var result = this.dy_1 == null ? 0 : getNumberHashCode(this.dy_1);
204
+ result = imul(result, 31) + getBooleanHashCode(this.ey_1) | 0;
203
205
  return result;
204
206
  };
205
207
  protoOf(SmoothingOptions).equals = function (other) {
@@ -207,9 +209,9 @@
207
209
  return true;
208
210
  if (!(other instanceof SmoothingOptions))
209
211
  return false;
210
- if (!equals(this.windowSize_1, other.windowSize_1))
212
+ if (!equals(this.dy_1, other.dy_1))
211
213
  return false;
212
- if (!(this.enabled_1 === other.enabled_1))
214
+ if (!(this.ey_1 === other.ey_1))
213
215
  return false;
214
216
  return true;
215
217
  };
@@ -217,17 +219,17 @@
217
219
  tolerance = tolerance === VOID ? 10.0 : tolerance;
218
220
  zExaggeration = zExaggeration === VOID ? 3.0 : zExaggeration;
219
221
  enabled = enabled === VOID ? false : enabled;
220
- this.tolerance_1 = tolerance;
221
- this.zExaggeration_1 = zExaggeration;
222
- this.enabled_1 = enabled;
222
+ this.fy_1 = tolerance;
223
+ this.gy_1 = zExaggeration;
224
+ this.hy_1 = enabled;
223
225
  }
224
226
  protoOf(FilterOptions).toString = function () {
225
- return 'FilterOptions(tolerance=' + this.tolerance_1 + ', zExaggeration=' + this.zExaggeration_1 + ', enabled=' + this.enabled_1 + ')';
227
+ return 'FilterOptions(tolerance=' + this.fy_1 + ', zExaggeration=' + this.gy_1 + ', enabled=' + this.hy_1 + ')';
226
228
  };
227
229
  protoOf(FilterOptions).hashCode = function () {
228
- var result = this.tolerance_1 == null ? 0 : getNumberHashCode(this.tolerance_1);
229
- result = imul(result, 31) + (this.zExaggeration_1 == null ? 0 : getNumberHashCode(this.zExaggeration_1)) | 0;
230
- result = imul(result, 31) + getBooleanHashCode(this.enabled_1) | 0;
230
+ var result = this.fy_1 == null ? 0 : getNumberHashCode(this.fy_1);
231
+ result = imul(result, 31) + (this.gy_1 == null ? 0 : getNumberHashCode(this.gy_1)) | 0;
232
+ result = imul(result, 31) + getBooleanHashCode(this.hy_1) | 0;
231
233
  return result;
232
234
  };
233
235
  protoOf(FilterOptions).equals = function (other) {
@@ -235,11 +237,11 @@
235
237
  return true;
236
238
  if (!(other instanceof FilterOptions))
237
239
  return false;
238
- if (!equals(this.tolerance_1, other.tolerance_1))
240
+ if (!equals(this.fy_1, other.fy_1))
239
241
  return false;
240
- if (!equals(this.zExaggeration_1, other.zExaggeration_1))
242
+ if (!equals(this.gy_1, other.gy_1))
241
243
  return false;
242
- if (!(this.enabled_1 === other.enabled_1))
244
+ if (!(this.hy_1 === other.hy_1))
243
245
  return false;
244
246
  return true;
245
247
  };
@@ -248,44 +250,44 @@
248
250
  return toNumber(asLong) === d ? asLong.toString() : d.toString();
249
251
  }
250
252
  function BatchCalculator$setElevations$slambda($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation) {
251
- this.$coordinates_1 = $coordinates;
252
- this.this$0__1 = this$0;
253
- this.$zoomLevel_1 = $zoomLevel;
254
- this.$interpolation_1 = $interpolation;
255
- this.$results_1 = $results;
253
+ this.qy_1 = $coordinates;
254
+ this.ry_1 = this$0;
255
+ this.sy_1 = $zoomLevel;
256
+ this.ty_1 = $interpolation;
257
+ this.uy_1 = $results;
256
258
  CoroutineImpl.call(this, resultContinuation);
257
259
  }
258
- protoOf(BatchCalculator$setElevations$slambda).invoke_adz50t_k$ = function (_destruct__k2r9zo, $completion) {
259
- var tmp = this.create_83s1ov_k$(_destruct__k2r9zo, $completion);
260
- tmp.result_1 = Unit_instance;
261
- tmp.exception_1 = null;
262
- return tmp.doResume_5yljmg_k$();
260
+ protoOf(BatchCalculator$setElevations$slambda).zy = function (_destruct__k2r9zo, $completion) {
261
+ var tmp = this.az(_destruct__k2r9zo, $completion);
262
+ tmp.i7_1 = Unit_instance;
263
+ tmp.j7_1 = null;
264
+ return tmp.o7();
263
265
  };
264
- protoOf(BatchCalculator$setElevations$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
265
- return this.invoke_adz50t_k$((!(p1 == null) ? isInterface(p1, MutableEntry) : false) ? p1 : THROW_CCE(), $completion);
266
+ protoOf(BatchCalculator$setElevations$slambda).w7 = function (p1, $completion) {
267
+ return this.zy((!(p1 == null) ? isInterface(p1, MutableEntry) : false) ? p1 : THROW_CCE(), $completion);
266
268
  };
267
- protoOf(BatchCalculator$setElevations$slambda).doResume_5yljmg_k$ = function () {
268
- var suspendResult = this.result_1;
269
+ protoOf(BatchCalculator$setElevations$slambda).o7 = function () {
270
+ var suspendResult = this.i7_1;
269
271
  $sm: do
270
272
  try {
271
- var tmp = this.state_1;
273
+ var tmp = this.g7_1;
272
274
  switch (tmp) {
273
275
  case 0:
274
- this.exceptionState_1 = 4;
275
- var indices = this._destruct__k2r9zo_1.get_value_j01efc_k$();
276
- this._iterator_2_yqohr2__1 = indices.iterator_jk1svi_k$();
277
- this.state_1 = 1;
276
+ this.h7_1 = 4;
277
+ var indices = this.vy_1.n1();
278
+ this.yy_1 = indices.l();
279
+ this.g7_1 = 1;
278
280
  continue $sm;
279
281
  case 1:
280
- if (!this._iterator_2_yqohr2__1.hasNext_bitz1p_k$()) {
281
- this.state_1 = 3;
282
+ if (!this.yy_1.m()) {
283
+ this.g7_1 = 3;
282
284
  continue $sm;
283
285
  }
284
286
 
285
- this.i1__1 = this._iterator_2_yqohr2__1.next_20eer_k$();
286
- this.coord0__1 = this.$coordinates_1.get_c1px32_k$(this.i1__1);
287
- this.state_1 = 2;
288
- suspendResult = this.this$0__1.calculator_1.getElevation_e117b3_k$(this.coord0__1, this.$zoomLevel_1, this.$interpolation_1, this);
287
+ this.xy_1 = this.yy_1.n();
288
+ this.wy_1 = this.qy_1.p(this.xy_1);
289
+ this.g7_1 = 2;
290
+ suspendResult = this.ry_1.bz_1.fz(this.wy_1, this.sy_1, this.ty_1, this);
289
291
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
290
292
  return suspendResult;
291
293
  }
@@ -293,136 +295,136 @@
293
295
  continue $sm;
294
296
  case 2:
295
297
  var ele = suspendResult;
296
- this.$results_1[this.i1__1] = new LatLonElevation(this.coord0__1.get_latitude_feukvp_k$(), this.coord0__1.get_longitude_asb1fq_k$(), ele);
297
- this.state_1 = 1;
298
+ this.uy_1[this.xy_1] = new LatLonElevation(this.wy_1.gz(), this.wy_1.hz(), ele);
299
+ this.g7_1 = 1;
298
300
  continue $sm;
299
301
  case 3:
300
302
  return Unit_instance;
301
303
  case 4:
302
- throw this.exception_1;
304
+ throw this.j7_1;
303
305
  }
304
306
  } catch ($p) {
305
307
  var e = $p;
306
- if (this.exceptionState_1 === 4) {
308
+ if (this.h7_1 === 4) {
307
309
  throw e;
308
310
  } else {
309
- this.state_1 = this.exceptionState_1;
310
- this.exception_1 = e;
311
+ this.g7_1 = this.h7_1;
312
+ this.j7_1 = e;
311
313
  }
312
314
  }
313
315
  while (true);
314
316
  };
315
- protoOf(BatchCalculator$setElevations$slambda).create_83s1ov_k$ = function (_destruct__k2r9zo, completion) {
316
- var i = new BatchCalculator$setElevations$slambda(this.$coordinates_1, this.this$0__1, this.$zoomLevel_1, this.$interpolation_1, this.$results_1, completion);
317
- i._destruct__k2r9zo_1 = _destruct__k2r9zo;
317
+ protoOf(BatchCalculator$setElevations$slambda).az = function (_destruct__k2r9zo, completion) {
318
+ var i = new BatchCalculator$setElevations$slambda(this.qy_1, this.ry_1, this.sy_1, this.ty_1, this.uy_1, completion);
319
+ i.vy_1 = _destruct__k2r9zo;
318
320
  return i;
319
321
  };
320
322
  function BatchCalculator$setElevations$slambda_0($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation) {
321
323
  var i = new BatchCalculator$setElevations$slambda($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation);
322
324
  return constructCallableReference(function (_destruct__k2r9zo, $completion) {
323
- return i.invoke_adz50t_k$(_destruct__k2r9zo, $completion);
325
+ return i.zy(_destruct__k2r9zo, $completion);
324
326
  }, 1);
325
327
  }
326
328
  function $setElevationsCOROUTINE$(_this__u8e3s4, coordinates, zoomLevel, interpolation, maxParallelTiles, resultContinuation) {
327
329
  CoroutineImpl.call(this, resultContinuation);
328
- this._this__u8e3s4__1 = _this__u8e3s4;
329
- this.coordinates_1 = coordinates;
330
- this.zoomLevel_1 = zoomLevel;
331
- this.interpolation_1 = interpolation;
332
- this.maxParallelTiles_1 = maxParallelTiles;
333
- }
334
- protoOf($setElevationsCOROUTINE$).doResume_5yljmg_k$ = function () {
335
- var suspendResult = this.result_1;
330
+ this.qz_1 = _this__u8e3s4;
331
+ this.rz_1 = coordinates;
332
+ this.sz_1 = zoomLevel;
333
+ this.tz_1 = interpolation;
334
+ this.uz_1 = maxParallelTiles;
335
+ }
336
+ protoOf($setElevationsCOROUTINE$).o7 = function () {
337
+ var suspendResult = this.i7_1;
336
338
  $sm: do
337
339
  try {
338
- var tmp = this.state_1;
340
+ var tmp = this.g7_1;
339
341
  switch (tmp) {
340
342
  case 0:
341
- this.exceptionState_1 = 2;
342
- if (this.coordinates_1.isEmpty_y1axqb_k$())
343
+ this.h7_1 = 2;
344
+ if (this.rz_1.q())
343
345
  return emptyList();
344
346
  var tmp_0 = this;
345
- var size = this.coordinates_1.get_size_woubt6_k$();
346
- tmp_0.results0__1 = Array(size);
347
+ var size = this.rz_1.o();
348
+ tmp_0.vz_1 = Array(size);
347
349
  var byTile = LinkedHashMap_init_$Create$();
348
- var iterator = this.coordinates_1.iterator_jk1svi_k$();
350
+ var iterator = this.rz_1.l();
349
351
  var index = 0;
350
- while (iterator.hasNext_bitz1p_k$()) {
352
+ while (iterator.m()) {
351
353
  var i = index;
352
354
  index = index + 1 | 0;
353
- var p = iterator.next_20eer_k$();
354
- var tile = ElevationFunctions_instance.toTileCoordinates_jamtrs_k$(p, this.zoomLevel_1);
355
- var key = '' + tile.z_1 + '/' + tile.x_1 + '/' + tile.y_1;
356
- var value = byTile.get_wei43m_k$(key);
355
+ var p = iterator.n();
356
+ var tile = ElevationFunctions_instance.yz(p, this.sz_1);
357
+ var key = '' + tile.b10_1 + '/' + tile.zz_1 + '/' + tile.a10_1;
358
+ var value = byTile.q1(key);
357
359
  var tmp_1;
358
360
  if (value == null) {
359
361
  var answer = ArrayList_init_$Create$();
360
- byTile.put_4fpzoq_k$(key, answer);
362
+ byTile.s3(key, answer);
361
363
  tmp_1 = answer;
362
364
  } else {
363
365
  tmp_1 = value;
364
366
  }
365
- tmp_1.add_utx5q5_k$(i);
367
+ tmp_1.k(i);
366
368
  }
367
369
 
368
- this.state_1 = 1;
370
+ this.g7_1 = 1;
369
371
  var tmp_2 = Flux_instance;
370
- var tmp_3 = byTile.get_entries_p20ztl_k$();
371
- suspendResult = tmp_2.forEachParallel_gstfa7_k$(tmp_3, this.maxParallelTiles_1, BatchCalculator$setElevations$slambda_0(this.coordinates_1, this._this__u8e3s4__1, this.zoomLevel_1, this.interpolation_1, this.results0__1, null), this);
372
+ var tmp_3 = byTile.t1();
373
+ suspendResult = tmp_2.c10(tmp_3, this.uz_1, BatchCalculator$setElevations$slambda_0(this.rz_1, this.qz_1, this.sz_1, this.tz_1, this.vz_1, null), this);
372
374
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
373
375
  return suspendResult;
374
376
  }
375
377
 
376
378
  continue $sm;
377
379
  case 1:
378
- var tmp_4 = toList(this.results0__1);
380
+ var tmp_4 = toList(this.vz_1);
379
381
  return isInterface(tmp_4, KtList) ? tmp_4 : THROW_CCE();
380
382
  case 2:
381
- throw this.exception_1;
383
+ throw this.j7_1;
382
384
  }
383
385
  } catch ($p) {
384
386
  var e = $p;
385
- if (this.exceptionState_1 === 2) {
387
+ if (this.h7_1 === 2) {
386
388
  throw e;
387
389
  } else {
388
- this.state_1 = this.exceptionState_1;
389
- this.exception_1 = e;
390
+ this.g7_1 = this.h7_1;
391
+ this.j7_1 = e;
390
392
  }
391
393
  }
392
394
  while (true);
393
395
  };
394
396
  function $getElevationsAlongCOROUTINE$(_this__u8e3s4, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, resultContinuation) {
395
397
  CoroutineImpl.call(this, resultContinuation);
396
- this._this__u8e3s4__1 = _this__u8e3s4;
397
- this.path_1 = path;
398
- this.zoomLevel_1 = zoomLevel;
399
- this.step_1 = step;
400
- this.minDistance_1 = minDistance;
401
- this.interpolation_1 = interpolation;
402
- this.smoothingOptions_1 = smoothingOptions;
403
- this.filterOptions_1 = filterOptions;
404
- }
405
- protoOf($getElevationsAlongCOROUTINE$).doResume_5yljmg_k$ = function () {
406
- var suspendResult = this.result_1;
398
+ this.l10_1 = _this__u8e3s4;
399
+ this.m10_1 = path;
400
+ this.n10_1 = zoomLevel;
401
+ this.o10_1 = step;
402
+ this.p10_1 = minDistance;
403
+ this.q10_1 = interpolation;
404
+ this.r10_1 = smoothingOptions;
405
+ this.s10_1 = filterOptions;
406
+ }
407
+ protoOf($getElevationsAlongCOROUTINE$).o7 = function () {
408
+ var suspendResult = this.i7_1;
407
409
  $sm: do
408
410
  try {
409
- var tmp = this.state_1;
411
+ var tmp = this.g7_1;
410
412
  switch (tmp) {
411
413
  case 0:
412
- this.exceptionState_1 = 2;
413
- if (!(this.path_1.get_size_woubt6_k$() >= 2)) {
414
+ this.h7_1 = 2;
415
+ if (!(this.m10_1.o() >= 2)) {
414
416
  var message = 'Path must contain at least 2 coordinates';
415
417
  throw IllegalArgumentException_init_$Create$(toString(message));
416
418
  }
417
419
 
418
- if (!(this.step_1 > 1.0)) {
419
- var message_0 = 'Step is too small: ' + formatNumber(this._this__u8e3s4__1, this.step_1) + ' meters';
420
+ if (!(this.o10_1 > 1.0)) {
421
+ var message_0 = 'Step is too small: ' + formatNumber(this.l10_1, this.o10_1) + ' meters';
420
422
  throw IllegalArgumentException_init_$Create$(toString(message_0));
421
423
  }
422
424
 
423
- var densified = this._this__u8e3s4__1.generateCoordinatesAlong_8q0lbj_k$(this.path_1, this.step_1, this.minDistance_1);
424
- this.state_1 = 1;
425
- suspendResult = this._this__u8e3s4__1.setElevations$default_qzn313_k$(densified, this.zoomLevel_1, this.interpolation_1, VOID, this);
425
+ var densified = this.l10_1.t10(this.m10_1, this.o10_1, this.p10_1);
426
+ this.g7_1 = 1;
427
+ suspendResult = this.l10_1.u10(densified, this.n10_1, this.q10_1, VOID, this);
426
428
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
427
429
  return suspendResult;
428
430
  }
@@ -431,9 +433,9 @@
431
433
  case 1:
432
434
  var withElevation = suspendResult;
433
435
  var tmp_0;
434
- var tmp1_safe_receiver = this.smoothingOptions_1;
435
- if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.enabled_1) === true) {
436
- tmp_0 = withElevation.get_size_woubt6_k$() >= 3;
436
+ var tmp1_safe_receiver = this.r10_1;
437
+ if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ey_1) === true) {
438
+ tmp_0 = withElevation.o() >= 3;
437
439
  } else {
438
440
  tmp_0 = false;
439
441
  }
@@ -441,14 +443,14 @@
441
443
  if (tmp_0) {
442
444
  var tmp_1 = ElevationSmoother_instance;
443
445
  var tmp_2 = withElevation;
444
- var tmp0_elvis_lhs = this.smoothingOptions_1.windowSize_1;
445
- withElevation = tmp_1.smooth_j2mgq7_k$(tmp_2, tmp0_elvis_lhs == null ? 50.0 : tmp0_elvis_lhs);
446
+ var tmp0_elvis_lhs = this.r10_1.dy_1;
447
+ withElevation = tmp_1.v10(tmp_2, tmp0_elvis_lhs == null ? 50.0 : tmp0_elvis_lhs);
446
448
  }
447
449
 
448
450
  var tmp_3;
449
- var tmp4_safe_receiver = this.filterOptions_1;
450
- if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.enabled_1) === true) {
451
- tmp_3 = withElevation.get_size_woubt6_k$() > 2;
451
+ var tmp4_safe_receiver = this.s10_1;
452
+ if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.hy_1) === true) {
453
+ tmp_3 = withElevation.o() > 2;
452
454
  } else {
453
455
  tmp_3 = false;
454
456
  }
@@ -456,74 +458,74 @@
456
458
  if (tmp_3) {
457
459
  var tmp_4 = DouglasPeucker_instance;
458
460
  var tmp_5 = withElevation;
459
- var tmp2_elvis_lhs = this.filterOptions_1.tolerance_1;
461
+ var tmp2_elvis_lhs = this.s10_1.fy_1;
460
462
  var tmp_6 = tmp2_elvis_lhs == null ? 10.0 : tmp2_elvis_lhs;
461
- var tmp3_elvis_lhs = this.filterOptions_1.zExaggeration_1;
462
- withElevation = tmp_4.simplify_o1pnyo_k$(tmp_5, tmp_6, tmp3_elvis_lhs == null ? 3.0 : tmp3_elvis_lhs);
463
+ var tmp3_elvis_lhs = this.s10_1.gy_1;
464
+ withElevation = tmp_4.w10(tmp_5, tmp_6, tmp3_elvis_lhs == null ? 3.0 : tmp3_elvis_lhs);
463
465
  }
464
466
 
465
467
  return withElevation;
466
468
  case 2:
467
- throw this.exception_1;
469
+ throw this.j7_1;
468
470
  }
469
471
  } catch ($p) {
470
472
  var e = $p;
471
- if (this.exceptionState_1 === 2) {
473
+ if (this.h7_1 === 2) {
472
474
  throw e;
473
475
  } else {
474
- this.state_1 = this.exceptionState_1;
475
- this.exception_1 = e;
476
+ this.g7_1 = this.h7_1;
477
+ this.j7_1 = e;
476
478
  }
477
479
  }
478
480
  while (true);
479
481
  };
480
482
  function BatchCalculator(calculator) {
481
- this.calculator_1 = calculator;
483
+ this.bz_1 = calculator;
482
484
  }
483
- protoOf(BatchCalculator).setElevations_anil9n_k$ = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) {
485
+ protoOf(BatchCalculator).x10 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) {
484
486
  var tmp = new $setElevationsCOROUTINE$(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
485
- tmp.result_1 = Unit_instance;
486
- tmp.exception_1 = null;
487
- return tmp.doResume_5yljmg_k$();
487
+ tmp.i7_1 = Unit_instance;
488
+ tmp.j7_1 = null;
489
+ return tmp.o7();
488
490
  };
489
- protoOf(BatchCalculator).setElevations$default_qzn313_k$ = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion, $super) {
491
+ protoOf(BatchCalculator).u10 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion, $super) {
490
492
  maxParallelTiles = maxParallelTiles === VOID ? 10 : maxParallelTiles;
491
- return $super === VOID ? this.setElevations_anil9n_k$(coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) : $super.setElevations_anil9n_k$.call(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
493
+ return $super === VOID ? this.x10(coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) : $super.x10.call(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
492
494
  };
493
- protoOf(BatchCalculator).getElevationsAlong_4qke12_k$ = function (path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
495
+ protoOf(BatchCalculator).y10 = function (path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
494
496
  var tmp = new $getElevationsAlongCOROUTINE$(this, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
495
- tmp.result_1 = Unit_instance;
496
- tmp.exception_1 = null;
497
- return tmp.doResume_5yljmg_k$();
497
+ tmp.i7_1 = Unit_instance;
498
+ tmp.j7_1 = null;
499
+ return tmp.o7();
498
500
  };
499
- protoOf(BatchCalculator).generateCoordinatesAlong_8q0lbj_k$ = function (path, step, minDistance) {
500
- if (path.isEmpty_y1axqb_k$())
501
+ protoOf(BatchCalculator).t10 = function (path, step, minDistance) {
502
+ if (path.q())
501
503
  return emptyList();
502
- var out = ArrayList_init_$Create$_0(imul(path.get_size_woubt6_k$(), 2));
503
- var anchor = path.get_c1px32_k$(0);
504
+ var out = ArrayList_init_$Create$_0(imul(path.o(), 2));
505
+ var anchor = path.p(0);
504
506
  // Inline function 'kotlin.collections.plusAssign' call
505
507
  var element = anchor;
506
- out.add_utx5q5_k$(element);
508
+ out.k(element);
507
509
  var inductionVariable = 1;
508
- var last = path.get_size_woubt6_k$();
510
+ var last = path.o();
509
511
  if (inductionVariable < last)
510
512
  $l$loop: do {
511
513
  var i = inductionVariable;
512
514
  inductionVariable = inductionVariable + 1 | 0;
513
- var b = path.get_c1px32_k$(i);
514
- var d = Distance_instance.haversine_mrx4ab_k$(anchor, b);
515
+ var b = path.p(i);
516
+ var d = Distance_instance.z10(anchor, b);
515
517
  if (d < minDistance)
516
518
  continue $l$loop;
517
- var between = this.generateCoordinatesBetween_nqn6s8_k$(anchor, b, step, d);
519
+ var between = this.a11(anchor, b, step, d);
518
520
  var inductionVariable_0 = 1;
519
- var last_0 = between.get_size_woubt6_k$();
521
+ var last_0 = between.o();
520
522
  if (inductionVariable_0 < last_0)
521
523
  do {
522
524
  var j = inductionVariable_0;
523
525
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
524
526
  // Inline function 'kotlin.collections.plusAssign' call
525
- var element_0 = between.get_c1px32_k$(j);
526
- out.add_utx5q5_k$(element_0);
527
+ var element_0 = between.p(j);
528
+ out.k(element_0);
527
529
  }
528
530
  while (inductionVariable_0 < last_0);
529
531
  anchor = b;
@@ -531,15 +533,15 @@
531
533
  while (inductionVariable < last);
532
534
  return out;
533
535
  };
534
- protoOf(BatchCalculator).generateCoordinatesBetween_nqn6s8_k$ = function (a, b, step, distance) {
536
+ protoOf(BatchCalculator).a11 = function (a, b, step, distance) {
535
537
  if (distance <= step)
536
538
  return listOf([a, b]);
537
539
  var numSteps = numberToInt(distance / step);
538
540
  var out = ArrayList_init_$Create$_0(numSteps + 2 | 0);
539
541
  // Inline function 'kotlin.collections.plusAssign' call
540
- out.add_utx5q5_k$(a);
541
- var latDiff = b.get_latitude_feukvp_k$() - a.get_latitude_feukvp_k$();
542
- var lonDiff = b.get_longitude_asb1fq_k$() - a.get_longitude_asb1fq_k$();
542
+ out.k(a);
543
+ var latDiff = b.gz() - a.gz();
544
+ var lonDiff = b.hz() - a.hz();
543
545
  var inductionVariable = 1;
544
546
  if (inductionVariable <= numSteps)
545
547
  do {
@@ -547,12 +549,12 @@
547
549
  inductionVariable = inductionVariable + 1 | 0;
548
550
  var f = i * step / distance;
549
551
  // Inline function 'kotlin.collections.plusAssign' call
550
- var element = new LatLon(a.get_latitude_feukvp_k$() + latDiff * f, a.get_longitude_asb1fq_k$() + lonDiff * f);
551
- out.add_utx5q5_k$(element);
552
+ var element = new LatLon(a.gz() + latDiff * f, a.hz() + lonDiff * f);
553
+ out.k(element);
552
554
  }
553
555
  while (!(i === numSteps));
554
556
  // Inline function 'kotlin.collections.plusAssign' call
555
- out.add_utx5q5_k$(b);
557
+ out.k(b);
556
558
  return out;
557
559
  };
558
560
  var static_init_called;
@@ -639,26 +641,26 @@
639
641
  }
640
642
  function LatLon(latitude, longitude, elevation) {
641
643
  elevation = elevation === VOID ? null : elevation;
642
- this.latitude_1 = latitude;
643
- this.longitude_1 = longitude;
644
- this.elevation_1 = elevation;
644
+ this.b11_1 = latitude;
645
+ this.c11_1 = longitude;
646
+ this.d11_1 = elevation;
645
647
  }
646
- protoOf(LatLon).get_latitude_feukvp_k$ = function () {
647
- return this.latitude_1;
648
+ protoOf(LatLon).gz = function () {
649
+ return this.b11_1;
648
650
  };
649
- protoOf(LatLon).get_longitude_asb1fq_k$ = function () {
650
- return this.longitude_1;
651
+ protoOf(LatLon).hz = function () {
652
+ return this.c11_1;
651
653
  };
652
- protoOf(LatLon).get_elevation_8fwyb8_k$ = function () {
653
- return this.elevation_1;
654
+ protoOf(LatLon).e11 = function () {
655
+ return this.d11_1;
654
656
  };
655
657
  protoOf(LatLon).toString = function () {
656
- return 'LatLon(latitude=' + this.latitude_1 + ', longitude=' + this.longitude_1 + ', elevation=' + this.elevation_1 + ')';
658
+ return 'LatLon(latitude=' + this.b11_1 + ', longitude=' + this.c11_1 + ', elevation=' + this.d11_1 + ')';
657
659
  };
658
660
  protoOf(LatLon).hashCode = function () {
659
- var result = getNumberHashCode(this.latitude_1);
660
- result = imul(result, 31) + getNumberHashCode(this.longitude_1) | 0;
661
- result = imul(result, 31) + (this.elevation_1 == null ? 0 : getNumberHashCode(this.elevation_1)) | 0;
661
+ var result = getNumberHashCode(this.b11_1);
662
+ result = imul(result, 31) + getNumberHashCode(this.c11_1) | 0;
663
+ result = imul(result, 31) + (this.d11_1 == null ? 0 : getNumberHashCode(this.d11_1)) | 0;
662
664
  return result;
663
665
  };
664
666
  protoOf(LatLon).equals = function (other) {
@@ -666,37 +668,37 @@
666
668
  return true;
667
669
  if (!(other instanceof LatLon))
668
670
  return false;
669
- if (!equals(this.latitude_1, other.latitude_1))
671
+ if (!equals(this.b11_1, other.b11_1))
670
672
  return false;
671
- if (!equals(this.longitude_1, other.longitude_1))
673
+ if (!equals(this.c11_1, other.c11_1))
672
674
  return false;
673
- if (!equals(this.elevation_1, other.elevation_1))
675
+ if (!equals(this.d11_1, other.d11_1))
674
676
  return false;
675
677
  return true;
676
678
  };
677
679
  function Coordinates() {
678
680
  }
679
681
  function LatLonElevation(latitude, longitude, elevation) {
680
- this.latitude_1 = latitude;
681
- this.longitude_1 = longitude;
682
- this.elevation_1 = elevation;
682
+ this.f11_1 = latitude;
683
+ this.g11_1 = longitude;
684
+ this.h11_1 = elevation;
683
685
  }
684
- protoOf(LatLonElevation).get_latitude_feukvp_k$ = function () {
685
- return this.latitude_1;
686
+ protoOf(LatLonElevation).gz = function () {
687
+ return this.f11_1;
686
688
  };
687
- protoOf(LatLonElevation).get_longitude_asb1fq_k$ = function () {
688
- return this.longitude_1;
689
+ protoOf(LatLonElevation).hz = function () {
690
+ return this.g11_1;
689
691
  };
690
- protoOf(LatLonElevation).get_elevation_8fwyb8_k$ = function () {
691
- return this.elevation_1;
692
+ protoOf(LatLonElevation).e11 = function () {
693
+ return this.h11_1;
692
694
  };
693
695
  protoOf(LatLonElevation).toString = function () {
694
- return 'LatLonElevation(latitude=' + this.latitude_1 + ', longitude=' + this.longitude_1 + ', elevation=' + this.elevation_1 + ')';
696
+ return 'LatLonElevation(latitude=' + this.f11_1 + ', longitude=' + this.g11_1 + ', elevation=' + this.h11_1 + ')';
695
697
  };
696
698
  protoOf(LatLonElevation).hashCode = function () {
697
- var result = getNumberHashCode(this.latitude_1);
698
- result = imul(result, 31) + getNumberHashCode(this.longitude_1) | 0;
699
- result = imul(result, 31) + getNumberHashCode(this.elevation_1) | 0;
699
+ var result = getNumberHashCode(this.f11_1);
700
+ result = imul(result, 31) + getNumberHashCode(this.g11_1) | 0;
701
+ result = imul(result, 31) + getNumberHashCode(this.h11_1) | 0;
700
702
  return result;
701
703
  };
702
704
  protoOf(LatLonElevation).equals = function (other) {
@@ -704,21 +706,21 @@
704
706
  return true;
705
707
  if (!(other instanceof LatLonElevation))
706
708
  return false;
707
- if (!equals(this.latitude_1, other.latitude_1))
709
+ if (!equals(this.f11_1, other.f11_1))
708
710
  return false;
709
- if (!equals(this.longitude_1, other.longitude_1))
711
+ if (!equals(this.g11_1, other.g11_1))
710
712
  return false;
711
- if (!equals(this.elevation_1, other.elevation_1))
713
+ if (!equals(this.h11_1, other.h11_1))
712
714
  return false;
713
715
  return true;
714
716
  };
715
717
  function Distance() {
716
718
  }
717
- protoOf(Distance).haversine_mrx4ab_k$ = function (coord1, coord2) {
718
- var lat1Rad = coord1.get_latitude_feukvp_k$() * 0.017453292519943295;
719
- var lat2Rad = coord2.get_latitude_feukvp_k$() * 0.017453292519943295;
720
- var deltaLat = (coord2.get_latitude_feukvp_k$() - coord1.get_latitude_feukvp_k$()) * 0.017453292519943295;
721
- var deltaLon = (coord2.get_longitude_asb1fq_k$() - coord1.get_longitude_asb1fq_k$()) * 0.017453292519943295;
719
+ protoOf(Distance).z10 = function (coord1, coord2) {
720
+ var lat1Rad = coord1.gz() * 0.017453292519943295;
721
+ var lat2Rad = coord2.gz() * 0.017453292519943295;
722
+ var deltaLat = (coord2.gz() - coord1.gz()) * 0.017453292519943295;
723
+ var deltaLon = (coord2.hz() - coord1.hz()) * 0.017453292519943295;
722
724
  // Inline function 'kotlin.math.sin' call
723
725
  var x = deltaLat / 2.0;
724
726
  var sinHalfLat = Math.sin(x);
@@ -740,19 +742,19 @@
740
742
  var c = 2.0 * Math.atan2(tmp0, x_2);
741
743
  return 6371000.0 * c;
742
744
  };
743
- protoOf(Distance).cumulativeDistances_92iok5_k$ = function (points) {
744
- if (points.isEmpty_y1axqb_k$()) {
745
+ protoOf(Distance).i11 = function (points) {
746
+ if (points.q()) {
745
747
  // Inline function 'kotlin.doubleArrayOf' call
746
748
  return new Float64Array([0.0]);
747
749
  }
748
- var out = new Float64Array(points.get_size_woubt6_k$());
750
+ var out = new Float64Array(points.o());
749
751
  var inductionVariable = 1;
750
- var last = points.get_size_woubt6_k$();
752
+ var last = points.o();
751
753
  if (inductionVariable < last)
752
754
  do {
753
755
  var i = inductionVariable;
754
756
  inductionVariable = inductionVariable + 1 | 0;
755
- out[i] = out[i - 1 | 0] + this.haversine_mrx4ab_k$(points.get_c1px32_k$(i - 1 | 0), points.get_c1px32_k$(i));
757
+ out[i] = out[i - 1 | 0] + this.z10(points.p(i - 1 | 0), points.p(i));
756
758
  }
757
759
  while (inductionVariable < last);
758
760
  return out;
@@ -762,8 +764,8 @@
762
764
  return Distance_instance;
763
765
  }
764
766
  function simplifyRecursive($this, points, firstIndex, lastIndex, tolerance, out) {
765
- var first = points.get_c1px32_k$(firstIndex);
766
- var last = points.get_c1px32_k$(lastIndex);
767
+ var first = points.p(firstIndex);
768
+ var last = points.p(lastIndex);
767
769
  var maxDistance = 0.0;
768
770
  var maxIndex = -1;
769
771
  var inductionVariable = firstIndex + 1 | 0;
@@ -771,7 +773,7 @@
771
773
  do {
772
774
  var i = inductionVariable;
773
775
  inductionVariable = inductionVariable + 1 | 0;
774
- var d = points.get_c1px32_k$(i).distanceToSegment_bfq4v7_k$(first, last);
776
+ var d = points.p(i).m11(first, last);
775
777
  if (d > maxDistance) {
776
778
  maxDistance = d;
777
779
  maxIndex = i;
@@ -782,7 +784,7 @@
782
784
  if ((maxIndex - firstIndex | 0) > 1) {
783
785
  simplifyRecursive($this, points, firstIndex, maxIndex, tolerance, out);
784
786
  }
785
- out.add_utx5q5_k$(maxIndex);
787
+ out.k(maxIndex);
786
788
  if ((lastIndex - maxIndex | 0) > 1) {
787
789
  simplifyRecursive($this, points, maxIndex, lastIndex, tolerance, out);
788
790
  }
@@ -790,45 +792,45 @@
790
792
  }
791
793
  function DouglasPeucker() {
792
794
  }
793
- protoOf(DouglasPeucker).simplify_o1pnyo_k$ = function (points, tolerance, zExaggeration) {
794
- if (points.get_size_woubt6_k$() <= 2)
795
+ protoOf(DouglasPeucker).w10 = function (points, tolerance, zExaggeration) {
796
+ if (points.o() <= 2)
795
797
  return toList_0(points);
796
798
  // Inline function 'kotlin.collections.map' call
797
799
  // Inline function 'kotlin.collections.mapTo' call
798
800
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(points, 10));
799
- var _iterator__ex2g4s = points.iterator_jk1svi_k$();
800
- while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
801
- var item = _iterator__ex2g4s.next_20eer_k$();
802
- var tmp$ret$2 = EcefConverter_instance.toEcef_pue96q_k$(item, zExaggeration);
803
- destination.add_utx5q5_k$(tmp$ret$2);
801
+ var _iterator__ex2g4s = points.l();
802
+ while (_iterator__ex2g4s.m()) {
803
+ var item = _iterator__ex2g4s.n();
804
+ var tmp$ret$2 = EcefConverter_instance.n11(item, zExaggeration);
805
+ destination.k(tmp$ret$2);
804
806
  }
805
807
  var ecef = destination;
806
808
  // Inline function 'kotlin.collections.map' call
807
- var this_0 = this.simplifyIndices_1yk9dd_k$(ecef, tolerance);
809
+ var this_0 = this.o11(ecef, tolerance);
808
810
  // Inline function 'kotlin.collections.mapTo' call
809
811
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
810
- var _iterator__ex2g4s_0 = this_0.iterator_jk1svi_k$();
811
- while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
812
- var item_0 = _iterator__ex2g4s_0.next_20eer_k$();
813
- var tmp$ret$5 = points.get_c1px32_k$(item_0);
814
- destination_0.add_utx5q5_k$(tmp$ret$5);
812
+ var _iterator__ex2g4s_0 = this_0.l();
813
+ while (_iterator__ex2g4s_0.m()) {
814
+ var item_0 = _iterator__ex2g4s_0.n();
815
+ var tmp$ret$5 = points.p(item_0);
816
+ destination_0.k(tmp$ret$5);
815
817
  }
816
818
  return destination_0;
817
819
  };
818
- protoOf(DouglasPeucker).simplifyIndices_1yk9dd_k$ = function (points, tolerance) {
819
- if (points.get_size_woubt6_k$() <= 2)
820
+ protoOf(DouglasPeucker).o11 = function (points, tolerance) {
821
+ if (points.o() <= 2)
820
822
  return toList_0(get_indices(points));
821
823
  var lastIndex = get_lastIndex(points);
822
824
  // Inline function 'kotlin.collections.buildList' call
823
825
  // Inline function 'kotlin.collections.buildListInternal' call
824
- var capacity = points.get_size_woubt6_k$();
826
+ var capacity = points.o();
825
827
  checkBuilderCapacity(capacity);
826
828
  // Inline function 'kotlin.apply' call
827
829
  var this_0 = ArrayList_init_$Create$_0(capacity);
828
- this_0.add_utx5q5_k$(0);
830
+ this_0.k(0);
829
831
  simplifyRecursive(DouglasPeucker_instance, points, 0, lastIndex, tolerance, this_0);
830
- this_0.add_utx5q5_k$(lastIndex);
831
- return this_0.build_nmwvly_k$();
832
+ this_0.k(lastIndex);
833
+ return this_0.b4();
832
834
  };
833
835
  var DouglasPeucker_instance;
834
836
  function DouglasPeucker_getInstance() {
@@ -836,10 +838,10 @@
836
838
  }
837
839
  function EcefConverter() {
838
840
  }
839
- protoOf(EcefConverter).toEcef_pue96q_k$ = function (coordinates, zExaggeration) {
840
- var latRad = coordinates.get_latitude_feukvp_k$() * 0.017453292519943295;
841
- var lonRad = coordinates.get_longitude_asb1fq_k$() * 0.017453292519943295;
842
- var tmp0_elvis_lhs = coordinates.get_elevation_8fwyb8_k$();
841
+ protoOf(EcefConverter).n11 = function (coordinates, zExaggeration) {
842
+ var latRad = coordinates.gz() * 0.017453292519943295;
843
+ var lonRad = coordinates.hz() * 0.017453292519943295;
844
+ var tmp0_elvis_lhs = coordinates.e11();
843
845
  var elevationExaggerated = zExaggeration * (tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
844
846
  // Inline function 'kotlin.math.sin' call
845
847
  var sinLat = Math.sin(latRad);
@@ -863,43 +865,43 @@
863
865
  }
864
866
  function getInterpolatedElevation($this, coords, zoomLevel, $completion) {
865
867
  var tmp = new $getInterpolatedElevationCOROUTINE$($this, coords, zoomLevel, $completion);
866
- tmp.result_1 = Unit_instance;
867
- tmp.exception_1 = null;
868
- return tmp.doResume_5yljmg_k$();
868
+ tmp.i7_1 = Unit_instance;
869
+ tmp.j7_1 = null;
870
+ return tmp.o7();
869
871
  }
870
872
  function elevationFromPixel($this, pixel, $completion) {
871
873
  var tmp = new $elevationFromPixelCOROUTINE$($this, pixel, $completion);
872
- tmp.result_1 = Unit_instance;
873
- tmp.exception_1 = null;
874
- return tmp.doResume_5yljmg_k$();
874
+ tmp.i7_1 = Unit_instance;
875
+ tmp.j7_1 = null;
876
+ return tmp.o7();
875
877
  }
876
878
  function $getElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, interpolation, resultContinuation) {
877
879
  CoroutineImpl.call(this, resultContinuation);
878
- this._this__u8e3s4__1 = _this__u8e3s4;
879
- this.coords_1 = coords;
880
- this.zoomLevel_1 = zoomLevel;
881
- this.interpolation_1 = interpolation;
880
+ this.c13_1 = _this__u8e3s4;
881
+ this.d13_1 = coords;
882
+ this.e13_1 = zoomLevel;
883
+ this.f13_1 = interpolation;
882
884
  }
883
- protoOf($getElevationCOROUTINE$).doResume_5yljmg_k$ = function () {
884
- var suspendResult = this.result_1;
885
+ protoOf($getElevationCOROUTINE$).o7 = function () {
886
+ var suspendResult = this.i7_1;
885
887
  $sm: do
886
888
  try {
887
- var tmp = this.state_1;
889
+ var tmp = this.g7_1;
888
890
  switch (tmp) {
889
891
  case 0:
890
- this.exceptionState_1 = 8;
891
- this.exceptionState_1 = 4;
892
- if (this.interpolation_1) {
893
- this.state_1 = 2;
894
- suspendResult = getInterpolatedElevation(this._this__u8e3s4__1, this.coords_1, this.zoomLevel_1, this);
892
+ this.h7_1 = 8;
893
+ this.h7_1 = 4;
894
+ if (this.f13_1) {
895
+ this.g7_1 = 2;
896
+ suspendResult = getInterpolatedElevation(this.c13_1, this.d13_1, this.e13_1, this);
895
897
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
896
898
  return suspendResult;
897
899
  }
898
900
  continue $sm;
899
901
  } else {
900
- var pixel = ElevationFunctions_instance.toPixel_iyzwlj_k$(this.coords_1, this.zoomLevel_1, this._this__u8e3s4__1.tileSize_1);
901
- this.state_1 = 1;
902
- suspendResult = elevationFromPixel(this._this__u8e3s4__1, pixel, this);
902
+ var pixel = ElevationFunctions_instance.j13(this.d13_1, this.e13_1, this.c13_1.dz_1);
903
+ this.g7_1 = 1;
904
+ suspendResult = elevationFromPixel(this.c13_1, pixel, this);
903
905
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
904
906
  return suspendResult;
905
907
  }
@@ -907,42 +909,42 @@
907
909
  }
908
910
 
909
911
  case 1:
910
- this.WHEN_RESULT2__1 = suspendResult;
911
- this.state_1 = 3;
912
+ this.i13_1 = suspendResult;
913
+ this.g7_1 = 3;
912
914
  continue $sm;
913
915
  case 2:
914
- this.WHEN_RESULT2__1 = suspendResult;
915
- this.state_1 = 3;
916
+ this.i13_1 = suspendResult;
917
+ this.g7_1 = 3;
916
918
  continue $sm;
917
919
  case 3:
918
- this.TRY_RESULT1__1 = this.WHEN_RESULT2__1;
919
- this.exceptionState_1 = 8;
920
- this.state_1 = 5;
920
+ this.h13_1 = this.i13_1;
921
+ this.h7_1 = 8;
922
+ this.g7_1 = 5;
921
923
  continue $sm;
922
924
  case 4:
923
- this.exceptionState_1 = 8;
924
- var tmp_0 = this.exception_1;
925
+ this.h7_1 = 8;
926
+ var tmp_0 = this.j7_1;
925
927
  if (tmp_0 instanceof Error) {
926
- var t = this.exception_1;
928
+ var t = this.j7_1;
927
929
  var tmp_1 = this;
928
930
  throw IllegalStateException_init_$Create$_0('Failed to get elevation: ' + t.message, t);
929
931
  } else {
930
- throw this.exception_1;
932
+ throw this.j7_1;
931
933
  }
932
934
 
933
935
  case 5:
934
- this.exceptionState_1 = 8;
935
- var own = this.TRY_RESULT1__1;
936
+ this.h7_1 = 8;
937
+ var own = this.h13_1;
936
938
  if (!isNaN_0(own))
937
939
  return own;
938
- var tmp0_safe_receiver = this._this__u8e3s4__1.fallback_1;
940
+ var tmp0_safe_receiver = this.c13_1.ez_1;
939
941
  if (tmp0_safe_receiver == null) {
940
- this.WHEN_RESULT0__1 = null;
941
- this.state_1 = 7;
942
+ this.g13_1 = null;
943
+ this.g7_1 = 7;
942
944
  continue $sm;
943
945
  } else {
944
- this.state_1 = 6;
945
- suspendResult = tmp0_safe_receiver(this.coords_1, this.interpolation_1, this);
946
+ this.g7_1 = 6;
947
+ suspendResult = tmp0_safe_receiver(this.d13_1, this.f13_1, this);
946
948
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
947
949
  return suspendResult;
948
950
  }
@@ -950,80 +952,80 @@
950
952
  }
951
953
 
952
954
  case 6:
953
- this.WHEN_RESULT0__1 = suspendResult;
954
- this.state_1 = 7;
955
+ this.g13_1 = suspendResult;
956
+ this.g7_1 = 7;
955
957
  continue $sm;
956
958
  case 7:
957
- var tmp1_elvis_lhs = this.WHEN_RESULT0__1;
959
+ var tmp1_elvis_lhs = this.g13_1;
958
960
  return tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs;
959
961
  case 8:
960
- throw this.exception_1;
962
+ throw this.j7_1;
961
963
  }
962
964
  } catch ($p) {
963
965
  var e = $p;
964
- if (this.exceptionState_1 === 8) {
966
+ if (this.h7_1 === 8) {
965
967
  throw e;
966
968
  } else {
967
- this.state_1 = this.exceptionState_1;
968
- this.exception_1 = e;
969
+ this.g7_1 = this.h7_1;
970
+ this.j7_1 = e;
969
971
  }
970
972
  }
971
973
  while (true);
972
974
  };
973
975
  function $getInterpolatedElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, resultContinuation) {
974
976
  CoroutineImpl.call(this, resultContinuation);
975
- this._this__u8e3s4__1 = _this__u8e3s4;
976
- this.coords_1 = coords;
977
- this.zoomLevel_1 = zoomLevel;
977
+ this.x11_1 = _this__u8e3s4;
978
+ this.y11_1 = coords;
979
+ this.z11_1 = zoomLevel;
978
980
  }
979
- protoOf($getInterpolatedElevationCOROUTINE$).doResume_5yljmg_k$ = function () {
980
- var suspendResult = this.result_1;
981
+ protoOf($getInterpolatedElevationCOROUTINE$).o7 = function () {
982
+ var suspendResult = this.i7_1;
981
983
  $sm: do
982
984
  try {
983
- var tmp = this.state_1;
985
+ var tmp = this.g7_1;
984
986
  switch (tmp) {
985
987
  case 0:
986
- this.exceptionState_1 = 5;
987
- this.pf7__1 = ElevationFunctions_instance.toPixelFloat_ler4xt_k$(this.coords_1, this.zoomLevel_1, this._this__u8e3s4__1.tileSize_1);
988
+ this.h7_1 = 5;
989
+ this.h12_1 = ElevationFunctions_instance.k13(this.y11_1, this.z11_1, this.x11_1.dz_1);
990
+ var fx = this.h12_1.m13_1 - 0.5;
991
+ var fy = this.h12_1.n13_1 - 0.5;
988
992
  var tmp_0 = this;
989
- var x = this.pf7__1.x_1;
990
- tmp_0.x0i8__1 = numberToInt(Math.floor(x));
993
+ tmp_0.i12_1 = numberToInt(Math.floor(fx));
991
994
  var tmp_1 = this;
992
- var x_0 = this.pf7__1.y_1;
993
- tmp_1.y0i9__1 = numberToInt(Math.floor(x_0));
994
- this.x1i6__1 = this.x0i8__1 + 1 | 0;
995
- this.y1i5__1 = this.y0i9__1 + 1 | 0;
996
- this.dx1__1 = this.pf7__1.x_1 - this.x0i8__1;
997
- this.dy0__1 = this.pf7__1.y_1 - this.y0i9__1;
998
- this.state_1 = 1;
999
- suspendResult = elevationFromPixel(this._this__u8e3s4__1, ElevationFunctions_instance.normalizePixel_364azo_k$(new Pixel(this.pf7__1.tile_1, this.x0i8__1, this.y0i9__1), this._this__u8e3s4__1.tileSize_1), this);
995
+ tmp_1.j12_1 = numberToInt(Math.floor(fy));
996
+ this.g12_1 = this.i12_1 + 1 | 0;
997
+ this.f12_1 = this.j12_1 + 1 | 0;
998
+ this.b12_1 = fx - this.i12_1;
999
+ this.a12_1 = fy - this.j12_1;
1000
+ this.g7_1 = 1;
1001
+ suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.i12_1, this.j12_1), this.x11_1.dz_1), this);
1000
1002
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1001
1003
  return suspendResult;
1002
1004
  }
1003
1005
 
1004
1006
  continue $sm;
1005
1007
  case 1:
1006
- this.p004__1 = suspendResult;
1007
- this.state_1 = 2;
1008
- suspendResult = elevationFromPixel(this._this__u8e3s4__1, ElevationFunctions_instance.normalizePixel_364azo_k$(new Pixel(this.pf7__1.tile_1, this.x1i6__1, this.y0i9__1), this._this__u8e3s4__1.tileSize_1), this);
1008
+ this.e12_1 = suspendResult;
1009
+ this.g7_1 = 2;
1010
+ suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.g12_1, this.j12_1), this.x11_1.dz_1), this);
1009
1011
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1010
1012
  return suspendResult;
1011
1013
  }
1012
1014
 
1013
1015
  continue $sm;
1014
1016
  case 2:
1015
- this.p103__1 = suspendResult;
1016
- this.state_1 = 3;
1017
- suspendResult = elevationFromPixel(this._this__u8e3s4__1, ElevationFunctions_instance.normalizePixel_364azo_k$(new Pixel(this.pf7__1.tile_1, this.x0i8__1, this.y1i5__1), this._this__u8e3s4__1.tileSize_1), this);
1017
+ this.d12_1 = suspendResult;
1018
+ this.g7_1 = 3;
1019
+ suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.i12_1, this.f12_1), this.x11_1.dz_1), this);
1018
1020
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1019
1021
  return suspendResult;
1020
1022
  }
1021
1023
 
1022
1024
  continue $sm;
1023
1025
  case 3:
1024
- this.p012__1 = suspendResult;
1025
- this.state_1 = 4;
1026
- suspendResult = elevationFromPixel(this._this__u8e3s4__1, ElevationFunctions_instance.normalizePixel_364azo_k$(new Pixel(this.pf7__1.tile_1, this.x1i6__1, this.y1i5__1), this._this__u8e3s4__1.tileSize_1), this);
1026
+ this.c12_1 = suspendResult;
1027
+ this.g7_1 = 4;
1028
+ suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.g12_1, this.f12_1), this.x11_1.dz_1), this);
1027
1029
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1028
1030
  return suspendResult;
1029
1031
  }
@@ -1031,55 +1033,55 @@
1031
1033
  continue $sm;
1032
1034
  case 4:
1033
1035
  var p11 = suspendResult;
1034
- var top = this.p004__1 * (1.0 - this.dx1__1) + this.p103__1 * this.dx1__1;
1035
- var bottom = this.p012__1 * (1.0 - this.dx1__1) + p11 * this.dx1__1;
1036
- return top * (1.0 - this.dy0__1) + bottom * this.dy0__1;
1036
+ var top = this.e12_1 * (1.0 - this.b12_1) + this.d12_1 * this.b12_1;
1037
+ var bottom = this.c12_1 * (1.0 - this.b12_1) + p11 * this.b12_1;
1038
+ return top * (1.0 - this.a12_1) + bottom * this.a12_1;
1037
1039
  case 5:
1038
- throw this.exception_1;
1040
+ throw this.j7_1;
1039
1041
  }
1040
1042
  } catch ($p) {
1041
1043
  var e = $p;
1042
- if (this.exceptionState_1 === 5) {
1044
+ if (this.h7_1 === 5) {
1043
1045
  throw e;
1044
1046
  } else {
1045
- this.state_1 = this.exceptionState_1;
1046
- this.exception_1 = e;
1047
+ this.g7_1 = this.h7_1;
1048
+ this.j7_1 = e;
1047
1049
  }
1048
1050
  }
1049
1051
  while (true);
1050
1052
  };
1051
1053
  function $elevationFromPixelCOROUTINE$(_this__u8e3s4, pixel, resultContinuation) {
1052
1054
  CoroutineImpl.call(this, resultContinuation);
1053
- this._this__u8e3s4__1 = _this__u8e3s4;
1054
- this.pixel_1 = pixel;
1055
+ this.s12_1 = _this__u8e3s4;
1056
+ this.t12_1 = pixel;
1055
1057
  }
1056
- protoOf($elevationFromPixelCOROUTINE$).doResume_5yljmg_k$ = function () {
1057
- var suspendResult = this.result_1;
1058
+ protoOf($elevationFromPixelCOROUTINE$).o7 = function () {
1059
+ var suspendResult = this.i7_1;
1058
1060
  $sm: do
1059
1061
  try {
1060
- var tmp = this.state_1;
1062
+ var tmp = this.g7_1;
1061
1063
  switch (tmp) {
1062
1064
  case 0:
1063
- this.exceptionState_1 = 2;
1064
- this.state_1 = 1;
1065
- suspendResult = this._this__u8e3s4__1.tileManager_1.getTile_c22khk_k$(this.pixel_1.tile_1, this);
1065
+ this.h7_1 = 2;
1066
+ this.g7_1 = 1;
1067
+ suspendResult = this.s12_1.cz_1.v13(this.t12_1.p13_1, this);
1066
1068
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1067
1069
  return suspendResult;
1068
1070
  }
1069
1071
 
1070
1072
  continue $sm;
1071
1073
  case 1:
1072
- return suspendResult.getElevation_exacdm_k$(this.pixel_1);
1074
+ return suspendResult.b14(this.t12_1);
1073
1075
  case 2:
1074
- throw this.exception_1;
1076
+ throw this.j7_1;
1075
1077
  }
1076
1078
  } catch ($p) {
1077
1079
  var e = $p;
1078
- if (this.exceptionState_1 === 2) {
1080
+ if (this.h7_1 === 2) {
1079
1081
  throw e;
1080
1082
  } else {
1081
- this.state_1 = this.exceptionState_1;
1082
- this.exception_1 = e;
1083
+ this.g7_1 = this.h7_1;
1084
+ this.j7_1 = e;
1083
1085
  }
1084
1086
  }
1085
1087
  while (true);
@@ -1087,40 +1089,42 @@
1087
1089
  function ElevationCalculator(tileManager, tileSize, fallback) {
1088
1090
  tileSize = tileSize === VOID ? 256 : tileSize;
1089
1091
  fallback = fallback === VOID ? null : fallback;
1090
- this.tileManager_1 = tileManager;
1091
- this.tileSize_1 = tileSize;
1092
- this.fallback_1 = fallback;
1092
+ this.cz_1 = tileManager;
1093
+ this.dz_1 = tileSize;
1094
+ this.ez_1 = fallback;
1093
1095
  }
1094
- protoOf(ElevationCalculator).getElevation_e117b3_k$ = function (coords, zoomLevel, interpolation, $completion) {
1096
+ protoOf(ElevationCalculator).fz = function (coords, zoomLevel, interpolation, $completion) {
1095
1097
  var tmp = new $getElevationCOROUTINE$(this, coords, zoomLevel, interpolation, $completion);
1096
- tmp.result_1 = Unit_instance;
1097
- tmp.exception_1 = null;
1098
- return tmp.doResume_5yljmg_k$();
1098
+ tmp.i7_1 = Unit_instance;
1099
+ tmp.j7_1 = null;
1100
+ return tmp.o7();
1099
1101
  };
1100
1102
  function formatNumber_0($this, d) {
1101
1103
  var asLong = numberToLong(d);
1102
1104
  return toNumber(asLong) === d ? asLong.toString() : d.toString();
1103
1105
  }
1104
1106
  function ElevationFunctions() {
1107
+ this.wz_1 = 0;
1108
+ this.xz_1 = 15;
1105
1109
  }
1106
- protoOf(ElevationFunctions).degToRad_hya2pa_k$ = function (degrees) {
1110
+ protoOf(ElevationFunctions).c14 = function (degrees) {
1107
1111
  return degrees * 0.017453292519943295;
1108
1112
  };
1109
- protoOf(ElevationFunctions).isValidLatitude_gohohk_k$ = function (lat) {
1113
+ protoOf(ElevationFunctions).d14 = function (lat) {
1110
1114
  return lat >= -85.0511 && lat <= 85.0511;
1111
1115
  };
1112
- protoOf(ElevationFunctions).isValidLongitude_hbos7_k$ = function (lon) {
1116
+ protoOf(ElevationFunctions).e14 = function (lon) {
1113
1117
  return -180.0 <= lon ? lon <= 180.0 : false;
1114
1118
  };
1115
- protoOf(ElevationFunctions).isValidZoomLevel_bzars7_k$ = function (zoom) {
1119
+ protoOf(ElevationFunctions).f14 = function (zoom) {
1116
1120
  return 0 <= zoom ? zoom <= 15 : false;
1117
1121
  };
1118
- protoOf(ElevationFunctions).normalizePixel_364azo_k$ = function (pixel, tileSize) {
1119
- var x = pixel.x_1;
1120
- var y = pixel.y_1;
1121
- var tileX = pixel.tile_1.x_1;
1122
- var tileY = pixel.tile_1.y_1;
1123
- var z = pixel.tile_1.z_1;
1122
+ protoOf(ElevationFunctions).o13 = function (pixel, tileSize) {
1123
+ var x = pixel.q13_1;
1124
+ var y = pixel.r13_1;
1125
+ var tileX = pixel.p13_1.zz_1;
1126
+ var tileY = pixel.p13_1.a10_1;
1127
+ var z = pixel.p13_1.b10_1;
1124
1128
  if (x < 0) {
1125
1129
  x = x + tileSize | 0;
1126
1130
  tileX = tileX - 1 | 0;
@@ -1154,25 +1158,25 @@
1154
1158
  }
1155
1159
  return new Pixel(new TileCoordinates(tileX, tileY, z), x, y);
1156
1160
  };
1157
- protoOf(ElevationFunctions).toTileCoordinatesFloat_fctdpc_k$ = function (coords, z) {
1161
+ protoOf(ElevationFunctions).g14 = function (coords, z) {
1158
1162
  // Inline function 'kotlin.require' call
1159
- if (!this.isValidLatitude_gohohk_k$(coords.get_latitude_feukvp_k$())) {
1160
- var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.get_latitude_feukvp_k$()) + '. Must be between -85.0511 and 85.0511';
1163
+ if (!this.d14(coords.gz())) {
1164
+ var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.gz()) + '. Must be between -85.0511 and 85.0511';
1161
1165
  throw IllegalArgumentException_init_$Create$(toString(message));
1162
1166
  }
1163
1167
  // Inline function 'kotlin.require' call
1164
- if (!this.isValidLongitude_hbos7_k$(coords.get_longitude_asb1fq_k$())) {
1165
- var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.get_longitude_asb1fq_k$()) + '. Must be between -180 and 180';
1168
+ if (!this.e14(coords.hz())) {
1169
+ var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.hz()) + '. Must be between -180 and 180';
1166
1170
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1167
1171
  }
1168
1172
  // Inline function 'kotlin.require' call
1169
- if (!this.isValidZoomLevel_bzars7_k$(z)) {
1173
+ if (!this.f14(z)) {
1170
1174
  var message_1 = 'Invalid zoom level: ' + z + '. Must be between 0 and 15';
1171
1175
  throw IllegalArgumentException_init_$Create$(toString(message_1));
1172
1176
  }
1173
- var lat = this.degToRad_hya2pa_k$(coords.get_latitude_feukvp_k$());
1177
+ var lat = this.c14(coords.gz());
1174
1178
  var n = 1 << z;
1175
- var xFloat = (coords.get_longitude_asb1fq_k$() + 180.0) / 360.0 * n;
1179
+ var xFloat = (coords.hz() + 180.0) / 360.0 * n;
1176
1180
  // Inline function 'kotlin.math.tan' call
1177
1181
  var tmp = Math.tan(lat);
1178
1182
  // Inline function 'kotlin.math.cos' call
@@ -1188,27 +1192,27 @@
1188
1192
  var y = coerceIn_1(numberToInt(tmp$ret$10), 0, maxTile);
1189
1193
  return new TileCoordinatesFloat(x_0, y, xFloat, yFloat, z);
1190
1194
  };
1191
- protoOf(ElevationFunctions).toTileCoordinates_jamtrs_k$ = function (coords, z) {
1192
- var tile = this.toTileCoordinatesFloat_fctdpc_k$(coords, z);
1193
- return new TileCoordinates(tile.x_1, tile.y_1, tile.z_1);
1195
+ protoOf(ElevationFunctions).yz = function (coords, z) {
1196
+ var tile = this.g14(coords, z);
1197
+ return new TileCoordinates(tile.h14_1, tile.i14_1, tile.l14_1);
1194
1198
  };
1195
- protoOf(ElevationFunctions).toPixel_iyzwlj_k$ = function (coords, z, tileSize) {
1196
- var tile = this.toTileCoordinatesFloat_fctdpc_k$(coords, z);
1199
+ protoOf(ElevationFunctions).j13 = function (coords, z, tileSize) {
1200
+ var tile = this.g14(coords, z);
1197
1201
  // Inline function 'kotlin.math.floor' call
1198
- var x = (tile.xFloat_1 - tile.x_1) * tileSize;
1202
+ var x = (tile.j14_1 - tile.h14_1) * tileSize;
1199
1203
  var tmp$ret$0 = Math.floor(x);
1200
1204
  var px = coerceIn_1(numberToInt(tmp$ret$0), 0, tileSize - 1 | 0);
1201
1205
  // Inline function 'kotlin.math.floor' call
1202
- var x_0 = (tile.yFloat_1 - tile.y_1) * tileSize;
1206
+ var x_0 = (tile.k14_1 - tile.i14_1) * tileSize;
1203
1207
  var tmp$ret$1 = Math.floor(x_0);
1204
1208
  var py = coerceIn_1(numberToInt(tmp$ret$1), 0, tileSize - 1 | 0);
1205
- return new Pixel(new TileCoordinates(tile.x_1, tile.y_1, z), px, py);
1209
+ return new Pixel(new TileCoordinates(tile.h14_1, tile.i14_1, z), px, py);
1206
1210
  };
1207
- protoOf(ElevationFunctions).toPixelFloat_ler4xt_k$ = function (coords, z, tileSize) {
1208
- var tile = this.toTileCoordinatesFloat_fctdpc_k$(coords, z);
1209
- var px = (tile.xFloat_1 - tile.x_1) * tileSize;
1210
- var py = (tile.yFloat_1 - tile.y_1) * tileSize;
1211
- return new PixelFloat(new TileCoordinates(tile.x_1, tile.y_1, z), px, py);
1211
+ protoOf(ElevationFunctions).k13 = function (coords, z, tileSize) {
1212
+ var tile = this.g14(coords, z);
1213
+ var px = (tile.j14_1 - tile.h14_1) * tileSize;
1214
+ var py = (tile.k14_1 - tile.i14_1) * tileSize;
1215
+ return new PixelFloat(new TileCoordinates(tile.h14_1, tile.i14_1, z), px, py);
1212
1216
  };
1213
1217
  var ElevationFunctions_instance;
1214
1218
  function ElevationFunctions_getInstance() {
@@ -1217,36 +1221,43 @@
1217
1221
  function ElevationProvider_init_$Init$(config, fetcher, $this) {
1218
1222
  config = config === VOID ? new ElevationProviderConfig() : config;
1219
1223
  fetcher = fetcher === VOID ? defaultTileFetcher(config) : fetcher;
1220
- ElevationProvider.call($this, config, fetcher, null);
1224
+ ElevationProvider.call($this, config, fetcher, null, false, null);
1221
1225
  return $this;
1222
1226
  }
1223
1227
  function ElevationProvider_init_$Create$(config, fetcher) {
1224
1228
  return ElevationProvider_init_$Init$(config, fetcher, objectCreate(protoOf(ElevationProvider)));
1225
1229
  }
1226
- function ElevationProvider$calculator$slambda($f, resultContinuation) {
1227
- this.$f_1 = $f;
1230
+ function ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, $this) {
1231
+ ElevationProvider.call($this, config, fetcher, null, keepNoData, null);
1232
+ return $this;
1233
+ }
1234
+ function ElevationProvider_init_$Create$_0(config, fetcher, keepNoData) {
1235
+ return ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, objectCreate(protoOf(ElevationProvider)));
1236
+ }
1237
+ function ElevationProvider$calculator$slambda(this$0, resultContinuation) {
1238
+ this.u14_1 = this$0;
1228
1239
  CoroutineImpl.call(this, resultContinuation);
1229
1240
  }
1230
- protoOf(ElevationProvider$calculator$slambda).invoke_pvotdo_k$ = function (coords, interpolation, $completion) {
1231
- var tmp = this.create_gsta18_k$(coords, interpolation, $completion);
1232
- tmp.result_1 = Unit_instance;
1233
- tmp.exception_1 = null;
1234
- return tmp.doResume_5yljmg_k$();
1241
+ protoOf(ElevationProvider$calculator$slambda).x14 = function (coords, interpolation, $completion) {
1242
+ var tmp = this.y14(coords, interpolation, $completion);
1243
+ tmp.i7_1 = Unit_instance;
1244
+ tmp.j7_1 = null;
1245
+ return tmp.o7();
1235
1246
  };
1236
- protoOf(ElevationProvider$calculator$slambda).invoke_4tzzq6_k$ = function (p1, p2, $completion) {
1247
+ protoOf(ElevationProvider$calculator$slambda).z14 = function (p1, p2, $completion) {
1237
1248
  var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
1238
- return this.invoke_pvotdo_k$(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
1249
+ return this.x14(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
1239
1250
  };
1240
- protoOf(ElevationProvider$calculator$slambda).doResume_5yljmg_k$ = function () {
1241
- var suspendResult = this.result_1;
1251
+ protoOf(ElevationProvider$calculator$slambda).o7 = function () {
1252
+ var suspendResult = this.i7_1;
1242
1253
  $sm: do
1243
1254
  try {
1244
- var tmp = this.state_1;
1255
+ var tmp = this.g7_1;
1245
1256
  switch (tmp) {
1246
1257
  case 0:
1247
- this.exceptionState_1 = 2;
1248
- this.state_1 = 1;
1249
- suspendResult = this.$f_1.getElevation_vb6cmz_k$(this.coords_1.get_latitude_feukvp_k$(), this.coords_1.get_longitude_asb1fq_k$(), this.interpolation_1, this);
1258
+ this.h7_1 = 2;
1259
+ this.g7_1 = 1;
1260
+ suspendResult = this.u14_1.c15_1.i15(this.v14_1.gz(), this.v14_1.hz(), this.w14_1, this);
1250
1261
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1251
1262
  return suspendResult;
1252
1263
  }
@@ -1255,95 +1266,156 @@
1255
1266
  case 1:
1256
1267
  return suspendResult;
1257
1268
  case 2:
1258
- throw this.exception_1;
1269
+ throw this.j7_1;
1259
1270
  }
1260
1271
  } catch ($p) {
1261
1272
  var e = $p;
1262
- if (this.exceptionState_1 === 2) {
1273
+ if (this.h7_1 === 2) {
1263
1274
  throw e;
1264
1275
  } else {
1265
- this.state_1 = this.exceptionState_1;
1266
- this.exception_1 = e;
1276
+ this.g7_1 = this.h7_1;
1277
+ this.j7_1 = e;
1267
1278
  }
1268
1279
  }
1269
1280
  while (true);
1270
1281
  };
1271
- protoOf(ElevationProvider$calculator$slambda).create_gsta18_k$ = function (coords, interpolation, completion) {
1272
- var i = new ElevationProvider$calculator$slambda(this.$f_1, completion);
1273
- i.coords_1 = coords;
1274
- i.interpolation_1 = interpolation;
1282
+ protoOf(ElevationProvider$calculator$slambda).y14 = function (coords, interpolation, completion) {
1283
+ var i = new ElevationProvider$calculator$slambda(this.u14_1, completion);
1284
+ i.v14_1 = coords;
1285
+ i.w14_1 = interpolation;
1275
1286
  return i;
1276
1287
  };
1277
- function ElevationProvider$calculator$slambda_0($f, resultContinuation) {
1278
- var i = new ElevationProvider$calculator$slambda($f, resultContinuation);
1288
+ function ElevationProvider$calculator$slambda_0(this$0, resultContinuation) {
1289
+ var i = new ElevationProvider$calculator$slambda(this$0, resultContinuation);
1279
1290
  return constructCallableReference(function (coords, interpolation, $completion) {
1280
- return i.invoke_pvotdo_k$(coords, interpolation, $completion);
1291
+ return i.x14(coords, interpolation, $completion);
1292
+ }, 2);
1293
+ }
1294
+ function ElevationProvider$calculator$slambda_1(resultContinuation) {
1295
+ CoroutineImpl.call(this, resultContinuation);
1296
+ }
1297
+ protoOf(ElevationProvider$calculator$slambda_1).x14 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
1298
+ var tmp = this.y14(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
1299
+ tmp.i7_1 = Unit_instance;
1300
+ tmp.j7_1 = null;
1301
+ return tmp.o7();
1302
+ };
1303
+ protoOf(ElevationProvider$calculator$slambda_1).z14 = function (p1, p2, $completion) {
1304
+ var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
1305
+ return this.x14(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
1306
+ };
1307
+ protoOf(ElevationProvider$calculator$slambda_1).o7 = function () {
1308
+ var suspendResult = this.i7_1;
1309
+ $sm: do
1310
+ try {
1311
+ var tmp = this.g7_1;
1312
+ if (tmp === 0) {
1313
+ this.h7_1 = 1;
1314
+ return NaN;
1315
+ } else if (tmp === 1) {
1316
+ throw this.j7_1;
1317
+ }
1318
+ } catch ($p) {
1319
+ var e = $p;
1320
+ throw e;
1321
+ }
1322
+ while (true);
1323
+ };
1324
+ protoOf(ElevationProvider$calculator$slambda_1).y14 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
1325
+ var i = new ElevationProvider$calculator$slambda_1(completion);
1326
+ i.r15_1 = _unused_var__etf5q3;
1327
+ i.s15_1 = _unused_var__etf5q3_0;
1328
+ return i;
1329
+ };
1330
+ function ElevationProvider$calculator$slambda_2(resultContinuation) {
1331
+ var i = new ElevationProvider$calculator$slambda_1(resultContinuation);
1332
+ return constructCallableReference(function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
1333
+ return i.x14(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
1281
1334
  }, 2);
1282
1335
  }
1283
- function ElevationProvider(config, fetcher, fallback) {
1284
- this.config_1 = config;
1285
- this.fetcher_1 = fetcher;
1286
- this.fallback_1 = fallback;
1287
- var containsArg = this.config_1.zoomLevel_1;
1336
+ function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel) {
1337
+ this.a15_1 = config;
1338
+ this.b15_1 = fetcher;
1339
+ this.c15_1 = fallback;
1340
+ this.d15_1 = keepNoData;
1341
+ this.e15_1 = surfaceModel;
1288
1342
  // Inline function 'kotlin.require' call
1289
- if (!(0 <= containsArg ? containsArg <= 15 : false)) {
1290
- var message = 'Invalid zoom level: ' + this.config_1.zoomLevel_1 + '. Must be an integer between 0 and 15';
1343
+ if (!ElevationFunctions_instance.f14(this.a15_1.t15_1)) {
1344
+ var message = 'Invalid zoom level: ' + this.a15_1.t15_1 + '. Must be an integer between ' + '0 and 15';
1291
1345
  throw IllegalArgumentException_init_$Create$(toString(message));
1292
1346
  }
1293
1347
  // Inline function 'kotlin.require' call
1294
- if (!(this.config_1.cacheSize_1 > 0)) {
1295
- var message_0 = 'Invalid cache size: ' + this.config_1.cacheSize_1 + '. Must be a positive integer';
1348
+ if (!(this.a15_1.u15_1 > 0)) {
1349
+ var message_0 = 'Invalid cache size: ' + this.a15_1.u15_1 + '. Must be a positive integer';
1296
1350
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1297
1351
  }
1298
1352
  // Inline function 'kotlin.require' call
1299
- if (!(this.config_1.tileSize_1 > 0 && (this.config_1.tileSize_1 & (this.config_1.tileSize_1 - 1 | 0)) === 0)) {
1300
- var message_1 = 'Invalid tile size: ' + this.config_1.tileSize_1 + '. Must be a positive power of 2';
1353
+ if (!(this.a15_1.w15_1 > 0 && (this.a15_1.w15_1 & (this.a15_1.w15_1 - 1 | 0)) === 0)) {
1354
+ var message_1 = 'Invalid tile size: ' + this.a15_1.w15_1 + '. Must be a positive power of 2';
1301
1355
  throw IllegalArgumentException_init_$Create$(toString(message_1));
1302
1356
  }
1303
1357
  // Inline function 'kotlin.require' call
1304
- if (!(this.config_1.maxRequestsPerSecond_1 >= 0)) {
1305
- var message_2 = 'Invalid maxRequestsPerSecond: ' + this.config_1.maxRequestsPerSecond_1 + '. Must be 0 (no limit) or positive';
1358
+ if (!(this.a15_1.z15_1 >= 0)) {
1359
+ var message_2 = 'Invalid maxRequestsPerSecond: ' + this.a15_1.z15_1 + '. Must be 0 (no limit) or positive';
1306
1360
  throw IllegalArgumentException_init_$Create$(toString(message_2));
1307
1361
  }
1308
- this.tileManager_1 = new TileManager(this.config_1.tileUrlTemplate_1, this.config_1.cacheSize_1, this.fetcher_1);
1362
+ this.f15_1 = new TileManager(this.a15_1.v15_1, this.a15_1.u15_1, this.b15_1);
1309
1363
  var tmp = this;
1310
- var tmp0_safe_receiver = this.fallback_1;
1311
1364
  var tmp_0;
1312
- if (tmp0_safe_receiver == null) {
1313
- tmp_0 = null;
1365
+ if (!(this.c15_1 == null)) {
1366
+ tmp_0 = ElevationProvider$calculator$slambda_0(this, null);
1367
+ } else if (this.d15_1) {
1368
+ tmp_0 = ElevationProvider$calculator$slambda_2(null);
1314
1369
  } else {
1315
- // Inline function 'kotlin.let' call
1316
- tmp_0 = ElevationProvider$calculator$slambda_0(tmp0_safe_receiver, null);
1370
+ tmp_0 = null;
1317
1371
  }
1318
- tmp.calculator_1 = new ElevationCalculator(this.tileManager_1, this.config_1.tileSize_1, tmp_0);
1319
- this.batchCalculator_1 = new BatchCalculator(this.calculator_1);
1372
+ tmp.g15_1 = new ElevationCalculator(this.f15_1, this.a15_1.w15_1, tmp_0);
1373
+ this.h15_1 = new BatchCalculator(this.g15_1);
1320
1374
  }
1321
- protoOf(ElevationProvider).withFallback_7synod_k$ = function (other) {
1322
- return new ElevationProvider(this.config_1, this.fetcher_1, other);
1375
+ protoOf(ElevationProvider).a16 = function (other) {
1376
+ // Inline function 'kotlin.require' call
1377
+ if (!!this.d15_1) {
1378
+ var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
1379
+ throw IllegalArgumentException_init_$Create$(toString(message));
1380
+ }
1381
+ return new ElevationProvider(this.a15_1, this.b15_1, other, false, this.e15_1);
1323
1382
  };
1324
- protoOf(ElevationProvider).get_attribution_8rpdsm_k$ = function () {
1325
- return this.config_1.attribution_1;
1383
+ protoOf(ElevationProvider).b16 = function (surface) {
1384
+ // Inline function 'kotlin.require' call
1385
+ if (!(surface == null || surface.d15_1)) {
1386
+ var message = 'a surface model must keep its no-data as NaN';
1387
+ throw IllegalArgumentException_init_$Create$(toString(message));
1388
+ }
1389
+ // Inline function 'kotlin.require' call
1390
+ if (!!this.d15_1) {
1391
+ var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
1392
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1393
+ }
1394
+ return new ElevationProvider(this.a15_1, this.b15_1, this.c15_1, false, surface);
1395
+ };
1396
+ protoOf(ElevationProvider).c16 = function () {
1397
+ return this.a15_1.x15_1;
1326
1398
  };
1327
- protoOf(ElevationProvider).getElevation_vb6cmz_k$ = function (latitude, longitude, interpolation, $completion) {
1328
- return this.calculator_1.getElevation_e117b3_k$(new LatLon(latitude, longitude), this.config_1.zoomLevel_1, interpolation, $completion);
1399
+ protoOf(ElevationProvider).i15 = function (latitude, longitude, interpolation, $completion) {
1400
+ return this.g15_1.fz(new LatLon(latitude, longitude), this.a15_1.t15_1, interpolation, $completion);
1329
1401
  };
1330
- protoOf(ElevationProvider).setElevations_opglu7_k$ = function (coordinates, interpolation, $completion) {
1331
- return this.batchCalculator_1.setElevations$default_qzn313_k$(coordinates, this.config_1.zoomLevel_1, interpolation, VOID, $completion);
1402
+ protoOf(ElevationProvider).d16 = function (coordinates, interpolation, $completion) {
1403
+ return this.h15_1.u10(coordinates, this.a15_1.t15_1, interpolation, VOID, $completion);
1332
1404
  };
1333
- protoOf(ElevationProvider).setElevations$default_vdh3yj_k$ = function (coordinates, interpolation, $completion, $super) {
1405
+ protoOf(ElevationProvider).e16 = function (coordinates, interpolation, $completion, $super) {
1334
1406
  interpolation = interpolation === VOID ? true : interpolation;
1335
- return $super === VOID ? this.setElevations_opglu7_k$(coordinates, interpolation, $completion) : $super.setElevations_opglu7_k$.call(this, coordinates, interpolation, $completion);
1407
+ return $super === VOID ? this.d16(coordinates, interpolation, $completion) : $super.d16.call(this, coordinates, interpolation, $completion);
1336
1408
  };
1337
- protoOf(ElevationProvider).getElevationsAlong_o6hmac_k$ = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
1338
- return this.batchCalculator_1.getElevationsAlong_4qke12_k$(path, this.config_1.zoomLevel_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
1409
+ protoOf(ElevationProvider).f16 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
1410
+ return this.h15_1.y10(path, this.a15_1.t15_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
1339
1411
  };
1340
1412
  function defaultTileFetcher(config) {
1341
- if (config.encoding_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.maxRequestsPerSecond_1 === 0) {
1413
+ if (config.y15_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.z15_1 === 0) {
1342
1414
  return fetchAndDecodeTile$ref_1();
1343
1415
  }
1344
- var bytes = pacedTileBytesFetcher(config.maxRequestsPerSecond_1);
1416
+ var bytes = pacedTileBytesFetcher(config.z15_1);
1345
1417
  var tmp;
1346
- switch (config.encoding_1.ordinal_1) {
1418
+ switch (config.y15_1.v1_1) {
1347
1419
  case 0:
1348
1420
  tmp = defaultTileFetcher$slambda_0(bytes, null);
1349
1421
  break;
@@ -1359,35 +1431,35 @@
1359
1431
  function fetchAndDecodeTile$ref() {
1360
1432
  KFunctionImpl.call(this, 1, 2, 2);
1361
1433
  }
1362
- protoOf(fetchAndDecodeTile$ref).invoke_fa3hvc_k$ = function (p0, $completion) {
1434
+ protoOf(fetchAndDecodeTile$ref).j16 = function (p0, $completion) {
1363
1435
  return fetchAndDecodeTile(p0, $completion);
1364
1436
  };
1365
- protoOf(fetchAndDecodeTile$ref).invoke_qns8j1_k$ = function (p1, $completion) {
1366
- return this.invoke_fa3hvc_k$((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1437
+ protoOf(fetchAndDecodeTile$ref).w7 = function (p1, $completion) {
1438
+ return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1367
1439
  };
1368
1440
  function defaultTileFetcher$slambda($bytes, resultContinuation) {
1369
- this.$bytes_1 = $bytes;
1441
+ this.s16_1 = $bytes;
1370
1442
  CoroutineImpl.call(this, resultContinuation);
1371
1443
  }
1372
- protoOf(defaultTileFetcher$slambda).invoke_fa3hvc_k$ = function (url, $completion) {
1373
- var tmp = this.create_99ct7z_k$(url, $completion);
1374
- tmp.result_1 = Unit_instance;
1375
- tmp.exception_1 = null;
1376
- return tmp.doResume_5yljmg_k$();
1444
+ protoOf(defaultTileFetcher$slambda).j16 = function (url, $completion) {
1445
+ var tmp = this.u16(url, $completion);
1446
+ tmp.i7_1 = Unit_instance;
1447
+ tmp.j7_1 = null;
1448
+ return tmp.o7();
1377
1449
  };
1378
- protoOf(defaultTileFetcher$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
1379
- return this.invoke_fa3hvc_k$((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1450
+ protoOf(defaultTileFetcher$slambda).w7 = function (p1, $completion) {
1451
+ return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1380
1452
  };
1381
- protoOf(defaultTileFetcher$slambda).doResume_5yljmg_k$ = function () {
1382
- var suspendResult = this.result_1;
1453
+ protoOf(defaultTileFetcher$slambda).o7 = function () {
1454
+ var suspendResult = this.i7_1;
1383
1455
  $sm: do
1384
1456
  try {
1385
- var tmp = this.state_1;
1457
+ var tmp = this.g7_1;
1386
1458
  switch (tmp) {
1387
1459
  case 0:
1388
- this.exceptionState_1 = 3;
1389
- this.state_1 = 1;
1390
- suspendResult = this.$bytes_1(this.url_1, this);
1460
+ this.h7_1 = 3;
1461
+ this.g7_1 = 1;
1462
+ suspendResult = this.s16_1(this.t16_1, this);
1391
1463
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1392
1464
  return suspendResult;
1393
1465
  }
@@ -1395,8 +1467,8 @@
1395
1467
  continue $sm;
1396
1468
  case 1:
1397
1469
  var ARGUMENT = suspendResult;
1398
- this.state_1 = 2;
1399
- suspendResult = decodeTileBytes(ARGUMENT, this.url_1, this);
1470
+ this.g7_1 = 2;
1471
+ suspendResult = decodeTileBytes(ARGUMENT, this.t16_1, this);
1400
1472
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1401
1473
  return suspendResult;
1402
1474
  }
@@ -1405,54 +1477,54 @@
1405
1477
  case 2:
1406
1478
  return suspendResult;
1407
1479
  case 3:
1408
- throw this.exception_1;
1480
+ throw this.j7_1;
1409
1481
  }
1410
1482
  } catch ($p) {
1411
1483
  var e = $p;
1412
- if (this.exceptionState_1 === 3) {
1484
+ if (this.h7_1 === 3) {
1413
1485
  throw e;
1414
1486
  } else {
1415
- this.state_1 = this.exceptionState_1;
1416
- this.exception_1 = e;
1487
+ this.g7_1 = this.h7_1;
1488
+ this.j7_1 = e;
1417
1489
  }
1418
1490
  }
1419
1491
  while (true);
1420
1492
  };
1421
- protoOf(defaultTileFetcher$slambda).create_99ct7z_k$ = function (url, completion) {
1422
- var i = new defaultTileFetcher$slambda(this.$bytes_1, completion);
1423
- i.url_1 = url;
1493
+ protoOf(defaultTileFetcher$slambda).u16 = function (url, completion) {
1494
+ var i = new defaultTileFetcher$slambda(this.s16_1, completion);
1495
+ i.t16_1 = url;
1424
1496
  return i;
1425
1497
  };
1426
1498
  function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
1427
1499
  var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
1428
1500
  return constructCallableReference(function (url, $completion) {
1429
- return i.invoke_fa3hvc_k$(url, $completion);
1501
+ return i.j16(url, $completion);
1430
1502
  }, 1);
1431
1503
  }
1432
1504
  function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
1433
- this.$bytes_1 = $bytes;
1434
- this.$config_1 = $config;
1505
+ this.d17_1 = $bytes;
1506
+ this.e17_1 = $config;
1435
1507
  CoroutineImpl.call(this, resultContinuation);
1436
1508
  }
1437
- protoOf(defaultTileFetcher$slambda_1).invoke_fa3hvc_k$ = function (url, $completion) {
1438
- var tmp = this.create_99ct7z_k$(url, $completion);
1439
- tmp.result_1 = Unit_instance;
1440
- tmp.exception_1 = null;
1441
- return tmp.doResume_5yljmg_k$();
1509
+ protoOf(defaultTileFetcher$slambda_1).j16 = function (url, $completion) {
1510
+ var tmp = this.u16(url, $completion);
1511
+ tmp.i7_1 = Unit_instance;
1512
+ tmp.j7_1 = null;
1513
+ return tmp.o7();
1442
1514
  };
1443
- protoOf(defaultTileFetcher$slambda_1).invoke_qns8j1_k$ = function (p1, $completion) {
1444
- return this.invoke_fa3hvc_k$((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1515
+ protoOf(defaultTileFetcher$slambda_1).w7 = function (p1, $completion) {
1516
+ return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1445
1517
  };
1446
- protoOf(defaultTileFetcher$slambda_1).doResume_5yljmg_k$ = function () {
1447
- var suspendResult = this.result_1;
1518
+ protoOf(defaultTileFetcher$slambda_1).o7 = function () {
1519
+ var suspendResult = this.i7_1;
1448
1520
  $sm: do
1449
1521
  try {
1450
- var tmp = this.state_1;
1522
+ var tmp = this.g7_1;
1451
1523
  switch (tmp) {
1452
1524
  case 0:
1453
- this.exceptionState_1 = 2;
1454
- this.state_1 = 1;
1455
- suspendResult = this.$bytes_1(this.url_1, this);
1525
+ this.h7_1 = 2;
1526
+ this.g7_1 = 1;
1527
+ suspendResult = this.d17_1(this.f17_1, this);
1456
1528
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1457
1529
  return suspendResult;
1458
1530
  }
@@ -1460,30 +1532,30 @@
1460
1532
  continue $sm;
1461
1533
  case 1:
1462
1534
  var ARGUMENT = suspendResult;
1463
- return decodeBil32Tile(ARGUMENT, this.$config_1.tileSize_1, this.url_1);
1535
+ return decodeBil32Tile(ARGUMENT, this.e17_1.w15_1, this.f17_1);
1464
1536
  case 2:
1465
- throw this.exception_1;
1537
+ throw this.j7_1;
1466
1538
  }
1467
1539
  } catch ($p) {
1468
1540
  var e = $p;
1469
- if (this.exceptionState_1 === 2) {
1541
+ if (this.h7_1 === 2) {
1470
1542
  throw e;
1471
1543
  } else {
1472
- this.state_1 = this.exceptionState_1;
1473
- this.exception_1 = e;
1544
+ this.g7_1 = this.h7_1;
1545
+ this.j7_1 = e;
1474
1546
  }
1475
1547
  }
1476
1548
  while (true);
1477
1549
  };
1478
- protoOf(defaultTileFetcher$slambda_1).create_99ct7z_k$ = function (url, completion) {
1479
- var i = new defaultTileFetcher$slambda_1(this.$bytes_1, this.$config_1, completion);
1480
- i.url_1 = url;
1550
+ protoOf(defaultTileFetcher$slambda_1).u16 = function (url, completion) {
1551
+ var i = new defaultTileFetcher$slambda_1(this.d17_1, this.e17_1, completion);
1552
+ i.f17_1 = url;
1481
1553
  return i;
1482
1554
  };
1483
1555
  function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
1484
1556
  var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
1485
1557
  return constructCallableReference(function (url, $completion) {
1486
- return i.invoke_fa3hvc_k$(url, $completion);
1558
+ return i.j16(url, $completion);
1487
1559
  }, 1);
1488
1560
  }
1489
1561
  function defaultTileFetcher$ref() {
@@ -1499,38 +1571,38 @@
1499
1571
  attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
1500
1572
  encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
1501
1573
  maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
1502
- this.zoomLevel_1 = zoomLevel;
1503
- this.cacheSize_1 = cacheSize;
1504
- this.tileUrlTemplate_1 = tileUrlTemplate;
1505
- this.tileSize_1 = tileSize;
1506
- this.attribution_1 = attribution;
1507
- this.encoding_1 = encoding;
1508
- this.maxRequestsPerSecond_1 = maxRequestsPerSecond;
1509
- }
1510
- protoOf(ElevationProviderConfig).copy_u5v3pu_k$ = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
1574
+ this.t15_1 = zoomLevel;
1575
+ this.u15_1 = cacheSize;
1576
+ this.v15_1 = tileUrlTemplate;
1577
+ this.w15_1 = tileSize;
1578
+ this.x15_1 = attribution;
1579
+ this.y15_1 = encoding;
1580
+ this.z15_1 = maxRequestsPerSecond;
1581
+ }
1582
+ protoOf(ElevationProviderConfig).g17 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
1511
1583
  return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
1512
1584
  };
1513
- protoOf(ElevationProviderConfig).copy$default_ptnzjy_k$ = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
1514
- zoomLevel = zoomLevel === VOID ? this.zoomLevel_1 : zoomLevel;
1515
- cacheSize = cacheSize === VOID ? this.cacheSize_1 : cacheSize;
1516
- tileUrlTemplate = tileUrlTemplate === VOID ? this.tileUrlTemplate_1 : tileUrlTemplate;
1517
- tileSize = tileSize === VOID ? this.tileSize_1 : tileSize;
1518
- attribution = attribution === VOID ? this.attribution_1 : attribution;
1519
- encoding = encoding === VOID ? this.encoding_1 : encoding;
1520
- maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.maxRequestsPerSecond_1 : maxRequestsPerSecond;
1521
- return $super === VOID ? this.copy_u5v3pu_k$(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.copy_u5v3pu_k$.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
1585
+ protoOf(ElevationProviderConfig).h17 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
1586
+ zoomLevel = zoomLevel === VOID ? this.t15_1 : zoomLevel;
1587
+ cacheSize = cacheSize === VOID ? this.u15_1 : cacheSize;
1588
+ tileUrlTemplate = tileUrlTemplate === VOID ? this.v15_1 : tileUrlTemplate;
1589
+ tileSize = tileSize === VOID ? this.w15_1 : tileSize;
1590
+ attribution = attribution === VOID ? this.x15_1 : attribution;
1591
+ encoding = encoding === VOID ? this.y15_1 : encoding;
1592
+ maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.z15_1 : maxRequestsPerSecond;
1593
+ return $super === VOID ? this.g17(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.g17.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
1522
1594
  };
1523
1595
  protoOf(ElevationProviderConfig).toString = function () {
1524
- return 'ElevationProviderConfig(zoomLevel=' + this.zoomLevel_1 + ', cacheSize=' + this.cacheSize_1 + ', tileUrlTemplate=' + this.tileUrlTemplate_1 + ', tileSize=' + this.tileSize_1 + ', attribution=' + this.attribution_1.toString() + ', encoding=' + this.encoding_1.toString() + ', maxRequestsPerSecond=' + this.maxRequestsPerSecond_1 + ')';
1596
+ return 'ElevationProviderConfig(zoomLevel=' + this.t15_1 + ', cacheSize=' + this.u15_1 + ', tileUrlTemplate=' + this.v15_1 + ', tileSize=' + this.w15_1 + ', attribution=' + this.x15_1.toString() + ', encoding=' + this.y15_1.toString() + ', maxRequestsPerSecond=' + this.z15_1 + ')';
1525
1597
  };
1526
1598
  protoOf(ElevationProviderConfig).hashCode = function () {
1527
- var result = this.zoomLevel_1;
1528
- result = imul(result, 31) + this.cacheSize_1 | 0;
1529
- result = imul(result, 31) + getStringHashCode(this.tileUrlTemplate_1) | 0;
1530
- result = imul(result, 31) + this.tileSize_1 | 0;
1531
- result = imul(result, 31) + this.attribution_1.hashCode() | 0;
1532
- result = imul(result, 31) + this.encoding_1.hashCode() | 0;
1533
- result = imul(result, 31) + this.maxRequestsPerSecond_1 | 0;
1599
+ var result = this.t15_1;
1600
+ result = imul(result, 31) + this.u15_1 | 0;
1601
+ result = imul(result, 31) + getStringHashCode(this.v15_1) | 0;
1602
+ result = imul(result, 31) + this.w15_1 | 0;
1603
+ result = imul(result, 31) + this.x15_1.hashCode() | 0;
1604
+ result = imul(result, 31) + this.y15_1.hashCode() | 0;
1605
+ result = imul(result, 31) + this.z15_1 | 0;
1534
1606
  return result;
1535
1607
  };
1536
1608
  protoOf(ElevationProviderConfig).equals = function (other) {
@@ -1538,33 +1610,33 @@
1538
1610
  return true;
1539
1611
  if (!(other instanceof ElevationProviderConfig))
1540
1612
  return false;
1541
- if (!(this.zoomLevel_1 === other.zoomLevel_1))
1613
+ if (!(this.t15_1 === other.t15_1))
1542
1614
  return false;
1543
- if (!(this.cacheSize_1 === other.cacheSize_1))
1615
+ if (!(this.u15_1 === other.u15_1))
1544
1616
  return false;
1545
- if (!(this.tileUrlTemplate_1 === other.tileUrlTemplate_1))
1617
+ if (!(this.v15_1 === other.v15_1))
1546
1618
  return false;
1547
- if (!(this.tileSize_1 === other.tileSize_1))
1619
+ if (!(this.w15_1 === other.w15_1))
1548
1620
  return false;
1549
- if (!this.attribution_1.equals(other.attribution_1))
1621
+ if (!this.x15_1.equals(other.x15_1))
1550
1622
  return false;
1551
- if (!this.encoding_1.equals(other.encoding_1))
1623
+ if (!this.y15_1.equals(other.y15_1))
1552
1624
  return false;
1553
- if (!(this.maxRequestsPerSecond_1 === other.maxRequestsPerSecond_1))
1625
+ if (!(this.z15_1 === other.z15_1))
1554
1626
  return false;
1555
1627
  return true;
1556
1628
  };
1557
1629
  function Attribution(text, url) {
1558
1630
  url = url === VOID ? null : url;
1559
- this.text_1 = text;
1560
- this.url_1 = url;
1631
+ this.i17_1 = text;
1632
+ this.j17_1 = url;
1561
1633
  }
1562
1634
  protoOf(Attribution).toString = function () {
1563
- return 'Attribution(text=' + this.text_1 + ', url=' + this.url_1 + ')';
1635
+ return 'Attribution(text=' + this.i17_1 + ', url=' + this.j17_1 + ')';
1564
1636
  };
1565
1637
  protoOf(Attribution).hashCode = function () {
1566
- var result = getStringHashCode(this.text_1);
1567
- result = imul(result, 31) + (this.url_1 == null ? 0 : getStringHashCode(this.url_1)) | 0;
1638
+ var result = getStringHashCode(this.i17_1);
1639
+ result = imul(result, 31) + (this.j17_1 == null ? 0 : getStringHashCode(this.j17_1)) | 0;
1568
1640
  return result;
1569
1641
  };
1570
1642
  protoOf(Attribution).equals = function (other) {
@@ -1572,9 +1644,9 @@
1572
1644
  return true;
1573
1645
  if (!(other instanceof Attribution))
1574
1646
  return false;
1575
- if (!(this.text_1 === other.text_1))
1647
+ if (!(this.i17_1 === other.i17_1))
1576
1648
  return false;
1577
- if (!(this.url_1 == other.url_1))
1649
+ if (!(this.j17_1 == other.j17_1))
1578
1650
  return false;
1579
1651
  return true;
1580
1652
  };
@@ -1584,28 +1656,28 @@
1584
1656
  }
1585
1657
  function ElevationSmoother() {
1586
1658
  }
1587
- protoOf(ElevationSmoother).smooth_j2mgq7_k$ = function (points, windowSize) {
1588
- if (points.get_size_woubt6_k$() < 3)
1659
+ protoOf(ElevationSmoother).v10 = function (points, windowSize) {
1660
+ if (points.o() < 3)
1589
1661
  return points;
1590
1662
  // Inline function 'kotlin.require' call
1591
1663
  if (!(windowSize > 0.0)) {
1592
1664
  var message = 'Invalid window size: ' + formatWindow(ElevationSmoother_instance, windowSize) + '. Must be positive';
1593
1665
  throw IllegalArgumentException_init_$Create$(toString(message));
1594
1666
  }
1595
- var distances = Distance_instance.cumulativeDistances_92iok5_k$(points);
1667
+ var distances = Distance_instance.i11(points);
1596
1668
  var tmp = 0;
1597
- var tmp_0 = points.get_size_woubt6_k$();
1669
+ var tmp_0 = points.o();
1598
1670
  var tmp_1 = new Float64Array(tmp_0);
1599
1671
  while (tmp < tmp_0) {
1600
1672
  var tmp_2 = tmp;
1601
- tmp_1[tmp_2] = points.get_c1px32_k$(tmp_2).get_elevation_8fwyb8_k$();
1673
+ tmp_1[tmp_2] = points.p(tmp_2).e11();
1602
1674
  tmp = tmp + 1 | 0;
1603
1675
  }
1604
1676
  var elevations = tmp_1;
1605
- var smoothed = this.smoothProfile_6l6agp_k$(distances, elevations, windowSize);
1677
+ var smoothed = this.k17(distances, elevations, windowSize);
1606
1678
  // Inline function 'kotlin.collections.List' call
1607
1679
  // Inline function 'kotlin.collections.MutableList' call
1608
- var size = points.get_size_woubt6_k$();
1680
+ var size = points.o();
1609
1681
  var list = ArrayList_init_$Create$_0(size);
1610
1682
  // Inline function 'kotlin.repeat' call
1611
1683
  var inductionVariable = 0;
@@ -1613,13 +1685,13 @@
1613
1685
  do {
1614
1686
  var index = inductionVariable;
1615
1687
  inductionVariable = inductionVariable + 1 | 0;
1616
- var tmp$ret$7 = new LatLonElevation(points.get_c1px32_k$(index).get_latitude_feukvp_k$(), points.get_c1px32_k$(index).get_longitude_asb1fq_k$(), smoothed[index]);
1617
- list.add_utx5q5_k$(tmp$ret$7);
1688
+ var tmp$ret$7 = new LatLonElevation(points.p(index).gz(), points.p(index).hz(), smoothed[index]);
1689
+ list.k(tmp$ret$7);
1618
1690
  }
1619
1691
  while (inductionVariable < size);
1620
1692
  return list;
1621
1693
  };
1622
- protoOf(ElevationSmoother).smoothProfile_6l6agp_k$ = function (distanceM, elevationM, windowSize) {
1694
+ protoOf(ElevationSmoother).k17 = function (distanceM, elevationM, windowSize) {
1623
1695
  // Inline function 'kotlin.require' call
1624
1696
  if (!(distanceM.length === elevationM.length)) {
1625
1697
  var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
@@ -1702,9 +1774,6 @@
1702
1774
  function ElevationSmoother_getInstance() {
1703
1775
  return ElevationSmoother_instance;
1704
1776
  }
1705
- function ignWmsTemplate($this, layer, tileSize) {
1706
- return 'https://data.geopf.fr/wms-r/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=' + layer + '&STYLES=normal' + ('&CRS=EPSG:4326&BBOX={bbox}&WIDTH=' + tileSize + '&HEIGHT=' + tileSize + '&FORMAT=image%2Fx-bil%3Bbits%3D32');
1707
- }
1708
1777
  var static_init_called_0;
1709
1778
  function static_init_0() {
1710
1779
  if (static_init_called_0)
@@ -1721,33 +1790,30 @@
1721
1790
  var ElevationSource_IGN_LIDAR_HD_instance;
1722
1791
  function Companion() {
1723
1792
  Companion_instance_0 = this;
1724
- this.DEFAULT_1 = ElevationSource_MAPTERHORN_getInstance();
1725
- this.IGN_TILE_SIZE_1 = 256;
1726
- this.IGN_WMS_URL_1 = 'https://data.geopf.fr/wms-r/wms';
1727
- this.IGN_LIDAR_HD_MNT_LAYER_1 = 'IGNF_LIDAR-HD_MNT_ELEVATION.ELEVATIONGRIDCOVERAGE.WGS84G';
1793
+ this.l17_1 = ElevationSource_MAPTERHORN_getInstance();
1728
1794
  }
1729
- protoOf(Companion).get_ids_18j3qp_k$ = function () {
1795
+ protoOf(Companion).m17 = function () {
1730
1796
  // Inline function 'kotlin.collections.map' call
1731
1797
  var this_0 = get_entries();
1732
1798
  // Inline function 'kotlin.collections.mapTo' call
1733
1799
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1734
- var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
1735
- while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1736
- var item = _iterator__ex2g4s.next_20eer_k$();
1737
- var tmp$ret$2 = item.id_1;
1738
- destination.add_utx5q5_k$(tmp$ret$2);
1800
+ var _iterator__ex2g4s = this_0.l();
1801
+ while (_iterator__ex2g4s.m()) {
1802
+ var item = _iterator__ex2g4s.n();
1803
+ var tmp$ret$2 = item.p17_1;
1804
+ destination.k(tmp$ret$2);
1739
1805
  }
1740
1806
  return destination;
1741
1807
  };
1742
- protoOf(Companion).byId_8gmd94_k$ = function (id) {
1808
+ protoOf(Companion).q17 = function (id) {
1743
1809
  var tmp0 = get_entries();
1744
1810
  var tmp$ret$0;
1745
1811
  $l$block: {
1746
1812
  // Inline function 'kotlin.collections.firstOrNull' call
1747
- var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
1748
- while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1749
- var element = _iterator__ex2g4s.next_20eer_k$();
1750
- if (element.id_1 === id) {
1813
+ var _iterator__ex2g4s = tmp0.l();
1814
+ while (_iterator__ex2g4s.m()) {
1815
+ var element = _iterator__ex2g4s.n();
1816
+ if (element.p17_1 === id) {
1751
1817
  tmp$ret$0 = element;
1752
1818
  break $l$block;
1753
1819
  }
@@ -1757,7 +1823,7 @@
1757
1823
  var tmp0_elvis_lhs = tmp$ret$0;
1758
1824
  var tmp;
1759
1825
  if (tmp0_elvis_lhs == null) {
1760
- throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.get_ids_18j3qp_k$()));
1826
+ throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.m17()));
1761
1827
  } else {
1762
1828
  tmp = tmp0_elvis_lhs;
1763
1829
  }
@@ -1781,11 +1847,11 @@
1781
1847
  var $ENTRIES;
1782
1848
  function ElevationSource(name, ordinal, id) {
1783
1849
  Enum.call(this, name, ordinal);
1784
- this.id_1 = id;
1850
+ this.p17_1 = id;
1785
1851
  }
1786
- protoOf(ElevationSource).get_fallback_j7pnit_k$ = function () {
1852
+ protoOf(ElevationSource).r17 = function () {
1787
1853
  var tmp;
1788
- switch (this.ordinal_1) {
1854
+ switch (this.v1_1) {
1789
1855
  case 0:
1790
1856
  tmp = null;
1791
1857
  break;
@@ -1798,14 +1864,14 @@
1798
1864
  }
1799
1865
  return tmp;
1800
1866
  };
1801
- protoOf(ElevationSource).get_defaultZoomLevel_a8cjy1_k$ = function () {
1867
+ protoOf(ElevationSource).s17 = function () {
1802
1868
  var tmp;
1803
- switch (this.ordinal_1) {
1869
+ switch (this.v1_1) {
1804
1870
  case 0:
1805
- tmp = (new ElevationProviderConfig()).zoomLevel_1;
1871
+ tmp = (new ElevationProviderConfig()).t15_1;
1806
1872
  break;
1807
1873
  case 1:
1808
- tmp = 15;
1874
+ tmp = IgnLidarHdLayer_MNT_getInstance().s17();
1809
1875
  break;
1810
1876
  default:
1811
1877
  noWhenBranchMatchedException();
@@ -1813,18 +1879,15 @@
1813
1879
  }
1814
1880
  return tmp;
1815
1881
  };
1816
- protoOf(ElevationSource).config_nlp9c9_k$ = function (zoomLevel) {
1882
+ protoOf(ElevationSource).w17 = function (zoomLevel) {
1817
1883
  var tmp;
1818
- switch (this.ordinal_1) {
1884
+ switch (this.v1_1) {
1819
1885
  case 0:
1820
- tmp = new ElevationProviderConfig(zoomLevel == null ? this.get_defaultZoomLevel_a8cjy1_k$() : zoomLevel);
1886
+ tmp = new ElevationProviderConfig(zoomLevel == null ? this.s17() : zoomLevel);
1821
1887
  break;
1822
1888
  case 1:
1823
- var tmp3_zoomLevel = zoomLevel == null ? this.get_defaultZoomLevel_a8cjy1_k$() : zoomLevel;
1824
- var tmp5_tileUrlTemplate = ignWmsTemplate(Companion_getInstance(), 'IGNF_LIDAR-HD_MNT_ELEVATION.ELEVATIONGRIDCOVERAGE.WGS84G', 256);
1825
- var tmp6_encoding = TileEncoding_BIL32_getInstance();
1826
- var tmp7_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD MNT, Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
1827
- tmp = new ElevationProviderConfig(tmp3_zoomLevel, VOID, tmp5_tileUrlTemplate, 256, tmp7_attribution, tmp6_encoding, 20);
1889
+ var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
1890
+ tmp = tmp_0.w17(zoomLevel == null ? this.s17() : zoomLevel);
1828
1891
  break;
1829
1892
  default:
1830
1893
  noWhenBranchMatchedException();
@@ -1841,23 +1904,31 @@
1841
1904
  tmp = fetcherFor;
1842
1905
  }
1843
1906
  fetcherFor = tmp;
1844
- var config = _this__u8e3s4.config_nlp9c9_k$(zoomLevel);
1907
+ var config = _this__u8e3s4.w17(zoomLevel);
1845
1908
  var primary = ElevationProvider_init_$Create$(config, fetcherFor(config));
1846
- var tmp0_elvis_lhs = _this__u8e3s4.get_fallback_j7pnit_k$();
1909
+ var tmp0_safe_receiver = _this__u8e3s4.r17();
1847
1910
  var tmp_0;
1848
- if (tmp0_elvis_lhs == null) {
1849
- return primary;
1911
+ if (tmp0_safe_receiver == null) {
1912
+ tmp_0 = null;
1913
+ } else {
1914
+ // Inline function 'kotlin.let' call
1915
+ tmp_0 = primary.a16(provider(tmp0_safe_receiver, null, fetcherFor));
1916
+ }
1917
+ var tmp1_elvis_lhs = tmp_0;
1918
+ var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
1919
+ var tmp_1;
1920
+ if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.t15_1 === IgnLidarHdLayer_MNS_getInstance().s17()) {
1921
+ tmp_1 = withFallback.b16(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
1850
1922
  } else {
1851
- tmp_0 = tmp0_elvis_lhs;
1923
+ tmp_1 = withFallback;
1852
1924
  }
1853
- var next = tmp_0;
1854
- return primary.withFallback_7synod_k$(provider(next, null, fetcherFor));
1925
+ return tmp_1;
1855
1926
  }
1856
1927
  function wmsBbox4326(tc) {
1857
- var tiles = 1 << tc.z_1;
1858
- var west = tc.x_1 / tiles * 360.0 - 180.0;
1859
- var east = (tc.x_1 + 1 | 0) / tiles * 360.0 - 180.0;
1860
- return '' + tileNorthLatitude(tc.y_1 + 1 | 0, tiles) + ',' + west + ',' + tileNorthLatitude(tc.y_1, tiles) + ',' + east;
1928
+ var tiles = 1 << tc.b10_1;
1929
+ var west = tc.zz_1 / tiles * 360.0 - 180.0;
1930
+ var east = (tc.zz_1 + 1 | 0) / tiles * 360.0 - 180.0;
1931
+ return '' + tileNorthLatitude(tc.a10_1 + 1 | 0, tiles) + ',' + west + ',' + tileNorthLatitude(tc.a10_1, tiles) + ',' + east;
1861
1932
  }
1862
1933
  function tileNorthLatitude(y, tiles) {
1863
1934
  // Inline function 'kotlin.math.sinh' call
@@ -1875,120 +1946,120 @@
1875
1946
  return ElevationSource_IGN_LIDAR_HD_instance;
1876
1947
  }
1877
1948
  function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
1878
- this.$semaphore_1 = $semaphore;
1879
- this.$action_1 = $action;
1880
- this.$item_1 = $item;
1949
+ this.f18_1 = $semaphore;
1950
+ this.g18_1 = $action;
1951
+ this.h18_1 = $item;
1881
1952
  CoroutineImpl.call(this, resultContinuation);
1882
1953
  }
1883
- protoOf(Flux$forEachParallel$slambda$slambda).invoke_d9fzmj_k$ = function ($this$async, $completion) {
1884
- var tmp = this.create_rcuf4x_k$($this$async, $completion);
1885
- tmp.result_1 = Unit_instance;
1886
- tmp.exception_1 = null;
1887
- return tmp.doResume_5yljmg_k$();
1954
+ protoOf(Flux$forEachParallel$slambda$slambda).l18 = function ($this$async, $completion) {
1955
+ var tmp = this.m18($this$async, $completion);
1956
+ tmp.i7_1 = Unit_instance;
1957
+ tmp.j7_1 = null;
1958
+ return tmp.o7();
1888
1959
  };
1889
- protoOf(Flux$forEachParallel$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
1890
- return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1960
+ protoOf(Flux$forEachParallel$slambda$slambda).w7 = function (p1, $completion) {
1961
+ return this.l18((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1891
1962
  };
1892
- protoOf(Flux$forEachParallel$slambda$slambda).doResume_5yljmg_k$ = function () {
1893
- var suspendResult = this.result_1;
1963
+ protoOf(Flux$forEachParallel$slambda$slambda).o7 = function () {
1964
+ var suspendResult = this.i7_1;
1894
1965
  $sm: do
1895
1966
  try {
1896
- var tmp = this.state_1;
1967
+ var tmp = this.g7_1;
1897
1968
  switch (tmp) {
1898
1969
  case 0:
1899
- this.exceptionState_1 = 6;
1900
- this.this0__1 = this.$semaphore_1;
1901
- this.state_1 = 1;
1902
- suspendResult = this.this0__1.acquire_kfvtdt_k$(this);
1970
+ this.h7_1 = 6;
1971
+ this.j18_1 = this.f18_1;
1972
+ this.g7_1 = 1;
1973
+ suspendResult = this.j18_1.zv(this);
1903
1974
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1904
1975
  return suspendResult;
1905
1976
  }
1906
1977
 
1907
1978
  continue $sm;
1908
1979
  case 1:
1909
- this.tmp$ret$01__1 = Unit_instance;
1910
- this.state_1 = 2;
1980
+ this.k18_1 = Unit_instance;
1981
+ this.g7_1 = 2;
1911
1982
  continue $sm;
1912
1983
  case 2:
1913
- this.exceptionState_1 = 5;
1914
- this.state_1 = 3;
1915
- suspendResult = this.$action_1(this.$item_1, this);
1984
+ this.h7_1 = 5;
1985
+ this.g7_1 = 3;
1986
+ suspendResult = this.g18_1(this.h18_1, this);
1916
1987
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1917
1988
  return suspendResult;
1918
1989
  }
1919
1990
 
1920
1991
  continue $sm;
1921
1992
  case 3:
1922
- this.tmp$ret$01__1 = Unit_instance;
1923
- this.exceptionState_1 = 6;
1924
- this.state_1 = 4;
1993
+ this.k18_1 = Unit_instance;
1994
+ this.h7_1 = 6;
1995
+ this.g7_1 = 4;
1925
1996
  continue $sm;
1926
1997
  case 4:
1927
- this.tmp$ret$01__1;
1928
- this.exceptionState_1 = 6;
1929
- this.this0__1.release_wu5yyf_k$();
1998
+ this.k18_1;
1999
+ this.h7_1 = 6;
2000
+ this.j18_1.tv();
1930
2001
  return Unit_instance;
1931
2002
  case 5:
1932
- this.exceptionState_1 = 6;
1933
- var t = this.exception_1;
1934
- this.this0__1.release_wu5yyf_k$();
2003
+ this.h7_1 = 6;
2004
+ var t = this.j7_1;
2005
+ this.j18_1.tv();
1935
2006
  throw t;
1936
2007
  case 6:
1937
- throw this.exception_1;
2008
+ throw this.j7_1;
1938
2009
  }
1939
2010
  } catch ($p) {
1940
2011
  var e = $p;
1941
- if (this.exceptionState_1 === 6) {
2012
+ if (this.h7_1 === 6) {
1942
2013
  throw e;
1943
2014
  } else {
1944
- this.state_1 = this.exceptionState_1;
1945
- this.exception_1 = e;
2015
+ this.g7_1 = this.h7_1;
2016
+ this.j7_1 = e;
1946
2017
  }
1947
2018
  }
1948
2019
  while (true);
1949
2020
  };
1950
- protoOf(Flux$forEachParallel$slambda$slambda).create_rcuf4x_k$ = function ($this$async, completion) {
1951
- var i = new Flux$forEachParallel$slambda$slambda(this.$semaphore_1, this.$action_1, this.$item_1, completion);
1952
- i.$this$async_1 = $this$async;
2021
+ protoOf(Flux$forEachParallel$slambda$slambda).m18 = function ($this$async, completion) {
2022
+ var i = new Flux$forEachParallel$slambda$slambda(this.f18_1, this.g18_1, this.h18_1, completion);
2023
+ i.i18_1 = $this$async;
1953
2024
  return i;
1954
2025
  };
1955
2026
  function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
1956
2027
  var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
1957
2028
  return constructCallableReference(function ($this$async, $completion) {
1958
- return i.invoke_d9fzmj_k$($this$async, $completion);
2029
+ return i.l18($this$async, $completion);
1959
2030
  }, 1);
1960
2031
  }
1961
2032
  function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
1962
- this.$maxParallel_1 = $maxParallel;
1963
- this.$items_1 = $items;
1964
- this.$action_1 = $action;
2033
+ this.v18_1 = $maxParallel;
2034
+ this.w18_1 = $items;
2035
+ this.x18_1 = $action;
1965
2036
  CoroutineImpl.call(this, resultContinuation);
1966
2037
  }
1967
- protoOf(Flux$forEachParallel$slambda).invoke_pvnt3t_k$ = function ($this$coroutineScope, $completion) {
1968
- var tmp = this.create_rcuf4x_k$($this$coroutineScope, $completion);
1969
- tmp.result_1 = Unit_instance;
1970
- tmp.exception_1 = null;
1971
- return tmp.doResume_5yljmg_k$();
2038
+ protoOf(Flux$forEachParallel$slambda).z18 = function ($this$coroutineScope, $completion) {
2039
+ var tmp = this.m18($this$coroutineScope, $completion);
2040
+ tmp.i7_1 = Unit_instance;
2041
+ tmp.j7_1 = null;
2042
+ return tmp.o7();
1972
2043
  };
1973
- protoOf(Flux$forEachParallel$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
1974
- return this.invoke_pvnt3t_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2044
+ protoOf(Flux$forEachParallel$slambda).w7 = function (p1, $completion) {
2045
+ return this.z18((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1975
2046
  };
1976
- protoOf(Flux$forEachParallel$slambda).doResume_5yljmg_k$ = function () {
1977
- var suspendResult = this.result_1;
2047
+ protoOf(Flux$forEachParallel$slambda).o7 = function () {
2048
+ var suspendResult = this.i7_1;
1978
2049
  $sm: do
1979
2050
  try {
1980
- var tmp = this.state_1;
2051
+ var tmp = this.g7_1;
1981
2052
  switch (tmp) {
1982
2053
  case 0:
1983
- this.exceptionState_1 = 2;
1984
- var semaphore = Semaphore(this.$maxParallel_1);
1985
- this.state_1 = 1;
1986
- var this_0 = this.$items_1;
2054
+ this.h7_1 = 2;
2055
+ var semaphore = Semaphore(this.v18_1);
2056
+ this.g7_1 = 1;
2057
+ var this_0 = this.w18_1;
1987
2058
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1988
- var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
1989
- while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1990
- var item = _iterator__ex2g4s.next_20eer_k$();
1991
- destination.add_utx5q5_k$(async(this.$this$coroutineScope_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.$action_1, item, null)));
2059
+ var _iterator__ex2g4s = this_0.l();
2060
+ while (_iterator__ex2g4s.m()) {
2061
+ var item = _iterator__ex2g4s.n();
2062
+ destination.k(async(this.y18_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.x18_1, item, null)));
1992
2063
  }
1993
2064
 
1994
2065
  suspendResult = awaitAll(destination, this);
@@ -2000,52 +2071,52 @@
2000
2071
  case 1:
2001
2072
  return suspendResult;
2002
2073
  case 2:
2003
- throw this.exception_1;
2074
+ throw this.j7_1;
2004
2075
  }
2005
2076
  } catch ($p) {
2006
2077
  var e = $p;
2007
- if (this.exceptionState_1 === 2) {
2078
+ if (this.h7_1 === 2) {
2008
2079
  throw e;
2009
2080
  } else {
2010
- this.state_1 = this.exceptionState_1;
2011
- this.exception_1 = e;
2081
+ this.g7_1 = this.h7_1;
2082
+ this.j7_1 = e;
2012
2083
  }
2013
2084
  }
2014
2085
  while (true);
2015
2086
  };
2016
- protoOf(Flux$forEachParallel$slambda).create_rcuf4x_k$ = function ($this$coroutineScope, completion) {
2017
- var i = new Flux$forEachParallel$slambda(this.$maxParallel_1, this.$items_1, this.$action_1, completion);
2018
- i.$this$coroutineScope_1 = $this$coroutineScope;
2087
+ protoOf(Flux$forEachParallel$slambda).m18 = function ($this$coroutineScope, completion) {
2088
+ var i = new Flux$forEachParallel$slambda(this.v18_1, this.w18_1, this.x18_1, completion);
2089
+ i.y18_1 = $this$coroutineScope;
2019
2090
  return i;
2020
2091
  };
2021
2092
  function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
2022
2093
  var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
2023
2094
  return constructCallableReference(function ($this$coroutineScope, $completion) {
2024
- return i.invoke_pvnt3t_k$($this$coroutineScope, $completion);
2095
+ return i.z18($this$coroutineScope, $completion);
2025
2096
  }, 1);
2026
2097
  }
2027
2098
  function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
2028
2099
  CoroutineImpl.call(this, resultContinuation);
2029
- this._this__u8e3s4__1 = _this__u8e3s4;
2030
- this.items_1 = items;
2031
- this.maxParallel_1 = maxParallel;
2032
- this.action_1 = action;
2100
+ this.i19_1 = _this__u8e3s4;
2101
+ this.j19_1 = items;
2102
+ this.k19_1 = maxParallel;
2103
+ this.l19_1 = action;
2033
2104
  }
2034
- protoOf($forEachParallelCOROUTINE$).doResume_5yljmg_k$ = function () {
2035
- var suspendResult = this.result_1;
2105
+ protoOf($forEachParallelCOROUTINE$).o7 = function () {
2106
+ var suspendResult = this.i7_1;
2036
2107
  $sm: do
2037
2108
  try {
2038
- var tmp = this.state_1;
2109
+ var tmp = this.g7_1;
2039
2110
  switch (tmp) {
2040
2111
  case 0:
2041
- this.exceptionState_1 = 2;
2042
- if (!(this.maxParallel_1 >= 1)) {
2043
- var message = 'maxParallel must be >= 1, got ' + this.maxParallel_1;
2112
+ this.h7_1 = 2;
2113
+ if (!(this.k19_1 >= 1)) {
2114
+ var message = 'maxParallel must be >= 1, got ' + this.k19_1;
2044
2115
  throw IllegalArgumentException_init_$Create$(toString(message));
2045
2116
  }
2046
2117
 
2047
- this.state_1 = 1;
2048
- suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.maxParallel_1, this.items_1, this.action_1, null), this);
2118
+ this.g7_1 = 1;
2119
+ suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.k19_1, this.j19_1, this.l19_1, null), this);
2049
2120
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2050
2121
  return suspendResult;
2051
2122
  }
@@ -2054,39 +2125,88 @@
2054
2125
  case 1:
2055
2126
  return Unit_instance;
2056
2127
  case 2:
2057
- throw this.exception_1;
2128
+ throw this.j7_1;
2058
2129
  }
2059
2130
  } catch ($p) {
2060
2131
  var e = $p;
2061
- if (this.exceptionState_1 === 2) {
2132
+ if (this.h7_1 === 2) {
2062
2133
  throw e;
2063
2134
  } else {
2064
- this.state_1 = this.exceptionState_1;
2065
- this.exception_1 = e;
2135
+ this.g7_1 = this.h7_1;
2136
+ this.j7_1 = e;
2066
2137
  }
2067
2138
  }
2068
2139
  while (true);
2069
2140
  };
2070
2141
  function Flux() {
2071
2142
  }
2072
- protoOf(Flux).forEachParallel_gstfa7_k$ = function (items, maxParallel, action, $completion) {
2143
+ protoOf(Flux).c10 = function (items, maxParallel, action, $completion) {
2073
2144
  var tmp = new $forEachParallelCOROUTINE$(this, items, maxParallel, action, $completion);
2074
- tmp.result_1 = Unit_instance;
2075
- tmp.exception_1 = null;
2076
- return tmp.doResume_5yljmg_k$();
2145
+ tmp.i7_1 = Unit_instance;
2146
+ tmp.j7_1 = null;
2147
+ return tmp.o7();
2077
2148
  };
2078
2149
  var Flux_instance;
2079
2150
  function Flux_getInstance() {
2080
2151
  return Flux_instance;
2081
2152
  }
2153
+ var static_init_called_1;
2154
+ function static_init_1() {
2155
+ if (static_init_called_1)
2156
+ return Unit_instance;
2157
+ static_init_called_1 = true;
2158
+ IgnLidarHdLayer_MNT_instance = new IgnLidarHdLayer('MNT', 0, 'IGNF_LIDAR-HD_MNT_ELEVATION.ELEVATIONGRIDCOVERAGE.WGS84G');
2159
+ IgnLidarHdLayer_MNS_instance = new IgnLidarHdLayer('MNS', 1, 'IGNF_LIDAR-HD_MNS_ELEVATION.ELEVATIONGRIDCOVERAGE.WGS84G');
2160
+ IgnLidarHdLayer_MNH_instance = new IgnLidarHdLayer('MNH', 2, 'IGNF_LIDAR-HD_MNH_ELEVATION.ELEVATIONGRIDCOVERAGE.WGS84G');
2161
+ }
2162
+ var IgnLidarHdLayer_MNT_instance;
2163
+ var IgnLidarHdLayer_MNS_instance;
2164
+ var IgnLidarHdLayer_MNH_instance;
2165
+ function IgnLidarHdLayer(name, ordinal, wmsLayer) {
2166
+ Enum.call(this, name, ordinal);
2167
+ this.v17_1 = wmsLayer;
2168
+ }
2169
+ protoOf(IgnLidarHdLayer).s17 = function () {
2170
+ return 15;
2171
+ };
2172
+ protoOf(IgnLidarHdLayer).w17 = function (zoomLevel) {
2173
+ var tmp1_zoomLevel = zoomLevel == null ? this.s17() : zoomLevel;
2174
+ var tmp3_tileUrlTemplate = ignWmsTemplate(this.v17_1, 256);
2175
+ var tmp4_encoding = TileEncoding_BIL32_getInstance();
2176
+ var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.u1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
2177
+ return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
2178
+ };
2179
+ function provider_0(_this__u8e3s4, zoomLevel, fetcherFor) {
2180
+ zoomLevel = zoomLevel === VOID ? null : zoomLevel;
2181
+ var tmp;
2182
+ if (fetcherFor === VOID) {
2183
+ tmp = defaultTileFetcher$ref();
2184
+ } else {
2185
+ tmp = fetcherFor;
2186
+ }
2187
+ fetcherFor = tmp;
2188
+ var config = _this__u8e3s4.w17(zoomLevel);
2189
+ return ElevationProvider_init_$Create$_0(config, fetcherFor(config), true);
2190
+ }
2191
+ function ignWmsTemplate(layer, tileSize) {
2192
+ return 'https://data.geopf.fr/wms-r/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=' + layer + '&STYLES=normal' + ('&CRS=EPSG:4326&BBOX={bbox}&WIDTH=' + tileSize + '&HEIGHT=' + tileSize + '&FORMAT=image%2Fx-bil%3Bbits%3D32');
2193
+ }
2194
+ function IgnLidarHdLayer_MNT_getInstance() {
2195
+ static_init_1();
2196
+ return IgnLidarHdLayer_MNT_instance;
2197
+ }
2198
+ function IgnLidarHdLayer_MNS_getInstance() {
2199
+ static_init_1();
2200
+ return IgnLidarHdLayer_MNS_instance;
2201
+ }
2082
2202
  function Hit(value) {
2083
- this.value_1 = value;
2203
+ this.m19_1 = value;
2084
2204
  }
2085
2205
  function Await(deferred) {
2086
- this.deferred_1 = deferred;
2206
+ this.n19_1 = deferred;
2087
2207
  }
2088
2208
  function Owner(deferred) {
2089
- this.deferred_1 = deferred;
2209
+ this.o19_1 = deferred;
2090
2210
  }
2091
2211
  function LoadAbandoned() {
2092
2212
  Exception_init_$Init$('load abandoned by its cancelled owner', this);
@@ -2094,42 +2214,42 @@
2094
2214
  }
2095
2215
  function lookupOrClaim($this, key, $completion) {
2096
2216
  var tmp = new $lookupOrClaimCOROUTINE$($this, key, $completion);
2097
- tmp.result_1 = Unit_instance;
2098
- tmp.exception_1 = null;
2099
- return tmp.doResume_5yljmg_k$();
2217
+ tmp.i7_1 = Unit_instance;
2218
+ tmp.j7_1 = null;
2219
+ return tmp.o7();
2100
2220
  }
2101
2221
  function load($this, key, ours, $completion) {
2102
2222
  var tmp = new $loadCOROUTINE$($this, key, ours, $completion);
2103
- tmp.result_1 = Unit_instance;
2104
- tmp.exception_1 = null;
2105
- return tmp.doResume_5yljmg_k$();
2223
+ tmp.i7_1 = Unit_instance;
2224
+ tmp.j7_1 = null;
2225
+ return tmp.o7();
2106
2226
  }
2107
2227
  function LruCache$load$slambda(this$0, $key, resultContinuation) {
2108
- this.this$0__1 = this$0;
2109
- this.$key_1 = $key;
2228
+ this.x1a_1 = this$0;
2229
+ this.y1a_1 = $key;
2110
2230
  CoroutineImpl.call(this, resultContinuation);
2111
2231
  }
2112
- protoOf(LruCache$load$slambda).invoke_9w0nwl_k$ = function ($this$withContext, $completion) {
2113
- var tmp = this.create_rcuf4x_k$($this$withContext, $completion);
2114
- tmp.result_1 = Unit_instance;
2115
- tmp.exception_1 = null;
2116
- return tmp.doResume_5yljmg_k$();
2232
+ protoOf(LruCache$load$slambda).c1b = function ($this$withContext, $completion) {
2233
+ var tmp = this.m18($this$withContext, $completion);
2234
+ tmp.i7_1 = Unit_instance;
2235
+ tmp.j7_1 = null;
2236
+ return tmp.o7();
2117
2237
  };
2118
- protoOf(LruCache$load$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
2119
- return this.invoke_9w0nwl_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2238
+ protoOf(LruCache$load$slambda).w7 = function (p1, $completion) {
2239
+ return this.c1b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2120
2240
  };
2121
- protoOf(LruCache$load$slambda).doResume_5yljmg_k$ = function () {
2122
- var suspendResult = this.result_1;
2241
+ protoOf(LruCache$load$slambda).o7 = function () {
2242
+ var suspendResult = this.i7_1;
2123
2243
  $sm: do
2124
2244
  try {
2125
- var tmp = this.state_1;
2245
+ var tmp = this.g7_1;
2126
2246
  switch (tmp) {
2127
2247
  case 0:
2128
- this.exceptionState_1 = 2;
2129
- this.this1__1 = this.this$0__1.mutex_1;
2130
- this.owner0__1 = null;
2131
- this.state_1 = 1;
2132
- suspendResult = this.this1__1.lock_ugrcvf_k$(this.owner0__1, this);
2248
+ this.h7_1 = 2;
2249
+ this.b1b_1 = this.x1a_1.g1b_1;
2250
+ this.a1b_1 = null;
2251
+ this.g7_1 = 1;
2252
+ suspendResult = this.b1b_1.rv(this.a1b_1, this);
2133
2253
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2134
2254
  return suspendResult;
2135
2255
  }
@@ -2140,71 +2260,71 @@
2140
2260
  l$ret$1: do {
2141
2261
  var tmp_0;
2142
2262
  try {
2143
- tmp$ret$0 = this.this$0__1.inFlight_1.remove_gppy8k_k$(this.$key_1);
2263
+ tmp$ret$0 = this.x1a_1.i1b_1.t3(this.y1a_1);
2144
2264
  break l$ret$1;
2145
2265
  } catch ($p) {
2146
2266
  var tmp_1;
2147
2267
  var t = $p;
2148
- this.this1__1.unlock_ulcrcl_k$(this.owner0__1);
2268
+ this.b1b_1.cv(this.a1b_1);
2149
2269
  throw t;
2150
2270
  }
2151
2271
  }
2152
2272
  while (false);
2153
2273
  var tmp_2 = tmp$ret$0;
2154
- this.this1__1.unlock_ulcrcl_k$(this.owner0__1);
2274
+ this.b1b_1.cv(this.a1b_1);
2155
2275
  return tmp_2;
2156
2276
  case 2:
2157
- throw this.exception_1;
2277
+ throw this.j7_1;
2158
2278
  }
2159
2279
  } catch ($p_0) {
2160
2280
  var e = $p_0;
2161
- if (this.exceptionState_1 === 2) {
2281
+ if (this.h7_1 === 2) {
2162
2282
  throw e;
2163
2283
  } else {
2164
- this.state_1 = this.exceptionState_1;
2165
- this.exception_1 = e;
2284
+ this.g7_1 = this.h7_1;
2285
+ this.j7_1 = e;
2166
2286
  }
2167
2287
  }
2168
2288
  while (true);
2169
2289
  };
2170
- protoOf(LruCache$load$slambda).create_rcuf4x_k$ = function ($this$withContext, completion) {
2171
- var i = new LruCache$load$slambda(this.this$0__1, this.$key_1, completion);
2172
- i.$this$withContext_1 = $this$withContext;
2290
+ protoOf(LruCache$load$slambda).m18 = function ($this$withContext, completion) {
2291
+ var i = new LruCache$load$slambda(this.x1a_1, this.y1a_1, completion);
2292
+ i.z1a_1 = $this$withContext;
2173
2293
  return i;
2174
2294
  };
2175
2295
  function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
2176
2296
  var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
2177
2297
  return constructCallableReference(function ($this$withContext, $completion) {
2178
- return i.invoke_9w0nwl_k$($this$withContext, $completion);
2298
+ return i.c1b($this$withContext, $completion);
2179
2299
  }, 1);
2180
2300
  }
2181
2301
  function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
2182
- this.this$0__1 = this$0;
2183
- this.$key_1 = $key;
2184
- this.$value_1 = $value;
2302
+ this.r1b_1 = this$0;
2303
+ this.s1b_1 = $key;
2304
+ this.t1b_1 = $value;
2185
2305
  CoroutineImpl.call(this, resultContinuation);
2186
2306
  }
2187
- protoOf(LruCache$load$slambda_1).invoke_88b81s_k$ = function ($this$withContext, $completion) {
2188
- var tmp = this.create_rcuf4x_k$($this$withContext, $completion);
2189
- tmp.result_1 = Unit_instance;
2190
- tmp.exception_1 = null;
2191
- return tmp.doResume_5yljmg_k$();
2307
+ protoOf(LruCache$load$slambda_1).x1b = function ($this$withContext, $completion) {
2308
+ var tmp = this.m18($this$withContext, $completion);
2309
+ tmp.i7_1 = Unit_instance;
2310
+ tmp.j7_1 = null;
2311
+ return tmp.o7();
2192
2312
  };
2193
- protoOf(LruCache$load$slambda_1).invoke_qns8j1_k$ = function (p1, $completion) {
2194
- return this.invoke_88b81s_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2313
+ protoOf(LruCache$load$slambda_1).w7 = function (p1, $completion) {
2314
+ return this.x1b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2195
2315
  };
2196
- protoOf(LruCache$load$slambda_1).doResume_5yljmg_k$ = function () {
2197
- var suspendResult = this.result_1;
2316
+ protoOf(LruCache$load$slambda_1).o7 = function () {
2317
+ var suspendResult = this.i7_1;
2198
2318
  $sm: do
2199
2319
  try {
2200
- var tmp = this.state_1;
2320
+ var tmp = this.g7_1;
2201
2321
  switch (tmp) {
2202
2322
  case 0:
2203
- this.exceptionState_1 = 2;
2204
- this.this1__1 = this.this$0__1.mutex_1;
2205
- this.owner0__1 = null;
2206
- this.state_1 = 1;
2207
- suspendResult = this.this1__1.lock_ugrcvf_k$(this.owner0__1, this);
2323
+ this.h7_1 = 2;
2324
+ this.w1b_1 = this.r1b_1.g1b_1;
2325
+ this.v1b_1 = null;
2326
+ this.g7_1 = 1;
2327
+ suspendResult = this.w1b_1.rv(this.v1b_1, this);
2208
2328
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2209
2329
  return suspendResult;
2210
2330
  }
@@ -2215,86 +2335,86 @@
2215
2335
  l$ret$1: do {
2216
2336
  var tmp_0;
2217
2337
  try {
2218
- this.this$0__1.inFlight_1.remove_gppy8k_k$(this.$key_1);
2338
+ this.r1b_1.i1b_1.t3(this.s1b_1);
2219
2339
  var oldest = null;
2220
2340
  var tmp_1;
2221
- if (this.this$0__1.entries_1.get_size_woubt6_k$() >= this.this$0__1.maxSize_1) {
2222
- var tmp0 = this.this$0__1.entries_1;
2223
- var key = this.$key_1;
2224
- tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).containsKey_aw81wo_k$(key);
2341
+ if (this.r1b_1.h1b_1.o() >= this.r1b_1.d1b_1) {
2342
+ var tmp0 = this.r1b_1.h1b_1;
2343
+ var key = this.s1b_1;
2344
+ tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).o1(key);
2225
2345
  } else {
2226
2346
  tmp_1 = false;
2227
2347
  }
2228
2348
  if (tmp_1) {
2229
- var iter = this.this$0__1.entries_1.get_entries_p20ztl_k$().iterator_jk1svi_k$();
2230
- oldest = iter.next_20eer_k$().get_value_j01efc_k$();
2231
- iter.remove_ldkf9o_k$();
2349
+ var iter = this.r1b_1.h1b_1.t1().l();
2350
+ oldest = iter.n().n1();
2351
+ iter.s2();
2232
2352
  }
2233
- var tmp0_0 = this.this$0__1.entries_1;
2234
- var tmp2 = this.$key_1;
2235
- var value = this.$value_1;
2236
- tmp0_0.put_4fpzoq_k$(tmp2, value);
2353
+ var tmp0_0 = this.r1b_1.h1b_1;
2354
+ var tmp2 = this.s1b_1;
2355
+ var value = this.t1b_1;
2356
+ tmp0_0.s3(tmp2, value);
2237
2357
  tmp$ret$0 = oldest;
2238
2358
  break l$ret$1;
2239
2359
  } catch ($p) {
2240
2360
  var tmp_2;
2241
2361
  var t = $p;
2242
- this.this1__1.unlock_ulcrcl_k$(this.owner0__1);
2362
+ this.w1b_1.cv(this.v1b_1);
2243
2363
  throw t;
2244
2364
  }
2245
2365
  }
2246
2366
  while (false);
2247
2367
  var tmp_3 = tmp$ret$0;
2248
- this.this1__1.unlock_ulcrcl_k$(this.owner0__1);
2368
+ this.w1b_1.cv(this.v1b_1);
2249
2369
  return tmp_3;
2250
2370
  case 2:
2251
- throw this.exception_1;
2371
+ throw this.j7_1;
2252
2372
  }
2253
2373
  } catch ($p_0) {
2254
2374
  var e = $p_0;
2255
- if (this.exceptionState_1 === 2) {
2375
+ if (this.h7_1 === 2) {
2256
2376
  throw e;
2257
2377
  } else {
2258
- this.state_1 = this.exceptionState_1;
2259
- this.exception_1 = e;
2378
+ this.g7_1 = this.h7_1;
2379
+ this.j7_1 = e;
2260
2380
  }
2261
2381
  }
2262
2382
  while (true);
2263
2383
  };
2264
- protoOf(LruCache$load$slambda_1).create_rcuf4x_k$ = function ($this$withContext, completion) {
2265
- var i = new LruCache$load$slambda_1(this.this$0__1, this.$key_1, this.$value_1, completion);
2266
- i.$this$withContext_1 = $this$withContext;
2384
+ protoOf(LruCache$load$slambda_1).m18 = function ($this$withContext, completion) {
2385
+ var i = new LruCache$load$slambda_1(this.r1b_1, this.s1b_1, this.t1b_1, completion);
2386
+ i.u1b_1 = $this$withContext;
2267
2387
  return i;
2268
2388
  };
2269
2389
  function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
2270
2390
  var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
2271
2391
  return constructCallableReference(function ($this$withContext, $completion) {
2272
- return i.invoke_88b81s_k$($this$withContext, $completion);
2392
+ return i.x1b($this$withContext, $completion);
2273
2393
  }, 1);
2274
2394
  }
2275
2395
  function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
2276
2396
  CoroutineImpl.call(this, resultContinuation);
2277
- this._this__u8e3s4__1 = _this__u8e3s4;
2278
- this.key_1 = key;
2397
+ this.g1c_1 = _this__u8e3s4;
2398
+ this.h1c_1 = key;
2279
2399
  }
2280
- protoOf($getCOROUTINE$).doResume_5yljmg_k$ = function () {
2281
- var suspendResult = this.result_1;
2400
+ protoOf($getCOROUTINE$).o7 = function () {
2401
+ var suspendResult = this.i7_1;
2282
2402
  $sm: do
2283
2403
  try {
2284
- var tmp = this.state_1;
2404
+ var tmp = this.g7_1;
2285
2405
  switch (tmp) {
2286
2406
  case 0:
2287
- this.exceptionState_1 = 8;
2288
- this.state_1 = 1;
2407
+ this.h7_1 = 8;
2408
+ this.g7_1 = 1;
2289
2409
  continue $sm;
2290
2410
  case 1:
2291
2411
  if (!true) {
2292
- this.state_1 = 9;
2412
+ this.g7_1 = 9;
2293
2413
  continue $sm;
2294
2414
  }
2295
2415
 
2296
- this.state_1 = 2;
2297
- suspendResult = lookupOrClaim(this._this__u8e3s4__1, this.key_1, this);
2416
+ this.g7_1 = 2;
2417
+ suspendResult = lookupOrClaim(this.g1c_1, this.h1c_1, this);
2298
2418
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2299
2419
  return suspendResult;
2300
2420
  }
@@ -2303,20 +2423,20 @@
2303
2423
  case 2:
2304
2424
  var lookup = suspendResult;
2305
2425
  if (lookup instanceof Hit) {
2306
- return lookup.value_1;
2426
+ return lookup.m19_1;
2307
2427
  } else {
2308
2428
  if (lookup instanceof Owner) {
2309
- this.state_1 = 7;
2310
- suspendResult = load(this._this__u8e3s4__1, this.key_1, lookup.deferred_1, this);
2429
+ this.g7_1 = 7;
2430
+ suspendResult = load(this.g1c_1, this.h1c_1, lookup.o19_1, this);
2311
2431
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2312
2432
  return suspendResult;
2313
2433
  }
2314
2434
  continue $sm;
2315
2435
  } else {
2316
2436
  if (lookup instanceof Await) {
2317
- this.exceptionState_1 = 4;
2318
- this.state_1 = 3;
2319
- suspendResult = lookup.deferred_1.await_4rdzbx_k$(this);
2437
+ this.h7_1 = 4;
2438
+ this.g7_1 = 3;
2439
+ suspendResult = lookup.n19_1.gn(this);
2320
2440
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2321
2441
  return suspendResult;
2322
2442
  }
@@ -2331,58 +2451,58 @@
2331
2451
  case 3:
2332
2452
  return suspendResult;
2333
2453
  case 4:
2334
- this.exceptionState_1 = 8;
2335
- var tmp_0 = this.exception_1;
2454
+ this.h7_1 = 8;
2455
+ var tmp_0 = this.j7_1;
2336
2456
  if (tmp_0 instanceof LoadAbandoned) {
2337
- var _unused_var__etf5q3 = this.exception_1;
2338
- this.state_1 = 5;
2457
+ var _unused_var__etf5q3 = this.j7_1;
2458
+ this.g7_1 = 5;
2339
2459
  continue $sm;
2340
2460
  } else {
2341
- throw this.exception_1;
2461
+ throw this.j7_1;
2342
2462
  }
2343
2463
 
2344
2464
  case 5:
2345
- this.exceptionState_1 = 8;
2346
- this.state_1 = 6;
2465
+ this.h7_1 = 8;
2466
+ this.g7_1 = 6;
2347
2467
  continue $sm;
2348
2468
  case 6:
2349
- this.state_1 = 1;
2469
+ this.g7_1 = 1;
2350
2470
  continue $sm;
2351
2471
  case 7:
2352
2472
  return suspendResult;
2353
2473
  case 8:
2354
- throw this.exception_1;
2474
+ throw this.j7_1;
2355
2475
  case 9:
2356
2476
  return Unit_instance;
2357
2477
  }
2358
2478
  } catch ($p) {
2359
2479
  var e = $p;
2360
- if (this.exceptionState_1 === 8) {
2480
+ if (this.h7_1 === 8) {
2361
2481
  throw e;
2362
2482
  } else {
2363
- this.state_1 = this.exceptionState_1;
2364
- this.exception_1 = e;
2483
+ this.g7_1 = this.h7_1;
2484
+ this.j7_1 = e;
2365
2485
  }
2366
2486
  }
2367
2487
  while (true);
2368
2488
  };
2369
2489
  function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
2370
2490
  CoroutineImpl.call(this, resultContinuation);
2371
- this._this__u8e3s4__1 = _this__u8e3s4;
2372
- this.key_1 = key;
2491
+ this.x19_1 = _this__u8e3s4;
2492
+ this.y19_1 = key;
2373
2493
  }
2374
- protoOf($lookupOrClaimCOROUTINE$).doResume_5yljmg_k$ = function () {
2375
- var suspendResult = this.result_1;
2494
+ protoOf($lookupOrClaimCOROUTINE$).o7 = function () {
2495
+ var suspendResult = this.i7_1;
2376
2496
  $sm: do
2377
2497
  try {
2378
- var tmp = this.state_1;
2498
+ var tmp = this.g7_1;
2379
2499
  switch (tmp) {
2380
2500
  case 0:
2381
- this.exceptionState_1 = 2;
2382
- this.this1__1 = this._this__u8e3s4__1.mutex_1;
2383
- this.owner0__1 = null;
2384
- this.state_1 = 1;
2385
- suspendResult = this.this1__1.lock_ugrcvf_k$(this.owner0__1, this);
2501
+ this.h7_1 = 2;
2502
+ this.a1a_1 = this.x19_1.g1b_1;
2503
+ this.z19_1 = null;
2504
+ this.g7_1 = 1;
2505
+ suspendResult = this.a1a_1.rv(this.z19_1, this);
2386
2506
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2387
2507
  return suspendResult;
2388
2508
  }
@@ -2395,23 +2515,23 @@
2395
2515
  try {
2396
2516
  var tmp$ret$0 = Unit_instance;
2397
2517
  l$ret$1: do {
2398
- var hit = this._this__u8e3s4__1.entries_1.remove_gppy8k_k$(this.key_1);
2518
+ var hit = this.x19_1.h1b_1.t3(this.y19_1);
2399
2519
  if (!(hit == null)) {
2400
- var tmp0 = this._this__u8e3s4__1.entries_1;
2401
- var key = this.key_1;
2402
- tmp0.put_4fpzoq_k$(key, hit);
2520
+ var tmp0 = this.x19_1.h1b_1;
2521
+ var key = this.y19_1;
2522
+ tmp0.s3(key, hit);
2403
2523
  tmp$ret$0 = new Hit(hit);
2404
2524
  break l$ret$1;
2405
2525
  }
2406
- var raced = this._this__u8e3s4__1.inFlight_1.get_wei43m_k$(this.key_1);
2526
+ var raced = this.x19_1.i1b_1.q1(this.y19_1);
2407
2527
  var tmp_1;
2408
2528
  if (!(raced == null)) {
2409
2529
  tmp_1 = new Await(raced);
2410
2530
  } else {
2411
2531
  var ours = CompletableDeferred();
2412
- var tmp0_0 = this._this__u8e3s4__1.inFlight_1;
2413
- var key_0 = this.key_1;
2414
- tmp0_0.put_4fpzoq_k$(key_0, ours);
2532
+ var tmp0_0 = this.x19_1.i1b_1;
2533
+ var key_0 = this.y19_1;
2534
+ tmp0_0.s3(key_0, ours);
2415
2535
  tmp_1 = new Owner(ours);
2416
2536
  }
2417
2537
  tmp$ret$0 = tmp_1;
@@ -2422,89 +2542,89 @@
2422
2542
  } catch ($p) {
2423
2543
  var tmp_2;
2424
2544
  var t = $p;
2425
- this.this1__1.unlock_ulcrcl_k$(this.owner0__1);
2545
+ this.a1a_1.cv(this.z19_1);
2426
2546
  throw t;
2427
2547
  }
2428
2548
  }
2429
2549
  while (false);
2430
2550
  var tmp_3 = tmp$ret$2;
2431
- this.this1__1.unlock_ulcrcl_k$(this.owner0__1);
2551
+ this.a1a_1.cv(this.z19_1);
2432
2552
  return tmp_3;
2433
2553
  case 2:
2434
- throw this.exception_1;
2554
+ throw this.j7_1;
2435
2555
  }
2436
2556
  } catch ($p_0) {
2437
2557
  var e = $p_0;
2438
- if (this.exceptionState_1 === 2) {
2558
+ if (this.h7_1 === 2) {
2439
2559
  throw e;
2440
2560
  } else {
2441
- this.state_1 = this.exceptionState_1;
2442
- this.exception_1 = e;
2561
+ this.g7_1 = this.h7_1;
2562
+ this.j7_1 = e;
2443
2563
  }
2444
2564
  }
2445
2565
  while (true);
2446
2566
  };
2447
2567
  function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
2448
2568
  CoroutineImpl.call(this, resultContinuation);
2449
- this._this__u8e3s4__1 = _this__u8e3s4;
2450
- this.key_1 = key;
2451
- this.ours_1 = ours;
2569
+ this.j1a_1 = _this__u8e3s4;
2570
+ this.k1a_1 = key;
2571
+ this.l1a_1 = ours;
2452
2572
  }
2453
- protoOf($loadCOROUTINE$).doResume_5yljmg_k$ = function () {
2454
- var suspendResult = this.result_1;
2573
+ protoOf($loadCOROUTINE$).o7 = function () {
2574
+ var suspendResult = this.i7_1;
2455
2575
  $sm: do
2456
2576
  try {
2457
- var tmp = this.state_1;
2577
+ var tmp = this.g7_1;
2458
2578
  switch (tmp) {
2459
2579
  case 0:
2460
- this.exceptionState_1 = 6;
2461
- this.exceptionState_1 = 2;
2462
- this.state_1 = 1;
2463
- suspendResult = this._this__u8e3s4__1.loader_1(this.key_1, this);
2580
+ this.h7_1 = 6;
2581
+ this.h7_1 = 2;
2582
+ this.g7_1 = 1;
2583
+ suspendResult = this.j1a_1.e1b_1(this.k1a_1, this);
2464
2584
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2465
2585
  return suspendResult;
2466
2586
  }
2467
2587
 
2468
2588
  continue $sm;
2469
2589
  case 1:
2470
- this.TRY_RESULT1__1 = suspendResult;
2471
- this.exceptionState_1 = 6;
2472
- this.state_1 = 4;
2590
+ this.n1a_1 = suspendResult;
2591
+ this.h7_1 = 6;
2592
+ this.g7_1 = 4;
2473
2593
  continue $sm;
2474
2594
  case 2:
2475
- this.exceptionState_1 = 6;
2476
- var tmp_0 = this.exception_1;
2595
+ this.h7_1 = 6;
2596
+ var tmp_0 = this.j7_1;
2477
2597
  if (tmp_0 instanceof Error) {
2478
- this.t2__1 = this.exception_1;
2479
- this.state_1 = 3;
2598
+ this.o1a_1 = this.j7_1;
2599
+ this.g7_1 = 3;
2480
2600
  var tmp_1 = NonCancellable_getInstance();
2481
- suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this._this__u8e3s4__1, this.key_1, null), this);
2601
+ suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.j1a_1, this.k1a_1, null), this);
2482
2602
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2483
2603
  return suspendResult;
2484
2604
  }
2485
2605
  continue $sm;
2486
2606
  } else {
2487
- throw this.exception_1;
2607
+ throw this.j7_1;
2488
2608
  }
2489
2609
 
2490
2610
  case 3:
2491
2611
  var tmp_2;
2492
- var tmp_3 = this.t2__1;
2612
+ var tmp_3 = this.o1a_1;
2493
2613
  if (tmp_3 instanceof CancellationException) {
2494
2614
  tmp_2 = new LoadAbandoned();
2495
2615
  } else {
2496
- tmp_2 = this.t2__1;
2616
+ tmp_2 = this.o1a_1;
2497
2617
  }
2498
2618
 
2499
- this.ours_1.completeExceptionally_xyzekf_k$(tmp_2);
2619
+ this.l1a_1.kq(tmp_2);
2500
2620
  var tmp_4 = this;
2501
- throw this.t2__1;
2621
+ throw this.o1a_1;
2502
2622
  case 4:
2503
- this.exceptionState_1 = 6;
2504
- this.value0__1 = this.TRY_RESULT1__1;
2505
- this.state_1 = 5;
2623
+ this.h7_1 = 6;
2624
+ this.m1a_1 = this.n1a_1;
2625
+ this.g7_1 = 5;
2506
2626
  var tmp_5 = NonCancellable_getInstance();
2507
- suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this._this__u8e3s4__1, this.key_1, this.value0__1, null), this);
2627
+ suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.j1a_1, this.k1a_1, this.m1a_1, null), this);
2508
2628
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2509
2629
  return suspendResult;
2510
2630
  }
@@ -2512,59 +2632,59 @@
2512
2632
  continue $sm;
2513
2633
  case 5:
2514
2634
  var evicted = suspendResult;
2515
- this.ours_1.complete_ixf84q_k$(this.value0__1);
2635
+ this.l1a_1.jq(this.m1a_1);
2516
2636
  if (!(evicted == null)) {
2517
- var tmp0_safe_receiver = this._this__u8e3s4__1.onEvict_1;
2637
+ var tmp0_safe_receiver = this.j1a_1.f1b_1;
2518
2638
  if (tmp0_safe_receiver == null)
2519
2639
  null;
2520
2640
  else
2521
2641
  tmp0_safe_receiver(evicted);
2522
2642
  }
2523
2643
 
2524
- return this.value0__1;
2644
+ return this.m1a_1;
2525
2645
  case 6:
2526
- throw this.exception_1;
2646
+ throw this.j7_1;
2527
2647
  }
2528
2648
  } catch ($p) {
2529
2649
  var e = $p;
2530
- if (this.exceptionState_1 === 6) {
2650
+ if (this.h7_1 === 6) {
2531
2651
  throw e;
2532
2652
  } else {
2533
- this.state_1 = this.exceptionState_1;
2534
- this.exception_1 = e;
2653
+ this.g7_1 = this.h7_1;
2654
+ this.j7_1 = e;
2535
2655
  }
2536
2656
  }
2537
2657
  while (true);
2538
2658
  };
2539
2659
  function LruCache(maxSize, loader, onEvict) {
2540
2660
  onEvict = onEvict === VOID ? null : onEvict;
2541
- this.maxSize_1 = maxSize;
2542
- this.loader_1 = loader;
2543
- this.onEvict_1 = onEvict;
2661
+ this.d1b_1 = maxSize;
2662
+ this.e1b_1 = loader;
2663
+ this.f1b_1 = onEvict;
2544
2664
  // Inline function 'kotlin.require' call
2545
- if (!(this.maxSize_1 > 0)) {
2665
+ if (!(this.d1b_1 > 0)) {
2546
2666
  var message = 'Cache size must be greater than 0';
2547
2667
  throw IllegalArgumentException_init_$Create$(toString(message));
2548
2668
  }
2549
- this.mutex_1 = Mutex();
2550
- this.entries_1 = LinkedHashMap_init_$Create$();
2669
+ this.g1b_1 = Mutex();
2670
+ this.h1b_1 = LinkedHashMap_init_$Create$();
2551
2671
  var tmp = this;
2552
2672
  // Inline function 'kotlin.collections.mutableMapOf' call
2553
- tmp.inFlight_1 = LinkedHashMap_init_$Create$();
2673
+ tmp.i1b_1 = LinkedHashMap_init_$Create$();
2554
2674
  }
2555
- protoOf(LruCache).get_27lcp2_k$ = function (key, $completion) {
2675
+ protoOf(LruCache).i1c = function (key, $completion) {
2556
2676
  var tmp = new $getCOROUTINE$(this, key, $completion);
2557
- tmp.result_1 = Unit_instance;
2558
- tmp.exception_1 = null;
2559
- return tmp.doResume_5yljmg_k$();
2677
+ tmp.i7_1 = Unit_instance;
2678
+ tmp.j7_1 = null;
2679
+ return tmp.o7();
2560
2680
  };
2561
2681
  function RawTile(width, height, rgba) {
2562
- this.width_1 = width;
2563
- this.height_1 = height;
2564
- this.rgba_1 = rgba;
2682
+ this.j1c_1 = width;
2683
+ this.k1c_1 = height;
2684
+ this.l1c_1 = rgba;
2565
2685
  // Inline function 'kotlin.require' call
2566
- if (!(this.rgba_1.length === imul(imul(this.width_1, this.height_1), 4))) {
2567
- var message = 'rgba size ' + this.rgba_1.length + ' does not match width*height*4 (' + imul(imul(this.width_1, this.height_1), 4) + ')';
2686
+ if (!(this.l1c_1.length === imul(imul(this.j1c_1, this.k1c_1), 4))) {
2687
+ var message = 'rgba size ' + this.l1c_1.length + ' does not match width*height*4 (' + imul(imul(this.j1c_1, this.k1c_1), 4) + ')';
2568
2688
  throw IllegalArgumentException_init_$Create$(toString(message));
2569
2689
  }
2570
2690
  }
@@ -2573,16 +2693,16 @@
2573
2693
  return true;
2574
2694
  if (!(other instanceof RawTile))
2575
2695
  return false;
2576
- return this.width_1 === other.width_1 && this.height_1 === other.height_1 && contentEquals(this.rgba_1, other.rgba_1);
2696
+ return this.j1c_1 === other.j1c_1 && this.k1c_1 === other.k1c_1 && contentEquals(this.l1c_1, other.l1c_1);
2577
2697
  };
2578
2698
  protoOf(RawTile).hashCode = function () {
2579
- var result = this.width_1;
2580
- result = imul(31, result) + this.height_1 | 0;
2581
- result = imul(31, result) + contentHashCode(this.rgba_1) | 0;
2699
+ var result = this.j1c_1;
2700
+ result = imul(31, result) + this.k1c_1 | 0;
2701
+ result = imul(31, result) + contentHashCode(this.l1c_1) | 0;
2582
2702
  return result;
2583
2703
  };
2584
2704
  function Tile_init_$Init$(raw, $this) {
2585
- Tile.call($this, raw.width_1, raw.height_1, raw.rgba_1);
2705
+ Tile.call($this, raw.j1c_1, raw.k1c_1, raw.l1c_1);
2586
2706
  return $this;
2587
2707
  }
2588
2708
  function Tile_init_$Create$(raw) {
@@ -2590,7 +2710,7 @@
2590
2710
  }
2591
2711
  function Companion_0() {
2592
2712
  }
2593
- protoOf(Companion_0).decodeTerrariumElevation_vmx8i4_k$ = function (r, g, b) {
2713
+ protoOf(Companion_0).m1c = function (r, g, b) {
2594
2714
  var raw = r * 256.0 + g + b / 256.0 - 32768.0;
2595
2715
  return round(raw * 100.0) / 100.0;
2596
2716
  };
@@ -2599,85 +2719,85 @@
2599
2719
  return Companion_instance_1;
2600
2720
  }
2601
2721
  function Tile(width, height, rgba) {
2602
- this.width_1 = width;
2603
- this.height_1 = height;
2604
- this.rgba_1 = rgba;
2722
+ this.w13_1 = width;
2723
+ this.x13_1 = height;
2724
+ this.y13_1 = rgba;
2605
2725
  var tmp = this;
2606
2726
  var tmp_0 = 0;
2607
- var tmp_1 = imul(this.width_1, this.height_1);
2727
+ var tmp_1 = imul(this.w13_1, this.x13_1);
2608
2728
  var tmp_2 = new Float64Array(tmp_1);
2609
2729
  while (tmp_0 < tmp_1) {
2610
2730
  tmp_2[tmp_0] = NaN;
2611
2731
  tmp_0 = tmp_0 + 1 | 0;
2612
2732
  }
2613
- tmp.cache_1 = tmp_2;
2614
- this.decodeCount_1 = 0;
2733
+ tmp.z13_1 = tmp_2;
2734
+ this.a14_1 = 0;
2615
2735
  }
2616
- protoOf(Tile).getElevation_exacdm_k$ = function (pixel) {
2617
- var containsUpper = this.width_1;
2618
- var containsArg = pixel.x_1;
2736
+ protoOf(Tile).b14 = function (pixel) {
2737
+ var containsUpper = this.w13_1;
2738
+ var containsArg = pixel.q13_1;
2619
2739
  // Inline function 'kotlin.require' call
2620
2740
  if (!(0 <= containsArg ? containsArg < containsUpper : false)) {
2621
- var message = 'Invalid x position: ' + pixel.x_1 + '. Must be between 0 and ' + (this.width_1 - 1 | 0);
2741
+ var message = 'Invalid x position: ' + pixel.q13_1 + '. Must be between 0 and ' + (this.w13_1 - 1 | 0);
2622
2742
  throw IllegalArgumentException_init_$Create$(toString(message));
2623
2743
  }
2624
- var containsUpper_0 = this.height_1;
2625
- var containsArg_0 = pixel.y_1;
2744
+ var containsUpper_0 = this.x13_1;
2745
+ var containsArg_0 = pixel.r13_1;
2626
2746
  // Inline function 'kotlin.require' call
2627
2747
  if (!(0 <= containsArg_0 ? containsArg_0 < containsUpper_0 : false)) {
2628
- var message_0 = 'Invalid y position: ' + pixel.y_1 + '. Must be between 0 and ' + (this.height_1 - 1 | 0);
2748
+ var message_0 = 'Invalid y position: ' + pixel.r13_1 + '. Must be between 0 and ' + (this.x13_1 - 1 | 0);
2629
2749
  throw IllegalArgumentException_init_$Create$(toString(message_0));
2630
2750
  }
2631
- var idx = imul(pixel.y_1, this.width_1) + pixel.x_1 | 0;
2632
- var cached = this.cache_1[idx];
2751
+ var idx = imul(pixel.r13_1, this.w13_1) + pixel.q13_1 | 0;
2752
+ var cached = this.z13_1[idx];
2633
2753
  if (!isNaN_0(cached))
2634
2754
  return cached;
2635
2755
  var byteOffset = imul(idx, 4);
2636
- var r = this.rgba_1[byteOffset] & 255;
2637
- var g = this.rgba_1[byteOffset + 1 | 0] & 255;
2638
- var b = this.rgba_1[byteOffset + 2 | 0] & 255;
2639
- var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_1.decodeTerrariumElevation_vmx8i4_k$(r, g, b);
2640
- this.cache_1[idx] = elevation;
2641
- this.decodeCount_1 = this.decodeCount_1 + 1 | 0;
2756
+ var r = this.y13_1[byteOffset] & 255;
2757
+ var g = this.y13_1[byteOffset + 1 | 0] & 255;
2758
+ var b = this.y13_1[byteOffset + 2 | 0] & 255;
2759
+ var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_1.m1c(r, g, b);
2760
+ this.z13_1[idx] = elevation;
2761
+ this.a14_1 = this.a14_1 + 1 | 0;
2642
2762
  return elevation;
2643
2763
  };
2644
2764
  function buildUrl($this, tc) {
2645
2765
  // Inline function 'kotlin.let' call
2646
- var it = replace(replace(replace($this.urlTemplate_1, '{z}', tc.z_1.toString()), '{x}', tc.x_1.toString()), '{y}', tc.y_1.toString());
2766
+ var it = replace(replace(replace($this.s13_1, '{z}', tc.b10_1.toString()), '{x}', tc.zz_1.toString()), '{y}', tc.a10_1.toString());
2647
2767
  return contains(it, '{bbox}') ? replace(it, '{bbox}', wmsBbox4326(tc)) : it;
2648
2768
  }
2649
2769
  function fetchAndDecodeTile$ref_0() {
2650
2770
  KFunctionImpl.call(this, 1, 2, 2);
2651
2771
  }
2652
- protoOf(fetchAndDecodeTile$ref_0).invoke_fa3hvc_k$ = function (p0, $completion) {
2772
+ protoOf(fetchAndDecodeTile$ref_0).j16 = function (p0, $completion) {
2653
2773
  return fetchAndDecodeTile(p0, $completion);
2654
2774
  };
2655
- protoOf(fetchAndDecodeTile$ref_0).invoke_qns8j1_k$ = function (p1, $completion) {
2656
- return this.invoke_fa3hvc_k$((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
2775
+ protoOf(fetchAndDecodeTile$ref_0).w7 = function (p1, $completion) {
2776
+ return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
2657
2777
  };
2658
2778
  function TileManager$cache$slambda(this$0, resultContinuation) {
2659
- this.this$0__1 = this$0;
2779
+ this.y1c_1 = this$0;
2660
2780
  CoroutineImpl.call(this, resultContinuation);
2661
2781
  }
2662
- protoOf(TileManager$cache$slambda).invoke_m1epgk_k$ = function (tc, $completion) {
2663
- var tmp = this.create_w0r0yx_k$(tc, $completion);
2664
- tmp.result_1 = Unit_instance;
2665
- tmp.exception_1 = null;
2666
- return tmp.doResume_5yljmg_k$();
2782
+ protoOf(TileManager$cache$slambda).a1d = function (tc, $completion) {
2783
+ var tmp = this.b1d(tc, $completion);
2784
+ tmp.i7_1 = Unit_instance;
2785
+ tmp.j7_1 = null;
2786
+ return tmp.o7();
2667
2787
  };
2668
- protoOf(TileManager$cache$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
2669
- return this.invoke_m1epgk_k$(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
2788
+ protoOf(TileManager$cache$slambda).w7 = function (p1, $completion) {
2789
+ return this.a1d(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
2670
2790
  };
2671
- protoOf(TileManager$cache$slambda).doResume_5yljmg_k$ = function () {
2672
- var suspendResult = this.result_1;
2791
+ protoOf(TileManager$cache$slambda).o7 = function () {
2792
+ var suspendResult = this.i7_1;
2673
2793
  $sm: do
2674
2794
  try {
2675
- var tmp = this.state_1;
2795
+ var tmp = this.g7_1;
2676
2796
  switch (tmp) {
2677
2797
  case 0:
2678
- this.exceptionState_1 = 2;
2679
- this.state_1 = 1;
2680
- suspendResult = this.this$0__1.fetcher_1(buildUrl(this.this$0__1, this.tc_1), this);
2798
+ this.h7_1 = 2;
2799
+ this.g7_1 = 1;
2800
+ suspendResult = this.y1c_1.t13_1(buildUrl(this.y1c_1, this.z1c_1), this);
2681
2801
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2682
2802
  return suspendResult;
2683
2803
  }
@@ -2687,28 +2807,28 @@
2687
2807
  var ARGUMENT = suspendResult;
2688
2808
  return Tile_init_$Create$(ARGUMENT);
2689
2809
  case 2:
2690
- throw this.exception_1;
2810
+ throw this.j7_1;
2691
2811
  }
2692
2812
  } catch ($p) {
2693
2813
  var e = $p;
2694
- if (this.exceptionState_1 === 2) {
2814
+ if (this.h7_1 === 2) {
2695
2815
  throw e;
2696
2816
  } else {
2697
- this.state_1 = this.exceptionState_1;
2698
- this.exception_1 = e;
2817
+ this.g7_1 = this.h7_1;
2818
+ this.j7_1 = e;
2699
2819
  }
2700
2820
  }
2701
2821
  while (true);
2702
2822
  };
2703
- protoOf(TileManager$cache$slambda).create_w0r0yx_k$ = function (tc, completion) {
2704
- var i = new TileManager$cache$slambda(this.this$0__1, completion);
2705
- i.tc_1 = tc;
2823
+ protoOf(TileManager$cache$slambda).b1d = function (tc, completion) {
2824
+ var i = new TileManager$cache$slambda(this.y1c_1, completion);
2825
+ i.z1c_1 = tc;
2706
2826
  return i;
2707
2827
  };
2708
2828
  function TileManager$cache$slambda_0(this$0, resultContinuation) {
2709
2829
  var i = new TileManager$cache$slambda(this$0, resultContinuation);
2710
2830
  return constructCallableReference(function (tc, $completion) {
2711
- return i.invoke_m1epgk_k$(tc, $completion);
2831
+ return i.a1d(tc, $completion);
2712
2832
  }, 1);
2713
2833
  }
2714
2834
  function TileManager(urlTemplate, cacheSize, fetcher) {
@@ -2719,13 +2839,13 @@
2719
2839
  tmp = fetcher;
2720
2840
  }
2721
2841
  fetcher = tmp;
2722
- this.urlTemplate_1 = urlTemplate;
2723
- this.fetcher_1 = fetcher;
2842
+ this.s13_1 = urlTemplate;
2843
+ this.t13_1 = fetcher;
2724
2844
  var tmp_0 = this;
2725
- tmp_0.cache_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
2845
+ tmp_0.u13_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
2726
2846
  }
2727
- protoOf(TileManager).getTile_c22khk_k$ = function (tileCoords, $completion) {
2728
- return this.cache_1.get_27lcp2_k$(tileCoords, $completion);
2847
+ protoOf(TileManager).v13 = function (tileCoords, $completion) {
2848
+ return this.u13_1.i1c(tileCoords, $completion);
2729
2849
  };
2730
2850
  function pacedTileBytesFetcher(maxRequestsPerSecond, fetch, maxAttempts, now) {
2731
2851
  var tmp;
@@ -2754,30 +2874,30 @@
2754
2874
  retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
2755
2875
  IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
2756
2876
  captureStack(this, TileFetchException);
2757
- this.url_1 = url;
2758
- this.status_1 = status;
2759
- this.retryAfterSeconds_1 = retryAfterSeconds;
2877
+ this.c1d_1 = url;
2878
+ this.d1d_1 = status;
2879
+ this.e1d_1 = retryAfterSeconds;
2760
2880
  }
2761
2881
  function monotonicMillis() {
2762
- var origin = Monotonic_instance.markNow_ns2ype_k$();
2882
+ var origin = Monotonic_instance.va();
2763
2883
  return monotonicMillis$lambda(origin);
2764
2884
  }
2765
2885
  function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
2766
2886
  CoroutineImpl.call(this, resultContinuation);
2767
- this._this__u8e3s4__1 = _this__u8e3s4;
2887
+ this.n1d_1 = _this__u8e3s4;
2768
2888
  }
2769
- protoOf($awaitTurnCOROUTINE$).doResume_5yljmg_k$ = function () {
2770
- var suspendResult = this.result_1;
2889
+ protoOf($awaitTurnCOROUTINE$).o7 = function () {
2890
+ var suspendResult = this.i7_1;
2771
2891
  $sm: do
2772
2892
  try {
2773
- var tmp = this.state_1;
2893
+ var tmp = this.g7_1;
2774
2894
  switch (tmp) {
2775
2895
  case 0:
2776
- this.exceptionState_1 = 4;
2777
- this.this1__1 = this._this__u8e3s4__1.mutex_1;
2778
- this.owner0__1 = null;
2779
- this.state_1 = 1;
2780
- suspendResult = this.this1__1.lock_ugrcvf_k$(this.owner0__1, this);
2896
+ this.h7_1 = 4;
2897
+ this.p1d_1 = this.n1d_1.s1d_1;
2898
+ this.o1d_1 = null;
2899
+ this.g7_1 = 1;
2900
+ suspendResult = this.p1d_1.rv(this.o1d_1, this);
2781
2901
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2782
2902
  return suspendResult;
2783
2903
  }
@@ -2788,116 +2908,116 @@
2788
2908
  l$ret$1: do {
2789
2909
  var tmp_0;
2790
2910
  try {
2791
- var t = toNumber(this._this__u8e3s4__1.now_1());
2792
- var b = this._this__u8e3s4__1.nextSlotMs_1;
2911
+ var t = toNumber(this.n1d_1.q1d_1());
2912
+ var b = this.n1d_1.t1d_1;
2793
2913
  var slot = Math.max(t, b);
2794
- this._this__u8e3s4__1.nextSlotMs_1 = slot + this._this__u8e3s4__1.spacingMs_1;
2914
+ this.n1d_1.t1d_1 = slot + this.n1d_1.r1d_1;
2795
2915
  tmp$ret$0 = slot - t;
2796
2916
  break l$ret$1;
2797
2917
  } catch ($p) {
2798
2918
  var tmp_1;
2799
2919
  var t_0 = $p;
2800
- this.this1__1.unlock_ulcrcl_k$(this.owner0__1);
2920
+ this.p1d_1.cv(this.o1d_1);
2801
2921
  throw t_0;
2802
2922
  }
2803
2923
  }
2804
2924
  while (false);
2805
2925
  var tmp_2 = tmp$ret$0;
2806
- this.this1__1.unlock_ulcrcl_k$(this.owner0__1);
2926
+ this.p1d_1.cv(this.o1d_1);
2807
2927
  var waitMs = tmp_2;
2808
2928
  if (waitMs > 0) {
2809
- this.state_1 = 2;
2929
+ this.g7_1 = 2;
2810
2930
  suspendResult = delay(numberToLong(Math.ceil(waitMs)), this);
2811
2931
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2812
2932
  return suspendResult;
2813
2933
  }
2814
2934
  continue $sm;
2815
2935
  } else {
2816
- this.state_1 = 3;
2936
+ this.g7_1 = 3;
2817
2937
  continue $sm;
2818
2938
  }
2819
2939
 
2820
2940
  case 2:
2821
- this.state_1 = 3;
2941
+ this.g7_1 = 3;
2822
2942
  continue $sm;
2823
2943
  case 3:
2824
2944
  return Unit_instance;
2825
2945
  case 4:
2826
- throw this.exception_1;
2946
+ throw this.j7_1;
2827
2947
  }
2828
2948
  } catch ($p_0) {
2829
2949
  var e = $p_0;
2830
- if (this.exceptionState_1 === 4) {
2950
+ if (this.h7_1 === 4) {
2831
2951
  throw e;
2832
2952
  } else {
2833
- this.state_1 = this.exceptionState_1;
2834
- this.exception_1 = e;
2953
+ this.g7_1 = this.h7_1;
2954
+ this.j7_1 = e;
2835
2955
  }
2836
2956
  }
2837
2957
  while (true);
2838
2958
  };
2839
2959
  function RequestPacer(perSecond, now) {
2840
- this.now_1 = now;
2841
- this.spacingMs_1 = 1000.0 / perSecond;
2842
- this.mutex_1 = Mutex();
2843
- this.nextSlotMs_1 = -Infinity;
2960
+ this.q1d_1 = now;
2961
+ this.r1d_1 = 1000.0 / perSecond;
2962
+ this.s1d_1 = Mutex();
2963
+ this.t1d_1 = -Infinity;
2844
2964
  }
2845
- protoOf(RequestPacer).awaitTurn_n6e5s4_k$ = function ($completion) {
2965
+ protoOf(RequestPacer).u1d = function ($completion) {
2846
2966
  var tmp = new $awaitTurnCOROUTINE$(this, $completion);
2847
- tmp.result_1 = Unit_instance;
2848
- tmp.exception_1 = null;
2849
- return tmp.doResume_5yljmg_k$();
2967
+ tmp.i7_1 = Unit_instance;
2968
+ tmp.j7_1 = null;
2969
+ return tmp.o7();
2850
2970
  };
2851
2971
  function fetchTileBytes$ref() {
2852
2972
  KFunctionImpl.call(this, 1, 2, 4);
2853
2973
  }
2854
- protoOf(fetchTileBytes$ref).invoke_vut9or_k$ = function (p0, $completion) {
2974
+ protoOf(fetchTileBytes$ref).y1d = function (p0, $completion) {
2855
2975
  return fetchTileBytes(p0, $completion);
2856
2976
  };
2857
- protoOf(fetchTileBytes$ref).invoke_qns8j1_k$ = function (p1, $completion) {
2858
- return this.invoke_vut9or_k$((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
2977
+ protoOf(fetchTileBytes$ref).w7 = function (p1, $completion) {
2978
+ return this.y1d((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
2859
2979
  };
2860
2980
  function pacedTileBytesFetcher$slambda($pacer, $fetch, $maxAttempts, resultContinuation) {
2861
- this.$pacer_1 = $pacer;
2862
- this.$fetch_1 = $fetch;
2863
- this.$maxAttempts_1 = $maxAttempts;
2981
+ this.h1e_1 = $pacer;
2982
+ this.i1e_1 = $fetch;
2983
+ this.j1e_1 = $maxAttempts;
2864
2984
  CoroutineImpl.call(this, resultContinuation);
2865
2985
  }
2866
- protoOf(pacedTileBytesFetcher$slambda).invoke_vut9or_k$ = function (url, $completion) {
2867
- var tmp = this.create_99ct7z_k$(url, $completion);
2868
- tmp.result_1 = Unit_instance;
2869
- tmp.exception_1 = null;
2870
- return tmp.doResume_5yljmg_k$();
2986
+ protoOf(pacedTileBytesFetcher$slambda).y1d = function (url, $completion) {
2987
+ var tmp = this.u16(url, $completion);
2988
+ tmp.i7_1 = Unit_instance;
2989
+ tmp.j7_1 = null;
2990
+ return tmp.o7();
2871
2991
  };
2872
- protoOf(pacedTileBytesFetcher$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
2873
- return this.invoke_vut9or_k$((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
2992
+ protoOf(pacedTileBytesFetcher$slambda).w7 = function (p1, $completion) {
2993
+ return this.y1d((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
2874
2994
  };
2875
- protoOf(pacedTileBytesFetcher$slambda).doResume_5yljmg_k$ = function () {
2876
- var suspendResult = this.result_1;
2995
+ protoOf(pacedTileBytesFetcher$slambda).o7 = function () {
2996
+ var suspendResult = this.i7_1;
2877
2997
  $sm: do
2878
2998
  try {
2879
- var tmp = this.state_1;
2999
+ var tmp = this.g7_1;
2880
3000
  switch (tmp) {
2881
3001
  case 0:
2882
- this.exceptionState_1 = 9;
2883
- this.attempt2__1 = 1;
2884
- this.bytes0__1 = null;
2885
- this.state_1 = 1;
3002
+ this.h7_1 = 9;
3003
+ this.n1e_1 = 1;
3004
+ this.l1e_1 = null;
3005
+ this.g7_1 = 1;
2886
3006
  continue $sm;
2887
3007
  case 1:
2888
- if (!(this.bytes0__1 == null)) {
2889
- this.state_1 = 8;
3008
+ if (!(this.l1e_1 == null)) {
3009
+ this.g7_1 = 8;
2890
3010
  continue $sm;
2891
3011
  }
2892
3012
 
2893
- var tmp0_safe_receiver = this.$pacer_1;
3013
+ var tmp0_safe_receiver = this.h1e_1;
2894
3014
  if (tmp0_safe_receiver == null) {
2895
- this.WHEN_RESULT3__1 = null;
2896
- this.state_1 = 3;
3015
+ this.o1e_1 = null;
3016
+ this.g7_1 = 3;
2897
3017
  continue $sm;
2898
3018
  } else {
2899
- this.state_1 = 2;
2900
- suspendResult = tmp0_safe_receiver.awaitTurn_n6e5s4_k$(this);
3019
+ this.g7_1 = 2;
3020
+ suspendResult = tmp0_safe_receiver.u1d(this);
2901
3021
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2902
3022
  return suspendResult;
2903
3023
  }
@@ -2906,13 +3026,13 @@
2906
3026
 
2907
3027
  case 2:
2908
3028
  var tmp_0 = this;
2909
- tmp_0.WHEN_RESULT3__1 = Unit_instance;
2910
- this.state_1 = 3;
3029
+ tmp_0.o1e_1 = Unit_instance;
3030
+ this.g7_1 = 3;
2911
3031
  continue $sm;
2912
3032
  case 3:
2913
- this.exceptionState_1 = 5;
2914
- this.state_1 = 4;
2915
- suspendResult = this.$fetch_1(this.url_1, this);
3033
+ this.h7_1 = 5;
3034
+ this.g7_1 = 4;
3035
+ suspendResult = this.i1e_1(this.k1e_1, this);
2916
3036
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2917
3037
  return suspendResult;
2918
3038
  }
@@ -2920,65 +3040,65 @@
2920
3040
  continue $sm;
2921
3041
  case 4:
2922
3042
  var tmp_1 = this;
2923
- this.bytes0__1 = suspendResult;
2924
- tmp_1.TRY_RESULT1__1 = Unit_instance;
2925
- this.exceptionState_1 = 9;
2926
- this.state_1 = 7;
3043
+ this.l1e_1 = suspendResult;
3044
+ tmp_1.m1e_1 = Unit_instance;
3045
+ this.h7_1 = 9;
3046
+ this.g7_1 = 7;
2927
3047
  continue $sm;
2928
3048
  case 5:
2929
- this.exceptionState_1 = 9;
2930
- var tmp_2 = this.exception_1;
3049
+ this.h7_1 = 9;
3050
+ var tmp_2 = this.j7_1;
2931
3051
  if (tmp_2 instanceof TileFetchException) {
2932
- var e = this.exception_1;
2933
- if (!(e.status_1 === 429) && !(e.status_1 === 503) || this.attempt2__1 >= this.$maxAttempts_1)
3052
+ var e = this.j7_1;
3053
+ if (!(e.d1d_1 === 429) && !(e.d1d_1 === 503) || this.n1e_1 >= this.j1e_1)
2934
3054
  throw e;
2935
- this.state_1 = 6;
2936
- var tmp1_elvis_lhs = e.retryAfterSeconds_1;
2937
- suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.attempt2__1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
3055
+ this.g7_1 = 6;
3056
+ var tmp1_elvis_lhs = e.e1d_1;
3057
+ suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.n1e_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
2938
3058
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2939
3059
  return suspendResult;
2940
3060
  }
2941
3061
  continue $sm;
2942
3062
  } else {
2943
- throw this.exception_1;
3063
+ throw this.j7_1;
2944
3064
  }
2945
3065
 
2946
3066
  case 6:
2947
3067
  var tmp_3 = this;
2948
- var _unary__edvuaz = this.attempt2__1;
2949
- this.attempt2__1 = _unary__edvuaz + 1 | 0;
2950
- tmp_3.TRY_RESULT1__1 = _unary__edvuaz;
2951
- this.state_1 = 7;
3068
+ var _unary__edvuaz = this.n1e_1;
3069
+ this.n1e_1 = _unary__edvuaz + 1 | 0;
3070
+ tmp_3.m1e_1 = _unary__edvuaz;
3071
+ this.g7_1 = 7;
2952
3072
  continue $sm;
2953
3073
  case 7:
2954
- this.exceptionState_1 = 9;
2955
- this.state_1 = 1;
3074
+ this.h7_1 = 9;
3075
+ this.g7_1 = 1;
2956
3076
  continue $sm;
2957
3077
  case 8:
2958
- return this.bytes0__1;
3078
+ return this.l1e_1;
2959
3079
  case 9:
2960
- throw this.exception_1;
3080
+ throw this.j7_1;
2961
3081
  }
2962
3082
  } catch ($p) {
2963
3083
  var e_0 = $p;
2964
- if (this.exceptionState_1 === 9) {
3084
+ if (this.h7_1 === 9) {
2965
3085
  throw e_0;
2966
3086
  } else {
2967
- this.state_1 = this.exceptionState_1;
2968
- this.exception_1 = e_0;
3087
+ this.g7_1 = this.h7_1;
3088
+ this.j7_1 = e_0;
2969
3089
  }
2970
3090
  }
2971
3091
  while (true);
2972
3092
  };
2973
- protoOf(pacedTileBytesFetcher$slambda).create_99ct7z_k$ = function (url, completion) {
2974
- var i = new pacedTileBytesFetcher$slambda(this.$pacer_1, this.$fetch_1, this.$maxAttempts_1, completion);
2975
- i.url_1 = url;
3093
+ protoOf(pacedTileBytesFetcher$slambda).u16 = function (url, completion) {
3094
+ var i = new pacedTileBytesFetcher$slambda(this.h1e_1, this.i1e_1, this.j1e_1, completion);
3095
+ i.k1e_1 = url;
2976
3096
  return i;
2977
3097
  };
2978
3098
  function pacedTileBytesFetcher$slambda_0($pacer, $fetch, $maxAttempts, resultContinuation) {
2979
3099
  var i = new pacedTileBytesFetcher$slambda($pacer, $fetch, $maxAttempts, resultContinuation);
2980
3100
  return constructCallableReference(function (url, $completion) {
2981
- return i.invoke_vut9or_k$(url, $completion);
3101
+ return i.y1d(url, $completion);
2982
3102
  }, 1);
2983
3103
  }
2984
3104
  function monotonicMillis$lambda($origin) {
@@ -2987,17 +3107,17 @@
2987
3107
  };
2988
3108
  }
2989
3109
  function TileCoordinates(x, y, z) {
2990
- this.x_1 = x;
2991
- this.y_1 = y;
2992
- this.z_1 = z;
3110
+ this.zz_1 = x;
3111
+ this.a10_1 = y;
3112
+ this.b10_1 = z;
2993
3113
  }
2994
3114
  protoOf(TileCoordinates).toString = function () {
2995
- return 'TileCoordinates(x=' + this.x_1 + ', y=' + this.y_1 + ', z=' + this.z_1 + ')';
3115
+ return 'TileCoordinates(x=' + this.zz_1 + ', y=' + this.a10_1 + ', z=' + this.b10_1 + ')';
2996
3116
  };
2997
3117
  protoOf(TileCoordinates).hashCode = function () {
2998
- var result = this.x_1;
2999
- result = imul(result, 31) + this.y_1 | 0;
3000
- result = imul(result, 31) + this.z_1 | 0;
3118
+ var result = this.zz_1;
3119
+ result = imul(result, 31) + this.a10_1 | 0;
3120
+ result = imul(result, 31) + this.b10_1 | 0;
3001
3121
  return result;
3002
3122
  };
3003
3123
  protoOf(TileCoordinates).equals = function (other) {
@@ -3005,26 +3125,26 @@
3005
3125
  return true;
3006
3126
  if (!(other instanceof TileCoordinates))
3007
3127
  return false;
3008
- if (!(this.x_1 === other.x_1))
3128
+ if (!(this.zz_1 === other.zz_1))
3009
3129
  return false;
3010
- if (!(this.y_1 === other.y_1))
3130
+ if (!(this.a10_1 === other.a10_1))
3011
3131
  return false;
3012
- if (!(this.z_1 === other.z_1))
3132
+ if (!(this.b10_1 === other.b10_1))
3013
3133
  return false;
3014
3134
  return true;
3015
3135
  };
3016
3136
  function Pixel(tile, x, y) {
3017
- this.tile_1 = tile;
3018
- this.x_1 = x;
3019
- this.y_1 = y;
3137
+ this.p13_1 = tile;
3138
+ this.q13_1 = x;
3139
+ this.r13_1 = y;
3020
3140
  }
3021
3141
  protoOf(Pixel).toString = function () {
3022
- return 'Pixel(tile=' + this.tile_1.toString() + ', x=' + this.x_1 + ', y=' + this.y_1 + ')';
3142
+ return 'Pixel(tile=' + this.p13_1.toString() + ', x=' + this.q13_1 + ', y=' + this.r13_1 + ')';
3023
3143
  };
3024
3144
  protoOf(Pixel).hashCode = function () {
3025
- var result = this.tile_1.hashCode();
3026
- result = imul(result, 31) + this.x_1 | 0;
3027
- result = imul(result, 31) + this.y_1 | 0;
3145
+ var result = this.p13_1.hashCode();
3146
+ result = imul(result, 31) + this.q13_1 | 0;
3147
+ result = imul(result, 31) + this.r13_1 | 0;
3028
3148
  return result;
3029
3149
  };
3030
3150
  protoOf(Pixel).equals = function (other) {
@@ -3032,79 +3152,79 @@
3032
3152
  return true;
3033
3153
  if (!(other instanceof Pixel))
3034
3154
  return false;
3035
- if (!this.tile_1.equals(other.tile_1))
3155
+ if (!this.p13_1.equals(other.p13_1))
3036
3156
  return false;
3037
- if (!(this.x_1 === other.x_1))
3157
+ if (!(this.q13_1 === other.q13_1))
3038
3158
  return false;
3039
- if (!(this.y_1 === other.y_1))
3159
+ if (!(this.r13_1 === other.r13_1))
3040
3160
  return false;
3041
3161
  return true;
3042
3162
  };
3043
- function PixelFloat(tile, x, y) {
3044
- this.tile_1 = tile;
3045
- this.x_1 = x;
3046
- this.y_1 = y;
3163
+ function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
3164
+ this.h14_1 = x;
3165
+ this.i14_1 = y;
3166
+ this.j14_1 = xFloat;
3167
+ this.k14_1 = yFloat;
3168
+ this.l14_1 = z;
3047
3169
  }
3048
- protoOf(PixelFloat).toString = function () {
3049
- return 'PixelFloat(tile=' + this.tile_1.toString() + ', x=' + this.x_1 + ', y=' + this.y_1 + ')';
3170
+ protoOf(TileCoordinatesFloat).toString = function () {
3171
+ return 'TileCoordinatesFloat(x=' + this.h14_1 + ', y=' + this.i14_1 + ', xFloat=' + this.j14_1 + ', yFloat=' + this.k14_1 + ', z=' + this.l14_1 + ')';
3050
3172
  };
3051
- protoOf(PixelFloat).hashCode = function () {
3052
- var result = this.tile_1.hashCode();
3053
- result = imul(result, 31) + getNumberHashCode(this.x_1) | 0;
3054
- result = imul(result, 31) + getNumberHashCode(this.y_1) | 0;
3173
+ protoOf(TileCoordinatesFloat).hashCode = function () {
3174
+ var result = this.h14_1;
3175
+ result = imul(result, 31) + this.i14_1 | 0;
3176
+ result = imul(result, 31) + getNumberHashCode(this.j14_1) | 0;
3177
+ result = imul(result, 31) + getNumberHashCode(this.k14_1) | 0;
3178
+ result = imul(result, 31) + this.l14_1 | 0;
3055
3179
  return result;
3056
3180
  };
3057
- protoOf(PixelFloat).equals = function (other) {
3181
+ protoOf(TileCoordinatesFloat).equals = function (other) {
3058
3182
  if (this === other)
3059
3183
  return true;
3060
- if (!(other instanceof PixelFloat))
3184
+ if (!(other instanceof TileCoordinatesFloat))
3185
+ return false;
3186
+ if (!(this.h14_1 === other.h14_1))
3187
+ return false;
3188
+ if (!(this.i14_1 === other.i14_1))
3061
3189
  return false;
3062
- if (!this.tile_1.equals(other.tile_1))
3190
+ if (!equals(this.j14_1, other.j14_1))
3063
3191
  return false;
3064
- if (!equals(this.x_1, other.x_1))
3192
+ if (!equals(this.k14_1, other.k14_1))
3065
3193
  return false;
3066
- if (!equals(this.y_1, other.y_1))
3194
+ if (!(this.l14_1 === other.l14_1))
3067
3195
  return false;
3068
3196
  return true;
3069
3197
  };
3070
- function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
3071
- this.x_1 = x;
3072
- this.y_1 = y;
3073
- this.xFloat_1 = xFloat;
3074
- this.yFloat_1 = yFloat;
3075
- this.z_1 = z;
3198
+ function PixelFloat(tile, x, y) {
3199
+ this.l13_1 = tile;
3200
+ this.m13_1 = x;
3201
+ this.n13_1 = y;
3076
3202
  }
3077
- protoOf(TileCoordinatesFloat).toString = function () {
3078
- return 'TileCoordinatesFloat(x=' + this.x_1 + ', y=' + this.y_1 + ', xFloat=' + this.xFloat_1 + ', yFloat=' + this.yFloat_1 + ', z=' + this.z_1 + ')';
3203
+ protoOf(PixelFloat).toString = function () {
3204
+ return 'PixelFloat(tile=' + this.l13_1.toString() + ', x=' + this.m13_1 + ', y=' + this.n13_1 + ')';
3079
3205
  };
3080
- protoOf(TileCoordinatesFloat).hashCode = function () {
3081
- var result = this.x_1;
3082
- result = imul(result, 31) + this.y_1 | 0;
3083
- result = imul(result, 31) + getNumberHashCode(this.xFloat_1) | 0;
3084
- result = imul(result, 31) + getNumberHashCode(this.yFloat_1) | 0;
3085
- result = imul(result, 31) + this.z_1 | 0;
3206
+ protoOf(PixelFloat).hashCode = function () {
3207
+ var result = this.l13_1.hashCode();
3208
+ result = imul(result, 31) + getNumberHashCode(this.m13_1) | 0;
3209
+ result = imul(result, 31) + getNumberHashCode(this.n13_1) | 0;
3086
3210
  return result;
3087
3211
  };
3088
- protoOf(TileCoordinatesFloat).equals = function (other) {
3212
+ protoOf(PixelFloat).equals = function (other) {
3089
3213
  if (this === other)
3090
3214
  return true;
3091
- if (!(other instanceof TileCoordinatesFloat))
3092
- return false;
3093
- if (!(this.x_1 === other.x_1))
3094
- return false;
3095
- if (!(this.y_1 === other.y_1))
3215
+ if (!(other instanceof PixelFloat))
3096
3216
  return false;
3097
- if (!equals(this.xFloat_1, other.xFloat_1))
3217
+ if (!this.l13_1.equals(other.l13_1))
3098
3218
  return false;
3099
- if (!equals(this.yFloat_1, other.yFloat_1))
3219
+ if (!equals(this.m13_1, other.m13_1))
3100
3220
  return false;
3101
- if (!(this.z_1 === other.z_1))
3221
+ if (!equals(this.n13_1, other.n13_1))
3102
3222
  return false;
3103
3223
  return true;
3104
3224
  };
3105
3225
  function Companion_1() {
3106
3226
  Companion_instance_2 = this;
3107
- this.ZERO_1 = new Vector3D(0.0, 0.0, 0.0);
3227
+ this.p1e_1 = new Vector3D(0.0, 0.0, 0.0);
3108
3228
  }
3109
3229
  var Companion_instance_2;
3110
3230
  function Companion_getInstance_1() {
@@ -3114,49 +3234,49 @@
3114
3234
  }
3115
3235
  function Vector3D(x, y, z) {
3116
3236
  Companion_getInstance_1();
3117
- this.x_1 = x;
3118
- this.y_1 = y;
3119
- this.z_1 = z;
3237
+ this.j11_1 = x;
3238
+ this.k11_1 = y;
3239
+ this.l11_1 = z;
3120
3240
  }
3121
- protoOf(Vector3D).distanceTo_53ug7b_k$ = function (other) {
3122
- var tmp0 = this.x_1 - other.x_1;
3241
+ protoOf(Vector3D).q1e = function (other) {
3242
+ var tmp0 = this.j11_1 - other.j11_1;
3123
3243
  // Inline function 'kotlin.math.hypot' call
3124
- var y = this.y_1 - other.y_1;
3244
+ var y = this.k11_1 - other.k11_1;
3125
3245
  var tmp0_0 = hypot(tmp0, y);
3126
3246
  // Inline function 'kotlin.math.hypot' call
3127
- var y_0 = this.z_1 - other.z_1;
3247
+ var y_0 = this.l11_1 - other.l11_1;
3128
3248
  return hypot(tmp0_0, y_0);
3129
3249
  };
3130
- protoOf(Vector3D).minus_de4vqf_k$ = function (other) {
3131
- return new Vector3D(this.x_1 - other.x_1, this.y_1 - other.y_1, this.z_1 - other.z_1);
3250
+ protoOf(Vector3D).r1e = function (other) {
3251
+ return new Vector3D(this.j11_1 - other.j11_1, this.k11_1 - other.k11_1, this.l11_1 - other.l11_1);
3132
3252
  };
3133
- protoOf(Vector3D).plus_e4szu7_k$ = function (other) {
3134
- return new Vector3D(this.x_1 + other.x_1, this.y_1 + other.y_1, this.z_1 + other.z_1);
3253
+ protoOf(Vector3D).s1e = function (other) {
3254
+ return new Vector3D(this.j11_1 + other.j11_1, this.k11_1 + other.k11_1, this.l11_1 + other.l11_1);
3135
3255
  };
3136
- protoOf(Vector3D).times_qz1dds_k$ = function (scalar) {
3137
- return new Vector3D(this.x_1 * scalar, this.y_1 * scalar, this.z_1 * scalar);
3256
+ protoOf(Vector3D).t1e = function (scalar) {
3257
+ return new Vector3D(this.j11_1 * scalar, this.k11_1 * scalar, this.l11_1 * scalar);
3138
3258
  };
3139
- protoOf(Vector3D).dot_o3y6jk_k$ = function (other) {
3140
- return this.x_1 * other.x_1 + this.y_1 * other.y_1 + this.z_1 * other.z_1;
3259
+ protoOf(Vector3D).u1e = function (other) {
3260
+ return this.j11_1 * other.j11_1 + this.k11_1 * other.k11_1 + this.l11_1 * other.l11_1;
3141
3261
  };
3142
- protoOf(Vector3D).distanceToSegment_bfq4v7_k$ = function (segmentStart, segmentEnd) {
3143
- var segmentVector = segmentEnd.minus_de4vqf_k$(segmentStart);
3144
- var segmentLengthSq = segmentVector.dot_o3y6jk_k$(segmentVector);
3262
+ protoOf(Vector3D).m11 = function (segmentStart, segmentEnd) {
3263
+ var segmentVector = segmentEnd.r1e(segmentStart);
3264
+ var segmentLengthSq = segmentVector.u1e(segmentVector);
3145
3265
  if (segmentLengthSq === 0.0)
3146
- return this.distanceTo_53ug7b_k$(segmentStart);
3147
- var pointVector = this.minus_de4vqf_k$(segmentStart);
3148
- var projection = pointVector.dot_o3y6jk_k$(segmentVector) / segmentLengthSq;
3266
+ return this.q1e(segmentStart);
3267
+ var pointVector = this.r1e(segmentStart);
3268
+ var projection = pointVector.u1e(segmentVector) / segmentLengthSq;
3149
3269
  var clamped = coerceIn_0(projection, 0.0, 1.0);
3150
- var closest = segmentStart.plus_e4szu7_k$(segmentVector.times_qz1dds_k$(clamped));
3151
- return this.distanceTo_53ug7b_k$(closest);
3270
+ var closest = segmentStart.s1e(segmentVector.t1e(clamped));
3271
+ return this.q1e(closest);
3152
3272
  };
3153
3273
  protoOf(Vector3D).toString = function () {
3154
- return 'Vector3D(x=' + this.x_1 + ', y=' + this.y_1 + ', z=' + this.z_1 + ')';
3274
+ return 'Vector3D(x=' + this.j11_1 + ', y=' + this.k11_1 + ', z=' + this.l11_1 + ')';
3155
3275
  };
3156
3276
  protoOf(Vector3D).hashCode = function () {
3157
- var result = getNumberHashCode(this.x_1);
3158
- result = imul(result, 31) + getNumberHashCode(this.y_1) | 0;
3159
- result = imul(result, 31) + getNumberHashCode(this.z_1) | 0;
3277
+ var result = getNumberHashCode(this.j11_1);
3278
+ result = imul(result, 31) + getNumberHashCode(this.k11_1) | 0;
3279
+ result = imul(result, 31) + getNumberHashCode(this.l11_1) | 0;
3160
3280
  return result;
3161
3281
  };
3162
3282
  protoOf(Vector3D).equals = function (other) {
@@ -3164,11 +3284,11 @@
3164
3284
  return true;
3165
3285
  if (!(other instanceof Vector3D))
3166
3286
  return false;
3167
- if (!equals(this.x_1, other.x_1))
3287
+ if (!equals(this.j11_1, other.j11_1))
3168
3288
  return false;
3169
- if (!equals(this.y_1, other.y_1))
3289
+ if (!equals(this.k11_1, other.k11_1))
3170
3290
  return false;
3171
- if (!equals(this.z_1, other.z_1))
3291
+ if (!equals(this.l11_1, other.l11_1))
3172
3292
  return false;
3173
3293
  return true;
3174
3294
  };
@@ -3205,25 +3325,25 @@
3205
3325
  tmp = null;
3206
3326
  } else {
3207
3327
  // Inline function 'kotlin.let' call
3208
- tmp = Companion_getInstance().byId_8gmd94_k$(tmp2_safe_receiver);
3328
+ tmp = Companion_getInstance().q17(tmp2_safe_receiver);
3209
3329
  }
3210
3330
  var tmp3_elvis_lhs = tmp;
3211
- var source = tmp3_elvis_lhs == null ? Companion_getInstance().DEFAULT_1 : tmp3_elvis_lhs;
3212
- var base = source.config_nlp9c9_k$(configDto == null ? null : configDto.zoomLevel);
3331
+ var source = tmp3_elvis_lhs == null ? Companion_getInstance().l17_1 : tmp3_elvis_lhs;
3332
+ var base = source.w17(configDto == null ? null : configDto.zoomLevel);
3213
3333
  var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
3214
- var tmp_0 = tmp6_elvis_lhs == null ? base.cacheSize_1 : tmp6_elvis_lhs;
3334
+ var tmp_0 = tmp6_elvis_lhs == null ? base.u15_1 : tmp6_elvis_lhs;
3215
3335
  var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
3216
- var tmp_1 = tmp8_elvis_lhs == null ? base.tileUrlTemplate_1 : tmp8_elvis_lhs;
3336
+ var tmp_1 = tmp8_elvis_lhs == null ? base.v15_1 : tmp8_elvis_lhs;
3217
3337
  var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
3218
- var cfg = base.copy$default_ptnzjy_k$(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.tileSize_1 : tmp10_elvis_lhs);
3338
+ var cfg = base.h17(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.w15_1 : tmp10_elvis_lhs);
3219
3339
  var primary = ElevationProvider_init_$Create$(cfg);
3220
- var tmp11_safe_receiver = source.get_fallback_j7pnit_k$();
3340
+ var tmp11_safe_receiver = source.r17();
3221
3341
  var tmp_2;
3222
3342
  if (tmp11_safe_receiver == null) {
3223
3343
  tmp_2 = null;
3224
3344
  } else {
3225
3345
  // Inline function 'kotlin.let' call
3226
- tmp_2 = primary.withFallback_7synod_k$(provider(tmp11_safe_receiver));
3346
+ tmp_2 = primary.a16(provider(tmp11_safe_receiver));
3227
3347
  }
3228
3348
  var tmp12_elvis_lhs = tmp_2;
3229
3349
  return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
@@ -3231,8 +3351,8 @@
3231
3351
  function elevationAttribution(provider) {
3232
3352
  _init_properties_ElevationJsApi_kt__1yyas4();
3233
3353
  var o = {};
3234
- o.text = provider.get_attribution_8rpdsm_k$().text_1;
3235
- o.url = provider.get_attribution_8rpdsm_k$().url_1;
3354
+ o.text = provider.c16().i17_1;
3355
+ o.url = provider.c16().j17_1;
3236
3356
  // Inline function 'kotlin.js.unsafeCast' call
3237
3357
  return o;
3238
3358
  }
@@ -3275,13 +3395,13 @@
3275
3395
  while (inductionVariable < last) {
3276
3396
  var element = keys[inductionVariable];
3277
3397
  inductionVariable = inductionVariable + 1 | 0;
3278
- if (!allowed.contains_aljjnj_k$(element)) {
3279
- destination.add_utx5q5_k$(element);
3398
+ if (!allowed.i1(element)) {
3399
+ destination.k(element);
3280
3400
  }
3281
3401
  }
3282
3402
  var unknown = destination;
3283
3403
  // Inline function 'kotlin.collections.isNotEmpty' call
3284
- if (!unknown.isEmpty_y1axqb_k$()) {
3404
+ if (!unknown.q()) {
3285
3405
  // Inline function 'kotlin.error' call
3286
3406
  var message = 'Unknown ' + dtoName + ' key(s): ' + joinToString(unknown) + ' \u2014 expected one of ' + joinToString(sorted(allowed));
3287
3407
  throw IllegalStateException_init_$Create$(toString(message));
@@ -3305,31 +3425,31 @@
3305
3425
  return o;
3306
3426
  }
3307
3427
  function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
3308
- this.$provider_1 = $provider;
3309
- this.$latitude_1 = $latitude;
3310
- this.$longitude_1 = $longitude;
3311
- this.$interpolation_1 = $interpolation;
3428
+ this.d1f_1 = $provider;
3429
+ this.e1f_1 = $latitude;
3430
+ this.f1f_1 = $longitude;
3431
+ this.g1f_1 = $interpolation;
3312
3432
  CoroutineImpl.call(this, resultContinuation);
3313
3433
  }
3314
- protoOf(getElevation$slambda).invoke_41ewvl_k$ = function ($this$promise, $completion) {
3315
- var tmp = this.create_rcuf4x_k$($this$promise, $completion);
3316
- tmp.result_1 = Unit_instance;
3317
- tmp.exception_1 = null;
3318
- return tmp.doResume_5yljmg_k$();
3434
+ protoOf(getElevation$slambda).i1f = function ($this$promise, $completion) {
3435
+ var tmp = this.m18($this$promise, $completion);
3436
+ tmp.i7_1 = Unit_instance;
3437
+ tmp.j7_1 = null;
3438
+ return tmp.o7();
3319
3439
  };
3320
- protoOf(getElevation$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
3321
- return this.invoke_41ewvl_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
3440
+ protoOf(getElevation$slambda).w7 = function (p1, $completion) {
3441
+ return this.i1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
3322
3442
  };
3323
- protoOf(getElevation$slambda).doResume_5yljmg_k$ = function () {
3324
- var suspendResult = this.result_1;
3443
+ protoOf(getElevation$slambda).o7 = function () {
3444
+ var suspendResult = this.i7_1;
3325
3445
  $sm: do
3326
3446
  try {
3327
- var tmp = this.state_1;
3447
+ var tmp = this.g7_1;
3328
3448
  switch (tmp) {
3329
3449
  case 0:
3330
- this.exceptionState_1 = 2;
3331
- this.state_1 = 1;
3332
- suspendResult = this.$provider_1.getElevation_vb6cmz_k$(this.$latitude_1, this.$longitude_1, this.$interpolation_1, this);
3450
+ this.h7_1 = 2;
3451
+ this.g7_1 = 1;
3452
+ suspendResult = this.d1f_1.i15(this.e1f_1, this.f1f_1, this.g1f_1, this);
3333
3453
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3334
3454
  return suspendResult;
3335
3455
  }
@@ -3338,80 +3458,80 @@
3338
3458
  case 1:
3339
3459
  return suspendResult;
3340
3460
  case 2:
3341
- throw this.exception_1;
3461
+ throw this.j7_1;
3342
3462
  }
3343
3463
  } catch ($p) {
3344
3464
  var e = $p;
3345
- if (this.exceptionState_1 === 2) {
3465
+ if (this.h7_1 === 2) {
3346
3466
  throw e;
3347
3467
  } else {
3348
- this.state_1 = this.exceptionState_1;
3349
- this.exception_1 = e;
3468
+ this.g7_1 = this.h7_1;
3469
+ this.j7_1 = e;
3350
3470
  }
3351
3471
  }
3352
3472
  while (true);
3353
3473
  };
3354
- protoOf(getElevation$slambda).create_rcuf4x_k$ = function ($this$promise, completion) {
3355
- var i = new getElevation$slambda(this.$provider_1, this.$latitude_1, this.$longitude_1, this.$interpolation_1, completion);
3356
- i.$this$promise_1 = $this$promise;
3474
+ protoOf(getElevation$slambda).m18 = function ($this$promise, completion) {
3475
+ var i = new getElevation$slambda(this.d1f_1, this.e1f_1, this.f1f_1, this.g1f_1, completion);
3476
+ i.h1f_1 = $this$promise;
3357
3477
  return i;
3358
3478
  };
3359
3479
  function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
3360
3480
  var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
3361
3481
  return constructCallableReference(function ($this$promise, $completion) {
3362
- return i.invoke_41ewvl_k$($this$promise, $completion);
3482
+ return i.i1f($this$promise, $completion);
3363
3483
  }, 1);
3364
3484
  }
3365
3485
  function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
3366
- this.$path_1 = $path;
3367
- this.$provider_1 = $provider;
3368
- this.$options_1 = $options;
3486
+ this.r1f_1 = $path;
3487
+ this.s1f_1 = $provider;
3488
+ this.t1f_1 = $options;
3369
3489
  CoroutineImpl.call(this, resultContinuation);
3370
3490
  }
3371
- protoOf(getElevationsAlong$slambda).invoke_k3oqbv_k$ = function ($this$promise, $completion) {
3372
- var tmp = this.create_rcuf4x_k$($this$promise, $completion);
3373
- tmp.result_1 = Unit_instance;
3374
- tmp.exception_1 = null;
3375
- return tmp.doResume_5yljmg_k$();
3491
+ protoOf(getElevationsAlong$slambda).v1f = function ($this$promise, $completion) {
3492
+ var tmp = this.m18($this$promise, $completion);
3493
+ tmp.i7_1 = Unit_instance;
3494
+ tmp.j7_1 = null;
3495
+ return tmp.o7();
3376
3496
  };
3377
- protoOf(getElevationsAlong$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
3378
- return this.invoke_k3oqbv_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
3497
+ protoOf(getElevationsAlong$slambda).w7 = function (p1, $completion) {
3498
+ return this.v1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
3379
3499
  };
3380
- protoOf(getElevationsAlong$slambda).doResume_5yljmg_k$ = function () {
3381
- var suspendResult = this.result_1;
3500
+ protoOf(getElevationsAlong$slambda).o7 = function () {
3501
+ var suspendResult = this.i7_1;
3382
3502
  $sm: do
3383
3503
  try {
3384
- var tmp = this.state_1;
3504
+ var tmp = this.g7_1;
3385
3505
  switch (tmp) {
3386
3506
  case 0:
3387
- this.exceptionState_1 = 2;
3388
- var this_0 = this.$path_1;
3507
+ this.h7_1 = 2;
3508
+ var this_0 = this.r1f_1;
3389
3509
  var destination = ArrayList_init_$Create$_0(this_0.length);
3390
3510
  var inductionVariable = 0;
3391
3511
  var last = this_0.length;
3392
3512
  while (inductionVariable < last) {
3393
3513
  var item = this_0[inductionVariable];
3394
3514
  inductionVariable = inductionVariable + 1 | 0;
3395
- destination.add_utx5q5_k$(new LatLon(item.latitude, item.longitude));
3515
+ destination.k(new LatLon(item.latitude, item.longitude));
3396
3516
  }
3397
3517
 
3398
3518
  var coords = destination;
3399
- this.state_1 = 1;
3400
- var tmp0_safe_receiver = this.$options_1;
3519
+ this.g7_1 = 1;
3520
+ var tmp0_safe_receiver = this.t1f_1;
3401
3521
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
3402
3522
  var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
3403
- var tmp2_safe_receiver = this.$options_1;
3523
+ var tmp2_safe_receiver = this.t1f_1;
3404
3524
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
3405
3525
  var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
3406
- var tmp4_safe_receiver = this.$options_1;
3526
+ var tmp4_safe_receiver = this.t1f_1;
3407
3527
  var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
3408
3528
  var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
3409
- var tmp6_safe_receiver = this.$options_1;
3529
+ var tmp6_safe_receiver = this.t1f_1;
3410
3530
  var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
3411
3531
  var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
3412
- var tmp8_safe_receiver = this.$options_1;
3532
+ var tmp8_safe_receiver = this.t1f_1;
3413
3533
  var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
3414
- suspendResult = this.$provider_1.getElevationsAlong_o6hmac_k$(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
3534
+ suspendResult = this.s1f_1.f16(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
3415
3535
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3416
3536
  return suspendResult;
3417
3537
  }
@@ -3420,39 +3540,39 @@
3420
3540
  case 1:
3421
3541
  var results = suspendResult;
3422
3542
  var tmp_4 = 0;
3423
- var tmp_5 = results.get_size_woubt6_k$();
3543
+ var tmp_5 = results.o();
3424
3544
  var tmp_6 = Array(tmp_5);
3425
3545
  while (tmp_4 < tmp_5) {
3426
3546
  var tmp_7 = tmp_4;
3427
- var c = results.get_c1px32_k$(tmp_7);
3428
- tmp_6[tmp_7] = coordsEle(c.get_latitude_feukvp_k$(), c.get_longitude_asb1fq_k$(), c.get_elevation_8fwyb8_k$());
3547
+ var c = results.p(tmp_7);
3548
+ tmp_6[tmp_7] = coordsEle(c.gz(), c.hz(), c.e11());
3429
3549
  tmp_4 = tmp_4 + 1 | 0;
3430
3550
  }
3431
3551
 
3432
3552
  return tmp_6;
3433
3553
  case 2:
3434
- throw this.exception_1;
3554
+ throw this.j7_1;
3435
3555
  }
3436
3556
  } catch ($p) {
3437
3557
  var e = $p;
3438
- if (this.exceptionState_1 === 2) {
3558
+ if (this.h7_1 === 2) {
3439
3559
  throw e;
3440
3560
  } else {
3441
- this.state_1 = this.exceptionState_1;
3442
- this.exception_1 = e;
3561
+ this.g7_1 = this.h7_1;
3562
+ this.j7_1 = e;
3443
3563
  }
3444
3564
  }
3445
3565
  while (true);
3446
3566
  };
3447
- protoOf(getElevationsAlong$slambda).create_rcuf4x_k$ = function ($this$promise, completion) {
3448
- var i = new getElevationsAlong$slambda(this.$path_1, this.$provider_1, this.$options_1, completion);
3449
- i.$this$promise_1 = $this$promise;
3567
+ protoOf(getElevationsAlong$slambda).m18 = function ($this$promise, completion) {
3568
+ var i = new getElevationsAlong$slambda(this.r1f_1, this.s1f_1, this.t1f_1, completion);
3569
+ i.u1f_1 = $this$promise;
3450
3570
  return i;
3451
3571
  };
3452
3572
  function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
3453
3573
  var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
3454
3574
  return constructCallableReference(function ($this$promise, $completion) {
3455
- return i.invoke_k3oqbv_k$($this$promise, $completion);
3575
+ return i.v1f($this$promise, $completion);
3456
3576
  }, 1);
3457
3577
  }
3458
3578
  var properties_initialized_ElevationJsApi_kt_8pvyh6;
@@ -3476,45 +3596,45 @@
3476
3596
  var tmp = KProperty0;
3477
3597
  // Inline function 'kotlin.getValue' call
3478
3598
  getPropertyCallableRef('nodeWebpDecoderPromise', 0, tmp, _get_nodeWebpDecoderPromise_$ref_s562t(), null);
3479
- return tmp0.get_value_j01efc_k$();
3599
+ return tmp0.n1();
3480
3600
  }
3481
3601
  var nodeWebpDecoderPromise$delegate;
3482
3602
  function fetchAndDecodeTile(url, $completion) {
3483
3603
  var tmp = new $fetchAndDecodeTileCOROUTINE$(url, $completion);
3484
- tmp.result_1 = Unit_instance;
3485
- tmp.exception_1 = null;
3486
- return tmp.doResume_5yljmg_k$();
3604
+ tmp.i7_1 = Unit_instance;
3605
+ tmp.j7_1 = null;
3606
+ return tmp.o7();
3487
3607
  }
3488
3608
  function decodeTileBytes(bytes, sourceUrl, $completion) {
3489
3609
  sourceUrl = sourceUrl === VOID ? '' : sourceUrl;
3490
3610
  var tmp = new $decodeTileBytesCOROUTINE$(bytes, sourceUrl, $completion);
3491
- tmp.result_1 = Unit_instance;
3492
- tmp.exception_1 = null;
3493
- return tmp.doResume_5yljmg_k$();
3611
+ tmp.i7_1 = Unit_instance;
3612
+ tmp.j7_1 = null;
3613
+ return tmp.o7();
3494
3614
  }
3495
3615
  function decodeNode(url, $completion) {
3496
3616
  var tmp = new $decodeNodeCOROUTINE$(url, $completion);
3497
- tmp.result_1 = Unit_instance;
3498
- tmp.exception_1 = null;
3499
- return tmp.doResume_5yljmg_k$();
3617
+ tmp.i7_1 = Unit_instance;
3618
+ tmp.j7_1 = null;
3619
+ return tmp.o7();
3500
3620
  }
3501
3621
  function decodeBrowser(url, $completion) {
3502
3622
  var tmp = new $decodeBrowserCOROUTINE$(url, $completion);
3503
- tmp.result_1 = Unit_instance;
3504
- tmp.exception_1 = null;
3505
- return tmp.doResume_5yljmg_k$();
3623
+ tmp.i7_1 = Unit_instance;
3624
+ tmp.j7_1 = null;
3625
+ return tmp.o7();
3506
3626
  }
3507
3627
  function decodeBytesNode(bytes, sourceUrl, $completion) {
3508
3628
  var tmp = new $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, $completion);
3509
- tmp.result_1 = Unit_instance;
3510
- tmp.exception_1 = null;
3511
- return tmp.doResume_5yljmg_k$();
3629
+ tmp.i7_1 = Unit_instance;
3630
+ tmp.j7_1 = null;
3631
+ return tmp.o7();
3512
3632
  }
3513
3633
  function decodeBlob(blob, sourceUrl, $completion) {
3514
3634
  var tmp = new $decodeBlobCOROUTINE$(blob, sourceUrl, $completion);
3515
- tmp.result_1 = Unit_instance;
3516
- tmp.exception_1 = null;
3517
- return tmp.doResume_5yljmg_k$();
3635
+ tmp.i7_1 = Unit_instance;
3636
+ tmp.j7_1 = null;
3637
+ return tmp.o7();
3518
3638
  }
3519
3639
  function blobOf(bytes) {
3520
3640
  _init_properties_TileFetcher_js_kt__7a2f1e();
@@ -3566,9 +3686,9 @@
3566
3686
  }
3567
3687
  function decodeWebpNode(buffer, $completion) {
3568
3688
  var tmp = new $decodeWebpNodeCOROUTINE$(buffer, $completion);
3569
- tmp.result_1 = Unit_instance;
3570
- tmp.exception_1 = null;
3571
- return tmp.doResume_5yljmg_k$();
3689
+ tmp.i7_1 = Unit_instance;
3690
+ tmp.j7_1 = null;
3691
+ return tmp.o7();
3572
3692
  }
3573
3693
  function fetchUrlBrowser(url) {
3574
3694
  _init_properties_TileFetcher_js_kt__7a2f1e();
@@ -3577,9 +3697,9 @@
3577
3697
  }
3578
3698
  function fetchTileBytes(url, $completion) {
3579
3699
  var tmp = new $fetchTileBytesCOROUTINE$(url, $completion);
3580
- tmp.result_1 = Unit_instance;
3581
- tmp.exception_1 = null;
3582
- return tmp.doResume_5yljmg_k$();
3700
+ tmp.i7_1 = Unit_instance;
3701
+ tmp.j7_1 = null;
3702
+ return tmp.o7();
3583
3703
  }
3584
3704
  function nodeWebpDecoderPromise$delegate$lambda() {
3585
3705
  _init_properties_TileFetcher_js_kt__7a2f1e();
@@ -3606,26 +3726,26 @@
3606
3726
  }
3607
3727
  function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
3608
3728
  CoroutineImpl.call(this, resultContinuation);
3609
- this.url_1 = url;
3729
+ this.e1g_1 = url;
3610
3730
  }
3611
- protoOf($fetchAndDecodeTileCOROUTINE$).doResume_5yljmg_k$ = function () {
3612
- var suspendResult = this.result_1;
3731
+ protoOf($fetchAndDecodeTileCOROUTINE$).o7 = function () {
3732
+ var suspendResult = this.i7_1;
3613
3733
  $sm: do
3614
3734
  try {
3615
- var tmp = this.state_1;
3735
+ var tmp = this.g7_1;
3616
3736
  switch (tmp) {
3617
3737
  case 0:
3618
- this.exceptionState_1 = 4;
3738
+ this.h7_1 = 4;
3619
3739
  if (get_isNode()) {
3620
- this.state_1 = 2;
3621
- suspendResult = decodeNode(this.url_1, this);
3740
+ this.g7_1 = 2;
3741
+ suspendResult = decodeNode(this.e1g_1, this);
3622
3742
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3623
3743
  return suspendResult;
3624
3744
  }
3625
3745
  continue $sm;
3626
3746
  } else {
3627
- this.state_1 = 1;
3628
- suspendResult = decodeBrowser(this.url_1, this);
3747
+ this.g7_1 = 1;
3748
+ suspendResult = decodeBrowser(this.e1g_1, this);
3629
3749
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3630
3750
  return suspendResult;
3631
3751
  }
@@ -3633,52 +3753,52 @@
3633
3753
  }
3634
3754
 
3635
3755
  case 1:
3636
- this.WHEN_RESULT0__1 = suspendResult;
3637
- this.state_1 = 3;
3756
+ this.f1g_1 = suspendResult;
3757
+ this.g7_1 = 3;
3638
3758
  continue $sm;
3639
3759
  case 2:
3640
- this.WHEN_RESULT0__1 = suspendResult;
3641
- this.state_1 = 3;
3760
+ this.f1g_1 = suspendResult;
3761
+ this.g7_1 = 3;
3642
3762
  continue $sm;
3643
3763
  case 3:
3644
- return this.WHEN_RESULT0__1;
3764
+ return this.f1g_1;
3645
3765
  case 4:
3646
- throw this.exception_1;
3766
+ throw this.j7_1;
3647
3767
  }
3648
3768
  } catch ($p) {
3649
3769
  var e = $p;
3650
- if (this.exceptionState_1 === 4) {
3770
+ if (this.h7_1 === 4) {
3651
3771
  throw e;
3652
3772
  } else {
3653
- this.state_1 = this.exceptionState_1;
3654
- this.exception_1 = e;
3773
+ this.g7_1 = this.h7_1;
3774
+ this.j7_1 = e;
3655
3775
  }
3656
3776
  }
3657
3777
  while (true);
3658
3778
  };
3659
3779
  function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
3660
3780
  CoroutineImpl.call(this, resultContinuation);
3661
- this.bytes_1 = bytes;
3662
- this.sourceUrl_1 = sourceUrl;
3781
+ this.o1g_1 = bytes;
3782
+ this.p1g_1 = sourceUrl;
3663
3783
  }
3664
- protoOf($decodeTileBytesCOROUTINE$).doResume_5yljmg_k$ = function () {
3665
- var suspendResult = this.result_1;
3784
+ protoOf($decodeTileBytesCOROUTINE$).o7 = function () {
3785
+ var suspendResult = this.i7_1;
3666
3786
  $sm: do
3667
3787
  try {
3668
- var tmp = this.state_1;
3788
+ var tmp = this.g7_1;
3669
3789
  switch (tmp) {
3670
3790
  case 0:
3671
- this.exceptionState_1 = 4;
3791
+ this.h7_1 = 4;
3672
3792
  if (get_isNode()) {
3673
- this.state_1 = 2;
3674
- suspendResult = decodeBytesNode(this.bytes_1, this.sourceUrl_1, this);
3793
+ this.g7_1 = 2;
3794
+ suspendResult = decodeBytesNode(this.o1g_1, this.p1g_1, this);
3675
3795
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3676
3796
  return suspendResult;
3677
3797
  }
3678
3798
  continue $sm;
3679
3799
  } else {
3680
- this.state_1 = 1;
3681
- suspendResult = decodeBlob(blobOf(this.bytes_1), this.sourceUrl_1, this);
3800
+ this.g7_1 = 1;
3801
+ suspendResult = decodeBlob(blobOf(this.o1g_1), this.p1g_1, this);
3682
3802
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3683
3803
  return suspendResult;
3684
3804
  }
@@ -3686,43 +3806,43 @@
3686
3806
  }
3687
3807
 
3688
3808
  case 1:
3689
- this.WHEN_RESULT0__1 = suspendResult;
3690
- this.state_1 = 3;
3809
+ this.q1g_1 = suspendResult;
3810
+ this.g7_1 = 3;
3691
3811
  continue $sm;
3692
3812
  case 2:
3693
- this.WHEN_RESULT0__1 = suspendResult;
3694
- this.state_1 = 3;
3813
+ this.q1g_1 = suspendResult;
3814
+ this.g7_1 = 3;
3695
3815
  continue $sm;
3696
3816
  case 3:
3697
- return this.WHEN_RESULT0__1;
3817
+ return this.q1g_1;
3698
3818
  case 4:
3699
- throw this.exception_1;
3819
+ throw this.j7_1;
3700
3820
  }
3701
3821
  } catch ($p) {
3702
3822
  var e = $p;
3703
- if (this.exceptionState_1 === 4) {
3823
+ if (this.h7_1 === 4) {
3704
3824
  throw e;
3705
3825
  } else {
3706
- this.state_1 = this.exceptionState_1;
3707
- this.exception_1 = e;
3826
+ this.g7_1 = this.h7_1;
3827
+ this.j7_1 = e;
3708
3828
  }
3709
3829
  }
3710
3830
  while (true);
3711
3831
  };
3712
3832
  function $decodeNodeCOROUTINE$(url, resultContinuation) {
3713
3833
  CoroutineImpl.call(this, resultContinuation);
3714
- this.url_1 = url;
3834
+ this.z1g_1 = url;
3715
3835
  }
3716
- protoOf($decodeNodeCOROUTINE$).doResume_5yljmg_k$ = function () {
3717
- var suspendResult = this.result_1;
3836
+ protoOf($decodeNodeCOROUTINE$).o7 = function () {
3837
+ var suspendResult = this.i7_1;
3718
3838
  $sm: do
3719
3839
  try {
3720
- var tmp = this.state_1;
3840
+ var tmp = this.g7_1;
3721
3841
  switch (tmp) {
3722
3842
  case 0:
3723
- this.exceptionState_1 = 4;
3724
- this.state_1 = 1;
3725
- suspendResult = await_0(fetchUrlNode(this.url_1), this);
3843
+ this.h7_1 = 4;
3844
+ this.g7_1 = 1;
3845
+ suspendResult = await_0(fetchUrlNode(this.z1g_1), this);
3726
3846
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3727
3847
  return suspendResult;
3728
3848
  }
@@ -3730,8 +3850,8 @@
3730
3850
  continue $sm;
3731
3851
  case 1:
3732
3852
  var res = suspendResult;
3733
- requireOk(res, this.url_1);
3734
- this.state_1 = 2;
3853
+ requireOk(res, this.z1g_1);
3854
+ this.g7_1 = 2;
3735
3855
  suspendResult = await_0(responseArrayBuffer(res), this);
3736
3856
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3737
3857
  return suspendResult;
@@ -3740,7 +3860,7 @@
3740
3860
  continue $sm;
3741
3861
  case 2:
3742
3862
  var ab = suspendResult;
3743
- this.state_1 = 3;
3863
+ this.g7_1 = 3;
3744
3864
  suspendResult = decodeWebpNode(ab, this);
3745
3865
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3746
3866
  return suspendResult;
@@ -3751,33 +3871,33 @@
3751
3871
  var ARGUMENT = suspendResult;
3752
3872
  return rawTileFromJsquash(ARGUMENT);
3753
3873
  case 4:
3754
- throw this.exception_1;
3874
+ throw this.j7_1;
3755
3875
  }
3756
3876
  } catch ($p) {
3757
3877
  var e = $p;
3758
- if (this.exceptionState_1 === 4) {
3878
+ if (this.h7_1 === 4) {
3759
3879
  throw e;
3760
3880
  } else {
3761
- this.state_1 = this.exceptionState_1;
3762
- this.exception_1 = e;
3881
+ this.g7_1 = this.h7_1;
3882
+ this.j7_1 = e;
3763
3883
  }
3764
3884
  }
3765
3885
  while (true);
3766
3886
  };
3767
3887
  function $decodeBrowserCOROUTINE$(url, resultContinuation) {
3768
3888
  CoroutineImpl.call(this, resultContinuation);
3769
- this.url_1 = url;
3889
+ this.i1h_1 = url;
3770
3890
  }
3771
- protoOf($decodeBrowserCOROUTINE$).doResume_5yljmg_k$ = function () {
3772
- var suspendResult = this.result_1;
3891
+ protoOf($decodeBrowserCOROUTINE$).o7 = function () {
3892
+ var suspendResult = this.i7_1;
3773
3893
  $sm: do
3774
3894
  try {
3775
- var tmp = this.state_1;
3895
+ var tmp = this.g7_1;
3776
3896
  switch (tmp) {
3777
3897
  case 0:
3778
- this.exceptionState_1 = 4;
3779
- this.state_1 = 1;
3780
- suspendResult = await_0(fetchUrlBrowser(this.url_1), this);
3898
+ this.h7_1 = 4;
3899
+ this.g7_1 = 1;
3900
+ suspendResult = await_0(fetchUrlBrowser(this.i1h_1), this);
3781
3901
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3782
3902
  return suspendResult;
3783
3903
  }
@@ -3785,8 +3905,8 @@
3785
3905
  continue $sm;
3786
3906
  case 1:
3787
3907
  var res = suspendResult;
3788
- requireOk(res, this.url_1);
3789
- this.state_1 = 2;
3908
+ requireOk(res, this.i1h_1);
3909
+ this.g7_1 = 2;
3790
3910
  suspendResult = await_0(res.blob(), this);
3791
3911
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3792
3912
  return suspendResult;
@@ -3795,8 +3915,8 @@
3795
3915
  continue $sm;
3796
3916
  case 2:
3797
3917
  var ARGUMENT = suspendResult;
3798
- this.state_1 = 3;
3799
- suspendResult = decodeBlob(ARGUMENT, this.url_1, this);
3918
+ this.g7_1 = 3;
3919
+ suspendResult = decodeBlob(ARGUMENT, this.i1h_1, this);
3800
3920
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3801
3921
  return suspendResult;
3802
3922
  }
@@ -3805,36 +3925,36 @@
3805
3925
  case 3:
3806
3926
  return suspendResult;
3807
3927
  case 4:
3808
- throw this.exception_1;
3928
+ throw this.j7_1;
3809
3929
  }
3810
3930
  } catch ($p) {
3811
3931
  var e = $p;
3812
- if (this.exceptionState_1 === 4) {
3932
+ if (this.h7_1 === 4) {
3813
3933
  throw e;
3814
3934
  } else {
3815
- this.state_1 = this.exceptionState_1;
3816
- this.exception_1 = e;
3935
+ this.g7_1 = this.h7_1;
3936
+ this.j7_1 = e;
3817
3937
  }
3818
3938
  }
3819
3939
  while (true);
3820
3940
  };
3821
3941
  function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
3822
3942
  CoroutineImpl.call(this, resultContinuation);
3823
- this.bytes_1 = bytes;
3824
- this.sourceUrl_1 = sourceUrl;
3943
+ this.r1h_1 = bytes;
3944
+ this.s1h_1 = sourceUrl;
3825
3945
  }
3826
- protoOf($decodeBytesNodeCOROUTINE$).doResume_5yljmg_k$ = function () {
3827
- var suspendResult = this.result_1;
3946
+ protoOf($decodeBytesNodeCOROUTINE$).o7 = function () {
3947
+ var suspendResult = this.i7_1;
3828
3948
  $sm: do
3829
3949
  try {
3830
- var tmp = this.state_1;
3950
+ var tmp = this.g7_1;
3831
3951
  switch (tmp) {
3832
3952
  case 0:
3833
- this.exceptionState_1 = 4;
3834
- var view = this.bytes_1;
3953
+ this.h7_1 = 4;
3954
+ var view = this.r1h_1;
3835
3955
  var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
3836
- this.exceptionState_1 = 2;
3837
- this.state_1 = 1;
3956
+ this.h7_1 = 2;
3957
+ this.g7_1 = 1;
3838
3958
  suspendResult = decodeWebpNode(buffer, this);
3839
3959
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3840
3960
  return suspendResult;
@@ -3842,17 +3962,17 @@
3842
3962
 
3843
3963
  continue $sm;
3844
3964
  case 1:
3845
- this.TRY_RESULT0__1 = suspendResult;
3846
- this.exceptionState_1 = 4;
3847
- this.state_1 = 3;
3965
+ this.t1h_1 = suspendResult;
3966
+ this.h7_1 = 4;
3967
+ this.g7_1 = 3;
3848
3968
  continue $sm;
3849
3969
  case 2:
3850
- this.exceptionState_1 = 4;
3851
- var tmp_0 = this.exception_1;
3970
+ this.h7_1 = 4;
3971
+ var tmp_0 = this.j7_1;
3852
3972
  if (tmp_0 instanceof Error) {
3853
- var e = this.exception_1;
3973
+ var e = this.j7_1;
3854
3974
  var tmp_1 = this;
3855
- var this_0 = this.sourceUrl_1;
3975
+ var this_0 = this.s1h_1;
3856
3976
  var tmp_2;
3857
3977
  if (charSequenceLength(this_0) === 0) {
3858
3978
  tmp_2 = '<unnamed bytes>';
@@ -3862,60 +3982,60 @@
3862
3982
  var message = 'Cannot decode tile at ' + tmp_2 + ': ' + e.message;
3863
3983
  throw IllegalStateException_init_$Create$(toString(message));
3864
3984
  } else {
3865
- throw this.exception_1;
3985
+ throw this.j7_1;
3866
3986
  }
3867
3987
 
3868
3988
  case 3:
3869
- this.exceptionState_1 = 4;
3870
- var image = this.TRY_RESULT0__1;
3989
+ this.h7_1 = 4;
3990
+ var image = this.t1h_1;
3871
3991
  return rawTileFromJsquash(image);
3872
3992
  case 4:
3873
- throw this.exception_1;
3993
+ throw this.j7_1;
3874
3994
  }
3875
3995
  } catch ($p) {
3876
3996
  var e_0 = $p;
3877
- if (this.exceptionState_1 === 4) {
3997
+ if (this.h7_1 === 4) {
3878
3998
  throw e_0;
3879
3999
  } else {
3880
- this.state_1 = this.exceptionState_1;
3881
- this.exception_1 = e_0;
4000
+ this.g7_1 = this.h7_1;
4001
+ this.j7_1 = e_0;
3882
4002
  }
3883
4003
  }
3884
4004
  while (true);
3885
4005
  };
3886
4006
  function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
3887
4007
  CoroutineImpl.call(this, resultContinuation);
3888
- this.blob_1 = blob;
3889
- this.sourceUrl_1 = sourceUrl;
4008
+ this.c1i_1 = blob;
4009
+ this.d1i_1 = sourceUrl;
3890
4010
  }
3891
- protoOf($decodeBlobCOROUTINE$).doResume_5yljmg_k$ = function () {
3892
- var suspendResult = this.result_1;
4011
+ protoOf($decodeBlobCOROUTINE$).o7 = function () {
4012
+ var suspendResult = this.i7_1;
3893
4013
  $sm: do
3894
4014
  try {
3895
- var tmp = this.state_1;
4015
+ var tmp = this.g7_1;
3896
4016
  switch (tmp) {
3897
4017
  case 0:
3898
- this.exceptionState_1 = 3;
3899
- this.exceptionState_1 = 2;
3900
- this.state_1 = 1;
3901
- suspendResult = await_0(window.createImageBitmap(this.blob_1), this);
4018
+ this.h7_1 = 3;
4019
+ this.h7_1 = 2;
4020
+ this.g7_1 = 1;
4021
+ suspendResult = await_0(window.createImageBitmap(this.c1i_1), this);
3902
4022
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3903
4023
  return suspendResult;
3904
4024
  }
3905
4025
 
3906
4026
  continue $sm;
3907
4027
  case 1:
3908
- this.TRY_RESULT0__1 = suspendResult;
3909
- this.exceptionState_1 = 3;
3910
- this.state_1 = 4;
4028
+ this.e1i_1 = suspendResult;
4029
+ this.h7_1 = 3;
4030
+ this.g7_1 = 4;
3911
4031
  continue $sm;
3912
4032
  case 2:
3913
- this.exceptionState_1 = 3;
3914
- var tmp_0 = this.exception_1;
4033
+ this.h7_1 = 3;
4034
+ var tmp_0 = this.j7_1;
3915
4035
  if (tmp_0 instanceof Error) {
3916
- var e = this.exception_1;
4036
+ var e = this.j7_1;
3917
4037
  var tmp_1 = this;
3918
- var this_0 = this.sourceUrl_1;
4038
+ var this_0 = this.d1i_1;
3919
4039
  var tmp_2;
3920
4040
  if (charSequenceLength(this_0) === 0) {
3921
4041
  tmp_2 = '<unnamed bytes>';
@@ -3925,14 +4045,14 @@
3925
4045
  var message = 'Cannot decode tile at ' + tmp_2 + ': ' + e.message;
3926
4046
  throw IllegalStateException_init_$Create$(toString(message));
3927
4047
  } else {
3928
- throw this.exception_1;
4048
+ throw this.j7_1;
3929
4049
  }
3930
4050
 
3931
4051
  case 3:
3932
- throw this.exception_1;
4052
+ throw this.j7_1;
3933
4053
  case 4:
3934
- this.exceptionState_1 = 3;
3935
- var bitmap = this.TRY_RESULT0__1;
4054
+ this.h7_1 = 3;
4055
+ var bitmap = this.e1i_1;
3936
4056
  l$ret$3: do {
3937
4057
  var tmp$ret$0;
3938
4058
  l$ret$1: do {
@@ -3969,28 +4089,28 @@
3969
4089
  }
3970
4090
  } catch ($p_0) {
3971
4091
  var e_0 = $p_0;
3972
- if (this.exceptionState_1 === 3) {
4092
+ if (this.h7_1 === 3) {
3973
4093
  throw e_0;
3974
4094
  } else {
3975
- this.state_1 = this.exceptionState_1;
3976
- this.exception_1 = e_0;
4095
+ this.g7_1 = this.h7_1;
4096
+ this.j7_1 = e_0;
3977
4097
  }
3978
4098
  }
3979
4099
  while (true);
3980
4100
  };
3981
4101
  function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
3982
4102
  CoroutineImpl.call(this, resultContinuation);
3983
- this.buffer_1 = buffer;
4103
+ this.n1i_1 = buffer;
3984
4104
  }
3985
- protoOf($decodeWebpNodeCOROUTINE$).doResume_5yljmg_k$ = function () {
3986
- var suspendResult = this.result_1;
4105
+ protoOf($decodeWebpNodeCOROUTINE$).o7 = function () {
4106
+ var suspendResult = this.i7_1;
3987
4107
  $sm: do
3988
4108
  try {
3989
- var tmp = this.state_1;
4109
+ var tmp = this.g7_1;
3990
4110
  switch (tmp) {
3991
4111
  case 0:
3992
- this.exceptionState_1 = 3;
3993
- this.state_1 = 1;
4112
+ this.h7_1 = 3;
4113
+ this.g7_1 = 1;
3994
4114
  suspendResult = await_0(get_nodeWebpDecoderPromise(), this);
3995
4115
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3996
4116
  return suspendResult;
@@ -3999,8 +4119,8 @@
3999
4119
  continue $sm;
4000
4120
  case 1:
4001
4121
  var decode = suspendResult;
4002
- var resultPromise = decode(this.buffer_1);
4003
- this.state_1 = 2;
4122
+ var resultPromise = decode(this.n1i_1);
4123
+ this.g7_1 = 2;
4004
4124
  suspendResult = await_0(resultPromise, this);
4005
4125
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4006
4126
  return suspendResult;
@@ -4010,41 +4130,41 @@
4010
4130
  case 2:
4011
4131
  return suspendResult;
4012
4132
  case 3:
4013
- throw this.exception_1;
4133
+ throw this.j7_1;
4014
4134
  }
4015
4135
  } catch ($p) {
4016
4136
  var e = $p;
4017
- if (this.exceptionState_1 === 3) {
4137
+ if (this.h7_1 === 3) {
4018
4138
  throw e;
4019
4139
  } else {
4020
- this.state_1 = this.exceptionState_1;
4021
- this.exception_1 = e;
4140
+ this.g7_1 = this.h7_1;
4141
+ this.j7_1 = e;
4022
4142
  }
4023
4143
  }
4024
4144
  while (true);
4025
4145
  };
4026
4146
  function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
4027
4147
  CoroutineImpl.call(this, resultContinuation);
4028
- this.url_1 = url;
4148
+ this.w1i_1 = url;
4029
4149
  }
4030
- protoOf($fetchTileBytesCOROUTINE$).doResume_5yljmg_k$ = function () {
4031
- var suspendResult = this.result_1;
4150
+ protoOf($fetchTileBytesCOROUTINE$).o7 = function () {
4151
+ var suspendResult = this.i7_1;
4032
4152
  $sm: do
4033
4153
  try {
4034
- var tmp = this.state_1;
4154
+ var tmp = this.g7_1;
4035
4155
  switch (tmp) {
4036
4156
  case 0:
4037
- this.exceptionState_1 = 5;
4157
+ this.h7_1 = 5;
4038
4158
  if (get_isNode()) {
4039
- this.state_1 = 2;
4040
- suspendResult = await_0(fetchUrlNode(this.url_1), this);
4159
+ this.g7_1 = 2;
4160
+ suspendResult = await_0(fetchUrlNode(this.w1i_1), this);
4041
4161
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4042
4162
  return suspendResult;
4043
4163
  }
4044
4164
  continue $sm;
4045
4165
  } else {
4046
- this.state_1 = 1;
4047
- suspendResult = await_0(fetchUrlBrowser(this.url_1), this);
4166
+ this.g7_1 = 1;
4167
+ suspendResult = await_0(fetchUrlBrowser(this.w1i_1), this);
4048
4168
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4049
4169
  return suspendResult;
4050
4170
  }
@@ -4052,17 +4172,17 @@
4052
4172
  }
4053
4173
 
4054
4174
  case 1:
4055
- this.WHEN_RESULT0__1 = suspendResult;
4056
- this.state_1 = 3;
4175
+ this.x1i_1 = suspendResult;
4176
+ this.g7_1 = 3;
4057
4177
  continue $sm;
4058
4178
  case 2:
4059
- this.WHEN_RESULT0__1 = suspendResult;
4060
- this.state_1 = 3;
4179
+ this.x1i_1 = suspendResult;
4180
+ this.g7_1 = 3;
4061
4181
  continue $sm;
4062
4182
  case 3:
4063
- var res = this.WHEN_RESULT0__1;
4064
- requireOk(res, this.url_1);
4065
- this.state_1 = 4;
4183
+ var res = this.x1i_1;
4184
+ requireOk(res, this.w1i_1);
4185
+ this.g7_1 = 4;
4066
4186
  suspendResult = await_0(responseArrayBuffer(res), this);
4067
4187
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4068
4188
  return suspendResult;
@@ -4073,15 +4193,15 @@
4073
4193
  var ab = suspendResult;
4074
4194
  return new Int8Array(ab);
4075
4195
  case 5:
4076
- throw this.exception_1;
4196
+ throw this.j7_1;
4077
4197
  }
4078
4198
  } catch ($p) {
4079
4199
  var e = $p;
4080
- if (this.exceptionState_1 === 5) {
4200
+ if (this.h7_1 === 5) {
4081
4201
  throw e;
4082
4202
  } else {
4083
- this.state_1 = this.exceptionState_1;
4084
- this.exception_1 = e;
4203
+ this.g7_1 = this.h7_1;
4204
+ this.j7_1 = e;
4085
4205
  }
4086
4206
  }
4087
4207
  while (true);
@@ -4098,13 +4218,13 @@
4098
4218
  function fetchAndDecodeTile$ref_1() {
4099
4219
  var i = new fetchAndDecodeTile$ref();
4100
4220
  return constructCallableReference(function (p0, $completion) {
4101
- return i.invoke_fa3hvc_k$(p0, $completion);
4221
+ return i.j16(p0, $completion);
4102
4222
  }, 1, 1, 2, 'fetchAndDecodeTile');
4103
4223
  }
4104
4224
  function fetchTileBytes$ref_0() {
4105
4225
  var i = new fetchTileBytes$ref();
4106
4226
  return constructCallableReference(function (p0, $completion) {
4107
- return i.invoke_vut9or_k$(p0, $completion);
4227
+ return i.y1d(p0, $completion);
4108
4228
  }, 1, 1, 4, 'fetchTileBytes');
4109
4229
  }
4110
4230
  //region block: init