@glandais/vcyclist-elevation 0.0.0 → 1.1.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.
@@ -18,39 +18,39 @@
18
18
  var imul = Math.imul;
19
19
  var hypot = Math.hypot;
20
20
  var VOID = kotlin_kotlin.$_$.a;
21
- var protoOf = kotlin_kotlin.$_$.n3;
21
+ var protoOf = kotlin_kotlin.$_$.p3;
22
22
  var getNumberHashCode = kotlin_kotlin.$_$.a3;
23
23
  var getBooleanHashCode = kotlin_kotlin.$_$.z2;
24
24
  var equals = kotlin_kotlin.$_$.y2;
25
- var initMetadataForClass = kotlin_kotlin.$_$.d3;
25
+ var initMetadataForClass = kotlin_kotlin.$_$.e3;
26
26
  var numberToLong = kotlin_kotlin.$_$.s2;
27
27
  var toNumber = kotlin_kotlin.$_$.u2;
28
28
  var CoroutineImpl = kotlin_kotlin.$_$.h2;
29
29
  var Unit_instance = kotlin_kotlin.$_$.e;
30
- var THROW_CCE = kotlin_kotlin.$_$.a4;
30
+ var THROW_CCE = kotlin_kotlin.$_$.d4;
31
31
  var MutableEntry = kotlin_kotlin.$_$.f1;
32
- var isInterface = kotlin_kotlin.$_$.k3;
32
+ var isInterface = kotlin_kotlin.$_$.l3;
33
33
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.s1;
34
- var initMetadataForLambda = kotlin_kotlin.$_$.i3;
34
+ var initMetadataForLambda = kotlin_kotlin.$_$.j3;
35
35
  var emptyList = kotlin_kotlin.$_$.l1;
36
36
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.j;
37
37
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
38
38
  var toList = kotlin_kotlin.$_$.q1;
39
39
  var KtList = kotlin_kotlin.$_$.d1;
40
- var initMetadataForCoroutine = kotlin_kotlin.$_$.f3;
41
- var toString = kotlin_kotlin.$_$.o3;
40
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.g3;
41
+ var toString = kotlin_kotlin.$_$.q3;
42
42
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.r;
43
43
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
44
44
  var listOf = kotlin_kotlin.$_$.n1;
45
- var numberToInt = kotlin_kotlin.$_$.l3;
46
- var initMetadataForObject = kotlin_kotlin.$_$.j3;
45
+ var numberToInt = kotlin_kotlin.$_$.n3;
46
+ var initMetadataForObject = kotlin_kotlin.$_$.k3;
47
47
  var toList_0 = kotlin_kotlin.$_$.p1;
48
48
  var get_lastIndex = kotlin_kotlin.$_$.m1;
49
49
  var checkBuilderCapacity = kotlin_kotlin.$_$.g1;
50
50
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t;
51
- var coerceIn = kotlin_kotlin.$_$.r3;
52
- var initMetadataForFunctionReference = kotlin_kotlin.$_$.g3;
53
- var getStringHashCode = kotlin_kotlin.$_$.b3;
51
+ var coerceIn = kotlin_kotlin.$_$.t3;
52
+ var initMetadataForFunctionReference = kotlin_kotlin.$_$.h3;
53
+ var getStringHashCode = kotlin_kotlin.$_$.c3;
54
54
  var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
55
55
  var Semaphore = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
56
56
  var collectionSizeOrDefault = kotlin_kotlin.$_$.h1;
@@ -62,16 +62,20 @@
62
62
  var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
63
63
  var contentEquals = kotlin_kotlin.$_$.i1;
64
64
  var contentHashCode = kotlin_kotlin.$_$.j1;
65
- var objectCreate = kotlin_kotlin.$_$.m3;
66
- var round = kotlin_kotlin.$_$.p3;
67
- var initMetadataForCompanion = kotlin_kotlin.$_$.e3;
68
- var isNaN_0 = kotlin_kotlin.$_$.g4;
69
- var replace = kotlin_kotlin.$_$.t3;
70
- var coerceIn_0 = kotlin_kotlin.$_$.q3;
65
+ var objectCreate = kotlin_kotlin.$_$.o3;
66
+ var round = kotlin_kotlin.$_$.r3;
67
+ var initMetadataForCompanion = kotlin_kotlin.$_$.f3;
68
+ var isNaN_0 = kotlin_kotlin.$_$.j4;
69
+ var replace = kotlin_kotlin.$_$.w3;
70
+ var coerceIn_0 = kotlin_kotlin.$_$.s3;
71
71
  var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
72
72
  var promise = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
73
+ var KProperty0 = kotlin_kotlin.$_$.v3;
74
+ var getPropertyCallableRef = kotlin_kotlin.$_$.b3;
73
75
  var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
74
76
  var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.s;
77
+ var isNumber = kotlin_kotlin.$_$.m3;
78
+ var lazy = kotlin_kotlin.$_$.k4;
75
79
  //endregion
76
80
  //region block: pre-declaration
77
81
  initMetadataForClass(SmoothingOptions, 'SmoothingOptions', SmoothingOptions);
@@ -116,20 +120,23 @@
116
120
  initMetadataForClass(Vector3D, 'Vector3D');
117
121
  initMetadataForLambda(getElevation$slambda, CoroutineImpl, VOID, [1]);
118
122
  initMetadataForLambda(getElevationsAlong$slambda, CoroutineImpl, VOID, [1]);
123
+ initMetadataForCoroutine($decodeWebpNodeCOROUTINE$, CoroutineImpl);
119
124
  initMetadataForCoroutine($fetchAndDecodeTileCOROUTINE$, CoroutineImpl);
125
+ initMetadataForCoroutine($decodeBrowserCOROUTINE$, CoroutineImpl);
126
+ initMetadataForCoroutine($decodeNodeCOROUTINE$, CoroutineImpl);
120
127
  //endregion
121
128
  function SmoothingOptions(windowSize, enabled) {
122
129
  windowSize = windowSize === VOID ? 50.0 : windowSize;
123
130
  enabled = enabled === VOID ? false : enabled;
124
- this.to_1 = windowSize;
125
- this.uo_1 = enabled;
131
+ this.wo_1 = windowSize;
132
+ this.xo_1 = enabled;
126
133
  }
127
134
  protoOf(SmoothingOptions).toString = function () {
128
- return 'SmoothingOptions(windowSize=' + this.to_1 + ', enabled=' + this.uo_1 + ')';
135
+ return 'SmoothingOptions(windowSize=' + this.wo_1 + ', enabled=' + this.xo_1 + ')';
129
136
  };
130
137
  protoOf(SmoothingOptions).hashCode = function () {
131
- var result = this.to_1 == null ? 0 : getNumberHashCode(this.to_1);
132
- result = imul(result, 31) + getBooleanHashCode(this.uo_1) | 0;
138
+ var result = this.wo_1 == null ? 0 : getNumberHashCode(this.wo_1);
139
+ result = imul(result, 31) + getBooleanHashCode(this.xo_1) | 0;
133
140
  return result;
134
141
  };
135
142
  protoOf(SmoothingOptions).equals = function (other) {
@@ -137,9 +144,9 @@
137
144
  return true;
138
145
  if (!(other instanceof SmoothingOptions))
139
146
  return false;
140
- if (!equals(this.to_1, other.to_1))
147
+ if (!equals(this.wo_1, other.wo_1))
141
148
  return false;
142
- if (!(this.uo_1 === other.uo_1))
149
+ if (!(this.xo_1 === other.xo_1))
143
150
  return false;
144
151
  return true;
145
152
  };
@@ -147,17 +154,17 @@
147
154
  tolerance = tolerance === VOID ? 10.0 : tolerance;
148
155
  zExaggeration = zExaggeration === VOID ? 3.0 : zExaggeration;
149
156
  enabled = enabled === VOID ? false : enabled;
150
- this.vo_1 = tolerance;
151
- this.wo_1 = zExaggeration;
152
- this.xo_1 = enabled;
157
+ this.yo_1 = tolerance;
158
+ this.zo_1 = zExaggeration;
159
+ this.ap_1 = enabled;
153
160
  }
154
161
  protoOf(FilterOptions).toString = function () {
155
- return 'FilterOptions(tolerance=' + this.vo_1 + ', zExaggeration=' + this.wo_1 + ', enabled=' + this.xo_1 + ')';
162
+ return 'FilterOptions(tolerance=' + this.yo_1 + ', zExaggeration=' + this.zo_1 + ', enabled=' + this.ap_1 + ')';
156
163
  };
157
164
  protoOf(FilterOptions).hashCode = function () {
158
- var result = this.vo_1 == null ? 0 : getNumberHashCode(this.vo_1);
159
- result = imul(result, 31) + (this.wo_1 == null ? 0 : getNumberHashCode(this.wo_1)) | 0;
160
- result = imul(result, 31) + getBooleanHashCode(this.xo_1) | 0;
165
+ var result = this.yo_1 == null ? 0 : getNumberHashCode(this.yo_1);
166
+ result = imul(result, 31) + (this.zo_1 == null ? 0 : getNumberHashCode(this.zo_1)) | 0;
167
+ result = imul(result, 31) + getBooleanHashCode(this.ap_1) | 0;
161
168
  return result;
162
169
  };
163
170
  protoOf(FilterOptions).equals = function (other) {
@@ -165,11 +172,11 @@
165
172
  return true;
166
173
  if (!(other instanceof FilterOptions))
167
174
  return false;
168
- if (!equals(this.vo_1, other.vo_1))
175
+ if (!equals(this.yo_1, other.yo_1))
169
176
  return false;
170
- if (!equals(this.wo_1, other.wo_1))
177
+ if (!equals(this.zo_1, other.zo_1))
171
178
  return false;
172
- if (!(this.xo_1 === other.xo_1))
179
+ if (!(this.ap_1 === other.ap_1))
173
180
  return false;
174
181
  return true;
175
182
  };
@@ -178,21 +185,21 @@
178
185
  return toNumber(asLong) === d ? asLong.toString() : d.toString();
179
186
  }
180
187
  function BatchCalculator$setElevations$slambda($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation) {
181
- this.gp_1 = $coordinates;
182
- this.hp_1 = this$0;
183
- this.ip_1 = $zoomLevel;
184
- this.jp_1 = $interpolation;
185
- this.kp_1 = $results;
188
+ this.jp_1 = $coordinates;
189
+ this.kp_1 = this$0;
190
+ this.lp_1 = $zoomLevel;
191
+ this.mp_1 = $interpolation;
192
+ this.np_1 = $results;
186
193
  CoroutineImpl.call(this, resultContinuation);
187
194
  }
188
- protoOf(BatchCalculator$setElevations$slambda).pp = function (_destruct__k2r9zo, $completion) {
189
- var tmp = this.qp(_destruct__k2r9zo, $completion);
195
+ protoOf(BatchCalculator$setElevations$slambda).sp = function (_destruct__k2r9zo, $completion) {
196
+ var tmp = this.tp(_destruct__k2r9zo, $completion);
190
197
  tmp.c5_1 = Unit_instance;
191
198
  tmp.d5_1 = null;
192
199
  return tmp.i5();
193
200
  };
194
201
  protoOf(BatchCalculator$setElevations$slambda).q5 = function (p1, $completion) {
195
- return this.pp((!(p1 == null) ? isInterface(p1, MutableEntry) : false) ? p1 : THROW_CCE(), $completion);
202
+ return this.sp((!(p1 == null) ? isInterface(p1, MutableEntry) : false) ? p1 : THROW_CCE(), $completion);
196
203
  };
197
204
  protoOf(BatchCalculator$setElevations$slambda).i5 = function () {
198
205
  var suspendResult = this.c5_1;
@@ -202,20 +209,20 @@
202
209
  switch (tmp) {
203
210
  case 0:
204
211
  this.b5_1 = 4;
205
- var indices = this.lp_1.r();
206
- this.op_1 = indices.g();
212
+ var indices = this.op_1.r();
213
+ this.rp_1 = indices.g();
207
214
  this.a5_1 = 1;
208
215
  continue $sm;
209
216
  case 1:
210
- if (!this.op_1.h()) {
217
+ if (!this.rp_1.h()) {
211
218
  this.a5_1 = 3;
212
219
  continue $sm;
213
220
  }
214
221
 
215
- this.np_1 = this.op_1.i();
216
- this.mp_1 = this.gp_1.k(this.np_1);
222
+ this.qp_1 = this.rp_1.i();
223
+ this.pp_1 = this.jp_1.k(this.qp_1);
217
224
  this.a5_1 = 2;
218
- suspendResult = this.hp_1.rp_1.up(this.mp_1, this.ip_1, this.jp_1, this);
225
+ suspendResult = this.kp_1.up_1.xp(this.pp_1, this.lp_1, this.mp_1, this);
219
226
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
220
227
  return suspendResult;
221
228
  }
@@ -223,7 +230,7 @@
223
230
  continue $sm;
224
231
  case 2:
225
232
  var ele = suspendResult;
226
- this.kp_1[this.np_1] = new LatLonElevation(this.mp_1.vp(), this.mp_1.wp(), ele);
233
+ this.np_1[this.qp_1] = new LatLonElevation(this.pp_1.yp(), this.pp_1.zp(), ele);
227
234
  this.a5_1 = 1;
228
235
  continue $sm;
229
236
  case 3:
@@ -242,26 +249,26 @@
242
249
  }
243
250
  while (true);
244
251
  };
245
- protoOf(BatchCalculator$setElevations$slambda).qp = function (_destruct__k2r9zo, completion) {
246
- var i = new BatchCalculator$setElevations$slambda(this.gp_1, this.hp_1, this.ip_1, this.jp_1, this.kp_1, completion);
247
- i.lp_1 = _destruct__k2r9zo;
252
+ protoOf(BatchCalculator$setElevations$slambda).tp = function (_destruct__k2r9zo, completion) {
253
+ var i = new BatchCalculator$setElevations$slambda(this.jp_1, this.kp_1, this.lp_1, this.mp_1, this.np_1, completion);
254
+ i.op_1 = _destruct__k2r9zo;
248
255
  return i;
249
256
  };
250
257
  function BatchCalculator$setElevations$slambda_0($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation) {
251
258
  var i = new BatchCalculator$setElevations$slambda($coordinates, this$0, $zoomLevel, $interpolation, $results, resultContinuation);
252
259
  var l = function (_destruct__k2r9zo, $completion) {
253
- return i.pp(_destruct__k2r9zo, $completion);
260
+ return i.sp(_destruct__k2r9zo, $completion);
254
261
  };
255
262
  l.$arity = 1;
256
263
  return l;
257
264
  }
258
265
  function $setElevationsCOROUTINE$(_this__u8e3s4, coordinates, zoomLevel, interpolation, maxParallelTiles, resultContinuation) {
259
266
  CoroutineImpl.call(this, resultContinuation);
260
- this.fq_1 = _this__u8e3s4;
261
- this.gq_1 = coordinates;
262
- this.hq_1 = zoomLevel;
263
- this.iq_1 = interpolation;
264
- this.jq_1 = maxParallelTiles;
267
+ this.iq_1 = _this__u8e3s4;
268
+ this.jq_1 = coordinates;
269
+ this.kq_1 = zoomLevel;
270
+ this.lq_1 = interpolation;
271
+ this.mq_1 = maxParallelTiles;
265
272
  }
266
273
  protoOf($setElevationsCOROUTINE$).i5 = function () {
267
274
  var suspendResult = this.c5_1;
@@ -271,20 +278,20 @@
271
278
  switch (tmp) {
272
279
  case 0:
273
280
  this.b5_1 = 2;
274
- if (this.gq_1.n())
281
+ if (this.jq_1.n())
275
282
  return emptyList();
276
283
  var tmp_0 = this;
277
- var size = this.gq_1.j();
278
- tmp_0.kq_1 = Array(size);
284
+ var size = this.jq_1.j();
285
+ tmp_0.nq_1 = Array(size);
279
286
  var byTile = LinkedHashMap_init_$Create$();
280
- var iterator = this.gq_1.g();
287
+ var iterator = this.jq_1.g();
281
288
  var index = 0;
282
289
  while (iterator.h()) {
283
290
  var i = index;
284
291
  index = index + 1 | 0;
285
292
  var p = iterator.i();
286
- var tile = ElevationFunctions_instance.lq(p, this.hq_1);
287
- var key = '' + tile.oq_1 + '/' + tile.mq_1 + '/' + tile.nq_1;
293
+ var tile = ElevationFunctions_instance.oq(p, this.kq_1);
294
+ var key = '' + tile.rq_1 + '/' + tile.pq_1 + '/' + tile.qq_1;
288
295
  var value = byTile.t(key);
289
296
  var tmp_1;
290
297
  if (value == null) {
@@ -300,14 +307,14 @@
300
307
  this.a5_1 = 1;
301
308
  var tmp_2 = Flux_instance;
302
309
  var tmp_3 = byTile.u();
303
- suspendResult = tmp_2.pq(tmp_3, this.jq_1, BatchCalculator$setElevations$slambda_0(this.gq_1, this.fq_1, this.hq_1, this.iq_1, this.kq_1, null), this);
310
+ suspendResult = tmp_2.sq(tmp_3, this.mq_1, BatchCalculator$setElevations$slambda_0(this.jq_1, this.iq_1, this.kq_1, this.lq_1, this.nq_1, null), this);
304
311
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
305
312
  return suspendResult;
306
313
  }
307
314
 
308
315
  continue $sm;
309
316
  case 1:
310
- var tmp_4 = toList(this.kq_1);
317
+ var tmp_4 = toList(this.nq_1);
311
318
  return isInterface(tmp_4, KtList) ? tmp_4 : THROW_CCE();
312
319
  case 2:
313
320
  throw this.d5_1;
@@ -325,14 +332,14 @@
325
332
  };
326
333
  function $getElevationsAlongCOROUTINE$(_this__u8e3s4, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, resultContinuation) {
327
334
  CoroutineImpl.call(this, resultContinuation);
328
- this.yq_1 = _this__u8e3s4;
329
- this.zq_1 = path;
330
- this.ar_1 = zoomLevel;
331
- this.br_1 = step;
332
- this.cr_1 = minDistance;
333
- this.dr_1 = interpolation;
334
- this.er_1 = smoothingOptions;
335
- this.fr_1 = filterOptions;
335
+ this.br_1 = _this__u8e3s4;
336
+ this.cr_1 = path;
337
+ this.dr_1 = zoomLevel;
338
+ this.er_1 = step;
339
+ this.fr_1 = minDistance;
340
+ this.gr_1 = interpolation;
341
+ this.hr_1 = smoothingOptions;
342
+ this.ir_1 = filterOptions;
336
343
  }
337
344
  protoOf($getElevationsAlongCOROUTINE$).i5 = function () {
338
345
  var suspendResult = this.c5_1;
@@ -342,19 +349,19 @@
342
349
  switch (tmp) {
343
350
  case 0:
344
351
  this.b5_1 = 2;
345
- if (!(this.zq_1.j() >= 2)) {
352
+ if (!(this.cr_1.j() >= 2)) {
346
353
  var message = 'Path must contain at least 2 coordinates';
347
354
  throw IllegalArgumentException_init_$Create$(toString(message));
348
355
  }
349
356
 
350
- if (!(this.br_1 > 1.0)) {
351
- var message_0 = 'Step is too small: ' + formatNumber(this.yq_1, this.br_1) + ' meters';
357
+ if (!(this.er_1 > 1.0)) {
358
+ var message_0 = 'Step is too small: ' + formatNumber(this.br_1, this.er_1) + ' meters';
352
359
  throw IllegalArgumentException_init_$Create$(toString(message_0));
353
360
  }
354
361
 
355
- var densified = this.yq_1.gr(this.zq_1, this.br_1, this.cr_1);
362
+ var densified = this.br_1.jr(this.cr_1, this.er_1, this.fr_1);
356
363
  this.a5_1 = 1;
357
- suspendResult = this.yq_1.hr(densified, this.ar_1, this.dr_1, VOID, this);
364
+ suspendResult = this.br_1.kr(densified, this.dr_1, this.gr_1, VOID, this);
358
365
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
359
366
  return suspendResult;
360
367
  }
@@ -363,8 +370,8 @@
363
370
  case 1:
364
371
  var withElevation = suspendResult;
365
372
  var tmp_0;
366
- var tmp1_safe_receiver = this.er_1;
367
- if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.uo_1) === true) {
373
+ var tmp1_safe_receiver = this.hr_1;
374
+ if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xo_1) === true) {
368
375
  tmp_0 = withElevation.j() >= 3;
369
376
  } else {
370
377
  tmp_0 = false;
@@ -373,13 +380,13 @@
373
380
  if (tmp_0) {
374
381
  var tmp_1 = ElevationSmoother_instance;
375
382
  var tmp_2 = withElevation;
376
- var tmp0_elvis_lhs = this.er_1.to_1;
377
- withElevation = tmp_1.ir(tmp_2, tmp0_elvis_lhs == null ? 50.0 : tmp0_elvis_lhs);
383
+ var tmp0_elvis_lhs = this.hr_1.wo_1;
384
+ withElevation = tmp_1.lr(tmp_2, tmp0_elvis_lhs == null ? 50.0 : tmp0_elvis_lhs);
378
385
  }
379
386
 
380
387
  var tmp_3;
381
- var tmp4_safe_receiver = this.fr_1;
382
- if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.xo_1) === true) {
388
+ var tmp4_safe_receiver = this.ir_1;
389
+ if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.ap_1) === true) {
383
390
  tmp_3 = withElevation.j() > 2;
384
391
  } else {
385
392
  tmp_3 = false;
@@ -388,10 +395,10 @@
388
395
  if (tmp_3) {
389
396
  var tmp_4 = DouglasPeucker_instance;
390
397
  var tmp_5 = withElevation;
391
- var tmp2_elvis_lhs = this.fr_1.vo_1;
398
+ var tmp2_elvis_lhs = this.ir_1.yo_1;
392
399
  var tmp_6 = tmp2_elvis_lhs == null ? 10.0 : tmp2_elvis_lhs;
393
- var tmp3_elvis_lhs = this.fr_1.wo_1;
394
- withElevation = tmp_4.jr(tmp_5, tmp_6, tmp3_elvis_lhs == null ? 3.0 : tmp3_elvis_lhs);
400
+ var tmp3_elvis_lhs = this.ir_1.zo_1;
401
+ withElevation = tmp_4.mr(tmp_5, tmp_6, tmp3_elvis_lhs == null ? 3.0 : tmp3_elvis_lhs);
395
402
  }
396
403
 
397
404
  return withElevation;
@@ -410,25 +417,25 @@
410
417
  while (true);
411
418
  };
412
419
  function BatchCalculator(calculator) {
413
- this.rp_1 = calculator;
420
+ this.up_1 = calculator;
414
421
  }
415
- protoOf(BatchCalculator).kr = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) {
422
+ protoOf(BatchCalculator).nr = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) {
416
423
  var tmp = new $setElevationsCOROUTINE$(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
417
424
  tmp.c5_1 = Unit_instance;
418
425
  tmp.d5_1 = null;
419
426
  return tmp.i5();
420
427
  };
421
- protoOf(BatchCalculator).hr = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion, $super) {
428
+ protoOf(BatchCalculator).kr = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion, $super) {
422
429
  maxParallelTiles = maxParallelTiles === VOID ? 10 : maxParallelTiles;
423
- return $super === VOID ? this.kr(coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) : $super.kr.call(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
430
+ return $super === VOID ? this.nr(coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) : $super.nr.call(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
424
431
  };
425
- protoOf(BatchCalculator).lr = function (path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
432
+ protoOf(BatchCalculator).or = function (path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
426
433
  var tmp = new $getElevationsAlongCOROUTINE$(this, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
427
434
  tmp.c5_1 = Unit_instance;
428
435
  tmp.d5_1 = null;
429
436
  return tmp.i5();
430
437
  };
431
- protoOf(BatchCalculator).gr = function (path, step, minDistance) {
438
+ protoOf(BatchCalculator).jr = function (path, step, minDistance) {
432
439
  if (path.n())
433
440
  return emptyList();
434
441
  var out = ArrayList_init_$Create$_0(imul(path.j(), 2));
@@ -443,10 +450,10 @@
443
450
  inductionVariable = inductionVariable + 1 | 0;
444
451
  var a = path.k(i);
445
452
  var b = path.k(i + 1 | 0);
446
- var d = Distance_instance.mr(a, b);
453
+ var d = Distance_instance.pr(a, b);
447
454
  if (d < minDistance)
448
455
  continue $l$loop;
449
- var between = this.nr(a, b, step, d);
456
+ var between = this.qr(a, b, step, d);
450
457
  var inductionVariable_0 = 1;
451
458
  var last_0 = between.j();
452
459
  if (inductionVariable_0 < last_0)
@@ -462,15 +469,15 @@
462
469
  while (inductionVariable < last);
463
470
  return out;
464
471
  };
465
- protoOf(BatchCalculator).nr = function (a, b, step, distance) {
472
+ protoOf(BatchCalculator).qr = function (a, b, step, distance) {
466
473
  if (distance <= step)
467
474
  return listOf([a, b]);
468
475
  var numSteps = numberToInt(distance / step);
469
476
  var out = ArrayList_init_$Create$_0(numSteps + 2 | 0);
470
477
  // Inline function 'kotlin.collections.plusAssign' call
471
478
  out.l(a);
472
- var latDiff = b.vp() - a.vp();
473
- var lonDiff = b.wp() - a.wp();
479
+ var latDiff = b.yp() - a.yp();
480
+ var lonDiff = b.zp() - a.zp();
474
481
  var inductionVariable = 1;
475
482
  if (inductionVariable <= numSteps)
476
483
  do {
@@ -478,7 +485,7 @@
478
485
  inductionVariable = inductionVariable + 1 | 0;
479
486
  var f = i * step / distance;
480
487
  // Inline function 'kotlin.collections.plusAssign' call
481
- var element = new LatLon(a.vp() + latDiff * f, a.wp() + lonDiff * f);
488
+ var element = new LatLon(a.yp() + latDiff * f, a.zp() + lonDiff * f);
482
489
  out.l(element);
483
490
  }
484
491
  while (!(i === numSteps));
@@ -488,8 +495,8 @@
488
495
  };
489
496
  function MathConstants() {
490
497
  MathConstants_instance = this;
491
- this.or_1 = 3.141592653589793 / 180.0;
492
- this.pr_1 = 180.0 / 3.141592653589793;
498
+ this.rr_1 = 3.141592653589793 / 180.0;
499
+ this.sr_1 = 180.0 / 3.141592653589793;
493
500
  }
494
501
  var MathConstants_instance;
495
502
  function MathConstants_getInstance() {
@@ -499,26 +506,26 @@
499
506
  }
500
507
  function LatLon(latitude, longitude, elevation) {
501
508
  elevation = elevation === VOID ? null : elevation;
502
- this.qr_1 = latitude;
503
- this.rr_1 = longitude;
504
- this.sr_1 = elevation;
509
+ this.tr_1 = latitude;
510
+ this.ur_1 = longitude;
511
+ this.vr_1 = elevation;
505
512
  }
506
- protoOf(LatLon).vp = function () {
507
- return this.qr_1;
513
+ protoOf(LatLon).yp = function () {
514
+ return this.tr_1;
508
515
  };
509
- protoOf(LatLon).wp = function () {
510
- return this.rr_1;
516
+ protoOf(LatLon).zp = function () {
517
+ return this.ur_1;
511
518
  };
512
- protoOf(LatLon).tr = function () {
513
- return this.sr_1;
519
+ protoOf(LatLon).wr = function () {
520
+ return this.vr_1;
514
521
  };
515
522
  protoOf(LatLon).toString = function () {
516
- return 'LatLon(latitude=' + this.qr_1 + ', longitude=' + this.rr_1 + ', elevation=' + this.sr_1 + ')';
523
+ return 'LatLon(latitude=' + this.tr_1 + ', longitude=' + this.ur_1 + ', elevation=' + this.vr_1 + ')';
517
524
  };
518
525
  protoOf(LatLon).hashCode = function () {
519
- var result = getNumberHashCode(this.qr_1);
520
- result = imul(result, 31) + getNumberHashCode(this.rr_1) | 0;
521
- result = imul(result, 31) + (this.sr_1 == null ? 0 : getNumberHashCode(this.sr_1)) | 0;
526
+ var result = getNumberHashCode(this.tr_1);
527
+ result = imul(result, 31) + getNumberHashCode(this.ur_1) | 0;
528
+ result = imul(result, 31) + (this.vr_1 == null ? 0 : getNumberHashCode(this.vr_1)) | 0;
522
529
  return result;
523
530
  };
524
531
  protoOf(LatLon).equals = function (other) {
@@ -526,35 +533,35 @@
526
533
  return true;
527
534
  if (!(other instanceof LatLon))
528
535
  return false;
529
- if (!equals(this.qr_1, other.qr_1))
536
+ if (!equals(this.tr_1, other.tr_1))
530
537
  return false;
531
- if (!equals(this.rr_1, other.rr_1))
538
+ if (!equals(this.ur_1, other.ur_1))
532
539
  return false;
533
- if (!equals(this.sr_1, other.sr_1))
540
+ if (!equals(this.vr_1, other.vr_1))
534
541
  return false;
535
542
  return true;
536
543
  };
537
544
  function LatLonElevation(latitude, longitude, elevation) {
538
- this.ur_1 = latitude;
539
- this.vr_1 = longitude;
540
- this.wr_1 = elevation;
545
+ this.xr_1 = latitude;
546
+ this.yr_1 = longitude;
547
+ this.zr_1 = elevation;
541
548
  }
542
- protoOf(LatLonElevation).vp = function () {
543
- return this.ur_1;
549
+ protoOf(LatLonElevation).yp = function () {
550
+ return this.xr_1;
544
551
  };
545
- protoOf(LatLonElevation).wp = function () {
546
- return this.vr_1;
552
+ protoOf(LatLonElevation).zp = function () {
553
+ return this.yr_1;
547
554
  };
548
- protoOf(LatLonElevation).tr = function () {
549
- return this.wr_1;
555
+ protoOf(LatLonElevation).wr = function () {
556
+ return this.zr_1;
550
557
  };
551
558
  protoOf(LatLonElevation).toString = function () {
552
- return 'LatLonElevation(latitude=' + this.ur_1 + ', longitude=' + this.vr_1 + ', elevation=' + this.wr_1 + ')';
559
+ return 'LatLonElevation(latitude=' + this.xr_1 + ', longitude=' + this.yr_1 + ', elevation=' + this.zr_1 + ')';
553
560
  };
554
561
  protoOf(LatLonElevation).hashCode = function () {
555
- var result = getNumberHashCode(this.ur_1);
556
- result = imul(result, 31) + getNumberHashCode(this.vr_1) | 0;
557
- result = imul(result, 31) + getNumberHashCode(this.wr_1) | 0;
562
+ var result = getNumberHashCode(this.xr_1);
563
+ result = imul(result, 31) + getNumberHashCode(this.yr_1) | 0;
564
+ result = imul(result, 31) + getNumberHashCode(this.zr_1) | 0;
558
565
  return result;
559
566
  };
560
567
  protoOf(LatLonElevation).equals = function (other) {
@@ -562,21 +569,21 @@
562
569
  return true;
563
570
  if (!(other instanceof LatLonElevation))
564
571
  return false;
565
- if (!equals(this.ur_1, other.ur_1))
572
+ if (!equals(this.xr_1, other.xr_1))
566
573
  return false;
567
- if (!equals(this.vr_1, other.vr_1))
574
+ if (!equals(this.yr_1, other.yr_1))
568
575
  return false;
569
- if (!equals(this.wr_1, other.wr_1))
576
+ if (!equals(this.zr_1, other.zr_1))
570
577
  return false;
571
578
  return true;
572
579
  };
573
580
  function Distance() {
574
581
  }
575
- protoOf(Distance).mr = function (coord1, coord2) {
576
- var lat1Rad = coord1.vp() * MathConstants_getInstance().or_1;
577
- var lat2Rad = coord2.vp() * MathConstants_getInstance().or_1;
578
- var deltaLat = (coord2.vp() - coord1.vp()) * MathConstants_getInstance().or_1;
579
- var deltaLon = (coord2.wp() - coord1.wp()) * MathConstants_getInstance().or_1;
582
+ protoOf(Distance).pr = function (coord1, coord2) {
583
+ var lat1Rad = coord1.yp() * MathConstants_getInstance().rr_1;
584
+ var lat2Rad = coord2.yp() * MathConstants_getInstance().rr_1;
585
+ var deltaLat = (coord2.yp() - coord1.yp()) * MathConstants_getInstance().rr_1;
586
+ var deltaLon = (coord2.zp() - coord1.zp()) * MathConstants_getInstance().rr_1;
580
587
  // Inline function 'kotlin.math.sin' call
581
588
  var x = deltaLat / 2.0;
582
589
  var sinHalfLat = Math.sin(x);
@@ -597,7 +604,7 @@
597
604
  var c = 2.0 * Math.atan2(tmp0, x_2);
598
605
  return 6371000.0 * c;
599
606
  };
600
- protoOf(Distance).xr = function (points) {
607
+ protoOf(Distance).as = function (points) {
601
608
  if (points.n()) {
602
609
  // Inline function 'kotlin.doubleArrayOf' call
603
610
  return new Float64Array([0.0]);
@@ -609,7 +616,7 @@
609
616
  do {
610
617
  var i = inductionVariable;
611
618
  inductionVariable = inductionVariable + 1 | 0;
612
- out[i] = out[i - 1 | 0] + this.mr(points.k(i - 1 | 0), points.k(i));
619
+ out[i] = out[i - 1 | 0] + this.pr(points.k(i - 1 | 0), points.k(i));
613
620
  }
614
621
  while (inductionVariable < last);
615
622
  return out;
@@ -619,8 +626,8 @@
619
626
  return Distance_instance;
620
627
  }
621
628
  function simplifyRecursive($this, points, firstIndex, lastIndex, tolerance, zExaggeration, out) {
622
- var firstEcef = EcefConverter_instance.yr(points.k(firstIndex), zExaggeration);
623
- var lastEcef = EcefConverter_instance.yr(points.k(lastIndex), zExaggeration);
629
+ var firstEcef = EcefConverter_instance.bs(points.k(firstIndex), zExaggeration);
630
+ var lastEcef = EcefConverter_instance.bs(points.k(lastIndex), zExaggeration);
624
631
  var maxDistance = 0.0;
625
632
  var maxIndex = -1;
626
633
  var inductionVariable = firstIndex + 1 | 0;
@@ -628,7 +635,7 @@
628
635
  do {
629
636
  var i = inductionVariable;
630
637
  inductionVariable = inductionVariable + 1 | 0;
631
- var d = EcefConverter_instance.yr(points.k(i), zExaggeration).cs(firstEcef, lastEcef);
638
+ var d = EcefConverter_instance.bs(points.k(i), zExaggeration).fs(firstEcef, lastEcef);
632
639
  if (d > maxDistance) {
633
640
  maxDistance = d;
634
641
  maxIndex = i;
@@ -647,7 +654,7 @@
647
654
  }
648
655
  function DouglasPeucker() {
649
656
  }
650
- protoOf(DouglasPeucker).jr = function (points, tolerance, zExaggeration) {
657
+ protoOf(DouglasPeucker).mr = function (points, tolerance, zExaggeration) {
651
658
  if (points.j() <= 2)
652
659
  return toList_0(points);
653
660
  var lastIndex = get_lastIndex(points);
@@ -668,10 +675,10 @@
668
675
  }
669
676
  function EcefConverter() {
670
677
  }
671
- protoOf(EcefConverter).yr = function (coordinates, zExaggeration) {
672
- var latRad = coordinates.vp() * MathConstants_getInstance().or_1;
673
- var lonRad = coordinates.wp() * MathConstants_getInstance().or_1;
674
- var tmp0_elvis_lhs = coordinates.tr();
678
+ protoOf(EcefConverter).bs = function (coordinates, zExaggeration) {
679
+ var latRad = coordinates.yp() * MathConstants_getInstance().rr_1;
680
+ var lonRad = coordinates.zp() * MathConstants_getInstance().rr_1;
681
+ var tmp0_elvis_lhs = coordinates.wr();
675
682
  var elevationExaggerated = zExaggeration * (tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
676
683
  // Inline function 'kotlin.math.sin' call
677
684
  var sinLat = Math.sin(latRad);
@@ -707,10 +714,10 @@
707
714
  }
708
715
  function $getElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, interpolation, resultContinuation) {
709
716
  CoroutineImpl.call(this, resultContinuation);
710
- this.qt_1 = _this__u8e3s4;
711
- this.rt_1 = coords;
712
- this.st_1 = zoomLevel;
713
- this.tt_1 = interpolation;
717
+ this.tt_1 = _this__u8e3s4;
718
+ this.ut_1 = coords;
719
+ this.vt_1 = zoomLevel;
720
+ this.wt_1 = interpolation;
714
721
  }
715
722
  protoOf($getElevationCOROUTINE$).i5 = function () {
716
723
  var suspendResult = this.c5_1;
@@ -721,17 +728,17 @@
721
728
  case 0:
722
729
  this.b5_1 = 5;
723
730
  this.b5_1 = 4;
724
- if (this.tt_1) {
731
+ if (this.wt_1) {
725
732
  this.a5_1 = 2;
726
- suspendResult = getInterpolatedElevation(this.qt_1, this.rt_1, this.st_1, this);
733
+ suspendResult = getInterpolatedElevation(this.tt_1, this.ut_1, this.vt_1, this);
727
734
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
728
735
  return suspendResult;
729
736
  }
730
737
  continue $sm;
731
738
  } else {
732
- var pixel = ElevationFunctions_instance.wt(this.rt_1, this.st_1, this.qt_1.tp_1);
739
+ var pixel = ElevationFunctions_instance.zt(this.ut_1, this.vt_1, this.tt_1.wp_1);
733
740
  this.a5_1 = 1;
734
- suspendResult = elevationFromPixel(this.qt_1, pixel, this);
741
+ suspendResult = elevationFromPixel(this.tt_1, pixel, this);
735
742
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
736
743
  return suspendResult;
737
744
  }
@@ -739,15 +746,15 @@
739
746
  }
740
747
 
741
748
  case 1:
742
- this.vt_1 = suspendResult;
749
+ this.yt_1 = suspendResult;
743
750
  this.a5_1 = 3;
744
751
  continue $sm;
745
752
  case 2:
746
- this.vt_1 = suspendResult;
753
+ this.yt_1 = suspendResult;
747
754
  this.a5_1 = 3;
748
755
  continue $sm;
749
756
  case 3:
750
- this.ut_1 = this.vt_1;
757
+ this.xt_1 = this.yt_1;
751
758
  this.b5_1 = 5;
752
759
  this.a5_1 = 6;
753
760
  continue $sm;
@@ -766,7 +773,7 @@
766
773
  throw this.d5_1;
767
774
  case 6:
768
775
  this.b5_1 = 5;
769
- return this.ut_1;
776
+ return this.xt_1;
770
777
  }
771
778
  } catch ($p) {
772
779
  var e = $p;
@@ -781,9 +788,9 @@
781
788
  };
782
789
  function $getInterpolatedElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, resultContinuation) {
783
790
  CoroutineImpl.call(this, resultContinuation);
784
- this.ls_1 = _this__u8e3s4;
785
- this.ms_1 = coords;
786
- this.ns_1 = zoomLevel;
791
+ this.os_1 = _this__u8e3s4;
792
+ this.ps_1 = coords;
793
+ this.qs_1 = zoomLevel;
787
794
  }
788
795
  protoOf($getInterpolatedElevationCOROUTINE$).i5 = function () {
789
796
  var suspendResult = this.c5_1;
@@ -793,46 +800,46 @@
793
800
  switch (tmp) {
794
801
  case 0:
795
802
  this.b5_1 = 5;
796
- this.vs_1 = ElevationFunctions_instance.xt(this.ms_1, this.ns_1, this.ls_1.tp_1);
803
+ this.ys_1 = ElevationFunctions_instance.au(this.ps_1, this.qs_1, this.os_1.wp_1);
797
804
  var tmp_0 = this;
798
- var x = this.vs_1.zt_1;
799
- tmp_0.ws_1 = numberToInt(Math.floor(x));
805
+ var x = this.ys_1.cu_1;
806
+ tmp_0.zs_1 = numberToInt(Math.floor(x));
800
807
  var tmp_1 = this;
801
- var x_0 = this.vs_1.au_1;
802
- tmp_1.xs_1 = numberToInt(Math.floor(x_0));
803
- this.us_1 = this.ws_1 + 1 | 0;
804
- this.ts_1 = this.xs_1 + 1 | 0;
805
- this.ps_1 = this.vs_1.zt_1 - this.ws_1;
806
- this.os_1 = this.vs_1.au_1 - this.xs_1;
808
+ var x_0 = this.ys_1.du_1;
809
+ tmp_1.at_1 = numberToInt(Math.floor(x_0));
810
+ this.xs_1 = this.zs_1 + 1 | 0;
811
+ this.ws_1 = this.at_1 + 1 | 0;
812
+ this.ss_1 = this.ys_1.cu_1 - this.zs_1;
813
+ this.rs_1 = this.ys_1.du_1 - this.at_1;
807
814
  this.a5_1 = 1;
808
- suspendResult = elevationFromPixel(this.ls_1, ElevationFunctions_instance.bu(new Pixel(this.vs_1.yt_1, this.ws_1, this.xs_1), this.ls_1.tp_1), this);
815
+ suspendResult = elevationFromPixel(this.os_1, ElevationFunctions_instance.eu(new Pixel(this.ys_1.bu_1, this.zs_1, this.at_1), this.os_1.wp_1), this);
809
816
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
810
817
  return suspendResult;
811
818
  }
812
819
 
813
820
  continue $sm;
814
821
  case 1:
815
- this.ss_1 = suspendResult;
822
+ this.vs_1 = suspendResult;
816
823
  this.a5_1 = 2;
817
- suspendResult = elevationFromPixel(this.ls_1, ElevationFunctions_instance.bu(new Pixel(this.vs_1.yt_1, this.us_1, this.xs_1), this.ls_1.tp_1), this);
824
+ suspendResult = elevationFromPixel(this.os_1, ElevationFunctions_instance.eu(new Pixel(this.ys_1.bu_1, this.xs_1, this.at_1), this.os_1.wp_1), this);
818
825
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
819
826
  return suspendResult;
820
827
  }
821
828
 
822
829
  continue $sm;
823
830
  case 2:
824
- this.rs_1 = suspendResult;
831
+ this.us_1 = suspendResult;
825
832
  this.a5_1 = 3;
826
- suspendResult = elevationFromPixel(this.ls_1, ElevationFunctions_instance.bu(new Pixel(this.vs_1.yt_1, this.ws_1, this.ts_1), this.ls_1.tp_1), this);
833
+ suspendResult = elevationFromPixel(this.os_1, ElevationFunctions_instance.eu(new Pixel(this.ys_1.bu_1, this.zs_1, this.ws_1), this.os_1.wp_1), this);
827
834
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
828
835
  return suspendResult;
829
836
  }
830
837
 
831
838
  continue $sm;
832
839
  case 3:
833
- this.qs_1 = suspendResult;
840
+ this.ts_1 = suspendResult;
834
841
  this.a5_1 = 4;
835
- suspendResult = elevationFromPixel(this.ls_1, ElevationFunctions_instance.bu(new Pixel(this.vs_1.yt_1, this.us_1, this.ts_1), this.ls_1.tp_1), this);
842
+ suspendResult = elevationFromPixel(this.os_1, ElevationFunctions_instance.eu(new Pixel(this.ys_1.bu_1, this.xs_1, this.ws_1), this.os_1.wp_1), this);
836
843
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
837
844
  return suspendResult;
838
845
  }
@@ -840,9 +847,9 @@
840
847
  continue $sm;
841
848
  case 4:
842
849
  var p11 = suspendResult;
843
- var top = this.ss_1 * (1.0 - this.ps_1) + this.rs_1 * this.ps_1;
844
- var bottom = this.qs_1 * (1.0 - this.ps_1) + p11 * this.ps_1;
845
- return top * (1.0 - this.os_1) + bottom * this.os_1;
850
+ var top = this.vs_1 * (1.0 - this.ss_1) + this.us_1 * this.ss_1;
851
+ var bottom = this.ts_1 * (1.0 - this.ss_1) + p11 * this.ss_1;
852
+ return top * (1.0 - this.rs_1) + bottom * this.rs_1;
846
853
  case 5:
847
854
  throw this.d5_1;
848
855
  }
@@ -859,8 +866,8 @@
859
866
  };
860
867
  function $elevationFromPixelCOROUTINE$(_this__u8e3s4, pixel, resultContinuation) {
861
868
  CoroutineImpl.call(this, resultContinuation);
862
- this.gt_1 = _this__u8e3s4;
863
- this.ht_1 = pixel;
869
+ this.jt_1 = _this__u8e3s4;
870
+ this.kt_1 = pixel;
864
871
  }
865
872
  protoOf($elevationFromPixelCOROUTINE$).i5 = function () {
866
873
  var suspendResult = this.c5_1;
@@ -871,14 +878,14 @@
871
878
  case 0:
872
879
  this.b5_1 = 2;
873
880
  this.a5_1 = 1;
874
- suspendResult = this.gt_1.sp_1.iu(this.ht_1.cu_1, this);
881
+ suspendResult = this.jt_1.vp_1.lu(this.kt_1.fu_1, this);
875
882
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
876
883
  return suspendResult;
877
884
  }
878
885
 
879
886
  continue $sm;
880
887
  case 1:
881
- return suspendResult.ou(this.ht_1);
888
+ return suspendResult.ru(this.kt_1);
882
889
  case 2:
883
890
  throw this.d5_1;
884
891
  }
@@ -895,10 +902,10 @@
895
902
  };
896
903
  function ElevationCalculator(tileManager, tileSize) {
897
904
  tileSize = tileSize === VOID ? 256 : tileSize;
898
- this.sp_1 = tileManager;
899
- this.tp_1 = tileSize;
905
+ this.vp_1 = tileManager;
906
+ this.wp_1 = tileSize;
900
907
  }
901
- protoOf(ElevationCalculator).up = function (coords, zoomLevel, interpolation, $completion) {
908
+ protoOf(ElevationCalculator).xp = function (coords, zoomLevel, interpolation, $completion) {
902
909
  var tmp = new $getElevationCOROUTINE$(this, coords, zoomLevel, interpolation, $completion);
903
910
  tmp.c5_1 = Unit_instance;
904
911
  tmp.d5_1 = null;
@@ -910,24 +917,24 @@
910
917
  }
911
918
  function ElevationFunctions() {
912
919
  }
913
- protoOf(ElevationFunctions).pu = function (degrees) {
914
- return degrees * MathConstants_getInstance().or_1;
920
+ protoOf(ElevationFunctions).su = function (degrees) {
921
+ return degrees * MathConstants_getInstance().rr_1;
915
922
  };
916
- protoOf(ElevationFunctions).qu = function (lat) {
923
+ protoOf(ElevationFunctions).tu = function (lat) {
917
924
  return lat >= -85.0511 && lat <= 85.0511;
918
925
  };
919
- protoOf(ElevationFunctions).ru = function (lon) {
926
+ protoOf(ElevationFunctions).uu = function (lon) {
920
927
  return -180.0 <= lon ? lon <= 180.0 : false;
921
928
  };
922
- protoOf(ElevationFunctions).su = function (zoom) {
929
+ protoOf(ElevationFunctions).vu = function (zoom) {
923
930
  return 0 <= zoom ? zoom <= 15 : false;
924
931
  };
925
- protoOf(ElevationFunctions).bu = function (pixel, tileSize) {
926
- var x = pixel.du_1;
927
- var y = pixel.eu_1;
928
- var tileX = pixel.cu_1.mq_1;
929
- var tileY = pixel.cu_1.nq_1;
930
- var z = pixel.cu_1.oq_1;
932
+ protoOf(ElevationFunctions).eu = function (pixel, tileSize) {
933
+ var x = pixel.gu_1;
934
+ var y = pixel.hu_1;
935
+ var tileX = pixel.fu_1.pq_1;
936
+ var tileY = pixel.fu_1.qq_1;
937
+ var z = pixel.fu_1.rq_1;
931
938
  if (x < 0) {
932
939
  x = x + tileSize | 0;
933
940
  tileX = tileX - 1 | 0;
@@ -949,25 +956,25 @@
949
956
  tileY = coerceIn(tileY, 0, maxTile);
950
957
  return new Pixel(new TileCoordinates(tileX, tileY, z), x, y);
951
958
  };
952
- protoOf(ElevationFunctions).tu = function (coords, z) {
959
+ protoOf(ElevationFunctions).wu = function (coords, z) {
953
960
  // Inline function 'kotlin.require' call
954
- if (!this.qu(coords.vp())) {
955
- var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.vp()) + '. Must be between -85.0511 and 85.0511';
961
+ if (!this.tu(coords.yp())) {
962
+ var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.yp()) + '. Must be between -85.0511 and 85.0511';
956
963
  throw IllegalArgumentException_init_$Create$(toString(message));
957
964
  }
958
965
  // Inline function 'kotlin.require' call
959
- if (!this.ru(coords.wp())) {
960
- var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.wp()) + '. Must be between -180 and 180';
966
+ if (!this.uu(coords.zp())) {
967
+ var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.zp()) + '. Must be between -180 and 180';
961
968
  throw IllegalArgumentException_init_$Create$(toString(message_0));
962
969
  }
963
970
  // Inline function 'kotlin.require' call
964
- if (!this.su(z)) {
971
+ if (!this.vu(z)) {
965
972
  var message_1 = 'Invalid zoom level: ' + z + '. Must be between 0 and 15';
966
973
  throw IllegalArgumentException_init_$Create$(toString(message_1));
967
974
  }
968
- var lat = this.pu(coords.vp());
975
+ var lat = this.su(coords.yp());
969
976
  var n = 1 << z;
970
- var xFloat = (coords.wp() + 180.0) / 360.0 * n;
977
+ var xFloat = (coords.zp() + 180.0) / 360.0 * n;
971
978
  // Inline function 'kotlin.math.tan' call
972
979
  var tmp = Math.tan(lat);
973
980
  // Inline function 'kotlin.math.cos' call
@@ -983,27 +990,27 @@
983
990
  var y = coerceIn(numberToInt(tmp$ret$10), 0, maxTile);
984
991
  return new TileCoordinatesFloat(x_0, y, xFloat, yFloat, z);
985
992
  };
986
- protoOf(ElevationFunctions).lq = function (coords, z) {
987
- var tile = this.tu(coords, z);
988
- return new TileCoordinates(tile.uu_1, tile.vu_1, tile.yu_1);
993
+ protoOf(ElevationFunctions).oq = function (coords, z) {
994
+ var tile = this.wu(coords, z);
995
+ return new TileCoordinates(tile.xu_1, tile.yu_1, tile.bv_1);
989
996
  };
990
- protoOf(ElevationFunctions).wt = function (coords, z, tileSize) {
991
- var tile = this.tu(coords, z);
997
+ protoOf(ElevationFunctions).zt = function (coords, z, tileSize) {
998
+ var tile = this.wu(coords, z);
992
999
  // Inline function 'kotlin.math.floor' call
993
- var x = (tile.wu_1 - tile.uu_1) * tileSize;
1000
+ var x = (tile.zu_1 - tile.xu_1) * tileSize;
994
1001
  var tmp$ret$0 = Math.floor(x);
995
1002
  var px = coerceIn(numberToInt(tmp$ret$0), 0, tileSize - 1 | 0);
996
1003
  // Inline function 'kotlin.math.floor' call
997
- var x_0 = (tile.xu_1 - tile.vu_1) * tileSize;
1004
+ var x_0 = (tile.av_1 - tile.yu_1) * tileSize;
998
1005
  var tmp$ret$1 = Math.floor(x_0);
999
1006
  var py = coerceIn(numberToInt(tmp$ret$1), 0, tileSize - 1 | 0);
1000
- return new Pixel(new TileCoordinates(tile.uu_1, tile.vu_1, z), px, py);
1007
+ return new Pixel(new TileCoordinates(tile.xu_1, tile.yu_1, z), px, py);
1001
1008
  };
1002
- protoOf(ElevationFunctions).xt = function (coords, z, tileSize) {
1003
- var tile = this.tu(coords, z);
1004
- var px = (tile.wu_1 - tile.uu_1) * tileSize;
1005
- var py = (tile.xu_1 - tile.vu_1) * tileSize;
1006
- return new PixelFloat(new TileCoordinates(tile.uu_1, tile.vu_1, z), px, py);
1009
+ protoOf(ElevationFunctions).au = function (coords, z, tileSize) {
1010
+ var tile = this.wu(coords, z);
1011
+ var px = (tile.zu_1 - tile.xu_1) * tileSize;
1012
+ var py = (tile.av_1 - tile.yu_1) * tileSize;
1013
+ return new PixelFloat(new TileCoordinates(tile.xu_1, tile.yu_1, z), px, py);
1007
1014
  };
1008
1015
  var ElevationFunctions_instance;
1009
1016
  function ElevationFunctions_getInstance() {
@@ -1011,16 +1018,16 @@
1011
1018
  }
1012
1019
  function fetchAndDecodeTile$ref() {
1013
1020
  }
1014
- protoOf(fetchAndDecodeTile$ref).zu = function (p0, $completion) {
1021
+ protoOf(fetchAndDecodeTile$ref).cv = function (p0, $completion) {
1015
1022
  return fetchAndDecodeTile(p0, $completion);
1016
1023
  };
1017
1024
  protoOf(fetchAndDecodeTile$ref).q5 = function (p1, $completion) {
1018
- return this.zu((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1025
+ return this.cv((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1019
1026
  };
1020
1027
  function fetchAndDecodeTile$ref_0() {
1021
1028
  var i = new fetchAndDecodeTile$ref();
1022
1029
  var l = function (p0, $completion) {
1023
- return i.zu(p0, $completion);
1030
+ return i.cv(p0, $completion);
1024
1031
  };
1025
1032
  l.callableName = 'fetchAndDecodeTile';
1026
1033
  l.$arity = 1;
@@ -1035,44 +1042,44 @@
1035
1042
  tmp = fetcher;
1036
1043
  }
1037
1044
  fetcher = tmp;
1038
- this.av_1 = config;
1039
- var containsArg = this.av_1.ev_1;
1045
+ this.dv_1 = config;
1046
+ var containsArg = this.dv_1.hv_1;
1040
1047
  // Inline function 'kotlin.require' call
1041
1048
  if (!(0 <= containsArg ? containsArg <= 15 : false)) {
1042
- var message = 'Invalid zoom level: ' + this.av_1.ev_1 + '. Must be an integer between 0 and 15';
1049
+ var message = 'Invalid zoom level: ' + this.dv_1.hv_1 + '. Must be an integer between 0 and 15';
1043
1050
  throw IllegalArgumentException_init_$Create$(toString(message));
1044
1051
  }
1045
1052
  // Inline function 'kotlin.require' call
1046
- if (!(this.av_1.fv_1 > 0)) {
1047
- var message_0 = 'Invalid cache size: ' + this.av_1.fv_1 + '. Must be a positive integer';
1053
+ if (!(this.dv_1.iv_1 > 0)) {
1054
+ var message_0 = 'Invalid cache size: ' + this.dv_1.iv_1 + '. Must be a positive integer';
1048
1055
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1049
1056
  }
1050
1057
  // Inline function 'kotlin.require' call
1051
- if (!(this.av_1.hv_1 > 0 && (this.av_1.hv_1 & (this.av_1.hv_1 - 1 | 0)) === 0)) {
1052
- var message_1 = 'Invalid tile size: ' + this.av_1.hv_1 + '. Must be a positive power of 2';
1058
+ if (!(this.dv_1.kv_1 > 0 && (this.dv_1.kv_1 & (this.dv_1.kv_1 - 1 | 0)) === 0)) {
1059
+ var message_1 = 'Invalid tile size: ' + this.dv_1.kv_1 + '. Must be a positive power of 2';
1053
1060
  throw IllegalArgumentException_init_$Create$(toString(message_1));
1054
1061
  }
1055
- this.bv_1 = new TileManager(this.av_1.gv_1, this.av_1.fv_1, fetcher);
1056
- this.cv_1 = new ElevationCalculator(this.bv_1, this.av_1.hv_1);
1057
- this.dv_1 = new BatchCalculator(this.cv_1);
1062
+ this.ev_1 = new TileManager(this.dv_1.jv_1, this.dv_1.iv_1, fetcher);
1063
+ this.fv_1 = new ElevationCalculator(this.ev_1, this.dv_1.kv_1);
1064
+ this.gv_1 = new BatchCalculator(this.fv_1);
1058
1065
  }
1059
- protoOf(ElevationProvider).jv = function (latitude, longitude, interpolation, $completion) {
1060
- return this.cv_1.up(new LatLon(latitude, longitude), this.av_1.ev_1, interpolation, $completion);
1066
+ protoOf(ElevationProvider).mv = function (latitude, longitude, interpolation, $completion) {
1067
+ return this.fv_1.xp(new LatLon(latitude, longitude), this.dv_1.hv_1, interpolation, $completion);
1061
1068
  };
1062
- protoOf(ElevationProvider).kv = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
1063
- return this.dv_1.lr(path, this.av_1.ev_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
1069
+ protoOf(ElevationProvider).nv = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
1070
+ return this.gv_1.or(path, this.dv_1.hv_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
1064
1071
  };
1065
1072
  function Attribution(text, url) {
1066
1073
  url = url === VOID ? null : url;
1067
- this.lv_1 = text;
1068
- this.mv_1 = url;
1074
+ this.ov_1 = text;
1075
+ this.pv_1 = url;
1069
1076
  }
1070
1077
  protoOf(Attribution).toString = function () {
1071
- return 'Attribution(text=' + this.lv_1 + ', url=' + this.mv_1 + ')';
1078
+ return 'Attribution(text=' + this.ov_1 + ', url=' + this.pv_1 + ')';
1072
1079
  };
1073
1080
  protoOf(Attribution).hashCode = function () {
1074
- var result = getStringHashCode(this.lv_1);
1075
- result = imul(result, 31) + (this.mv_1 == null ? 0 : getStringHashCode(this.mv_1)) | 0;
1081
+ var result = getStringHashCode(this.ov_1);
1082
+ result = imul(result, 31) + (this.pv_1 == null ? 0 : getStringHashCode(this.pv_1)) | 0;
1076
1083
  return result;
1077
1084
  };
1078
1085
  protoOf(Attribution).equals = function (other) {
@@ -1080,9 +1087,9 @@
1080
1087
  return true;
1081
1088
  if (!(other instanceof Attribution))
1082
1089
  return false;
1083
- if (!(this.lv_1 === other.lv_1))
1090
+ if (!(this.ov_1 === other.ov_1))
1084
1091
  return false;
1085
- if (!(this.mv_1 == other.mv_1))
1092
+ if (!(this.pv_1 == other.pv_1))
1086
1093
  return false;
1087
1094
  return true;
1088
1095
  };
@@ -1092,21 +1099,21 @@
1092
1099
  tileUrlTemplate = tileUrlTemplate === VOID ? 'https://tiles.mapterhorn.com/{z}/{x}/{y}.webp' : tileUrlTemplate;
1093
1100
  tileSize = tileSize === VOID ? 512 : tileSize;
1094
1101
  attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
1095
- this.ev_1 = zoomLevel;
1096
- this.fv_1 = cacheSize;
1097
- this.gv_1 = tileUrlTemplate;
1098
- this.hv_1 = tileSize;
1099
- this.iv_1 = attribution;
1102
+ this.hv_1 = zoomLevel;
1103
+ this.iv_1 = cacheSize;
1104
+ this.jv_1 = tileUrlTemplate;
1105
+ this.kv_1 = tileSize;
1106
+ this.lv_1 = attribution;
1100
1107
  }
1101
1108
  protoOf(ElevationProviderConfig).toString = function () {
1102
- return 'ElevationProviderConfig(zoomLevel=' + this.ev_1 + ', cacheSize=' + this.fv_1 + ', tileUrlTemplate=' + this.gv_1 + ', tileSize=' + this.hv_1 + ', attribution=' + this.iv_1.toString() + ')';
1109
+ return 'ElevationProviderConfig(zoomLevel=' + this.hv_1 + ', cacheSize=' + this.iv_1 + ', tileUrlTemplate=' + this.jv_1 + ', tileSize=' + this.kv_1 + ', attribution=' + this.lv_1.toString() + ')';
1103
1110
  };
1104
1111
  protoOf(ElevationProviderConfig).hashCode = function () {
1105
- var result = this.ev_1;
1106
- result = imul(result, 31) + this.fv_1 | 0;
1107
- result = imul(result, 31) + getStringHashCode(this.gv_1) | 0;
1108
- result = imul(result, 31) + this.hv_1 | 0;
1109
- result = imul(result, 31) + this.iv_1.hashCode() | 0;
1112
+ var result = this.hv_1;
1113
+ result = imul(result, 31) + this.iv_1 | 0;
1114
+ result = imul(result, 31) + getStringHashCode(this.jv_1) | 0;
1115
+ result = imul(result, 31) + this.kv_1 | 0;
1116
+ result = imul(result, 31) + this.lv_1.hashCode() | 0;
1110
1117
  return result;
1111
1118
  };
1112
1119
  protoOf(ElevationProviderConfig).equals = function (other) {
@@ -1114,15 +1121,15 @@
1114
1121
  return true;
1115
1122
  if (!(other instanceof ElevationProviderConfig))
1116
1123
  return false;
1117
- if (!(this.ev_1 === other.ev_1))
1124
+ if (!(this.hv_1 === other.hv_1))
1118
1125
  return false;
1119
- if (!(this.fv_1 === other.fv_1))
1126
+ if (!(this.iv_1 === other.iv_1))
1120
1127
  return false;
1121
- if (!(this.gv_1 === other.gv_1))
1128
+ if (!(this.jv_1 === other.jv_1))
1122
1129
  return false;
1123
- if (!(this.hv_1 === other.hv_1))
1130
+ if (!(this.kv_1 === other.kv_1))
1124
1131
  return false;
1125
- if (!this.iv_1.equals(other.iv_1))
1132
+ if (!this.lv_1.equals(other.lv_1))
1126
1133
  return false;
1127
1134
  return true;
1128
1135
  };
@@ -1149,10 +1156,10 @@
1149
1156
  var d = Math.abs(this_0);
1150
1157
  var weight = 1.0 - d / windowSize;
1151
1158
  totalWeight = totalWeight + weight;
1152
- weightedSum = weightedSum + points.k(j).tr() * weight;
1159
+ weightedSum = weightedSum + points.k(j).wr() * weight;
1153
1160
  }
1154
1161
  while (!(j === last));
1155
- return totalWeight > 0.0 ? weightedSum / totalWeight : points.k(index).tr();
1162
+ return totalWeight > 0.0 ? weightedSum / totalWeight : points.k(index).wr();
1156
1163
  }
1157
1164
  function formatWindow($this, w) {
1158
1165
  var asLong = numberToLong(w);
@@ -1160,7 +1167,7 @@
1160
1167
  }
1161
1168
  function ElevationSmoother() {
1162
1169
  }
1163
- protoOf(ElevationSmoother).ir = function (points, windowSize) {
1170
+ protoOf(ElevationSmoother).lr = function (points, windowSize) {
1164
1171
  if (points.j() < 3)
1165
1172
  return points;
1166
1173
  // Inline function 'kotlin.require' call
@@ -1168,7 +1175,7 @@
1168
1175
  var message = 'Invalid window size: ' + formatWindow(ElevationSmoother_instance, windowSize) + '. Must be positive';
1169
1176
  throw IllegalArgumentException_init_$Create$(toString(message));
1170
1177
  }
1171
- var distances = Distance_instance.xr(points);
1178
+ var distances = Distance_instance.as(points);
1172
1179
  // Inline function 'kotlin.collections.List' call
1173
1180
  // Inline function 'kotlin.collections.MutableList' call
1174
1181
  var size = points.j();
@@ -1180,7 +1187,7 @@
1180
1187
  var index = inductionVariable;
1181
1188
  inductionVariable = inductionVariable + 1 | 0;
1182
1189
  var smoothed = computeSmoothedValue(ElevationSmoother_instance, index, points, distances, windowSize);
1183
- var tmp$ret$6 = new LatLonElevation(points.k(index).vp(), points.k(index).wp(), smoothed);
1190
+ var tmp$ret$6 = new LatLonElevation(points.k(index).yp(), points.k(index).zp(), smoothed);
1184
1191
  list.l(tmp$ret$6);
1185
1192
  }
1186
1193
  while (inductionVariable < size);
@@ -1191,19 +1198,19 @@
1191
1198
  return ElevationSmoother_instance;
1192
1199
  }
1193
1200
  function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
1194
- this.vv_1 = $semaphore;
1195
- this.wv_1 = $action;
1196
- this.xv_1 = $item;
1201
+ this.yv_1 = $semaphore;
1202
+ this.zv_1 = $action;
1203
+ this.aw_1 = $item;
1197
1204
  CoroutineImpl.call(this, resultContinuation);
1198
1205
  }
1199
- protoOf(Flux$forEachParallel$slambda$slambda).bw = function ($this$async, $completion) {
1200
- var tmp = this.cw($this$async, $completion);
1206
+ protoOf(Flux$forEachParallel$slambda$slambda).ew = function ($this$async, $completion) {
1207
+ var tmp = this.fw($this$async, $completion);
1201
1208
  tmp.c5_1 = Unit_instance;
1202
1209
  tmp.d5_1 = null;
1203
1210
  return tmp.i5();
1204
1211
  };
1205
1212
  protoOf(Flux$forEachParallel$slambda$slambda).q5 = function (p1, $completion) {
1206
- return this.bw((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1213
+ return this.ew((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1207
1214
  };
1208
1215
  protoOf(Flux$forEachParallel$slambda$slambda).i5 = function () {
1209
1216
  var suspendResult = this.c5_1;
@@ -1213,41 +1220,41 @@
1213
1220
  switch (tmp) {
1214
1221
  case 0:
1215
1222
  this.b5_1 = 6;
1216
- this.zv_1 = this.vv_1;
1223
+ this.cw_1 = this.yv_1;
1217
1224
  this.a5_1 = 1;
1218
- suspendResult = this.zv_1.xm(this);
1225
+ suspendResult = this.cw_1.an(this);
1219
1226
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1220
1227
  return suspendResult;
1221
1228
  }
1222
1229
 
1223
1230
  continue $sm;
1224
1231
  case 1:
1225
- this.aw_1 = Unit_instance;
1232
+ this.dw_1 = Unit_instance;
1226
1233
  this.a5_1 = 2;
1227
1234
  continue $sm;
1228
1235
  case 2:
1229
1236
  this.b5_1 = 5;
1230
1237
  this.a5_1 = 3;
1231
- suspendResult = this.wv_1(this.xv_1, this);
1238
+ suspendResult = this.zv_1(this.aw_1, this);
1232
1239
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1233
1240
  return suspendResult;
1234
1241
  }
1235
1242
 
1236
1243
  continue $sm;
1237
1244
  case 3:
1238
- this.aw_1 = Unit_instance;
1245
+ this.dw_1 = Unit_instance;
1239
1246
  this.b5_1 = 6;
1240
1247
  this.a5_1 = 4;
1241
1248
  continue $sm;
1242
1249
  case 4:
1243
- this.aw_1;
1250
+ this.dw_1;
1244
1251
  this.b5_1 = 6;
1245
- this.zv_1.wm();
1252
+ this.cw_1.zm();
1246
1253
  return Unit_instance;
1247
1254
  case 5:
1248
1255
  this.b5_1 = 6;
1249
1256
  var t = this.d5_1;
1250
- this.zv_1.wm();
1257
+ this.cw_1.zm();
1251
1258
  throw t;
1252
1259
  case 6:
1253
1260
  throw this.d5_1;
@@ -1263,33 +1270,33 @@
1263
1270
  }
1264
1271
  while (true);
1265
1272
  };
1266
- protoOf(Flux$forEachParallel$slambda$slambda).cw = function ($this$async, completion) {
1267
- var i = new Flux$forEachParallel$slambda$slambda(this.vv_1, this.wv_1, this.xv_1, completion);
1268
- i.yv_1 = $this$async;
1273
+ protoOf(Flux$forEachParallel$slambda$slambda).fw = function ($this$async, completion) {
1274
+ var i = new Flux$forEachParallel$slambda$slambda(this.yv_1, this.zv_1, this.aw_1, completion);
1275
+ i.bw_1 = $this$async;
1269
1276
  return i;
1270
1277
  };
1271
1278
  function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
1272
1279
  var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
1273
1280
  var l = function ($this$async, $completion) {
1274
- return i.bw($this$async, $completion);
1281
+ return i.ew($this$async, $completion);
1275
1282
  };
1276
1283
  l.$arity = 1;
1277
1284
  return l;
1278
1285
  }
1279
1286
  function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
1280
- this.lw_1 = $maxParallel;
1281
- this.mw_1 = $items;
1282
- this.nw_1 = $action;
1287
+ this.ow_1 = $maxParallel;
1288
+ this.pw_1 = $items;
1289
+ this.qw_1 = $action;
1283
1290
  CoroutineImpl.call(this, resultContinuation);
1284
1291
  }
1285
- protoOf(Flux$forEachParallel$slambda).pw = function ($this$coroutineScope, $completion) {
1286
- var tmp = this.cw($this$coroutineScope, $completion);
1292
+ protoOf(Flux$forEachParallel$slambda).sw = function ($this$coroutineScope, $completion) {
1293
+ var tmp = this.fw($this$coroutineScope, $completion);
1287
1294
  tmp.c5_1 = Unit_instance;
1288
1295
  tmp.d5_1 = null;
1289
1296
  return tmp.i5();
1290
1297
  };
1291
1298
  protoOf(Flux$forEachParallel$slambda).q5 = function (p1, $completion) {
1292
- return this.pw((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1299
+ return this.sw((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1293
1300
  };
1294
1301
  protoOf(Flux$forEachParallel$slambda).i5 = function () {
1295
1302
  var suspendResult = this.c5_1;
@@ -1299,14 +1306,14 @@
1299
1306
  switch (tmp) {
1300
1307
  case 0:
1301
1308
  this.b5_1 = 2;
1302
- var semaphore = Semaphore(this.lw_1);
1309
+ var semaphore = Semaphore(this.ow_1);
1303
1310
  this.a5_1 = 1;
1304
- var this_0 = this.mw_1;
1311
+ var this_0 = this.pw_1;
1305
1312
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1306
1313
  var _iterator__ex2g4s = this_0.g();
1307
1314
  while (_iterator__ex2g4s.h()) {
1308
1315
  var item = _iterator__ex2g4s.i();
1309
- destination.l(async(this.ow_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.nw_1, item, null)));
1316
+ destination.l(async(this.rw_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.qw_1, item, null)));
1310
1317
  }
1311
1318
 
1312
1319
  suspendResult = awaitAll(destination, this);
@@ -1331,25 +1338,25 @@
1331
1338
  }
1332
1339
  while (true);
1333
1340
  };
1334
- protoOf(Flux$forEachParallel$slambda).cw = function ($this$coroutineScope, completion) {
1335
- var i = new Flux$forEachParallel$slambda(this.lw_1, this.mw_1, this.nw_1, completion);
1336
- i.ow_1 = $this$coroutineScope;
1341
+ protoOf(Flux$forEachParallel$slambda).fw = function ($this$coroutineScope, completion) {
1342
+ var i = new Flux$forEachParallel$slambda(this.ow_1, this.pw_1, this.qw_1, completion);
1343
+ i.rw_1 = $this$coroutineScope;
1337
1344
  return i;
1338
1345
  };
1339
1346
  function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
1340
1347
  var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
1341
1348
  var l = function ($this$coroutineScope, $completion) {
1342
- return i.pw($this$coroutineScope, $completion);
1349
+ return i.sw($this$coroutineScope, $completion);
1343
1350
  };
1344
1351
  l.$arity = 1;
1345
1352
  return l;
1346
1353
  }
1347
1354
  function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
1348
1355
  CoroutineImpl.call(this, resultContinuation);
1349
- this.yw_1 = _this__u8e3s4;
1350
- this.zw_1 = items;
1351
- this.ax_1 = maxParallel;
1352
- this.bx_1 = action;
1356
+ this.bx_1 = _this__u8e3s4;
1357
+ this.cx_1 = items;
1358
+ this.dx_1 = maxParallel;
1359
+ this.ex_1 = action;
1353
1360
  }
1354
1361
  protoOf($forEachParallelCOROUTINE$).i5 = function () {
1355
1362
  var suspendResult = this.c5_1;
@@ -1359,13 +1366,13 @@
1359
1366
  switch (tmp) {
1360
1367
  case 0:
1361
1368
  this.b5_1 = 2;
1362
- if (!(this.ax_1 >= 1)) {
1363
- var message = 'maxParallel must be >= 1, got ' + this.ax_1;
1369
+ if (!(this.dx_1 >= 1)) {
1370
+ var message = 'maxParallel must be >= 1, got ' + this.dx_1;
1364
1371
  throw IllegalArgumentException_init_$Create$(toString(message));
1365
1372
  }
1366
1373
 
1367
1374
  this.a5_1 = 1;
1368
- suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.ax_1, this.zw_1, this.bx_1, null), this);
1375
+ suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.dx_1, this.cx_1, this.ex_1, null), this);
1369
1376
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1370
1377
  return suspendResult;
1371
1378
  }
@@ -1389,7 +1396,7 @@
1389
1396
  };
1390
1397
  function Flux() {
1391
1398
  }
1392
- protoOf(Flux).pq = function (items, maxParallel, action, $completion) {
1399
+ protoOf(Flux).sq = function (items, maxParallel, action, $completion) {
1393
1400
  var tmp = new $forEachParallelCOROUTINE$(this, items, maxParallel, action, $completion);
1394
1401
  tmp.c5_1 = Unit_instance;
1395
1402
  tmp.d5_1 = null;
@@ -1401,8 +1408,8 @@
1401
1408
  }
1402
1409
  function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
1403
1410
  CoroutineImpl.call(this, resultContinuation);
1404
- this.kx_1 = _this__u8e3s4;
1405
- this.lx_1 = key;
1411
+ this.nx_1 = _this__u8e3s4;
1412
+ this.ox_1 = key;
1406
1413
  }
1407
1414
  protoOf($getCOROUTINE$).i5 = function () {
1408
1415
  var suspendResult = this.c5_1;
@@ -1412,10 +1419,10 @@
1412
1419
  switch (tmp) {
1413
1420
  case 0:
1414
1421
  this.b5_1 = 12;
1415
- this.xx_1 = this.kx_1.by_1;
1416
- this.wx_1 = null;
1422
+ this.ay_1 = this.nx_1.ey_1;
1423
+ this.zx_1 = null;
1417
1424
  this.a5_1 = 1;
1418
- suspendResult = this.xx_1.um(this.wx_1, this);
1425
+ suspendResult = this.ay_1.xm(this.zx_1, this);
1419
1426
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1420
1427
  return suspendResult;
1421
1428
  }
@@ -1428,37 +1435,37 @@
1428
1435
  l$ret$1: do {
1429
1436
  var tmp_0;
1430
1437
  try {
1431
- var tmp0_safe_receiver = this.kx_1.cy_1.a2(this.lx_1);
1438
+ var tmp0_safe_receiver = this.nx_1.fy_1.a2(this.ox_1);
1432
1439
  if (tmp0_safe_receiver == null)
1433
1440
  null;
1434
1441
  else {
1435
- var tmp0 = this.kx_1.cy_1;
1436
- var key = this.lx_1;
1442
+ var tmp0 = this.nx_1.fy_1;
1443
+ var key = this.ox_1;
1437
1444
  tmp0.z1(key, tmp0_safe_receiver);
1438
1445
  tmp$ret$0 = tmp0_safe_receiver;
1439
1446
  break l$ret$1;
1440
1447
  }
1441
- tmp$ret$2 = this.kx_1.dy_1.t(this.lx_1);
1448
+ tmp$ret$2 = this.nx_1.gy_1.t(this.ox_1);
1442
1449
  break l$ret$3;
1443
1450
  } catch ($p) {
1444
1451
  var tmp_1;
1445
1452
  var t = $p;
1446
- this.xx_1.gm(this.wx_1);
1453
+ this.ay_1.jm(this.zx_1);
1447
1454
  throw t;
1448
1455
  }
1449
1456
  }
1450
1457
  while (false);
1451
1458
  var tmp_2 = tmp$ret$0;
1452
- this.xx_1.gm(this.wx_1);
1459
+ this.ay_1.jm(this.zx_1);
1453
1460
  return tmp_2;
1454
1461
  }
1455
1462
  while (false);
1456
1463
  var tmp_3 = tmp$ret$2;
1457
- this.xx_1.gm(this.wx_1);
1464
+ this.ay_1.jm(this.zx_1);
1458
1465
  var existing = tmp_3;
1459
1466
  if (!(existing == null)) {
1460
1467
  this.a5_1 = 11;
1461
- suspendResult = existing.oe(this);
1468
+ suspendResult = existing.re(this);
1462
1469
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1463
1470
  return suspendResult;
1464
1471
  }
@@ -1469,11 +1476,11 @@
1469
1476
  }
1470
1477
 
1471
1478
  case 2:
1472
- this.nx_1 = CompletableDeferred();
1473
- this.vx_1 = this.kx_1.by_1;
1474
- this.ux_1 = null;
1479
+ this.qx_1 = CompletableDeferred();
1480
+ this.yx_1 = this.nx_1.ey_1;
1481
+ this.xx_1 = null;
1475
1482
  this.a5_1 = 3;
1476
- suspendResult = this.vx_1.um(this.ux_1, this);
1483
+ suspendResult = this.yx_1.xm(this.xx_1, this);
1477
1484
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1478
1485
  return suspendResult;
1479
1486
  }
@@ -1486,24 +1493,24 @@
1486
1493
  l$ret$5: do {
1487
1494
  var tmp_4;
1488
1495
  try {
1489
- var tmp0_safe_receiver_0 = this.kx_1.cy_1.a2(this.lx_1);
1496
+ var tmp0_safe_receiver_0 = this.nx_1.fy_1.a2(this.ox_1);
1490
1497
  if (tmp0_safe_receiver_0 == null)
1491
1498
  null;
1492
1499
  else {
1493
- var tmp0_0 = this.kx_1.cy_1;
1494
- var key_0 = this.lx_1;
1500
+ var tmp0_0 = this.nx_1.fy_1;
1501
+ var key_0 = this.ox_1;
1495
1502
  tmp0_0.z1(key_0, tmp0_safe_receiver_0);
1496
1503
  tmp$ret$4 = tmp0_safe_receiver_0;
1497
1504
  break l$ret$5;
1498
1505
  }
1499
- var raced = this.kx_1.dy_1.t(this.lx_1);
1506
+ var raced = this.nx_1.gy_1.t(this.ox_1);
1500
1507
  var tmp_5;
1501
1508
  if (!(raced == null)) {
1502
1509
  tmp_5 = raced;
1503
1510
  } else {
1504
- var tmp0_1 = this.kx_1.dy_1;
1505
- var tmp2 = this.lx_1;
1506
- var value = this.nx_1;
1511
+ var tmp0_1 = this.nx_1.gy_1;
1512
+ var tmp2 = this.ox_1;
1513
+ var value = this.qx_1;
1507
1514
  tmp0_1.z1(tmp2, value);
1508
1515
  tmp_5 = null;
1509
1516
  }
@@ -1512,22 +1519,22 @@
1512
1519
  } catch ($p) {
1513
1520
  var tmp_6;
1514
1521
  var t_0 = $p;
1515
- this.vx_1.gm(this.ux_1);
1522
+ this.yx_1.jm(this.xx_1);
1516
1523
  throw t_0;
1517
1524
  }
1518
1525
  }
1519
1526
  while (false);
1520
1527
  var tmp_7 = tmp$ret$4;
1521
- this.vx_1.gm(this.ux_1);
1528
+ this.yx_1.jm(this.xx_1);
1522
1529
  return tmp_7;
1523
1530
  }
1524
1531
  while (false);
1525
1532
  var tmp_8 = tmp$ret$6;
1526
- this.vx_1.gm(this.ux_1);
1533
+ this.yx_1.jm(this.xx_1);
1527
1534
  var awaitInstead = tmp_8;
1528
1535
  if (!(awaitInstead == null)) {
1529
1536
  this.a5_1 = 10;
1530
- suspendResult = awaitInstead.oe(this);
1537
+ suspendResult = awaitInstead.re(this);
1531
1538
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1532
1539
  return suspendResult;
1533
1540
  }
@@ -1540,14 +1547,14 @@
1540
1547
  case 4:
1541
1548
  this.b5_1 = 6;
1542
1549
  this.a5_1 = 5;
1543
- suspendResult = this.kx_1.zx_1(this.lx_1, this);
1550
+ suspendResult = this.nx_1.cy_1(this.ox_1, this);
1544
1551
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1545
1552
  return suspendResult;
1546
1553
  }
1547
1554
 
1548
1555
  continue $sm;
1549
1556
  case 5:
1550
- this.qx_1 = suspendResult;
1557
+ this.tx_1 = suspendResult;
1551
1558
  this.b5_1 = 12;
1552
1559
  this.a5_1 = 8;
1553
1560
  continue $sm;
@@ -1555,11 +1562,11 @@
1555
1562
  this.b5_1 = 12;
1556
1563
  var tmp_9 = this.d5_1;
1557
1564
  if (tmp_9 instanceof Error) {
1558
- this.rx_1 = this.d5_1;
1559
- this.tx_1 = this.kx_1.by_1;
1560
- this.sx_1 = null;
1565
+ this.ux_1 = this.d5_1;
1566
+ this.wx_1 = this.nx_1.ey_1;
1567
+ this.vx_1 = null;
1561
1568
  this.a5_1 = 7;
1562
- suspendResult = this.tx_1.um(this.sx_1, this);
1569
+ suspendResult = this.wx_1.xm(this.vx_1, this);
1563
1570
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1564
1571
  return suspendResult;
1565
1572
  }
@@ -1572,27 +1579,27 @@
1572
1579
  l$ret$9: do {
1573
1580
  var tmp_10;
1574
1581
  try {
1575
- this.kx_1.dy_1.a2(this.lx_1);
1582
+ this.nx_1.gy_1.a2(this.ox_1);
1576
1583
  break l$ret$9;
1577
1584
  } catch ($p) {
1578
1585
  var tmp_11;
1579
1586
  var t_1 = $p;
1580
- this.tx_1.gm(this.sx_1);
1587
+ this.wx_1.jm(this.vx_1);
1581
1588
  throw t_1;
1582
1589
  }
1583
1590
  }
1584
1591
  while (false);
1585
- this.tx_1.gm(this.sx_1);
1586
- this.nx_1.mh(this.rx_1);
1592
+ this.wx_1.jm(this.vx_1);
1593
+ this.qx_1.ph(this.ux_1);
1587
1594
  var tmp_12 = this;
1588
- throw this.rx_1;
1595
+ throw this.ux_1;
1589
1596
  case 8:
1590
1597
  this.b5_1 = 12;
1591
- this.mx_1 = this.qx_1;
1592
- this.px_1 = this.kx_1.by_1;
1593
- this.ox_1 = null;
1598
+ this.px_1 = this.tx_1;
1599
+ this.sx_1 = this.nx_1.ey_1;
1600
+ this.rx_1 = null;
1594
1601
  this.a5_1 = 9;
1595
- suspendResult = this.px_1.um(this.ox_1, this);
1602
+ suspendResult = this.sx_1.xm(this.rx_1, this);
1596
1603
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1597
1604
  return suspendResult;
1598
1605
  }
@@ -1602,42 +1609,42 @@
1602
1609
  l$ret$11: do {
1603
1610
  var tmp_13;
1604
1611
  try {
1605
- this.kx_1.dy_1.a2(this.lx_1);
1612
+ this.nx_1.gy_1.a2(this.ox_1);
1606
1613
  var tmp_14;
1607
- if (this.kx_1.cy_1.j() >= this.kx_1.yx_1) {
1608
- var tmp0_2 = this.kx_1.cy_1;
1609
- var key_1 = this.lx_1;
1614
+ if (this.nx_1.fy_1.j() >= this.nx_1.by_1) {
1615
+ var tmp0_2 = this.nx_1.fy_1;
1616
+ var key_1 = this.ox_1;
1610
1617
  tmp_14 = !(isInterface(tmp0_2, KtMap) ? tmp0_2 : THROW_CCE()).s(key_1);
1611
1618
  } else {
1612
1619
  tmp_14 = false;
1613
1620
  }
1614
1621
  if (tmp_14) {
1615
- var iter = this.kx_1.cy_1.u().g();
1622
+ var iter = this.nx_1.fy_1.u().g();
1616
1623
  var oldest = iter.i();
1617
1624
  var oldestValue = oldest.r();
1618
1625
  iter.o1();
1619
- var tmp0_safe_receiver_1 = this.kx_1.ay_1;
1626
+ var tmp0_safe_receiver_1 = this.nx_1.dy_1;
1620
1627
  if (tmp0_safe_receiver_1 == null)
1621
1628
  null;
1622
1629
  else
1623
1630
  tmp0_safe_receiver_1(oldestValue);
1624
1631
  }
1625
- var tmp0_3 = this.kx_1.cy_1;
1626
- var tmp2_0 = this.lx_1;
1627
- var value_0 = this.mx_1;
1632
+ var tmp0_3 = this.nx_1.fy_1;
1633
+ var tmp2_0 = this.ox_1;
1634
+ var value_0 = this.px_1;
1628
1635
  tmp0_3.z1(tmp2_0, value_0);
1629
1636
  break l$ret$11;
1630
1637
  } catch ($p) {
1631
1638
  var tmp_15;
1632
1639
  var t_2 = $p;
1633
- this.px_1.gm(this.ox_1);
1640
+ this.sx_1.jm(this.rx_1);
1634
1641
  throw t_2;
1635
1642
  }
1636
1643
  }
1637
1644
  while (false);
1638
- this.px_1.gm(this.ox_1);
1639
- this.nx_1.lh(this.mx_1);
1640
- return this.mx_1;
1645
+ this.sx_1.jm(this.rx_1);
1646
+ this.qx_1.oh(this.px_1);
1647
+ return this.px_1;
1641
1648
  case 10:
1642
1649
  return suspendResult;
1643
1650
  case 11:
@@ -1658,33 +1665,33 @@
1658
1665
  };
1659
1666
  function LruCache(maxSize, loader, onEvict) {
1660
1667
  onEvict = onEvict === VOID ? null : onEvict;
1661
- this.yx_1 = maxSize;
1662
- this.zx_1 = loader;
1663
- this.ay_1 = onEvict;
1668
+ this.by_1 = maxSize;
1669
+ this.cy_1 = loader;
1670
+ this.dy_1 = onEvict;
1664
1671
  // Inline function 'kotlin.require' call
1665
- if (!(this.yx_1 > 0)) {
1672
+ if (!(this.by_1 > 0)) {
1666
1673
  var message = 'Cache size must be greater than 0';
1667
1674
  throw IllegalArgumentException_init_$Create$(toString(message));
1668
1675
  }
1669
- this.by_1 = Mutex();
1670
- this.cy_1 = LinkedHashMap_init_$Create$();
1676
+ this.ey_1 = Mutex();
1677
+ this.fy_1 = LinkedHashMap_init_$Create$();
1671
1678
  var tmp = this;
1672
1679
  // Inline function 'kotlin.collections.mutableMapOf' call
1673
- tmp.dy_1 = LinkedHashMap_init_$Create$();
1680
+ tmp.gy_1 = LinkedHashMap_init_$Create$();
1674
1681
  }
1675
- protoOf(LruCache).ey = function (key, $completion) {
1682
+ protoOf(LruCache).hy = function (key, $completion) {
1676
1683
  var tmp = new $getCOROUTINE$(this, key, $completion);
1677
1684
  tmp.c5_1 = Unit_instance;
1678
1685
  tmp.d5_1 = null;
1679
1686
  return tmp.i5();
1680
1687
  };
1681
1688
  function RawTile(width, height, rgba) {
1682
- this.fy_1 = width;
1683
- this.gy_1 = height;
1684
- this.hy_1 = rgba;
1689
+ this.iy_1 = width;
1690
+ this.jy_1 = height;
1691
+ this.ky_1 = rgba;
1685
1692
  // Inline function 'kotlin.require' call
1686
- if (!(this.hy_1.length === imul(imul(this.fy_1, this.gy_1), 4))) {
1687
- var message = 'rgba size ' + this.hy_1.length + ' does not match width*height*4 (' + imul(imul(this.fy_1, this.gy_1), 4) + ')';
1693
+ if (!(this.ky_1.length === imul(imul(this.iy_1, this.jy_1), 4))) {
1694
+ var message = 'rgba size ' + this.ky_1.length + ' does not match width*height*4 (' + imul(imul(this.iy_1, this.jy_1), 4) + ')';
1688
1695
  throw IllegalArgumentException_init_$Create$(toString(message));
1689
1696
  }
1690
1697
  }
@@ -1693,16 +1700,16 @@
1693
1700
  return true;
1694
1701
  if (!(other instanceof RawTile))
1695
1702
  return false;
1696
- return this.fy_1 === other.fy_1 && this.gy_1 === other.gy_1 && contentEquals(this.hy_1, other.hy_1);
1703
+ return this.iy_1 === other.iy_1 && this.jy_1 === other.jy_1 && contentEquals(this.ky_1, other.ky_1);
1697
1704
  };
1698
1705
  protoOf(RawTile).hashCode = function () {
1699
- var result = this.fy_1;
1700
- result = imul(31, result) + this.gy_1 | 0;
1701
- result = imul(31, result) + contentHashCode(this.hy_1) | 0;
1706
+ var result = this.iy_1;
1707
+ result = imul(31, result) + this.jy_1 | 0;
1708
+ result = imul(31, result) + contentHashCode(this.ky_1) | 0;
1702
1709
  return result;
1703
1710
  };
1704
1711
  function Tile_init_$Init$(raw, $this) {
1705
- Tile.call($this, raw.fy_1, raw.gy_1, raw.hy_1);
1712
+ Tile.call($this, raw.iy_1, raw.jy_1, raw.ky_1);
1706
1713
  return $this;
1707
1714
  }
1708
1715
  function Tile_init_$Create$(raw) {
@@ -1710,7 +1717,7 @@
1710
1717
  }
1711
1718
  function Companion() {
1712
1719
  }
1713
- protoOf(Companion).iy = function (r, g, b) {
1720
+ protoOf(Companion).ly = function (r, g, b) {
1714
1721
  var raw = r * 256.0 + g + b / 256.0 - 32768.0;
1715
1722
  return round(raw * 100.0) / 100.0;
1716
1723
  };
@@ -1719,80 +1726,80 @@
1719
1726
  return Companion_instance;
1720
1727
  }
1721
1728
  function Tile(width, height, rgba) {
1722
- this.ju_1 = width;
1723
- this.ku_1 = height;
1724
- this.lu_1 = rgba;
1729
+ this.mu_1 = width;
1730
+ this.nu_1 = height;
1731
+ this.ou_1 = rgba;
1725
1732
  var tmp = this;
1726
1733
  var tmp_0 = 0;
1727
- var tmp_1 = imul(this.ju_1, this.ku_1);
1734
+ var tmp_1 = imul(this.mu_1, this.nu_1);
1728
1735
  var tmp_2 = new Float64Array(tmp_1);
1729
1736
  while (tmp_0 < tmp_1) {
1730
1737
  tmp_2[tmp_0] = NaN;
1731
1738
  tmp_0 = tmp_0 + 1 | 0;
1732
1739
  }
1733
- tmp.mu_1 = tmp_2;
1734
- this.nu_1 = 0;
1740
+ tmp.pu_1 = tmp_2;
1741
+ this.qu_1 = 0;
1735
1742
  }
1736
- protoOf(Tile).ou = function (pixel) {
1737
- var containsUpper = this.ju_1;
1738
- var containsArg = pixel.du_1;
1743
+ protoOf(Tile).ru = function (pixel) {
1744
+ var containsUpper = this.mu_1;
1745
+ var containsArg = pixel.gu_1;
1739
1746
  // Inline function 'kotlin.require' call
1740
1747
  if (!(0 <= containsArg ? containsArg < containsUpper : false)) {
1741
- var message = 'Invalid x position: ' + pixel.du_1 + '. Must be between 0 and ' + (this.ju_1 - 1 | 0);
1748
+ var message = 'Invalid x position: ' + pixel.gu_1 + '. Must be between 0 and ' + (this.mu_1 - 1 | 0);
1742
1749
  throw IllegalArgumentException_init_$Create$(toString(message));
1743
1750
  }
1744
- var containsUpper_0 = this.ku_1;
1745
- var containsArg_0 = pixel.eu_1;
1751
+ var containsUpper_0 = this.nu_1;
1752
+ var containsArg_0 = pixel.hu_1;
1746
1753
  // Inline function 'kotlin.require' call
1747
1754
  if (!(0 <= containsArg_0 ? containsArg_0 < containsUpper_0 : false)) {
1748
- var message_0 = 'Invalid y position: ' + pixel.eu_1 + '. Must be between 0 and ' + (this.ku_1 - 1 | 0);
1755
+ var message_0 = 'Invalid y position: ' + pixel.hu_1 + '. Must be between 0 and ' + (this.nu_1 - 1 | 0);
1749
1756
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1750
1757
  }
1751
- var idx = imul(pixel.eu_1, this.ju_1) + pixel.du_1 | 0;
1752
- var cached = this.mu_1[idx];
1758
+ var idx = imul(pixel.hu_1, this.mu_1) + pixel.gu_1 | 0;
1759
+ var cached = this.pu_1[idx];
1753
1760
  if (!isNaN_0(cached))
1754
1761
  return cached;
1755
1762
  var byteOffset = imul(idx, 4);
1756
- var r = this.lu_1[byteOffset] & 255;
1757
- var g = this.lu_1[byteOffset + 1 | 0] & 255;
1758
- var b = this.lu_1[byteOffset + 2 | 0] & 255;
1759
- var elevation = Companion_instance.iy(r, g, b);
1760
- this.mu_1[idx] = elevation;
1761
- this.nu_1 = this.nu_1 + 1 | 0;
1763
+ var r = this.ou_1[byteOffset] & 255;
1764
+ var g = this.ou_1[byteOffset + 1 | 0] & 255;
1765
+ var b = this.ou_1[byteOffset + 2 | 0] & 255;
1766
+ var elevation = Companion_instance.ly(r, g, b);
1767
+ this.pu_1[idx] = elevation;
1768
+ this.qu_1 = this.qu_1 + 1 | 0;
1762
1769
  return elevation;
1763
1770
  };
1764
1771
  function buildUrl($this, tc) {
1765
- return replace(replace(replace($this.fu_1, '{z}', tc.oq_1.toString()), '{x}', tc.mq_1.toString()), '{y}', tc.nq_1.toString());
1772
+ return replace(replace(replace($this.iu_1, '{z}', tc.rq_1.toString()), '{x}', tc.pq_1.toString()), '{y}', tc.qq_1.toString());
1766
1773
  }
1767
1774
  function fetchAndDecodeTile$ref_1() {
1768
1775
  }
1769
- protoOf(fetchAndDecodeTile$ref_1).zu = function (p0, $completion) {
1776
+ protoOf(fetchAndDecodeTile$ref_1).cv = function (p0, $completion) {
1770
1777
  return fetchAndDecodeTile(p0, $completion);
1771
1778
  };
1772
1779
  protoOf(fetchAndDecodeTile$ref_1).q5 = function (p1, $completion) {
1773
- return this.zu((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1780
+ return this.cv((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1774
1781
  };
1775
1782
  function fetchAndDecodeTile$ref_2() {
1776
1783
  var i = new fetchAndDecodeTile$ref_1();
1777
1784
  var l = function (p0, $completion) {
1778
- return i.zu(p0, $completion);
1785
+ return i.cv(p0, $completion);
1779
1786
  };
1780
1787
  l.callableName = 'fetchAndDecodeTile';
1781
1788
  l.$arity = 1;
1782
1789
  return l;
1783
1790
  }
1784
1791
  function TileManager$cache$slambda(this$0, resultContinuation) {
1785
- this.ry_1 = this$0;
1792
+ this.uy_1 = this$0;
1786
1793
  CoroutineImpl.call(this, resultContinuation);
1787
1794
  }
1788
- protoOf(TileManager$cache$slambda).ty = function (tc, $completion) {
1789
- var tmp = this.uy(tc, $completion);
1795
+ protoOf(TileManager$cache$slambda).wy = function (tc, $completion) {
1796
+ var tmp = this.xy(tc, $completion);
1790
1797
  tmp.c5_1 = Unit_instance;
1791
1798
  tmp.d5_1 = null;
1792
1799
  return tmp.i5();
1793
1800
  };
1794
1801
  protoOf(TileManager$cache$slambda).q5 = function (p1, $completion) {
1795
- return this.ty(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
1802
+ return this.wy(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
1796
1803
  };
1797
1804
  protoOf(TileManager$cache$slambda).i5 = function () {
1798
1805
  var suspendResult = this.c5_1;
@@ -1803,7 +1810,7 @@
1803
1810
  case 0:
1804
1811
  this.b5_1 = 2;
1805
1812
  this.a5_1 = 1;
1806
- suspendResult = this.ry_1.gu_1(buildUrl(this.ry_1, this.sy_1), this);
1813
+ suspendResult = this.uy_1.ju_1(buildUrl(this.uy_1, this.vy_1), this);
1807
1814
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1808
1815
  return suspendResult;
1809
1816
  }
@@ -1826,15 +1833,15 @@
1826
1833
  }
1827
1834
  while (true);
1828
1835
  };
1829
- protoOf(TileManager$cache$slambda).uy = function (tc, completion) {
1830
- var i = new TileManager$cache$slambda(this.ry_1, completion);
1831
- i.sy_1 = tc;
1836
+ protoOf(TileManager$cache$slambda).xy = function (tc, completion) {
1837
+ var i = new TileManager$cache$slambda(this.uy_1, completion);
1838
+ i.vy_1 = tc;
1832
1839
  return i;
1833
1840
  };
1834
1841
  function TileManager$cache$slambda_0(this$0, resultContinuation) {
1835
1842
  var i = new TileManager$cache$slambda(this$0, resultContinuation);
1836
1843
  var l = function (tc, $completion) {
1837
- return i.ty(tc, $completion);
1844
+ return i.wy(tc, $completion);
1838
1845
  };
1839
1846
  l.$arity = 1;
1840
1847
  return l;
@@ -1847,26 +1854,26 @@
1847
1854
  tmp = fetcher;
1848
1855
  }
1849
1856
  fetcher = tmp;
1850
- this.fu_1 = urlTemplate;
1851
- this.gu_1 = fetcher;
1857
+ this.iu_1 = urlTemplate;
1858
+ this.ju_1 = fetcher;
1852
1859
  var tmp_0 = this;
1853
- tmp_0.hu_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
1860
+ tmp_0.ku_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
1854
1861
  }
1855
- protoOf(TileManager).iu = function (tileCoords, $completion) {
1856
- return this.hu_1.ey(tileCoords, $completion);
1862
+ protoOf(TileManager).lu = function (tileCoords, $completion) {
1863
+ return this.ku_1.hy(tileCoords, $completion);
1857
1864
  };
1858
1865
  function TileCoordinates(x, y, z) {
1859
- this.mq_1 = x;
1860
- this.nq_1 = y;
1861
- this.oq_1 = z;
1866
+ this.pq_1 = x;
1867
+ this.qq_1 = y;
1868
+ this.rq_1 = z;
1862
1869
  }
1863
1870
  protoOf(TileCoordinates).toString = function () {
1864
- return 'TileCoordinates(x=' + this.mq_1 + ', y=' + this.nq_1 + ', z=' + this.oq_1 + ')';
1871
+ return 'TileCoordinates(x=' + this.pq_1 + ', y=' + this.qq_1 + ', z=' + this.rq_1 + ')';
1865
1872
  };
1866
1873
  protoOf(TileCoordinates).hashCode = function () {
1867
- var result = this.mq_1;
1868
- result = imul(result, 31) + this.nq_1 | 0;
1869
- result = imul(result, 31) + this.oq_1 | 0;
1874
+ var result = this.pq_1;
1875
+ result = imul(result, 31) + this.qq_1 | 0;
1876
+ result = imul(result, 31) + this.rq_1 | 0;
1870
1877
  return result;
1871
1878
  };
1872
1879
  protoOf(TileCoordinates).equals = function (other) {
@@ -1874,30 +1881,30 @@
1874
1881
  return true;
1875
1882
  if (!(other instanceof TileCoordinates))
1876
1883
  return false;
1877
- if (!(this.mq_1 === other.mq_1))
1884
+ if (!(this.pq_1 === other.pq_1))
1878
1885
  return false;
1879
- if (!(this.nq_1 === other.nq_1))
1886
+ if (!(this.qq_1 === other.qq_1))
1880
1887
  return false;
1881
- if (!(this.oq_1 === other.oq_1))
1888
+ if (!(this.rq_1 === other.rq_1))
1882
1889
  return false;
1883
1890
  return true;
1884
1891
  };
1885
1892
  function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
1886
- this.uu_1 = x;
1887
- this.vu_1 = y;
1888
- this.wu_1 = xFloat;
1889
- this.xu_1 = yFloat;
1890
- this.yu_1 = z;
1893
+ this.xu_1 = x;
1894
+ this.yu_1 = y;
1895
+ this.zu_1 = xFloat;
1896
+ this.av_1 = yFloat;
1897
+ this.bv_1 = z;
1891
1898
  }
1892
1899
  protoOf(TileCoordinatesFloat).toString = function () {
1893
- return 'TileCoordinatesFloat(x=' + this.uu_1 + ', y=' + this.vu_1 + ', xFloat=' + this.wu_1 + ', yFloat=' + this.xu_1 + ', z=' + this.yu_1 + ')';
1900
+ return 'TileCoordinatesFloat(x=' + this.xu_1 + ', y=' + this.yu_1 + ', xFloat=' + this.zu_1 + ', yFloat=' + this.av_1 + ', z=' + this.bv_1 + ')';
1894
1901
  };
1895
1902
  protoOf(TileCoordinatesFloat).hashCode = function () {
1896
- var result = this.uu_1;
1897
- result = imul(result, 31) + this.vu_1 | 0;
1898
- result = imul(result, 31) + getNumberHashCode(this.wu_1) | 0;
1899
- result = imul(result, 31) + getNumberHashCode(this.xu_1) | 0;
1903
+ var result = this.xu_1;
1900
1904
  result = imul(result, 31) + this.yu_1 | 0;
1905
+ result = imul(result, 31) + getNumberHashCode(this.zu_1) | 0;
1906
+ result = imul(result, 31) + getNumberHashCode(this.av_1) | 0;
1907
+ result = imul(result, 31) + this.bv_1 | 0;
1901
1908
  return result;
1902
1909
  };
1903
1910
  protoOf(TileCoordinatesFloat).equals = function (other) {
@@ -1905,30 +1912,30 @@
1905
1912
  return true;
1906
1913
  if (!(other instanceof TileCoordinatesFloat))
1907
1914
  return false;
1908
- if (!(this.uu_1 === other.uu_1))
1915
+ if (!(this.xu_1 === other.xu_1))
1909
1916
  return false;
1910
- if (!(this.vu_1 === other.vu_1))
1917
+ if (!(this.yu_1 === other.yu_1))
1911
1918
  return false;
1912
- if (!equals(this.wu_1, other.wu_1))
1919
+ if (!equals(this.zu_1, other.zu_1))
1913
1920
  return false;
1914
- if (!equals(this.xu_1, other.xu_1))
1921
+ if (!equals(this.av_1, other.av_1))
1915
1922
  return false;
1916
- if (!(this.yu_1 === other.yu_1))
1923
+ if (!(this.bv_1 === other.bv_1))
1917
1924
  return false;
1918
1925
  return true;
1919
1926
  };
1920
1927
  function Pixel(tile, x, y) {
1921
- this.cu_1 = tile;
1922
- this.du_1 = x;
1923
- this.eu_1 = y;
1928
+ this.fu_1 = tile;
1929
+ this.gu_1 = x;
1930
+ this.hu_1 = y;
1924
1931
  }
1925
1932
  protoOf(Pixel).toString = function () {
1926
- return 'Pixel(tile=' + this.cu_1.toString() + ', x=' + this.du_1 + ', y=' + this.eu_1 + ')';
1933
+ return 'Pixel(tile=' + this.fu_1.toString() + ', x=' + this.gu_1 + ', y=' + this.hu_1 + ')';
1927
1934
  };
1928
1935
  protoOf(Pixel).hashCode = function () {
1929
- var result = this.cu_1.hashCode();
1930
- result = imul(result, 31) + this.du_1 | 0;
1931
- result = imul(result, 31) + this.eu_1 | 0;
1936
+ var result = this.fu_1.hashCode();
1937
+ result = imul(result, 31) + this.gu_1 | 0;
1938
+ result = imul(result, 31) + this.hu_1 | 0;
1932
1939
  return result;
1933
1940
  };
1934
1941
  protoOf(Pixel).equals = function (other) {
@@ -1936,26 +1943,26 @@
1936
1943
  return true;
1937
1944
  if (!(other instanceof Pixel))
1938
1945
  return false;
1939
- if (!this.cu_1.equals(other.cu_1))
1946
+ if (!this.fu_1.equals(other.fu_1))
1940
1947
  return false;
1941
- if (!(this.du_1 === other.du_1))
1948
+ if (!(this.gu_1 === other.gu_1))
1942
1949
  return false;
1943
- if (!(this.eu_1 === other.eu_1))
1950
+ if (!(this.hu_1 === other.hu_1))
1944
1951
  return false;
1945
1952
  return true;
1946
1953
  };
1947
1954
  function PixelFloat(tile, x, y) {
1948
- this.yt_1 = tile;
1949
- this.zt_1 = x;
1950
- this.au_1 = y;
1955
+ this.bu_1 = tile;
1956
+ this.cu_1 = x;
1957
+ this.du_1 = y;
1951
1958
  }
1952
1959
  protoOf(PixelFloat).toString = function () {
1953
- return 'PixelFloat(tile=' + this.yt_1.toString() + ', x=' + this.zt_1 + ', y=' + this.au_1 + ')';
1960
+ return 'PixelFloat(tile=' + this.bu_1.toString() + ', x=' + this.cu_1 + ', y=' + this.du_1 + ')';
1954
1961
  };
1955
1962
  protoOf(PixelFloat).hashCode = function () {
1956
- var result = this.yt_1.hashCode();
1957
- result = imul(result, 31) + getNumberHashCode(this.zt_1) | 0;
1958
- result = imul(result, 31) + getNumberHashCode(this.au_1) | 0;
1963
+ var result = this.bu_1.hashCode();
1964
+ result = imul(result, 31) + getNumberHashCode(this.cu_1) | 0;
1965
+ result = imul(result, 31) + getNumberHashCode(this.du_1) | 0;
1959
1966
  return result;
1960
1967
  };
1961
1968
  protoOf(PixelFloat).equals = function (other) {
@@ -1963,17 +1970,17 @@
1963
1970
  return true;
1964
1971
  if (!(other instanceof PixelFloat))
1965
1972
  return false;
1966
- if (!this.yt_1.equals(other.yt_1))
1973
+ if (!this.bu_1.equals(other.bu_1))
1967
1974
  return false;
1968
- if (!equals(this.zt_1, other.zt_1))
1975
+ if (!equals(this.cu_1, other.cu_1))
1969
1976
  return false;
1970
- if (!equals(this.au_1, other.au_1))
1977
+ if (!equals(this.du_1, other.du_1))
1971
1978
  return false;
1972
1979
  return true;
1973
1980
  };
1974
1981
  function Companion_0() {
1975
1982
  Companion_instance_0 = this;
1976
- this.vy_1 = new Vector3D(0.0, 0.0, 0.0);
1983
+ this.yy_1 = new Vector3D(0.0, 0.0, 0.0);
1977
1984
  }
1978
1985
  var Companion_instance_0;
1979
1986
  function Companion_getInstance_0() {
@@ -1983,49 +1990,49 @@
1983
1990
  }
1984
1991
  function Vector3D(x, y, z) {
1985
1992
  Companion_getInstance_0();
1986
- this.zr_1 = x;
1987
- this.as_1 = y;
1988
- this.bs_1 = z;
1993
+ this.cs_1 = x;
1994
+ this.ds_1 = y;
1995
+ this.es_1 = z;
1989
1996
  }
1990
- protoOf(Vector3D).wy = function (other) {
1991
- var tmp0 = this.zr_1 - other.zr_1;
1997
+ protoOf(Vector3D).zy = function (other) {
1998
+ var tmp0 = this.cs_1 - other.cs_1;
1992
1999
  // Inline function 'kotlin.math.hypot' call
1993
- var y = this.as_1 - other.as_1;
2000
+ var y = this.ds_1 - other.ds_1;
1994
2001
  var tmp0_0 = hypot(tmp0, y);
1995
2002
  // Inline function 'kotlin.math.hypot' call
1996
- var y_0 = this.bs_1 - other.bs_1;
2003
+ var y_0 = this.es_1 - other.es_1;
1997
2004
  return hypot(tmp0_0, y_0);
1998
2005
  };
1999
- protoOf(Vector3D).xy = function (other) {
2000
- return new Vector3D(this.zr_1 - other.zr_1, this.as_1 - other.as_1, this.bs_1 - other.bs_1);
2006
+ protoOf(Vector3D).az = function (other) {
2007
+ return new Vector3D(this.cs_1 - other.cs_1, this.ds_1 - other.ds_1, this.es_1 - other.es_1);
2001
2008
  };
2002
- protoOf(Vector3D).yy = function (other) {
2003
- return new Vector3D(this.zr_1 + other.zr_1, this.as_1 + other.as_1, this.bs_1 + other.bs_1);
2009
+ protoOf(Vector3D).bz = function (other) {
2010
+ return new Vector3D(this.cs_1 + other.cs_1, this.ds_1 + other.ds_1, this.es_1 + other.es_1);
2004
2011
  };
2005
- protoOf(Vector3D).zy = function (scalar) {
2006
- return new Vector3D(this.zr_1 * scalar, this.as_1 * scalar, this.bs_1 * scalar);
2012
+ protoOf(Vector3D).cz = function (scalar) {
2013
+ return new Vector3D(this.cs_1 * scalar, this.ds_1 * scalar, this.es_1 * scalar);
2007
2014
  };
2008
- protoOf(Vector3D).az = function (other) {
2009
- return this.zr_1 * other.zr_1 + this.as_1 * other.as_1 + this.bs_1 * other.bs_1;
2015
+ protoOf(Vector3D).dz = function (other) {
2016
+ return this.cs_1 * other.cs_1 + this.ds_1 * other.ds_1 + this.es_1 * other.es_1;
2010
2017
  };
2011
- protoOf(Vector3D).cs = function (segmentStart, segmentEnd) {
2012
- var segmentVector = segmentEnd.xy(segmentStart);
2013
- var segmentLengthSq = segmentVector.az(segmentVector);
2018
+ protoOf(Vector3D).fs = function (segmentStart, segmentEnd) {
2019
+ var segmentVector = segmentEnd.az(segmentStart);
2020
+ var segmentLengthSq = segmentVector.dz(segmentVector);
2014
2021
  if (segmentLengthSq === 0.0)
2015
- return this.wy(segmentStart);
2016
- var pointVector = this.xy(segmentStart);
2017
- var projection = pointVector.az(segmentVector) / segmentLengthSq;
2022
+ return this.zy(segmentStart);
2023
+ var pointVector = this.az(segmentStart);
2024
+ var projection = pointVector.dz(segmentVector) / segmentLengthSq;
2018
2025
  var clamped = coerceIn_0(projection, 0.0, 1.0);
2019
- var closest = segmentStart.yy(segmentVector.zy(clamped));
2020
- return this.wy(closest);
2026
+ var closest = segmentStart.bz(segmentVector.cz(clamped));
2027
+ return this.zy(closest);
2021
2028
  };
2022
2029
  protoOf(Vector3D).toString = function () {
2023
- return 'Vector3D(x=' + this.zr_1 + ', y=' + this.as_1 + ', z=' + this.bs_1 + ')';
2030
+ return 'Vector3D(x=' + this.cs_1 + ', y=' + this.ds_1 + ', z=' + this.es_1 + ')';
2024
2031
  };
2025
2032
  protoOf(Vector3D).hashCode = function () {
2026
- var result = getNumberHashCode(this.zr_1);
2027
- result = imul(result, 31) + getNumberHashCode(this.as_1) | 0;
2028
- result = imul(result, 31) + getNumberHashCode(this.bs_1) | 0;
2033
+ var result = getNumberHashCode(this.cs_1);
2034
+ result = imul(result, 31) + getNumberHashCode(this.ds_1) | 0;
2035
+ result = imul(result, 31) + getNumberHashCode(this.es_1) | 0;
2029
2036
  return result;
2030
2037
  };
2031
2038
  protoOf(Vector3D).equals = function (other) {
@@ -2033,24 +2040,24 @@
2033
2040
  return true;
2034
2041
  if (!(other instanceof Vector3D))
2035
2042
  return false;
2036
- if (!equals(this.zr_1, other.zr_1))
2043
+ if (!equals(this.cs_1, other.cs_1))
2037
2044
  return false;
2038
- if (!equals(this.as_1, other.as_1))
2045
+ if (!equals(this.ds_1, other.ds_1))
2039
2046
  return false;
2040
- if (!equals(this.bs_1, other.bs_1))
2047
+ if (!equals(this.es_1, other.es_1))
2041
2048
  return false;
2042
2049
  return true;
2043
2050
  };
2044
2051
  function newElevationProvider(configDto) {
2045
2052
  var defaults = new ElevationProviderConfig();
2046
2053
  var tmp1_elvis_lhs = configDto == null ? null : configDto.zoomLevel;
2047
- var tmp = tmp1_elvis_lhs == null ? defaults.ev_1 : tmp1_elvis_lhs;
2054
+ var tmp = tmp1_elvis_lhs == null ? defaults.hv_1 : tmp1_elvis_lhs;
2048
2055
  var tmp3_elvis_lhs = configDto == null ? null : configDto.cacheSize;
2049
- var tmp_0 = tmp3_elvis_lhs == null ? defaults.fv_1 : tmp3_elvis_lhs;
2056
+ var tmp_0 = tmp3_elvis_lhs == null ? defaults.iv_1 : tmp3_elvis_lhs;
2050
2057
  var tmp5_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
2051
- var tmp_1 = tmp5_elvis_lhs == null ? defaults.gv_1 : tmp5_elvis_lhs;
2058
+ var tmp_1 = tmp5_elvis_lhs == null ? defaults.jv_1 : tmp5_elvis_lhs;
2052
2059
  var tmp7_elvis_lhs = configDto == null ? null : configDto.tileSize;
2053
- var cfg = new ElevationProviderConfig(tmp, tmp_0, tmp_1, tmp7_elvis_lhs == null ? defaults.hv_1 : tmp7_elvis_lhs, defaults.iv_1);
2060
+ var cfg = new ElevationProviderConfig(tmp, tmp_0, tmp_1, tmp7_elvis_lhs == null ? defaults.kv_1 : tmp7_elvis_lhs, defaults.lv_1);
2054
2061
  return new ElevationProvider(cfg);
2055
2062
  }
2056
2063
  function getElevation(provider, latitude, longitude, interpolation) {
@@ -2076,20 +2083,20 @@
2076
2083
  return new FilterOptions(_this__u8e3s4.tolerance, _this__u8e3s4.zExaggeration, _this__u8e3s4.enabled);
2077
2084
  }
2078
2085
  function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
2079
- this.jz_1 = $provider;
2080
- this.kz_1 = $latitude;
2081
- this.lz_1 = $longitude;
2082
- this.mz_1 = $interpolation;
2086
+ this.mz_1 = $provider;
2087
+ this.nz_1 = $latitude;
2088
+ this.oz_1 = $longitude;
2089
+ this.pz_1 = $interpolation;
2083
2090
  CoroutineImpl.call(this, resultContinuation);
2084
2091
  }
2085
- protoOf(getElevation$slambda).oz = function ($this$promise, $completion) {
2086
- var tmp = this.cw($this$promise, $completion);
2092
+ protoOf(getElevation$slambda).rz = function ($this$promise, $completion) {
2093
+ var tmp = this.fw($this$promise, $completion);
2087
2094
  tmp.c5_1 = Unit_instance;
2088
2095
  tmp.d5_1 = null;
2089
2096
  return tmp.i5();
2090
2097
  };
2091
2098
  protoOf(getElevation$slambda).q5 = function (p1, $completion) {
2092
- return this.oz((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2099
+ return this.rz((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2093
2100
  };
2094
2101
  protoOf(getElevation$slambda).i5 = function () {
2095
2102
  var suspendResult = this.c5_1;
@@ -2100,7 +2107,7 @@
2100
2107
  case 0:
2101
2108
  this.b5_1 = 2;
2102
2109
  this.a5_1 = 1;
2103
- suspendResult = this.jz_1.jv(this.kz_1, this.lz_1, this.mz_1, this);
2110
+ suspendResult = this.mz_1.mv(this.nz_1, this.oz_1, this.pz_1, this);
2104
2111
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2105
2112
  return suspendResult;
2106
2113
  }
@@ -2122,33 +2129,33 @@
2122
2129
  }
2123
2130
  while (true);
2124
2131
  };
2125
- protoOf(getElevation$slambda).cw = function ($this$promise, completion) {
2126
- var i = new getElevation$slambda(this.jz_1, this.kz_1, this.lz_1, this.mz_1, completion);
2127
- i.nz_1 = $this$promise;
2132
+ protoOf(getElevation$slambda).fw = function ($this$promise, completion) {
2133
+ var i = new getElevation$slambda(this.mz_1, this.nz_1, this.oz_1, this.pz_1, completion);
2134
+ i.qz_1 = $this$promise;
2128
2135
  return i;
2129
2136
  };
2130
2137
  function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
2131
2138
  var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
2132
2139
  var l = function ($this$promise, $completion) {
2133
- return i.oz($this$promise, $completion);
2140
+ return i.rz($this$promise, $completion);
2134
2141
  };
2135
2142
  l.$arity = 1;
2136
2143
  return l;
2137
2144
  }
2138
2145
  function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
2139
- this.xz_1 = $path;
2140
- this.yz_1 = $provider;
2141
- this.zz_1 = $options;
2146
+ this.a10_1 = $path;
2147
+ this.b10_1 = $provider;
2148
+ this.c10_1 = $options;
2142
2149
  CoroutineImpl.call(this, resultContinuation);
2143
2150
  }
2144
- protoOf(getElevationsAlong$slambda).b10 = function ($this$promise, $completion) {
2145
- var tmp = this.cw($this$promise, $completion);
2151
+ protoOf(getElevationsAlong$slambda).e10 = function ($this$promise, $completion) {
2152
+ var tmp = this.fw($this$promise, $completion);
2146
2153
  tmp.c5_1 = Unit_instance;
2147
2154
  tmp.d5_1 = null;
2148
2155
  return tmp.i5();
2149
2156
  };
2150
2157
  protoOf(getElevationsAlong$slambda).q5 = function (p1, $completion) {
2151
- return this.b10((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2158
+ return this.e10((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2152
2159
  };
2153
2160
  protoOf(getElevationsAlong$slambda).i5 = function () {
2154
2161
  var suspendResult = this.c5_1;
@@ -2158,7 +2165,7 @@
2158
2165
  switch (tmp) {
2159
2166
  case 0:
2160
2167
  this.b5_1 = 2;
2161
- var this_0 = this.xz_1;
2168
+ var this_0 = this.a10_1;
2162
2169
  var destination = ArrayList_init_$Create$_0(this_0.length);
2163
2170
  var inductionVariable = 0;
2164
2171
  var last = this_0.length;
@@ -2170,21 +2177,21 @@
2170
2177
 
2171
2178
  var coords = destination;
2172
2179
  this.a5_1 = 1;
2173
- var tmp0_safe_receiver = this.zz_1;
2180
+ var tmp0_safe_receiver = this.c10_1;
2174
2181
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
2175
2182
  var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
2176
- var tmp2_safe_receiver = this.zz_1;
2183
+ var tmp2_safe_receiver = this.c10_1;
2177
2184
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
2178
2185
  var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
2179
- var tmp4_safe_receiver = this.zz_1;
2186
+ var tmp4_safe_receiver = this.c10_1;
2180
2187
  var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
2181
2188
  var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
2182
- var tmp6_safe_receiver = this.zz_1;
2189
+ var tmp6_safe_receiver = this.c10_1;
2183
2190
  var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
2184
2191
  var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
2185
- var tmp8_safe_receiver = this.zz_1;
2192
+ var tmp8_safe_receiver = this.c10_1;
2186
2193
  var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
2187
- suspendResult = this.yz_1.kv(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
2194
+ suspendResult = this.b10_1.nv(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
2188
2195
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2189
2196
  return suspendResult;
2190
2197
  }
@@ -2198,7 +2205,7 @@
2198
2205
  while (tmp_4 < tmp_5) {
2199
2206
  var tmp_7 = tmp_4;
2200
2207
  var c = results.k(tmp_7);
2201
- tmp_6[tmp_7] = coordsEle(c.vp(), c.wp(), c.tr());
2208
+ tmp_6[tmp_7] = coordsEle(c.yp(), c.zp(), c.wr());
2202
2209
  tmp_4 = tmp_4 + 1 | 0;
2203
2210
  }
2204
2211
 
@@ -2217,34 +2224,197 @@
2217
2224
  }
2218
2225
  while (true);
2219
2226
  };
2220
- protoOf(getElevationsAlong$slambda).cw = function ($this$promise, completion) {
2221
- var i = new getElevationsAlong$slambda(this.xz_1, this.yz_1, this.zz_1, completion);
2222
- i.a10_1 = $this$promise;
2227
+ protoOf(getElevationsAlong$slambda).fw = function ($this$promise, completion) {
2228
+ var i = new getElevationsAlong$slambda(this.a10_1, this.b10_1, this.c10_1, completion);
2229
+ i.d10_1 = $this$promise;
2223
2230
  return i;
2224
2231
  };
2225
2232
  function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
2226
2233
  var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
2227
2234
  var l = function ($this$promise, $completion) {
2228
- return i.b10($this$promise, $completion);
2235
+ return i.e10($this$promise, $completion);
2229
2236
  };
2230
2237
  l.$arity = 1;
2231
2238
  return l;
2232
2239
  }
2233
- function fetchUrl(url) {
2240
+ function get_isNode() {
2241
+ _init_properties_TileFetcher_js_kt__7a2f1e();
2242
+ return isNode;
2243
+ }
2244
+ var isNode;
2245
+ function get_nodeWebpDecoderPromise() {
2246
+ _init_properties_TileFetcher_js_kt__7a2f1e();
2247
+ var tmp0 = nodeWebpDecoderPromise$delegate;
2248
+ var tmp = KProperty0;
2249
+ // Inline function 'kotlin.getValue' call
2250
+ getPropertyCallableRef('nodeWebpDecoderPromise', 0, tmp, _get_nodeWebpDecoderPromise_$ref_s562t(), null);
2251
+ return tmp0.r();
2252
+ }
2253
+ var nodeWebpDecoderPromise$delegate;
2254
+ function fetchUrlBrowser(url) {
2255
+ _init_properties_TileFetcher_js_kt__7a2f1e();
2234
2256
  // Inline function 'kotlin.js.unsafeCast' call
2235
2257
  return fetch(url);
2236
2258
  }
2259
+ function fetchUrlNode(url) {
2260
+ _init_properties_TileFetcher_js_kt__7a2f1e();
2261
+ // Inline function 'kotlin.js.unsafeCast' call
2262
+ return globalThis.fetch(url);
2263
+ }
2264
+ function responseArrayBuffer(res) {
2265
+ _init_properties_TileFetcher_js_kt__7a2f1e();
2266
+ // Inline function 'kotlin.js.unsafeCast' call
2267
+ return res.arrayBuffer();
2268
+ }
2269
+ function decodeWebpNode(buffer, $completion) {
2270
+ var tmp = new $decodeWebpNodeCOROUTINE$(buffer, $completion);
2271
+ tmp.c5_1 = Unit_instance;
2272
+ tmp.d5_1 = null;
2273
+ return tmp.i5();
2274
+ }
2237
2275
  function fetchAndDecodeTile(url, $completion) {
2238
2276
  var tmp = new $fetchAndDecodeTileCOROUTINE$(url, $completion);
2239
2277
  tmp.c5_1 = Unit_instance;
2240
2278
  tmp.d5_1 = null;
2241
2279
  return tmp.i5();
2242
2280
  }
2281
+ function decodeBrowser(url, $completion) {
2282
+ var tmp = new $decodeBrowserCOROUTINE$(url, $completion);
2283
+ tmp.c5_1 = Unit_instance;
2284
+ tmp.d5_1 = null;
2285
+ return tmp.i5();
2286
+ }
2287
+ function decodeNode(url, $completion) {
2288
+ var tmp = new $decodeNodeCOROUTINE$(url, $completion);
2289
+ tmp.c5_1 = Unit_instance;
2290
+ tmp.d5_1 = null;
2291
+ return tmp.i5();
2292
+ }
2293
+ function nodeWebpDecoderPromise$delegate$lambda() {
2294
+ _init_properties_TileFetcher_js_kt__7a2f1e();
2295
+ // Inline function 'kotlin.js.unsafeCast' call
2296
+ return function () {
2297
+ var path = eval('require')('path');
2298
+ var fs = eval('require')('fs');
2299
+ var req = eval('require');
2300
+ var decodeMod = req('@jsquash/webp/decode.js');
2301
+ var wasmDir = path.dirname(req.resolve('@jsquash/webp/decode.js'));
2302
+ var wasmPath = path.join(wasmDir, 'codec/dec/webp_dec.wasm');
2303
+ var wasmBytes = fs.readFileSync(wasmPath);
2304
+ return WebAssembly.compile(wasmBytes).then(function (wasmModule) {
2305
+ return decodeMod.init(wasmModule).then(function () {
2306
+ return decodeMod.default;
2307
+ });
2308
+ });
2309
+ }();
2310
+ }
2311
+ function _get_nodeWebpDecoderPromise_$ref_s562t() {
2312
+ return function () {
2313
+ return get_nodeWebpDecoderPromise();
2314
+ };
2315
+ }
2316
+ function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
2317
+ CoroutineImpl.call(this, resultContinuation);
2318
+ this.n10_1 = buffer;
2319
+ }
2320
+ protoOf($decodeWebpNodeCOROUTINE$).i5 = function () {
2321
+ var suspendResult = this.c5_1;
2322
+ $sm: do
2323
+ try {
2324
+ var tmp = this.a5_1;
2325
+ switch (tmp) {
2326
+ case 0:
2327
+ this.b5_1 = 3;
2328
+ this.a5_1 = 1;
2329
+ suspendResult = await_0(get_nodeWebpDecoderPromise(), this);
2330
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2331
+ return suspendResult;
2332
+ }
2333
+
2334
+ continue $sm;
2335
+ case 1:
2336
+ var decode = suspendResult;
2337
+ var resultPromise = decode(this.n10_1);
2338
+ this.a5_1 = 2;
2339
+ suspendResult = await_0(resultPromise, this);
2340
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2341
+ return suspendResult;
2342
+ }
2343
+
2344
+ continue $sm;
2345
+ case 2:
2346
+ return suspendResult;
2347
+ case 3:
2348
+ throw this.d5_1;
2349
+ }
2350
+ } catch ($p) {
2351
+ var e = $p;
2352
+ if (this.b5_1 === 3) {
2353
+ throw e;
2354
+ } else {
2355
+ this.a5_1 = this.b5_1;
2356
+ this.d5_1 = e;
2357
+ }
2358
+ }
2359
+ while (true);
2360
+ };
2243
2361
  function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
2244
2362
  CoroutineImpl.call(this, resultContinuation);
2245
- this.k10_1 = url;
2363
+ this.w10_1 = url;
2246
2364
  }
2247
2365
  protoOf($fetchAndDecodeTileCOROUTINE$).i5 = function () {
2366
+ var suspendResult = this.c5_1;
2367
+ $sm: do
2368
+ try {
2369
+ var tmp = this.a5_1;
2370
+ switch (tmp) {
2371
+ case 0:
2372
+ this.b5_1 = 4;
2373
+ if (get_isNode()) {
2374
+ this.a5_1 = 2;
2375
+ suspendResult = decodeNode(this.w10_1, this);
2376
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2377
+ return suspendResult;
2378
+ }
2379
+ continue $sm;
2380
+ } else {
2381
+ this.a5_1 = 1;
2382
+ suspendResult = decodeBrowser(this.w10_1, this);
2383
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2384
+ return suspendResult;
2385
+ }
2386
+ continue $sm;
2387
+ }
2388
+
2389
+ case 1:
2390
+ this.x10_1 = suspendResult;
2391
+ this.a5_1 = 3;
2392
+ continue $sm;
2393
+ case 2:
2394
+ this.x10_1 = suspendResult;
2395
+ this.a5_1 = 3;
2396
+ continue $sm;
2397
+ case 3:
2398
+ return this.x10_1;
2399
+ case 4:
2400
+ throw this.d5_1;
2401
+ }
2402
+ } catch ($p) {
2403
+ var e = $p;
2404
+ if (this.b5_1 === 4) {
2405
+ throw e;
2406
+ } else {
2407
+ this.a5_1 = this.b5_1;
2408
+ this.d5_1 = e;
2409
+ }
2410
+ }
2411
+ while (true);
2412
+ };
2413
+ function $decodeBrowserCOROUTINE$(url, resultContinuation) {
2414
+ CoroutineImpl.call(this, resultContinuation);
2415
+ this.g11_1 = url;
2416
+ }
2417
+ protoOf($decodeBrowserCOROUTINE$).i5 = function () {
2248
2418
  var suspendResult = this.c5_1;
2249
2419
  $sm: do
2250
2420
  try {
@@ -2253,7 +2423,7 @@
2253
2423
  case 0:
2254
2424
  this.b5_1 = 4;
2255
2425
  this.a5_1 = 1;
2256
- suspendResult = await_0(fetchUrl(this.k10_1), this);
2426
+ suspendResult = await_0(fetchUrlBrowser(this.g11_1), this);
2257
2427
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2258
2428
  return suspendResult;
2259
2429
  }
@@ -2262,7 +2432,7 @@
2262
2432
  case 1:
2263
2433
  var res = suspendResult;
2264
2434
  if (!res.ok) {
2265
- var message = 'Tile fetch failed for ' + this.k10_1 + ': HTTP ' + res.status;
2435
+ var message = 'Tile fetch failed for ' + this.g11_1 + ': HTTP ' + res.status;
2266
2436
  throw IllegalStateException_init_$Create$_0(toString(message));
2267
2437
  }
2268
2438
 
@@ -2331,6 +2501,85 @@
2331
2501
  }
2332
2502
  while (true);
2333
2503
  };
2504
+ function $decodeNodeCOROUTINE$(url, resultContinuation) {
2505
+ CoroutineImpl.call(this, resultContinuation);
2506
+ this.p11_1 = url;
2507
+ }
2508
+ protoOf($decodeNodeCOROUTINE$).i5 = function () {
2509
+ var suspendResult = this.c5_1;
2510
+ $sm: do
2511
+ try {
2512
+ var tmp = this.a5_1;
2513
+ switch (tmp) {
2514
+ case 0:
2515
+ this.b5_1 = 4;
2516
+ this.a5_1 = 1;
2517
+ suspendResult = await_0(fetchUrlNode(this.p11_1), this);
2518
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2519
+ return suspendResult;
2520
+ }
2521
+
2522
+ continue $sm;
2523
+ case 1:
2524
+ var res = suspendResult;
2525
+ if (!res.ok) {
2526
+ var message = 'Tile fetch failed for ' + this.p11_1 + ': HTTP ' + res.status;
2527
+ throw IllegalStateException_init_$Create$_0(toString(message));
2528
+ }
2529
+
2530
+ this.a5_1 = 2;
2531
+ suspendResult = await_0(responseArrayBuffer(res), this);
2532
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2533
+ return suspendResult;
2534
+ }
2535
+
2536
+ continue $sm;
2537
+ case 2:
2538
+ var ab = suspendResult;
2539
+ this.a5_1 = 3;
2540
+ suspendResult = decodeWebpNode(ab, this);
2541
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2542
+ return suspendResult;
2543
+ }
2544
+
2545
+ continue $sm;
2546
+ case 3:
2547
+ var image = suspendResult;
2548
+ var tmp_0 = image.width;
2549
+ var width = numberToInt(isNumber(tmp_0) ? tmp_0 : THROW_CCE());
2550
+ var tmp_1 = image.height;
2551
+ var height = numberToInt(isNumber(tmp_1) ? tmp_1 : THROW_CCE());
2552
+ var src = image.data;
2553
+ var tmp_2 = src.buffer;
2554
+ var tmp_3 = src.byteOffset;
2555
+ var tmp_4 = numberToInt(isNumber(tmp_3) ? tmp_3 : THROW_CCE());
2556
+ var tmp_5 = src.byteLength;
2557
+ var int8 = new Int8Array(tmp_2, tmp_4, numberToInt(isNumber(tmp_5) ? tmp_5 : THROW_CCE()));
2558
+ var rgba = int8;
2559
+ return new RawTile(width, height, rgba);
2560
+ case 4:
2561
+ throw this.d5_1;
2562
+ }
2563
+ } catch ($p) {
2564
+ var e = $p;
2565
+ if (this.b5_1 === 4) {
2566
+ throw e;
2567
+ } else {
2568
+ this.a5_1 = this.b5_1;
2569
+ this.d5_1 = e;
2570
+ }
2571
+ }
2572
+ while (true);
2573
+ };
2574
+ var properties_initialized_TileFetcher_js_kt_apmrwg;
2575
+ function _init_properties_TileFetcher_js_kt__7a2f1e() {
2576
+ if (!properties_initialized_TileFetcher_js_kt_apmrwg) {
2577
+ properties_initialized_TileFetcher_js_kt_apmrwg = true;
2578
+ var tmp = typeof window === 'undefined' && typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
2579
+ isNode = (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
2580
+ nodeWebpDecoderPromise$delegate = lazy(nodeWebpDecoderPromise$delegate$lambda);
2581
+ }
2582
+ }
2334
2583
  //region block: init
2335
2584
  Distance_instance = new Distance();
2336
2585
  DouglasPeucker_instance = new DouglasPeucker();