@glandais/vcyclist-engine 6.7.0 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fit-kotlin-sdk.js +3734 -3734
- package/index.d.ts +17 -0
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlinx-coroutines-core.js +3 -3
- package/package.json +1 -1
- package/vcyclist-elevation.js +616 -598
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +2011 -1780
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +187 -187
- package/vcyclist-gpx.js +1147 -1142
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2373 -2373
package/vcyclist-elevation.js
CHANGED
|
@@ -1392,14 +1392,14 @@
|
|
|
1392
1392
|
function ElevationProvider_init_$Init$(config, fetcher, $this) {
|
|
1393
1393
|
config = config === VOID ? new ElevationProviderConfig() : config;
|
|
1394
1394
|
fetcher = fetcher === VOID ? defaultTileFetcher(config) : fetcher;
|
|
1395
|
-
ElevationProvider.call($this, config, fetcher, null, false, null);
|
|
1395
|
+
ElevationProvider.call($this, config, fetcher, null, false, null, null);
|
|
1396
1396
|
return $this;
|
|
1397
1397
|
}
|
|
1398
1398
|
function ElevationProvider_init_$Create$(config, fetcher) {
|
|
1399
1399
|
return ElevationProvider_init_$Init$(config, fetcher, objectCreate(protoOf(ElevationProvider)));
|
|
1400
1400
|
}
|
|
1401
1401
|
function ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, $this) {
|
|
1402
|
-
ElevationProvider.call($this, config, fetcher, null, keepNoData, null);
|
|
1402
|
+
ElevationProvider.call($this, config, fetcher, null, keepNoData, null, null);
|
|
1403
1403
|
return $this;
|
|
1404
1404
|
}
|
|
1405
1405
|
function ElevationProvider_init_$Create$_0(config, fetcher, keepNoData) {
|
|
@@ -1434,7 +1434,7 @@
|
|
|
1434
1434
|
case 0:
|
|
1435
1435
|
this.k7_1 = 2;
|
|
1436
1436
|
this.j7_1 = 1;
|
|
1437
|
-
suspendResult = this.o17_1.w17_1.
|
|
1437
|
+
suspendResult = this.o17_1.w17_1.d18(this.p17_1.xz(), this.p17_1.yz(), this.q17_1, this);
|
|
1438
1438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1439
1439
|
return suspendResult;
|
|
1440
1440
|
}
|
|
@@ -1500,8 +1500,8 @@
|
|
|
1500
1500
|
};
|
|
1501
1501
|
protoOf(ElevationProvider$calculator$slambda_1).s17 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
|
|
1502
1502
|
var i = new ElevationProvider$calculator$slambda_1(completion);
|
|
1503
|
-
i.
|
|
1504
|
-
i.
|
|
1503
|
+
i.m18_1 = _unused_var__etf5q3;
|
|
1504
|
+
i.n18_1 = _unused_var__etf5q3_0;
|
|
1505
1505
|
return i;
|
|
1506
1506
|
};
|
|
1507
1507
|
function ElevationProvider$calculator$slambda_2(resultContinuation) {
|
|
@@ -1511,18 +1511,18 @@
|
|
|
1511
1511
|
}, 2);
|
|
1512
1512
|
}
|
|
1513
1513
|
function ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation) {
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1514
|
+
this.w18_1 = this$0;
|
|
1515
|
+
this.x18_1 = $interpolation;
|
|
1516
1516
|
CoroutineImpl.call(this, resultContinuation);
|
|
1517
1517
|
}
|
|
1518
|
-
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).
|
|
1518
|
+
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).z18 = function (it, $completion) {
|
|
1519
1519
|
var tmp = this.wz(it, $completion);
|
|
1520
1520
|
tmp.l7_1 = Unit_instance;
|
|
1521
1521
|
tmp.m7_1 = null;
|
|
1522
1522
|
return tmp.r7();
|
|
1523
1523
|
};
|
|
1524
1524
|
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).z7 = function (p1, $completion) {
|
|
1525
|
-
return this.
|
|
1525
|
+
return this.z18((!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE(), $completion);
|
|
1526
1526
|
};
|
|
1527
1527
|
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).r7 = function () {
|
|
1528
1528
|
var suspendResult = this.l7_1;
|
|
@@ -1533,7 +1533,7 @@
|
|
|
1533
1533
|
case 0:
|
|
1534
1534
|
this.k7_1 = 2;
|
|
1535
1535
|
this.j7_1 = 1;
|
|
1536
|
-
suspendResult = sample(this.
|
|
1536
|
+
suspendResult = sample(this.w18_1, this.y18_1, this.x18_1, this);
|
|
1537
1537
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1538
1538
|
return suspendResult;
|
|
1539
1539
|
}
|
|
@@ -1556,14 +1556,14 @@
|
|
|
1556
1556
|
while (true);
|
|
1557
1557
|
};
|
|
1558
1558
|
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).wz = function (it, completion) {
|
|
1559
|
-
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this.
|
|
1560
|
-
i.
|
|
1559
|
+
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this.w18_1, this.x18_1, completion);
|
|
1560
|
+
i.y18_1 = it;
|
|
1561
1561
|
return i;
|
|
1562
1562
|
};
|
|
1563
1563
|
function ElevationProvider$setElevationsWithOrigin$slambda_0(this$0, $interpolation, resultContinuation) {
|
|
1564
1564
|
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation);
|
|
1565
1565
|
return constructCallableReference(function (it, $completion) {
|
|
1566
|
-
return i.
|
|
1566
|
+
return i.z18(it, $completion);
|
|
1567
1567
|
}, 1);
|
|
1568
1568
|
}
|
|
1569
1569
|
function $sampleCOROUTINE$(_this__u8e3s4, coords, interpolation, resultContinuation) {
|
|
@@ -1582,7 +1582,7 @@
|
|
|
1582
1582
|
this.k7_1 = 4;
|
|
1583
1583
|
this.e17_1 = new UnreadableFlag();
|
|
1584
1584
|
this.j7_1 = 1;
|
|
1585
|
-
suspendResult = this.b17_1.
|
|
1585
|
+
suspendResult = this.b17_1.b18_1.y14(this.c17_1, this.b17_1.u17_1.a19_1, this.d17_1, this.e17_1, this);
|
|
1586
1586
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1587
1587
|
return suspendResult;
|
|
1588
1588
|
}
|
|
@@ -1591,7 +1591,8 @@
|
|
|
1591
1591
|
case 1:
|
|
1592
1592
|
var own = suspendResult;
|
|
1593
1593
|
if (!isNaN_0(own)) {
|
|
1594
|
-
|
|
1594
|
+
var origin = Companion_getInstance_1().i19(this.b17_1.u17_1, this.b17_1.z17_1, this.c17_1.xz(), this.c17_1.yz());
|
|
1595
|
+
return new TerrainSample(this.c17_1.xz(), this.c17_1.yz(), own, origin, false);
|
|
1595
1596
|
}
|
|
1596
1597
|
|
|
1597
1598
|
var tmp0_safe_receiver = this.b17_1.w17_1;
|
|
@@ -1615,7 +1616,7 @@
|
|
|
1615
1616
|
case 3:
|
|
1616
1617
|
var next = this.f17_1;
|
|
1617
1618
|
if (!(next == null))
|
|
1618
|
-
return this.e17_1.d13_1 ? next.
|
|
1619
|
+
return this.e17_1.d13_1 ? next.o19(VOID, VOID, VOID, VOID, true) : next;
|
|
1619
1620
|
return new TerrainSample(this.c17_1.xz(), this.c17_1.yz(), this.b17_1.x17_1 ? NaN : 0.0, TerrainOrigin_NONE_getInstance(), this.e17_1.d13_1);
|
|
1620
1621
|
case 4:
|
|
1621
1622
|
throw this.m7_1;
|
|
@@ -1631,38 +1632,39 @@
|
|
|
1631
1632
|
}
|
|
1632
1633
|
while (true);
|
|
1633
1634
|
};
|
|
1634
|
-
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel) {
|
|
1635
|
+
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel, declaredSource) {
|
|
1635
1636
|
this.u17_1 = config;
|
|
1636
1637
|
this.v17_1 = fetcher;
|
|
1637
1638
|
this.w17_1 = fallback;
|
|
1638
1639
|
this.x17_1 = keepNoData;
|
|
1639
1640
|
this.y17_1 = surfaceModel;
|
|
1641
|
+
this.z17_1 = declaredSource;
|
|
1640
1642
|
// Inline function 'kotlin.require' call
|
|
1641
|
-
if (!ElevationFunctions_instance.m16(this.u17_1.
|
|
1642
|
-
var message = 'Invalid zoom level: ' + this.u17_1.
|
|
1643
|
+
if (!ElevationFunctions_instance.m16(this.u17_1.a19_1)) {
|
|
1644
|
+
var message = 'Invalid zoom level: ' + this.u17_1.a19_1 + '. Must be an integer between ' + '0 and 15';
|
|
1643
1645
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1644
1646
|
}
|
|
1645
1647
|
// Inline function 'kotlin.require' call
|
|
1646
|
-
if (!(this.u17_1.
|
|
1647
|
-
var message_0 = 'Invalid cache size: ' + this.u17_1.
|
|
1648
|
+
if (!(this.u17_1.b19_1 > 0)) {
|
|
1649
|
+
var message_0 = 'Invalid cache size: ' + this.u17_1.b19_1 + '. Must be a positive integer';
|
|
1648
1650
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1649
1651
|
}
|
|
1650
1652
|
// Inline function 'kotlin.require' call
|
|
1651
|
-
if (!(this.u17_1.
|
|
1652
|
-
var message_1 = 'Invalid tile size: ' + this.u17_1.
|
|
1653
|
+
if (!(this.u17_1.d19_1 > 0 && (this.u17_1.d19_1 & (this.u17_1.d19_1 - 1 | 0)) === 0)) {
|
|
1654
|
+
var message_1 = 'Invalid tile size: ' + this.u17_1.d19_1 + '. Must be a positive power of 2';
|
|
1653
1655
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1654
1656
|
}
|
|
1655
1657
|
// Inline function 'kotlin.require' call
|
|
1656
|
-
if (!(this.u17_1.
|
|
1657
|
-
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.u17_1.
|
|
1658
|
+
if (!(this.u17_1.g19_1 >= 0)) {
|
|
1659
|
+
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.u17_1.g19_1 + '. Must be 0 (no limit) or positive';
|
|
1658
1660
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
1659
1661
|
}
|
|
1660
1662
|
var tmp = this;
|
|
1661
1663
|
// Inline function 'kotlin.apply' call
|
|
1662
|
-
var this_0 = new TileManager(this.u17_1.
|
|
1664
|
+
var this_0 = new TileManager(this.u17_1.c19_1, this.u17_1.b19_1, this.v17_1);
|
|
1663
1665
|
if (!(this.w17_1 == null))
|
|
1664
|
-
this_0.z15_1 = new UnreadableTiles(this.u17_1.
|
|
1665
|
-
tmp.
|
|
1666
|
+
this_0.z15_1 = new UnreadableTiles(this.u17_1.c19_1, this.u17_1.d19_1);
|
|
1667
|
+
tmp.a18_1 = this_0;
|
|
1666
1668
|
var tmp_0 = this;
|
|
1667
1669
|
var tmp_1;
|
|
1668
1670
|
if (!(this.w17_1 == null)) {
|
|
@@ -1672,18 +1674,18 @@
|
|
|
1672
1674
|
} else {
|
|
1673
1675
|
tmp_1 = null;
|
|
1674
1676
|
}
|
|
1675
|
-
tmp_0.
|
|
1676
|
-
this.
|
|
1677
|
+
tmp_0.b18_1 = new ElevationCalculator(this.a18_1, this.u17_1.d19_1, tmp_1);
|
|
1678
|
+
this.c18_1 = new BatchCalculator(this.b18_1);
|
|
1677
1679
|
}
|
|
1678
|
-
protoOf(ElevationProvider).
|
|
1680
|
+
protoOf(ElevationProvider).p19 = function (other) {
|
|
1679
1681
|
// Inline function 'kotlin.require' call
|
|
1680
1682
|
if (!!this.x17_1) {
|
|
1681
1683
|
var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
|
|
1682
1684
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1683
1685
|
}
|
|
1684
|
-
return new ElevationProvider(this.u17_1, this.v17_1, other, false, this.y17_1);
|
|
1686
|
+
return new ElevationProvider(this.u17_1, this.v17_1, other, false, this.y17_1, this.z17_1);
|
|
1685
1687
|
};
|
|
1686
|
-
protoOf(ElevationProvider).
|
|
1688
|
+
protoOf(ElevationProvider).q19 = function (surface) {
|
|
1687
1689
|
// Inline function 'kotlin.require' call
|
|
1688
1690
|
if (!(surface == null || surface.x17_1)) {
|
|
1689
1691
|
var message = 'a surface model must keep its no-data as NaN';
|
|
@@ -1694,38 +1696,38 @@
|
|
|
1694
1696
|
var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
|
|
1695
1697
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1696
1698
|
}
|
|
1697
|
-
return new ElevationProvider(this.u17_1, this.v17_1, this.w17_1, false, surface);
|
|
1699
|
+
return new ElevationProvider(this.u17_1, this.v17_1, this.w17_1, false, surface, this.z17_1);
|
|
1698
1700
|
};
|
|
1699
|
-
protoOf(ElevationProvider).
|
|
1700
|
-
return this.u17_1.
|
|
1701
|
+
protoOf(ElevationProvider).r19 = function () {
|
|
1702
|
+
return this.u17_1.e19_1;
|
|
1701
1703
|
};
|
|
1702
|
-
protoOf(ElevationProvider).
|
|
1703
|
-
return this.
|
|
1704
|
+
protoOf(ElevationProvider).d18 = function (latitude, longitude, interpolation, $completion) {
|
|
1705
|
+
return this.b18_1.d10(new LatLon(latitude, longitude), this.u17_1.a19_1, interpolation, $completion);
|
|
1704
1706
|
};
|
|
1705
|
-
protoOf(ElevationProvider).
|
|
1706
|
-
return this.
|
|
1707
|
+
protoOf(ElevationProvider).s19 = function (coordinates, interpolation, $completion) {
|
|
1708
|
+
return this.c18_1.g12(coordinates, this.u17_1.a19_1, interpolation, VOID, $completion);
|
|
1707
1709
|
};
|
|
1708
|
-
protoOf(ElevationProvider).
|
|
1710
|
+
protoOf(ElevationProvider).t19 = function (coordinates, interpolation, $completion, $super) {
|
|
1709
1711
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1710
|
-
return $super === VOID ? this.
|
|
1712
|
+
return $super === VOID ? this.s19(coordinates, interpolation, $completion) : $super.s19.call(this, coordinates, interpolation, $completion);
|
|
1711
1713
|
};
|
|
1712
|
-
protoOf(ElevationProvider).
|
|
1713
|
-
return this.
|
|
1714
|
+
protoOf(ElevationProvider).u19 = function (coordinates, interpolation, $completion) {
|
|
1715
|
+
return this.c18_1.l12(coordinates, this.u17_1.a19_1, VOID, ElevationProvider$setElevationsWithOrigin$slambda_0(this, interpolation, null), $completion);
|
|
1714
1716
|
};
|
|
1715
|
-
protoOf(ElevationProvider).
|
|
1717
|
+
protoOf(ElevationProvider).v19 = function (coordinates, interpolation, $completion, $super) {
|
|
1716
1718
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1717
|
-
return $super === VOID ? this.
|
|
1719
|
+
return $super === VOID ? this.u19(coordinates, interpolation, $completion) : $super.u19.call(this, coordinates, interpolation, $completion);
|
|
1718
1720
|
};
|
|
1719
|
-
protoOf(ElevationProvider).
|
|
1720
|
-
return this.
|
|
1721
|
+
protoOf(ElevationProvider).w19 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
1722
|
+
return this.c18_1.m12(path, this.u17_1.a19_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
1721
1723
|
};
|
|
1722
1724
|
function defaultTileFetcher(config) {
|
|
1723
|
-
if (config.
|
|
1725
|
+
if (config.f19_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.g19_1 === 0) {
|
|
1724
1726
|
return fetchAndDecodeTile$ref_1();
|
|
1725
1727
|
}
|
|
1726
|
-
var bytes = pacedTileBytesFetcher(config.
|
|
1728
|
+
var bytes = pacedTileBytesFetcher(config.g19_1);
|
|
1727
1729
|
var tmp;
|
|
1728
|
-
switch (config.
|
|
1730
|
+
switch (config.f19_1.y1_1) {
|
|
1729
1731
|
case 0:
|
|
1730
1732
|
tmp = defaultTileFetcher$slambda_0(bytes, null);
|
|
1731
1733
|
break;
|
|
@@ -1741,24 +1743,24 @@
|
|
|
1741
1743
|
function fetchAndDecodeTile$ref() {
|
|
1742
1744
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
1743
1745
|
}
|
|
1744
|
-
protoOf(fetchAndDecodeTile$ref).
|
|
1746
|
+
protoOf(fetchAndDecodeTile$ref).a1a = function (p0, $completion) {
|
|
1745
1747
|
return fetchAndDecodeTile(p0, $completion);
|
|
1746
1748
|
};
|
|
1747
1749
|
protoOf(fetchAndDecodeTile$ref).z7 = function (p1, $completion) {
|
|
1748
|
-
return this.
|
|
1750
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1749
1751
|
};
|
|
1750
1752
|
function defaultTileFetcher$slambda($bytes, resultContinuation) {
|
|
1751
|
-
this.
|
|
1753
|
+
this.j1a_1 = $bytes;
|
|
1752
1754
|
CoroutineImpl.call(this, resultContinuation);
|
|
1753
1755
|
}
|
|
1754
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1755
|
-
var tmp = this.
|
|
1756
|
+
protoOf(defaultTileFetcher$slambda).a1a = function (url, $completion) {
|
|
1757
|
+
var tmp = this.l1a(url, $completion);
|
|
1756
1758
|
tmp.l7_1 = Unit_instance;
|
|
1757
1759
|
tmp.m7_1 = null;
|
|
1758
1760
|
return tmp.r7();
|
|
1759
1761
|
};
|
|
1760
1762
|
protoOf(defaultTileFetcher$slambda).z7 = function (p1, $completion) {
|
|
1761
|
-
return this.
|
|
1763
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1762
1764
|
};
|
|
1763
1765
|
protoOf(defaultTileFetcher$slambda).r7 = function () {
|
|
1764
1766
|
var suspendResult = this.l7_1;
|
|
@@ -1769,7 +1771,7 @@
|
|
|
1769
1771
|
case 0:
|
|
1770
1772
|
this.k7_1 = 3;
|
|
1771
1773
|
this.j7_1 = 1;
|
|
1772
|
-
suspendResult = this.
|
|
1774
|
+
suspendResult = this.j1a_1(this.k1a_1, this);
|
|
1773
1775
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1774
1776
|
return suspendResult;
|
|
1775
1777
|
}
|
|
@@ -1778,7 +1780,7 @@
|
|
|
1778
1780
|
case 1:
|
|
1779
1781
|
var ARGUMENT = suspendResult;
|
|
1780
1782
|
this.j7_1 = 2;
|
|
1781
|
-
suspendResult = decodeTileBytes(ARGUMENT, this.
|
|
1783
|
+
suspendResult = decodeTileBytes(ARGUMENT, this.k1a_1, this);
|
|
1782
1784
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1783
1785
|
return suspendResult;
|
|
1784
1786
|
}
|
|
@@ -1800,30 +1802,30 @@
|
|
|
1800
1802
|
}
|
|
1801
1803
|
while (true);
|
|
1802
1804
|
};
|
|
1803
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1804
|
-
var i = new defaultTileFetcher$slambda(this.
|
|
1805
|
-
i.
|
|
1805
|
+
protoOf(defaultTileFetcher$slambda).l1a = function (url, completion) {
|
|
1806
|
+
var i = new defaultTileFetcher$slambda(this.j1a_1, completion);
|
|
1807
|
+
i.k1a_1 = url;
|
|
1806
1808
|
return i;
|
|
1807
1809
|
};
|
|
1808
1810
|
function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
|
|
1809
1811
|
var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
|
|
1810
1812
|
return constructCallableReference(function (url, $completion) {
|
|
1811
|
-
return i.
|
|
1813
|
+
return i.a1a(url, $completion);
|
|
1812
1814
|
}, 1);
|
|
1813
1815
|
}
|
|
1814
1816
|
function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
|
|
1815
|
-
this.
|
|
1816
|
-
this.
|
|
1817
|
+
this.u1a_1 = $bytes;
|
|
1818
|
+
this.v1a_1 = $config;
|
|
1817
1819
|
CoroutineImpl.call(this, resultContinuation);
|
|
1818
1820
|
}
|
|
1819
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1820
|
-
var tmp = this.
|
|
1821
|
+
protoOf(defaultTileFetcher$slambda_1).a1a = function (url, $completion) {
|
|
1822
|
+
var tmp = this.l1a(url, $completion);
|
|
1821
1823
|
tmp.l7_1 = Unit_instance;
|
|
1822
1824
|
tmp.m7_1 = null;
|
|
1823
1825
|
return tmp.r7();
|
|
1824
1826
|
};
|
|
1825
1827
|
protoOf(defaultTileFetcher$slambda_1).z7 = function (p1, $completion) {
|
|
1826
|
-
return this.
|
|
1828
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1827
1829
|
};
|
|
1828
1830
|
protoOf(defaultTileFetcher$slambda_1).r7 = function () {
|
|
1829
1831
|
var suspendResult = this.l7_1;
|
|
@@ -1834,7 +1836,7 @@
|
|
|
1834
1836
|
case 0:
|
|
1835
1837
|
this.k7_1 = 2;
|
|
1836
1838
|
this.j7_1 = 1;
|
|
1837
|
-
suspendResult = this.
|
|
1839
|
+
suspendResult = this.u1a_1(this.w1a_1, this);
|
|
1838
1840
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1839
1841
|
return suspendResult;
|
|
1840
1842
|
}
|
|
@@ -1842,7 +1844,7 @@
|
|
|
1842
1844
|
continue $sm;
|
|
1843
1845
|
case 1:
|
|
1844
1846
|
var ARGUMENT = suspendResult;
|
|
1845
|
-
return decodeBil32Tile(ARGUMENT, this.
|
|
1847
|
+
return decodeBil32Tile(ARGUMENT, this.v1a_1.d19_1, this.w1a_1);
|
|
1846
1848
|
case 2:
|
|
1847
1849
|
throw this.m7_1;
|
|
1848
1850
|
}
|
|
@@ -1857,15 +1859,15 @@
|
|
|
1857
1859
|
}
|
|
1858
1860
|
while (true);
|
|
1859
1861
|
};
|
|
1860
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1861
|
-
var i = new defaultTileFetcher$slambda_1(this.
|
|
1862
|
-
i.
|
|
1862
|
+
protoOf(defaultTileFetcher$slambda_1).l1a = function (url, completion) {
|
|
1863
|
+
var i = new defaultTileFetcher$slambda_1(this.u1a_1, this.v1a_1, completion);
|
|
1864
|
+
i.w1a_1 = url;
|
|
1863
1865
|
return i;
|
|
1864
1866
|
};
|
|
1865
1867
|
function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
|
|
1866
1868
|
var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
|
|
1867
1869
|
return constructCallableReference(function (url, $completion) {
|
|
1868
|
-
return i.
|
|
1870
|
+
return i.a1a(url, $completion);
|
|
1869
1871
|
}, 1);
|
|
1870
1872
|
}
|
|
1871
1873
|
function defaultTileFetcher$ref() {
|
|
@@ -1881,38 +1883,38 @@
|
|
|
1881
1883
|
attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
|
|
1882
1884
|
encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
|
|
1883
1885
|
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
|
|
1884
|
-
this.
|
|
1885
|
-
this.
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1888
|
-
this.
|
|
1889
|
-
this.
|
|
1890
|
-
this.
|
|
1891
|
-
}
|
|
1892
|
-
protoOf(ElevationProviderConfig).
|
|
1886
|
+
this.a19_1 = zoomLevel;
|
|
1887
|
+
this.b19_1 = cacheSize;
|
|
1888
|
+
this.c19_1 = tileUrlTemplate;
|
|
1889
|
+
this.d19_1 = tileSize;
|
|
1890
|
+
this.e19_1 = attribution;
|
|
1891
|
+
this.f19_1 = encoding;
|
|
1892
|
+
this.g19_1 = maxRequestsPerSecond;
|
|
1893
|
+
}
|
|
1894
|
+
protoOf(ElevationProviderConfig).x1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
|
|
1893
1895
|
return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1894
1896
|
};
|
|
1895
|
-
protoOf(ElevationProviderConfig).
|
|
1896
|
-
zoomLevel = zoomLevel === VOID ? this.
|
|
1897
|
-
cacheSize = cacheSize === VOID ? this.
|
|
1898
|
-
tileUrlTemplate = tileUrlTemplate === VOID ? this.
|
|
1899
|
-
tileSize = tileSize === VOID ? this.
|
|
1900
|
-
attribution = attribution === VOID ? this.
|
|
1901
|
-
encoding = encoding === VOID ? this.
|
|
1902
|
-
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.
|
|
1903
|
-
return $super === VOID ? this.
|
|
1897
|
+
protoOf(ElevationProviderConfig).y1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
|
|
1898
|
+
zoomLevel = zoomLevel === VOID ? this.a19_1 : zoomLevel;
|
|
1899
|
+
cacheSize = cacheSize === VOID ? this.b19_1 : cacheSize;
|
|
1900
|
+
tileUrlTemplate = tileUrlTemplate === VOID ? this.c19_1 : tileUrlTemplate;
|
|
1901
|
+
tileSize = tileSize === VOID ? this.d19_1 : tileSize;
|
|
1902
|
+
attribution = attribution === VOID ? this.e19_1 : attribution;
|
|
1903
|
+
encoding = encoding === VOID ? this.f19_1 : encoding;
|
|
1904
|
+
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.g19_1 : maxRequestsPerSecond;
|
|
1905
|
+
return $super === VOID ? this.x1a(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.x1a.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1904
1906
|
};
|
|
1905
1907
|
protoOf(ElevationProviderConfig).toString = function () {
|
|
1906
|
-
return 'ElevationProviderConfig(zoomLevel=' + this.
|
|
1908
|
+
return 'ElevationProviderConfig(zoomLevel=' + this.a19_1 + ', cacheSize=' + this.b19_1 + ', tileUrlTemplate=' + this.c19_1 + ', tileSize=' + this.d19_1 + ', attribution=' + this.e19_1.toString() + ', encoding=' + this.f19_1.toString() + ', maxRequestsPerSecond=' + this.g19_1 + ')';
|
|
1907
1909
|
};
|
|
1908
1910
|
protoOf(ElevationProviderConfig).hashCode = function () {
|
|
1909
|
-
var result = this.
|
|
1910
|
-
result = imul(result, 31) + this.
|
|
1911
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1912
|
-
result = imul(result, 31) + this.
|
|
1913
|
-
result = imul(result, 31) + this.d19_1.hashCode() | 0;
|
|
1911
|
+
var result = this.a19_1;
|
|
1912
|
+
result = imul(result, 31) + this.b19_1 | 0;
|
|
1913
|
+
result = imul(result, 31) + getStringHashCode(this.c19_1) | 0;
|
|
1914
|
+
result = imul(result, 31) + this.d19_1 | 0;
|
|
1914
1915
|
result = imul(result, 31) + this.e19_1.hashCode() | 0;
|
|
1915
|
-
result = imul(result, 31) + this.f19_1 | 0;
|
|
1916
|
+
result = imul(result, 31) + this.f19_1.hashCode() | 0;
|
|
1917
|
+
result = imul(result, 31) + this.g19_1 | 0;
|
|
1916
1918
|
return result;
|
|
1917
1919
|
};
|
|
1918
1920
|
protoOf(ElevationProviderConfig).equals = function (other) {
|
|
@@ -1920,33 +1922,33 @@
|
|
|
1920
1922
|
return true;
|
|
1921
1923
|
if (!(other instanceof ElevationProviderConfig))
|
|
1922
1924
|
return false;
|
|
1923
|
-
if (!(this.z18_1 === other.z18_1))
|
|
1924
|
-
return false;
|
|
1925
1925
|
if (!(this.a19_1 === other.a19_1))
|
|
1926
1926
|
return false;
|
|
1927
1927
|
if (!(this.b19_1 === other.b19_1))
|
|
1928
1928
|
return false;
|
|
1929
1929
|
if (!(this.c19_1 === other.c19_1))
|
|
1930
1930
|
return false;
|
|
1931
|
-
if (!this.d19_1
|
|
1931
|
+
if (!(this.d19_1 === other.d19_1))
|
|
1932
1932
|
return false;
|
|
1933
1933
|
if (!this.e19_1.equals(other.e19_1))
|
|
1934
1934
|
return false;
|
|
1935
|
-
if (!
|
|
1935
|
+
if (!this.f19_1.equals(other.f19_1))
|
|
1936
|
+
return false;
|
|
1937
|
+
if (!(this.g19_1 === other.g19_1))
|
|
1936
1938
|
return false;
|
|
1937
1939
|
return true;
|
|
1938
1940
|
};
|
|
1939
1941
|
function Attribution(text, url) {
|
|
1940
1942
|
url = url === VOID ? null : url;
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
+
this.z1a_1 = text;
|
|
1944
|
+
this.a1b_1 = url;
|
|
1943
1945
|
}
|
|
1944
1946
|
protoOf(Attribution).toString = function () {
|
|
1945
|
-
return 'Attribution(text=' + this.
|
|
1947
|
+
return 'Attribution(text=' + this.z1a_1 + ', url=' + this.a1b_1 + ')';
|
|
1946
1948
|
};
|
|
1947
1949
|
protoOf(Attribution).hashCode = function () {
|
|
1948
|
-
var result = getStringHashCode(this.
|
|
1949
|
-
result = imul(result, 31) + (this.
|
|
1950
|
+
var result = getStringHashCode(this.z1a_1);
|
|
1951
|
+
result = imul(result, 31) + (this.a1b_1 == null ? 0 : getStringHashCode(this.a1b_1)) | 0;
|
|
1950
1952
|
return result;
|
|
1951
1953
|
};
|
|
1952
1954
|
protoOf(Attribution).equals = function (other) {
|
|
@@ -1954,9 +1956,9 @@
|
|
|
1954
1956
|
return true;
|
|
1955
1957
|
if (!(other instanceof Attribution))
|
|
1956
1958
|
return false;
|
|
1957
|
-
if (!(this.
|
|
1959
|
+
if (!(this.z1a_1 === other.z1a_1))
|
|
1958
1960
|
return false;
|
|
1959
|
-
if (!(this.
|
|
1961
|
+
if (!(this.a1b_1 == other.a1b_1))
|
|
1960
1962
|
return false;
|
|
1961
1963
|
return true;
|
|
1962
1964
|
};
|
|
@@ -1984,7 +1986,7 @@
|
|
|
1984
1986
|
tmp = tmp + 1 | 0;
|
|
1985
1987
|
}
|
|
1986
1988
|
var elevations = tmp_1;
|
|
1987
|
-
var smoothed = this.
|
|
1989
|
+
var smoothed = this.b1b(distances, elevations, windowSize);
|
|
1988
1990
|
// Inline function 'kotlin.collections.List' call
|
|
1989
1991
|
// Inline function 'kotlin.collections.MutableList' call
|
|
1990
1992
|
var size = points.o();
|
|
@@ -2001,7 +2003,7 @@
|
|
|
2001
2003
|
while (inductionVariable < size);
|
|
2002
2004
|
return list;
|
|
2003
2005
|
};
|
|
2004
|
-
protoOf(ElevationSmoother).
|
|
2006
|
+
protoOf(ElevationSmoother).b1b = function (distanceM, elevationM, windowSize) {
|
|
2005
2007
|
// Inline function 'kotlin.require' call
|
|
2006
2008
|
if (!(distanceM.length === elevationM.length)) {
|
|
2007
2009
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
@@ -2100,9 +2102,9 @@
|
|
|
2100
2102
|
var ElevationSource_IGN_LIDAR_HD_instance;
|
|
2101
2103
|
function Companion() {
|
|
2102
2104
|
Companion_instance_0 = this;
|
|
2103
|
-
this.
|
|
2105
|
+
this.c1b_1 = ElevationSource_MAPTERHORN_getInstance();
|
|
2104
2106
|
}
|
|
2105
|
-
protoOf(Companion).
|
|
2107
|
+
protoOf(Companion).d1b = function () {
|
|
2106
2108
|
// Inline function 'kotlin.collections.map' call
|
|
2107
2109
|
var this_0 = get_entries();
|
|
2108
2110
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2110,12 +2112,12 @@
|
|
|
2110
2112
|
var _iterator__ex2g4s = this_0.l();
|
|
2111
2113
|
while (_iterator__ex2g4s.m()) {
|
|
2112
2114
|
var item = _iterator__ex2g4s.n();
|
|
2113
|
-
var tmp$ret$2 = item.
|
|
2115
|
+
var tmp$ret$2 = item.g1b_1;
|
|
2114
2116
|
destination.k(tmp$ret$2);
|
|
2115
2117
|
}
|
|
2116
2118
|
return destination;
|
|
2117
2119
|
};
|
|
2118
|
-
protoOf(Companion).
|
|
2120
|
+
protoOf(Companion).h1b = function (id) {
|
|
2119
2121
|
var tmp0 = get_entries();
|
|
2120
2122
|
var tmp$ret$0;
|
|
2121
2123
|
$l$block: {
|
|
@@ -2123,7 +2125,7 @@
|
|
|
2123
2125
|
var _iterator__ex2g4s = tmp0.l();
|
|
2124
2126
|
while (_iterator__ex2g4s.m()) {
|
|
2125
2127
|
var element = _iterator__ex2g4s.n();
|
|
2126
|
-
if (element.
|
|
2128
|
+
if (element.g1b_1 === id) {
|
|
2127
2129
|
tmp$ret$0 = element;
|
|
2128
2130
|
break $l$block;
|
|
2129
2131
|
}
|
|
@@ -2133,7 +2135,7 @@
|
|
|
2133
2135
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
2134
2136
|
var tmp;
|
|
2135
2137
|
if (tmp0_elvis_lhs == null) {
|
|
2136
|
-
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.
|
|
2138
|
+
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.d1b()));
|
|
2137
2139
|
} else {
|
|
2138
2140
|
tmp = tmp0_elvis_lhs;
|
|
2139
2141
|
}
|
|
@@ -2157,9 +2159,9 @@
|
|
|
2157
2159
|
var $ENTRIES;
|
|
2158
2160
|
function ElevationSource(name, ordinal, id) {
|
|
2159
2161
|
Enum.call(this, name, ordinal);
|
|
2160
|
-
this.
|
|
2162
|
+
this.g1b_1 = id;
|
|
2161
2163
|
}
|
|
2162
|
-
protoOf(ElevationSource).
|
|
2164
|
+
protoOf(ElevationSource).i1b = function () {
|
|
2163
2165
|
var tmp;
|
|
2164
2166
|
switch (this.y1_1) {
|
|
2165
2167
|
case 0:
|
|
@@ -2174,14 +2176,14 @@
|
|
|
2174
2176
|
}
|
|
2175
2177
|
return tmp;
|
|
2176
2178
|
};
|
|
2177
|
-
protoOf(ElevationSource).
|
|
2179
|
+
protoOf(ElevationSource).j1b = function () {
|
|
2178
2180
|
var tmp;
|
|
2179
2181
|
switch (this.y1_1) {
|
|
2180
2182
|
case 0:
|
|
2181
|
-
tmp = (new ElevationProviderConfig()).
|
|
2183
|
+
tmp = (new ElevationProviderConfig()).a19_1;
|
|
2182
2184
|
break;
|
|
2183
2185
|
case 1:
|
|
2184
|
-
tmp = IgnLidarHdLayer_MNT_getInstance().
|
|
2186
|
+
tmp = IgnLidarHdLayer_MNT_getInstance().j1b();
|
|
2185
2187
|
break;
|
|
2186
2188
|
default:
|
|
2187
2189
|
noWhenBranchMatchedException();
|
|
@@ -2189,15 +2191,15 @@
|
|
|
2189
2191
|
}
|
|
2190
2192
|
return tmp;
|
|
2191
2193
|
};
|
|
2192
|
-
protoOf(ElevationSource).
|
|
2194
|
+
protoOf(ElevationSource).n1b = function (zoomLevel) {
|
|
2193
2195
|
var tmp;
|
|
2194
2196
|
switch (this.y1_1) {
|
|
2195
2197
|
case 0:
|
|
2196
|
-
tmp = new ElevationProviderConfig(zoomLevel == null ? this.
|
|
2198
|
+
tmp = new ElevationProviderConfig(zoomLevel == null ? this.j1b() : zoomLevel);
|
|
2197
2199
|
break;
|
|
2198
2200
|
case 1:
|
|
2199
2201
|
var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
|
|
2200
|
-
tmp = tmp_0.
|
|
2202
|
+
tmp = tmp_0.n1b(zoomLevel == null ? this.j1b() : zoomLevel);
|
|
2201
2203
|
break;
|
|
2202
2204
|
default:
|
|
2203
2205
|
noWhenBranchMatchedException();
|
|
@@ -2214,22 +2216,22 @@
|
|
|
2214
2216
|
tmp = fetcherFor;
|
|
2215
2217
|
}
|
|
2216
2218
|
fetcherFor = tmp;
|
|
2217
|
-
var config = _this__u8e3s4.
|
|
2219
|
+
var config = _this__u8e3s4.n1b(zoomLevel);
|
|
2218
2220
|
var fetcher = _this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) ? ignCoverageFiltered(config, fetcherFor(config)) : fetcherFor(config);
|
|
2219
2221
|
var primary = ElevationProvider_init_$Create$(config, fetcher);
|
|
2220
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2222
|
+
var tmp0_safe_receiver = _this__u8e3s4.i1b();
|
|
2221
2223
|
var tmp_0;
|
|
2222
2224
|
if (tmp0_safe_receiver == null) {
|
|
2223
2225
|
tmp_0 = null;
|
|
2224
2226
|
} else {
|
|
2225
2227
|
// Inline function 'kotlin.let' call
|
|
2226
|
-
tmp_0 = primary.
|
|
2228
|
+
tmp_0 = primary.p19(provider(tmp0_safe_receiver, null, fetcherFor));
|
|
2227
2229
|
}
|
|
2228
2230
|
var tmp1_elvis_lhs = tmp_0;
|
|
2229
2231
|
var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
|
|
2230
2232
|
var tmp_1;
|
|
2231
|
-
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.
|
|
2232
|
-
tmp_1 = withFallback.
|
|
2233
|
+
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.a19_1 === IgnLidarHdLayer_MNS_getInstance().j1b()) {
|
|
2234
|
+
tmp_1 = withFallback.q19(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
|
|
2233
2235
|
} else {
|
|
2234
2236
|
tmp_1 = withFallback;
|
|
2235
2237
|
}
|
|
@@ -2257,19 +2259,19 @@
|
|
|
2257
2259
|
return ElevationSource_IGN_LIDAR_HD_instance;
|
|
2258
2260
|
}
|
|
2259
2261
|
function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
|
|
2260
|
-
this.
|
|
2261
|
-
this.
|
|
2262
|
-
this.
|
|
2262
|
+
this.w1b_1 = $semaphore;
|
|
2263
|
+
this.x1b_1 = $action;
|
|
2264
|
+
this.y1b_1 = $item;
|
|
2263
2265
|
CoroutineImpl.call(this, resultContinuation);
|
|
2264
2266
|
}
|
|
2265
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2266
|
-
var tmp = this.
|
|
2267
|
+
protoOf(Flux$forEachParallel$slambda$slambda).c1c = function ($this$async, $completion) {
|
|
2268
|
+
var tmp = this.d1c($this$async, $completion);
|
|
2267
2269
|
tmp.l7_1 = Unit_instance;
|
|
2268
2270
|
tmp.m7_1 = null;
|
|
2269
2271
|
return tmp.r7();
|
|
2270
2272
|
};
|
|
2271
2273
|
protoOf(Flux$forEachParallel$slambda$slambda).z7 = function (p1, $completion) {
|
|
2272
|
-
return this.
|
|
2274
|
+
return this.c1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2273
2275
|
};
|
|
2274
2276
|
protoOf(Flux$forEachParallel$slambda$slambda).r7 = function () {
|
|
2275
2277
|
var suspendResult = this.l7_1;
|
|
@@ -2279,41 +2281,41 @@
|
|
|
2279
2281
|
switch (tmp) {
|
|
2280
2282
|
case 0:
|
|
2281
2283
|
this.k7_1 = 6;
|
|
2282
|
-
this.
|
|
2284
|
+
this.a1c_1 = this.w1b_1;
|
|
2283
2285
|
this.j7_1 = 1;
|
|
2284
|
-
suspendResult = this.
|
|
2286
|
+
suspendResult = this.a1c_1.yw(this);
|
|
2285
2287
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2286
2288
|
return suspendResult;
|
|
2287
2289
|
}
|
|
2288
2290
|
|
|
2289
2291
|
continue $sm;
|
|
2290
2292
|
case 1:
|
|
2291
|
-
this.
|
|
2293
|
+
this.b1c_1 = Unit_instance;
|
|
2292
2294
|
this.j7_1 = 2;
|
|
2293
2295
|
continue $sm;
|
|
2294
2296
|
case 2:
|
|
2295
2297
|
this.k7_1 = 5;
|
|
2296
2298
|
this.j7_1 = 3;
|
|
2297
|
-
suspendResult = this.
|
|
2299
|
+
suspendResult = this.x1b_1(this.y1b_1, this);
|
|
2298
2300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2299
2301
|
return suspendResult;
|
|
2300
2302
|
}
|
|
2301
2303
|
|
|
2302
2304
|
continue $sm;
|
|
2303
2305
|
case 3:
|
|
2304
|
-
this.
|
|
2306
|
+
this.b1c_1 = Unit_instance;
|
|
2305
2307
|
this.k7_1 = 6;
|
|
2306
2308
|
this.j7_1 = 4;
|
|
2307
2309
|
continue $sm;
|
|
2308
2310
|
case 4:
|
|
2309
|
-
this.
|
|
2311
|
+
this.b1c_1;
|
|
2310
2312
|
this.k7_1 = 6;
|
|
2311
|
-
this.
|
|
2313
|
+
this.a1c_1.sw();
|
|
2312
2314
|
return Unit_instance;
|
|
2313
2315
|
case 5:
|
|
2314
2316
|
this.k7_1 = 6;
|
|
2315
2317
|
var t = this.m7_1;
|
|
2316
|
-
this.
|
|
2318
|
+
this.a1c_1.sw();
|
|
2317
2319
|
throw t;
|
|
2318
2320
|
case 6:
|
|
2319
2321
|
throw this.m7_1;
|
|
@@ -2329,31 +2331,31 @@
|
|
|
2329
2331
|
}
|
|
2330
2332
|
while (true);
|
|
2331
2333
|
};
|
|
2332
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2333
|
-
var i = new Flux$forEachParallel$slambda$slambda(this.
|
|
2334
|
-
i.
|
|
2334
|
+
protoOf(Flux$forEachParallel$slambda$slambda).d1c = function ($this$async, completion) {
|
|
2335
|
+
var i = new Flux$forEachParallel$slambda$slambda(this.w1b_1, this.x1b_1, this.y1b_1, completion);
|
|
2336
|
+
i.z1b_1 = $this$async;
|
|
2335
2337
|
return i;
|
|
2336
2338
|
};
|
|
2337
2339
|
function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
|
|
2338
2340
|
var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
|
|
2339
2341
|
return constructCallableReference(function ($this$async, $completion) {
|
|
2340
|
-
return i.
|
|
2342
|
+
return i.c1c($this$async, $completion);
|
|
2341
2343
|
}, 1);
|
|
2342
2344
|
}
|
|
2343
2345
|
function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
|
|
2344
|
-
this.
|
|
2345
|
-
this.
|
|
2346
|
-
this.
|
|
2346
|
+
this.m1c_1 = $maxParallel;
|
|
2347
|
+
this.n1c_1 = $items;
|
|
2348
|
+
this.o1c_1 = $action;
|
|
2347
2349
|
CoroutineImpl.call(this, resultContinuation);
|
|
2348
2350
|
}
|
|
2349
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2350
|
-
var tmp = this.
|
|
2351
|
+
protoOf(Flux$forEachParallel$slambda).q1c = function ($this$coroutineScope, $completion) {
|
|
2352
|
+
var tmp = this.d1c($this$coroutineScope, $completion);
|
|
2351
2353
|
tmp.l7_1 = Unit_instance;
|
|
2352
2354
|
tmp.m7_1 = null;
|
|
2353
2355
|
return tmp.r7();
|
|
2354
2356
|
};
|
|
2355
2357
|
protoOf(Flux$forEachParallel$slambda).z7 = function (p1, $completion) {
|
|
2356
|
-
return this.
|
|
2358
|
+
return this.q1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2357
2359
|
};
|
|
2358
2360
|
protoOf(Flux$forEachParallel$slambda).r7 = function () {
|
|
2359
2361
|
var suspendResult = this.l7_1;
|
|
@@ -2363,14 +2365,14 @@
|
|
|
2363
2365
|
switch (tmp) {
|
|
2364
2366
|
case 0:
|
|
2365
2367
|
this.k7_1 = 2;
|
|
2366
|
-
var semaphore = Semaphore(this.
|
|
2368
|
+
var semaphore = Semaphore(this.m1c_1);
|
|
2367
2369
|
this.j7_1 = 1;
|
|
2368
|
-
var this_0 = this.
|
|
2370
|
+
var this_0 = this.n1c_1;
|
|
2369
2371
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2370
2372
|
var _iterator__ex2g4s = this_0.l();
|
|
2371
2373
|
while (_iterator__ex2g4s.m()) {
|
|
2372
2374
|
var item = _iterator__ex2g4s.n();
|
|
2373
|
-
destination.k(async(this.
|
|
2375
|
+
destination.k(async(this.p1c_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.o1c_1, item, null)));
|
|
2374
2376
|
}
|
|
2375
2377
|
|
|
2376
2378
|
suspendResult = awaitAll(destination, this);
|
|
@@ -2395,23 +2397,23 @@
|
|
|
2395
2397
|
}
|
|
2396
2398
|
while (true);
|
|
2397
2399
|
};
|
|
2398
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2399
|
-
var i = new Flux$forEachParallel$slambda(this.
|
|
2400
|
-
i.
|
|
2400
|
+
protoOf(Flux$forEachParallel$slambda).d1c = function ($this$coroutineScope, completion) {
|
|
2401
|
+
var i = new Flux$forEachParallel$slambda(this.m1c_1, this.n1c_1, this.o1c_1, completion);
|
|
2402
|
+
i.p1c_1 = $this$coroutineScope;
|
|
2401
2403
|
return i;
|
|
2402
2404
|
};
|
|
2403
2405
|
function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
|
|
2404
2406
|
var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
|
|
2405
2407
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
2406
|
-
return i.
|
|
2408
|
+
return i.q1c($this$coroutineScope, $completion);
|
|
2407
2409
|
}, 1);
|
|
2408
2410
|
}
|
|
2409
2411
|
function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
|
|
2410
2412
|
CoroutineImpl.call(this, resultContinuation);
|
|
2411
|
-
this.
|
|
2412
|
-
this.
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2413
|
+
this.z1c_1 = _this__u8e3s4;
|
|
2414
|
+
this.a1d_1 = items;
|
|
2415
|
+
this.b1d_1 = maxParallel;
|
|
2416
|
+
this.c1d_1 = action;
|
|
2415
2417
|
}
|
|
2416
2418
|
protoOf($forEachParallelCOROUTINE$).r7 = function () {
|
|
2417
2419
|
var suspendResult = this.l7_1;
|
|
@@ -2421,13 +2423,13 @@
|
|
|
2421
2423
|
switch (tmp) {
|
|
2422
2424
|
case 0:
|
|
2423
2425
|
this.k7_1 = 2;
|
|
2424
|
-
if (!(this.
|
|
2425
|
-
var message = 'maxParallel must be >= 1, got ' + this.
|
|
2426
|
+
if (!(this.b1d_1 >= 1)) {
|
|
2427
|
+
var message = 'maxParallel must be >= 1, got ' + this.b1d_1;
|
|
2426
2428
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2427
2429
|
}
|
|
2428
2430
|
|
|
2429
2431
|
this.j7_1 = 1;
|
|
2430
|
-
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.
|
|
2432
|
+
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.b1d_1, this.a1d_1, this.c1d_1, null), this);
|
|
2431
2433
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2432
2434
|
return suspendResult;
|
|
2433
2435
|
}
|
|
@@ -2598,14 +2600,14 @@
|
|
|
2598
2600
|
IgnLidarHdCoverage_instance = this;
|
|
2599
2601
|
var tmp = this;
|
|
2600
2602
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2601
|
-
tmp.
|
|
2603
|
+
tmp.d1d_1 = new Float64Array([2.4, 51.4, 3.0, 51.15, 3.4, 50.85, 4.3, 50.55, 4.7, 50.35, 5.0, 50.25, 5.2, 49.95, 5.85, 49.62, 6.4, 49.56, 7.4, 49.3, 8.35, 49.1, 8.0, 48.4, 7.75, 47.75, 7.7, 47.6, 6.95, 47.2, 6.55, 46.75, 7.0, 46.45, 7.15, 46.0, 7.05, 45.6, 7.35, 45.3, 7.15, 44.9, 7.15, 44.6, 7.85, 44.2, 7.7, 43.65, 7.7, 43.3, 6.5, 42.9, 4.5, 43.1, 3.4, 42.9, 3.4, 42.35, 2.3, 42.25, 1.3, 42.35, 0.4, 42.55, -0.7, 42.65, -1.4, 42.9, -1.9, 43.2, -2.1, 43.5, -1.7, 44.5, -2.6, 46.6, -3.4, 47.2, -5.3, 47.8, -5.35, 48.65, -4.2, 48.95, -2.4, 49.05, -2.1, 49.8, -0.2, 49.85, 1.2, 50.25, 1.4, 51.05]);
|
|
2602
2604
|
var tmp_0 = this;
|
|
2603
2605
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2604
|
-
tmp_0.
|
|
2605
|
-
this.
|
|
2606
|
+
tmp_0.e1d_1 = new Float64Array([8.4, 43.15, 9.7, 43.15, 9.7, 41.25, 8.4, 41.25]);
|
|
2607
|
+
this.f1d_1 = listOf([this.d1d_1, this.e1d_1]);
|
|
2606
2608
|
}
|
|
2607
|
-
protoOf(IgnLidarHdCoverage).
|
|
2608
|
-
var tmp0 = this.
|
|
2609
|
+
protoOf(IgnLidarHdCoverage).g1d = function (latitude, longitude) {
|
|
2610
|
+
var tmp0 = this.f1d_1;
|
|
2609
2611
|
var tmp$ret$0;
|
|
2610
2612
|
$l$block_0: {
|
|
2611
2613
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2631,13 +2633,13 @@
|
|
|
2631
2633
|
}
|
|
2632
2634
|
return tmp$ret$0;
|
|
2633
2635
|
};
|
|
2634
|
-
protoOf(IgnLidarHdCoverage).
|
|
2636
|
+
protoOf(IgnLidarHdCoverage).h1d = function (tc) {
|
|
2635
2637
|
var tiles = 1 << tc.n11_1;
|
|
2636
2638
|
var west = tc.l11_1 / tiles * 360.0 - 180.0;
|
|
2637
2639
|
var east = (tc.l11_1 + 1 | 0) / tiles * 360.0 - 180.0;
|
|
2638
2640
|
var north = latitudeOfRow(this, tc.m11_1, tiles);
|
|
2639
2641
|
var south = latitudeOfRow(this, tc.m11_1 + 1 | 0, tiles);
|
|
2640
|
-
var tmp0 = this.
|
|
2642
|
+
var tmp0 = this.f1d_1;
|
|
2641
2643
|
var tmp$ret$0;
|
|
2642
2644
|
$l$block_0: {
|
|
2643
2645
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2670,18 +2672,18 @@
|
|
|
2670
2672
|
return IgnLidarHdCoverage_instance;
|
|
2671
2673
|
}
|
|
2672
2674
|
function ignCoverageFiltered$slambda($config, $fetcher, resultContinuation) {
|
|
2673
|
-
this.
|
|
2674
|
-
this.
|
|
2675
|
+
this.q1d_1 = $config;
|
|
2676
|
+
this.r1d_1 = $fetcher;
|
|
2675
2677
|
CoroutineImpl.call(this, resultContinuation);
|
|
2676
2678
|
}
|
|
2677
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2678
|
-
var tmp = this.
|
|
2679
|
+
protoOf(ignCoverageFiltered$slambda).a1a = function (url, $completion) {
|
|
2680
|
+
var tmp = this.l1a(url, $completion);
|
|
2679
2681
|
tmp.l7_1 = Unit_instance;
|
|
2680
2682
|
tmp.m7_1 = null;
|
|
2681
2683
|
return tmp.r7();
|
|
2682
2684
|
};
|
|
2683
2685
|
protoOf(ignCoverageFiltered$slambda).z7 = function (p1, $completion) {
|
|
2684
|
-
return this.
|
|
2686
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2685
2687
|
};
|
|
2686
2688
|
protoOf(ignCoverageFiltered$slambda).r7 = function () {
|
|
2687
2689
|
var suspendResult = this.l7_1;
|
|
@@ -2691,25 +2693,25 @@
|
|
|
2691
2693
|
switch (tmp) {
|
|
2692
2694
|
case 0:
|
|
2693
2695
|
this.k7_1 = 3;
|
|
2694
|
-
if (IgnLidarHdCoverage_getInstance().
|
|
2696
|
+
if (IgnLidarHdCoverage_getInstance().h1d(tileCoordinatesOf(this.s1d_1, this.q1d_1))) {
|
|
2695
2697
|
this.j7_1 = 1;
|
|
2696
|
-
suspendResult = this.
|
|
2698
|
+
suspendResult = this.r1d_1(this.s1d_1, this);
|
|
2697
2699
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2698
2700
|
return suspendResult;
|
|
2699
2701
|
}
|
|
2700
2702
|
continue $sm;
|
|
2701
2703
|
} else {
|
|
2702
|
-
this.
|
|
2704
|
+
this.t1d_1 = noDataTile(this.q1d_1.d19_1);
|
|
2703
2705
|
this.j7_1 = 2;
|
|
2704
2706
|
continue $sm;
|
|
2705
2707
|
}
|
|
2706
2708
|
|
|
2707
2709
|
case 1:
|
|
2708
|
-
this.
|
|
2710
|
+
this.t1d_1 = suspendResult;
|
|
2709
2711
|
this.j7_1 = 2;
|
|
2710
2712
|
continue $sm;
|
|
2711
2713
|
case 2:
|
|
2712
|
-
return this.
|
|
2714
|
+
return this.t1d_1;
|
|
2713
2715
|
case 3:
|
|
2714
2716
|
throw this.m7_1;
|
|
2715
2717
|
}
|
|
@@ -2724,15 +2726,15 @@
|
|
|
2724
2726
|
}
|
|
2725
2727
|
while (true);
|
|
2726
2728
|
};
|
|
2727
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2728
|
-
var i = new ignCoverageFiltered$slambda(this.
|
|
2729
|
-
i.
|
|
2729
|
+
protoOf(ignCoverageFiltered$slambda).l1a = function (url, completion) {
|
|
2730
|
+
var i = new ignCoverageFiltered$slambda(this.q1d_1, this.r1d_1, completion);
|
|
2731
|
+
i.s1d_1 = url;
|
|
2730
2732
|
return i;
|
|
2731
2733
|
};
|
|
2732
2734
|
function ignCoverageFiltered$slambda_0($config, $fetcher, resultContinuation) {
|
|
2733
2735
|
var i = new ignCoverageFiltered$slambda($config, $fetcher, resultContinuation);
|
|
2734
2736
|
return constructCallableReference(function (url, $completion) {
|
|
2735
|
-
return i.
|
|
2737
|
+
return i.a1a(url, $completion);
|
|
2736
2738
|
}, 1);
|
|
2737
2739
|
}
|
|
2738
2740
|
var static_init_called_1;
|
|
@@ -2760,14 +2762,14 @@
|
|
|
2760
2762
|
var $ENTRIES_0;
|
|
2761
2763
|
function IgnLidarHdLayer(name, ordinal, wmsLayer) {
|
|
2762
2764
|
Enum.call(this, name, ordinal);
|
|
2763
|
-
this.
|
|
2765
|
+
this.m1b_1 = wmsLayer;
|
|
2764
2766
|
}
|
|
2765
|
-
protoOf(IgnLidarHdLayer).
|
|
2767
|
+
protoOf(IgnLidarHdLayer).j1b = function () {
|
|
2766
2768
|
return 15;
|
|
2767
2769
|
};
|
|
2768
|
-
protoOf(IgnLidarHdLayer).
|
|
2769
|
-
var tmp1_zoomLevel = zoomLevel == null ? this.
|
|
2770
|
-
var tmp3_tileUrlTemplate = ignWmsTemplate(this.
|
|
2770
|
+
protoOf(IgnLidarHdLayer).n1b = function (zoomLevel) {
|
|
2771
|
+
var tmp1_zoomLevel = zoomLevel == null ? this.j1b() : zoomLevel;
|
|
2772
|
+
var tmp3_tileUrlTemplate = ignWmsTemplate(this.m1b_1, 256);
|
|
2771
2773
|
var tmp4_encoding = TileEncoding_BIL32_getInstance();
|
|
2772
2774
|
var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.x1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
|
|
2773
2775
|
return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
|
|
@@ -2781,7 +2783,7 @@
|
|
|
2781
2783
|
tmp = fetcherFor;
|
|
2782
2784
|
}
|
|
2783
2785
|
fetcherFor = tmp;
|
|
2784
|
-
var config = _this__u8e3s4.
|
|
2786
|
+
var config = _this__u8e3s4.n1b(zoomLevel);
|
|
2785
2787
|
return ElevationProvider_init_$Create$_0(config, ignCoverageFiltered(config, fetcherFor(config)), true);
|
|
2786
2788
|
}
|
|
2787
2789
|
function ignWmsTemplate(layer, tileSize) {
|
|
@@ -2800,13 +2802,13 @@
|
|
|
2800
2802
|
return IgnLidarHdLayer_MNH_instance;
|
|
2801
2803
|
}
|
|
2802
2804
|
function Hit(value) {
|
|
2803
|
-
this.
|
|
2805
|
+
this.u1d_1 = value;
|
|
2804
2806
|
}
|
|
2805
2807
|
function Await(deferred) {
|
|
2806
|
-
this.
|
|
2808
|
+
this.v1d_1 = deferred;
|
|
2807
2809
|
}
|
|
2808
2810
|
function Owner(deferred) {
|
|
2809
|
-
this.
|
|
2811
|
+
this.w1d_1 = deferred;
|
|
2810
2812
|
}
|
|
2811
2813
|
function LoadAbandoned() {
|
|
2812
2814
|
Exception_init_$Init$('load abandoned by its cancelled owner', this);
|
|
@@ -2825,18 +2827,18 @@
|
|
|
2825
2827
|
return tmp.r7();
|
|
2826
2828
|
}
|
|
2827
2829
|
function LruCache$load$slambda(this$0, $key, resultContinuation) {
|
|
2828
|
-
this.
|
|
2829
|
-
this.
|
|
2830
|
+
this.f1f_1 = this$0;
|
|
2831
|
+
this.g1f_1 = $key;
|
|
2830
2832
|
CoroutineImpl.call(this, resultContinuation);
|
|
2831
2833
|
}
|
|
2832
|
-
protoOf(LruCache$load$slambda).
|
|
2833
|
-
var tmp = this.
|
|
2834
|
+
protoOf(LruCache$load$slambda).k1f = function ($this$withContext, $completion) {
|
|
2835
|
+
var tmp = this.d1c($this$withContext, $completion);
|
|
2834
2836
|
tmp.l7_1 = Unit_instance;
|
|
2835
2837
|
tmp.m7_1 = null;
|
|
2836
2838
|
return tmp.r7();
|
|
2837
2839
|
};
|
|
2838
2840
|
protoOf(LruCache$load$slambda).z7 = function (p1, $completion) {
|
|
2839
|
-
return this.
|
|
2841
|
+
return this.k1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2840
2842
|
};
|
|
2841
2843
|
protoOf(LruCache$load$slambda).r7 = function () {
|
|
2842
2844
|
var suspendResult = this.l7_1;
|
|
@@ -2846,10 +2848,10 @@
|
|
|
2846
2848
|
switch (tmp) {
|
|
2847
2849
|
case 0:
|
|
2848
2850
|
this.k7_1 = 2;
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2851
|
+
this.j1f_1 = this.f1f_1.o1f_1;
|
|
2852
|
+
this.i1f_1 = null;
|
|
2851
2853
|
this.j7_1 = 1;
|
|
2852
|
-
suspendResult = this.
|
|
2854
|
+
suspendResult = this.j1f_1.qw(this.i1f_1, this);
|
|
2853
2855
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2854
2856
|
return suspendResult;
|
|
2855
2857
|
}
|
|
@@ -2860,18 +2862,18 @@
|
|
|
2860
2862
|
l$ret$1: do {
|
|
2861
2863
|
var tmp_0;
|
|
2862
2864
|
try {
|
|
2863
|
-
tmp$ret$0 = this.
|
|
2865
|
+
tmp$ret$0 = this.f1f_1.q1f_1.w3(this.g1f_1);
|
|
2864
2866
|
break l$ret$1;
|
|
2865
2867
|
} catch ($p) {
|
|
2866
2868
|
var tmp_1;
|
|
2867
2869
|
var t = $p;
|
|
2868
|
-
this.
|
|
2870
|
+
this.j1f_1.bw(this.i1f_1);
|
|
2869
2871
|
throw t;
|
|
2870
2872
|
}
|
|
2871
2873
|
}
|
|
2872
2874
|
while (false);
|
|
2873
2875
|
var tmp_2 = tmp$ret$0;
|
|
2874
|
-
this.
|
|
2876
|
+
this.j1f_1.bw(this.i1f_1);
|
|
2875
2877
|
return tmp_2;
|
|
2876
2878
|
case 2:
|
|
2877
2879
|
throw this.m7_1;
|
|
@@ -2887,31 +2889,31 @@
|
|
|
2887
2889
|
}
|
|
2888
2890
|
while (true);
|
|
2889
2891
|
};
|
|
2890
|
-
protoOf(LruCache$load$slambda).
|
|
2891
|
-
var i = new LruCache$load$slambda(this.
|
|
2892
|
-
i.
|
|
2892
|
+
protoOf(LruCache$load$slambda).d1c = function ($this$withContext, completion) {
|
|
2893
|
+
var i = new LruCache$load$slambda(this.f1f_1, this.g1f_1, completion);
|
|
2894
|
+
i.h1f_1 = $this$withContext;
|
|
2893
2895
|
return i;
|
|
2894
2896
|
};
|
|
2895
2897
|
function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
|
|
2896
2898
|
var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
|
|
2897
2899
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2898
|
-
return i.
|
|
2900
|
+
return i.k1f($this$withContext, $completion);
|
|
2899
2901
|
}, 1);
|
|
2900
2902
|
}
|
|
2901
2903
|
function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
|
|
2902
|
-
this.
|
|
2903
|
-
this.
|
|
2904
|
-
this.
|
|
2904
|
+
this.z1f_1 = this$0;
|
|
2905
|
+
this.a1g_1 = $key;
|
|
2906
|
+
this.b1g_1 = $value;
|
|
2905
2907
|
CoroutineImpl.call(this, resultContinuation);
|
|
2906
2908
|
}
|
|
2907
|
-
protoOf(LruCache$load$slambda_1).
|
|
2908
|
-
var tmp = this.
|
|
2909
|
+
protoOf(LruCache$load$slambda_1).f1g = function ($this$withContext, $completion) {
|
|
2910
|
+
var tmp = this.d1c($this$withContext, $completion);
|
|
2909
2911
|
tmp.l7_1 = Unit_instance;
|
|
2910
2912
|
tmp.m7_1 = null;
|
|
2911
2913
|
return tmp.r7();
|
|
2912
2914
|
};
|
|
2913
2915
|
protoOf(LruCache$load$slambda_1).z7 = function (p1, $completion) {
|
|
2914
|
-
return this.
|
|
2916
|
+
return this.f1g((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2915
2917
|
};
|
|
2916
2918
|
protoOf(LruCache$load$slambda_1).r7 = function () {
|
|
2917
2919
|
var suspendResult = this.l7_1;
|
|
@@ -2921,10 +2923,10 @@
|
|
|
2921
2923
|
switch (tmp) {
|
|
2922
2924
|
case 0:
|
|
2923
2925
|
this.k7_1 = 2;
|
|
2924
|
-
this.
|
|
2925
|
-
this.
|
|
2926
|
+
this.e1g_1 = this.z1f_1.o1f_1;
|
|
2927
|
+
this.d1g_1 = null;
|
|
2926
2928
|
this.j7_1 = 1;
|
|
2927
|
-
suspendResult = this.
|
|
2929
|
+
suspendResult = this.e1g_1.qw(this.d1g_1, this);
|
|
2928
2930
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2929
2931
|
return suspendResult;
|
|
2930
2932
|
}
|
|
@@ -2935,37 +2937,37 @@
|
|
|
2935
2937
|
l$ret$1: do {
|
|
2936
2938
|
var tmp_0;
|
|
2937
2939
|
try {
|
|
2938
|
-
this.
|
|
2940
|
+
this.z1f_1.q1f_1.w3(this.a1g_1);
|
|
2939
2941
|
var oldest = null;
|
|
2940
2942
|
var tmp_1;
|
|
2941
|
-
if (this.
|
|
2942
|
-
var tmp0 = this.
|
|
2943
|
-
var key = this.
|
|
2943
|
+
if (this.z1f_1.p1f_1.o() >= this.z1f_1.l1f_1) {
|
|
2944
|
+
var tmp0 = this.z1f_1.p1f_1;
|
|
2945
|
+
var key = this.a1g_1;
|
|
2944
2946
|
tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).r1(key);
|
|
2945
2947
|
} else {
|
|
2946
2948
|
tmp_1 = false;
|
|
2947
2949
|
}
|
|
2948
2950
|
if (tmp_1) {
|
|
2949
|
-
var iter = this.
|
|
2951
|
+
var iter = this.z1f_1.p1f_1.w1().l();
|
|
2950
2952
|
oldest = iter.n().q1();
|
|
2951
2953
|
iter.v2();
|
|
2952
2954
|
}
|
|
2953
|
-
var tmp0_0 = this.
|
|
2954
|
-
var tmp2 = this.
|
|
2955
|
-
var value = this.
|
|
2955
|
+
var tmp0_0 = this.z1f_1.p1f_1;
|
|
2956
|
+
var tmp2 = this.a1g_1;
|
|
2957
|
+
var value = this.b1g_1;
|
|
2956
2958
|
tmp0_0.v3(tmp2, value);
|
|
2957
2959
|
tmp$ret$0 = oldest;
|
|
2958
2960
|
break l$ret$1;
|
|
2959
2961
|
} catch ($p) {
|
|
2960
2962
|
var tmp_2;
|
|
2961
2963
|
var t = $p;
|
|
2962
|
-
this.
|
|
2964
|
+
this.e1g_1.bw(this.d1g_1);
|
|
2963
2965
|
throw t;
|
|
2964
2966
|
}
|
|
2965
2967
|
}
|
|
2966
2968
|
while (false);
|
|
2967
2969
|
var tmp_3 = tmp$ret$0;
|
|
2968
|
-
this.
|
|
2970
|
+
this.e1g_1.bw(this.d1g_1);
|
|
2969
2971
|
return tmp_3;
|
|
2970
2972
|
case 2:
|
|
2971
2973
|
throw this.m7_1;
|
|
@@ -2981,21 +2983,21 @@
|
|
|
2981
2983
|
}
|
|
2982
2984
|
while (true);
|
|
2983
2985
|
};
|
|
2984
|
-
protoOf(LruCache$load$slambda_1).
|
|
2985
|
-
var i = new LruCache$load$slambda_1(this.
|
|
2986
|
-
i.
|
|
2986
|
+
protoOf(LruCache$load$slambda_1).d1c = function ($this$withContext, completion) {
|
|
2987
|
+
var i = new LruCache$load$slambda_1(this.z1f_1, this.a1g_1, this.b1g_1, completion);
|
|
2988
|
+
i.c1g_1 = $this$withContext;
|
|
2987
2989
|
return i;
|
|
2988
2990
|
};
|
|
2989
2991
|
function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
|
|
2990
2992
|
var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
|
|
2991
2993
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2992
|
-
return i.
|
|
2994
|
+
return i.f1g($this$withContext, $completion);
|
|
2993
2995
|
}, 1);
|
|
2994
2996
|
}
|
|
2995
2997
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2996
2998
|
CoroutineImpl.call(this, resultContinuation);
|
|
2997
|
-
this.
|
|
2998
|
-
this.
|
|
2999
|
+
this.o1g_1 = _this__u8e3s4;
|
|
3000
|
+
this.p1g_1 = key;
|
|
2999
3001
|
}
|
|
3000
3002
|
protoOf($getCOROUTINE$).r7 = function () {
|
|
3001
3003
|
var suspendResult = this.l7_1;
|
|
@@ -3014,7 +3016,7 @@
|
|
|
3014
3016
|
}
|
|
3015
3017
|
|
|
3016
3018
|
this.j7_1 = 2;
|
|
3017
|
-
suspendResult = lookupOrClaim(this.
|
|
3019
|
+
suspendResult = lookupOrClaim(this.o1g_1, this.p1g_1, this);
|
|
3018
3020
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3019
3021
|
return suspendResult;
|
|
3020
3022
|
}
|
|
@@ -3023,11 +3025,11 @@
|
|
|
3023
3025
|
case 2:
|
|
3024
3026
|
var lookup = suspendResult;
|
|
3025
3027
|
if (lookup instanceof Hit) {
|
|
3026
|
-
return lookup.
|
|
3028
|
+
return lookup.u1d_1;
|
|
3027
3029
|
} else {
|
|
3028
3030
|
if (lookup instanceof Owner) {
|
|
3029
3031
|
this.j7_1 = 7;
|
|
3030
|
-
suspendResult = load(this.
|
|
3032
|
+
suspendResult = load(this.o1g_1, this.p1g_1, lookup.w1d_1, this);
|
|
3031
3033
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3032
3034
|
return suspendResult;
|
|
3033
3035
|
}
|
|
@@ -3036,7 +3038,7 @@
|
|
|
3036
3038
|
if (lookup instanceof Await) {
|
|
3037
3039
|
this.k7_1 = 4;
|
|
3038
3040
|
this.j7_1 = 3;
|
|
3039
|
-
suspendResult = lookup.
|
|
3041
|
+
suspendResult = lookup.v1d_1.fo(this);
|
|
3040
3042
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3041
3043
|
return suspendResult;
|
|
3042
3044
|
}
|
|
@@ -3088,8 +3090,8 @@
|
|
|
3088
3090
|
};
|
|
3089
3091
|
function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
3090
3092
|
CoroutineImpl.call(this, resultContinuation);
|
|
3091
|
-
this.
|
|
3092
|
-
this.
|
|
3093
|
+
this.f1e_1 = _this__u8e3s4;
|
|
3094
|
+
this.g1e_1 = key;
|
|
3093
3095
|
}
|
|
3094
3096
|
protoOf($lookupOrClaimCOROUTINE$).r7 = function () {
|
|
3095
3097
|
var suspendResult = this.l7_1;
|
|
@@ -3099,10 +3101,10 @@
|
|
|
3099
3101
|
switch (tmp) {
|
|
3100
3102
|
case 0:
|
|
3101
3103
|
this.k7_1 = 2;
|
|
3102
|
-
this.
|
|
3103
|
-
this.
|
|
3104
|
+
this.i1e_1 = this.f1e_1.o1f_1;
|
|
3105
|
+
this.h1e_1 = null;
|
|
3104
3106
|
this.j7_1 = 1;
|
|
3105
|
-
suspendResult = this.
|
|
3107
|
+
suspendResult = this.i1e_1.qw(this.h1e_1, this);
|
|
3106
3108
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3107
3109
|
return suspendResult;
|
|
3108
3110
|
}
|
|
@@ -3115,22 +3117,22 @@
|
|
|
3115
3117
|
try {
|
|
3116
3118
|
var tmp$ret$0 = Unit_instance;
|
|
3117
3119
|
l$ret$1: do {
|
|
3118
|
-
var hit = this.
|
|
3120
|
+
var hit = this.f1e_1.p1f_1.w3(this.g1e_1);
|
|
3119
3121
|
if (!(hit == null)) {
|
|
3120
|
-
var tmp0 = this.
|
|
3121
|
-
var key = this.
|
|
3122
|
+
var tmp0 = this.f1e_1.p1f_1;
|
|
3123
|
+
var key = this.g1e_1;
|
|
3122
3124
|
tmp0.v3(key, hit);
|
|
3123
3125
|
tmp$ret$0 = new Hit(hit);
|
|
3124
3126
|
break l$ret$1;
|
|
3125
3127
|
}
|
|
3126
|
-
var raced = this.
|
|
3128
|
+
var raced = this.f1e_1.q1f_1.t1(this.g1e_1);
|
|
3127
3129
|
var tmp_1;
|
|
3128
3130
|
if (!(raced == null)) {
|
|
3129
3131
|
tmp_1 = new Await(raced);
|
|
3130
3132
|
} else {
|
|
3131
3133
|
var ours = CompletableDeferred();
|
|
3132
|
-
var tmp0_0 = this.
|
|
3133
|
-
var key_0 = this.
|
|
3134
|
+
var tmp0_0 = this.f1e_1.q1f_1;
|
|
3135
|
+
var key_0 = this.g1e_1;
|
|
3134
3136
|
tmp0_0.v3(key_0, ours);
|
|
3135
3137
|
tmp_1 = new Owner(ours);
|
|
3136
3138
|
}
|
|
@@ -3142,13 +3144,13 @@
|
|
|
3142
3144
|
} catch ($p) {
|
|
3143
3145
|
var tmp_2;
|
|
3144
3146
|
var t = $p;
|
|
3145
|
-
this.
|
|
3147
|
+
this.i1e_1.bw(this.h1e_1);
|
|
3146
3148
|
throw t;
|
|
3147
3149
|
}
|
|
3148
3150
|
}
|
|
3149
3151
|
while (false);
|
|
3150
3152
|
var tmp_3 = tmp$ret$2;
|
|
3151
|
-
this.
|
|
3153
|
+
this.i1e_1.bw(this.h1e_1);
|
|
3152
3154
|
return tmp_3;
|
|
3153
3155
|
case 2:
|
|
3154
3156
|
throw this.m7_1;
|
|
@@ -3166,9 +3168,9 @@
|
|
|
3166
3168
|
};
|
|
3167
3169
|
function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
|
|
3168
3170
|
CoroutineImpl.call(this, resultContinuation);
|
|
3169
|
-
this.
|
|
3170
|
-
this.
|
|
3171
|
-
this.
|
|
3171
|
+
this.r1e_1 = _this__u8e3s4;
|
|
3172
|
+
this.s1e_1 = key;
|
|
3173
|
+
this.t1e_1 = ours;
|
|
3172
3174
|
}
|
|
3173
3175
|
protoOf($loadCOROUTINE$).r7 = function () {
|
|
3174
3176
|
var suspendResult = this.l7_1;
|
|
@@ -3180,14 +3182,14 @@
|
|
|
3180
3182
|
this.k7_1 = 6;
|
|
3181
3183
|
this.k7_1 = 2;
|
|
3182
3184
|
this.j7_1 = 1;
|
|
3183
|
-
suspendResult = this.
|
|
3185
|
+
suspendResult = this.r1e_1.m1f_1(this.s1e_1, this);
|
|
3184
3186
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3185
3187
|
return suspendResult;
|
|
3186
3188
|
}
|
|
3187
3189
|
|
|
3188
3190
|
continue $sm;
|
|
3189
3191
|
case 1:
|
|
3190
|
-
this.
|
|
3192
|
+
this.v1e_1 = suspendResult;
|
|
3191
3193
|
this.k7_1 = 6;
|
|
3192
3194
|
this.j7_1 = 4;
|
|
3193
3195
|
continue $sm;
|
|
@@ -3195,10 +3197,10 @@
|
|
|
3195
3197
|
this.k7_1 = 6;
|
|
3196
3198
|
var tmp_0 = this.m7_1;
|
|
3197
3199
|
if (tmp_0 instanceof Error) {
|
|
3198
|
-
this.
|
|
3200
|
+
this.w1e_1 = this.m7_1;
|
|
3199
3201
|
this.j7_1 = 3;
|
|
3200
3202
|
var tmp_1 = NonCancellable_getInstance();
|
|
3201
|
-
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.
|
|
3203
|
+
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.r1e_1, this.s1e_1, null), this);
|
|
3202
3204
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3203
3205
|
return suspendResult;
|
|
3204
3206
|
}
|
|
@@ -3209,22 +3211,22 @@
|
|
|
3209
3211
|
|
|
3210
3212
|
case 3:
|
|
3211
3213
|
var tmp_2;
|
|
3212
|
-
var tmp_3 = this.
|
|
3214
|
+
var tmp_3 = this.w1e_1;
|
|
3213
3215
|
if (tmp_3 instanceof CancellationException) {
|
|
3214
3216
|
tmp_2 = new LoadAbandoned();
|
|
3215
3217
|
} else {
|
|
3216
|
-
tmp_2 = this.
|
|
3218
|
+
tmp_2 = this.w1e_1;
|
|
3217
3219
|
}
|
|
3218
3220
|
|
|
3219
|
-
this.
|
|
3221
|
+
this.t1e_1.jr(tmp_2);
|
|
3220
3222
|
var tmp_4 = this;
|
|
3221
|
-
throw this.
|
|
3223
|
+
throw this.w1e_1;
|
|
3222
3224
|
case 4:
|
|
3223
3225
|
this.k7_1 = 6;
|
|
3224
|
-
this.
|
|
3226
|
+
this.u1e_1 = this.v1e_1;
|
|
3225
3227
|
this.j7_1 = 5;
|
|
3226
3228
|
var tmp_5 = NonCancellable_getInstance();
|
|
3227
|
-
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.
|
|
3229
|
+
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.r1e_1, this.s1e_1, this.u1e_1, null), this);
|
|
3228
3230
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3229
3231
|
return suspendResult;
|
|
3230
3232
|
}
|
|
@@ -3232,16 +3234,16 @@
|
|
|
3232
3234
|
continue $sm;
|
|
3233
3235
|
case 5:
|
|
3234
3236
|
var evicted = suspendResult;
|
|
3235
|
-
this.
|
|
3237
|
+
this.t1e_1.ir(this.u1e_1);
|
|
3236
3238
|
if (!(evicted == null)) {
|
|
3237
|
-
var tmp0_safe_receiver = this.
|
|
3239
|
+
var tmp0_safe_receiver = this.r1e_1.n1f_1;
|
|
3238
3240
|
if (tmp0_safe_receiver == null)
|
|
3239
3241
|
null;
|
|
3240
3242
|
else
|
|
3241
3243
|
tmp0_safe_receiver(evicted);
|
|
3242
3244
|
}
|
|
3243
3245
|
|
|
3244
|
-
return this.
|
|
3246
|
+
return this.u1e_1;
|
|
3245
3247
|
case 6:
|
|
3246
3248
|
throw this.m7_1;
|
|
3247
3249
|
}
|
|
@@ -3258,33 +3260,33 @@
|
|
|
3258
3260
|
};
|
|
3259
3261
|
function LruCache(maxSize, loader, onEvict) {
|
|
3260
3262
|
onEvict = onEvict === VOID ? null : onEvict;
|
|
3261
|
-
this.
|
|
3262
|
-
this.
|
|
3263
|
-
this.
|
|
3263
|
+
this.l1f_1 = maxSize;
|
|
3264
|
+
this.m1f_1 = loader;
|
|
3265
|
+
this.n1f_1 = onEvict;
|
|
3264
3266
|
// Inline function 'kotlin.require' call
|
|
3265
|
-
if (!(this.
|
|
3267
|
+
if (!(this.l1f_1 > 0)) {
|
|
3266
3268
|
var message = 'Cache size must be greater than 0';
|
|
3267
3269
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3268
3270
|
}
|
|
3269
|
-
this.
|
|
3270
|
-
this.
|
|
3271
|
+
this.o1f_1 = Mutex();
|
|
3272
|
+
this.p1f_1 = LinkedHashMap_init_$Create$();
|
|
3271
3273
|
var tmp = this;
|
|
3272
3274
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
3273
|
-
tmp.
|
|
3275
|
+
tmp.q1f_1 = LinkedHashMap_init_$Create$();
|
|
3274
3276
|
}
|
|
3275
|
-
protoOf(LruCache).
|
|
3277
|
+
protoOf(LruCache).q1g = function (key, $completion) {
|
|
3276
3278
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
3277
3279
|
tmp.l7_1 = Unit_instance;
|
|
3278
3280
|
tmp.m7_1 = null;
|
|
3279
3281
|
return tmp.r7();
|
|
3280
3282
|
};
|
|
3281
3283
|
function RawTile(width, height, rgba) {
|
|
3282
|
-
this.
|
|
3283
|
-
this.
|
|
3284
|
-
this.
|
|
3284
|
+
this.r1g_1 = width;
|
|
3285
|
+
this.s1g_1 = height;
|
|
3286
|
+
this.t1g_1 = rgba;
|
|
3285
3287
|
// Inline function 'kotlin.require' call
|
|
3286
|
-
if (!(this.
|
|
3287
|
-
var message = 'rgba size ' + this.
|
|
3288
|
+
if (!(this.t1g_1.length === imul(imul(this.r1g_1, this.s1g_1), 4))) {
|
|
3289
|
+
var message = 'rgba size ' + this.t1g_1.length + ' does not match width*height*4 (' + imul(imul(this.r1g_1, this.s1g_1), 4) + ')';
|
|
3288
3290
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3289
3291
|
}
|
|
3290
3292
|
}
|
|
@@ -3293,41 +3295,41 @@
|
|
|
3293
3295
|
return true;
|
|
3294
3296
|
if (!(other instanceof RawTile))
|
|
3295
3297
|
return false;
|
|
3296
|
-
return this.
|
|
3298
|
+
return this.r1g_1 === other.r1g_1 && this.s1g_1 === other.s1g_1 && contentEquals(this.t1g_1, other.t1g_1);
|
|
3297
3299
|
};
|
|
3298
3300
|
protoOf(RawTile).hashCode = function () {
|
|
3299
|
-
var result = this.
|
|
3300
|
-
result = imul(31, result) + this.
|
|
3301
|
-
result = imul(31, result) + contentHashCode(this.
|
|
3301
|
+
var result = this.r1g_1;
|
|
3302
|
+
result = imul(31, result) + this.s1g_1 | 0;
|
|
3303
|
+
result = imul(31, result) + contentHashCode(this.t1g_1) | 0;
|
|
3302
3304
|
return result;
|
|
3303
3305
|
};
|
|
3304
3306
|
function TerrainSample(latitude, longitude, elevation, origin, afterError) {
|
|
3305
|
-
this.
|
|
3306
|
-
this.
|
|
3307
|
-
this.
|
|
3308
|
-
this.
|
|
3309
|
-
this.
|
|
3307
|
+
this.j19_1 = latitude;
|
|
3308
|
+
this.k19_1 = longitude;
|
|
3309
|
+
this.l19_1 = elevation;
|
|
3310
|
+
this.m19_1 = origin;
|
|
3311
|
+
this.n19_1 = afterError;
|
|
3310
3312
|
}
|
|
3311
|
-
protoOf(TerrainSample).
|
|
3313
|
+
protoOf(TerrainSample).u1g = function (latitude, longitude, elevation, origin, afterError) {
|
|
3312
3314
|
return new TerrainSample(latitude, longitude, elevation, origin, afterError);
|
|
3313
3315
|
};
|
|
3314
|
-
protoOf(TerrainSample).
|
|
3315
|
-
latitude = latitude === VOID ? this.
|
|
3316
|
-
longitude = longitude === VOID ? this.
|
|
3317
|
-
elevation = elevation === VOID ? this.
|
|
3318
|
-
origin = origin === VOID ? this.
|
|
3319
|
-
afterError = afterError === VOID ? this.
|
|
3320
|
-
return $super === VOID ? this.
|
|
3316
|
+
protoOf(TerrainSample).o19 = function (latitude, longitude, elevation, origin, afterError, $super) {
|
|
3317
|
+
latitude = latitude === VOID ? this.j19_1 : latitude;
|
|
3318
|
+
longitude = longitude === VOID ? this.k19_1 : longitude;
|
|
3319
|
+
elevation = elevation === VOID ? this.l19_1 : elevation;
|
|
3320
|
+
origin = origin === VOID ? this.m19_1 : origin;
|
|
3321
|
+
afterError = afterError === VOID ? this.n19_1 : afterError;
|
|
3322
|
+
return $super === VOID ? this.u1g(latitude, longitude, elevation, origin, afterError) : $super.u1g.call(this, latitude, longitude, elevation, origin, afterError);
|
|
3321
3323
|
};
|
|
3322
3324
|
protoOf(TerrainSample).toString = function () {
|
|
3323
|
-
return 'TerrainSample(latitude=' + this.
|
|
3325
|
+
return 'TerrainSample(latitude=' + this.j19_1 + ', longitude=' + this.k19_1 + ', elevation=' + this.l19_1 + ', origin=' + this.m19_1.toString() + ', afterError=' + this.n19_1 + ')';
|
|
3324
3326
|
};
|
|
3325
3327
|
protoOf(TerrainSample).hashCode = function () {
|
|
3326
|
-
var result = getNumberHashCode(this.
|
|
3327
|
-
result = imul(result, 31) + getNumberHashCode(this.j19_1) | 0;
|
|
3328
|
+
var result = getNumberHashCode(this.j19_1);
|
|
3328
3329
|
result = imul(result, 31) + getNumberHashCode(this.k19_1) | 0;
|
|
3329
|
-
result = imul(result, 31) + this.l19_1
|
|
3330
|
-
result = imul(result, 31) +
|
|
3330
|
+
result = imul(result, 31) + getNumberHashCode(this.l19_1) | 0;
|
|
3331
|
+
result = imul(result, 31) + this.m19_1.hashCode() | 0;
|
|
3332
|
+
result = imul(result, 31) + getBooleanHashCode(this.n19_1) | 0;
|
|
3331
3333
|
return result;
|
|
3332
3334
|
};
|
|
3333
3335
|
protoOf(TerrainSample).equals = function (other) {
|
|
@@ -3335,15 +3337,15 @@
|
|
|
3335
3337
|
return true;
|
|
3336
3338
|
if (!(other instanceof TerrainSample))
|
|
3337
3339
|
return false;
|
|
3338
|
-
if (!equals(this.i19_1, other.i19_1))
|
|
3339
|
-
return false;
|
|
3340
3340
|
if (!equals(this.j19_1, other.j19_1))
|
|
3341
3341
|
return false;
|
|
3342
3342
|
if (!equals(this.k19_1, other.k19_1))
|
|
3343
3343
|
return false;
|
|
3344
|
-
if (!this.l19_1
|
|
3344
|
+
if (!equals(this.l19_1, other.l19_1))
|
|
3345
3345
|
return false;
|
|
3346
|
-
if (!
|
|
3346
|
+
if (!this.m19_1.equals(other.m19_1))
|
|
3347
|
+
return false;
|
|
3348
|
+
if (!(this.n19_1 === other.n19_1))
|
|
3347
3349
|
return false;
|
|
3348
3350
|
return true;
|
|
3349
3351
|
};
|
|
@@ -3377,13 +3379,13 @@
|
|
|
3377
3379
|
var _iterator__ex2g4s = this_0.l();
|
|
3378
3380
|
while (_iterator__ex2g4s.m()) {
|
|
3379
3381
|
var item = _iterator__ex2g4s.n();
|
|
3380
|
-
var tmp$ret$2 = item.
|
|
3382
|
+
var tmp$ret$2 = item.x1g_1;
|
|
3381
3383
|
destination.k(tmp$ret$2);
|
|
3382
3384
|
}
|
|
3383
|
-
tmp.
|
|
3385
|
+
tmp.h19_1 = destination;
|
|
3384
3386
|
}
|
|
3385
|
-
protoOf(Companion_0).
|
|
3386
|
-
var template = config.
|
|
3387
|
+
protoOf(Companion_0).i19 = function (config, declared, latitude, longitude) {
|
|
3388
|
+
var template = config.c19_1;
|
|
3387
3389
|
var tmp;
|
|
3388
3390
|
var tmp0 = get_entries_0();
|
|
3389
3391
|
var tmp$ret$0;
|
|
@@ -3402,7 +3404,7 @@
|
|
|
3402
3404
|
var _iterator__ex2g4s = tmp0.l();
|
|
3403
3405
|
while (_iterator__ex2g4s.m()) {
|
|
3404
3406
|
var element = _iterator__ex2g4s.n();
|
|
3405
|
-
if (element.
|
|
3407
|
+
if (element.n1b(config.a19_1).c19_1 === template) {
|
|
3406
3408
|
tmp$ret$0 = true;
|
|
3407
3409
|
break $l$block_0;
|
|
3408
3410
|
}
|
|
@@ -3410,15 +3412,31 @@
|
|
|
3410
3412
|
tmp$ret$0 = false;
|
|
3411
3413
|
}
|
|
3412
3414
|
if (tmp$ret$0) {
|
|
3413
|
-
tmp =
|
|
3415
|
+
tmp = ElevationSource_IGN_LIDAR_HD_getInstance();
|
|
3414
3416
|
} else {
|
|
3415
|
-
if (template === ElevationSource_MAPTERHORN_getInstance().
|
|
3416
|
-
tmp =
|
|
3417
|
+
if (template === ElevationSource_MAPTERHORN_getInstance().n1b(config.a19_1).c19_1) {
|
|
3418
|
+
tmp = ElevationSource_MAPTERHORN_getInstance();
|
|
3417
3419
|
} else {
|
|
3418
|
-
tmp =
|
|
3420
|
+
tmp = declared;
|
|
3419
3421
|
}
|
|
3420
3422
|
}
|
|
3421
|
-
|
|
3423
|
+
var source = tmp;
|
|
3424
|
+
var tmp_1;
|
|
3425
|
+
switch (source == null ? -1 : source.y1_1) {
|
|
3426
|
+
case 1:
|
|
3427
|
+
tmp_1 = TerrainOrigin_IGN_LIDAR_HD_getInstance();
|
|
3428
|
+
break;
|
|
3429
|
+
case 0:
|
|
3430
|
+
tmp_1 = IgnLidarHdCoverage_getInstance().g1d(latitude, longitude) ? TerrainOrigin_MAPTERHORN_MEASURED_getInstance() : TerrainOrigin_MAPTERHORN_getInstance();
|
|
3431
|
+
break;
|
|
3432
|
+
case -1:
|
|
3433
|
+
tmp_1 = TerrainOrigin_OTHER_getInstance();
|
|
3434
|
+
break;
|
|
3435
|
+
default:
|
|
3436
|
+
noWhenBranchMatchedException();
|
|
3437
|
+
break;
|
|
3438
|
+
}
|
|
3439
|
+
return tmp_1;
|
|
3422
3440
|
};
|
|
3423
3441
|
var Companion_instance_1;
|
|
3424
3442
|
function Companion_getInstance_1() {
|
|
@@ -3438,8 +3456,8 @@
|
|
|
3438
3456
|
var $ENTRIES_1;
|
|
3439
3457
|
function TerrainOrigin(name, ordinal, id, measured) {
|
|
3440
3458
|
Enum.call(this, name, ordinal);
|
|
3441
|
-
this.
|
|
3442
|
-
this.
|
|
3459
|
+
this.x1g_1 = id;
|
|
3460
|
+
this.y1g_1 = measured;
|
|
3443
3461
|
}
|
|
3444
3462
|
function TerrainOrigin_IGN_LIDAR_HD_getInstance() {
|
|
3445
3463
|
static_init_2();
|
|
@@ -3462,7 +3480,7 @@
|
|
|
3462
3480
|
return TerrainOrigin_NONE_instance;
|
|
3463
3481
|
}
|
|
3464
3482
|
function Tile_init_$Init$(raw, $this) {
|
|
3465
|
-
Tile.call($this, raw.
|
|
3483
|
+
Tile.call($this, raw.r1g_1, raw.s1g_1, raw.t1g_1);
|
|
3466
3484
|
return $this;
|
|
3467
3485
|
}
|
|
3468
3486
|
function Tile_init_$Create$(raw) {
|
|
@@ -3470,7 +3488,7 @@
|
|
|
3470
3488
|
}
|
|
3471
3489
|
function Companion_1() {
|
|
3472
3490
|
}
|
|
3473
|
-
protoOf(Companion_1).
|
|
3491
|
+
protoOf(Companion_1).z1g = function (r, g, b) {
|
|
3474
3492
|
var raw = r * 256.0 + g + b / 256.0 - 32768.0;
|
|
3475
3493
|
return round(raw * 100.0) / 100.0;
|
|
3476
3494
|
};
|
|
@@ -3517,7 +3535,7 @@
|
|
|
3517
3535
|
var r = this.e16_1[byteOffset] & 255;
|
|
3518
3536
|
var g = this.e16_1[byteOffset + 1 | 0] & 255;
|
|
3519
3537
|
var b = this.e16_1[byteOffset + 2 | 0] & 255;
|
|
3520
|
-
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_2.
|
|
3538
|
+
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_2.z1g(r, g, b);
|
|
3521
3539
|
this.g16_1[idx] = elevation;
|
|
3522
3540
|
this.h16_1 = this.h16_1 + 1 | 0;
|
|
3523
3541
|
return elevation;
|
|
@@ -3528,11 +3546,11 @@
|
|
|
3528
3546
|
};
|
|
3529
3547
|
}
|
|
3530
3548
|
function Entry(failure, untilMs) {
|
|
3531
|
-
this.
|
|
3532
|
-
this.
|
|
3549
|
+
this.a1h_1 = failure;
|
|
3550
|
+
this.b1h_1 = untilMs;
|
|
3533
3551
|
}
|
|
3534
3552
|
function _get_empty__hz710c($this) {
|
|
3535
|
-
var tmp0 = $this.
|
|
3553
|
+
var tmp0 = $this.i1h_1;
|
|
3536
3554
|
var tmp = KProperty1;
|
|
3537
3555
|
// Inline function 'kotlin.getValue' call
|
|
3538
3556
|
getPropertyCallableRef('empty', 1, tmp, UnreadableTiles$_get_empty_$ref_9kivqt(), null);
|
|
@@ -3540,11 +3558,11 @@
|
|
|
3540
3558
|
}
|
|
3541
3559
|
function Companion_2() {
|
|
3542
3560
|
Companion_instance_3 = this;
|
|
3543
|
-
this.
|
|
3561
|
+
this.j1h_1 = new Long(60000, 0);
|
|
3544
3562
|
var tmp = this;
|
|
3545
3563
|
// Inline function 'kotlin.let' call
|
|
3546
3564
|
var origin = Monotonic_instance.wb();
|
|
3547
|
-
tmp.
|
|
3565
|
+
tmp.k1h_1 = UnreadableTiles$Companion$monotonicClock$lambda(origin);
|
|
3548
3566
|
}
|
|
3549
3567
|
var Companion_instance_3;
|
|
3550
3568
|
function Companion_getInstance_3() {
|
|
@@ -3555,7 +3573,7 @@
|
|
|
3555
3573
|
function UnreadableTiles$empty$delegate$lambda(this$0) {
|
|
3556
3574
|
return function () {
|
|
3557
3575
|
// Inline function 'kotlin.also' call
|
|
3558
|
-
var this_0 = Tile_init_$Create$(noDataTile(this$0.
|
|
3576
|
+
var this_0 = Tile_init_$Create$(noDataTile(this$0.d1h_1));
|
|
3559
3577
|
this_0.f16_1 = true;
|
|
3560
3578
|
return this_0;
|
|
3561
3579
|
};
|
|
@@ -3567,8 +3585,8 @@
|
|
|
3567
3585
|
}
|
|
3568
3586
|
function $cachedCOROUTINE$(_this__u8e3s4, tc, resultContinuation) {
|
|
3569
3587
|
CoroutineImpl.call(this, resultContinuation);
|
|
3570
|
-
this.
|
|
3571
|
-
this.
|
|
3588
|
+
this.t1h_1 = _this__u8e3s4;
|
|
3589
|
+
this.u1h_1 = tc;
|
|
3572
3590
|
}
|
|
3573
3591
|
protoOf($cachedCOROUTINE$).r7 = function () {
|
|
3574
3592
|
var suspendResult = this.l7_1;
|
|
@@ -3578,10 +3596,10 @@
|
|
|
3578
3596
|
switch (tmp) {
|
|
3579
3597
|
case 0:
|
|
3580
3598
|
this.k7_1 = 4;
|
|
3581
|
-
this.
|
|
3582
|
-
this.
|
|
3599
|
+
this.x1h_1 = this.t1h_1.g1h_1;
|
|
3600
|
+
this.w1h_1 = null;
|
|
3583
3601
|
this.j7_1 = 1;
|
|
3584
|
-
suspendResult = this.
|
|
3602
|
+
suspendResult = this.x1h_1.qw(this.w1h_1, this);
|
|
3585
3603
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3586
3604
|
return suspendResult;
|
|
3587
3605
|
}
|
|
@@ -3594,7 +3612,7 @@
|
|
|
3594
3612
|
l$ret$1: do {
|
|
3595
3613
|
var tmp_0;
|
|
3596
3614
|
try {
|
|
3597
|
-
var tmp0_elvis_lhs = this.
|
|
3615
|
+
var tmp0_elvis_lhs = this.t1h_1.h1h_1.t1(this.u1h_1);
|
|
3598
3616
|
var tmp_1;
|
|
3599
3617
|
if (tmp0_elvis_lhs == null) {
|
|
3600
3618
|
tmp$ret$0 = null;
|
|
@@ -3603,8 +3621,8 @@
|
|
|
3603
3621
|
tmp_1 = tmp0_elvis_lhs;
|
|
3604
3622
|
}
|
|
3605
3623
|
var e = tmp_1;
|
|
3606
|
-
if (compare(this.
|
|
3607
|
-
this.
|
|
3624
|
+
if (compare(this.t1h_1.f1h_1(), e.b1h_1) >= 0) {
|
|
3625
|
+
this.t1h_1.h1h_1.w3(this.u1h_1);
|
|
3608
3626
|
tmp$ret$0 = null;
|
|
3609
3627
|
break l$ret$1;
|
|
3610
3628
|
}
|
|
@@ -3613,27 +3631,27 @@
|
|
|
3613
3631
|
} catch ($p) {
|
|
3614
3632
|
var tmp_2;
|
|
3615
3633
|
var t = $p;
|
|
3616
|
-
this.
|
|
3634
|
+
this.x1h_1.bw(this.w1h_1);
|
|
3617
3635
|
throw t;
|
|
3618
3636
|
}
|
|
3619
3637
|
}
|
|
3620
3638
|
while (false);
|
|
3621
3639
|
var tmp_3 = tmp$ret$0;
|
|
3622
|
-
this.
|
|
3640
|
+
this.x1h_1.bw(this.w1h_1);
|
|
3623
3641
|
return tmp_3;
|
|
3624
3642
|
}
|
|
3625
3643
|
while (false);
|
|
3626
3644
|
var tmp_4 = tmp$ret$2;
|
|
3627
|
-
this.
|
|
3645
|
+
this.x1h_1.bw(this.w1h_1);
|
|
3628
3646
|
var entry = tmp_4;
|
|
3629
3647
|
var tmp0_safe_receiver = this.p7().w7(Key_instance);
|
|
3630
3648
|
if (tmp0_safe_receiver == null) {
|
|
3631
|
-
this.
|
|
3649
|
+
this.v1h_1 = null;
|
|
3632
3650
|
this.j7_1 = 3;
|
|
3633
3651
|
continue $sm;
|
|
3634
3652
|
} else {
|
|
3635
3653
|
this.j7_1 = 2;
|
|
3636
|
-
suspendResult = tmp0_safe_receiver.
|
|
3654
|
+
suspendResult = tmp0_safe_receiver.b1i(entry.a1h_1, this);
|
|
3637
3655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3638
3656
|
return suspendResult;
|
|
3639
3657
|
}
|
|
@@ -3642,11 +3660,11 @@
|
|
|
3642
3660
|
|
|
3643
3661
|
case 2:
|
|
3644
3662
|
var tmp_5 = this;
|
|
3645
|
-
tmp_5.
|
|
3663
|
+
tmp_5.v1h_1 = Unit_instance;
|
|
3646
3664
|
this.j7_1 = 3;
|
|
3647
3665
|
continue $sm;
|
|
3648
3666
|
case 3:
|
|
3649
|
-
return _get_empty__hz710c(this.
|
|
3667
|
+
return _get_empty__hz710c(this.t1h_1);
|
|
3650
3668
|
case 4:
|
|
3651
3669
|
throw this.m7_1;
|
|
3652
3670
|
}
|
|
@@ -3663,9 +3681,9 @@
|
|
|
3663
3681
|
};
|
|
3664
3682
|
function $rememberCOROUTINE$(_this__u8e3s4, tc, error, resultContinuation) {
|
|
3665
3683
|
CoroutineImpl.call(this, resultContinuation);
|
|
3666
|
-
this.
|
|
3667
|
-
this.
|
|
3668
|
-
this.
|
|
3684
|
+
this.k1i_1 = _this__u8e3s4;
|
|
3685
|
+
this.l1i_1 = tc;
|
|
3686
|
+
this.m1i_1 = error;
|
|
3669
3687
|
}
|
|
3670
3688
|
protoOf($rememberCOROUTINE$).r7 = function () {
|
|
3671
3689
|
var suspendResult = this.l7_1;
|
|
@@ -3676,13 +3694,13 @@
|
|
|
3676
3694
|
case 0:
|
|
3677
3695
|
this.k7_1 = 4;
|
|
3678
3696
|
var tmp_0 = this;
|
|
3679
|
-
var tmp0_elvis_lhs = this.
|
|
3680
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.
|
|
3681
|
-
tmp_0.
|
|
3682
|
-
this.
|
|
3683
|
-
this.
|
|
3697
|
+
var tmp0_elvis_lhs = this.m1i_1.message;
|
|
3698
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.m1i_1).t8() : tmp0_elvis_lhs;
|
|
3699
|
+
tmp_0.o1i_1 = new TileFailure(this.k1i_1.c1h_1, this.l1i_1, tmp1_elvis_lhs == null ? 'error' : tmp1_elvis_lhs);
|
|
3700
|
+
this.q1i_1 = this.k1i_1.g1h_1;
|
|
3701
|
+
this.p1i_1 = null;
|
|
3684
3702
|
this.j7_1 = 1;
|
|
3685
|
-
suspendResult = this.
|
|
3703
|
+
suspendResult = this.q1i_1.qw(this.p1i_1, this);
|
|
3686
3704
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3687
3705
|
return suspendResult;
|
|
3688
3706
|
}
|
|
@@ -3692,28 +3710,28 @@
|
|
|
3692
3710
|
l$ret$1: do {
|
|
3693
3711
|
var tmp_1;
|
|
3694
3712
|
try {
|
|
3695
|
-
var tmp0 = this.
|
|
3696
|
-
var tmp2 = this.
|
|
3697
|
-
var value = new Entry(this.
|
|
3713
|
+
var tmp0 = this.k1i_1.h1h_1;
|
|
3714
|
+
var tmp2 = this.l1i_1;
|
|
3715
|
+
var value = new Entry(this.o1i_1, add(this.k1i_1.f1h_1(), this.k1i_1.e1h_1));
|
|
3698
3716
|
tmp0.v3(tmp2, value);
|
|
3699
3717
|
break l$ret$1;
|
|
3700
3718
|
} catch ($p) {
|
|
3701
3719
|
var tmp_2;
|
|
3702
3720
|
var t = $p;
|
|
3703
|
-
this.
|
|
3721
|
+
this.q1i_1.bw(this.p1i_1);
|
|
3704
3722
|
throw t;
|
|
3705
3723
|
}
|
|
3706
3724
|
}
|
|
3707
3725
|
while (false);
|
|
3708
|
-
this.
|
|
3726
|
+
this.q1i_1.bw(this.p1i_1);
|
|
3709
3727
|
var tmp2_safe_receiver = this.p7().w7(Key_instance);
|
|
3710
3728
|
if (tmp2_safe_receiver == null) {
|
|
3711
|
-
this.
|
|
3729
|
+
this.n1i_1 = null;
|
|
3712
3730
|
this.j7_1 = 3;
|
|
3713
3731
|
continue $sm;
|
|
3714
3732
|
} else {
|
|
3715
3733
|
this.j7_1 = 2;
|
|
3716
|
-
suspendResult = tmp2_safe_receiver.
|
|
3734
|
+
suspendResult = tmp2_safe_receiver.b1i(this.o1i_1, this);
|
|
3717
3735
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3718
3736
|
return suspendResult;
|
|
3719
3737
|
}
|
|
@@ -3722,11 +3740,11 @@
|
|
|
3722
3740
|
|
|
3723
3741
|
case 2:
|
|
3724
3742
|
var tmp_3 = this;
|
|
3725
|
-
tmp_3.
|
|
3743
|
+
tmp_3.n1i_1 = Unit_instance;
|
|
3726
3744
|
this.j7_1 = 3;
|
|
3727
3745
|
continue $sm;
|
|
3728
3746
|
case 3:
|
|
3729
|
-
return _get_empty__hz710c(this.
|
|
3747
|
+
return _get_empty__hz710c(this.k1i_1);
|
|
3730
3748
|
case 4:
|
|
3731
3749
|
throw this.m7_1;
|
|
3732
3750
|
}
|
|
@@ -3744,40 +3762,40 @@
|
|
|
3744
3762
|
function UnreadableTiles(urlTemplate, tileSize, retryAfterMs, now) {
|
|
3745
3763
|
Companion_getInstance_3();
|
|
3746
3764
|
retryAfterMs = retryAfterMs === VOID ? new Long(60000, 0) : retryAfterMs;
|
|
3747
|
-
now = now === VOID ? Companion_getInstance_3().
|
|
3748
|
-
this.
|
|
3749
|
-
this.
|
|
3750
|
-
this.
|
|
3751
|
-
this.
|
|
3752
|
-
this.
|
|
3753
|
-
this.
|
|
3765
|
+
now = now === VOID ? Companion_getInstance_3().k1h_1 : now;
|
|
3766
|
+
this.c1h_1 = urlTemplate;
|
|
3767
|
+
this.d1h_1 = tileSize;
|
|
3768
|
+
this.e1h_1 = retryAfterMs;
|
|
3769
|
+
this.f1h_1 = now;
|
|
3770
|
+
this.g1h_1 = Mutex();
|
|
3771
|
+
this.h1h_1 = HashMap_init_$Create$();
|
|
3754
3772
|
var tmp = this;
|
|
3755
|
-
tmp.
|
|
3773
|
+
tmp.i1h_1 = lazy(UnreadableTiles$empty$delegate$lambda(this));
|
|
3756
3774
|
}
|
|
3757
|
-
protoOf(UnreadableTiles).
|
|
3775
|
+
protoOf(UnreadableTiles).r1i = function (tc, $completion) {
|
|
3758
3776
|
var tmp = new $cachedCOROUTINE$(this, tc, $completion);
|
|
3759
3777
|
tmp.l7_1 = Unit_instance;
|
|
3760
3778
|
tmp.m7_1 = null;
|
|
3761
3779
|
return tmp.r7();
|
|
3762
3780
|
};
|
|
3763
|
-
protoOf(UnreadableTiles).
|
|
3781
|
+
protoOf(UnreadableTiles).s1i = function (tc, error, $completion) {
|
|
3764
3782
|
var tmp = new $rememberCOROUTINE$(this, tc, error, $completion);
|
|
3765
3783
|
tmp.l7_1 = Unit_instance;
|
|
3766
3784
|
tmp.m7_1 = null;
|
|
3767
3785
|
return tmp.r7();
|
|
3768
3786
|
};
|
|
3769
3787
|
function TileFailure(urlTemplate, tile, message) {
|
|
3770
|
-
this.
|
|
3771
|
-
this.
|
|
3772
|
-
this.
|
|
3788
|
+
this.t1i_1 = urlTemplate;
|
|
3789
|
+
this.u1i_1 = tile;
|
|
3790
|
+
this.v1i_1 = message;
|
|
3773
3791
|
}
|
|
3774
3792
|
protoOf(TileFailure).toString = function () {
|
|
3775
|
-
return 'TileFailure(urlTemplate=' + this.
|
|
3793
|
+
return 'TileFailure(urlTemplate=' + this.t1i_1 + ', tile=' + this.u1i_1.toString() + ', message=' + this.v1i_1 + ')';
|
|
3776
3794
|
};
|
|
3777
3795
|
protoOf(TileFailure).hashCode = function () {
|
|
3778
|
-
var result = getStringHashCode(this.
|
|
3779
|
-
result = imul(result, 31) + this.
|
|
3780
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3796
|
+
var result = getStringHashCode(this.t1i_1);
|
|
3797
|
+
result = imul(result, 31) + this.u1i_1.hashCode() | 0;
|
|
3798
|
+
result = imul(result, 31) + getStringHashCode(this.v1i_1) | 0;
|
|
3781
3799
|
return result;
|
|
3782
3800
|
};
|
|
3783
3801
|
protoOf(TileFailure).equals = function (other) {
|
|
@@ -3785,11 +3803,11 @@
|
|
|
3785
3803
|
return true;
|
|
3786
3804
|
if (!(other instanceof TileFailure))
|
|
3787
3805
|
return false;
|
|
3788
|
-
if (!(this.
|
|
3806
|
+
if (!(this.t1i_1 === other.t1i_1))
|
|
3789
3807
|
return false;
|
|
3790
|
-
if (!this.
|
|
3808
|
+
if (!this.u1i_1.equals(other.u1i_1))
|
|
3791
3809
|
return false;
|
|
3792
|
-
if (!(this.
|
|
3810
|
+
if (!(this.v1i_1 === other.v1i_1))
|
|
3793
3811
|
return false;
|
|
3794
3812
|
return true;
|
|
3795
3813
|
};
|
|
@@ -3801,8 +3819,8 @@
|
|
|
3801
3819
|
}
|
|
3802
3820
|
function $recordCOROUTINE$(_this__u8e3s4, failure, resultContinuation) {
|
|
3803
3821
|
CoroutineImpl.call(this, resultContinuation);
|
|
3804
|
-
this.
|
|
3805
|
-
this.
|
|
3822
|
+
this.e1j_1 = _this__u8e3s4;
|
|
3823
|
+
this.f1j_1 = failure;
|
|
3806
3824
|
}
|
|
3807
3825
|
protoOf($recordCOROUTINE$).r7 = function () {
|
|
3808
3826
|
var suspendResult = this.l7_1;
|
|
@@ -3812,10 +3830,10 @@
|
|
|
3812
3830
|
switch (tmp) {
|
|
3813
3831
|
case 0:
|
|
3814
3832
|
this.k7_1 = 2;
|
|
3815
|
-
this.
|
|
3816
|
-
this.
|
|
3833
|
+
this.h1j_1 = this.e1j_1.z1h_1;
|
|
3834
|
+
this.g1j_1 = null;
|
|
3817
3835
|
this.j7_1 = 1;
|
|
3818
|
-
suspendResult = this.
|
|
3836
|
+
suspendResult = this.h1j_1.qw(this.g1j_1, this);
|
|
3819
3837
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3820
3838
|
return suspendResult;
|
|
3821
3839
|
}
|
|
@@ -3825,12 +3843,12 @@
|
|
|
3825
3843
|
l$ret$1: do {
|
|
3826
3844
|
var tmp_0;
|
|
3827
3845
|
try {
|
|
3828
|
-
var tmp0 = this.
|
|
3829
|
-
var key = this.
|
|
3846
|
+
var tmp0 = this.e1j_1.a1i_1;
|
|
3847
|
+
var key = this.f1j_1.t1i_1 + '|' + this.f1j_1.u1i_1.toString();
|
|
3830
3848
|
var value = tmp0.t1(key);
|
|
3831
3849
|
var tmp_1;
|
|
3832
3850
|
if (value == null) {
|
|
3833
|
-
var answer = this.
|
|
3851
|
+
var answer = this.f1j_1;
|
|
3834
3852
|
tmp0.v3(key, answer);
|
|
3835
3853
|
tmp_1 = answer;
|
|
3836
3854
|
} else {
|
|
@@ -3840,12 +3858,12 @@
|
|
|
3840
3858
|
} catch ($p) {
|
|
3841
3859
|
var tmp_2;
|
|
3842
3860
|
var t = $p;
|
|
3843
|
-
this.
|
|
3861
|
+
this.h1j_1.bw(this.g1j_1);
|
|
3844
3862
|
throw t;
|
|
3845
3863
|
}
|
|
3846
3864
|
}
|
|
3847
3865
|
while (false);
|
|
3848
|
-
this.
|
|
3866
|
+
this.h1j_1.bw(this.g1j_1);
|
|
3849
3867
|
return Unit_instance;
|
|
3850
3868
|
case 2:
|
|
3851
3869
|
throw this.m7_1;
|
|
@@ -3863,17 +3881,17 @@
|
|
|
3863
3881
|
};
|
|
3864
3882
|
function TileFailureLog() {
|
|
3865
3883
|
AbstractCoroutineContextElement.call(this, Key_instance);
|
|
3866
|
-
this.
|
|
3867
|
-
this.
|
|
3884
|
+
this.z1h_1 = Mutex();
|
|
3885
|
+
this.a1i_1 = LinkedHashMap_init_$Create$();
|
|
3868
3886
|
}
|
|
3869
|
-
protoOf(TileFailureLog).
|
|
3887
|
+
protoOf(TileFailureLog).b1i = function (failure, $completion) {
|
|
3870
3888
|
var tmp = new $recordCOROUTINE$(this, failure, $completion);
|
|
3871
3889
|
tmp.l7_1 = Unit_instance;
|
|
3872
3890
|
tmp.m7_1 = null;
|
|
3873
3891
|
return tmp.r7();
|
|
3874
3892
|
};
|
|
3875
|
-
protoOf(TileFailureLog).
|
|
3876
|
-
return toList_0(this.
|
|
3893
|
+
protoOf(TileFailureLog).i1j = function () {
|
|
3894
|
+
return toList_0(this.a1i_1.v1());
|
|
3877
3895
|
};
|
|
3878
3896
|
function buildUrl($this, tc) {
|
|
3879
3897
|
// Inline function 'kotlin.let' call
|
|
@@ -3883,24 +3901,24 @@
|
|
|
3883
3901
|
function fetchAndDecodeTile$ref_0() {
|
|
3884
3902
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
3885
3903
|
}
|
|
3886
|
-
protoOf(fetchAndDecodeTile$ref_0).
|
|
3904
|
+
protoOf(fetchAndDecodeTile$ref_0).a1a = function (p0, $completion) {
|
|
3887
3905
|
return fetchAndDecodeTile(p0, $completion);
|
|
3888
3906
|
};
|
|
3889
3907
|
protoOf(fetchAndDecodeTile$ref_0).z7 = function (p1, $completion) {
|
|
3890
|
-
return this.
|
|
3908
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3891
3909
|
};
|
|
3892
3910
|
function TileManager$cache$slambda(this$0, resultContinuation) {
|
|
3893
|
-
this.
|
|
3911
|
+
this.u1j_1 = this$0;
|
|
3894
3912
|
CoroutineImpl.call(this, resultContinuation);
|
|
3895
3913
|
}
|
|
3896
|
-
protoOf(TileManager$cache$slambda).
|
|
3897
|
-
var tmp = this.
|
|
3914
|
+
protoOf(TileManager$cache$slambda).w1j = function (tc, $completion) {
|
|
3915
|
+
var tmp = this.x1j(tc, $completion);
|
|
3898
3916
|
tmp.l7_1 = Unit_instance;
|
|
3899
3917
|
tmp.m7_1 = null;
|
|
3900
3918
|
return tmp.r7();
|
|
3901
3919
|
};
|
|
3902
3920
|
protoOf(TileManager$cache$slambda).z7 = function (p1, $completion) {
|
|
3903
|
-
return this.
|
|
3921
|
+
return this.w1j(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
|
|
3904
3922
|
};
|
|
3905
3923
|
protoOf(TileManager$cache$slambda).r7 = function () {
|
|
3906
3924
|
var suspendResult = this.l7_1;
|
|
@@ -3911,7 +3929,7 @@
|
|
|
3911
3929
|
case 0:
|
|
3912
3930
|
this.k7_1 = 2;
|
|
3913
3931
|
this.j7_1 = 1;
|
|
3914
|
-
suspendResult = this.
|
|
3932
|
+
suspendResult = this.u1j_1.y15_1(buildUrl(this.u1j_1, this.v1j_1), this);
|
|
3915
3933
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3916
3934
|
return suspendResult;
|
|
3917
3935
|
}
|
|
@@ -3934,21 +3952,21 @@
|
|
|
3934
3952
|
}
|
|
3935
3953
|
while (true);
|
|
3936
3954
|
};
|
|
3937
|
-
protoOf(TileManager$cache$slambda).
|
|
3938
|
-
var i = new TileManager$cache$slambda(this.
|
|
3939
|
-
i.
|
|
3955
|
+
protoOf(TileManager$cache$slambda).x1j = function (tc, completion) {
|
|
3956
|
+
var i = new TileManager$cache$slambda(this.u1j_1, completion);
|
|
3957
|
+
i.v1j_1 = tc;
|
|
3940
3958
|
return i;
|
|
3941
3959
|
};
|
|
3942
3960
|
function TileManager$cache$slambda_0(this$0, resultContinuation) {
|
|
3943
3961
|
var i = new TileManager$cache$slambda(this$0, resultContinuation);
|
|
3944
3962
|
return constructCallableReference(function (tc, $completion) {
|
|
3945
|
-
return i.
|
|
3963
|
+
return i.w1j(tc, $completion);
|
|
3946
3964
|
}, 1);
|
|
3947
3965
|
}
|
|
3948
3966
|
function $getTileCOROUTINE$(_this__u8e3s4, tileCoords, resultContinuation) {
|
|
3949
3967
|
CoroutineImpl.call(this, resultContinuation);
|
|
3950
|
-
this.
|
|
3951
|
-
this.
|
|
3968
|
+
this.g1k_1 = _this__u8e3s4;
|
|
3969
|
+
this.h1k_1 = tileCoords;
|
|
3952
3970
|
}
|
|
3953
3971
|
protoOf($getTileCOROUTINE$).r7 = function () {
|
|
3954
3972
|
var suspendResult = this.l7_1;
|
|
@@ -3958,16 +3976,16 @@
|
|
|
3958
3976
|
switch (tmp) {
|
|
3959
3977
|
case 0:
|
|
3960
3978
|
this.k7_1 = 8;
|
|
3961
|
-
var tmp0_elvis_lhs = this.
|
|
3979
|
+
var tmp0_elvis_lhs = this.g1k_1.z15_1;
|
|
3962
3980
|
if (tmp0_elvis_lhs == null) {
|
|
3963
3981
|
this.j7_1 = 1;
|
|
3964
|
-
suspendResult = this.
|
|
3982
|
+
suspendResult = this.g1k_1.a16_1.q1g(this.h1k_1, this);
|
|
3965
3983
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3966
3984
|
return suspendResult;
|
|
3967
3985
|
}
|
|
3968
3986
|
continue $sm;
|
|
3969
3987
|
} else {
|
|
3970
|
-
this.
|
|
3988
|
+
this.k1k_1 = tmp0_elvis_lhs;
|
|
3971
3989
|
this.j7_1 = 2;
|
|
3972
3990
|
continue $sm;
|
|
3973
3991
|
}
|
|
@@ -3976,9 +3994,9 @@
|
|
|
3976
3994
|
var tmp_0 = this;
|
|
3977
3995
|
return suspendResult;
|
|
3978
3996
|
case 2:
|
|
3979
|
-
this.
|
|
3997
|
+
this.j1k_1 = this.k1k_1;
|
|
3980
3998
|
this.j7_1 = 3;
|
|
3981
|
-
suspendResult = this.
|
|
3999
|
+
suspendResult = this.j1k_1.r1i(this.h1k_1, this);
|
|
3982
4000
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3983
4001
|
return suspendResult;
|
|
3984
4002
|
}
|
|
@@ -3994,14 +4012,14 @@
|
|
|
3994
4012
|
|
|
3995
4013
|
this.k7_1 = 5;
|
|
3996
4014
|
this.j7_1 = 4;
|
|
3997
|
-
suspendResult = this.
|
|
4015
|
+
suspendResult = this.g1k_1.a16_1.q1g(this.h1k_1, this);
|
|
3998
4016
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3999
4017
|
return suspendResult;
|
|
4000
4018
|
}
|
|
4001
4019
|
|
|
4002
4020
|
continue $sm;
|
|
4003
4021
|
case 4:
|
|
4004
|
-
this.
|
|
4022
|
+
this.i1k_1 = suspendResult;
|
|
4005
4023
|
this.k7_1 = 8;
|
|
4006
4024
|
this.j7_1 = 7;
|
|
4007
4025
|
continue $sm;
|
|
@@ -4018,7 +4036,7 @@
|
|
|
4018
4036
|
var e_0 = this.m7_1;
|
|
4019
4037
|
ensureActive(this.p7());
|
|
4020
4038
|
this.j7_1 = 6;
|
|
4021
|
-
suspendResult = this.
|
|
4039
|
+
suspendResult = this.j1k_1.s1i(this.h1k_1, e_0, this);
|
|
4022
4040
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4023
4041
|
return suspendResult;
|
|
4024
4042
|
}
|
|
@@ -4029,12 +4047,12 @@
|
|
|
4029
4047
|
}
|
|
4030
4048
|
|
|
4031
4049
|
case 6:
|
|
4032
|
-
this.
|
|
4050
|
+
this.i1k_1 = suspendResult;
|
|
4033
4051
|
this.j7_1 = 7;
|
|
4034
4052
|
continue $sm;
|
|
4035
4053
|
case 7:
|
|
4036
4054
|
this.k7_1 = 8;
|
|
4037
|
-
return this.
|
|
4055
|
+
return this.i1k_1;
|
|
4038
4056
|
case 8:
|
|
4039
4057
|
throw this.m7_1;
|
|
4040
4058
|
}
|
|
@@ -4106,13 +4124,13 @@
|
|
|
4106
4124
|
retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
|
|
4107
4125
|
IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
|
|
4108
4126
|
captureStack(this, TileFetchException);
|
|
4109
|
-
this.
|
|
4110
|
-
this.
|
|
4111
|
-
this.
|
|
4127
|
+
this.l1k_1 = url;
|
|
4128
|
+
this.m1k_1 = status;
|
|
4129
|
+
this.n1k_1 = retryAfterSeconds;
|
|
4112
4130
|
}
|
|
4113
4131
|
function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
4114
4132
|
CoroutineImpl.call(this, resultContinuation);
|
|
4115
|
-
this.
|
|
4133
|
+
this.w1k_1 = _this__u8e3s4;
|
|
4116
4134
|
}
|
|
4117
4135
|
protoOf($awaitTurnCOROUTINE$).r7 = function () {
|
|
4118
4136
|
var suspendResult = this.l7_1;
|
|
@@ -4122,10 +4140,10 @@
|
|
|
4122
4140
|
switch (tmp) {
|
|
4123
4141
|
case 0:
|
|
4124
4142
|
this.k7_1 = 4;
|
|
4125
|
-
this.
|
|
4126
|
-
this.
|
|
4143
|
+
this.y1k_1 = this.w1k_1.b1l_1;
|
|
4144
|
+
this.x1k_1 = null;
|
|
4127
4145
|
this.j7_1 = 1;
|
|
4128
|
-
suspendResult = this.
|
|
4146
|
+
suspendResult = this.y1k_1.qw(this.x1k_1, this);
|
|
4129
4147
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4130
4148
|
return suspendResult;
|
|
4131
4149
|
}
|
|
@@ -4136,22 +4154,22 @@
|
|
|
4136
4154
|
l$ret$1: do {
|
|
4137
4155
|
var tmp_0;
|
|
4138
4156
|
try {
|
|
4139
|
-
var t = toNumber(this.
|
|
4140
|
-
var b = this.
|
|
4157
|
+
var t = toNumber(this.w1k_1.z1k_1());
|
|
4158
|
+
var b = this.w1k_1.c1l_1;
|
|
4141
4159
|
var slot = Math.max(t, b);
|
|
4142
|
-
this.
|
|
4160
|
+
this.w1k_1.c1l_1 = slot + this.w1k_1.a1l_1;
|
|
4143
4161
|
tmp$ret$0 = slot - t;
|
|
4144
4162
|
break l$ret$1;
|
|
4145
4163
|
} catch ($p) {
|
|
4146
4164
|
var tmp_1;
|
|
4147
4165
|
var t_0 = $p;
|
|
4148
|
-
this.
|
|
4166
|
+
this.y1k_1.bw(this.x1k_1);
|
|
4149
4167
|
throw t_0;
|
|
4150
4168
|
}
|
|
4151
4169
|
}
|
|
4152
4170
|
while (false);
|
|
4153
4171
|
var tmp_2 = tmp$ret$0;
|
|
4154
|
-
this.
|
|
4172
|
+
this.y1k_1.bw(this.x1k_1);
|
|
4155
4173
|
var waitMs = tmp_2;
|
|
4156
4174
|
if (waitMs > 0) {
|
|
4157
4175
|
this.j7_1 = 2;
|
|
@@ -4185,29 +4203,29 @@
|
|
|
4185
4203
|
while (true);
|
|
4186
4204
|
};
|
|
4187
4205
|
function RequestPacer(perSecond, now) {
|
|
4188
|
-
this.
|
|
4189
|
-
this.
|
|
4190
|
-
this.
|
|
4191
|
-
this.
|
|
4206
|
+
this.z1k_1 = now;
|
|
4207
|
+
this.a1l_1 = 1000.0 / perSecond;
|
|
4208
|
+
this.b1l_1 = Mutex();
|
|
4209
|
+
this.c1l_1 = -Infinity;
|
|
4192
4210
|
}
|
|
4193
|
-
protoOf(RequestPacer).
|
|
4211
|
+
protoOf(RequestPacer).d1l = function ($completion) {
|
|
4194
4212
|
var tmp = new $awaitTurnCOROUTINE$(this, $completion);
|
|
4195
4213
|
tmp.l7_1 = Unit_instance;
|
|
4196
4214
|
tmp.m7_1 = null;
|
|
4197
4215
|
return tmp.r7();
|
|
4198
4216
|
};
|
|
4199
4217
|
function Key_0(host, perSecond, clock) {
|
|
4200
|
-
this.
|
|
4201
|
-
this.
|
|
4202
|
-
this.
|
|
4218
|
+
this.e1l_1 = host;
|
|
4219
|
+
this.f1l_1 = perSecond;
|
|
4220
|
+
this.g1l_1 = clock;
|
|
4203
4221
|
}
|
|
4204
4222
|
protoOf(Key_0).toString = function () {
|
|
4205
|
-
return 'Key(host=' + this.
|
|
4223
|
+
return 'Key(host=' + this.e1l_1 + ', perSecond=' + this.f1l_1 + ', clock=' + toString(this.g1l_1) + ')';
|
|
4206
4224
|
};
|
|
4207
4225
|
protoOf(Key_0).hashCode = function () {
|
|
4208
|
-
var result = getStringHashCode(this.
|
|
4209
|
-
result = imul(result, 31) + this.
|
|
4210
|
-
result = imul(result, 31) + hashCode(this.
|
|
4226
|
+
var result = getStringHashCode(this.e1l_1);
|
|
4227
|
+
result = imul(result, 31) + this.f1l_1 | 0;
|
|
4228
|
+
result = imul(result, 31) + hashCode(this.g1l_1) | 0;
|
|
4211
4229
|
return result;
|
|
4212
4230
|
};
|
|
4213
4231
|
protoOf(Key_0).equals = function (other) {
|
|
@@ -4215,20 +4233,20 @@
|
|
|
4215
4233
|
return true;
|
|
4216
4234
|
if (!(other instanceof Key_0))
|
|
4217
4235
|
return false;
|
|
4218
|
-
if (!(this.d1l_1 === other.d1l_1))
|
|
4219
|
-
return false;
|
|
4220
4236
|
if (!(this.e1l_1 === other.e1l_1))
|
|
4221
4237
|
return false;
|
|
4222
|
-
if (!
|
|
4238
|
+
if (!(this.f1l_1 === other.f1l_1))
|
|
4239
|
+
return false;
|
|
4240
|
+
if (!equals(this.g1l_1, other.g1l_1))
|
|
4223
4241
|
return false;
|
|
4224
4242
|
return true;
|
|
4225
4243
|
};
|
|
4226
4244
|
function $ofCOROUTINE$(_this__u8e3s4, host, perSecond, clock, resultContinuation) {
|
|
4227
4245
|
CoroutineImpl.call(this, resultContinuation);
|
|
4228
|
-
this.
|
|
4229
|
-
this.
|
|
4230
|
-
this.
|
|
4231
|
-
this.
|
|
4246
|
+
this.p1l_1 = _this__u8e3s4;
|
|
4247
|
+
this.q1l_1 = host;
|
|
4248
|
+
this.r1l_1 = perSecond;
|
|
4249
|
+
this.s1l_1 = clock;
|
|
4232
4250
|
}
|
|
4233
4251
|
protoOf($ofCOROUTINE$).r7 = function () {
|
|
4234
4252
|
var suspendResult = this.l7_1;
|
|
@@ -4238,10 +4256,10 @@
|
|
|
4238
4256
|
switch (tmp) {
|
|
4239
4257
|
case 0:
|
|
4240
4258
|
this.k7_1 = 2;
|
|
4241
|
-
this.
|
|
4242
|
-
this.
|
|
4259
|
+
this.u1l_1 = this.p1l_1.v1l_1;
|
|
4260
|
+
this.t1l_1 = null;
|
|
4243
4261
|
this.j7_1 = 1;
|
|
4244
|
-
suspendResult = this.
|
|
4262
|
+
suspendResult = this.u1l_1.qw(this.t1l_1, this);
|
|
4245
4263
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4246
4264
|
return suspendResult;
|
|
4247
4265
|
}
|
|
@@ -4252,12 +4270,12 @@
|
|
|
4252
4270
|
l$ret$1: do {
|
|
4253
4271
|
var tmp_0;
|
|
4254
4272
|
try {
|
|
4255
|
-
var tmp0 = HostPacers_getInstance().
|
|
4256
|
-
var key = new Key_0(this.
|
|
4273
|
+
var tmp0 = HostPacers_getInstance().w1l_1;
|
|
4274
|
+
var key = new Key_0(this.q1l_1, this.r1l_1, this.s1l_1);
|
|
4257
4275
|
var value = tmp0.t1(key);
|
|
4258
4276
|
var tmp_1;
|
|
4259
4277
|
if (value == null) {
|
|
4260
|
-
var answer = new RequestPacer(this.
|
|
4278
|
+
var answer = new RequestPacer(this.r1l_1, this.s1l_1);
|
|
4261
4279
|
tmp0.v3(key, answer);
|
|
4262
4280
|
tmp_1 = answer;
|
|
4263
4281
|
} else {
|
|
@@ -4268,13 +4286,13 @@
|
|
|
4268
4286
|
} catch ($p) {
|
|
4269
4287
|
var tmp_2;
|
|
4270
4288
|
var t = $p;
|
|
4271
|
-
this.
|
|
4289
|
+
this.u1l_1.bw(this.t1l_1);
|
|
4272
4290
|
throw t;
|
|
4273
4291
|
}
|
|
4274
4292
|
}
|
|
4275
4293
|
while (false);
|
|
4276
4294
|
var tmp_3 = tmp$ret$0;
|
|
4277
|
-
this.
|
|
4295
|
+
this.u1l_1.bw(this.t1l_1);
|
|
4278
4296
|
return tmp_3;
|
|
4279
4297
|
case 2:
|
|
4280
4298
|
throw this.m7_1;
|
|
@@ -4292,10 +4310,10 @@
|
|
|
4292
4310
|
};
|
|
4293
4311
|
function HostPacers() {
|
|
4294
4312
|
HostPacers_instance = this;
|
|
4295
|
-
this.
|
|
4296
|
-
this.
|
|
4313
|
+
this.v1l_1 = Mutex();
|
|
4314
|
+
this.w1l_1 = HashMap_init_$Create$();
|
|
4297
4315
|
}
|
|
4298
|
-
protoOf(HostPacers).
|
|
4316
|
+
protoOf(HostPacers).x1l = function (host, perSecond, clock, $completion) {
|
|
4299
4317
|
var tmp = new $ofCOROUTINE$(this, host, perSecond, clock, $completion);
|
|
4300
4318
|
tmp.l7_1 = Unit_instance;
|
|
4301
4319
|
tmp.m7_1 = null;
|
|
@@ -4319,27 +4337,27 @@
|
|
|
4319
4337
|
function fetchTileBytes$ref() {
|
|
4320
4338
|
KFunctionImpl.call(this, 1, 2, 5);
|
|
4321
4339
|
}
|
|
4322
|
-
protoOf(fetchTileBytes$ref).
|
|
4340
|
+
protoOf(fetchTileBytes$ref).b1m = function (p0, $completion) {
|
|
4323
4341
|
return fetchTileBytes(p0, $completion);
|
|
4324
4342
|
};
|
|
4325
4343
|
protoOf(fetchTileBytes$ref).z7 = function (p1, $completion) {
|
|
4326
|
-
return this.
|
|
4344
|
+
return this.b1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
4327
4345
|
};
|
|
4328
4346
|
function pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
4329
|
-
this.
|
|
4330
|
-
this.
|
|
4331
|
-
this.
|
|
4332
|
-
this.
|
|
4347
|
+
this.k1m_1 = $maxRequestsPerSecond;
|
|
4348
|
+
this.l1m_1 = $now;
|
|
4349
|
+
this.m1m_1 = $fetch;
|
|
4350
|
+
this.n1m_1 = $maxAttempts;
|
|
4333
4351
|
CoroutineImpl.call(this, resultContinuation);
|
|
4334
4352
|
}
|
|
4335
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
4336
|
-
var tmp = this.
|
|
4353
|
+
protoOf(pacedTileBytesFetcher$slambda).b1m = function (url, $completion) {
|
|
4354
|
+
var tmp = this.l1a(url, $completion);
|
|
4337
4355
|
tmp.l7_1 = Unit_instance;
|
|
4338
4356
|
tmp.m7_1 = null;
|
|
4339
4357
|
return tmp.r7();
|
|
4340
4358
|
};
|
|
4341
4359
|
protoOf(pacedTileBytesFetcher$slambda).z7 = function (p1, $completion) {
|
|
4342
|
-
return this.
|
|
4360
|
+
return this.b1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
4343
4361
|
};
|
|
4344
4362
|
protoOf(pacedTileBytesFetcher$slambda).r7 = function () {
|
|
4345
4363
|
var suspendResult = this.l7_1;
|
|
@@ -4349,43 +4367,43 @@
|
|
|
4349
4367
|
switch (tmp) {
|
|
4350
4368
|
case 0:
|
|
4351
4369
|
this.k7_1 = 11;
|
|
4352
|
-
if (this.
|
|
4370
|
+
if (this.k1m_1 > 0) {
|
|
4353
4371
|
this.j7_1 = 1;
|
|
4354
|
-
suspendResult = HostPacers_getInstance().
|
|
4372
|
+
suspendResult = HostPacers_getInstance().x1l(hostOf(this.o1m_1), this.k1m_1, this.l1m_1, this);
|
|
4355
4373
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4356
4374
|
return suspendResult;
|
|
4357
4375
|
}
|
|
4358
4376
|
continue $sm;
|
|
4359
4377
|
} else {
|
|
4360
|
-
this.
|
|
4378
|
+
this.u1m_1 = null;
|
|
4361
4379
|
this.j7_1 = 2;
|
|
4362
4380
|
continue $sm;
|
|
4363
4381
|
}
|
|
4364
4382
|
|
|
4365
4383
|
case 1:
|
|
4366
|
-
this.
|
|
4384
|
+
this.u1m_1 = suspendResult;
|
|
4367
4385
|
this.j7_1 = 2;
|
|
4368
4386
|
continue $sm;
|
|
4369
4387
|
case 2:
|
|
4370
|
-
this.
|
|
4371
|
-
this.
|
|
4372
|
-
this.
|
|
4388
|
+
this.t1m_1 = this.u1m_1;
|
|
4389
|
+
this.r1m_1 = 1;
|
|
4390
|
+
this.p1m_1 = null;
|
|
4373
4391
|
this.j7_1 = 3;
|
|
4374
4392
|
continue $sm;
|
|
4375
4393
|
case 3:
|
|
4376
|
-
if (!(this.
|
|
4394
|
+
if (!(this.p1m_1 == null)) {
|
|
4377
4395
|
this.j7_1 = 10;
|
|
4378
4396
|
continue $sm;
|
|
4379
4397
|
}
|
|
4380
4398
|
|
|
4381
|
-
var tmp0_safe_receiver = this.
|
|
4399
|
+
var tmp0_safe_receiver = this.t1m_1;
|
|
4382
4400
|
if (tmp0_safe_receiver == null) {
|
|
4383
|
-
this.
|
|
4401
|
+
this.s1m_1 = null;
|
|
4384
4402
|
this.j7_1 = 5;
|
|
4385
4403
|
continue $sm;
|
|
4386
4404
|
} else {
|
|
4387
4405
|
this.j7_1 = 4;
|
|
4388
|
-
suspendResult = tmp0_safe_receiver.
|
|
4406
|
+
suspendResult = tmp0_safe_receiver.d1l(this);
|
|
4389
4407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4390
4408
|
return suspendResult;
|
|
4391
4409
|
}
|
|
@@ -4394,13 +4412,13 @@
|
|
|
4394
4412
|
|
|
4395
4413
|
case 4:
|
|
4396
4414
|
var tmp_0 = this;
|
|
4397
|
-
tmp_0.
|
|
4415
|
+
tmp_0.s1m_1 = Unit_instance;
|
|
4398
4416
|
this.j7_1 = 5;
|
|
4399
4417
|
continue $sm;
|
|
4400
4418
|
case 5:
|
|
4401
4419
|
this.k7_1 = 7;
|
|
4402
4420
|
this.j7_1 = 6;
|
|
4403
|
-
suspendResult = this.
|
|
4421
|
+
suspendResult = this.m1m_1(this.o1m_1, this);
|
|
4404
4422
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4405
4423
|
return suspendResult;
|
|
4406
4424
|
}
|
|
@@ -4408,8 +4426,8 @@
|
|
|
4408
4426
|
continue $sm;
|
|
4409
4427
|
case 6:
|
|
4410
4428
|
var tmp_1 = this;
|
|
4411
|
-
this.
|
|
4412
|
-
tmp_1.
|
|
4429
|
+
this.p1m_1 = suspendResult;
|
|
4430
|
+
tmp_1.q1m_1 = Unit_instance;
|
|
4413
4431
|
this.k7_1 = 11;
|
|
4414
4432
|
this.j7_1 = 9;
|
|
4415
4433
|
continue $sm;
|
|
@@ -4418,11 +4436,11 @@
|
|
|
4418
4436
|
var tmp_2 = this.m7_1;
|
|
4419
4437
|
if (tmp_2 instanceof TileFetchException) {
|
|
4420
4438
|
var e = this.m7_1;
|
|
4421
|
-
if (!(e.
|
|
4439
|
+
if (!(e.m1k_1 === 429) && !(e.m1k_1 === 503) || this.r1m_1 >= this.n1m_1)
|
|
4422
4440
|
throw e;
|
|
4423
4441
|
this.j7_1 = 8;
|
|
4424
|
-
var tmp1_elvis_lhs = e.
|
|
4425
|
-
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.
|
|
4442
|
+
var tmp1_elvis_lhs = e.n1k_1;
|
|
4443
|
+
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.r1m_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
|
|
4426
4444
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4427
4445
|
return suspendResult;
|
|
4428
4446
|
}
|
|
@@ -4433,9 +4451,9 @@
|
|
|
4433
4451
|
|
|
4434
4452
|
case 8:
|
|
4435
4453
|
var tmp_3 = this;
|
|
4436
|
-
var _unary__edvuaz = this.
|
|
4437
|
-
this.
|
|
4438
|
-
tmp_3.
|
|
4454
|
+
var _unary__edvuaz = this.r1m_1;
|
|
4455
|
+
this.r1m_1 = _unary__edvuaz + 1 | 0;
|
|
4456
|
+
tmp_3.q1m_1 = _unary__edvuaz;
|
|
4439
4457
|
this.j7_1 = 9;
|
|
4440
4458
|
continue $sm;
|
|
4441
4459
|
case 9:
|
|
@@ -4443,7 +4461,7 @@
|
|
|
4443
4461
|
this.j7_1 = 3;
|
|
4444
4462
|
continue $sm;
|
|
4445
4463
|
case 10:
|
|
4446
|
-
return this.
|
|
4464
|
+
return this.p1m_1;
|
|
4447
4465
|
case 11:
|
|
4448
4466
|
throw this.m7_1;
|
|
4449
4467
|
}
|
|
@@ -4458,15 +4476,15 @@
|
|
|
4458
4476
|
}
|
|
4459
4477
|
while (true);
|
|
4460
4478
|
};
|
|
4461
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
4462
|
-
var i = new pacedTileBytesFetcher$slambda(this.
|
|
4463
|
-
i.
|
|
4479
|
+
protoOf(pacedTileBytesFetcher$slambda).l1a = function (url, completion) {
|
|
4480
|
+
var i = new pacedTileBytesFetcher$slambda(this.k1m_1, this.l1m_1, this.m1m_1, this.n1m_1, completion);
|
|
4481
|
+
i.o1m_1 = url;
|
|
4464
4482
|
return i;
|
|
4465
4483
|
};
|
|
4466
4484
|
function pacedTileBytesFetcher$slambda_0($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
4467
4485
|
var i = new pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation);
|
|
4468
4486
|
return constructCallableReference(function (url, $completion) {
|
|
4469
|
-
return i.
|
|
4487
|
+
return i.b1m(url, $completion);
|
|
4470
4488
|
}, 1);
|
|
4471
4489
|
}
|
|
4472
4490
|
var properties_initialized_TileRequestPacing_kt_zdwibl;
|
|
@@ -4479,7 +4497,7 @@
|
|
|
4479
4497
|
function tileCoordinatesOf(url, config) {
|
|
4480
4498
|
var names = ArrayList_init_$Create$();
|
|
4481
4499
|
var pattern = StringBuilder_init_$Create$();
|
|
4482
|
-
var rest = config.
|
|
4500
|
+
var rest = config.c19_1;
|
|
4483
4501
|
var placeholder = Regex_init_$Create$('\\{(z|x|y|bbox)\\}');
|
|
4484
4502
|
$l$loop: while (true) {
|
|
4485
4503
|
var tmp0_elvis_lhs = placeholder.ta(rest);
|
|
@@ -4501,7 +4519,7 @@
|
|
|
4501
4519
|
var tmp1_elvis_lhs = Regex_init_$Create$(pattern.toString()).ua(url);
|
|
4502
4520
|
var tmp_0;
|
|
4503
4521
|
if (tmp1_elvis_lhs == null) {
|
|
4504
|
-
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.
|
|
4522
|
+
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.c19_1);
|
|
4505
4523
|
} else {
|
|
4506
4524
|
tmp_0 = tmp1_elvis_lhs;
|
|
4507
4525
|
}
|
|
@@ -4509,7 +4527,7 @@
|
|
|
4509
4527
|
var values = toMap(zip(names, drop(match.kb(), 1)));
|
|
4510
4528
|
var tmp2_safe_receiver = values.t1('z');
|
|
4511
4529
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toInt(tmp2_safe_receiver);
|
|
4512
|
-
var z = tmp3_elvis_lhs == null ? config.
|
|
4530
|
+
var z = tmp3_elvis_lhs == null ? config.a19_1 : tmp3_elvis_lhs;
|
|
4513
4531
|
var bbox = values.t1('bbox');
|
|
4514
4532
|
if (bbox == null)
|
|
4515
4533
|
return new TileCoordinates(toInt(getValue(values, 'x')), toInt(getValue(values, 'y')), z);
|
|
@@ -4657,7 +4675,7 @@
|
|
|
4657
4675
|
};
|
|
4658
4676
|
function Companion_3() {
|
|
4659
4677
|
Companion_instance_4 = this;
|
|
4660
|
-
this.
|
|
4678
|
+
this.v1m_1 = new Vector3D(0.0, 0.0, 0.0);
|
|
4661
4679
|
}
|
|
4662
4680
|
var Companion_instance_4;
|
|
4663
4681
|
function Companion_getInstance_4() {
|
|
@@ -4671,7 +4689,7 @@
|
|
|
4671
4689
|
this.y12_1 = y;
|
|
4672
4690
|
this.z12_1 = z;
|
|
4673
4691
|
}
|
|
4674
|
-
protoOf(Vector3D).
|
|
4692
|
+
protoOf(Vector3D).w1m = function (other) {
|
|
4675
4693
|
var tmp0 = this.x12_1 - other.x12_1;
|
|
4676
4694
|
// Inline function 'kotlin.math.hypot' call
|
|
4677
4695
|
var y = this.y12_1 - other.y12_1;
|
|
@@ -4680,28 +4698,28 @@
|
|
|
4680
4698
|
var y_0 = this.z12_1 - other.z12_1;
|
|
4681
4699
|
return hypot(tmp0_0, y_0);
|
|
4682
4700
|
};
|
|
4683
|
-
protoOf(Vector3D).
|
|
4701
|
+
protoOf(Vector3D).x1m = function (other) {
|
|
4684
4702
|
return new Vector3D(this.x12_1 - other.x12_1, this.y12_1 - other.y12_1, this.z12_1 - other.z12_1);
|
|
4685
4703
|
};
|
|
4686
|
-
protoOf(Vector3D).
|
|
4704
|
+
protoOf(Vector3D).y1m = function (other) {
|
|
4687
4705
|
return new Vector3D(this.x12_1 + other.x12_1, this.y12_1 + other.y12_1, this.z12_1 + other.z12_1);
|
|
4688
4706
|
};
|
|
4689
|
-
protoOf(Vector3D).
|
|
4707
|
+
protoOf(Vector3D).z1m = function (scalar) {
|
|
4690
4708
|
return new Vector3D(this.x12_1 * scalar, this.y12_1 * scalar, this.z12_1 * scalar);
|
|
4691
4709
|
};
|
|
4692
|
-
protoOf(Vector3D).
|
|
4710
|
+
protoOf(Vector3D).a1n = function (other) {
|
|
4693
4711
|
return this.x12_1 * other.x12_1 + this.y12_1 * other.y12_1 + this.z12_1 * other.z12_1;
|
|
4694
4712
|
};
|
|
4695
4713
|
protoOf(Vector3D).a13 = function (segmentStart, segmentEnd) {
|
|
4696
|
-
var segmentVector = segmentEnd.
|
|
4697
|
-
var segmentLengthSq = segmentVector.
|
|
4714
|
+
var segmentVector = segmentEnd.x1m(segmentStart);
|
|
4715
|
+
var segmentLengthSq = segmentVector.a1n(segmentVector);
|
|
4698
4716
|
if (segmentLengthSq === 0.0)
|
|
4699
|
-
return this.
|
|
4700
|
-
var pointVector = this.
|
|
4701
|
-
var projection = pointVector.
|
|
4717
|
+
return this.w1m(segmentStart);
|
|
4718
|
+
var pointVector = this.x1m(segmentStart);
|
|
4719
|
+
var projection = pointVector.a1n(segmentVector) / segmentLengthSq;
|
|
4702
4720
|
var clamped = coerceIn_0(projection, 0.0, 1.0);
|
|
4703
|
-
var closest = segmentStart.
|
|
4704
|
-
return this.
|
|
4721
|
+
var closest = segmentStart.y1m(segmentVector.z1m(clamped));
|
|
4722
|
+
return this.w1m(closest);
|
|
4705
4723
|
};
|
|
4706
4724
|
protoOf(Vector3D).toString = function () {
|
|
4707
4725
|
return 'Vector3D(x=' + this.x12_1 + ', y=' + this.y12_1 + ', z=' + this.z12_1 + ')';
|
|
@@ -4758,25 +4776,25 @@
|
|
|
4758
4776
|
tmp = null;
|
|
4759
4777
|
} else {
|
|
4760
4778
|
// Inline function 'kotlin.let' call
|
|
4761
|
-
tmp = Companion_getInstance_0().
|
|
4779
|
+
tmp = Companion_getInstance_0().h1b(tmp2_safe_receiver);
|
|
4762
4780
|
}
|
|
4763
4781
|
var tmp3_elvis_lhs = tmp;
|
|
4764
|
-
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().
|
|
4765
|
-
var base = source.
|
|
4782
|
+
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().c1b_1 : tmp3_elvis_lhs;
|
|
4783
|
+
var base = source.n1b(configDto == null ? null : configDto.zoomLevel);
|
|
4766
4784
|
var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
|
|
4767
|
-
var tmp_0 = tmp6_elvis_lhs == null ? base.
|
|
4785
|
+
var tmp_0 = tmp6_elvis_lhs == null ? base.b19_1 : tmp6_elvis_lhs;
|
|
4768
4786
|
var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
|
|
4769
|
-
var tmp_1 = tmp8_elvis_lhs == null ? base.
|
|
4787
|
+
var tmp_1 = tmp8_elvis_lhs == null ? base.c19_1 : tmp8_elvis_lhs;
|
|
4770
4788
|
var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
|
|
4771
|
-
var cfg = base.
|
|
4789
|
+
var cfg = base.y1a(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.d19_1 : tmp10_elvis_lhs);
|
|
4772
4790
|
var primary = ElevationProvider_init_$Create$(cfg);
|
|
4773
|
-
var tmp11_safe_receiver = source.
|
|
4791
|
+
var tmp11_safe_receiver = source.i1b();
|
|
4774
4792
|
var tmp_2;
|
|
4775
4793
|
if (tmp11_safe_receiver == null) {
|
|
4776
4794
|
tmp_2 = null;
|
|
4777
4795
|
} else {
|
|
4778
4796
|
// Inline function 'kotlin.let' call
|
|
4779
|
-
tmp_2 = primary.
|
|
4797
|
+
tmp_2 = primary.p19(provider(tmp11_safe_receiver));
|
|
4780
4798
|
}
|
|
4781
4799
|
var tmp12_elvis_lhs = tmp_2;
|
|
4782
4800
|
return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
|
|
@@ -4784,8 +4802,8 @@
|
|
|
4784
4802
|
function elevationAttribution(provider) {
|
|
4785
4803
|
_init_properties_ElevationJsApi_kt__1yyas4();
|
|
4786
4804
|
var o = {};
|
|
4787
|
-
o.text = provider.
|
|
4788
|
-
o.url = provider.
|
|
4805
|
+
o.text = provider.r19().z1a_1;
|
|
4806
|
+
o.url = provider.r19().a1b_1;
|
|
4789
4807
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4790
4808
|
return o;
|
|
4791
4809
|
}
|
|
@@ -4858,20 +4876,20 @@
|
|
|
4858
4876
|
return o;
|
|
4859
4877
|
}
|
|
4860
4878
|
function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4861
|
-
this.
|
|
4862
|
-
this.
|
|
4863
|
-
this.
|
|
4864
|
-
this.
|
|
4879
|
+
this.j1n_1 = $provider;
|
|
4880
|
+
this.k1n_1 = $latitude;
|
|
4881
|
+
this.l1n_1 = $longitude;
|
|
4882
|
+
this.m1n_1 = $interpolation;
|
|
4865
4883
|
CoroutineImpl.call(this, resultContinuation);
|
|
4866
4884
|
}
|
|
4867
|
-
protoOf(getElevation$slambda).
|
|
4868
|
-
var tmp = this.
|
|
4885
|
+
protoOf(getElevation$slambda).o1n = function ($this$promise, $completion) {
|
|
4886
|
+
var tmp = this.d1c($this$promise, $completion);
|
|
4869
4887
|
tmp.l7_1 = Unit_instance;
|
|
4870
4888
|
tmp.m7_1 = null;
|
|
4871
4889
|
return tmp.r7();
|
|
4872
4890
|
};
|
|
4873
4891
|
protoOf(getElevation$slambda).z7 = function (p1, $completion) {
|
|
4874
|
-
return this.
|
|
4892
|
+
return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4875
4893
|
};
|
|
4876
4894
|
protoOf(getElevation$slambda).r7 = function () {
|
|
4877
4895
|
var suspendResult = this.l7_1;
|
|
@@ -4882,7 +4900,7 @@
|
|
|
4882
4900
|
case 0:
|
|
4883
4901
|
this.k7_1 = 2;
|
|
4884
4902
|
this.j7_1 = 1;
|
|
4885
|
-
suspendResult = this.
|
|
4903
|
+
suspendResult = this.j1n_1.d18(this.k1n_1, this.l1n_1, this.m1n_1, this);
|
|
4886
4904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4887
4905
|
return suspendResult;
|
|
4888
4906
|
}
|
|
@@ -4904,31 +4922,31 @@
|
|
|
4904
4922
|
}
|
|
4905
4923
|
while (true);
|
|
4906
4924
|
};
|
|
4907
|
-
protoOf(getElevation$slambda).
|
|
4908
|
-
var i = new getElevation$slambda(this.
|
|
4909
|
-
i.
|
|
4925
|
+
protoOf(getElevation$slambda).d1c = function ($this$promise, completion) {
|
|
4926
|
+
var i = new getElevation$slambda(this.j1n_1, this.k1n_1, this.l1n_1, this.m1n_1, completion);
|
|
4927
|
+
i.n1n_1 = $this$promise;
|
|
4910
4928
|
return i;
|
|
4911
4929
|
};
|
|
4912
4930
|
function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4913
4931
|
var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
|
|
4914
4932
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
4915
|
-
return i.
|
|
4933
|
+
return i.o1n($this$promise, $completion);
|
|
4916
4934
|
}, 1);
|
|
4917
4935
|
}
|
|
4918
4936
|
function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
|
|
4919
|
-
this.
|
|
4920
|
-
this.
|
|
4921
|
-
this.
|
|
4937
|
+
this.x1n_1 = $path;
|
|
4938
|
+
this.y1n_1 = $provider;
|
|
4939
|
+
this.z1n_1 = $options;
|
|
4922
4940
|
CoroutineImpl.call(this, resultContinuation);
|
|
4923
4941
|
}
|
|
4924
|
-
protoOf(getElevationsAlong$slambda).
|
|
4925
|
-
var tmp = this.
|
|
4942
|
+
protoOf(getElevationsAlong$slambda).b1o = function ($this$promise, $completion) {
|
|
4943
|
+
var tmp = this.d1c($this$promise, $completion);
|
|
4926
4944
|
tmp.l7_1 = Unit_instance;
|
|
4927
4945
|
tmp.m7_1 = null;
|
|
4928
4946
|
return tmp.r7();
|
|
4929
4947
|
};
|
|
4930
4948
|
protoOf(getElevationsAlong$slambda).z7 = function (p1, $completion) {
|
|
4931
|
-
return this.
|
|
4949
|
+
return this.b1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4932
4950
|
};
|
|
4933
4951
|
protoOf(getElevationsAlong$slambda).r7 = function () {
|
|
4934
4952
|
var suspendResult = this.l7_1;
|
|
@@ -4938,7 +4956,7 @@
|
|
|
4938
4956
|
switch (tmp) {
|
|
4939
4957
|
case 0:
|
|
4940
4958
|
this.k7_1 = 2;
|
|
4941
|
-
var this_0 = this.
|
|
4959
|
+
var this_0 = this.x1n_1;
|
|
4942
4960
|
var destination = ArrayList_init_$Create$_0(this_0.length);
|
|
4943
4961
|
var inductionVariable = 0;
|
|
4944
4962
|
var last = this_0.length;
|
|
@@ -4950,21 +4968,21 @@
|
|
|
4950
4968
|
|
|
4951
4969
|
var coords = destination;
|
|
4952
4970
|
this.j7_1 = 1;
|
|
4953
|
-
var tmp0_safe_receiver = this.
|
|
4971
|
+
var tmp0_safe_receiver = this.z1n_1;
|
|
4954
4972
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
|
|
4955
4973
|
var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
|
|
4956
|
-
var tmp2_safe_receiver = this.
|
|
4974
|
+
var tmp2_safe_receiver = this.z1n_1;
|
|
4957
4975
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
|
|
4958
4976
|
var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
4959
|
-
var tmp4_safe_receiver = this.
|
|
4977
|
+
var tmp4_safe_receiver = this.z1n_1;
|
|
4960
4978
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
|
|
4961
4979
|
var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
|
|
4962
|
-
var tmp6_safe_receiver = this.
|
|
4980
|
+
var tmp6_safe_receiver = this.z1n_1;
|
|
4963
4981
|
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
|
|
4964
4982
|
var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
|
|
4965
|
-
var tmp8_safe_receiver = this.
|
|
4983
|
+
var tmp8_safe_receiver = this.z1n_1;
|
|
4966
4984
|
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
|
|
4967
|
-
suspendResult = this.
|
|
4985
|
+
suspendResult = this.y1n_1.w19(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
|
|
4968
4986
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4969
4987
|
return suspendResult;
|
|
4970
4988
|
}
|
|
@@ -4997,15 +5015,15 @@
|
|
|
4997
5015
|
}
|
|
4998
5016
|
while (true);
|
|
4999
5017
|
};
|
|
5000
|
-
protoOf(getElevationsAlong$slambda).
|
|
5001
|
-
var i = new getElevationsAlong$slambda(this.
|
|
5002
|
-
i.
|
|
5018
|
+
protoOf(getElevationsAlong$slambda).d1c = function ($this$promise, completion) {
|
|
5019
|
+
var i = new getElevationsAlong$slambda(this.x1n_1, this.y1n_1, this.z1n_1, completion);
|
|
5020
|
+
i.a1o_1 = $this$promise;
|
|
5003
5021
|
return i;
|
|
5004
5022
|
};
|
|
5005
5023
|
function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
|
|
5006
5024
|
var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
|
|
5007
5025
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
5008
|
-
return i.
|
|
5026
|
+
return i.b1o($this$promise, $completion);
|
|
5009
5027
|
}, 1);
|
|
5010
5028
|
}
|
|
5011
5029
|
var properties_initialized_ElevationJsApi_kt_8pvyh6;
|
|
@@ -5159,7 +5177,7 @@
|
|
|
5159
5177
|
}
|
|
5160
5178
|
function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
|
|
5161
5179
|
CoroutineImpl.call(this, resultContinuation);
|
|
5162
|
-
this.
|
|
5180
|
+
this.k1o_1 = url;
|
|
5163
5181
|
}
|
|
5164
5182
|
protoOf($fetchAndDecodeTileCOROUTINE$).r7 = function () {
|
|
5165
5183
|
var suspendResult = this.l7_1;
|
|
@@ -5171,14 +5189,14 @@
|
|
|
5171
5189
|
this.k7_1 = 4;
|
|
5172
5190
|
if (get_isNode()) {
|
|
5173
5191
|
this.j7_1 = 2;
|
|
5174
|
-
suspendResult = decodeNode(this.
|
|
5192
|
+
suspendResult = decodeNode(this.k1o_1, this);
|
|
5175
5193
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5176
5194
|
return suspendResult;
|
|
5177
5195
|
}
|
|
5178
5196
|
continue $sm;
|
|
5179
5197
|
} else {
|
|
5180
5198
|
this.j7_1 = 1;
|
|
5181
|
-
suspendResult = decodeBrowser(this.
|
|
5199
|
+
suspendResult = decodeBrowser(this.k1o_1, this);
|
|
5182
5200
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5183
5201
|
return suspendResult;
|
|
5184
5202
|
}
|
|
@@ -5186,15 +5204,15 @@
|
|
|
5186
5204
|
}
|
|
5187
5205
|
|
|
5188
5206
|
case 1:
|
|
5189
|
-
this.
|
|
5207
|
+
this.l1o_1 = suspendResult;
|
|
5190
5208
|
this.j7_1 = 3;
|
|
5191
5209
|
continue $sm;
|
|
5192
5210
|
case 2:
|
|
5193
|
-
this.
|
|
5211
|
+
this.l1o_1 = suspendResult;
|
|
5194
5212
|
this.j7_1 = 3;
|
|
5195
5213
|
continue $sm;
|
|
5196
5214
|
case 3:
|
|
5197
|
-
return this.
|
|
5215
|
+
return this.l1o_1;
|
|
5198
5216
|
case 4:
|
|
5199
5217
|
throw this.m7_1;
|
|
5200
5218
|
}
|
|
@@ -5211,8 +5229,8 @@
|
|
|
5211
5229
|
};
|
|
5212
5230
|
function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
5213
5231
|
CoroutineImpl.call(this, resultContinuation);
|
|
5214
|
-
this.
|
|
5215
|
-
this.
|
|
5232
|
+
this.u1o_1 = bytes;
|
|
5233
|
+
this.v1o_1 = sourceUrl;
|
|
5216
5234
|
}
|
|
5217
5235
|
protoOf($decodeTileBytesCOROUTINE$).r7 = function () {
|
|
5218
5236
|
var suspendResult = this.l7_1;
|
|
@@ -5224,14 +5242,14 @@
|
|
|
5224
5242
|
this.k7_1 = 4;
|
|
5225
5243
|
if (get_isNode()) {
|
|
5226
5244
|
this.j7_1 = 2;
|
|
5227
|
-
suspendResult = decodeBytesNode(this.
|
|
5245
|
+
suspendResult = decodeBytesNode(this.u1o_1, this.v1o_1, this);
|
|
5228
5246
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5229
5247
|
return suspendResult;
|
|
5230
5248
|
}
|
|
5231
5249
|
continue $sm;
|
|
5232
5250
|
} else {
|
|
5233
5251
|
this.j7_1 = 1;
|
|
5234
|
-
suspendResult = decodeBlob(blobOf(this.
|
|
5252
|
+
suspendResult = decodeBlob(blobOf(this.u1o_1), this.v1o_1, this);
|
|
5235
5253
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5236
5254
|
return suspendResult;
|
|
5237
5255
|
}
|
|
@@ -5239,15 +5257,15 @@
|
|
|
5239
5257
|
}
|
|
5240
5258
|
|
|
5241
5259
|
case 1:
|
|
5242
|
-
this.
|
|
5260
|
+
this.w1o_1 = suspendResult;
|
|
5243
5261
|
this.j7_1 = 3;
|
|
5244
5262
|
continue $sm;
|
|
5245
5263
|
case 2:
|
|
5246
|
-
this.
|
|
5264
|
+
this.w1o_1 = suspendResult;
|
|
5247
5265
|
this.j7_1 = 3;
|
|
5248
5266
|
continue $sm;
|
|
5249
5267
|
case 3:
|
|
5250
|
-
return this.
|
|
5268
|
+
return this.w1o_1;
|
|
5251
5269
|
case 4:
|
|
5252
5270
|
throw this.m7_1;
|
|
5253
5271
|
}
|
|
@@ -5264,7 +5282,7 @@
|
|
|
5264
5282
|
};
|
|
5265
5283
|
function $decodeNodeCOROUTINE$(url, resultContinuation) {
|
|
5266
5284
|
CoroutineImpl.call(this, resultContinuation);
|
|
5267
|
-
this.
|
|
5285
|
+
this.f1p_1 = url;
|
|
5268
5286
|
}
|
|
5269
5287
|
protoOf($decodeNodeCOROUTINE$).r7 = function () {
|
|
5270
5288
|
var suspendResult = this.l7_1;
|
|
@@ -5275,7 +5293,7 @@
|
|
|
5275
5293
|
case 0:
|
|
5276
5294
|
this.k7_1 = 4;
|
|
5277
5295
|
this.j7_1 = 1;
|
|
5278
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5296
|
+
suspendResult = await_0(fetchUrlNode(this.f1p_1), this);
|
|
5279
5297
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5280
5298
|
return suspendResult;
|
|
5281
5299
|
}
|
|
@@ -5283,7 +5301,7 @@
|
|
|
5283
5301
|
continue $sm;
|
|
5284
5302
|
case 1:
|
|
5285
5303
|
var res = suspendResult;
|
|
5286
|
-
requireOk(res, this.
|
|
5304
|
+
requireOk(res, this.f1p_1);
|
|
5287
5305
|
this.j7_1 = 2;
|
|
5288
5306
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
5289
5307
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5319,7 +5337,7 @@
|
|
|
5319
5337
|
};
|
|
5320
5338
|
function $decodeBrowserCOROUTINE$(url, resultContinuation) {
|
|
5321
5339
|
CoroutineImpl.call(this, resultContinuation);
|
|
5322
|
-
this.
|
|
5340
|
+
this.o1p_1 = url;
|
|
5323
5341
|
}
|
|
5324
5342
|
protoOf($decodeBrowserCOROUTINE$).r7 = function () {
|
|
5325
5343
|
var suspendResult = this.l7_1;
|
|
@@ -5330,7 +5348,7 @@
|
|
|
5330
5348
|
case 0:
|
|
5331
5349
|
this.k7_1 = 4;
|
|
5332
5350
|
this.j7_1 = 1;
|
|
5333
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5351
|
+
suspendResult = await_0(fetchUrlBrowser(this.o1p_1), this);
|
|
5334
5352
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5335
5353
|
return suspendResult;
|
|
5336
5354
|
}
|
|
@@ -5338,7 +5356,7 @@
|
|
|
5338
5356
|
continue $sm;
|
|
5339
5357
|
case 1:
|
|
5340
5358
|
var res = suspendResult;
|
|
5341
|
-
requireOk(res, this.
|
|
5359
|
+
requireOk(res, this.o1p_1);
|
|
5342
5360
|
this.j7_1 = 2;
|
|
5343
5361
|
suspendResult = await_0(res.blob(), this);
|
|
5344
5362
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5349,7 +5367,7 @@
|
|
|
5349
5367
|
case 2:
|
|
5350
5368
|
var ARGUMENT = suspendResult;
|
|
5351
5369
|
this.j7_1 = 3;
|
|
5352
|
-
suspendResult = decodeBlob(ARGUMENT, this.
|
|
5370
|
+
suspendResult = decodeBlob(ARGUMENT, this.o1p_1, this);
|
|
5353
5371
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5354
5372
|
return suspendResult;
|
|
5355
5373
|
}
|
|
@@ -5373,8 +5391,8 @@
|
|
|
5373
5391
|
};
|
|
5374
5392
|
function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
5375
5393
|
CoroutineImpl.call(this, resultContinuation);
|
|
5376
|
-
this.
|
|
5377
|
-
this.
|
|
5394
|
+
this.x1p_1 = bytes;
|
|
5395
|
+
this.y1p_1 = sourceUrl;
|
|
5378
5396
|
}
|
|
5379
5397
|
protoOf($decodeBytesNodeCOROUTINE$).r7 = function () {
|
|
5380
5398
|
var suspendResult = this.l7_1;
|
|
@@ -5384,7 +5402,7 @@
|
|
|
5384
5402
|
switch (tmp) {
|
|
5385
5403
|
case 0:
|
|
5386
5404
|
this.k7_1 = 4;
|
|
5387
|
-
var view = this.
|
|
5405
|
+
var view = this.x1p_1;
|
|
5388
5406
|
var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
|
|
5389
5407
|
this.k7_1 = 2;
|
|
5390
5408
|
this.j7_1 = 1;
|
|
@@ -5395,7 +5413,7 @@
|
|
|
5395
5413
|
|
|
5396
5414
|
continue $sm;
|
|
5397
5415
|
case 1:
|
|
5398
|
-
this.
|
|
5416
|
+
this.z1p_1 = suspendResult;
|
|
5399
5417
|
this.k7_1 = 4;
|
|
5400
5418
|
this.j7_1 = 3;
|
|
5401
5419
|
continue $sm;
|
|
@@ -5405,7 +5423,7 @@
|
|
|
5405
5423
|
if (tmp_0 instanceof Error) {
|
|
5406
5424
|
var e = this.m7_1;
|
|
5407
5425
|
var tmp_1 = this;
|
|
5408
|
-
var this_0 = this.
|
|
5426
|
+
var this_0 = this.y1p_1;
|
|
5409
5427
|
var tmp_2;
|
|
5410
5428
|
if (charSequenceLength(this_0) === 0) {
|
|
5411
5429
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -5420,7 +5438,7 @@
|
|
|
5420
5438
|
|
|
5421
5439
|
case 3:
|
|
5422
5440
|
this.k7_1 = 4;
|
|
5423
|
-
var image = this.
|
|
5441
|
+
var image = this.z1p_1;
|
|
5424
5442
|
return rawTileFromJsquash(image);
|
|
5425
5443
|
case 4:
|
|
5426
5444
|
throw this.m7_1;
|
|
@@ -5438,8 +5456,8 @@
|
|
|
5438
5456
|
};
|
|
5439
5457
|
function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
|
|
5440
5458
|
CoroutineImpl.call(this, resultContinuation);
|
|
5441
|
-
this.
|
|
5442
|
-
this.
|
|
5459
|
+
this.i1q_1 = blob;
|
|
5460
|
+
this.j1q_1 = sourceUrl;
|
|
5443
5461
|
}
|
|
5444
5462
|
protoOf($decodeBlobCOROUTINE$).r7 = function () {
|
|
5445
5463
|
var suspendResult = this.l7_1;
|
|
@@ -5451,14 +5469,14 @@
|
|
|
5451
5469
|
this.k7_1 = 3;
|
|
5452
5470
|
this.k7_1 = 2;
|
|
5453
5471
|
this.j7_1 = 1;
|
|
5454
|
-
suspendResult = await_0(window.createImageBitmap(this.
|
|
5472
|
+
suspendResult = await_0(window.createImageBitmap(this.i1q_1), this);
|
|
5455
5473
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5456
5474
|
return suspendResult;
|
|
5457
5475
|
}
|
|
5458
5476
|
|
|
5459
5477
|
continue $sm;
|
|
5460
5478
|
case 1:
|
|
5461
|
-
this.
|
|
5479
|
+
this.k1q_1 = suspendResult;
|
|
5462
5480
|
this.k7_1 = 3;
|
|
5463
5481
|
this.j7_1 = 4;
|
|
5464
5482
|
continue $sm;
|
|
@@ -5468,7 +5486,7 @@
|
|
|
5468
5486
|
if (tmp_0 instanceof Error) {
|
|
5469
5487
|
var e = this.m7_1;
|
|
5470
5488
|
var tmp_1 = this;
|
|
5471
|
-
var this_0 = this.
|
|
5489
|
+
var this_0 = this.j1q_1;
|
|
5472
5490
|
var tmp_2;
|
|
5473
5491
|
if (charSequenceLength(this_0) === 0) {
|
|
5474
5492
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -5485,7 +5503,7 @@
|
|
|
5485
5503
|
throw this.m7_1;
|
|
5486
5504
|
case 4:
|
|
5487
5505
|
this.k7_1 = 3;
|
|
5488
|
-
var bitmap = this.
|
|
5506
|
+
var bitmap = this.k1q_1;
|
|
5489
5507
|
l$ret$3: do {
|
|
5490
5508
|
var tmp$ret$0;
|
|
5491
5509
|
l$ret$1: do {
|
|
@@ -5533,7 +5551,7 @@
|
|
|
5533
5551
|
};
|
|
5534
5552
|
function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
|
|
5535
5553
|
CoroutineImpl.call(this, resultContinuation);
|
|
5536
|
-
this.
|
|
5554
|
+
this.t1q_1 = buffer;
|
|
5537
5555
|
}
|
|
5538
5556
|
protoOf($decodeWebpNodeCOROUTINE$).r7 = function () {
|
|
5539
5557
|
var suspendResult = this.l7_1;
|
|
@@ -5552,7 +5570,7 @@
|
|
|
5552
5570
|
continue $sm;
|
|
5553
5571
|
case 1:
|
|
5554
5572
|
var decode = suspendResult;
|
|
5555
|
-
var resultPromise = decode(this.
|
|
5573
|
+
var resultPromise = decode(this.t1q_1);
|
|
5556
5574
|
this.j7_1 = 2;
|
|
5557
5575
|
suspendResult = await_0(resultPromise, this);
|
|
5558
5576
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5578,7 +5596,7 @@
|
|
|
5578
5596
|
};
|
|
5579
5597
|
function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
|
|
5580
5598
|
CoroutineImpl.call(this, resultContinuation);
|
|
5581
|
-
this.
|
|
5599
|
+
this.c1r_1 = url;
|
|
5582
5600
|
}
|
|
5583
5601
|
protoOf($fetchTileBytesCOROUTINE$).r7 = function () {
|
|
5584
5602
|
var suspendResult = this.l7_1;
|
|
@@ -5590,14 +5608,14 @@
|
|
|
5590
5608
|
this.k7_1 = 5;
|
|
5591
5609
|
if (get_isNode()) {
|
|
5592
5610
|
this.j7_1 = 2;
|
|
5593
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5611
|
+
suspendResult = await_0(fetchUrlNode(this.c1r_1), this);
|
|
5594
5612
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5595
5613
|
return suspendResult;
|
|
5596
5614
|
}
|
|
5597
5615
|
continue $sm;
|
|
5598
5616
|
} else {
|
|
5599
5617
|
this.j7_1 = 1;
|
|
5600
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5618
|
+
suspendResult = await_0(fetchUrlBrowser(this.c1r_1), this);
|
|
5601
5619
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5602
5620
|
return suspendResult;
|
|
5603
5621
|
}
|
|
@@ -5605,16 +5623,16 @@
|
|
|
5605
5623
|
}
|
|
5606
5624
|
|
|
5607
5625
|
case 1:
|
|
5608
|
-
this.
|
|
5626
|
+
this.d1r_1 = suspendResult;
|
|
5609
5627
|
this.j7_1 = 3;
|
|
5610
5628
|
continue $sm;
|
|
5611
5629
|
case 2:
|
|
5612
|
-
this.
|
|
5630
|
+
this.d1r_1 = suspendResult;
|
|
5613
5631
|
this.j7_1 = 3;
|
|
5614
5632
|
continue $sm;
|
|
5615
5633
|
case 3:
|
|
5616
|
-
var res = this.
|
|
5617
|
-
requireOk(res, this.
|
|
5634
|
+
var res = this.d1r_1;
|
|
5635
|
+
requireOk(res, this.c1r_1);
|
|
5618
5636
|
this.j7_1 = 4;
|
|
5619
5637
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
5620
5638
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5651,13 +5669,13 @@
|
|
|
5651
5669
|
function fetchAndDecodeTile$ref_1() {
|
|
5652
5670
|
var i = new fetchAndDecodeTile$ref();
|
|
5653
5671
|
return constructCallableReference(function (p0, $completion) {
|
|
5654
|
-
return i.
|
|
5672
|
+
return i.a1a(p0, $completion);
|
|
5655
5673
|
}, 1, 1, 2, 'fetchAndDecodeTile');
|
|
5656
5674
|
}
|
|
5657
5675
|
function fetchTileBytes$ref_0() {
|
|
5658
5676
|
var i = new fetchTileBytes$ref();
|
|
5659
5677
|
return constructCallableReference(function (p0, $completion) {
|
|
5660
|
-
return i.
|
|
5678
|
+
return i.b1m(p0, $completion);
|
|
5661
5679
|
}, 1, 1, 5, 'fetchTileBytes');
|
|
5662
5680
|
}
|
|
5663
5681
|
//region block: init
|