@baidumap/mapv-three 1.4.0 → 1.4.1
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/README.md +3 -3
- package/dist/assets/textures/weather/thunder.jpg +0 -0
- package/dist/assets/wasm/lanelet.wasm +0 -0
- package/dist/assets/workers/{BaiduVectorParser.worker-f7fcc351.js → BaiduVectorParser.worker-486240e8.js} +82 -85
- package/dist/assets/workers/{CesiumTerrainParser.worker-fcae0cc9.js → CesiumTerrainParser.worker-ba35b937.js} +108 -113
- package/dist/assets/workers/{MVTParser.worker-0dd27c39.js → MVTParser.worker-bb80e3b4.js} +9 -14
- package/dist/devtool/panel.js +9 -0
- package/dist/mapvthree.module.js +40003 -38856
- package/dist/mapvthree.umd.js +5 -5
- package/dist/types/Internal.d.ts +1 -0
- package/dist/types/adapters/bmap/Icon.d.ts +18 -0
- package/dist/types/adapters/bmap/InfoWindow.d.ts +124 -0
- package/dist/types/adapters/bmap/Label.d.ts +58 -0
- package/dist/types/adapters/bmap/Map.d.ts +124 -0
- package/dist/types/adapters/bmap/Marker.d.ts +28 -0
- package/dist/types/adapters/bmap/Overlay.d.ts +18 -0
- package/dist/types/adapters/bmap/Pixel.d.ts +1 -0
- package/dist/types/adapters/bmap/Point.d.ts +8 -0
- package/dist/types/adapters/bmap/Size.d.ts +8 -0
- package/dist/types/adapters/bmap/index.d.ts +8 -0
- package/dist/types/adapters/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.open.d.ts +1 -0
- package/dist/types/threejs/geometries/text/ScreenTextGeometry.d.ts +15 -0
- package/dist/types/threejs/materials/effects/LightningBillboardMaterial.d.ts +3 -0
- package/dist/types/threejs/materials/text/ScreenTextMaterial.d.ts +25 -0
- package/dist/types/threejs/objects/line/FatLineInternal.d.ts +4 -0
- package/dist/types/threejs/objects/point/Label.d.ts +10 -1
- package/dist/types/threejs/objects/text/ScreenText.d.ts +273 -0
- package/dist/types/threejs/objects/text/font-atlas-manager.d.ts +10 -2
- package/dist/types/threemap/Engine.d.ts +17 -4
- package/dist/types/threemap/engine/Controller.d.ts +141 -0
- package/dist/types/threemap/engine/Map.d.ts +14 -2
- package/dist/types/threemap/engine/event/EntityProxy.d.ts +1 -0
- package/dist/types/threemap/engine/map/BlankMap.d.ts +1 -1
- package/dist/types/threemap/engine/map/BlankMap3DControl.d.ts +4 -1
- package/dist/types/{threejs → threemap/engine/map}/controls/DraggingMovementAggregator.d.ts +3 -0
- package/dist/types/{threejs → threemap/engine/map}/controls/MapControl3D.d.ts +19 -2
- package/dist/types/{threejs → threemap/engine/map}/controls/PointerMovementAggregator.d.ts +3 -0
- package/dist/types/threemap/engine/map/earth/Earth.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/Collision.d.ts +5 -0
- package/dist/types/threemap/engine/rendering/Label.d.ts +13 -0
- package/dist/types/threemap/mapView/parser/baidulane/constants/index.d.ts +2 -2
- package/dist/types/threemap/mapView/parser/baidulane/core/MaterialFactory.d.ts +1 -1
- package/dist/types/threemap/mapView/parser/baidulane/generators/LabelLine.d.ts +11 -4
- package/dist/types/threemap/mapView/parser/baidulane/utils/coordinate.d.ts +1 -1
- package/dist/types/threemap/mapView/surface/strategy/FastTileLoaderStrategy.d.ts +16 -0
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduVectorTileProvider.d.ts +3 -0
- package/dist/types/threemap/natural/DynamicWeather.d.ts +2 -0
- package/dist/types/threemap/natural/Thunderstorm.d.ts +23 -8
- package/dist/types/threemap/overlay/Marker.d.ts +3 -0
- package/dist/types/threemap/services/autoComplete/AutoComplete.d.ts +1 -1
- package/dist/types/threemap/services/boundary/Boundary.d.ts +3 -3
- package/dist/types/threemap/services/common/baiduRequest.d.ts +1 -1
- package/dist/types/threemap/services/configs.d.ts +2 -2
- package/dist/types/threemap/services/district/DistrictLayer.d.ts +3 -3
- package/dist/types/threemap/services/geocoder/Geocoder.d.ts +5 -5
- package/dist/types/threemap/services/localSearch/LocalSearch.d.ts +5 -5
- package/dist/types/threemap/services/routeSearch/DrivingRoute.d.ts +2 -2
- package/dist/types/threemap/services/routeSearch/TransitRoute.d.ts +3 -3
- package/package.json +1 -1
- /package/dist/types/{threejs → threemap/engine/map}/controls/MapControl.d.ts +0 -0
|
@@ -1195,7 +1195,7 @@ class p {
|
|
|
1195
1195
|
return false;
|
|
1196
1196
|
this.getCenter(A), G.subVectors(this.max, A), w.subVectors(t2.a, A), S.subVectors(t2.b, A), E.subVectors(t2.c, A), b.subVectors(S, w), P.subVectors(E, S), v.subVectors(w, E);
|
|
1197
1197
|
let s2 = [0, -b.z, b.y, 0, -P.z, P.y, 0, -v.z, v.y, b.z, 0, -b.x, P.z, 0, -P.x, v.z, 0, -v.x, -b.y, b.x, 0, -P.y, P.x, 0, -v.y, v.x, 0];
|
|
1198
|
-
return !!I(s2, w, S, E, G) && (s2 = [1, 0, 0, 0, 1, 0, 0, 0, 1], !!I(s2, w, S, E, G) && (
|
|
1198
|
+
return !!I(s2, w, S, E, G) && (s2 = [1, 0, 0, 0, 1, 0, 0, 0, 1], !!I(s2, w, S, E, G) && (C.crossVectors(b, P), s2 = [C.x, C.y, C.z], I(s2, w, S, E, G)));
|
|
1199
1199
|
}
|
|
1200
1200
|
clampPoint(t2, s2) {
|
|
1201
1201
|
return s2.copy(t2).clamp(this.min, this.max);
|
|
@@ -1228,11 +1228,11 @@ class p {
|
|
|
1228
1228
|
return this.min.fromArray(t2.min), this.max.fromArray(t2.max), this;
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
|
-
const g = [new u(), new u(), new u(), new u(), new u(), new u(), new u(), new u()], M = new u(), x = new p(), w = new u(), S = new u(), E = new u(), b = new u(), P = new u(), v = new u(), A = new u(), G = new u(),
|
|
1231
|
+
const g = [new u(), new u(), new u(), new u(), new u(), new u(), new u(), new u()], M = new u(), x = new p(), w = new u(), S = new u(), E = new u(), b = new u(), P = new u(), v = new u(), A = new u(), G = new u(), C = new u(), N = new u();
|
|
1232
1232
|
function I(t2, s2, i2, e2, a2) {
|
|
1233
1233
|
for (let n2 = 0, r2 = t2.length - 3; n2 <= r2; n2 += 3) {
|
|
1234
|
-
|
|
1235
|
-
const r3 = a2.x * Math.abs(
|
|
1234
|
+
N.fromArray(t2, n2);
|
|
1235
|
+
const r3 = a2.x * Math.abs(N.x) + a2.y * Math.abs(N.y) + a2.z * Math.abs(N.z), h2 = s2.dot(N), o2 = i2.dot(N), c2 = e2.dot(N);
|
|
1236
1236
|
if (Math.max(-Math.max(h2, o2, c2), Math.min(h2, o2, c2)) > r3)
|
|
1237
1237
|
return false;
|
|
1238
1238
|
}
|
|
@@ -1433,8 +1433,8 @@ class D {
|
|
|
1433
1433
|
return this.multiplyMatrices(t2, this);
|
|
1434
1434
|
}
|
|
1435
1435
|
multiplyMatrices(t2, s2) {
|
|
1436
|
-
const i2 = t2.elements, e2 = s2.elements, a2 = this.elements, n2 = i2[0], r2 = i2[4], h2 = i2[8], o2 = i2[12], c2 = i2[1], l2 = i2[5], u2 = i2[9], d2 = i2[13], m2 = i2[2], _2 = i2[6], f2 = i2[10], y2 = i2[14], p2 = i2[3], g2 = i2[7], M2 = i2[11], x2 = i2[15], w2 = e2[0], S2 = e2[4], E2 = e2[8], b2 = e2[12], P2 = e2[1], v2 = e2[5], A2 = e2[9], G2 = e2[13],
|
|
1437
|
-
return a2[0] = n2 * w2 + r2 * P2 + h2 *
|
|
1436
|
+
const i2 = t2.elements, e2 = s2.elements, a2 = this.elements, n2 = i2[0], r2 = i2[4], h2 = i2[8], o2 = i2[12], c2 = i2[1], l2 = i2[5], u2 = i2[9], d2 = i2[13], m2 = i2[2], _2 = i2[6], f2 = i2[10], y2 = i2[14], p2 = i2[3], g2 = i2[7], M2 = i2[11], x2 = i2[15], w2 = e2[0], S2 = e2[4], E2 = e2[8], b2 = e2[12], P2 = e2[1], v2 = e2[5], A2 = e2[9], G2 = e2[13], C2 = e2[2], N2 = e2[6], I2 = e2[10], z2 = e2[14], T2 = e2[3], O2 = e2[7], R2 = e2[11], q2 = e2[15];
|
|
1437
|
+
return a2[0] = n2 * w2 + r2 * P2 + h2 * C2 + o2 * T2, a2[4] = n2 * S2 + r2 * v2 + h2 * N2 + o2 * O2, a2[8] = n2 * E2 + r2 * A2 + h2 * I2 + o2 * R2, a2[12] = n2 * b2 + r2 * G2 + h2 * z2 + o2 * q2, a2[1] = c2 * w2 + l2 * P2 + u2 * C2 + d2 * T2, a2[5] = c2 * S2 + l2 * v2 + u2 * N2 + d2 * O2, a2[9] = c2 * E2 + l2 * A2 + u2 * I2 + d2 * R2, a2[13] = c2 * b2 + l2 * G2 + u2 * z2 + d2 * q2, a2[2] = m2 * w2 + _2 * P2 + f2 * C2 + y2 * T2, a2[6] = m2 * S2 + _2 * v2 + f2 * N2 + y2 * O2, a2[10] = m2 * E2 + _2 * A2 + f2 * I2 + y2 * R2, a2[14] = m2 * b2 + _2 * G2 + f2 * z2 + y2 * q2, a2[3] = p2 * w2 + g2 * P2 + M2 * C2 + x2 * T2, a2[7] = p2 * S2 + g2 * v2 + M2 * N2 + x2 * O2, a2[11] = p2 * E2 + g2 * A2 + M2 * I2 + x2 * R2, a2[15] = p2 * b2 + g2 * G2 + M2 * z2 + x2 * q2, this;
|
|
1438
1438
|
}
|
|
1439
1439
|
multiplyScalar(t2) {
|
|
1440
1440
|
const s2 = this.elements;
|
|
@@ -1952,7 +1952,7 @@ var pt = Object.freeze(yt);
|
|
|
1952
1952
|
const gt = "EPSG:4326", Mt = "EPSG:3857", xt = "EPSG:4978", wt = "BD:MERCATOR", St = "SCREEN_PIXEL", Et = new p(new u(-180, -90, -100), new u(180, 90, 100));
|
|
1953
1953
|
Et.isDefault = true, Object.freeze(Et), Object.freeze(Et.min), Object.freeze(Et.max);
|
|
1954
1954
|
const bt = new u(), Pt = new u(), vt = 1, At = 2, Gt = 3;
|
|
1955
|
-
class
|
|
1955
|
+
class Ct {
|
|
1956
1956
|
constructor() {
|
|
1957
1957
|
__publicField(this, "isProjection", true);
|
|
1958
1958
|
__publicField(this, "isGeo", false);
|
|
@@ -2000,7 +2000,7 @@ class Nt {
|
|
|
2000
2000
|
return this._projectedBoundingBox;
|
|
2001
2001
|
}
|
|
2002
2002
|
}
|
|
2003
|
-
const
|
|
2003
|
+
const Nt = (t2, s2, i2, e2, a2 = false) => {
|
|
2004
2004
|
if (Math.abs(t2) < e2)
|
|
2005
2005
|
return s2;
|
|
2006
2006
|
const n2 = t2 > 0 ? 1 : -1;
|
|
@@ -2016,7 +2016,7 @@ const Ct = (t2, s2, i2, e2, a2 = false) => {
|
|
|
2016
2016
|
return n2 * (e2 * (1 + (Math.abs(t2) - i2) / i2));
|
|
2017
2017
|
}, zt = Math.PI / 180, Tt = 6378137, Ot = 20037508, Rt = 180 / Math.PI, qt = 85.0511287798;
|
|
2018
2018
|
const Lt = [0, 0], Bt = [0, 0];
|
|
2019
|
-
class kt extends
|
|
2019
|
+
class kt extends Ct {
|
|
2020
2020
|
constructor() {
|
|
2021
2021
|
super(...arguments);
|
|
2022
2022
|
__publicField(this, "name", Mt);
|
|
@@ -2034,7 +2034,7 @@ class kt extends Nt {
|
|
|
2034
2034
|
unprojectCoordinate(t2, s2, i2 = false) {
|
|
2035
2035
|
const e2 = function(t3, s3, i3 = false) {
|
|
2036
2036
|
const e3 = s3 || [0, 0];
|
|
2037
|
-
return e3[0] = t3[0] * Rt / Tt, e3[1] = (0.5 * Math.PI - 2 * Math.atan(Math.exp(-t3[1] / Tt))) * Rt, i3 && (e3[0] =
|
|
2037
|
+
return e3[0] = t3[0] * Rt / Tt, e3[1] = (0.5 * Math.PI - 2 * Math.atan(Math.exp(-t3[1] / Tt))) * Rt, i3 && (e3[0] = Nt(t3[0], e3[0], 180, Ot), e3[1] = Nt(t3[1], e3[1], qt, Ot)), e3;
|
|
2038
2038
|
}([t2.x, t2.y], Lt, i2);
|
|
2039
2039
|
return s2 || (s2 = new u()), s2.x = e2[0], s2.y = e2[1], s2.z = t2.z, s2;
|
|
2040
2040
|
}
|
|
@@ -2046,9 +2046,9 @@ function jt(t2, s2, i2, e2, a2) {
|
|
|
2046
2046
|
return a2 || (a2 = new u()), isFinite(y2) ? a2.copy(p2) : void 0;
|
|
2047
2047
|
const g2 = i2.x, M2 = i2.y, x2 = i2.z, w2 = Ut;
|
|
2048
2048
|
w2.x = p2.x * g2 * 2, w2.y = p2.y * M2 * 2, w2.z = p2.z * x2 * 2;
|
|
2049
|
-
let S2, E2, b2, P2, v2, A2, G2,
|
|
2049
|
+
let S2, E2, b2, P2, v2, A2, G2, C2, N2, I2, z2, T2 = (1 - y2) * t2.length() / (0.5 * w2.length()), O2 = 0;
|
|
2050
2050
|
do {
|
|
2051
|
-
T2 -= O2, b2 = 1 / (1 + T2 * g2), P2 = 1 / (1 + T2 * M2), v2 = 1 / (1 + T2 * x2), A2 = b2 * b2, G2 = P2 * P2,
|
|
2051
|
+
T2 -= O2, b2 = 1 / (1 + T2 * g2), P2 = 1 / (1 + T2 * M2), v2 = 1 / (1 + T2 * x2), A2 = b2 * b2, G2 = P2 * P2, C2 = v2 * v2, N2 = A2 * b2, I2 = G2 * P2, z2 = C2 * v2, S2 = d2 * A2 + m2 * G2 + _2 * C2 - 1, E2 = d2 * N2 * g2 + m2 * I2 * M2 + _2 * z2 * x2, O2 = S2 / (-2 * E2);
|
|
2052
2052
|
} while (Math.abs(S2) > 1e-12);
|
|
2053
2053
|
return a2 ? (a2.x = n2 * b2, a2.y = r2 * P2, a2.z = h2 * v2, a2) : new u(n2 * b2, r2 * P2, h2 * v2);
|
|
2054
2054
|
}
|
|
@@ -2391,8 +2391,8 @@ As.computeDiscriminant = function(t2, s2, i2) {
|
|
|
2391
2391
|
var o2 = -0.5 * Gs(s2, st.sign(s2) * Math.sqrt(h2), st.EPSILON14);
|
|
2392
2392
|
return s2 > 0 ? [o2 / t2, i2 / o2] : [i2 / o2, o2 / t2];
|
|
2393
2393
|
};
|
|
2394
|
-
var
|
|
2395
|
-
function
|
|
2394
|
+
var Cs = {};
|
|
2395
|
+
function Ns(t2, s2, i2, e2) {
|
|
2396
2396
|
var a2, n2, r2 = t2, h2 = s2 / 3, o2 = i2 / 3, c2 = e2, l2 = r2 * o2, u2 = h2 * c2, d2 = h2 * h2, m2 = o2 * o2, _2 = r2 * o2 - d2, f2 = r2 * c2 - h2 * o2, y2 = h2 * c2 - m2, p2 = 4 * _2 * y2 - f2 * f2;
|
|
2397
2397
|
if (p2 < 0) {
|
|
2398
2398
|
var g2, M2, x2;
|
|
@@ -2400,16 +2400,16 @@ function Cs(t2, s2, i2, e2) {
|
|
|
2400
2400
|
var w2 = -(x2 < 0 ? -1 : 1) * Math.abs(g2) * Math.sqrt(-p2), S2 = (n2 = -x2 + w2) / 2, E2 = S2 < 0 ? -Math.pow(-S2, 1 / 3) : Math.pow(S2, 1 / 3), b2 = n2 === w2 ? -E2 : -M2 / E2;
|
|
2401
2401
|
return a2 = M2 <= 0 ? E2 + b2 : -x2 / (E2 * E2 + b2 * b2 + M2), d2 * u2 >= l2 * m2 ? [(a2 - h2) / r2] : [-c2 / (a2 + o2)];
|
|
2402
2402
|
}
|
|
2403
|
-
var P2 = _2, v2 = -2 * h2 * _2 + r2 * f2, A2 = y2, G2 = -c2 * f2 + 2 * o2 * y2,
|
|
2403
|
+
var P2 = _2, v2 = -2 * h2 * _2 + r2 * f2, A2 = y2, G2 = -c2 * f2 + 2 * o2 * y2, C2 = Math.sqrt(p2), N2 = Math.sqrt(3) / 2, I2 = Math.abs(Math.atan2(r2 * C2, -v2) / 3);
|
|
2404
2404
|
a2 = 2 * Math.sqrt(-P2);
|
|
2405
2405
|
var z2 = Math.cos(I2);
|
|
2406
2406
|
n2 = a2 * z2;
|
|
2407
|
-
var T2 = a2 * (-z2 / 2 -
|
|
2408
|
-
I2 = Math.abs(Math.atan2(c2 *
|
|
2409
|
-
var L2 = -c2, B2 = (n2 = (a2 = 2 * Math.sqrt(-A2)) * (z2 = Math.cos(I2))) + (T2 = a2 * (-z2 / 2 -
|
|
2407
|
+
var T2 = a2 * (-z2 / 2 - N2 * Math.sin(I2)), O2 = n2 + T2 > 2 * h2 ? n2 - h2 : T2 - h2, R2 = r2, q2 = O2 / R2;
|
|
2408
|
+
I2 = Math.abs(Math.atan2(c2 * C2, -G2) / 3);
|
|
2409
|
+
var L2 = -c2, B2 = (n2 = (a2 = 2 * Math.sqrt(-A2)) * (z2 = Math.cos(I2))) + (T2 = a2 * (-z2 / 2 - N2 * Math.sin(I2))) < 2 * o2 ? n2 + o2 : T2 + o2, k2 = L2 / B2, D2 = -O2 * B2 - R2 * L2, U2 = (o2 * D2 - h2 * (O2 * L2)) / (-h2 * D2 + o2 * (R2 * B2));
|
|
2410
2410
|
return q2 <= U2 ? q2 <= k2 ? U2 <= k2 ? [q2, U2, k2] : [q2, k2, U2] : [k2, q2, U2] : q2 <= k2 ? [U2, q2, k2] : U2 <= k2 ? [U2, k2, q2] : [k2, U2, q2];
|
|
2411
2411
|
}
|
|
2412
|
-
|
|
2412
|
+
Cs.computeDiscriminant = function(t2, s2, i2, e2) {
|
|
2413
2413
|
if ("number" != typeof t2)
|
|
2414
2414
|
throw new tt("a is a required number.");
|
|
2415
2415
|
if ("number" != typeof s2)
|
|
@@ -2420,7 +2420,7 @@ Ns.computeDiscriminant = function(t2, s2, i2, e2) {
|
|
|
2420
2420
|
throw new tt("d is a required number.");
|
|
2421
2421
|
var a2 = s2 * s2, n2 = i2 * i2;
|
|
2422
2422
|
return 18 * t2 * s2 * i2 * e2 + a2 * n2 - 27 * (t2 * t2) * (e2 * e2) - 4 * (t2 * n2 * i2 + a2 * s2 * e2);
|
|
2423
|
-
},
|
|
2423
|
+
}, Cs.computeRealRoots = function(t2, s2, i2, e2) {
|
|
2424
2424
|
if ("number" != typeof t2)
|
|
2425
2425
|
throw new tt("a is a required number.");
|
|
2426
2426
|
if ("number" != typeof s2)
|
|
@@ -2439,13 +2439,13 @@ Ns.computeDiscriminant = function(t2, s2, i2, e2) {
|
|
|
2439
2439
|
var r2 = (n2 = -e2 / t2) < 0 ? -Math.pow(-n2, 1 / 3) : Math.pow(n2, 1 / 3);
|
|
2440
2440
|
return [r2, r2, r2];
|
|
2441
2441
|
}
|
|
2442
|
-
return 0 === e2 ? 0 === (a2 = As.computeRealRoots(t2, 0, i2)).Length ? [0] : [a2[0], 0, a2[1]] :
|
|
2442
|
+
return 0 === e2 ? 0 === (a2 = As.computeRealRoots(t2, 0, i2)).Length ? [0] : [a2[0], 0, a2[1]] : Ns(t2, 0, i2, e2);
|
|
2443
2443
|
}
|
|
2444
|
-
return 0 === i2 ? 0 === e2 ? (n2 = -s2 / t2) < 0 ? [n2, 0, 0] : [0, 0, n2] :
|
|
2444
|
+
return 0 === i2 ? 0 === e2 ? (n2 = -s2 / t2) < 0 ? [n2, 0, 0] : [0, 0, n2] : Ns(t2, s2, 0, e2) : 0 === e2 ? 0 === (a2 = As.computeRealRoots(t2, s2, i2)).length ? [0] : a2[1] <= 0 ? [a2[0], a2[1], 0] : a2[0] >= 0 ? [0, a2[0], a2[1]] : [a2[0], 0, a2[1]] : Ns(t2, s2, i2, e2);
|
|
2445
2445
|
};
|
|
2446
2446
|
var Is = {};
|
|
2447
2447
|
function zs(t2, s2, i2, e2) {
|
|
2448
|
-
var a2 = t2 * t2, n2 = s2 - 3 * a2 / 8, r2 = i2 - s2 * t2 / 2 + a2 * t2 / 8, h2 = e2 - i2 * t2 / 4 + s2 * a2 / 16 - 3 * a2 * a2 / 256, o2 =
|
|
2448
|
+
var a2 = t2 * t2, n2 = s2 - 3 * a2 / 8, r2 = i2 - s2 * t2 / 2 + a2 * t2 / 8, h2 = e2 - i2 * t2 / 4 + s2 * a2 / 16 - 3 * a2 * a2 / 256, o2 = Cs.computeRealRoots(1, 2 * n2, n2 * n2 - 4 * h2, -r2 * r2);
|
|
2449
2449
|
if (o2.length > 0) {
|
|
2450
2450
|
var c2 = -t2 / 4, l2 = o2[o2.length - 1];
|
|
2451
2451
|
if (Math.abs(l2) < st.EPSILON14) {
|
|
@@ -2471,7 +2471,7 @@ function zs(t2, s2, i2, e2) {
|
|
|
2471
2471
|
return [];
|
|
2472
2472
|
}
|
|
2473
2473
|
function Ts(t2, s2, i2, e2) {
|
|
2474
|
-
var a2 = t2 * t2, n2 = -2 * s2, r2 = i2 * t2 + s2 * s2 - 4 * e2, h2 = a2 * e2 - i2 * s2 * t2 + i2 * i2, o2 =
|
|
2474
|
+
var a2 = t2 * t2, n2 = -2 * s2, r2 = i2 * t2 + s2 * s2 - 4 * e2, h2 = a2 * e2 - i2 * s2 * t2 + i2 * i2, o2 = Cs.computeRealRoots(1, n2, r2, h2);
|
|
2475
2475
|
if (o2.length > 0) {
|
|
2476
2476
|
var c2, l2, u2, d2, m2, _2, f2 = o2[0], y2 = s2 - f2, p2 = y2 * y2, g2 = t2 / 2, M2 = y2 / 2, x2 = p2 - 4 * e2, w2 = p2 + 4 * Math.abs(e2), S2 = a2 - 4 * f2, E2 = a2 + 4 * Math.abs(f2);
|
|
2477
2477
|
if (f2 < 0 || x2 * E2 < S2 * w2) {
|
|
@@ -2515,7 +2515,7 @@ Is.computeDiscriminant = function(t2, s2, i2, e2, a2) {
|
|
|
2515
2515
|
if ("number" != typeof a2)
|
|
2516
2516
|
throw new tt("e is a required number.");
|
|
2517
2517
|
if (Math.abs(t2) < st.EPSILON15)
|
|
2518
|
-
return
|
|
2518
|
+
return Cs.computeRealRoots(s2, i2, e2, a2);
|
|
2519
2519
|
var n2 = s2 / t2, r2 = i2 / t2, h2 = e2 / t2, o2 = a2 / t2, c2 = n2 < 0 ? 1 : 0;
|
|
2520
2520
|
switch (c2 += r2 < 0 ? c2 + 1 : c2, c2 += h2 < 0 ? c2 + 1 : c2, c2 += o2 < 0 ? c2 + 1 : c2) {
|
|
2521
2521
|
case 0:
|
|
@@ -2708,8 +2708,8 @@ Os.grazingAltitudeLocation = function(t2, s2) {
|
|
|
2708
2708
|
if (0 === A3)
|
|
2709
2709
|
return _3;
|
|
2710
2710
|
for (var G3 = 0; G3 < A3; ++G3) {
|
|
2711
|
-
var
|
|
2712
|
-
T2 < 0 ? _3.push(new u(e3, a3 *
|
|
2711
|
+
var C3 = n3[G3], N2 = C3 * C3, I2 = Math.max(1 - N2, 0), z2 = Math.sqrt(I2), T2 = (st.sign(o3) === st.sign(l3) ? Hs(o3 * N2 + l3, c3 * C3, st.EPSILON12) : st.sign(l3) === st.sign(c3 * C3) ? Hs(o3 * N2, c3 * C3 + l3, st.EPSILON12) : Hs(o3 * N2 + c3 * C3, l3, st.EPSILON12)) * Hs(d3 * C3, m3, st.EPSILON15);
|
|
2712
|
+
T2 < 0 ? _3.push(new u(e3, a3 * C3, a3 * z2)) : T2 > 0 ? _3.push(new u(e3, a3 * C3, a3 * -z2)) : 0 !== z2 ? (_3.push(new u(e3, a3 * C3, a3 * -z2)), _3.push(new u(e3, a3 * C3, a3 * z2)), ++G3) : _3.push(new u(e3, a3 * C3, a3 * z2));
|
|
2713
2713
|
}
|
|
2714
2714
|
return _3;
|
|
2715
2715
|
}(x2, _t.negate(w2, Xs), 0, 0, 1), E2 = S2.length;
|
|
@@ -2719,8 +2719,8 @@ Os.grazingAltitudeLocation = function(t2, s2) {
|
|
|
2719
2719
|
var A2 = _t.normalize(_t.subtract(p2, i2, Qs), Qs), G2 = _t.dot(A2, e2);
|
|
2720
2720
|
G2 > P2 && (P2 = G2, b2 = _t.clone(p2, b2));
|
|
2721
2721
|
}
|
|
2722
|
-
var
|
|
2723
|
-
return P2 = st.clamp(P2, 0, 1), g2 = _t.magnitude(_t.subtract(b2, i2, Qs)) * Math.sqrt(1 - P2 * P2), g2 = n2 ? -g2 : g2,
|
|
2722
|
+
var C2 = s2.cartesianToCartographic(b2, hi);
|
|
2723
|
+
return P2 = st.clamp(P2, 0, 1), g2 = _t.magnitude(_t.subtract(b2, i2, Qs)) * Math.sqrt(1 - P2 * P2), g2 = n2 ? -g2 : g2, C2.z = g2, s2.cartographicToCartesian(C2, new u());
|
|
2724
2724
|
}
|
|
2725
2725
|
};
|
|
2726
2726
|
var oi = new u();
|
|
@@ -2930,7 +2930,7 @@ function bi(t2, s2, i2, e2, a2, n2, r2, h2, o2, c2, l2) {
|
|
|
2930
2930
|
const _2 = l2.center;
|
|
2931
2931
|
return d2 = Ht.multiplyByVector(u2, d2, d2), _t.add(t2, d2, _2), Ht.multiplyByScale(u2, m2, u2), l2;
|
|
2932
2932
|
}
|
|
2933
|
-
const Pi = new u(), vi = new u(), Ai = new u(), Gi = new u(),
|
|
2933
|
+
const Pi = new u(), vi = new u(), Ai = new u(), Gi = new u(), Ci = new u(), Ni = new u(), Ii = new u(), zi = new u(), Ti = new u(), Oi = new u(), Ri = new u(), qi = new u(), Li = new c(), Bi = new c(), ki = new c(), Di = new c(), Ui = new c(), ji = new u(), Fi = new u(), Vi = new u(), Wi = new u(), Hi = new c(), Xi = new u(), Yi = new u(), Zi = new u(), Qi = new K(new u(1, 0, 0), 0);
|
|
2934
2934
|
wi.fromRectangle = function(t2, s2, i2, e2, a2) {
|
|
2935
2935
|
if (!J(t2))
|
|
2936
2936
|
throw new tt("rectangle is required");
|
|
@@ -2944,12 +2944,12 @@ wi.fromRectangle = function(t2, s2, i2, e2, a2) {
|
|
|
2944
2944
|
if (s2 = $(s2, 0), i2 = $(i2, 0), e2 = $(e2, Wt.WGS84), t2.width <= st.PI) {
|
|
2945
2945
|
const d3 = it.center(t2, Pi), m3 = e2.cartographicToCartesian(d3, vi), _3 = new Mi(m3, e2);
|
|
2946
2946
|
u2 = _3.plane;
|
|
2947
|
-
const f3 = d3.x, y3 = t2.south < 0 && t2.north > 0 ? 0 : d3.y, p3 = $t.fromRadians(f3, t2.north, i2, Ai), g3 = $t.fromRadians(t2.west, t2.north, i2, Gi), M3 = $t.fromRadians(t2.west, y3, i2,
|
|
2947
|
+
const f3 = d3.x, y3 = t2.south < 0 && t2.north > 0 ? 0 : d3.y, p3 = $t.fromRadians(f3, t2.north, i2, Ai), g3 = $t.fromRadians(t2.west, t2.north, i2, Gi), M3 = $t.fromRadians(t2.west, y3, i2, Ci), x3 = $t.fromRadians(t2.west, t2.south, i2, Ni), w3 = $t.fromRadians(f3, t2.south, i2, Ii), S2 = e2.cartographicToCartesian(p3, zi);
|
|
2948
2948
|
let E2 = e2.cartographicToCartesian(g3, Ti);
|
|
2949
2949
|
const b2 = e2.cartographicToCartesian(M3, Oi);
|
|
2950
2950
|
let P2 = e2.cartographicToCartesian(x3, Ri);
|
|
2951
|
-
const v2 = e2.cartographicToCartesian(w3, qi), A2 = _3.projectPointToNearestOnPlane(S2, Li), G2 = _3.projectPointToNearestOnPlane(E2, Bi),
|
|
2952
|
-
return n2 = Math.min(G2.x,
|
|
2951
|
+
const v2 = e2.cartographicToCartesian(w3, qi), A2 = _3.projectPointToNearestOnPlane(S2, Li), G2 = _3.projectPointToNearestOnPlane(E2, Bi), C2 = _3.projectPointToNearestOnPlane(b2, ki), N2 = _3.projectPointToNearestOnPlane(P2, Di), I2 = _3.projectPointToNearestOnPlane(v2, Ui);
|
|
2952
|
+
return n2 = Math.min(G2.x, C2.x, N2.x), r2 = -n2, o2 = Math.max(G2.y, A2.y), h2 = Math.min(N2.y, I2.y), g3.z = x3.z = s2, E2 = e2.cartographicToCartesian(g3, Ti), P2 = e2.cartographicToCartesian(x3, Ri), c2 = Math.min(fi.getPointDistance(u2, E2), fi.getPointDistance(u2, P2)), l2 = i2, bi(_3.origin, _3.xAxis, _3.yAxis, _3.zAxis, n2, r2, h2, o2, c2, l2, a2);
|
|
2953
2953
|
}
|
|
2954
2954
|
const d2 = t2.south > 0, m2 = t2.north < 0, _2 = d2 ? t2.south : m2 ? t2.north : 0, f2 = it.center(t2, Pi).x, y2 = _t.fromRadians(f2, _2, i2, e2, ji);
|
|
2955
2955
|
y2.z = 0;
|
|
@@ -3005,7 +3005,7 @@ wi.computeCorners = function(t2, s2) {
|
|
|
3005
3005
|
const i2 = t2.min, e2 = t2.max, a2 = it.fromBox(t2, null, true);
|
|
3006
3006
|
return wi.fromRectangle(a2, i2.z, e2.z, null, s2);
|
|
3007
3007
|
};
|
|
3008
|
-
class re extends
|
|
3008
|
+
class re extends Ct {
|
|
3009
3009
|
constructor() {
|
|
3010
3010
|
super(...arguments);
|
|
3011
3011
|
__publicField(this, "name", xt);
|
|
@@ -3090,26 +3090,21 @@ oe(ce.prototype, { equals: function(t2) {
|
|
|
3090
3090
|
if (t2.lng > 180 || t2.lng < -180 || t2.lat > 90 || t2.lat < -90)
|
|
3091
3091
|
return t2;
|
|
3092
3092
|
let s2, i2;
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
return e2.lat = 31890685e-1 * Math.log((1 + Math.sin(n2)) / (1 - Math.sin(n2))), new ce(Number(e2.lng), Number(e2.lat));
|
|
3098
|
-
}
|
|
3099
|
-
for (var r2 = 0; r2 < this.LLBAND.length; r2++)
|
|
3100
|
-
if (s2.lat >= this.LLBAND[r2]) {
|
|
3101
|
-
i2 = this.LL2MC[r2];
|
|
3093
|
+
t2.lng = this.getLoop(t2.lng, -180, 180), t2.lat = this.getRange(t2.lat, -74, 74), s2 = new ce(t2.lng, t2.lat);
|
|
3094
|
+
for (var e2 = 0; e2 < this.LLBAND.length; e2++)
|
|
3095
|
+
if (s2.lat >= this.LLBAND[e2]) {
|
|
3096
|
+
i2 = this.LL2MC[e2];
|
|
3102
3097
|
break;
|
|
3103
3098
|
}
|
|
3104
3099
|
if (!i2) {
|
|
3105
|
-
for (
|
|
3106
|
-
if (s2.lat <= -this.LLBAND[
|
|
3107
|
-
i2 = this.LL2MC[
|
|
3100
|
+
for (e2 = 0; e2 < this.LLBAND.length; e2++)
|
|
3101
|
+
if (s2.lat <= -this.LLBAND[e2]) {
|
|
3102
|
+
i2 = this.LL2MC[e2];
|
|
3108
3103
|
break;
|
|
3109
3104
|
}
|
|
3110
3105
|
}
|
|
3111
|
-
let
|
|
3112
|
-
return t2 = new ce(Number(
|
|
3106
|
+
let a2 = this.convertor(t2, i2);
|
|
3107
|
+
return t2 = new ce(Number(a2.lng), Number(a2.lat));
|
|
3113
3108
|
}, convertor: function(t2, s2) {
|
|
3114
3109
|
if (!t2 || !s2)
|
|
3115
3110
|
return;
|
|
@@ -3154,7 +3149,7 @@ oe(ce.prototype, { equals: function(t2) {
|
|
|
3154
3149
|
return Math.pow(2, 18 - t2);
|
|
3155
3150
|
} });
|
|
3156
3151
|
const ue = 2003772636e-2, de = 1247410417e-2, me = new u();
|
|
3157
|
-
class _e extends
|
|
3152
|
+
class _e extends Ct {
|
|
3158
3153
|
constructor() {
|
|
3159
3154
|
super(...arguments);
|
|
3160
3155
|
__publicField(this, "name", wt);
|
|
@@ -3162,7 +3157,7 @@ class _e extends Nt {
|
|
|
3162
3157
|
__publicField(this, "unprojectCoordinate", (t2, s2, i2) => {
|
|
3163
3158
|
s2 || (s2 = new u()), me.copy(t2), t2.x < -ue && (me.x = -ue), t2.x > ue && (me.x = ue), t2.y < -de && (me.y = -de), t2.y > de && (me.y = de);
|
|
3164
3159
|
const e2 = he.convertMC2LL({ lng: me.x, lat: me.y });
|
|
3165
|
-
return s2.set(Number(e2.lng), Number(e2.lat), me.z), i2 && (s2.x =
|
|
3160
|
+
return s2.set(Number(e2.lng), Number(e2.lat), me.z), i2 && (s2.x = Nt(t2.x, s2.x, 180, ue), s2.y = Nt(t2.y, s2.y, 74, de)), s2;
|
|
3166
3161
|
});
|
|
3167
3162
|
}
|
|
3168
3163
|
projectCoordinate(t2, s2, i2 = false) {
|
|
@@ -3172,7 +3167,7 @@ class _e extends Nt {
|
|
|
3172
3167
|
}
|
|
3173
3168
|
}
|
|
3174
3169
|
const fe = 6378137 * Math.PI / 180;
|
|
3175
|
-
class ye extends
|
|
3170
|
+
class ye extends Ct {
|
|
3176
3171
|
constructor() {
|
|
3177
3172
|
super(...arguments);
|
|
3178
3173
|
__publicField(this, "name", gt);
|
|
@@ -3186,7 +3181,7 @@ class ye extends Nt {
|
|
|
3186
3181
|
return s2 || (s2 = new u()), s2.x = t2.x / fe, s2.y = t2.y / fe, s2.z = t2.z, s2;
|
|
3187
3182
|
}
|
|
3188
3183
|
}
|
|
3189
|
-
class pe extends
|
|
3184
|
+
class pe extends Ct {
|
|
3190
3185
|
constructor() {
|
|
3191
3186
|
super(...arguments);
|
|
3192
3187
|
__publicField(this, "name", St);
|
|
@@ -3431,10 +3426,10 @@ ge.exports = function() {
|
|
|
3431
3426
|
function G2(t3) {
|
|
3432
3427
|
return t3.find((t4) => Array.isArray(t4) && "USAGE" === t4[0]) ? "2019" : (t3.find((t4) => Array.isArray(t4) && "CS" === t4[0]) || "BOUNDCRS" === t3[0] || "PROJCRS" === t3[0] || t3[0], "2015");
|
|
3433
3428
|
}
|
|
3434
|
-
function
|
|
3429
|
+
function C2(t3) {
|
|
3435
3430
|
return ("2019" === G2(t3) ? A2 : v2).convert(t3);
|
|
3436
3431
|
}
|
|
3437
|
-
function
|
|
3432
|
+
function N2(t3) {
|
|
3438
3433
|
const s3 = t3.toUpperCase();
|
|
3439
3434
|
return s3.includes("PROJCRS") || s3.includes("GEOGCRS") || s3.includes("BOUNDCRS") || s3.includes("VERTCRS") || s3.includes("LENGTHUNIT") || s3.includes("ANGLEUNIT") || s3.includes("SCALEUNIT") ? "WKT2" : (s3.includes("PROJCS") || s3.includes("GEOGCS") || s3.includes("LOCAL_CS") || s3.includes("VERT_CS") || s3.includes("UNIT"), "WKT1");
|
|
3440
3435
|
}
|
|
@@ -3693,10 +3688,10 @@ ge.exports = function() {
|
|
|
3693
3688
|
function et2(t3) {
|
|
3694
3689
|
if ("object" == typeof t3)
|
|
3695
3690
|
return J2(t3);
|
|
3696
|
-
const s3 =
|
|
3691
|
+
const s3 = N2(t3);
|
|
3697
3692
|
var i3 = F2(t3);
|
|
3698
3693
|
if ("WKT2" === s3)
|
|
3699
|
-
return J2(
|
|
3694
|
+
return J2(C2(i3));
|
|
3700
3695
|
var e3 = i3[0], a3 = {};
|
|
3701
3696
|
return W2(i3, a3), st2(a3), a3[e3];
|
|
3702
3697
|
}
|
|
@@ -3830,16 +3825,16 @@ ge.exports = function() {
|
|
|
3830
3825
|
function Gt2(t3) {
|
|
3831
3826
|
return t3.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
|
|
3832
3827
|
}
|
|
3833
|
-
function
|
|
3828
|
+
function Ct2(t3) {
|
|
3834
3829
|
if (!t3)
|
|
3835
3830
|
return false;
|
|
3836
3831
|
var s3 = t3.toLowerCase();
|
|
3837
3832
|
return void 0 !== Pt2[s3] && vt2[Pt2[s3]] || (s3 = Gt2(s3)) in Pt2 && vt2[Pt2[s3]] ? vt2[Pt2[s3]] : void 0;
|
|
3838
3833
|
}
|
|
3839
|
-
function
|
|
3834
|
+
function Nt2() {
|
|
3840
3835
|
bt2.forEach(At2);
|
|
3841
3836
|
}
|
|
3842
|
-
var It2 = { start:
|
|
3837
|
+
var It2 = { start: Nt2, add: At2, get: Ct2 }, zt2 = { MERIT: { a: 6378137, rf: 298.257, ellipseName: "MERIT 1983" }, SGS85: { a: 6378136, rf: 298.257, ellipseName: "Soviet Geodetic System 85" }, GRS80: { a: 6378137, rf: 298.257222101, ellipseName: "GRS 1980(IUGG, 1980)" }, IAU76: { a: 6378140, rf: 298.257, ellipseName: "IAU 1976" }, airy: { a: 6377563396e-3, b: 635625691e-2, ellipseName: "Airy 1830" }, APL4: { a: 6378137, rf: 298.25, ellipseName: "Appl. Physics. 1965" }, NWL9D: { a: 6378145, rf: 298.25, ellipseName: "Naval Weapons Lab., 1965" }, mod_airy: { a: 6377340189e-3, b: 6356034446e-3, ellipseName: "Modified Airy" }, andrae: { a: 637710443e-2, rf: 300, ellipseName: "Andrae 1876 (Den., Iclnd.)" }, aust_SA: { a: 6378160, rf: 298.25, ellipseName: "Australian Natl & S. Amer. 1969" }, GRS67: { a: 6378160, rf: 298.247167427, ellipseName: "GRS 67(IUGG 1967)" }, bessel: { a: 6377397155e-3, rf: 299.1528128, ellipseName: "Bessel 1841" }, bess_nam: { a: 6377483865e-3, rf: 299.1528128, ellipseName: "Bessel 1841 (Namibia)" }, clrk66: { a: 63782064e-1, b: 63565838e-1, ellipseName: "Clarke 1866" }, clrk80: { a: 6378249145e-3, rf: 293.4663, ellipseName: "Clarke 1880 mod." }, clrk80ign: { a: 63782492e-1, b: 6356515, rf: 293.4660213, ellipseName: "Clarke 1880 (IGN)" }, clrk58: { a: 6378293645208759e-9, rf: 294.2606763692654, ellipseName: "Clarke 1858" }, CPM: { a: 63757387e-1, rf: 334.29, ellipseName: "Comm. des Poids et Mesures 1799" }, delmbr: { a: 6376428, rf: 311.5, ellipseName: "Delambre 1810 (Belgium)" }, engelis: { a: 637813605e-2, rf: 298.2566, ellipseName: "Engelis 1985" }, evrst30: { a: 6377276345e-3, rf: 300.8017, ellipseName: "Everest 1830" }, evrst48: { a: 6377304063e-3, rf: 300.8017, ellipseName: "Everest 1948" }, evrst56: { a: 6377301243e-3, rf: 300.8017, ellipseName: "Everest 1956" }, evrst69: { a: 6377295664e-3, rf: 300.8017, ellipseName: "Everest 1969" }, evrstSS: { a: 6377298556e-3, rf: 300.8017, ellipseName: "Everest (Sabah & Sarawak)" }, fschr60: { a: 6378166, rf: 298.3, ellipseName: "Fischer (Mercury Datum) 1960" }, fschr60m: { a: 6378155, rf: 298.3, ellipseName: "Fischer 1960" }, fschr68: { a: 6378150, rf: 298.3, ellipseName: "Fischer 1968" }, helmert: { a: 6378200, rf: 298.3, ellipseName: "Helmert 1906" }, hough: { a: 6378270, rf: 297, ellipseName: "Hough" }, intl: { a: 6378388, rf: 297, ellipseName: "International 1909 (Hayford)" }, kaula: { a: 6378163, rf: 298.24, ellipseName: "Kaula 1961" }, lerch: { a: 6378139, rf: 298.257, ellipseName: "Lerch 1979" }, mprts: { a: 6397300, rf: 191, ellipseName: "Maupertius 1738" }, new_intl: { a: 63781575e-1, b: 63567722e-1, ellipseName: "New International 1967" }, plessis: { a: 6376523, rf: 6355863, ellipseName: "Plessis 1817 (France)" }, krass: { a: 6378245, rf: 298.3, ellipseName: "Krassovsky, 1942" }, SEasia: { a: 6378155, b: 63567733205e-4, ellipseName: "Southeast Asia" }, walbeck: { a: 6376896, b: 63558348467e-4, ellipseName: "Walbeck" }, WGS60: { a: 6378165, rf: 298.3, ellipseName: "WGS 60" }, WGS66: { a: 6378145, rf: 298.25, ellipseName: "WGS 66" }, WGS7: { a: 6378135, rf: 298.26, ellipseName: "WGS 72" }, WGS84: { a: 6378137, rf: 298.257223563, ellipseName: "WGS 84" }, sphere: { a: 6370997, b: 6370997, ellipseName: "Normal Sphere (r=6370997)" } };
|
|
3843
3838
|
const Tt2 = zt2.WGS84;
|
|
3844
3839
|
function Ot2(t3, s3, i3, e3) {
|
|
3845
3840
|
var a3 = t3 * t3, n3 = s3 * s3, r3 = (a3 - n3) / a3, h3 = 0;
|
|
@@ -4162,7 +4157,7 @@ ge.exports = function() {
|
|
|
4162
4157
|
return Ms2(s3, t3, i4, e4);
|
|
4163
4158
|
} }, a3 && (e3.oProj = s3), e3);
|
|
4164
4159
|
}
|
|
4165
|
-
var Ss2 = 6, Es2 = "AJSAJS", bs2 = "AFAFAF", Ps2 = 65, vs2 = 73, As2 = 79, Gs2 = 86,
|
|
4160
|
+
var Ss2 = 6, Es2 = "AJSAJS", bs2 = "AFAFAF", Ps2 = 65, vs2 = 73, As2 = 79, Gs2 = 86, Cs2 = 90, Ns2 = { forward: Is2, inverse: zs2, toPoint: Ts2 };
|
|
4166
4161
|
function Is2(t3, s3) {
|
|
4167
4162
|
return s3 = s3 || 5, ks2(qs2({ lat: t3[1], lon: t3[0] }), s3);
|
|
4168
4163
|
}
|
|
@@ -4220,7 +4215,7 @@ ge.exports = function() {
|
|
|
4220
4215
|
}
|
|
4221
4216
|
function js2(t3, s3, i3) {
|
|
4222
4217
|
var e3 = i3 - 1, a3 = Es2.charCodeAt(e3), n3 = bs2.charCodeAt(e3), r3 = a3 + t3 - 1, h3 = n3 + s3, o3 = false;
|
|
4223
|
-
return r3 >
|
|
4218
|
+
return r3 > Cs2 && (r3 = r3 - Cs2 + Ps2 - 1, o3 = true), (r3 === vs2 || a3 < vs2 && r3 > vs2 || (r3 > vs2 || a3 < vs2) && o3) && r3++, (r3 === As2 || a3 < As2 && r3 > As2 || (r3 > As2 || a3 < As2) && o3) && ++r3 === vs2 && r3++, r3 > Cs2 && (r3 = r3 - Cs2 + Ps2 - 1), h3 > Gs2 ? (h3 = h3 - Gs2 + Ps2 - 1, o3 = true) : o3 = false, (h3 === vs2 || n3 < vs2 && h3 > vs2 || (h3 > vs2 || n3 < vs2) && o3) && h3++, (h3 === As2 || n3 < As2 && h3 > As2 || (h3 > As2 || n3 < As2) && o3) && ++h3 === vs2 && h3++, h3 > Gs2 && (h3 = h3 - Gs2 + Ps2 - 1), String.fromCharCode(r3) + String.fromCharCode(h3);
|
|
4224
4219
|
}
|
|
4225
4220
|
function Fs2(t3) {
|
|
4226
4221
|
if (t3 && 0 === t3.length)
|
|
@@ -4247,7 +4242,7 @@ ge.exports = function() {
|
|
|
4247
4242
|
}
|
|
4248
4243
|
function Vs2(t3, s3) {
|
|
4249
4244
|
for (var i3 = Es2.charCodeAt(s3 - 1), e3 = 1e5, a3 = false; i3 !== t3.charCodeAt(0); ) {
|
|
4250
|
-
if (++i3 === vs2 && i3++, i3 === As2 && i3++, i3 >
|
|
4245
|
+
if (++i3 === vs2 && i3++, i3 === As2 && i3++, i3 > Cs2) {
|
|
4251
4246
|
if (a3)
|
|
4252
4247
|
throw "Bad character: " + t3;
|
|
4253
4248
|
i3 = Ps2, a3 = true;
|
|
@@ -4499,20 +4494,20 @@ ge.exports = function() {
|
|
|
4499
4494
|
this.lat0 = 0, this.long0 = (6 * Math.abs(t3) - 183) * f2, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, Pi2.init.apply(this), this.forward = Pi2.forward, this.inverse = Pi2.inverse;
|
|
4500
4495
|
}
|
|
4501
4496
|
var Gi2 = { init: Ai2, names: ["Universal Transverse Mercator System", "utm"], dependsOn: "etmerc" };
|
|
4502
|
-
function
|
|
4497
|
+
function Ci2(t3, s3) {
|
|
4503
4498
|
return Math.pow((1 - t3) / (1 + t3), s3);
|
|
4504
4499
|
}
|
|
4505
|
-
var
|
|
4500
|
+
var Ni2 = 20;
|
|
4506
4501
|
function Ii2() {
|
|
4507
4502
|
var t3 = Math.sin(this.lat0), s3 = Math.cos(this.lat0);
|
|
4508
|
-
s3 *= s3, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * t3 * t3), this.C = Math.sqrt(1 + this.es * s3 * s3 / (1 - this.es)), this.phic0 = Math.asin(t3 / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + p2) / (Math.pow(Math.tan(0.5 * this.lat0 + p2), this.C) *
|
|
4503
|
+
s3 *= s3, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * t3 * t3), this.C = Math.sqrt(1 + this.es * s3 * s3 / (1 - this.es)), this.phic0 = Math.asin(t3 / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + p2) / (Math.pow(Math.tan(0.5 * this.lat0 + p2), this.C) * Ci2(this.e * t3, this.ratexp));
|
|
4509
4504
|
}
|
|
4510
4505
|
function zi2(t3) {
|
|
4511
4506
|
var s3 = t3.x, i3 = t3.y;
|
|
4512
|
-
return t3.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * i3 + p2), this.C) *
|
|
4507
|
+
return t3.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * i3 + p2), this.C) * Ci2(this.e * Math.sin(i3), this.ratexp)) - l2, t3.x = this.C * s3, t3;
|
|
4513
4508
|
}
|
|
4514
4509
|
function Ti2(t3) {
|
|
4515
|
-
for (var s3 = 1e-14, i3 = t3.x / this.C, e3 = t3.y, a3 = Math.pow(Math.tan(0.5 * e3 + p2) / this.K, 1 / this.C), n3 =
|
|
4510
|
+
for (var s3 = 1e-14, i3 = t3.x / this.C, e3 = t3.y, a3 = Math.pow(Math.tan(0.5 * e3 + p2) / this.K, 1 / this.C), n3 = Ni2; n3 > 0 && (e3 = 2 * Math.atan(a3 * Ci2(this.e * Math.sin(t3.y), -0.5 * this.e)) - l2, !(Math.abs(e3 - t3.y) < s3)); --n3)
|
|
4516
4511
|
t3.y = e3;
|
|
4517
4512
|
return n3 ? (t3.x = i3, t3.y = e3, t3) : null;
|
|
4518
4513
|
}
|
|
@@ -4738,7 +4733,7 @@ ge.exports = function() {
|
|
|
4738
4733
|
function we2() {
|
|
4739
4734
|
var t3, s3 = Math.abs(this.lat0);
|
|
4740
4735
|
if (Math.abs(s3 - l2) < _2 ? this.mode = this.lat0 < 0 ? this.S_POLE : this.N_POLE : Math.abs(s3) < _2 ? this.mode = this.EQUIT : this.mode = this.OBLIQ, this.es > 0)
|
|
4741
|
-
switch (this.qp = xe2(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa =
|
|
4736
|
+
switch (this.qp = xe2(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = Ne2(this.es), this.mode) {
|
|
4742
4737
|
case this.N_POLE:
|
|
4743
4738
|
case this.S_POLE:
|
|
4744
4739
|
this.dd = 1;
|
|
@@ -4827,10 +4822,10 @@ ge.exports = function() {
|
|
|
4827
4822
|
}
|
|
4828
4823
|
return t3.x = yt2(this.long0 + s3), t3.y = i3, t3;
|
|
4829
4824
|
}
|
|
4830
|
-
var be2 = 0.3333333333333333, Pe2 = 0.17222222222222222, ve2 = 0.10257936507936508, Ae2 = 0.06388888888888888, Ge2 = 0.0664021164021164,
|
|
4831
|
-
function
|
|
4825
|
+
var be2 = 0.3333333333333333, Pe2 = 0.17222222222222222, ve2 = 0.10257936507936508, Ae2 = 0.06388888888888888, Ge2 = 0.0664021164021164, Ce2 = 0.016415012942191543;
|
|
4826
|
+
function Ne2(t3) {
|
|
4832
4827
|
var s3, i3 = [];
|
|
4833
|
-
return i3[0] = t3 * be2, s3 = t3 * t3, i3[0] += s3 * Pe2, i3[1] = s3 * Ae2, s3 *= t3, i3[0] += s3 * ve2, i3[1] += s3 * Ge2, i3[2] = s3 *
|
|
4828
|
+
return i3[0] = t3 * be2, s3 = t3 * t3, i3[0] += s3 * Pe2, i3[1] = s3 * Ae2, s3 *= t3, i3[0] += s3 * ve2, i3[1] += s3 * Ge2, i3[2] = s3 * Ce2, i3;
|
|
4834
4829
|
}
|
|
4835
4830
|
function Ie2(t3, s3) {
|
|
4836
4831
|
var i3 = t3 + t3;
|
|
@@ -5088,8 +5083,8 @@ ge.exports = function() {
|
|
|
5088
5083
|
var s3, i3, e3, a3, n3, r3, h3, o3, c3, l3, u3, d3;
|
|
5089
5084
|
return t3.x -= this.x0, t3.y -= this.y0, u3 = Math.PI * this.R, n3 = (e3 = t3.x / u3) * e3 + (a3 = t3.y / u3) * a3, u3 = 3 * (a3 * a3 / (o3 = -2 * (r3 = -Math.abs(a3) * (1 + n3)) + 1 + 2 * a3 * a3 + n3 * n3) + (2 * (h3 = r3 - 2 * a3 * a3 + e3 * e3) * h3 * h3 / o3 / o3 / o3 - 9 * r3 * h3 / o3 / o3) / 27) / (c3 = (r3 - h3 * h3 / 3 / o3) / o3) / (l3 = 2 * Math.sqrt(-c3 / 3)), Math.abs(u3) > 1 && (u3 = u3 >= 0 ? 1 : -1), d3 = Math.acos(u3) / 3, i3 = t3.y >= 0 ? (-l3 * Math.cos(d3 + Math.PI / 3) - h3 / 3 / o3) * Math.PI : -(-l3 * Math.cos(d3 + Math.PI / 3) - h3 / 3 / o3) * Math.PI, s3 = Math.abs(e3) < _2 ? this.long0 : yt2(this.long0 + Math.PI * (n3 - 1 + Math.sqrt(1 + 2 * (e3 * e3 - a3 * a3) + n3 * n3)) / 2 / e3), t3.x = s3, t3.y = i3, t3;
|
|
5090
5085
|
}
|
|
5091
|
-
var Aa, Ga = { init: ba, forward: Pa, inverse: va, names: ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"] },
|
|
5092
|
-
function
|
|
5086
|
+
var Aa, Ga = { init: ba, forward: Pa, inverse: va, names: ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"] }, Ca = { exports: {} };
|
|
5087
|
+
function Na() {
|
|
5093
5088
|
return Aa || (Aa = 1, function(t3) {
|
|
5094
5089
|
var s3, i3, e3, a3;
|
|
5095
5090
|
s3 = function(s4) {
|
|
@@ -5191,8 +5186,8 @@ ge.exports = function() {
|
|
|
5191
5186
|
this._s = s4.remainder(this._s, t5), this.Add(0);
|
|
5192
5187
|
};
|
|
5193
5188
|
}(a3.Accumulator, a3.Math), a3.Geodesic = {}, a3.GeodesicLine = {}, a3.PolygonArea = {}, function(t4, s4, i4, e4, a4) {
|
|
5194
|
-
var n3, r3, h3, o3, c3, l3, u3, d3, m3, _3, f3, y3 = 6, p3 = y3, g3 = y3, M3 = y3, x3 = M3, w3 = 20, S3 = w3 + e4.digits + 10, E3 = e4.epsilon, b3 = 200 * E3, P3 = Math.sqrt(E3), v3 = E3, A3 = 1e3 * P3, G3 = 0,
|
|
5195
|
-
t4.tiny_ = Math.sqrt(Number.MIN_VALUE / Number.EPSILON), t4.nC1_ = y3, t4.nC1p_ = y3, t4.nC2_ = y3, t4.nC3_ = y3, t4.nC4_ = y3, n3 = t4.nC3_ * (t4.nC3_ - 1) / 2, r3 = t4.nC4_ * (t4.nC4_ + 1) / 2, t4.CAP_C1 = 1, t4.CAP_C1p = 2, t4.CAP_C2 = 4, t4.CAP_C3 = 8, t4.CAP_C4 = 16, t4.NONE = 0, t4.ARC = 64, t4.LATITUDE = 128 | G3, t4.LONGITUDE = 256 | t4.CAP_C3, t4.AZIMUTH = 512 | G3, t4.DISTANCE = 1024 | t4.CAP_C1, t4.STANDARD = t4.LATITUDE | t4.LONGITUDE | t4.AZIMUTH | t4.DISTANCE, t4.DISTANCE_IN = 2048 | t4.CAP_C1 | t4.CAP_C1p, t4.REDUCEDLENGTH = 4096 | t4.CAP_C1 | t4.CAP_C2, t4.GEODESICSCALE = 8192 | t4.CAP_C1 | t4.CAP_C2, t4.AREA = 16384 | t4.CAP_C4, t4.ALL =
|
|
5189
|
+
var n3, r3, h3, o3, c3, l3, u3, d3, m3, _3, f3, y3 = 6, p3 = y3, g3 = y3, M3 = y3, x3 = M3, w3 = 20, S3 = w3 + e4.digits + 10, E3 = e4.epsilon, b3 = 200 * E3, P3 = Math.sqrt(E3), v3 = E3, A3 = 1e3 * P3, G3 = 0, C3 = 31, N3 = 32640;
|
|
5190
|
+
t4.tiny_ = Math.sqrt(Number.MIN_VALUE / Number.EPSILON), t4.nC1_ = y3, t4.nC1p_ = y3, t4.nC2_ = y3, t4.nC3_ = y3, t4.nC4_ = y3, n3 = t4.nC3_ * (t4.nC3_ - 1) / 2, r3 = t4.nC4_ * (t4.nC4_ + 1) / 2, t4.CAP_C1 = 1, t4.CAP_C1p = 2, t4.CAP_C2 = 4, t4.CAP_C3 = 8, t4.CAP_C4 = 16, t4.NONE = 0, t4.ARC = 64, t4.LATITUDE = 128 | G3, t4.LONGITUDE = 256 | t4.CAP_C3, t4.AZIMUTH = 512 | G3, t4.DISTANCE = 1024 | t4.CAP_C1, t4.STANDARD = t4.LATITUDE | t4.LONGITUDE | t4.AZIMUTH | t4.DISTANCE, t4.DISTANCE_IN = 2048 | t4.CAP_C1 | t4.CAP_C1p, t4.REDUCEDLENGTH = 4096 | t4.CAP_C1 | t4.CAP_C2, t4.GEODESICSCALE = 8192 | t4.CAP_C1 | t4.CAP_C2, t4.AREA = 16384 | t4.CAP_C4, t4.ALL = N3 | C3, t4.LONG_UNROLL = 32768, t4.OUT_MASK = N3 | t4.LONG_UNROLL, t4.SinCosSeries = function(t5, s5, i5, e5) {
|
|
5196
5191
|
var a5 = e5.length, n4 = a5 - (t5 ? 1 : 0), r4 = 2 * (i5 - s5) * (i5 + s5), h4 = 1 & n4 ? e5[--a5] : 0, o4 = 0;
|
|
5197
5192
|
for (n4 = Math.floor(n4 / 2); n4--; )
|
|
5198
5193
|
h4 = r4 * (o4 = r4 * h4 - o4 + e5[--a5]) - h4 + e5[--a5];
|
|
@@ -5259,27 +5254,27 @@ ge.exports = function() {
|
|
|
5259
5254
|
}
|
|
5260
5255
|
return u4 & t4.REDUCEDLENGTH && (g4.m0 = M4, g4.m12b = o4 * (a5 * r4) - n4 * (e5 * h4) - a5 * h4 * x4), u4 & t4.GEODESICSCALE && (y4 = a5 * h4 + e5 * r4, p4 = this._ep2 * (c4 - l4) * (c4 + l4) / (n4 + o4), g4.M12 = y4 + (p4 * r4 - h4 * x4) * e5 / n4, g4.M21 = y4 - (p4 * e5 - a5 * x4) * r4 / o4), g4;
|
|
5261
5256
|
}, t4.Geodesic.prototype.InverseStart = function(s5, i5, a5, n4, r4, o4, c4, l4, u4, d4, m4) {
|
|
5262
|
-
var _4, f4, y4, p4, g4, M4, x4, w4, S4, E4, P4, v4, G4,
|
|
5263
|
-
return q3.sig12 = -1, _4 = n4 * i5, _4 += r4 * s5, (f4 = B3 >= 0 && L3 < 0.5 && r4 * c4 < 0.5) ? (p4 = e4.sq(s5 + n4), p4 /= p4 + e4.sq(i5 + r4), q3.dnm = Math.sqrt(1 + this._ep2 * p4), y4 = c4 / (this._f1 * q3.dnm), g4 = Math.sin(y4), M4 = Math.cos(y4)) : (g4 = l4, M4 = u4), q3.salp1 = r4 * g4, q3.calp1 = M4 >= 0 ? L3 + r4 * s5 * e4.sq(g4) / (1 + M4) : _4 - r4 * s5 * e4.sq(g4) / (1 - M4), w4 = e4.hypot(q3.salp1, q3.calp1), S4 = s5 * n4 + i5 * r4 * M4, f4 && w4 < this._etol2 ? (q3.salp2 = i5 * g4, q3.calp2 = L3 - i5 * n4 * (M4 >= 0 ? e4.sq(g4) / (1 + M4) : 1 - M4), x4 = e4.hypot(q3.salp2, q3.calp2), q3.salp2 /= x4, q3.calp2 /= x4, q3.sig12 = Math.atan2(w4, S4)) : Math.abs(this._n) > 0.1 || S4 >= 0 || w4 >= 6 * Math.abs(this._n) * Math.PI * e4.sq(i5) || (R3 = Math.atan2(-l4, -u4), this.f >= 0 ? (
|
|
5257
|
+
var _4, f4, y4, p4, g4, M4, x4, w4, S4, E4, P4, v4, G4, C4, N4, I3, z3, T3, O3, R3, q3 = {}, L3 = n4 * i5 - r4 * s5, B3 = r4 * i5 + n4 * s5;
|
|
5258
|
+
return q3.sig12 = -1, _4 = n4 * i5, _4 += r4 * s5, (f4 = B3 >= 0 && L3 < 0.5 && r4 * c4 < 0.5) ? (p4 = e4.sq(s5 + n4), p4 /= p4 + e4.sq(i5 + r4), q3.dnm = Math.sqrt(1 + this._ep2 * p4), y4 = c4 / (this._f1 * q3.dnm), g4 = Math.sin(y4), M4 = Math.cos(y4)) : (g4 = l4, M4 = u4), q3.salp1 = r4 * g4, q3.calp1 = M4 >= 0 ? L3 + r4 * s5 * e4.sq(g4) / (1 + M4) : _4 - r4 * s5 * e4.sq(g4) / (1 - M4), w4 = e4.hypot(q3.salp1, q3.calp1), S4 = s5 * n4 + i5 * r4 * M4, f4 && w4 < this._etol2 ? (q3.salp2 = i5 * g4, q3.calp2 = L3 - i5 * n4 * (M4 >= 0 ? e4.sq(g4) / (1 + M4) : 1 - M4), x4 = e4.hypot(q3.salp2, q3.calp2), q3.salp2 /= x4, q3.calp2 /= x4, q3.sig12 = Math.atan2(w4, S4)) : Math.abs(this._n) > 0.1 || S4 >= 0 || w4 >= 6 * Math.abs(this._n) * Math.PI * e4.sq(i5) || (R3 = Math.atan2(-l4, -u4), this.f >= 0 ? (C4 = (G4 = e4.sq(s5) * this._ep2) / (2 * (1 + Math.sqrt(1 + G4)) + G4), E4 = R3 / (v4 = this.f * i5 * this.A3f(C4) * Math.PI), P4 = _4 / (v4 * i5)) : (N4 = r4 * i5 - n4 * s5, I3 = Math.atan2(_4, N4), P4 = c4 / (v4 = ((E4 = (z3 = this.Lengths(this._n, Math.PI + I3, s5, -i5, a5, n4, r4, o4, i5, r4, t4.REDUCEDLENGTH, d4, m4)).m12b / (i5 * r4 * z3.m0 * Math.PI) - 1) < -0.01 ? _4 / E4 : -this.f * e4.sq(i5) * Math.PI) / i5)), P4 > -b3 && E4 > -1 - A3 ? this.f >= 0 ? (q3.salp1 = Math.min(1, -E4), q3.calp1 = -Math.sqrt(1 - e4.sq(q3.salp1))) : (q3.calp1 = Math.max(E4 > -b3 ? 0 : -1, E4), q3.salp1 = Math.sqrt(1 - e4.sq(q3.calp1))) : (T3 = h3(E4, P4), O3 = v4 * (this.f >= 0 ? -E4 * T3 / (1 + T3) : -P4 * (1 + T3) / T3), g4 = Math.sin(O3), M4 = -Math.cos(O3), q3.salp1 = r4 * g4, q3.calp1 = _4 - r4 * s5 * e4.sq(g4) / (1 - M4))), q3.salp1 <= 0 ? (q3.salp1 = 1, q3.calp1 = 0) : (x4 = e4.hypot(q3.salp1, q3.calp1), q3.salp1 /= x4, q3.calp1 /= x4), q3;
|
|
5264
5259
|
}, t4.Geodesic.prototype.Lambda12 = function(s5, i5, a5, n4, r4, h4, o4, c4, l4, u4, d4, m4, _4, f4) {
|
|
5265
|
-
var y4, p4, g4, M4, x4, w4, S4, E4, b4, P4, v4, A4, G4,
|
|
5266
|
-
return 0 === s5 && 0 === c4 && (c4 = -t4.tiny_), p4 = o4 * i5, g4 = e4.hypot(c4, o4 * s5),
|
|
5260
|
+
var y4, p4, g4, M4, x4, w4, S4, E4, b4, P4, v4, A4, G4, C4 = {};
|
|
5261
|
+
return 0 === s5 && 0 === c4 && (c4 = -t4.tiny_), p4 = o4 * i5, g4 = e4.hypot(c4, o4 * s5), C4.ssig1 = s5, M4 = p4 * s5, C4.csig1 = x4 = c4 * i5, y4 = e4.hypot(C4.ssig1, C4.csig1), C4.ssig1 /= y4, C4.csig1 /= y4, C4.salp2 = r4 !== i5 ? p4 / r4 : o4, C4.calp2 = r4 !== i5 || Math.abs(n4) !== -s5 ? Math.sqrt(e4.sq(c4 * i5) + (i5 < -s5 ? (r4 - i5) * (i5 + r4) : (s5 - n4) * (s5 + n4))) / r4 : Math.abs(c4), C4.ssig2 = n4, w4 = p4 * n4, C4.csig2 = S4 = C4.calp2 * r4, y4 = e4.hypot(C4.ssig2, C4.csig2), C4.ssig2 /= y4, C4.csig2 /= y4, C4.sig12 = Math.atan2(Math.max(0, C4.csig1 * C4.ssig2 - C4.ssig1 * C4.csig2), C4.csig1 * C4.csig2 + C4.ssig1 * C4.ssig2), E4 = Math.max(0, x4 * w4 - M4 * S4), b4 = x4 * S4 + M4 * w4, v4 = Math.atan2(E4 * u4 - b4 * l4, b4 * u4 + E4 * l4), A4 = e4.sq(g4) * this._ep2, C4.eps = A4 / (2 * (1 + Math.sqrt(1 + A4)) + A4), this.C3f(C4.eps, f4), P4 = t4.SinCosSeries(true, C4.ssig2, C4.csig2, f4) - t4.SinCosSeries(true, C4.ssig1, C4.csig1, f4), C4.domg12 = -this.f * this.A3f(C4.eps) * p4 * (C4.sig12 + P4), C4.lam12 = v4 + C4.domg12, d4 && (0 === C4.calp2 ? C4.dlam12 = -2 * this._f1 * a5 / s5 : (G4 = this.Lengths(C4.eps, C4.sig12, C4.ssig1, C4.csig1, a5, C4.ssig2, C4.csig2, h4, i5, r4, t4.REDUCEDLENGTH, m4, _4), C4.dlam12 = G4.m12b, C4.dlam12 *= this._f1 / (C4.calp2 * r4))), C4;
|
|
5267
5262
|
}, t4.Geodesic.prototype.Inverse = function(s5, i5, a5, n4, r4) {
|
|
5268
5263
|
var h4, o4;
|
|
5269
5264
|
return r4 || (r4 = t4.STANDARD), r4 === t4.LONG_UNROLL && (r4 |= t4.STANDARD), r4 &= t4.OUT_MASK, o4 = (h4 = this.InverseInt(s5, i5, a5, n4, r4)).vals, r4 & t4.AZIMUTH && (o4.azi1 = e4.atan2d(h4.salp1, h4.calp1), o4.azi2 = e4.atan2d(h4.salp2, h4.calp2)), o4;
|
|
5270
5265
|
}, t4.Geodesic.prototype.InverseInt = function(s5, i5, a5, n4, r4) {
|
|
5271
|
-
var h4, o4, c4, l4, u4, d4, m4, _4, f4, y4, p4, g4, M4, x4, b4, P4, A4, G4,
|
|
5272
|
-
if (St3.lat1 = s5 = e4.LatFix(s5), St3.lat2 = a5 = e4.LatFix(a5), s5 = e4.AngRound(s5), a5 = e4.AngRound(a5), o4 = (h4 = e4.AngDiff(i5, n4)).e, h4 = h4.d, r4 & t4.LONG_UNROLL ? (St3.lon1 = i5, St3.lon2 = i5 + h4 + o4) : (St3.lon1 = e4.AngNormalize(i5), St3.lon2 = e4.AngNormalize(n4)), o4 *= c4 = e4.copysign(1, h4), b4 = (h4 *= c4) * e4.degree, P4 = (l4 = e4.sincosde(h4, o4)).s, A4 = l4.c, o4 = 180 - h4 - o4, (u4 = Math.abs(s5) < Math.abs(a5) || isNaN(a5) ? -1 : 1) < 0 && (c4 *= -1, [a5, s5] = [s5, a5]), s5 *= d4 = e4.copysign(1, -s5), a5 *= d4, l4 = e4.sincosd(s5), m4 = this._f1 * l4.s, _4 = l4.c, m4 /= l4 = e4.hypot(m4, _4), _4 /= l4, _4 = Math.max(t4.tiny_, _4), l4 = e4.sincosd(a5), f4 = this._f1 * l4.s, y4 = l4.c, f4 /= l4 = e4.hypot(f4, y4), y4 /= l4, y4 = Math.max(t4.tiny_, y4), _4 < -m4 ? y4 === _4 && (f4 = e4.copysign(m4, f4)) : Math.abs(f4) === -m4 && (y4 = _4), M4 = Math.sqrt(1 + this._ep2 * e4.sq(m4)), x4 = Math.sqrt(1 + this._ep2 * e4.sq(f4)), T3 = new Array(t4.nC1_ + 1), O3 = new Array(t4.nC2_ + 1), R3 = new Array(t4.nC3_), (q3 = -90 === s5 || 0 === P4) && (
|
|
5273
|
-
|
|
5266
|
+
var h4, o4, c4, l4, u4, d4, m4, _4, f4, y4, p4, g4, M4, x4, b4, P4, A4, G4, C4, N4, I3, z3, T3, O3, R3, q3, L3, B3, k3, D3, U3, j3, F3, V3, W3, H3, X3, Y3, Z3, Q3, K3, J3, $3, tt3, st3, it3, et3, at3, nt3, rt3, ht3, ot3, ct3, lt3, ut3, dt3, mt3, _t3, ft3, yt3, pt3, gt3, Mt3, xt3, wt3, St3 = {};
|
|
5267
|
+
if (St3.lat1 = s5 = e4.LatFix(s5), St3.lat2 = a5 = e4.LatFix(a5), s5 = e4.AngRound(s5), a5 = e4.AngRound(a5), o4 = (h4 = e4.AngDiff(i5, n4)).e, h4 = h4.d, r4 & t4.LONG_UNROLL ? (St3.lon1 = i5, St3.lon2 = i5 + h4 + o4) : (St3.lon1 = e4.AngNormalize(i5), St3.lon2 = e4.AngNormalize(n4)), o4 *= c4 = e4.copysign(1, h4), b4 = (h4 *= c4) * e4.degree, P4 = (l4 = e4.sincosde(h4, o4)).s, A4 = l4.c, o4 = 180 - h4 - o4, (u4 = Math.abs(s5) < Math.abs(a5) || isNaN(a5) ? -1 : 1) < 0 && (c4 *= -1, [a5, s5] = [s5, a5]), s5 *= d4 = e4.copysign(1, -s5), a5 *= d4, l4 = e4.sincosd(s5), m4 = this._f1 * l4.s, _4 = l4.c, m4 /= l4 = e4.hypot(m4, _4), _4 /= l4, _4 = Math.max(t4.tiny_, _4), l4 = e4.sincosd(a5), f4 = this._f1 * l4.s, y4 = l4.c, f4 /= l4 = e4.hypot(f4, y4), y4 /= l4, y4 = Math.max(t4.tiny_, y4), _4 < -m4 ? y4 === _4 && (f4 = e4.copysign(m4, f4)) : Math.abs(f4) === -m4 && (y4 = _4), M4 = Math.sqrt(1 + this._ep2 * e4.sq(m4)), x4 = Math.sqrt(1 + this._ep2 * e4.sq(f4)), T3 = new Array(t4.nC1_ + 1), O3 = new Array(t4.nC2_ + 1), R3 = new Array(t4.nC3_), (q3 = -90 === s5 || 0 === P4) && (N4 = P4, z3 = 0, B3 = m4, k3 = (C4 = A4) * _4, D3 = f4, U3 = (I3 = 1) * y4, G4 = Math.atan2(Math.max(0, k3 * D3 - B3 * U3), k3 * U3 + B3 * D3), p4 = (L3 = this.Lengths(this._n, G4, B3, k3, M4, D3, U3, x4, _4, y4, r4 | t4.DISTANCE | t4.REDUCEDLENGTH, T3, O3)).s12b, g4 = L3.m12b, r4 & t4.GEODESICSCALE && (St3.M12 = L3.M12, St3.M21 = L3.M21), G4 < 1 || g4 >= 0 ? ((G4 < 3 * t4.tiny_ || G4 < E3 && (p4 < 0 || g4 < 0)) && (G4 = g4 = p4 = 0), g4 *= this._b, p4 *= this._b, St3.a12 = G4 / e4.degree) : q3 = false), mt3 = 2, !q3 && 0 === m4 && (this.f <= 0 || o4 >= 180 * this.f))
|
|
5268
|
+
C4 = I3 = 0, N4 = z3 = 1, p4 = this.a * b4, G4 = F3 = b4 / this._f1, g4 = this._b * Math.sin(G4), r4 & t4.GEODESICSCALE && (St3.M12 = St3.M21 = Math.cos(G4)), St3.a12 = h4 / this._f1;
|
|
5274
5269
|
else if (!q3)
|
|
5275
|
-
if (G4 = (L3 = this.InverseStart(m4, _4, M4, f4, y4, x4, b4, P4, A4, T3, O3)).sig12,
|
|
5270
|
+
if (G4 = (L3 = this.InverseStart(m4, _4, M4, f4, y4, x4, b4, P4, A4, T3, O3)).sig12, N4 = L3.salp1, C4 = L3.calp1, G4 >= 0)
|
|
5276
5271
|
z3 = L3.salp2, I3 = L3.calp2, V3 = L3.dnm, p4 = G4 * this._b * V3, g4 = e4.sq(V3) * this._b * Math.sin(G4 / V3), r4 & t4.GEODESICSCALE && (St3.M12 = St3.M21 = Math.cos(G4 / V3)), St3.a12 = G4 / e4.degree, F3 = b4 / (this._f1 * V3);
|
|
5277
5272
|
else {
|
|
5278
|
-
for (W3 = 0, H3 = t4.tiny_, X3 = 1, Y3 = t4.tiny_, Z3 = -1, Q3 = false, K3 = false; J3 = (L3 = this.Lambda12(m4, _4, M4, f4, y4, x4,
|
|
5279
|
-
J3 > 0 && (W3 < w3 ||
|
|
5273
|
+
for (W3 = 0, H3 = t4.tiny_, X3 = 1, Y3 = t4.tiny_, Z3 = -1, Q3 = false, K3 = false; J3 = (L3 = this.Lambda12(m4, _4, M4, f4, y4, x4, N4, C4, P4, A4, W3 < w3, T3, O3, R3)).lam12, z3 = L3.salp2, I3 = L3.calp2, G4 = L3.sig12, B3 = L3.ssig1, k3 = L3.csig1, D3 = L3.ssig2, U3 = L3.csig2, j3 = L3.eps, ft3 = L3.domg12, $3 = L3.dlam12, !K3 && Math.abs(J3) >= (Q3 ? 8 : 1) * E3 && W3 != S3; ++W3)
|
|
5274
|
+
J3 > 0 && (W3 < w3 || C4 / N4 > Z3 / Y3) ? (Y3 = N4, Z3 = C4) : J3 < 0 && (W3 < w3 || C4 / N4 < X3 / H3) && (H3 = N4, X3 = C4), W3 < w3 && $3 > 0 && (tt3 = -J3 / $3, Math.abs(tt3) < Math.PI && (st3 = Math.sin(tt3), (et3 = N4 * (it3 = Math.cos(tt3)) + C4 * st3) > 0)) ? (C4 = C4 * it3 - N4 * st3, N4 = et3, N4 /= l4 = e4.hypot(N4, C4), C4 /= l4, Q3 = Math.abs(J3) <= 16 * E3) : (N4 = (H3 + Y3) / 2, C4 = (X3 + Z3) / 2, N4 /= l4 = e4.hypot(N4, C4), C4 /= l4, Q3 = false, K3 = Math.abs(H3 - N4) + (X3 - C4) < v3 || Math.abs(N4 - Y3) + (C4 - Z3) < v3);
|
|
5280
5275
|
at3 = r4 | (r4 & (t4.REDUCEDLENGTH | t4.GEODESICSCALE) ? t4.DISTANCE : t4.NONE), p4 = (L3 = this.Lengths(j3, G4, B3, k3, M4, D3, U3, x4, _4, y4, at3, T3, O3)).s12b, g4 = L3.m12b, r4 & t4.GEODESICSCALE && (St3.M12 = L3.M12, St3.M21 = L3.M21), g4 *= this._b, p4 *= this._b, St3.a12 = G4 / e4.degree, r4 & t4.AREA && (xt3 = Math.sin(ft3), mt3 = P4 * (wt3 = Math.cos(ft3)) - A4 * xt3, _t3 = A4 * wt3 + P4 * xt3);
|
|
5281
5276
|
}
|
|
5282
|
-
return r4 & t4.DISTANCE && (St3.s12 = 0 + p4), r4 & t4.REDUCEDLENGTH && (St3.m12 = 0 + g4), r4 & t4.AREA && (nt3 =
|
|
5277
|
+
return r4 & t4.DISTANCE && (St3.s12 = 0 + p4), r4 & t4.REDUCEDLENGTH && (St3.m12 = 0 + g4), r4 & t4.AREA && (nt3 = N4 * _4, 0 !== (rt3 = e4.hypot(C4, N4 * m4)) && 0 !== nt3 ? (B3 = m4, k3 = C4 * _4, D3 = f4, U3 = I3 * y4, j3 = (ot3 = e4.sq(rt3) * this._ep2) / (2 * (1 + Math.sqrt(1 + ot3)) + ot3), ct3 = e4.sq(this.a) * rt3 * nt3 * this._e2, B3 /= l4 = e4.hypot(B3, k3), k3 /= l4, D3 /= l4 = e4.hypot(D3, U3), U3 /= l4, lt3 = new Array(t4.nC4_), this.C4f(j3, lt3), ut3 = t4.SinCosSeries(false, B3, k3, lt3), dt3 = t4.SinCosSeries(false, D3, U3, lt3), St3.S12 = ct3 * (dt3 - ut3)) : St3.S12 = 0, q3 || 2 != mt3 || (mt3 = Math.sin(F3), _t3 = Math.cos(F3)), !q3 && _t3 > -0.7071 && f4 - m4 < 1.75 ? (ft3 = 1 + _t3, yt3 = 1 + _4, pt3 = 1 + y4, ht3 = 2 * Math.atan2(mt3 * (m4 * pt3 + f4 * yt3), ft3 * (m4 * f4 + yt3 * pt3))) : (Mt3 = I3 * C4 + z3 * N4, 0 === (gt3 = z3 * C4 - I3 * N4) && Mt3 < 0 && (gt3 = t4.tiny_ * C4, Mt3 = -1), ht3 = Math.atan2(gt3, Mt3)), St3.S12 += this._c2 * ht3, St3.S12 *= u4 * c4 * d4, St3.S12 += 0), u4 < 0 && ([z3, N4] = [N4, z3], [I3, C4] = [C4, I3], r4 & t4.GEODESICSCALE && ([St3.M21, St3.M12] = [St3.M12, St3.M21])), { vals: St3, salp1: N4 *= u4 * c4, calp1: C4 *= u4 * d4, salp2: z3 *= u4 * c4, calp2: I3 *= u4 * d4 };
|
|
5283
5278
|
}, t4.Geodesic.prototype.GenDirect = function(i5, e5, a5, n4, r4, h4) {
|
|
5284
5279
|
return h4 ? h4 === t4.LONG_UNROLL && (h4 |= t4.STANDARD) : h4 = t4.STANDARD, n4 || (h4 |= t4.DISTANCE_IN), new s4.GeodesicLine(this, i5, e5, a5, h4).GenPosition(n4, r4, h4);
|
|
5285
5280
|
}, t4.Geodesic.prototype.Direct = function(t5, s5, i5, e5, a5) {
|
|
@@ -5306,8 +5301,8 @@ ge.exports = function() {
|
|
|
5306
5301
|
var c3, l3, u3, d3, m3, _3;
|
|
5307
5302
|
r3 || (r3 = t4.STANDARD | t4.DISTANCE_IN), this.a = s5.a, this.f = s5.f, this._b = s5._b, this._c2 = s5._c2, this._f1 = s5._f1, this.caps = r3 | t4.LATITUDE | t4.AZIMUTH | t4.LONG_UNROLL, this.lat1 = i4.LatFix(e4), this.lon1 = a4, void 0 === h3 || void 0 === o3 ? (this.azi1 = i4.AngNormalize(n3), c3 = i4.sincosd(i4.AngRound(this.azi1)), this.salp1 = c3.s, this.calp1 = c3.c) : (this.azi1 = n3, this.salp1 = h3, this.calp1 = o3), c3 = i4.sincosd(i4.AngRound(this.lat1)), u3 = this._f1 * c3.s, l3 = c3.c, u3 /= c3 = i4.hypot(u3, l3), l3 /= c3, l3 = Math.max(t4.tiny_, l3), this._dn1 = Math.sqrt(1 + s5._ep2 * i4.sq(u3)), this._salp0 = this.salp1 * l3, this._calp0 = i4.hypot(this.calp1, this.salp1 * u3), this._ssig1 = u3, this._somg1 = this._salp0 * u3, this._csig1 = this._comg1 = 0 !== u3 || 0 !== this.calp1 ? l3 * this.calp1 : 1, c3 = i4.hypot(this._ssig1, this._csig1), this._ssig1 /= c3, this._csig1 /= c3, this._k2 = i4.sq(this._calp0) * s5._ep2, d3 = this._k2 / (2 * (1 + Math.sqrt(1 + this._k2)) + this._k2), this.caps & t4.CAP_C1 && (this._A1m1 = t4.A1m1f(d3), this._C1a = new Array(t4.nC1_ + 1), t4.C1f(d3, this._C1a), this._B11 = t4.SinCosSeries(true, this._ssig1, this._csig1, this._C1a), m3 = Math.sin(this._B11), _3 = Math.cos(this._B11), this._stau1 = this._ssig1 * _3 + this._csig1 * m3, this._ctau1 = this._csig1 * _3 - this._ssig1 * m3), this.caps & t4.CAP_C1p && (this._C1pa = new Array(t4.nC1p_ + 1), t4.C1pf(d3, this._C1pa)), this.caps & t4.CAP_C2 && (this._A2m1 = t4.A2m1f(d3), this._C2a = new Array(t4.nC2_ + 1), t4.C2f(d3, this._C2a), this._B21 = t4.SinCosSeries(true, this._ssig1, this._csig1, this._C2a)), this.caps & t4.CAP_C3 && (this._C3a = new Array(t4.nC3_), s5.C3f(d3, this._C3a), this._A3c = -this.f * this._salp0 * s5.A3f(d3), this._B31 = t4.SinCosSeries(true, this._ssig1, this._csig1, this._C3a)), this.caps & t4.CAP_C4 && (this._C4a = new Array(t4.nC4_), s5.C4f(d3, this._C4a), this._A4 = i4.sq(this.a) * this._calp0 * this._salp0 * s5._e2, this._B41 = t4.SinCosSeries(false, this._ssig1, this._csig1, this._C4a)), this.a13 = this.s13 = NaN;
|
|
5308
5303
|
}, s4.GeodesicLine.prototype.GenPosition = function(s5, e4, a4) {
|
|
5309
|
-
var n3, r3, h3, o3, c3, l3, u3, d3, m3, _3, f3, y3, p3, g3, M3, x3, w3, S3, E3, b3, P3, v3, A3, G3,
|
|
5310
|
-
return a4 ? a4 === t4.LONG_UNROLL && (a4 |= t4.STANDARD) : a4 = t4.STANDARD, a4 &= this.caps & t4.OUT_MASK, I3.lat1 = this.lat1, I3.azi1 = this.azi1, I3.lon1 = a4 & t4.LONG_UNROLL ? this.lon1 : i4.AngNormalize(this.lon1), s5 ? I3.a12 = e4 : I3.s12 = e4, s5 || this.caps & t4.DISTANCE_IN & t4.OUT_MASK ? (o3 = 0, c3 = 0, s5 ? (n3 = e4 * i4.degree, r3 = (A3 = i4.sincosd(e4)).s, h3 = A3.c) : (d3 = e4 / (this._b * (1 + this._A1m1)), m3 = Math.sin(d3), _3 = Math.cos(d3), n3 = d3 - ((o3 = -t4.SinCosSeries(true, this._stau1 * _3 + this._ctau1 * m3, this._ctau1 * _3 - this._stau1 * m3, this._C1pa)) - this._B11), r3 = Math.sin(n3), h3 = Math.cos(n3), Math.abs(this.f) > 0.01 && (l3 = this._ssig1 * h3 + this._csig1 * r3, u3 = this._csig1 * h3 - this._ssig1 * r3, o3 = t4.SinCosSeries(true, l3, u3, this._C1a), n3 -= ((1 + this._A1m1) * (n3 + (o3 - this._B11)) - e4 / this._b) / Math.sqrt(1 + this._k2 * i4.sq(l3)), r3 = Math.sin(n3), h3 = Math.cos(n3))), l3 = this._ssig1 * h3 + this._csig1 * r3, u3 = this._csig1 * h3 - this._ssig1 * r3, E3 = Math.sqrt(1 + this._k2 * i4.sq(l3)), a4 & (t4.DISTANCE | t4.REDUCEDLENGTH | t4.GEODESICSCALE) && ((s5 || Math.abs(this.f) > 0.01) && (o3 = t4.SinCosSeries(true, l3, u3, this._C1a)), c3 = (1 + this._A1m1) * (o3 - this._B11)), p3 = this._calp0 * l3, 0 === (g3 = i4.hypot(this._salp0, this._calp0 * u3)) && (g3 = u3 = t4.tiny_), w3 = this._salp0, S3 = this._calp0 * u3, s5 && a4 & t4.DISTANCE && (I3.s12 = this._b * ((1 + this._A1m1) * n3 + c3)), a4 & t4.LONGITUDE && (M3 = this._salp0 * l3, x3 = u3, y3 = i4.copysign(1, this._salp0), f3 = ((a4 & t4.LONG_UNROLL ? y3 * (n3 - (Math.atan2(l3, u3) - Math.atan2(this._ssig1, this._csig1)) + (Math.atan2(y3 * M3, x3) - Math.atan2(y3 * this._somg1, this._comg1))) : Math.atan2(M3 * this._comg1 - x3 * this._somg1, x3 * this._comg1 + M3 * this._somg1)) + this._A3c * (n3 + (t4.SinCosSeries(true, l3, u3, this._C3a) - this._B31))) / i4.degree, I3.lon2 = a4 & t4.LONG_UNROLL ? this.lon1 + f3 : i4.AngNormalize(i4.AngNormalize(this.lon1) + i4.AngNormalize(f3))), a4 & t4.LATITUDE && (I3.lat2 = i4.atan2d(p3, this._f1 * g3)), a4 & t4.AZIMUTH && (I3.azi2 = i4.atan2d(w3, S3)), a4 & (t4.REDUCEDLENGTH | t4.GEODESICSCALE) && (b3 = t4.SinCosSeries(true, l3, u3, this._C2a), P3 = (1 + this._A2m1) * (b3 - this._B21), v3 = (this._A1m1 - this._A2m1) * n3 + (c3 - P3), a4 & t4.REDUCEDLENGTH && (I3.m12 = this._b * (E3 * (this._csig1 * l3) - this._dn1 * (this._ssig1 * u3) - this._csig1 * u3 * v3)), a4 & t4.GEODESICSCALE && (A3 = this._k2 * (l3 - this._ssig1) * (l3 + this._ssig1) / (this._dn1 + E3), I3.M12 = h3 + (A3 * l3 - u3 * v3) * this._ssig1 / this._dn1, I3.M21 = h3 - (A3 * this._ssig1 - this._csig1 * v3) * l3 / E3)), a4 & t4.AREA && (G3 = t4.SinCosSeries(false, l3, u3, this._C4a), 0 === this._calp0 || 0 === this._salp0 ? (
|
|
5304
|
+
var n3, r3, h3, o3, c3, l3, u3, d3, m3, _3, f3, y3, p3, g3, M3, x3, w3, S3, E3, b3, P3, v3, A3, G3, C3, N3, I3 = {};
|
|
5305
|
+
return a4 ? a4 === t4.LONG_UNROLL && (a4 |= t4.STANDARD) : a4 = t4.STANDARD, a4 &= this.caps & t4.OUT_MASK, I3.lat1 = this.lat1, I3.azi1 = this.azi1, I3.lon1 = a4 & t4.LONG_UNROLL ? this.lon1 : i4.AngNormalize(this.lon1), s5 ? I3.a12 = e4 : I3.s12 = e4, s5 || this.caps & t4.DISTANCE_IN & t4.OUT_MASK ? (o3 = 0, c3 = 0, s5 ? (n3 = e4 * i4.degree, r3 = (A3 = i4.sincosd(e4)).s, h3 = A3.c) : (d3 = e4 / (this._b * (1 + this._A1m1)), m3 = Math.sin(d3), _3 = Math.cos(d3), n3 = d3 - ((o3 = -t4.SinCosSeries(true, this._stau1 * _3 + this._ctau1 * m3, this._ctau1 * _3 - this._stau1 * m3, this._C1pa)) - this._B11), r3 = Math.sin(n3), h3 = Math.cos(n3), Math.abs(this.f) > 0.01 && (l3 = this._ssig1 * h3 + this._csig1 * r3, u3 = this._csig1 * h3 - this._ssig1 * r3, o3 = t4.SinCosSeries(true, l3, u3, this._C1a), n3 -= ((1 + this._A1m1) * (n3 + (o3 - this._B11)) - e4 / this._b) / Math.sqrt(1 + this._k2 * i4.sq(l3)), r3 = Math.sin(n3), h3 = Math.cos(n3))), l3 = this._ssig1 * h3 + this._csig1 * r3, u3 = this._csig1 * h3 - this._ssig1 * r3, E3 = Math.sqrt(1 + this._k2 * i4.sq(l3)), a4 & (t4.DISTANCE | t4.REDUCEDLENGTH | t4.GEODESICSCALE) && ((s5 || Math.abs(this.f) > 0.01) && (o3 = t4.SinCosSeries(true, l3, u3, this._C1a)), c3 = (1 + this._A1m1) * (o3 - this._B11)), p3 = this._calp0 * l3, 0 === (g3 = i4.hypot(this._salp0, this._calp0 * u3)) && (g3 = u3 = t4.tiny_), w3 = this._salp0, S3 = this._calp0 * u3, s5 && a4 & t4.DISTANCE && (I3.s12 = this._b * ((1 + this._A1m1) * n3 + c3)), a4 & t4.LONGITUDE && (M3 = this._salp0 * l3, x3 = u3, y3 = i4.copysign(1, this._salp0), f3 = ((a4 & t4.LONG_UNROLL ? y3 * (n3 - (Math.atan2(l3, u3) - Math.atan2(this._ssig1, this._csig1)) + (Math.atan2(y3 * M3, x3) - Math.atan2(y3 * this._somg1, this._comg1))) : Math.atan2(M3 * this._comg1 - x3 * this._somg1, x3 * this._comg1 + M3 * this._somg1)) + this._A3c * (n3 + (t4.SinCosSeries(true, l3, u3, this._C3a) - this._B31))) / i4.degree, I3.lon2 = a4 & t4.LONG_UNROLL ? this.lon1 + f3 : i4.AngNormalize(i4.AngNormalize(this.lon1) + i4.AngNormalize(f3))), a4 & t4.LATITUDE && (I3.lat2 = i4.atan2d(p3, this._f1 * g3)), a4 & t4.AZIMUTH && (I3.azi2 = i4.atan2d(w3, S3)), a4 & (t4.REDUCEDLENGTH | t4.GEODESICSCALE) && (b3 = t4.SinCosSeries(true, l3, u3, this._C2a), P3 = (1 + this._A2m1) * (b3 - this._B21), v3 = (this._A1m1 - this._A2m1) * n3 + (c3 - P3), a4 & t4.REDUCEDLENGTH && (I3.m12 = this._b * (E3 * (this._csig1 * l3) - this._dn1 * (this._ssig1 * u3) - this._csig1 * u3 * v3)), a4 & t4.GEODESICSCALE && (A3 = this._k2 * (l3 - this._ssig1) * (l3 + this._ssig1) / (this._dn1 + E3), I3.M12 = h3 + (A3 * l3 - u3 * v3) * this._ssig1 / this._dn1, I3.M21 = h3 - (A3 * this._ssig1 - this._csig1 * v3) * l3 / E3)), a4 & t4.AREA && (G3 = t4.SinCosSeries(false, l3, u3, this._C4a), 0 === this._calp0 || 0 === this._salp0 ? (C3 = w3 * this.calp1 - S3 * this.salp1, N3 = S3 * this.calp1 + w3 * this.salp1) : (C3 = this._calp0 * this._salp0 * (h3 <= 0 ? this._csig1 * (1 - h3) + r3 * this._ssig1 : r3 * (this._csig1 * r3 / (1 + h3) + this._ssig1)), N3 = i4.sq(this._salp0) + i4.sq(this._calp0) * this._csig1 * u3), I3.S12 = this._c2 * Math.atan2(C3, N3) + this._A4 * (G3 - this._B41)), s5 || (I3.a12 = n3 / i4.degree), I3) : (I3.a12 = NaN, I3);
|
|
5311
5306
|
}, s4.GeodesicLine.prototype.Position = function(t5, s5) {
|
|
5312
5307
|
return this.GenPosition(false, t5, s5);
|
|
5313
5308
|
}, s4.GeodesicLine.prototype.ArcPosition = function(t5, s5) {
|
|
@@ -5357,9 +5352,9 @@ ge.exports = function() {
|
|
|
5357
5352
|
return 0 === this.num || (l3.perimeter = this._perimetersum.Sum() + s5, this.polyline || (o3 = this._areasum.Sum(), c3 = this._crossings, o3 += (r4 = this._geod.Direct(this.lat, this.lon, t5, s5, this._mask)).S12, c3 += n3(this.lon, r4.lon2), c3 += a4(r4.lon2, this._lon0), r4 = this._geod.Inverse(r4.lat2, r4.lon2, this._lat0, this._lon0, this._mask), l3.perimeter += r4.s12, o3 += r4.S12, l3.area = h3(o3, this._area0, c3, i5, e5))), l3;
|
|
5358
5353
|
};
|
|
5359
5354
|
}(a3.PolygonArea, a3.Geodesic, a3.Math, a3.Accumulator), s3(a3);
|
|
5360
|
-
}(
|
|
5355
|
+
}(Ca)), Ca.exports;
|
|
5361
5356
|
}
|
|
5362
|
-
var Ia =
|
|
5357
|
+
var Ia = Na();
|
|
5363
5358
|
function za() {
|
|
5364
5359
|
this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0), this.g = new Ia.Geodesic.Geodesic(this.a, this.es / (1 + Math.sqrt(1 - this.es)));
|
|
5365
5360
|
}
|
|
@@ -5593,18 +5588,18 @@ ge.exports = function() {
|
|
|
5593
5588
|
function Gn() {
|
|
5594
5589
|
this.es = 0, this.long0 = void 0 !== this.long0 ? this.long0 : 0;
|
|
5595
5590
|
}
|
|
5596
|
-
function
|
|
5591
|
+
function Cn(t3) {
|
|
5597
5592
|
var s3 = yt2(t3.x - this.long0), i3 = t3.y, e3 = Math.asin(An * Math.sin(i3)), a3 = e3 * e3, n3 = a3 * a3 * a3;
|
|
5598
5593
|
return t3.x = s3 * Math.cos(e3) / (An * (En + 3 * bn * a3 + n3 * (7 * Pn + 9 * vn * a3))), t3.y = e3 * (En + bn * a3 + n3 * (Pn + vn * a3)), t3.x = this.a * t3.x + this.x0, t3.y = this.a * t3.y + this.y0, t3;
|
|
5599
5594
|
}
|
|
5600
|
-
function
|
|
5595
|
+
function Nn(t3) {
|
|
5601
5596
|
t3.x = (t3.x - this.x0) / this.a, t3.y = (t3.y - this.y0) / this.a;
|
|
5602
5597
|
var s3, i3, e3, a3, n3 = 1e-9, r3 = 12, h3 = t3.y;
|
|
5603
5598
|
for (a3 = 0; a3 < r3 && (h3 -= e3 = (h3 * (En + bn * (s3 = h3 * h3) + (i3 = s3 * s3 * s3) * (Pn + vn * s3)) - t3.y) / (En + 3 * bn * s3 + i3 * (7 * Pn + 9 * vn * s3)), !(Math.abs(e3) < n3)); ++a3)
|
|
5604
5599
|
;
|
|
5605
5600
|
return i3 = (s3 = h3 * h3) * s3 * s3, t3.x = An * t3.x * (En + 3 * bn * s3 + i3 * (7 * Pn + 9 * vn * s3)) / Math.cos(h3), t3.y = Math.asin(Math.sin(h3) / An), t3.x = yt2(t3.x + this.long0), t3;
|
|
5606
5601
|
}
|
|
5607
|
-
var In = { init: Gn, forward:
|
|
5602
|
+
var In = { init: Gn, forward: Cn, inverse: Nn, names: ["eqearth", "Equal Earth", "Equal_Earth"] }, zn = 1e-10;
|
|
5608
5603
|
function Tn() {
|
|
5609
5604
|
var t3;
|
|
5610
5605
|
if (this.phi1 = this.lat1, Math.abs(this.phi1) < zn)
|
|
@@ -5642,12 +5637,12 @@ ge.exports = function() {
|
|
|
5642
5637
|
function kn(t3) {
|
|
5643
5638
|
t3.Proj.projections.add(mi2), t3.Proj.projections.add(Pi2), t3.Proj.projections.add(Gi2), t3.Proj.projections.add(Bi2), t3.Proj.projections.add(Fi2), t3.Proj.projections.add(Xi2), t3.Proj.projections.add($i2), t3.Proj.projections.add(ee2), t3.Proj.projections.add(he2), t3.Proj.projections.add(Me2), t3.Proj.projections.add(ze2), t3.Proj.projections.add(Be2), t3.Proj.projections.add(je2), t3.Proj.projections.add(Xe2), t3.Proj.projections.add(Ke2), t3.Proj.projections.add(ia), t3.Proj.projections.add(ra), t3.Proj.projections.add(la), t3.Proj.projections.add(fa), t3.Proj.projections.add(Ma), t3.Proj.projections.add(Ea), t3.Proj.projections.add(Ga), t3.Proj.projections.add(Ra), t3.Proj.projections.add(ka), t3.Proj.projections.add(Xa), t3.Proj.projections.add(on), t3.Proj.projections.add(dn), t3.Proj.projections.add(gn), t3.Proj.projections.add(Sn), t3.Proj.projections.add(In), t3.Proj.projections.add(Bn);
|
|
5644
5639
|
}
|
|
5645
|
-
return ws2.defaultDatum = "WGS84", ws2.Proj = ss2, ws2.WGS84 = new ws2.Proj("WGS84"), ws2.Point = Xs2, ws2.toPoint = ms2, ws2.defs = at2, ws2.nadgrid = Ut2, ws2.transform = ps2, ws2.mgrs =
|
|
5640
|
+
return ws2.defaultDatum = "WGS84", ws2.Proj = ss2, ws2.WGS84 = new ws2.Proj("WGS84"), ws2.Point = Xs2, ws2.toPoint = ms2, ws2.defs = at2, ws2.nadgrid = Ut2, ws2.transform = ps2, ws2.mgrs = Ns2, ws2.version = "2.17.0", kn(ws2), ws2;
|
|
5646
5641
|
}();
|
|
5647
5642
|
var Me = ge.exports;
|
|
5648
5643
|
let xe = 1;
|
|
5649
5644
|
const we = new Array(2);
|
|
5650
|
-
class Se extends
|
|
5645
|
+
class Se extends Ct {
|
|
5651
5646
|
constructor(t2, s2, i2) {
|
|
5652
5647
|
super(), t2 || (t2 = "custom_" + xe++), this._name = t2, this._parameters = s2, Me.defs(this._name) || Me.defs(this._name, s2), i2 && i2.isBox3 && (this._geoBoundingBox = i2);
|
|
5653
5648
|
}
|
|
@@ -5669,7 +5664,7 @@ class Se extends Nt {
|
|
|
5669
5664
|
const a2 = Me(this.name, "EPSG:4326", we);
|
|
5670
5665
|
if (s2 || (s2 = new u()), i2) {
|
|
5671
5666
|
const i3 = this.geoBoundingBox;
|
|
5672
|
-
s2.x =
|
|
5667
|
+
s2.x = Nt(t2.x, a2[0], i3.max.x, e2.max.x), s2.y = Nt(t2.y, a2[1], i3.max.y, e2.max.y);
|
|
5673
5668
|
} else
|
|
5674
5669
|
s2.x = a2[0], s2.y = a2[1];
|
|
5675
5670
|
return s2.z = t2.z, s2;
|
|
@@ -5769,14 +5764,14 @@ class Ge {
|
|
|
5769
5764
|
return ht(this.index) ? this.normalBuffer[2 * this.index + 1] : (ve = Te(this, ve), ve.y);
|
|
5770
5765
|
}
|
|
5771
5766
|
}
|
|
5772
|
-
let
|
|
5773
|
-
const
|
|
5767
|
+
let Ce = -1;
|
|
5768
|
+
const Ne = [new u(), new u()], Ie = [new u(), new u()], ze = new u();
|
|
5774
5769
|
function Te(t2, s2) {
|
|
5775
|
-
++
|
|
5776
|
-
let i2 = Ce
|
|
5770
|
+
++Ce;
|
|
5771
|
+
let i2 = Ne[Ce], e2 = Ie[Ce];
|
|
5777
5772
|
return i2.copy(Ke(t2.first.getNormalX(), t2.first.getNormalY())), e2.copy(Ke(t2.second.getNormalX(), t2.second.getNormalY())), ze.lerpVectors(i2, e2, t2.ratio), ze.normalize(), function(t3, s3) {
|
|
5778
5773
|
Ae(t3, 255, s3);
|
|
5779
|
-
}(ze, s2), --
|
|
5774
|
+
}(ze, s2), --Ce, s2;
|
|
5780
5775
|
}
|
|
5781
5776
|
const Oe = new c(), Re = [];
|
|
5782
5777
|
Re.push(new Ge()), Re.push(new Ge()), Re.push(new Ge()), Re.push(new Ge()), self.addEventListener("message", (t2) => {
|
|
@@ -5805,14 +5800,14 @@ self.upsampleQuantizedTerrainMesh = (t2) => {
|
|
|
5805
5800
|
y2 = y2.subarray(0, t2.indexCountWithoutSkirts);
|
|
5806
5801
|
let p2 = 0;
|
|
5807
5802
|
const g2 = t2.vertexCountWithoutSkirts, M2 = t2.minimumHeight, x2 = t2.maximumHeight, w2 = new Array(g2), S2 = new Array(g2), E2 = new Array(g2), b2 = e2 ? new Array(2 * g2) : void 0;
|
|
5808
|
-
let P2, v2, A2, G2,
|
|
5809
|
-
for (e2 && (
|
|
5810
|
-
const t3 = self.decodeTextureCoordinates(f2, v2,
|
|
5811
|
-
if (P2 = self.decodeHeight(f2, v2,
|
|
5812
|
-
const t4 = self.getOctEncodedNormal(f2, v2,
|
|
5803
|
+
let P2, v2, A2, G2, C2, N2 = 6;
|
|
5804
|
+
for (e2 && (N2 += 3), v2 = 0, A2 = 0; v2 < g2; ++v2, A2 += 2) {
|
|
5805
|
+
const t3 = self.decodeTextureCoordinates(f2, v2, N2, We);
|
|
5806
|
+
if (P2 = self.decodeHeight(f2, v2, N2), G2 = o.clamp(t3.x * qe | 0, 0, qe), C2 = o.clamp(t3.y * qe | 0, 0, qe), E2[v2] = o.clamp((P2 - M2) / (x2 - M2) * qe | 0, 0, qe), G2 < 20 && (G2 = 0), C2 < 20 && (C2 = 0), qe - G2 < 20 && (G2 = qe), qe - C2 < 20 && (C2 = qe), w2[v2] = G2, S2[v2] = C2, e2) {
|
|
5807
|
+
const t4 = self.getOctEncodedNormal(f2, v2, N2, 6, Ze);
|
|
5813
5808
|
b2[A2] = t4.x, b2[A2 + 1] = t4.y;
|
|
5814
5809
|
}
|
|
5815
|
-
(s2 && G2 >= Le || !s2 && G2 <= Le) && (i2 &&
|
|
5810
|
+
(s2 && G2 >= Le || !s2 && G2 <= Le) && (i2 && C2 >= Le || !i2 && C2 <= Le) && (_2[v2] = p2, c2.push(G2), l2.push(C2), u2.push(E2[v2]), e2 && (d2.push(b2[A2]), d2.push(b2[A2 + 1])), ++p2);
|
|
5816
5811
|
}
|
|
5817
5812
|
const I2 = [];
|
|
5818
5813
|
I2.push(new Ge()), I2.push(new Ge()), I2.push(new Ge());
|
|
@@ -5828,7 +5823,7 @@ self.upsampleQuantizedTerrainMesh = (t2) => {
|
|
|
5828
5823
|
let U2 = Number.MAX_VALUE, j2 = -U2;
|
|
5829
5824
|
const F2 = it.clone(t2.childRectangle);
|
|
5830
5825
|
for (F2.east, F2.west, v2 = 0; v2 < c2.length; v2++)
|
|
5831
|
-
G2 = Math.round(c2[v2]), G2 <= a2 ? (L2.push(v2), G2 = 0) : G2 >= n2 ? (k2.push(v2), G2 = qe) : G2 = 2 * G2 + R2, c2[v2] = G2,
|
|
5826
|
+
G2 = Math.round(c2[v2]), G2 <= a2 ? (L2.push(v2), G2 = 0) : G2 >= n2 ? (k2.push(v2), G2 = qe) : G2 = 2 * G2 + R2, c2[v2] = G2, C2 = Math.round(l2[v2]), C2 <= r2 ? (B2.push(v2), C2 = 0) : C2 >= h2 ? (D2.push(v2), C2 = qe) : C2 = 2 * C2 + q2, l2[v2] = C2, P2 = o.lerp(M2, x2, u2[v2] / qe), U2 = Math.min(U2, P2), j2 = Math.max(j2, P2), u2[v2] = P2;
|
|
5832
5827
|
const V2 = j2 - U2, W2 = new Uint16Array(c2.length + l2.length + u2.length);
|
|
5833
5828
|
for (v2 = 0; v2 < c2.length; ++v2)
|
|
5834
5829
|
W2[v2] = c2[v2];
|
|
@@ -5848,16 +5843,16 @@ self.upsampleQuantizedTerrainMesh = (t2) => {
|
|
|
5848
5843
|
v2.x = Number.POSITIVE_INFINITY, v2.y = Number.POSITIVE_INFINITY, v2.z = Number.POSITIVE_INFINITY;
|
|
5849
5844
|
const A2 = Xe;
|
|
5850
5845
|
A2.x = Number.NEGATIVE_INFINITY, A2.y = Number.NEGATIVE_INFINITY, A2.z = Number.NEGATIVE_INFINITY;
|
|
5851
|
-
let G2 = Number.POSITIVE_INFINITY,
|
|
5846
|
+
let G2 = Number.POSITIVE_INFINITY, C2 = Number.NEGATIVE_INFINITY, N2 = Number.POSITIVE_INFINITY, I2 = Number.NEGATIVE_INFINITY;
|
|
5852
5847
|
for (let t3 = 0; t3 < l2; t3++) {
|
|
5853
5848
|
const s3 = x2[t3], e3 = w2[t3], a3 = s3 / qe, n3 = e3 / qe, r3 = o.lerp(g2, M2, S2[t3] / qe);
|
|
5854
|
-
Ye.x = o.lerp(_2, y2, a3), Ye.y = o.lerp(f2, p2, n3), Ye.z = r3, G2 = Math.min(Ye.x, G2),
|
|
5849
|
+
Ye.x = o.lerp(_2, y2, a3), Ye.y = o.lerp(f2, p2, n3), Ye.z = r3, G2 = Math.min(Ye.x, G2), C2 = Math.max(Ye.x, C2), N2 = Math.min(Ye.y, N2), I2 = Math.max(Ye.y, I2), Ye.x = o.radToDeg(Ye.x), Ye.y = o.radToDeg(Ye.y);
|
|
5855
5850
|
let h3 = i2.projectCoordinate(Ye, new u());
|
|
5856
5851
|
E2[t3] = new c(a3, n3), b2[t3] = r3, P2[t3] = h3;
|
|
5857
5852
|
}
|
|
5858
5853
|
const z2 = t2.westIndices.slice().sort((t3, s3) => E2[t3].y - E2[s3].y), T2 = t2.eastIndices.slice().sort((t3, s3) => E2[s3].y - E2[t3].y), O2 = t2.southIndices.slice().sort((t3, s3) => E2[s3].x - E2[t3].x), R2 = t2.northIndices.slice().sort((t3, s3) => E2[t3].x - E2[s3].x), q2 = 637e4 / (2 << t2.level) / 2, L2 = Math.max(0, 2 * (d2 - 4)), B2 = t2.indices.length + 3 * L2, k2 = pt.createTypedArray(l2 + L2, B2);
|
|
5859
5854
|
k2.set(t2.indices, 0);
|
|
5860
|
-
const D2 = 1e-4, U2 = (
|
|
5855
|
+
const D2 = 1e-4, U2 = (C2 - G2) * D2, j2 = (I2 - N2) * D2, F2 = -U2, V2 = U2, W2 = j2, H2 = -j2;
|
|
5861
5856
|
let X2 = 6;
|
|
5862
5857
|
a2 && (X2 += 3);
|
|
5863
5858
|
let Y2 = 0;
|
|
@@ -5936,8 +5931,8 @@ self.getOctEncodedNormal = (t2, s2, i2, e2, a2) => {
|
|
|
5936
5931
|
const P2 = f2.projectCoordinate(Ye, ze);
|
|
5937
5932
|
if (a2 = self.encode(t2, a2, e2, P2, b2, Ye.z, Oe, p2), 0 === m3)
|
|
5938
5933
|
continue;
|
|
5939
|
-
const v2 = E2, A2 = s2 + m3 - 1, G2 = _3,
|
|
5940
|
-
i2[l2++] = v2, i2[l2++] = G2, i2[l2++] = A2, i2[l2++] = A2, i2[l2++] = G2, i2[l2++] =
|
|
5934
|
+
const v2 = E2, A2 = s2 + m3 - 1, G2 = _3, C2 = s2 + m3;
|
|
5935
|
+
i2[l2++] = v2, i2[l2++] = G2, i2[l2++] = A2, i2[l2++] = A2, i2[l2++] = G2, i2[l2++] = C2, E2 = _3;
|
|
5941
5936
|
}
|
|
5942
5937
|
return { offset: l2, bufferIndex: a2 };
|
|
5943
5938
|
};
|