@reearth/core 0.0.7-alpha.59 → 0.0.7-alpha.60
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/dist/core.js +482 -485
- package/dist/core.umd.cjs +2 -2
- package/package.json +1 -1
- package/src/engines/Cesium/Feature/Marker/index.tsx +0 -3
package/dist/core.js
CHANGED
|
@@ -2245,8 +2245,8 @@ var kC = Lh && Lh.isMap, U6 = kC ? zb(kC) : W6, D6 = "[object Set]";
|
|
|
2245
2245
|
function B6(e) {
|
|
2246
2246
|
return ta(e) && ls(e) == D6;
|
|
2247
2247
|
}
|
|
2248
|
-
var WC = Lh && Lh.isSet, Y6 = WC ? zb(WC) : B6, H6 = 1, j6 = 2, K6 = 4, qO = "[object Arguments]", J6 = "[object Array]", Q6 = "[object Boolean]", q6 = "[object Date]", $6 = "[object Error]", $O = "[object Function]", eY = "[object GeneratorFunction]", tY = "[object Map]", nY = "[object Number]",
|
|
2249
|
-
Tn[qO] = Tn[J6] = Tn[cY] = Tn[lY] = Tn[Q6] = Tn[q6] = Tn[uY] = Tn[hY] = Tn[dY] = Tn[fY] = Tn[pY] = Tn[tY] = Tn[nY] = Tn[
|
|
2248
|
+
var WC = Lh && Lh.isSet, Y6 = WC ? zb(WC) : B6, H6 = 1, j6 = 2, K6 = 4, qO = "[object Arguments]", J6 = "[object Array]", Q6 = "[object Boolean]", q6 = "[object Date]", $6 = "[object Error]", $O = "[object Function]", eY = "[object GeneratorFunction]", tY = "[object Map]", nY = "[object Number]", e9 = "[object Object]", iY = "[object RegExp]", rY = "[object Set]", oY = "[object String]", sY = "[object Symbol]", aY = "[object WeakMap]", cY = "[object ArrayBuffer]", lY = "[object DataView]", uY = "[object Float32Array]", hY = "[object Float64Array]", dY = "[object Int8Array]", fY = "[object Int16Array]", pY = "[object Int32Array]", mY = "[object Uint8Array]", gY = "[object Uint8ClampedArray]", yY = "[object Uint16Array]", bY = "[object Uint32Array]", Tn = {};
|
|
2249
|
+
Tn[qO] = Tn[J6] = Tn[cY] = Tn[lY] = Tn[Q6] = Tn[q6] = Tn[uY] = Tn[hY] = Tn[dY] = Tn[fY] = Tn[pY] = Tn[tY] = Tn[nY] = Tn[e9] = Tn[iY] = Tn[rY] = Tn[oY] = Tn[sY] = Tn[mY] = Tn[gY] = Tn[yY] = Tn[bY] = !0;
|
|
2250
2250
|
Tn[$6] = Tn[$O] = Tn[aY] = !1;
|
|
2251
2251
|
function zf(e, t, n, i, r, o) {
|
|
2252
2252
|
var s, a = t & H6, c = t & j6, l = t & K6;
|
|
@@ -2262,7 +2262,7 @@ function zf(e, t, n, i, r, o) {
|
|
|
2262
2262
|
var h = ls(e), d = h == $O || h == eY;
|
|
2263
2263
|
if (cp(e))
|
|
2264
2264
|
return BO(e, a);
|
|
2265
|
-
if (h ==
|
|
2265
|
+
if (h == e9 || h == qO || d && !r) {
|
|
2266
2266
|
if (s = c || d ? {} : QO(e), !a)
|
|
2267
2267
|
return c ? a6(e, t6(s, e)) : o6(e, e6(s, e));
|
|
2268
2268
|
} else {
|
|
@@ -2313,7 +2313,7 @@ function uS(e, t) {
|
|
|
2313
2313
|
return e.has(t);
|
|
2314
2314
|
}
|
|
2315
2315
|
var EY = 1, CY = 2;
|
|
2316
|
-
function
|
|
2316
|
+
function t9(e, t, n, i, r, o) {
|
|
2317
2317
|
var s = n & EY, a = e.length, c = t.length;
|
|
2318
2318
|
if (a != c && !(s && c > a))
|
|
2319
2319
|
return !1;
|
|
@@ -2386,7 +2386,7 @@ function kY(e, t, n, i, r, o, s) {
|
|
|
2386
2386
|
if (l)
|
|
2387
2387
|
return l == t;
|
|
2388
2388
|
i |= MY, s.set(e, t);
|
|
2389
|
-
var u =
|
|
2389
|
+
var u = t9(a(e), a(t), i, r, o, s);
|
|
2390
2390
|
return s.delete(e), u;
|
|
2391
2391
|
case NY:
|
|
2392
2392
|
if (C1)
|
|
@@ -2437,7 +2437,7 @@ function jY(e, t, n, i, r, o) {
|
|
|
2437
2437
|
s = !0, u = !1;
|
|
2438
2438
|
}
|
|
2439
2439
|
if (d && !u)
|
|
2440
|
-
return o || (o = new ps()), s || tS(e) ?
|
|
2440
|
+
return o || (o = new ps()), s || tS(e) ? t9(e, t, n, i, r, o) : kY(e, t, c, n, i, r, o);
|
|
2441
2441
|
if (!(n & YY)) {
|
|
2442
2442
|
var f = u && YC.call(e, "__wrapped__"), p = h && YC.call(t, "__wrapped__");
|
|
2443
2443
|
if (f || p) {
|
|
@@ -2474,24 +2474,24 @@ function QY(e, t, n, i) {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
return !0;
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function n9(e) {
|
|
2478
2478
|
return e === e && !ro(e);
|
|
2479
2479
|
}
|
|
2480
2480
|
function qY(e) {
|
|
2481
2481
|
for (var t = pm(e), n = t.length; n--; ) {
|
|
2482
2482
|
var i = t[n], r = e[i];
|
|
2483
|
-
t[n] = [i, r,
|
|
2483
|
+
t[n] = [i, r, n9(r)];
|
|
2484
2484
|
}
|
|
2485
2485
|
return t;
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2487
|
+
function i9(e, t) {
|
|
2488
2488
|
return function(n) {
|
|
2489
2489
|
return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
|
|
2490
2490
|
};
|
|
2491
2491
|
}
|
|
2492
2492
|
function $Y(e) {
|
|
2493
2493
|
var t = qY(e);
|
|
2494
|
-
return t.length == 1 && t[0][2] ?
|
|
2494
|
+
return t.length == 1 && t[0][2] ? i9(t[0][0], t[0][1]) : function(n) {
|
|
2495
2495
|
return n === e || QY(n, e, t);
|
|
2496
2496
|
};
|
|
2497
2497
|
}
|
|
@@ -2508,14 +2508,14 @@ function tH(e, t, n) {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
return o || ++i != r ? o : (r = e == null ? 0 : e.length, !!r && $x(r) && Vb(s, r) && (Sr(e) || ap(e)));
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function r9(e, t) {
|
|
2512
2512
|
return e != null && tH(e, t, eH);
|
|
2513
2513
|
}
|
|
2514
2514
|
var nH = 1, iH = 2;
|
|
2515
2515
|
function rH(e, t) {
|
|
2516
|
-
return nS(e) &&
|
|
2516
|
+
return nS(e) && n9(t) ? i9(cd(e), t) : function(n) {
|
|
2517
2517
|
var i = X8(n, e);
|
|
2518
|
-
return i === void 0 && i === t ?
|
|
2518
|
+
return i === void 0 && i === t ? r9(n, e) : Zb(t, i, nH | iH);
|
|
2519
2519
|
};
|
|
2520
2520
|
}
|
|
2521
2521
|
function oH(e) {
|
|
@@ -2551,9 +2551,9 @@ function lH(e) {
|
|
|
2551
2551
|
return t;
|
|
2552
2552
|
};
|
|
2553
2553
|
}
|
|
2554
|
-
var
|
|
2554
|
+
var o9 = lH();
|
|
2555
2555
|
function uH(e, t) {
|
|
2556
|
-
return e &&
|
|
2556
|
+
return e && o9(e, t, pm);
|
|
2557
2557
|
}
|
|
2558
2558
|
function hH(e, t) {
|
|
2559
2559
|
return function(n, i) {
|
|
@@ -2578,13 +2578,13 @@ function pH(e, t) {
|
|
|
2578
2578
|
return r(n, e, mm(i), o);
|
|
2579
2579
|
};
|
|
2580
2580
|
}
|
|
2581
|
-
var
|
|
2581
|
+
var s9 = Object.prototype, mH = s9.hasOwnProperty, a9 = qx(function(e, t) {
|
|
2582
2582
|
e = Object(e);
|
|
2583
2583
|
var n = -1, i = t.length, r = i > 2 ? t[2] : void 0;
|
|
2584
2584
|
for (r && VO(t[0], t[1], r) && (i = 1); ++n < i; )
|
|
2585
2585
|
for (var o = t[n], s = sd(o), a = -1, c = s.length; ++a < c; ) {
|
|
2586
2586
|
var l = s[a], u = e[l];
|
|
2587
|
-
(u === void 0 || rd(u,
|
|
2587
|
+
(u === void 0 || rd(u, s9[l]) && !mH.call(e, l)) && (e[l] = o[l]);
|
|
2588
2588
|
}
|
|
2589
2589
|
return e;
|
|
2590
2590
|
});
|
|
@@ -2614,10 +2614,10 @@ function yH(e, t, n, i, r, o, s) {
|
|
|
2614
2614
|
}
|
|
2615
2615
|
h && (s.set(c, u), r(u, c, i, o, s), s.delete(c)), S2(e, n, u);
|
|
2616
2616
|
}
|
|
2617
|
-
function
|
|
2618
|
-
e !== t &&
|
|
2617
|
+
function c9(e, t, n, i, r) {
|
|
2618
|
+
e !== t && o9(t, function(o, s) {
|
|
2619
2619
|
if (r || (r = new ps()), ro(o))
|
|
2620
|
-
yH(e, t, s, n,
|
|
2620
|
+
yH(e, t, s, n, c9, i, r);
|
|
2621
2621
|
else {
|
|
2622
2622
|
var a = i ? i(E2(e, s), o, s + "", e, t, r) : void 0;
|
|
2623
2623
|
a === void 0 && (a = o), S2(e, s, a);
|
|
@@ -2642,11 +2642,11 @@ function _H(e, t, n, i) {
|
|
|
2642
2642
|
}
|
|
2643
2643
|
return c;
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2645
|
+
function l9(e) {
|
|
2646
2646
|
var t = e == null ? 0 : e.length;
|
|
2647
2647
|
return t ? e[t - 1] : void 0;
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2649
|
+
function u9(e) {
|
|
2650
2650
|
for (var t = -1, n = e == null ? 0 : e.length, i = {}; ++t < n; ) {
|
|
2651
2651
|
var r = e[t];
|
|
2652
2652
|
i[r[0]] = r[1];
|
|
@@ -2663,7 +2663,7 @@ function Ar(e, t) {
|
|
|
2663
2663
|
return Zb(e, t);
|
|
2664
2664
|
}
|
|
2665
2665
|
var dS = mB(function(e, t, n) {
|
|
2666
|
-
|
|
2666
|
+
c9(e, t, n);
|
|
2667
2667
|
}), SH = "Expected a function";
|
|
2668
2668
|
function TH(e) {
|
|
2669
2669
|
if (typeof e != "function")
|
|
@@ -2702,7 +2702,7 @@ function RH(e, t) {
|
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
2704
|
var s = xH(e, t);
|
|
2705
|
-
return s == null || delete s[cd(
|
|
2705
|
+
return s == null || delete s[cd(l9(t))];
|
|
2706
2706
|
}
|
|
2707
2707
|
function IH(e) {
|
|
2708
2708
|
return UO(e) ? void 0 : e;
|
|
@@ -2735,7 +2735,7 @@ function GH(e, t, n, i) {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
return e;
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function h9(e, t, n) {
|
|
2739
2739
|
for (var i = -1, r = t.length, o = {}; ++i < r; ) {
|
|
2740
2740
|
var s = t[i], a = Xb(e, s);
|
|
2741
2741
|
n(a, s) && GH(o, ad(s, e), a);
|
|
@@ -2748,7 +2748,7 @@ function OH(e, t) {
|
|
|
2748
2748
|
var n = Ob(aS(e), function(i) {
|
|
2749
2749
|
return [i];
|
|
2750
2750
|
});
|
|
2751
|
-
return t = mm(t),
|
|
2751
|
+
return t = mm(t), h9(e, n, function(i, r) {
|
|
2752
2752
|
return t(i, r[0]);
|
|
2753
2753
|
});
|
|
2754
2754
|
}
|
|
@@ -2756,8 +2756,8 @@ function hp(e, t) {
|
|
|
2756
2756
|
return OH(e, TH(mm(t)));
|
|
2757
2757
|
}
|
|
2758
2758
|
function VH(e, t) {
|
|
2759
|
-
return
|
|
2760
|
-
return
|
|
2759
|
+
return h9(e, t, function(n, i) {
|
|
2760
|
+
return r9(e, i);
|
|
2761
2761
|
});
|
|
2762
2762
|
}
|
|
2763
2763
|
var io = kO(function(e, t) {
|
|
@@ -2798,15 +2798,15 @@ function XH(e, t, n) {
|
|
|
2798
2798
|
a != r && (o[r] = _H(o[r] || s, e[a], t, n));
|
|
2799
2799
|
return R2(ZO(o), t, n);
|
|
2800
2800
|
}
|
|
2801
|
-
var
|
|
2802
|
-
var t =
|
|
2801
|
+
var d9 = qx(function(e) {
|
|
2802
|
+
var t = l9(e);
|
|
2803
2803
|
return T2(t) && (t = void 0), XH(YO(e, T2), mm(t));
|
|
2804
2804
|
}), HC = 63710088e-1;
|
|
2805
2805
|
function kl(e, t, n = {}) {
|
|
2806
2806
|
const i = { type: "Feature" };
|
|
2807
2807
|
return (n.id === 0 || n.id) && (i.id = n.id), n.bbox && (i.bbox = n.bbox), i.properties = t || {}, i.geometry = e, i;
|
|
2808
2808
|
}
|
|
2809
|
-
function
|
|
2809
|
+
function f9(e, t, n = {}) {
|
|
2810
2810
|
if (!e)
|
|
2811
2811
|
throw new Error("coordinates is required");
|
|
2812
2812
|
if (!Array.isArray(e))
|
|
@@ -2852,7 +2852,7 @@ function I2(e, t = {}) {
|
|
|
2852
2852
|
function jC(e) {
|
|
2853
2853
|
return !isNaN(e) && e !== null && !Array.isArray(e);
|
|
2854
2854
|
}
|
|
2855
|
-
function
|
|
2855
|
+
function p9(e) {
|
|
2856
2856
|
if (!e)
|
|
2857
2857
|
throw new Error("coord is required");
|
|
2858
2858
|
if (!Array.isArray(e)) {
|
|
@@ -2880,14 +2880,14 @@ function ZH(e) {
|
|
|
2880
2880
|
function kH(e) {
|
|
2881
2881
|
return e.type === "Feature" ? e.geometry : e;
|
|
2882
2882
|
}
|
|
2883
|
-
const Km =
|
|
2883
|
+
const Km = g9(p9), WH = g9(ZH), m9 = (e) => {
|
|
2884
2884
|
if (!(typeof e != "object" || !e || !("type" in e))) {
|
|
2885
|
-
if (e.type === "Feature") return
|
|
2885
|
+
if (e.type === "Feature") return m9(e.geometry);
|
|
2886
2886
|
if (!(e.type !== "Point" && e.type !== "MultiPoint" && e.type !== "LineString" && e.type !== "MultiLineString" && e.type !== "Polygon" && e.type !== "MultiPolygon"))
|
|
2887
2887
|
return e;
|
|
2888
2888
|
}
|
|
2889
2889
|
};
|
|
2890
|
-
function
|
|
2890
|
+
function g9(e) {
|
|
2891
2891
|
return (t) => {
|
|
2892
2892
|
try {
|
|
2893
2893
|
return e(t);
|
|
@@ -2921,7 +2921,7 @@ const pS = {
|
|
|
2921
2921
|
function DH(e) {
|
|
2922
2922
|
return BH(e) ?? YH(e);
|
|
2923
2923
|
}
|
|
2924
|
-
function
|
|
2924
|
+
function y9(e) {
|
|
2925
2925
|
return hp(
|
|
2926
2926
|
{
|
|
2927
2927
|
id: e.id,
|
|
@@ -2941,13 +2941,13 @@ function yV(e) {
|
|
|
2941
2941
|
function BH(e) {
|
|
2942
2942
|
if (e.type === "group")
|
|
2943
2943
|
return {
|
|
2944
|
-
...
|
|
2944
|
+
...y9(e),
|
|
2945
2945
|
children: e.children?.map(DH).filter((t) => !!t) ?? []
|
|
2946
2946
|
};
|
|
2947
2947
|
}
|
|
2948
2948
|
function YH(e) {
|
|
2949
2949
|
if (e.type === "simple")
|
|
2950
|
-
return
|
|
2950
|
+
return y9(e);
|
|
2951
2951
|
}
|
|
2952
2952
|
function vXe(e) {
|
|
2953
2953
|
if (!e || typeof e != "object" || e.type !== "simple") return;
|
|
@@ -2975,7 +2975,7 @@ function vXe(e) {
|
|
|
2975
2975
|
}
|
|
2976
2976
|
};
|
|
2977
2977
|
} else if ("polygon" in e) {
|
|
2978
|
-
const r =
|
|
2978
|
+
const r = m9(t);
|
|
2979
2979
|
i = "polygon", n = {
|
|
2980
2980
|
default: {
|
|
2981
2981
|
...e.polygon,
|
|
@@ -3054,10 +3054,10 @@ function vXe(e) {
|
|
|
3054
3054
|
} : {}
|
|
3055
3055
|
};
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3057
|
+
function b9(e) {
|
|
3058
3058
|
return e ? HH(e) ?? jH(e) : void 0;
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3060
|
+
function _9(e) {
|
|
3061
3061
|
const t = hp(
|
|
3062
3062
|
{
|
|
3063
3063
|
extensionId: e.extensionId,
|
|
@@ -3083,8 +3083,8 @@ function HH(e) {
|
|
|
3083
3083
|
if (Array.isArray(e.children))
|
|
3084
3084
|
return {
|
|
3085
3085
|
type: "group",
|
|
3086
|
-
...
|
|
3087
|
-
children: e.children?.map(
|
|
3086
|
+
..._9(e),
|
|
3087
|
+
children: e.children?.map(b9).filter((t) => !!t) ?? []
|
|
3088
3088
|
};
|
|
3089
3089
|
}
|
|
3090
3090
|
function jH(e) {
|
|
@@ -3239,7 +3239,7 @@ function jH(e) {
|
|
|
3239
3239
|
return hp(
|
|
3240
3240
|
{
|
|
3241
3241
|
type: "simple",
|
|
3242
|
-
...
|
|
3242
|
+
..._9(e),
|
|
3243
3243
|
data: n,
|
|
3244
3244
|
...t && r ? { [t]: r } : {}
|
|
3245
3245
|
},
|
|
@@ -5988,7 +5988,7 @@ class Pj {
|
|
|
5988
5988
|
en.prototype.vm = {
|
|
5989
5989
|
Script: Pj
|
|
5990
5990
|
};
|
|
5991
|
-
const Gj = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Oj = (e) => Array.from(window.crypto.getRandomValues(new Uint8Array(e))).map((t) => Gj[t % e]).join("").toLowerCase(),
|
|
5991
|
+
const Gj = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Oj = (e) => Array.from(window.crypto.getRandomValues(new Uint8Array(e))).map((t) => Gj[t % e]).join("").toLowerCase(), v9 = (e) => {
|
|
5992
5992
|
if (typeof e != "object" || e === null)
|
|
5993
5993
|
return e;
|
|
5994
5994
|
for (const t in e)
|
|
@@ -5998,10 +5998,10 @@ const Gj = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Oj
|
|
|
5998
5998
|
} catch {
|
|
5999
5999
|
console.error("Invalid JSON:", e[t]);
|
|
6000
6000
|
}
|
|
6001
|
-
else typeof e[t] == "object" && (e[t] =
|
|
6001
|
+
else typeof e[t] == "object" && (e[t] = v9(e[t]));
|
|
6002
6002
|
return e;
|
|
6003
6003
|
}, yS = "czm_";
|
|
6004
|
-
function
|
|
6004
|
+
function w9(e, t) {
|
|
6005
6005
|
let n = e, i = "";
|
|
6006
6006
|
const r = [];
|
|
6007
6007
|
let o = n.indexOf("${");
|
|
@@ -6065,7 +6065,7 @@ const rc = (e) => `$reearth_${e}_$`, xg = {
|
|
|
6065
6065
|
}, Aj = (e) => {
|
|
6066
6066
|
const t = e.replace(/-/g, xg["-"]).replace(/:/g, xg[":"]);
|
|
6067
6067
|
return /(\]|\)|\})[^[.]+$/.test(t) ? Object.entries(xg).reduce((n, [i, r]) => n.replaceAll(i, r), t) : t;
|
|
6068
|
-
},
|
|
6068
|
+
}, x9 = (e) => Object.entries(xg).reduce((t, [n, i]) => t.replaceAll(i, n), e), Nj = new Set(tj), qC = new Set(nj);
|
|
6069
6069
|
function on(e, t) {
|
|
6070
6070
|
let n = new Error("failed to parse");
|
|
6071
6071
|
const i = t.type;
|
|
@@ -6112,7 +6112,7 @@ function Xj(e) {
|
|
|
6112
6112
|
if (t === "number")
|
|
6113
6113
|
return new Gt(vt.LITERAL_NUMBER, e.value);
|
|
6114
6114
|
if (t === "string")
|
|
6115
|
-
return e.value.indexOf("${") >= 0 ? new Gt(vt.VARIABLE_IN_STRING, e.value) : e.value.indexOf("$reearth_") >= 0 ? new Gt(vt.LITERAL_STRING,
|
|
6115
|
+
return e.value.indexOf("${") >= 0 ? new Gt(vt.VARIABLE_IN_STRING, e.value) : e.value.indexOf("$reearth_") >= 0 ? new Gt(vt.LITERAL_STRING, x9(e.value)) : new Gt(vt.LITERAL_STRING, Zj(e.value));
|
|
6116
6116
|
throw new Error(`${e} is not a function.`);
|
|
6117
6117
|
}
|
|
6118
6118
|
function Zj(e) {
|
|
@@ -6239,7 +6239,7 @@ function Yj(e) {
|
|
|
6239
6239
|
return e.substring(0, 4) === yS;
|
|
6240
6240
|
}
|
|
6241
6241
|
function Hj(e) {
|
|
6242
|
-
return
|
|
6242
|
+
return x9(e).substring(4);
|
|
6243
6243
|
}
|
|
6244
6244
|
const L2 = /* @__PURE__ */ new Map(), P2 = /* @__PURE__ */ new Map(), $C = /* @__PURE__ */ new Map(), eR = /* @__PURE__ */ new Map();
|
|
6245
6245
|
class xy {
|
|
@@ -6249,14 +6249,14 @@ class xy {
|
|
|
6249
6249
|
constructor(t, n, i) {
|
|
6250
6250
|
this._expression = t, this._feature = n;
|
|
6251
6251
|
let r = [];
|
|
6252
|
-
t =
|
|
6252
|
+
t = S9(t, i);
|
|
6253
6253
|
const o = P2.get(t);
|
|
6254
6254
|
if (o)
|
|
6255
6255
|
[t, r] = o;
|
|
6256
6256
|
else {
|
|
6257
6257
|
const a = t;
|
|
6258
|
-
[t, r] =
|
|
6259
|
-
|
|
6258
|
+
[t, r] = w9(
|
|
6259
|
+
T9(t),
|
|
6260
6260
|
this._feature?.properties
|
|
6261
6261
|
), t.includes(yS) && P2.set(a, [t, r]);
|
|
6262
6262
|
}
|
|
@@ -6281,7 +6281,7 @@ class xy {
|
|
|
6281
6281
|
return this._runtimeAst.evaluate(this._feature);
|
|
6282
6282
|
}
|
|
6283
6283
|
}
|
|
6284
|
-
function
|
|
6284
|
+
function S9(e, t) {
|
|
6285
6285
|
if (typeof t > "u")
|
|
6286
6286
|
return e;
|
|
6287
6287
|
const n = JSON.stringify(Object.entries(t).sort()), i = e + n, r = eR.get(i);
|
|
@@ -6295,11 +6295,11 @@ function SV(e, t) {
|
|
|
6295
6295
|
);
|
|
6296
6296
|
return eR.set(i, s), s;
|
|
6297
6297
|
}
|
|
6298
|
-
function
|
|
6298
|
+
function T9(e) {
|
|
6299
6299
|
return e.replace(ij, rj);
|
|
6300
6300
|
}
|
|
6301
6301
|
function Jm(e, t, n) {
|
|
6302
|
-
P2.delete(e), e =
|
|
6302
|
+
P2.delete(e), e = S9(e, n), [e] = w9(T9(e), t?.properties), L2.delete(e);
|
|
6303
6303
|
}
|
|
6304
6304
|
class jj {
|
|
6305
6305
|
_conditions;
|
|
@@ -6361,20 +6361,20 @@ function Jj(e, t) {
|
|
|
6361
6361
|
async function Qj(e, t) {
|
|
6362
6362
|
const n = e.data ? await t.getAllFeatures(e.data) : void 0, i = io(e, kb), r = Jj(n, e.data?.time);
|
|
6363
6363
|
return {
|
|
6364
|
-
layer:
|
|
6365
|
-
features: n?.map((o, s) =>
|
|
6364
|
+
layer: C9(i, e),
|
|
6365
|
+
features: n?.map((o, s) => E9(e, o, r?.[s]))
|
|
6366
6366
|
};
|
|
6367
6367
|
}
|
|
6368
|
-
const
|
|
6368
|
+
const E9 = (e, t, n) => {
|
|
6369
6369
|
const i = io(e, kb), r = e7(e, t);
|
|
6370
6370
|
return {
|
|
6371
6371
|
...r,
|
|
6372
|
-
...
|
|
6372
|
+
...C9(i, e, r),
|
|
6373
6373
|
type: "computedFeature",
|
|
6374
6374
|
interval: n
|
|
6375
6375
|
};
|
|
6376
6376
|
};
|
|
6377
|
-
function
|
|
6377
|
+
function C9(e, t, n) {
|
|
6378
6378
|
if (!n) {
|
|
6379
6379
|
if (!t.id)
|
|
6380
6380
|
throw new Error("layer id is required");
|
|
@@ -6385,25 +6385,25 @@ function CV(e, t, n) {
|
|
|
6385
6385
|
};
|
|
6386
6386
|
}
|
|
6387
6387
|
return Object.fromEntries(
|
|
6388
|
-
Object.entries(e).map(([i, r]) => r ? [i,
|
|
6388
|
+
Object.entries(e).map(([i, r]) => r ? [i, R9(r, t, n)] : void 0).filter((i) => !!i)
|
|
6389
6389
|
);
|
|
6390
6390
|
}
|
|
6391
|
-
function
|
|
6391
|
+
function R9(e, t, n) {
|
|
6392
6392
|
return Object.fromEntries(
|
|
6393
|
-
Object.entries(e).map(([i, r]) =>
|
|
6393
|
+
Object.entries(e).map(([i, r]) => L9(r) ? [i, R9(r, t, n)] : [i, $j(r, t, n)])
|
|
6394
6394
|
);
|
|
6395
6395
|
}
|
|
6396
6396
|
function qj(e, t) {
|
|
6397
6397
|
const n = io(e, kb);
|
|
6398
6398
|
Object.entries(n).forEach(([, i]) => {
|
|
6399
|
-
|
|
6399
|
+
I9(i, e, t);
|
|
6400
6400
|
});
|
|
6401
6401
|
}
|
|
6402
|
-
function
|
|
6402
|
+
function I9(e, t, n) {
|
|
6403
6403
|
Object.entries(e).forEach(([, i]) => {
|
|
6404
|
-
if (
|
|
6405
|
-
|
|
6406
|
-
else if (
|
|
6404
|
+
if (L9(i))
|
|
6405
|
+
I9(i, t, n);
|
|
6406
|
+
else if (M9(i)) {
|
|
6407
6407
|
const r = i.expression;
|
|
6408
6408
|
typeof r == "object" && r.conditions ? r.conditions.forEach(([o, s]) => {
|
|
6409
6409
|
Jm(o, n, t?.defines), Jm(s, n, t?.defines);
|
|
@@ -6411,16 +6411,16 @@ function IV(e, t, n) {
|
|
|
6411
6411
|
}
|
|
6412
6412
|
});
|
|
6413
6413
|
}
|
|
6414
|
-
function
|
|
6414
|
+
function M9(e) {
|
|
6415
6415
|
return typeof e == "object" && e && "expression" in e;
|
|
6416
6416
|
}
|
|
6417
|
-
function
|
|
6417
|
+
function L9(e) {
|
|
6418
6418
|
return typeof e == "object" && e && !("expression" in e) && !Array.isArray(e);
|
|
6419
6419
|
}
|
|
6420
6420
|
function $j(e, t, n) {
|
|
6421
6421
|
try {
|
|
6422
|
-
if (
|
|
6423
|
-
const i = e.expression, r =
|
|
6422
|
+
if (M9(e)) {
|
|
6423
|
+
const i = e.expression, r = v9(lS(n));
|
|
6424
6424
|
return typeof i > "u" ? void 0 : typeof i == "object" && i.conditions ? new jj(i, r, t?.defines).evaluate() : typeof i == "boolean" || typeof i == "number" ? new xy(String(i), r, t?.defines).evaluate() : typeof i == "string" ? new xy(i, r, t?.defines).evaluate() : i;
|
|
6425
6425
|
}
|
|
6426
6426
|
return e;
|
|
@@ -6454,7 +6454,7 @@ async function tR(e, t) {
|
|
|
6454
6454
|
}
|
|
6455
6455
|
function G2(e, t) {
|
|
6456
6456
|
if (e.type === "simple")
|
|
6457
|
-
return
|
|
6457
|
+
return E9(e, t);
|
|
6458
6458
|
}
|
|
6459
6459
|
async function lu(e, t) {
|
|
6460
6460
|
const n = await fetch(e, t);
|
|
@@ -6527,7 +6527,7 @@ async function n7(e, t, n) {
|
|
|
6527
6527
|
if (!e.url) {
|
|
6528
6528
|
const r = e.value;
|
|
6529
6529
|
if (typeof r != "string") {
|
|
6530
|
-
const o =
|
|
6530
|
+
const o = P9(r, t);
|
|
6531
6531
|
return o ? [o] : void 0;
|
|
6532
6532
|
}
|
|
6533
6533
|
return await nR(r, e.csv, t);
|
|
@@ -6553,7 +6553,7 @@ const nR = async (e, t, n) => {
|
|
|
6553
6553
|
}
|
|
6554
6554
|
c = [];
|
|
6555
6555
|
}
|
|
6556
|
-
const u = i7(c, l, t), h =
|
|
6556
|
+
const u = i7(c, l, t), h = P9(u, n);
|
|
6557
6557
|
h && s.push(h);
|
|
6558
6558
|
}
|
|
6559
6559
|
}), a.on("error", (l) => {
|
|
@@ -6618,7 +6618,7 @@ const nR = async (e, t, n) => {
|
|
|
6618
6618
|
}
|
|
6619
6619
|
);
|
|
6620
6620
|
return (i.geometry?.coordinates.length || 0) < 2 && (i.geometry = null), i;
|
|
6621
|
-
},
|
|
6621
|
+
}, P9 = (e, t) => {
|
|
6622
6622
|
if (e.type !== "Feature")
|
|
6623
6623
|
return;
|
|
6624
6624
|
const n = e.geometry;
|
|
@@ -6632,8 +6632,8 @@ const nR = async (e, t, n) => {
|
|
|
6632
6632
|
}, r7 = (e) => {
|
|
6633
6633
|
const t = Number(e);
|
|
6634
6634
|
return isNaN(t) || e === "" ? e : t;
|
|
6635
|
-
},
|
|
6636
|
-
function
|
|
6635
|
+
}, G9 = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", o7 = G9 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", s7 = "[" + G9 + "][" + o7 + "]*", a7 = new RegExp("^" + s7 + "$");
|
|
6636
|
+
function O9(e, t) {
|
|
6637
6637
|
const n = [];
|
|
6638
6638
|
let i = t.exec(e);
|
|
6639
6639
|
for (; i; ) {
|
|
@@ -6814,7 +6814,7 @@ function f7(e, t) {
|
|
|
6814
6814
|
}
|
|
6815
6815
|
const p7 = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
6816
6816
|
function sR(e, t) {
|
|
6817
|
-
const n =
|
|
6817
|
+
const n = O9(e, p7), i = {};
|
|
6818
6818
|
for (let r = 0; r < n.length; r++) {
|
|
6819
6819
|
if (n[r][1].length === 0)
|
|
6820
6820
|
return ei("InvalidAttr", "Attribute '" + n[r][2] + "' has no space in starting.", Rd(n[r]));
|
|
@@ -6930,7 +6930,7 @@ const _7 = {
|
|
|
6930
6930
|
maxNestedTags: 100,
|
|
6931
6931
|
strictReservedNames: !0
|
|
6932
6932
|
};
|
|
6933
|
-
function
|
|
6933
|
+
function V9(e) {
|
|
6934
6934
|
return typeof e == "boolean" ? {
|
|
6935
6935
|
enabled: e,
|
|
6936
6936
|
// true or false
|
|
@@ -6951,11 +6951,11 @@ function VV(e) {
|
|
|
6951
6951
|
maxEntityCount: e.maxEntityCount ?? 100,
|
|
6952
6952
|
allowedTags: e.allowedTags ?? null,
|
|
6953
6953
|
tagFilter: e.tagFilter ?? null
|
|
6954
|
-
} :
|
|
6954
|
+
} : V9(!0);
|
|
6955
6955
|
}
|
|
6956
6956
|
const v7 = function(e) {
|
|
6957
6957
|
const t = Object.assign({}, _7, e);
|
|
6958
|
-
return t.processEntities =
|
|
6958
|
+
return t.processEntities = V9(t.processEntities), t;
|
|
6959
6959
|
};
|
|
6960
6960
|
let Sy;
|
|
6961
6961
|
typeof Symbol != "function" ? Sy = "@@xmlMetadata" : Sy = /* @__PURE__ */ Symbol("XML Node Metadata");
|
|
@@ -7306,7 +7306,7 @@ function F7(e) {
|
|
|
7306
7306
|
const z7 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
7307
7307
|
function A7(e, t, n) {
|
|
7308
7308
|
if (this.options.ignoreAttributes !== !0 && typeof e == "string") {
|
|
7309
|
-
const i =
|
|
7309
|
+
const i = O9(e, z7), r = i.length, o = {};
|
|
7310
7310
|
for (let s = 0; s < r; s++) {
|
|
7311
7311
|
const a = this.resolveNameSpace(i[s][1]);
|
|
7312
7312
|
if (this.ignoreAttributesFn(a, t))
|
|
@@ -7567,9 +7567,9 @@ function aR(e, t, n) {
|
|
|
7567
7567
|
}
|
|
7568
7568
|
const P1 = _c.getMetaDataSymbol();
|
|
7569
7569
|
function B7(e, t) {
|
|
7570
|
-
return
|
|
7570
|
+
return F9(e, t);
|
|
7571
7571
|
}
|
|
7572
|
-
function
|
|
7572
|
+
function F9(e, t, n) {
|
|
7573
7573
|
let i;
|
|
7574
7574
|
const r = {};
|
|
7575
7575
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -7581,7 +7581,7 @@ function FV(e, t, n) {
|
|
|
7581
7581
|
if (a === void 0)
|
|
7582
7582
|
continue;
|
|
7583
7583
|
if (s[a]) {
|
|
7584
|
-
let l =
|
|
7584
|
+
let l = F9(s[a], t, c);
|
|
7585
7585
|
const u = j7(l, t);
|
|
7586
7586
|
s[":@"] ? H7(l, s[":@"], c, t) : Object.keys(l).length === 1 && l[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? l = l[t.textNodeName] : Object.keys(l).length === 0 && (t.alwaysCreateTextNode ? l[t.textNodeName] = "" : l = ""), s[P1] !== void 0 && typeof l == "object" && l !== null && (l[P1] = s[P1]), r[a] !== void 0 && Object.prototype.hasOwnProperty.call(r, a) ? (Array.isArray(r[a]) || (r[a] = [r[a]]), r[a].push(l)) : t.isArray(a, c, u) ? r[a] = [l] : r[a] = l;
|
|
7587
7587
|
}
|
|
@@ -7609,7 +7609,7 @@ function j7(e, t) {
|
|
|
7609
7609
|
const { textNodeName: n } = t, i = Object.keys(e).length;
|
|
7610
7610
|
return !!(i === 0 || i === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
|
|
7611
7611
|
}
|
|
7612
|
-
class
|
|
7612
|
+
class z9 {
|
|
7613
7613
|
constructor(t) {
|
|
7614
7614
|
this.externalEntities = {}, this.options = v7(t);
|
|
7615
7615
|
}
|
|
@@ -7675,7 +7675,7 @@ function Q7(e) {
|
|
|
7675
7675
|
ignoreAttributes: !1,
|
|
7676
7676
|
attributeNamePrefix: ""
|
|
7677
7677
|
};
|
|
7678
|
-
return new
|
|
7678
|
+
return new z9(t).parse(e);
|
|
7679
7679
|
}
|
|
7680
7680
|
function q7(e) {
|
|
7681
7681
|
const t = e.FeatureCollection.featureMember, n = [];
|
|
@@ -7696,7 +7696,7 @@ function q7(e) {
|
|
|
7696
7696
|
elevation: c,
|
|
7697
7697
|
hash: l,
|
|
7698
7698
|
fid: u
|
|
7699
|
-
}, d =
|
|
7699
|
+
}, d = A9(r), f = {
|
|
7700
7700
|
type: "feature",
|
|
7701
7701
|
id: u,
|
|
7702
7702
|
properties: h,
|
|
@@ -7706,7 +7706,7 @@ function q7(e) {
|
|
|
7706
7706
|
}
|
|
7707
7707
|
return n;
|
|
7708
7708
|
}
|
|
7709
|
-
function
|
|
7709
|
+
function A9(e) {
|
|
7710
7710
|
let t = {
|
|
7711
7711
|
type: "Point",
|
|
7712
7712
|
coordinates: [1]
|
|
@@ -7779,17 +7779,17 @@ function tK(e) {
|
|
|
7779
7779
|
ignoreAttributes: !1,
|
|
7780
7780
|
attributeNamePrefix: ""
|
|
7781
7781
|
};
|
|
7782
|
-
return new
|
|
7782
|
+
return new z9(t).parse(e);
|
|
7783
7783
|
}
|
|
7784
7784
|
function nK(e) {
|
|
7785
7785
|
const { entry: t } = e.feed;
|
|
7786
|
-
return
|
|
7786
|
+
return N9(t);
|
|
7787
7787
|
}
|
|
7788
7788
|
function iK(e) {
|
|
7789
7789
|
const t = e.rss.channel.item;
|
|
7790
|
-
return
|
|
7790
|
+
return N9(t);
|
|
7791
7791
|
}
|
|
7792
|
-
function
|
|
7792
|
+
function N9(e) {
|
|
7793
7793
|
const t = [];
|
|
7794
7794
|
for (const n of e) {
|
|
7795
7795
|
let i = {
|
|
@@ -7798,7 +7798,7 @@ function NV(e) {
|
|
|
7798
7798
|
};
|
|
7799
7799
|
if (n.where) {
|
|
7800
7800
|
const o = n.where;
|
|
7801
|
-
i =
|
|
7801
|
+
i = A9(o);
|
|
7802
7802
|
} else if (n.point)
|
|
7803
7803
|
i = {
|
|
7804
7804
|
type: "Point",
|
|
@@ -8108,7 +8108,7 @@ const oK = (e) => {
|
|
|
8108
8108
|
const n = { type: "feature", id: id(12) };
|
|
8109
8109
|
return n.properties = t || {}, n.geometry = e, n;
|
|
8110
8110
|
}, F2 = 65536 * 65536, dR = 1 / F2, dK = 12, fR = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8"), O1 = 0, Qm = 1, Md = 2, qm = 5;
|
|
8111
|
-
class
|
|
8111
|
+
class X9 {
|
|
8112
8112
|
/**
|
|
8113
8113
|
* @param {Uint8Array | ArrayBuffer} [buf]
|
|
8114
8114
|
*/
|
|
@@ -8623,7 +8623,7 @@ class PK extends Er {
|
|
|
8623
8623
|
delay: 0
|
|
8624
8624
|
};
|
|
8625
8625
|
readField(t, n = {}, i) {
|
|
8626
|
-
t === 1 ? n.trip = new bS().read(i, i.readVarint() + i.pos) : t === 3 ? n.vehicle = new
|
|
8626
|
+
t === 1 ? n.trip = new bS().read(i, i.readVarint() + i.pos) : t === 3 ? n.vehicle = new Z9().read(i, i.readVarint() + i.pos) : t === 2 ? n.stop_time_update?.push(new GK().read(i, i.readVarint() + i.pos)) : t === 4 ? n.timestamp = i.readVarint() : t === 5 && (n.delay = i.readVarint(!0));
|
|
8627
8627
|
}
|
|
8628
8628
|
}
|
|
8629
8629
|
class mR extends Er {
|
|
@@ -8663,7 +8663,7 @@ class OK extends Er {
|
|
|
8663
8663
|
/* EMPTY */
|
|
8664
8664
|
};
|
|
8665
8665
|
readField(t, n = {}, i) {
|
|
8666
|
-
t === 1 ? n.trip = new bS().read(i, i.readVarint() + i.pos) : t === 8 ? n.vehicle = new
|
|
8666
|
+
t === 1 ? n.trip = new bS().read(i, i.readVarint() + i.pos) : t === 8 ? n.vehicle = new Z9().read(i, i.readVarint() + i.pos) : t === 2 ? n.position = new zK().read(i, i.readVarint() + i.pos) : t === 3 ? n.current_stop_sequence = i.readVarint() : t === 7 ? n.stop_id = i.readString() : t === 4 ? n.current_status = i.readVarint() : t === 5 ? n.timestamp = i.readVarint() : t === 6 ? n.congestion_level = i.readVarint() : t === 9 && (n.occupancy_status = i.readVarint());
|
|
8667
8667
|
}
|
|
8668
8668
|
}
|
|
8669
8669
|
class VK extends Er {
|
|
@@ -8715,7 +8715,7 @@ class bS extends Er {
|
|
|
8715
8715
|
t === 1 ? n.trip_id = i.readString() : t === 5 ? n.route_id = i.readString() : t === 6 ? n.direction_id = i.readVarint() : t === 2 ? n.start_time = i.readString() : t === 3 ? n.start_date = i.readString() : t === 4 && (n.schedule_relationship = i.readVarint());
|
|
8716
8716
|
}
|
|
8717
8717
|
}
|
|
8718
|
-
class
|
|
8718
|
+
class Z9 extends Er {
|
|
8719
8719
|
defaultMessage = {
|
|
8720
8720
|
id: "",
|
|
8721
8721
|
label: "",
|
|
@@ -8753,7 +8753,7 @@ let gR = {}, $m = {}, yR = {}, F1 = {};
|
|
|
8753
8753
|
async function XK(e, t, n) {
|
|
8754
8754
|
return await (async () => {
|
|
8755
8755
|
try {
|
|
8756
|
-
const r = e.url ? await (await lu(e.url, n)).arrayBuffer() : e.value, o = new
|
|
8756
|
+
const r = e.url ? await (await lu(e.url, n)).arrayBuffer() : e.value, o = new X9(new Uint8Array(r));
|
|
8757
8757
|
gR = new IK().read(o);
|
|
8758
8758
|
} catch (r) {
|
|
8759
8759
|
throw new Error(`failed to fetch gtfs: ${r}`);
|
|
@@ -11294,7 +11294,7 @@ function A2(e) {
|
|
|
11294
11294
|
r = n[i], i in s ? (o = s[i], typeof o == "function" ? o(r) : t[o] = r) : t[i] = r;
|
|
11295
11295
|
return typeof t.datumCode == "string" && t.datumCode !== "WGS84" && (t.datumCode = t.datumCode.toLowerCase()), t.projStr = e, t;
|
|
11296
11296
|
}
|
|
11297
|
-
class
|
|
11297
|
+
class k9 {
|
|
11298
11298
|
static getId(t) {
|
|
11299
11299
|
const n = t.find((i) => Array.isArray(i) && i[0] === "ID");
|
|
11300
11300
|
return n && n.length >= 3 ? {
|
|
@@ -11462,12 +11462,12 @@ class kV {
|
|
|
11462
11462
|
return n;
|
|
11463
11463
|
}
|
|
11464
11464
|
}
|
|
11465
|
-
class qK extends
|
|
11465
|
+
class qK extends k9 {
|
|
11466
11466
|
static convert(t, n = {}) {
|
|
11467
11467
|
return super.convert(t, n), n.coordinate_system && n.coordinate_system.subtype === "Cartesian" && delete n.coordinate_system, n.usage && delete n.usage, n;
|
|
11468
11468
|
}
|
|
11469
11469
|
}
|
|
11470
|
-
class $K extends
|
|
11470
|
+
class $K extends k9 {
|
|
11471
11471
|
static convert(t, n = {}) {
|
|
11472
11472
|
super.convert(t, n);
|
|
11473
11473
|
const i = t.find((o) => Array.isArray(o) && o[0] === "CS");
|
|
@@ -11493,7 +11493,7 @@ function nJ(e) {
|
|
|
11493
11493
|
const t = e.toUpperCase();
|
|
11494
11494
|
return t.includes("PROJCRS") || t.includes("GEOGCRS") || t.includes("BOUNDCRS") || t.includes("VERTCRS") || t.includes("LENGTHUNIT") || t.includes("ANGLEUNIT") || t.includes("SCALEUNIT") ? "WKT2" : (t.includes("PROJCS") || t.includes("GEOGCS") || t.includes("LOCAL_CS") || t.includes("VERT_CS") || t.includes("UNIT"), "WKT1");
|
|
11495
11495
|
}
|
|
11496
|
-
var fp = 1,
|
|
11496
|
+
var fp = 1, W9 = 2, U9 = 3, Ty = 4, D9 = 5, _S = -1, iJ = /\s/, rJ = /[A-Za-z]/, oJ = /[A-Za-z84_]/, Ub = /[,\]]/, B9 = /[\d\.E\-\+]/;
|
|
11497
11497
|
function Qa(e) {
|
|
11498
11498
|
if (typeof e != "string")
|
|
11499
11499
|
throw new Error("not a string");
|
|
@@ -11510,13 +11510,13 @@ Qa.prototype.readCharicter = function() {
|
|
|
11510
11510
|
switch (this.state) {
|
|
11511
11511
|
case fp:
|
|
11512
11512
|
return this.neutral(e);
|
|
11513
|
-
case
|
|
11513
|
+
case W9:
|
|
11514
11514
|
return this.keyword(e);
|
|
11515
11515
|
case Ty:
|
|
11516
11516
|
return this.quoted(e);
|
|
11517
|
-
case
|
|
11517
|
+
case D9:
|
|
11518
11518
|
return this.afterquote(e);
|
|
11519
|
-
case
|
|
11519
|
+
case U9:
|
|
11520
11520
|
return this.number(e);
|
|
11521
11521
|
case _S:
|
|
11522
11522
|
return;
|
|
@@ -11544,7 +11544,7 @@ Qa.prototype.afterItem = function(e) {
|
|
|
11544
11544
|
}
|
|
11545
11545
|
};
|
|
11546
11546
|
Qa.prototype.number = function(e) {
|
|
11547
|
-
if (
|
|
11547
|
+
if (B9.test(e)) {
|
|
11548
11548
|
this.word += e;
|
|
11549
11549
|
return;
|
|
11550
11550
|
}
|
|
@@ -11556,7 +11556,7 @@ Qa.prototype.number = function(e) {
|
|
|
11556
11556
|
};
|
|
11557
11557
|
Qa.prototype.quoted = function(e) {
|
|
11558
11558
|
if (e === '"') {
|
|
11559
|
-
this.state =
|
|
11559
|
+
this.state = D9;
|
|
11560
11560
|
return;
|
|
11561
11561
|
}
|
|
11562
11562
|
this.word += e;
|
|
@@ -11579,15 +11579,15 @@ Qa.prototype.keyword = function(e) {
|
|
|
11579
11579
|
};
|
|
11580
11580
|
Qa.prototype.neutral = function(e) {
|
|
11581
11581
|
if (rJ.test(e)) {
|
|
11582
|
-
this.word = e, this.state =
|
|
11582
|
+
this.word = e, this.state = W9;
|
|
11583
11583
|
return;
|
|
11584
11584
|
}
|
|
11585
11585
|
if (e === '"') {
|
|
11586
11586
|
this.word = "", this.state = Ty;
|
|
11587
11587
|
return;
|
|
11588
11588
|
}
|
|
11589
|
-
if (
|
|
11590
|
-
this.word = e, this.state =
|
|
11589
|
+
if (B9.test(e)) {
|
|
11590
|
+
this.word = e, this.state = U9;
|
|
11591
11591
|
return;
|
|
11592
11592
|
}
|
|
11593
11593
|
if (Ub.test(e)) {
|
|
@@ -11697,7 +11697,7 @@ var aJ = 0.017453292519943295;
|
|
|
11697
11697
|
function is(e) {
|
|
11698
11698
|
return e * aJ;
|
|
11699
11699
|
}
|
|
11700
|
-
function
|
|
11700
|
+
function Y9(e) {
|
|
11701
11701
|
const t = (e.projName || "").toLowerCase().replace(/_/g, " ");
|
|
11702
11702
|
!e.long0 && e.longc && (t === "albers conic equal area" || t === "lambert azimuthal equal area") && (e.long0 = e.longc), !e.lat_ts && e.lat1 && (t === "stereographic south pole" || t === "polar stereographic (variant b)") ? (e.lat0 = is(e.lat1 > 0 ? 90 : -90), e.lat_ts = e.lat1, delete e.lat1) : !e.lat_ts && e.lat0 && (t === "polar stereographic" || t === "polar stereographic (variant a)") && (e.lat_ts = e.lat0, e.lat0 = is(e.lat0 > 0 ? 90 : -90), delete e.lat1);
|
|
11703
11703
|
}
|
|
@@ -11768,7 +11768,7 @@ function Ey(e, t = {}) {
|
|
|
11768
11768
|
Ey(i, t), t.datumCode = i.id ? i.id.authority + "_" + i.id.code : i.name;
|
|
11769
11769
|
break;
|
|
11770
11770
|
}
|
|
11771
|
-
}), t.latitude_of_false_origin !== void 0 && (t.lat0 = t.latitude_of_false_origin), t.longitude_of_false_origin !== void 0 && (t.long0 = t.longitude_of_false_origin), t.latitude_of_standard_parallel !== void 0 && (t.lat0 = t.latitude_of_standard_parallel, t.lat1 = t.latitude_of_standard_parallel), t.latitude_of_1st_standard_parallel !== void 0 && (t.lat1 = t.latitude_of_1st_standard_parallel), t.latitude_of_2nd_standard_parallel !== void 0 && (t.lat2 = t.latitude_of_2nd_standard_parallel), t.latitude_of_projection_centre !== void 0 && (t.lat0 = t.latitude_of_projection_centre), t.longitude_of_projection_centre !== void 0 && (t.longc = t.longitude_of_projection_centre), t.easting_at_false_origin !== void 0 && (t.x0 = t.easting_at_false_origin), t.northing_at_false_origin !== void 0 && (t.y0 = t.northing_at_false_origin), t.latitude_of_natural_origin !== void 0 && (t.lat0 = t.latitude_of_natural_origin), t.longitude_of_natural_origin !== void 0 && (t.long0 = t.longitude_of_natural_origin), t.longitude_of_origin !== void 0 && (t.long0 = t.longitude_of_origin), t.false_easting !== void 0 && (t.x0 = t.false_easting), t.easting_at_projection_centre && (t.x0 = t.easting_at_projection_centre), t.false_northing !== void 0 && (t.y0 = t.false_northing), t.northing_at_projection_centre && (t.y0 = t.northing_at_projection_centre), t.standard_parallel_1 !== void 0 && (t.lat1 = t.standard_parallel_1), t.standard_parallel_2 !== void 0 && (t.lat2 = t.standard_parallel_2), t.scale_factor_at_natural_origin !== void 0 && (t.k0 = t.scale_factor_at_natural_origin), t.scale_factor_at_projection_centre !== void 0 && (t.k0 = t.scale_factor_at_projection_centre), t.scale_factor_on_pseudo_standard_parallel !== void 0 && (t.k0 = t.scale_factor_on_pseudo_standard_parallel), t.azimuth !== void 0 && (t.alpha = t.azimuth), t.azimuth_at_projection_centre !== void 0 && (t.alpha = t.azimuth_at_projection_centre), t.angle_from_rectified_to_skew_grid && (t.rectified_grid_angle = t.angle_from_rectified_to_skew_grid),
|
|
11771
|
+
}), t.latitude_of_false_origin !== void 0 && (t.lat0 = t.latitude_of_false_origin), t.longitude_of_false_origin !== void 0 && (t.long0 = t.longitude_of_false_origin), t.latitude_of_standard_parallel !== void 0 && (t.lat0 = t.latitude_of_standard_parallel, t.lat1 = t.latitude_of_standard_parallel), t.latitude_of_1st_standard_parallel !== void 0 && (t.lat1 = t.latitude_of_1st_standard_parallel), t.latitude_of_2nd_standard_parallel !== void 0 && (t.lat2 = t.latitude_of_2nd_standard_parallel), t.latitude_of_projection_centre !== void 0 && (t.lat0 = t.latitude_of_projection_centre), t.longitude_of_projection_centre !== void 0 && (t.longc = t.longitude_of_projection_centre), t.easting_at_false_origin !== void 0 && (t.x0 = t.easting_at_false_origin), t.northing_at_false_origin !== void 0 && (t.y0 = t.northing_at_false_origin), t.latitude_of_natural_origin !== void 0 && (t.lat0 = t.latitude_of_natural_origin), t.longitude_of_natural_origin !== void 0 && (t.long0 = t.longitude_of_natural_origin), t.longitude_of_origin !== void 0 && (t.long0 = t.longitude_of_origin), t.false_easting !== void 0 && (t.x0 = t.false_easting), t.easting_at_projection_centre && (t.x0 = t.easting_at_projection_centre), t.false_northing !== void 0 && (t.y0 = t.false_northing), t.northing_at_projection_centre && (t.y0 = t.northing_at_projection_centre), t.standard_parallel_1 !== void 0 && (t.lat1 = t.standard_parallel_1), t.standard_parallel_2 !== void 0 && (t.lat2 = t.standard_parallel_2), t.scale_factor_at_natural_origin !== void 0 && (t.k0 = t.scale_factor_at_natural_origin), t.scale_factor_at_projection_centre !== void 0 && (t.k0 = t.scale_factor_at_projection_centre), t.scale_factor_on_pseudo_standard_parallel !== void 0 && (t.k0 = t.scale_factor_on_pseudo_standard_parallel), t.azimuth !== void 0 && (t.alpha = t.azimuth), t.azimuth_at_projection_centre !== void 0 && (t.alpha = t.azimuth_at_projection_centre), t.angle_from_rectified_to_skew_grid && (t.rectified_grid_angle = t.angle_from_rectified_to_skew_grid), Y9(t), t);
|
|
11772
11772
|
}
|
|
11773
11773
|
var cJ = [
|
|
11774
11774
|
"PROJECTEDCRS",
|
|
@@ -11787,10 +11787,10 @@ function lJ(e, t) {
|
|
|
11787
11787
|
var n = t[0], i = t[1];
|
|
11788
11788
|
!(n in e) && i in e && (e[n] = e[i], t.length === 3 && (e[n] = t[2](e[n])));
|
|
11789
11789
|
}
|
|
11790
|
-
function
|
|
11790
|
+
function H9(e) {
|
|
11791
11791
|
for (var t = Object.keys(e), n = 0, i = t.length; n < i; ++n) {
|
|
11792
11792
|
var r = t[n];
|
|
11793
|
-
cJ.indexOf(r) !== -1 && uJ(e[r]), typeof e[r] == "object" &&
|
|
11793
|
+
cJ.indexOf(r) !== -1 && uJ(e[r]), typeof e[r] == "object" && H9(e[r]);
|
|
11794
11794
|
}
|
|
11795
11795
|
}
|
|
11796
11796
|
function uJ(e) {
|
|
@@ -11851,7 +11851,7 @@ function uJ(e) {
|
|
|
11851
11851
|
["alpha", "azimuth", is],
|
|
11852
11852
|
["srsCode", "name"]
|
|
11853
11853
|
];
|
|
11854
|
-
l.forEach(c),
|
|
11854
|
+
l.forEach(c), Y9(e);
|
|
11855
11855
|
}
|
|
11856
11856
|
function Cy(e) {
|
|
11857
11857
|
if (typeof e == "object")
|
|
@@ -11863,7 +11863,7 @@ function Cy(e) {
|
|
|
11863
11863
|
return Ey(o);
|
|
11864
11864
|
}
|
|
11865
11865
|
var i = n[0], r = {};
|
|
11866
|
-
return Yu(n, r),
|
|
11866
|
+
return Yu(n, r), H9(r), r[i];
|
|
11867
11867
|
}
|
|
11868
11868
|
function Ai(e) {
|
|
11869
11869
|
var t = this;
|
|
@@ -12009,39 +12009,39 @@ function SJ() {
|
|
|
12009
12009
|
function IR(e) {
|
|
12010
12010
|
return e;
|
|
12011
12011
|
}
|
|
12012
|
-
var
|
|
12012
|
+
var j9 = ["longlat", "identity"];
|
|
12013
12013
|
const TJ = {
|
|
12014
12014
|
init: SJ,
|
|
12015
12015
|
forward: IR,
|
|
12016
12016
|
inverse: IR,
|
|
12017
|
-
names:
|
|
12017
|
+
names: j9
|
|
12018
12018
|
};
|
|
12019
12019
|
var EJ = [xJ, TJ], Sl = {}, Hu = [];
|
|
12020
|
-
function
|
|
12020
|
+
function K9(e, t) {
|
|
12021
12021
|
var n = Hu.length;
|
|
12022
12022
|
return e.names ? (Hu[n] = e, e.names.forEach(function(i) {
|
|
12023
12023
|
Sl[i.toLowerCase()] = n;
|
|
12024
12024
|
}), this) : (console.log(t), !0);
|
|
12025
12025
|
}
|
|
12026
|
-
function
|
|
12026
|
+
function J9(e) {
|
|
12027
12027
|
return e.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
|
|
12028
12028
|
}
|
|
12029
12029
|
function CJ(e) {
|
|
12030
12030
|
if (!e)
|
|
12031
12031
|
return !1;
|
|
12032
12032
|
var t = e.toLowerCase();
|
|
12033
|
-
if (typeof Sl[t] < "u" && Hu[Sl[t]] || (t =
|
|
12033
|
+
if (typeof Sl[t] < "u" && Hu[Sl[t]] || (t = J9(t), t in Sl && Hu[Sl[t]]))
|
|
12034
12034
|
return Hu[Sl[t]];
|
|
12035
12035
|
}
|
|
12036
12036
|
function RJ() {
|
|
12037
|
-
EJ.forEach(
|
|
12037
|
+
EJ.forEach(K9);
|
|
12038
12038
|
}
|
|
12039
12039
|
const IJ = {
|
|
12040
12040
|
start: RJ,
|
|
12041
|
-
add:
|
|
12041
|
+
add: K9,
|
|
12042
12042
|
get: CJ
|
|
12043
12043
|
};
|
|
12044
|
-
var
|
|
12044
|
+
var Q9 = {
|
|
12045
12045
|
MERIT: {
|
|
12046
12046
|
a: 6378137,
|
|
12047
12047
|
rf: 298.257,
|
|
@@ -12264,7 +12264,7 @@ var QV = {
|
|
|
12264
12264
|
ellipseName: "Normal Sphere (r=6370997)"
|
|
12265
12265
|
}
|
|
12266
12266
|
};
|
|
12267
|
-
const MJ =
|
|
12267
|
+
const MJ = Q9.WGS84;
|
|
12268
12268
|
function LJ(e, t, n, i) {
|
|
12269
12269
|
var r = e * e, o = t * t, s = (r - o) / r, a = 0;
|
|
12270
12270
|
i ? (e *= 1 - s * (jK + s * (KK + s * JK)), r = e * e, s = 0) : a = Math.sqrt(s);
|
|
@@ -12277,7 +12277,7 @@ function LJ(e, t, n, i) {
|
|
|
12277
12277
|
}
|
|
12278
12278
|
function PJ(e, t, n, i, r) {
|
|
12279
12279
|
if (!e) {
|
|
12280
|
-
var o = kc(
|
|
12280
|
+
var o = kc(Q9, i);
|
|
12281
12281
|
o || (o = MJ), e = o.a, t = o.b, n = o.rf;
|
|
12282
12282
|
}
|
|
12283
12283
|
return n && !t && (t = (1 - 1 / n) * e), (n === 0 || Math.abs(e - t) < Ke) && (r = !0, t = e), {
|
|
@@ -13809,7 +13809,7 @@ Fo.projections.start();
|
|
|
13809
13809
|
function BJ(e, t) {
|
|
13810
13810
|
return e.datum_type !== t.datum_type || e.a !== t.a || Math.abs(e.es - t.es) > 5e-11 ? !1 : e.datum_type === Ul ? e.datum_params[0] === t.datum_params[0] && e.datum_params[1] === t.datum_params[1] && e.datum_params[2] === t.datum_params[2] : e.datum_type === Dl ? e.datum_params[0] === t.datum_params[0] && e.datum_params[1] === t.datum_params[1] && e.datum_params[2] === t.datum_params[2] && e.datum_params[3] === t.datum_params[3] && e.datum_params[4] === t.datum_params[4] && e.datum_params[5] === t.datum_params[5] && e.datum_params[6] === t.datum_params[6] : !0;
|
|
13811
13811
|
}
|
|
13812
|
-
function
|
|
13812
|
+
function q9(e, t, n) {
|
|
13813
13813
|
var i = e.x, r = e.y, o = e.z ? e.z : 0, s, a, c, l;
|
|
13814
13814
|
if (r < -We && r > -1.001 * We)
|
|
13815
13815
|
r = -We;
|
|
@@ -13827,7 +13827,7 @@ function qV(e, t, n) {
|
|
|
13827
13827
|
z: (s * (1 - t) + o) * a
|
|
13828
13828
|
};
|
|
13829
13829
|
}
|
|
13830
|
-
function $
|
|
13830
|
+
function $9(e, t, n, i) {
|
|
13831
13831
|
var r = 1e-12, o = r * r, s = 30, a, c, l, u, h, d, f, p, m, b, g, v, S, E = e.x, R = e.y, M = e.z ? e.z : 0, P, V, G;
|
|
13832
13832
|
if (a = Math.sqrt(E * E + R * R), c = Math.sqrt(E * E + R * R + M * M), a / n < r) {
|
|
13833
13833
|
if (P = 0, c / n < r)
|
|
@@ -13896,7 +13896,7 @@ function jJ(e, t, n) {
|
|
|
13896
13896
|
var s = t.a, a = t.b, c = t.es;
|
|
13897
13897
|
if (t.datum_type === gh && (s = vR, a = HK, c = wR), r === c && i === s && !t0(e.datum_type) && !t0(t.datum_type))
|
|
13898
13898
|
return n;
|
|
13899
|
-
if (n =
|
|
13899
|
+
if (n = q9(n, r, i), t0(e.datum_type) && (n = YJ(n, e.datum_type, e.datum_params)), t0(t.datum_type) && (n = HJ(n, t.datum_type, t.datum_params)), n = $9(n, c, s, a), t.datum_type === gh) {
|
|
13900
13900
|
var l = LR(t, !0, n);
|
|
13901
13901
|
if (l !== 0)
|
|
13902
13902
|
return;
|
|
@@ -13995,7 +13995,7 @@ function GR(e, t, n) {
|
|
|
13995
13995
|
}
|
|
13996
13996
|
return l;
|
|
13997
13997
|
}
|
|
13998
|
-
function
|
|
13998
|
+
function eV(e) {
|
|
13999
13999
|
var t = {
|
|
14000
14000
|
x: e[0],
|
|
14001
14001
|
y: e[1]
|
|
@@ -14019,7 +14019,7 @@ function QJ(e, t) {
|
|
|
14019
14019
|
}
|
|
14020
14020
|
function Ry(e, t, n, i) {
|
|
14021
14021
|
var r;
|
|
14022
|
-
Array.isArray(n) ? n =
|
|
14022
|
+
Array.isArray(n) ? n = eV(n) : n = {
|
|
14023
14023
|
x: n.x,
|
|
14024
14024
|
y: n.y,
|
|
14025
14025
|
z: n.z,
|
|
@@ -14114,24 +14114,24 @@ function qJ(e, t, n) {
|
|
|
14114
14114
|
}
|
|
14115
14115
|
}, o && (s.oProj = r), s);
|
|
14116
14116
|
}
|
|
14117
|
-
var FR = 6,
|
|
14117
|
+
var FR = 6, tV = "AJSAJS", nV = "AFAFAF", ju = 65, Mr = 73, bo = 79, lf = 86, uf = 90;
|
|
14118
14118
|
const $J = {
|
|
14119
|
-
forward:
|
|
14119
|
+
forward: iV,
|
|
14120
14120
|
inverse: eQ,
|
|
14121
|
-
toPoint:
|
|
14121
|
+
toPoint: rV
|
|
14122
14122
|
};
|
|
14123
|
-
function
|
|
14123
|
+
function iV(e, t) {
|
|
14124
14124
|
return t = t || 5, iQ(tQ({
|
|
14125
14125
|
lat: e[1],
|
|
14126
14126
|
lon: e[0]
|
|
14127
14127
|
}), t);
|
|
14128
14128
|
}
|
|
14129
14129
|
function eQ(e) {
|
|
14130
|
-
var t = wS(
|
|
14130
|
+
var t = wS(sV(e.toUpperCase()));
|
|
14131
14131
|
return t.lat && t.lon ? [t.lon, t.lat, t.lon, t.lat] : [t.left, t.bottom, t.right, t.top];
|
|
14132
14132
|
}
|
|
14133
|
-
function
|
|
14134
|
-
var t = wS(
|
|
14133
|
+
function rV(e) {
|
|
14134
|
+
var t = wS(sV(e.toUpperCase()));
|
|
14135
14135
|
return t.lat && t.lon ? [t.lon, t.lat] : [(t.left + t.right) / 2, (t.top + t.bottom) / 2];
|
|
14136
14136
|
}
|
|
14137
14137
|
function Z1(e) {
|
|
@@ -14191,20 +14191,20 @@ function iQ(e, t) {
|
|
|
14191
14191
|
return e.zoneNumber + e.zoneLetter + rQ(e.easting, e.northing, e.zoneNumber) + n.substr(n.length - 5, t) + i.substr(i.length - 5, t);
|
|
14192
14192
|
}
|
|
14193
14193
|
function rQ(e, t, n) {
|
|
14194
|
-
var i =
|
|
14194
|
+
var i = oV(n), r = Math.floor(e / 1e5), o = Math.floor(t / 1e5) % 20;
|
|
14195
14195
|
return oQ(r, o, i);
|
|
14196
14196
|
}
|
|
14197
|
-
function
|
|
14197
|
+
function oV(e) {
|
|
14198
14198
|
var t = e % FR;
|
|
14199
14199
|
return t === 0 && (t = FR), t;
|
|
14200
14200
|
}
|
|
14201
14201
|
function oQ(e, t, n) {
|
|
14202
|
-
var i = n - 1, r =
|
|
14202
|
+
var i = n - 1, r = tV.charCodeAt(i), o = nV.charCodeAt(i), s = r + e - 1, a = o + t, c = !1;
|
|
14203
14203
|
s > uf && (s = s - uf + ju - 1, c = !0), (s === Mr || r < Mr && s > Mr || (s > Mr || r < Mr) && c) && s++, (s === bo || r < bo && s > bo || (s > bo || r < bo) && c) && (s++, s === Mr && s++), s > uf && (s = s - uf + ju - 1), a > lf ? (a = a - lf + ju - 1, c = !0) : c = !1, (a === Mr || o < Mr && a > Mr || (a > Mr || o < Mr) && c) && a++, (a === bo || o < bo && a > bo || (a > bo || o < bo) && c) && (a++, a === Mr && a++), a > lf && (a = a - lf + ju - 1);
|
|
14204
14204
|
var l = String.fromCharCode(s) + String.fromCharCode(a);
|
|
14205
14205
|
return l;
|
|
14206
14206
|
}
|
|
14207
|
-
function
|
|
14207
|
+
function sV(e) {
|
|
14208
14208
|
if (e && e.length === 0)
|
|
14209
14209
|
throw "MGRSPoint coverting from nothing";
|
|
14210
14210
|
for (var t = e.length, n = null, i = "", r, o = 0; !/[A-Z]/.test(r = e.charAt(o)); ) {
|
|
@@ -14219,7 +14219,7 @@ function s9(e) {
|
|
|
14219
14219
|
if (a <= "A" || a === "B" || a === "Y" || a >= "Z" || a === "I" || a === "O")
|
|
14220
14220
|
throw "MGRSPoint zone letter " + a + " not handled: " + e;
|
|
14221
14221
|
n = e.substring(o, o += 2);
|
|
14222
|
-
for (var c =
|
|
14222
|
+
for (var c = oV(s), l = sQ(n.charAt(0), c), u = aQ(n.charAt(1), c); u < cQ(a); )
|
|
14223
14223
|
u += 2e6;
|
|
14224
14224
|
var h = t - o;
|
|
14225
14225
|
if (h % 2 !== 0)
|
|
@@ -14237,7 +14237,7 @@ northing meters` + e;
|
|
|
14237
14237
|
};
|
|
14238
14238
|
}
|
|
14239
14239
|
function sQ(e, t) {
|
|
14240
|
-
for (var n =
|
|
14240
|
+
for (var n = tV.charCodeAt(t - 1), i = 1e5, r = !1; n !== e.charCodeAt(0); ) {
|
|
14241
14241
|
if (n++, n === Mr && n++, n === bo && n++, n > uf) {
|
|
14242
14242
|
if (r)
|
|
14243
14243
|
throw "Bad character: " + e;
|
|
@@ -14250,7 +14250,7 @@ function sQ(e, t) {
|
|
|
14250
14250
|
function aQ(e, t) {
|
|
14251
14251
|
if (e > "V")
|
|
14252
14252
|
throw "MGRSPoint given invalid Northing " + e;
|
|
14253
|
-
for (var n =
|
|
14253
|
+
for (var n = nV.charCodeAt(t - 1), i = 0, r = !1; n !== e.charCodeAt(0); ) {
|
|
14254
14254
|
if (n++, n === Mr && n++, n === bo && n++, n > lf) {
|
|
14255
14255
|
if (r)
|
|
14256
14256
|
throw "Bad character: " + e;
|
|
@@ -14345,10 +14345,10 @@ function Gh(e, t, n) {
|
|
|
14345
14345
|
console.warn("proj4.Point will be removed in version 3, use proj4.toPoint");
|
|
14346
14346
|
}
|
|
14347
14347
|
Gh.fromMGRS = function(e) {
|
|
14348
|
-
return new Gh(
|
|
14348
|
+
return new Gh(rV(e));
|
|
14349
14349
|
};
|
|
14350
14350
|
Gh.prototype.toMGRS = function(e) {
|
|
14351
|
-
return
|
|
14351
|
+
return iV([this.x, this.y], e);
|
|
14352
14352
|
};
|
|
14353
14353
|
var lQ = 1, uQ = 0.25, AR = 0.046875, NR = 0.01953125, XR = 0.01068115234375, hQ = 0.75, dQ = 0.46875, fQ = 0.013020833333333334, pQ = 0.007120768229166667, mQ = 0.3645833333333333, gQ = 0.005696614583333333, yQ = 0.3076171875;
|
|
14354
14354
|
function xS(e) {
|
|
@@ -14416,7 +14416,7 @@ const Tg = {
|
|
|
14416
14416
|
inverse: wQ,
|
|
14417
14417
|
names: xQ
|
|
14418
14418
|
};
|
|
14419
|
-
function
|
|
14419
|
+
function aV(e) {
|
|
14420
14420
|
var t = Math.exp(e);
|
|
14421
14421
|
return t = (t - 1 / t) / 2, t;
|
|
14422
14422
|
}
|
|
@@ -14447,8 +14447,8 @@ function CQ(e) {
|
|
|
14447
14447
|
var t = Math.exp(e);
|
|
14448
14448
|
return t = (t + 1 / t) / 2, t;
|
|
14449
14449
|
}
|
|
14450
|
-
function
|
|
14451
|
-
for (var i = Math.sin(t), r = Math.cos(t), o =
|
|
14450
|
+
function cV(e, t, n) {
|
|
14451
|
+
for (var i = Math.sin(t), r = Math.cos(t), o = aV(n), s = CQ(n), a = 2 * r * s, c = -2 * i * o, l = e.length - 1, u = e[l], h = 0, d = 0, f = 0, p, m; --l >= 0; )
|
|
14452
14452
|
p = d, m = h, d = u, h = f, u = -p + a * d - c * h + e[l], f = -m + c * d + a * h;
|
|
14453
14453
|
return a = i * s, c = r * o, [a * u - c * f, a * f + c * u];
|
|
14454
14454
|
}
|
|
@@ -14466,7 +14466,7 @@ function IQ(e) {
|
|
|
14466
14466
|
n = TS(this.cbg, n);
|
|
14467
14467
|
var i = Math.sin(n), r = Math.cos(n), o = Math.sin(t), s = Math.cos(t);
|
|
14468
14468
|
n = Math.atan2(i, s * r), t = Math.atan2(o * r, Nr(i, r * s)), t = TQ(Math.tan(t));
|
|
14469
|
-
var a =
|
|
14469
|
+
var a = cV(this.gtu, 2 * n, 2 * t);
|
|
14470
14470
|
n = n + a[0], t = t + a[1];
|
|
14471
14471
|
var c, l;
|
|
14472
14472
|
return Math.abs(t) <= 2.623395162778 ? (c = this.a * (this.Qn * t) + this.x0, l = this.a * (this.Qn * n + this.Zb) + this.y0) : (c = 1 / 0, l = 1 / 0), e.x = c, e.y = l, e;
|
|
@@ -14476,8 +14476,8 @@ function MQ(e) {
|
|
|
14476
14476
|
n = (n - this.Zb) / this.Qn, t = t / this.Qn;
|
|
14477
14477
|
var i, r;
|
|
14478
14478
|
if (Math.abs(t) <= 2.623395162778) {
|
|
14479
|
-
var o =
|
|
14480
|
-
n = n + o[0], t = t + o[1], t = Math.atan(
|
|
14479
|
+
var o = cV(this.utg, 2 * n, 2 * t);
|
|
14480
|
+
n = n + o[0], t = t + o[1], t = Math.atan(aV(t));
|
|
14481
14481
|
var s = Math.sin(n), a = Math.cos(n), c = Math.sin(t), l = Math.cos(t);
|
|
14482
14482
|
n = Math.atan2(s * l, Nr(c, l * a)), t = Math.atan2(c, l * a), i = it(t + this.long0, this.over), r = TS(this.cgb, n);
|
|
14483
14483
|
} else
|
|
@@ -14620,7 +14620,7 @@ const eq = {
|
|
|
14620
14620
|
var Nu = 1e-7;
|
|
14621
14621
|
function tq(e) {
|
|
14622
14622
|
var t = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], n = typeof e.projName == "object" ? Object.keys(e.projName)[0] : e.projName;
|
|
14623
|
-
return "no_uoff" in e || "no_off" in e || t.indexOf(n) !== -1 || t.indexOf(
|
|
14623
|
+
return "no_uoff" in e || "no_off" in e || t.indexOf(n) !== -1 || t.indexOf(J9(n)) !== -1;
|
|
14624
14624
|
}
|
|
14625
14625
|
function nq() {
|
|
14626
14626
|
var e, t, n, i, r, o, s, a, c, l, u = 0, h, d = 0, f = 0, p = 0, m = 0, b = 0, g = 0;
|
|
@@ -15417,7 +15417,7 @@ var W2 = [
|
|
|
15417
15417
|
[0.9394, 840947e-8, -192841e-9, -42106e-10],
|
|
15418
15418
|
[0.9761, 616527e-8, -256e-6, -42106e-10],
|
|
15419
15419
|
[1, 328947e-8, -319159e-9, -42106e-10]
|
|
15420
|
-
],
|
|
15420
|
+
], lV = 0.8487, uV = 1.3523, hV = kr / 5, nee = 1 / hV, Ku = 18, My = function(e, t) {
|
|
15421
15421
|
return e[0] + t * (e[1] + t * (e[2] + t * e[3]));
|
|
15422
15422
|
}, iee = function(e, t) {
|
|
15423
15423
|
return e[1] + t * (2 * e[2] + t * 3 * e[3]);
|
|
@@ -15434,18 +15434,18 @@ function oee() {
|
|
|
15434
15434
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
|
|
15435
15435
|
}
|
|
15436
15436
|
function see(e) {
|
|
15437
|
-
var t = it(e.x - this.long0, this.over), n = Math.abs(e.y), i = Math.floor(n *
|
|
15437
|
+
var t = it(e.x - this.long0, this.over), n = Math.abs(e.y), i = Math.floor(n * hV);
|
|
15438
15438
|
i < 0 ? i = 0 : i >= Ku && (i = Ku - 1), n = kr * (n - nee * i);
|
|
15439
15439
|
var r = {
|
|
15440
15440
|
x: My(W2[i], n) * t,
|
|
15441
15441
|
y: My(hf[i], n)
|
|
15442
15442
|
};
|
|
15443
|
-
return e.y < 0 && (r.y = -r.y), r.x = r.x * this.a *
|
|
15443
|
+
return e.y < 0 && (r.y = -r.y), r.x = r.x * this.a * lV + this.x0, r.y = r.y * this.a * uV + this.y0, r;
|
|
15444
15444
|
}
|
|
15445
15445
|
function aee(e) {
|
|
15446
15446
|
var t = {
|
|
15447
|
-
x: (e.x - this.x0) / (this.a *
|
|
15448
|
-
y: Math.abs(e.y - this.y0) / (this.a *
|
|
15447
|
+
x: (e.x - this.x0) / (this.a * lV),
|
|
15448
|
+
y: Math.abs(e.y - this.y0) / (this.a * uV)
|
|
15449
15449
|
};
|
|
15450
15450
|
if (t.y >= 1)
|
|
15451
15451
|
t.x /= W2[Ku][0], t.y = e.y < 0 ? -We : We;
|
|
@@ -15476,11 +15476,11 @@ function uee() {
|
|
|
15476
15476
|
this.name = "geocent";
|
|
15477
15477
|
}
|
|
15478
15478
|
function hee(e) {
|
|
15479
|
-
var t =
|
|
15479
|
+
var t = q9(e, this.es, this.a);
|
|
15480
15480
|
return t;
|
|
15481
15481
|
}
|
|
15482
15482
|
function dee(e) {
|
|
15483
|
-
var t = $
|
|
15483
|
+
var t = $9(e, this.es, this.a, this.b);
|
|
15484
15484
|
return t;
|
|
15485
15485
|
}
|
|
15486
15486
|
var fee = ["Geocentric", "geocentric", "geocent", "Geocent"];
|
|
@@ -15725,7 +15725,7 @@ const zee = {
|
|
|
15725
15725
|
}
|
|
15726
15726
|
};
|
|
15727
15727
|
function Aee() {
|
|
15728
|
-
if (this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.title = this.title || "General Oblique Transformation", this.isIdentity =
|
|
15728
|
+
if (this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.title = this.title || "General Oblique Transformation", this.isIdentity = j9.includes(this.o_proj), !this.o_proj)
|
|
15729
15729
|
throw new Error("Missing parameter: o_proj");
|
|
15730
15730
|
if (this.o_proj === "ob_tran")
|
|
15731
15731
|
throw new Error("Invalid value for o_proj: " + this.o_proj);
|
|
@@ -15863,19 +15863,19 @@ const Yee = {
|
|
|
15863
15863
|
function Hee(e) {
|
|
15864
15864
|
e.Proj.projections.add(Tg), e.Proj.projections.add(Eg), e.Proj.projections.add(FQ), e.Proj.projections.add(DQ), e.Proj.projections.add(KQ), e.Proj.projections.add(eq), e.Proj.projections.add(sq), e.Proj.projections.add(hq), e.Proj.projections.add(gq), e.Proj.projections.add(wq), e.Proj.projections.add(Vq), e.Proj.projections.add(Zq), e.Proj.projections.add(Bq), e.Proj.projections.add(Qq), e.Proj.projections.add(n$), e.Proj.projections.add(a$), e.Proj.projections.add(d$), e.Proj.projections.add(y$), e.Proj.projections.add(S$), e.Proj.projections.add(I$), e.Proj.projections.add(O$), e.Proj.projections.add(N$), e.Proj.projections.add(B$), e.Proj.projections.add(J$), e.Proj.projections.add(tee), e.Proj.projections.add(lee), e.Proj.projections.add(pee), e.Proj.projections.add(_ee), e.Proj.projections.add(Tee), e.Proj.projections.add(Mee), e.Proj.projections.add(zee), e.Proj.projections.add(Yee);
|
|
15865
15865
|
}
|
|
15866
|
-
const
|
|
15866
|
+
const dV = Object.assign(qJ, {
|
|
15867
15867
|
defaultDatum: "WGS84",
|
|
15868
15868
|
Proj: Fo,
|
|
15869
15869
|
WGS84: new Fo("WGS84"),
|
|
15870
15870
|
Point: Gh,
|
|
15871
|
-
toPoint:
|
|
15871
|
+
toPoint: eV,
|
|
15872
15872
|
defs: Ai,
|
|
15873
15873
|
nadgrid: VJ,
|
|
15874
15874
|
transform: Ry,
|
|
15875
15875
|
mgrs: $J,
|
|
15876
15876
|
version: "__VERSION__"
|
|
15877
15877
|
});
|
|
15878
|
-
Hee(
|
|
15878
|
+
Hee(dV);
|
|
15879
15879
|
function jee(e, t) {
|
|
15880
15880
|
const n = Kee(e);
|
|
15881
15881
|
return Qee(e, n, t);
|
|
@@ -16193,7 +16193,7 @@ async function ste(e) {
|
|
|
16193
16193
|
if (o.indexOf("__MACOSX") !== -1)
|
|
16194
16194
|
continue;
|
|
16195
16195
|
const s = o.slice(-4).toLowerCase(), a = o.slice(0, -4);
|
|
16196
|
-
s === ".shp" ? (n.push(a), t.files[a + ".shp"] = t.files[o]) : s === ".prj" ? i[a] =
|
|
16196
|
+
s === ".shp" ? (n.push(a), t.files[a + ".shp"] = t.files[o]) : s === ".prj" ? i[a] = dV(await t.files[o].async("text")) : o.slice(-5).toLowerCase() === ".json" ? n.push(a) : (s === ".dbf" || s === ".cpg") && (t.files[a + s] = t.files[o]);
|
|
16197
16197
|
}
|
|
16198
16198
|
if (!n.length)
|
|
16199
16199
|
throw new Error("no layers found");
|
|
@@ -16731,7 +16731,7 @@ function Ste(e, t, n) {
|
|
|
16731
16731
|
function Nc(e, t, n) {
|
|
16732
16732
|
return DR.randomUUID && !e ? DR.randomUUID() : Ste(e);
|
|
16733
16733
|
}
|
|
16734
|
-
const Tte =
|
|
16734
|
+
const Tte = fV({
|
|
16735
16735
|
// layer
|
|
16736
16736
|
children: 1,
|
|
16737
16737
|
data: 1,
|
|
@@ -16755,7 +16755,7 @@ const Tte = f9({
|
|
|
16755
16755
|
isVisible: 1,
|
|
16756
16756
|
visible: 1,
|
|
16757
16757
|
events: 1
|
|
16758
|
-
}), Ete =
|
|
16758
|
+
}), Ete = fV({
|
|
16759
16759
|
features: 1,
|
|
16760
16760
|
layer: 1,
|
|
16761
16761
|
originalFeatures: 1,
|
|
@@ -16763,7 +16763,7 @@ const Tte = f9({
|
|
|
16763
16763
|
status: 1,
|
|
16764
16764
|
...pS
|
|
16765
16765
|
});
|
|
16766
|
-
function
|
|
16766
|
+
function fV(e) {
|
|
16767
16767
|
return Object.keys(e);
|
|
16768
16768
|
}
|
|
16769
16769
|
const D2 = (e, t) => Object.fromEntries(
|
|
@@ -16873,7 +16873,7 @@ function Cte({
|
|
|
16873
16873
|
), x = ae(
|
|
16874
16874
|
(...H) => {
|
|
16875
16875
|
const Y = H.filter(BR).map(W1).filter((q) => !!q);
|
|
16876
|
-
E((q) => (
|
|
16876
|
+
E((q) => (pV(q, (be) => {
|
|
16877
16877
|
const oe = Y.findIndex((ee) => ee.id === be.id);
|
|
16878
16878
|
if (oe >= 0) {
|
|
16879
16879
|
const ee = { ...Y[oe] };
|
|
@@ -16937,7 +16937,7 @@ function Cte({
|
|
|
16937
16937
|
}), K = ae(
|
|
16938
16938
|
(...H) => {
|
|
16939
16939
|
H.find((oe) => oe === i?.layerId) && D(), E((oe) => {
|
|
16940
|
-
const ee = [], _e =
|
|
16940
|
+
const ee = [], _e = mV(oe, (Le) => H.includes(Le.id) ? (ee.push(Le), !0) : !1);
|
|
16941
16941
|
return ee.map((Le) => Le.id).forEach((Le) => {
|
|
16942
16942
|
c.delete(Le), h.delete(Le), d.delete(Le), m(Le);
|
|
16943
16943
|
}), R.current = R.current.filter(
|
|
@@ -17096,18 +17096,18 @@ function Rg(e, t) {
|
|
|
17096
17096
|
}
|
|
17097
17097
|
}
|
|
17098
17098
|
}
|
|
17099
|
-
function
|
|
17099
|
+
function pV(e, t) {
|
|
17100
17100
|
for (let n = 0; n < e.length; n++) {
|
|
17101
17101
|
const i = e[n], r = t(i, n, e);
|
|
17102
|
-
r && (e[n] = r), i.type === "group" && Array.isArray(i.children) && (i.children =
|
|
17102
|
+
r && (e[n] = r), i.type === "group" && Array.isArray(i.children) && (i.children = pV(i.children, t));
|
|
17103
17103
|
}
|
|
17104
17104
|
return e;
|
|
17105
17105
|
}
|
|
17106
|
-
function
|
|
17106
|
+
function mV(e, t) {
|
|
17107
17107
|
const n = [];
|
|
17108
17108
|
for (let i = 0; i < e.length; i++) {
|
|
17109
17109
|
const r = e[i];
|
|
17110
|
-
t(r, i, e) || n.push(r), r.type === "group" && Array.isArray(r.children) && (r.children =
|
|
17110
|
+
t(r, i, e) || n.push(r), r.type === "group" && Array.isArray(r.children) && (r.children = mV(r.children, t));
|
|
17111
17111
|
}
|
|
17112
17112
|
return n;
|
|
17113
17113
|
}
|
|
@@ -17116,7 +17116,7 @@ function BR(e) {
|
|
|
17116
17116
|
}
|
|
17117
17117
|
function W1(e) {
|
|
17118
17118
|
if (!(!e || typeof e != "object"))
|
|
17119
|
-
return "extensionId" in e || "property" in e ?
|
|
17119
|
+
return "extensionId" in e || "property" in e ? b9(e) : e;
|
|
17120
17120
|
}
|
|
17121
17121
|
function Rte({
|
|
17122
17122
|
initialSelectedLayer: e,
|
|
@@ -17333,7 +17333,7 @@ class YR {
|
|
|
17333
17333
|
this._last = null;
|
|
17334
17334
|
}
|
|
17335
17335
|
}
|
|
17336
|
-
const
|
|
17336
|
+
const gV = ".", Vte = "", yV = "", Fte = "#", zte = "*", bV = "xstate.init", Y2 = "xstate.stop";
|
|
17337
17337
|
function Ate(e, t) {
|
|
17338
17338
|
return {
|
|
17339
17339
|
type: `xstate.after.${e}.${t}`
|
|
@@ -17359,9 +17359,9 @@ function Xte(e, t) {
|
|
|
17359
17359
|
actorId: e
|
|
17360
17360
|
};
|
|
17361
17361
|
}
|
|
17362
|
-
function
|
|
17362
|
+
function _V(e) {
|
|
17363
17363
|
return {
|
|
17364
|
-
type:
|
|
17364
|
+
type: bV,
|
|
17365
17365
|
input: e
|
|
17366
17366
|
};
|
|
17367
17367
|
}
|
|
@@ -17371,12 +17371,12 @@ function Ms(e) {
|
|
|
17371
17371
|
});
|
|
17372
17372
|
}
|
|
17373
17373
|
const Zte = typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
17374
|
-
function
|
|
17374
|
+
function vV(e, t) {
|
|
17375
17375
|
const n = HR(e), i = HR(t);
|
|
17376
|
-
return typeof i == "string" ? typeof n == "string" ? i === n : !1 : typeof n == "string" ? n in i : Object.keys(n).every((r) => r in i ?
|
|
17376
|
+
return typeof i == "string" ? typeof n == "string" ? i === n : !1 : typeof n == "string" ? n in i : Object.keys(n).every((r) => r in i ? vV(n[r], i[r]) : !1);
|
|
17377
17377
|
}
|
|
17378
17378
|
function PS(e) {
|
|
17379
|
-
if (
|
|
17379
|
+
if (xV(e))
|
|
17380
17380
|
return e;
|
|
17381
17381
|
const t = [];
|
|
17382
17382
|
let n = "";
|
|
@@ -17425,11 +17425,11 @@ function jR(e, t) {
|
|
|
17425
17425
|
}
|
|
17426
17426
|
return n;
|
|
17427
17427
|
}
|
|
17428
|
-
function
|
|
17429
|
-
return
|
|
17428
|
+
function wV(e) {
|
|
17429
|
+
return xV(e) ? e : [e];
|
|
17430
17430
|
}
|
|
17431
17431
|
function Gc(e) {
|
|
17432
|
-
return e === void 0 ? [] :
|
|
17432
|
+
return e === void 0 ? [] : wV(e);
|
|
17433
17433
|
}
|
|
17434
17434
|
function j2(e, t, n, i) {
|
|
17435
17435
|
return typeof e == "function" ? e({
|
|
@@ -17438,18 +17438,18 @@ function j2(e, t, n, i) {
|
|
|
17438
17438
|
self: i
|
|
17439
17439
|
}) : e;
|
|
17440
17440
|
}
|
|
17441
|
-
function
|
|
17441
|
+
function xV(e) {
|
|
17442
17442
|
return Array.isArray(e);
|
|
17443
17443
|
}
|
|
17444
17444
|
function Wte(e) {
|
|
17445
17445
|
return e.type.startsWith("xstate.error.actor");
|
|
17446
17446
|
}
|
|
17447
17447
|
function Xu(e) {
|
|
17448
|
-
return
|
|
17448
|
+
return wV(e).map((t) => typeof t > "u" || typeof t == "string" ? {
|
|
17449
17449
|
target: t
|
|
17450
17450
|
} : t);
|
|
17451
17451
|
}
|
|
17452
|
-
function
|
|
17452
|
+
function SV(e) {
|
|
17453
17453
|
if (!(e === void 0 || e === Vte))
|
|
17454
17454
|
return Gc(e);
|
|
17455
17455
|
}
|
|
@@ -17846,7 +17846,7 @@ class Hte {
|
|
|
17846
17846
|
error: () => {
|
|
17847
17847
|
}
|
|
17848
17848
|
}), this.system._register(this.sessionId, this), this.systemId && this.system._set(this.systemId, this), this._processingStatus = Lr.Running;
|
|
17849
|
-
const t =
|
|
17849
|
+
const t = _V(this.options.input);
|
|
17850
17850
|
switch (this.system._sendInspectionEvent({
|
|
17851
17851
|
type: "@xstate.event",
|
|
17852
17852
|
sourceRef: this._parent,
|
|
@@ -18083,16 +18083,16 @@ function ene(e, t, n, i, {
|
|
|
18083
18083
|
children: a
|
|
18084
18084
|
}), s, void 0];
|
|
18085
18085
|
}
|
|
18086
|
-
function
|
|
18086
|
+
function TV(e, t) {
|
|
18087
18087
|
const n = t.getSnapshot();
|
|
18088
18088
|
if (n && "children" in n)
|
|
18089
18089
|
for (const i of Object.values(n.children))
|
|
18090
|
-
|
|
18090
|
+
TV(e, i);
|
|
18091
18091
|
e.system._unregister(t);
|
|
18092
18092
|
}
|
|
18093
18093
|
function tne(e, t) {
|
|
18094
18094
|
if (t) {
|
|
18095
|
-
if (
|
|
18095
|
+
if (TV(e, t), t._processingStatus !== Lr.Running) {
|
|
18096
18096
|
e.stopChild(t);
|
|
18097
18097
|
return;
|
|
18098
18098
|
}
|
|
@@ -18101,7 +18101,7 @@ function tne(e, t) {
|
|
|
18101
18101
|
});
|
|
18102
18102
|
}
|
|
18103
18103
|
}
|
|
18104
|
-
function
|
|
18104
|
+
function EV(e) {
|
|
18105
18105
|
function t(n, i) {
|
|
18106
18106
|
}
|
|
18107
18107
|
return t.type = "xstate.stopChild", t.actorRef = e, t.resolve = ene, t.execute = tne, t;
|
|
@@ -18144,7 +18144,7 @@ function wm(e, t) {
|
|
|
18144
18144
|
return n;
|
|
18145
18145
|
}
|
|
18146
18146
|
function Gy(e) {
|
|
18147
|
-
const t = new Set(e), n =
|
|
18147
|
+
const t = new Set(e), n = RV(t);
|
|
18148
18148
|
for (const i of t)
|
|
18149
18149
|
if (i.type === "compound" && (!n.get(i) || !n.get(i).length))
|
|
18150
18150
|
QR(i).forEach((r) => t.add(r));
|
|
@@ -18163,7 +18163,7 @@ function Gy(e) {
|
|
|
18163
18163
|
}
|
|
18164
18164
|
return t;
|
|
18165
18165
|
}
|
|
18166
|
-
function
|
|
18166
|
+
function CV(e, t) {
|
|
18167
18167
|
const n = t.get(e);
|
|
18168
18168
|
if (!n)
|
|
18169
18169
|
return {};
|
|
@@ -18177,18 +18177,18 @@ function C9(e, t) {
|
|
|
18177
18177
|
}
|
|
18178
18178
|
const i = {};
|
|
18179
18179
|
for (const r of n)
|
|
18180
|
-
i[r.key] =
|
|
18180
|
+
i[r.key] = CV(r, t);
|
|
18181
18181
|
return i;
|
|
18182
18182
|
}
|
|
18183
|
-
function
|
|
18183
|
+
function RV(e) {
|
|
18184
18184
|
const t = /* @__PURE__ */ new Map();
|
|
18185
18185
|
for (const n of e)
|
|
18186
18186
|
t.has(n) || t.set(n, []), n.parent && (t.has(n.parent) || t.set(n.parent, []), t.get(n.parent).push(n));
|
|
18187
18187
|
return t;
|
|
18188
18188
|
}
|
|
18189
|
-
function
|
|
18189
|
+
function IV(e, t) {
|
|
18190
18190
|
const n = Gy(t);
|
|
18191
|
-
return
|
|
18191
|
+
return CV(e, RV(n));
|
|
18192
18192
|
}
|
|
18193
18193
|
function zS(e, t) {
|
|
18194
18194
|
return t.type === "compound" ? Vh(t).some((n) => n.type === "final" && e.has(n)) : t.type === "parallel" ? Vh(t).every((n) => zS(e, n)) : t.type === "final";
|
|
@@ -18228,7 +18228,7 @@ function ine(e) {
|
|
|
18228
18228
|
});
|
|
18229
18229
|
}
|
|
18230
18230
|
function Tc(e, t, n) {
|
|
18231
|
-
const i =
|
|
18231
|
+
const i = SV(n.target), r = n.reenter ?? !1, o = ane(e, i), s = {
|
|
18232
18232
|
...n,
|
|
18233
18233
|
actions: Gc(n.actions),
|
|
18234
18234
|
guard: n.guard,
|
|
@@ -18248,7 +18248,7 @@ function rne(e) {
|
|
|
18248
18248
|
const t = /* @__PURE__ */ new Map();
|
|
18249
18249
|
if (e.config.on)
|
|
18250
18250
|
for (const n of Object.keys(e.config.on)) {
|
|
18251
|
-
if (n ===
|
|
18251
|
+
if (n === yV)
|
|
18252
18252
|
throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');
|
|
18253
18253
|
const i = e.config.on[n];
|
|
18254
18254
|
t.set(n, Xu(i).map((r) => Tc(e, n, r)));
|
|
@@ -18321,7 +18321,7 @@ function ane(e, t) {
|
|
|
18321
18321
|
return n;
|
|
18322
18322
|
if (Db(n))
|
|
18323
18323
|
return e.machine.getStateNodeById(n);
|
|
18324
|
-
const i = n[0] ===
|
|
18324
|
+
const i = n[0] === gV;
|
|
18325
18325
|
if (i && !e.parent)
|
|
18326
18326
|
return Oy(e, n.slice(1));
|
|
18327
18327
|
const r = i ? e.key + n : n;
|
|
@@ -18336,8 +18336,8 @@ ${o.message}`);
|
|
|
18336
18336
|
throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`);
|
|
18337
18337
|
});
|
|
18338
18338
|
}
|
|
18339
|
-
function
|
|
18340
|
-
const t =
|
|
18339
|
+
function MV(e) {
|
|
18340
|
+
const t = SV(e.config.target);
|
|
18341
18341
|
return t ? {
|
|
18342
18342
|
target: t.map((n) => typeof n == "string" ? Oy(e.parent, n) : n)
|
|
18343
18343
|
} : e.parent.initial;
|
|
@@ -18346,13 +18346,13 @@ function Ll(e) {
|
|
|
18346
18346
|
return e.type === "history";
|
|
18347
18347
|
}
|
|
18348
18348
|
function QR(e) {
|
|
18349
|
-
const t =
|
|
18349
|
+
const t = LV(e);
|
|
18350
18350
|
for (const n of t)
|
|
18351
18351
|
for (const i of wm(n, e))
|
|
18352
18352
|
t.add(i);
|
|
18353
18353
|
return t;
|
|
18354
18354
|
}
|
|
18355
|
-
function
|
|
18355
|
+
function LV(e) {
|
|
18356
18356
|
const t = /* @__PURE__ */ new Set();
|
|
18357
18357
|
function n(i) {
|
|
18358
18358
|
if (!t.has(i)) {
|
|
@@ -18448,7 +18448,7 @@ function dne(e, t) {
|
|
|
18448
18448
|
return !0;
|
|
18449
18449
|
return !1;
|
|
18450
18450
|
}
|
|
18451
|
-
function
|
|
18451
|
+
function PV(e, t, n) {
|
|
18452
18452
|
const i = /* @__PURE__ */ new Set();
|
|
18453
18453
|
for (const r of e) {
|
|
18454
18454
|
let o = !1;
|
|
@@ -18485,13 +18485,13 @@ function NS(e, t) {
|
|
|
18485
18485
|
for (const r of t[i.id])
|
|
18486
18486
|
n.add(r);
|
|
18487
18487
|
else
|
|
18488
|
-
for (const r of NS(
|
|
18488
|
+
for (const r of NS(MV(i), t))
|
|
18489
18489
|
n.add(r);
|
|
18490
18490
|
else
|
|
18491
18491
|
n.add(i);
|
|
18492
18492
|
return [...n];
|
|
18493
18493
|
}
|
|
18494
|
-
function
|
|
18494
|
+
function GV(e, t) {
|
|
18495
18495
|
const n = NS(e, t);
|
|
18496
18496
|
if (!n)
|
|
18497
18497
|
return;
|
|
@@ -18507,7 +18507,7 @@ function J2(e, t, n) {
|
|
|
18507
18507
|
const i = /* @__PURE__ */ new Set();
|
|
18508
18508
|
for (const r of e)
|
|
18509
18509
|
if (r.target?.length) {
|
|
18510
|
-
const o =
|
|
18510
|
+
const o = GV(r, n);
|
|
18511
18511
|
r.reenter && r.source === o && i.add(o);
|
|
18512
18512
|
for (const s of t)
|
|
18513
18513
|
Uc(s, o) && i.add(s);
|
|
@@ -18524,7 +18524,7 @@ function pne(e, t) {
|
|
|
18524
18524
|
}
|
|
18525
18525
|
function mne(e, t, n, i, r) {
|
|
18526
18526
|
return Q2([{
|
|
18527
|
-
target: [...
|
|
18527
|
+
target: [...LV(e)],
|
|
18528
18528
|
source: e,
|
|
18529
18529
|
reenter: !0,
|
|
18530
18530
|
actions: [],
|
|
@@ -18543,7 +18543,7 @@ function Q2(e, t, n, i, r, o) {
|
|
|
18543
18543
|
try {
|
|
18544
18544
|
const c = new Set(t._nodes);
|
|
18545
18545
|
let l = t.historyValue;
|
|
18546
|
-
const u =
|
|
18546
|
+
const u = PV(e, c, l);
|
|
18547
18547
|
let h = t;
|
|
18548
18548
|
r || ([h, l] = _ne(h, i, n, u, c, l, o, n.actionExecutor)), h = zh(h, i, n, u.flatMap((f) => f.actions), o, void 0), h = yne(h, i, n, u, c, o, l, r);
|
|
18549
18549
|
const d = [...c];
|
|
@@ -18601,7 +18601,7 @@ function yne(e, t, n, i, r, o, s, a) {
|
|
|
18601
18601
|
}
|
|
18602
18602
|
function bne(e, t, n, i) {
|
|
18603
18603
|
for (const r of e) {
|
|
18604
|
-
const o =
|
|
18604
|
+
const o = GV(r, t);
|
|
18605
18605
|
for (const a of r.target || [])
|
|
18606
18606
|
!Ll(a) && // if the target is different than the source then it will *definitely* be entered
|
|
18607
18607
|
(r.source !== a || // we know that the domain can't lie within the source
|
|
@@ -18611,7 +18611,7 @@ function bne(e, t, n, i) {
|
|
|
18611
18611
|
const s = NS(r, t);
|
|
18612
18612
|
for (const a of s) {
|
|
18613
18613
|
const c = wm(a, o);
|
|
18614
|
-
o?.type === "parallel" && c.push(o),
|
|
18614
|
+
o?.type === "parallel" && c.push(o), OV(i, t, n, c, !r.source.parent && r.reenter ? void 0 : o);
|
|
18615
18615
|
}
|
|
18616
18616
|
}
|
|
18617
18617
|
}
|
|
@@ -18624,7 +18624,7 @@ function Ju(e, t, n, i) {
|
|
|
18624
18624
|
for (const o of r)
|
|
18625
18625
|
D1(o, e.parent, i, t, n);
|
|
18626
18626
|
} else {
|
|
18627
|
-
const r =
|
|
18627
|
+
const r = MV(e);
|
|
18628
18628
|
for (const o of r.target)
|
|
18629
18629
|
i.add(o), r === e.parent?.initial && n.add(e.parent), Ju(o, t, n, i);
|
|
18630
18630
|
for (const o of r.target)
|
|
@@ -18637,14 +18637,14 @@ function Ju(e, t, n, i) {
|
|
|
18637
18637
|
for (const r of Vh(e).filter((o) => !Ll(o)))
|
|
18638
18638
|
[...i].some((o) => Uc(o, r)) || (Ll(r) || (i.add(r), n.add(r)), Ju(r, t, n, i));
|
|
18639
18639
|
}
|
|
18640
|
-
function
|
|
18640
|
+
function OV(e, t, n, i, r) {
|
|
18641
18641
|
for (const o of i)
|
|
18642
18642
|
if ((!r || Uc(o, r)) && e.add(o), o.type === "parallel")
|
|
18643
18643
|
for (const s of Vh(o).filter((a) => !Ll(a)))
|
|
18644
18644
|
[...e].some((a) => Uc(a, s)) || (e.add(s), Ju(s, t, n, e));
|
|
18645
18645
|
}
|
|
18646
18646
|
function D1(e, t, n, i, r) {
|
|
18647
|
-
|
|
18647
|
+
OV(n, i, r, wm(e, t));
|
|
18648
18648
|
}
|
|
18649
18649
|
function _ne(e, t, n, i, r, o, s, a) {
|
|
18650
18650
|
let c = e;
|
|
@@ -18659,13 +18659,13 @@ function _ne(e, t, n, i, r, o, s, a) {
|
|
|
18659
18659
|
}, u[d.id] = Array.from(r).filter(f);
|
|
18660
18660
|
}
|
|
18661
18661
|
for (const h of l)
|
|
18662
|
-
c = zh(c, t, n, [...h.exit, ...h.invoke.map((d) =>
|
|
18662
|
+
c = zh(c, t, n, [...h.exit, ...h.invoke.map((d) => EV(d.id))], s, void 0), r.delete(h);
|
|
18663
18663
|
return [c, u || o];
|
|
18664
18664
|
}
|
|
18665
18665
|
function vne(e, t) {
|
|
18666
18666
|
return e.implementations.actions[t];
|
|
18667
18667
|
}
|
|
18668
|
-
function
|
|
18668
|
+
function VV(e, t, n, i, r, o) {
|
|
18669
18669
|
const {
|
|
18670
18670
|
machine: s
|
|
18671
18671
|
} = e;
|
|
@@ -18708,12 +18708,12 @@ function V9(e, t, n, i, r, o) {
|
|
|
18708
18708
|
info: h,
|
|
18709
18709
|
params: m,
|
|
18710
18710
|
exec: f.execute.bind(null, n, m)
|
|
18711
|
-
}), b && (a =
|
|
18711
|
+
}), b && (a = VV(a, t, n, b, r, o));
|
|
18712
18712
|
}
|
|
18713
18713
|
return a;
|
|
18714
18714
|
}
|
|
18715
18715
|
function zh(e, t, n, i, r, o) {
|
|
18716
|
-
const s = o ? [] : void 0, a =
|
|
18716
|
+
const s = o ? [] : void 0, a = VV(e, t, n, i, {
|
|
18717
18717
|
internalQueue: r,
|
|
18718
18718
|
deferredActorIds: o
|
|
18719
18719
|
}, s);
|
|
@@ -18741,7 +18741,7 @@ function B1(e, t, n, i) {
|
|
|
18741
18741
|
microsteps: o
|
|
18742
18742
|
};
|
|
18743
18743
|
let a = t;
|
|
18744
|
-
if (a.type !==
|
|
18744
|
+
if (a.type !== bV) {
|
|
18745
18745
|
const l = a, u = Wte(l), h = $R(l, r);
|
|
18746
18746
|
if (u && !h.length)
|
|
18747
18747
|
return r = Bl(e, {
|
|
@@ -18780,7 +18780,7 @@ function B1(e, t, n, i) {
|
|
|
18780
18780
|
};
|
|
18781
18781
|
}
|
|
18782
18782
|
function qR(e, t, n) {
|
|
18783
|
-
return zh(e, t, n, Object.values(e.children).map((i) =>
|
|
18783
|
+
return zh(e, t, n, Object.values(e.children).map((i) => EV(i)), [], void 0);
|
|
18784
18784
|
}
|
|
18785
18785
|
function $R(e, t) {
|
|
18786
18786
|
return t.machine.getTransitionData(t, e);
|
|
@@ -18796,17 +18796,17 @@ function wne(e, t) {
|
|
|
18796
18796
|
break e;
|
|
18797
18797
|
}
|
|
18798
18798
|
}
|
|
18799
|
-
return
|
|
18799
|
+
return PV(Array.from(n), new Set(e._nodes), e.historyValue);
|
|
18800
18800
|
}
|
|
18801
18801
|
function xne(e, t) {
|
|
18802
18802
|
const n = Gy(Vy(e, t));
|
|
18803
|
-
return
|
|
18803
|
+
return IV(e, [...n]);
|
|
18804
18804
|
}
|
|
18805
18805
|
function Sne(e) {
|
|
18806
18806
|
return !!e && typeof e == "object" && "machine" in e && "value" in e;
|
|
18807
18807
|
}
|
|
18808
18808
|
const Tne = function(t) {
|
|
18809
|
-
return
|
|
18809
|
+
return vV(t, this.value);
|
|
18810
18810
|
}, Ene = function(t) {
|
|
18811
18811
|
return this.tags.has(t);
|
|
18812
18812
|
}, Cne = function(t) {
|
|
@@ -18840,7 +18840,7 @@ function Ig(e, t) {
|
|
|
18840
18840
|
machine: t,
|
|
18841
18841
|
context: e.context,
|
|
18842
18842
|
_nodes: e._nodes,
|
|
18843
|
-
value:
|
|
18843
|
+
value: IV(t.root, e._nodes),
|
|
18844
18844
|
tags: new Set(e._nodes.flatMap((n) => n.tags)),
|
|
18845
18845
|
children: e.children,
|
|
18846
18846
|
historyValue: e.historyValue || {},
|
|
@@ -18894,12 +18894,12 @@ function Lne(e, t) {
|
|
|
18894
18894
|
}
|
|
18895
18895
|
return {
|
|
18896
18896
|
...d,
|
|
18897
|
-
context:
|
|
18897
|
+
context: FV(s),
|
|
18898
18898
|
children: f,
|
|
18899
18899
|
historyValue: Mne(d.historyValue)
|
|
18900
18900
|
};
|
|
18901
18901
|
}
|
|
18902
|
-
function
|
|
18902
|
+
function FV(e) {
|
|
18903
18903
|
let t;
|
|
18904
18904
|
for (const n in e) {
|
|
18905
18905
|
const i = e[n];
|
|
@@ -18912,7 +18912,7 @@ function F9(e) {
|
|
|
18912
18912
|
id: i.id
|
|
18913
18913
|
};
|
|
18914
18914
|
else {
|
|
18915
|
-
const r =
|
|
18915
|
+
const r = FV(i);
|
|
18916
18916
|
r !== i && (t ??= Array.isArray(e) ? e.slice() : {
|
|
18917
18917
|
...e
|
|
18918
18918
|
}, t[n] = r);
|
|
@@ -19054,7 +19054,7 @@ const zne = {}, Gd = (e) => typeof e == "string" ? {
|
|
|
19054
19054
|
} : e;
|
|
19055
19055
|
class Fy {
|
|
19056
19056
|
constructor(t, n) {
|
|
19057
|
-
if (this.config = t, this.key = void 0, this.id = void 0, this.type = void 0, this.path = void 0, this.states = void 0, this.history = void 0, this.entry = void 0, this.exit = void 0, this.parent = void 0, this.machine = void 0, this.meta = void 0, this.output = void 0, this.order = -1, this.description = void 0, this.tags = [], this.transitions = void 0, this.always = void 0, this.parent = n._parent, this.key = n._key, this.machine = n._machine, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.id = this.config.id || [this.machine.id, ...this.path].join(
|
|
19057
|
+
if (this.config = t, this.key = void 0, this.id = void 0, this.type = void 0, this.path = void 0, this.states = void 0, this.history = void 0, this.entry = void 0, this.exit = void 0, this.parent = void 0, this.machine = void 0, this.meta = void 0, this.output = void 0, this.order = -1, this.description = void 0, this.tags = [], this.transitions = void 0, this.always = void 0, this.parent = n._parent, this.key = n._key, this.machine = n._machine, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.id = this.config.id || [this.machine.id, ...this.path].join(gV), this.type = this.config.type || (this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.description = this.config.description, this.order = this.machine.idMap.size, this.machine.idMap.set(this.id, this), this.states = this.config.states ? jR(this.config.states, (i, r) => new Fy(i, {
|
|
19058
19058
|
_parent: this,
|
|
19059
19059
|
_key: r,
|
|
19060
19060
|
_machine: this.machine
|
|
@@ -19064,7 +19064,7 @@ class Fy {
|
|
|
19064
19064
|
}
|
|
19065
19065
|
/** @internal */
|
|
19066
19066
|
_initialize() {
|
|
19067
|
-
this.transitions = rne(this), this.config.always && (this.always = Xu(this.config.always).map((t) => Tc(this,
|
|
19067
|
+
this.transitions = rne(this), this.config.always && (this.always = Xu(this.config.always).map((t) => Tc(this, yV, t))), Object.keys(this.states).forEach((t) => {
|
|
19068
19068
|
this.states[t]._initialize();
|
|
19069
19069
|
});
|
|
19070
19070
|
}
|
|
@@ -19308,7 +19308,7 @@ class XS {
|
|
|
19308
19308
|
* `ActorRef`.
|
|
19309
19309
|
*/
|
|
19310
19310
|
getInitialSnapshot(t, n) {
|
|
19311
|
-
const i =
|
|
19311
|
+
const i = _V(n), r = [], o = this._getPreInitialState(t, i, r), [s] = mne(this.root, o, t, i, r), {
|
|
19312
19312
|
snapshot: a
|
|
19313
19313
|
} = B1(s, i, t, r);
|
|
19314
19314
|
return a;
|
|
@@ -19607,16 +19607,16 @@ function Une() {
|
|
|
19607
19607
|
}
|
|
19608
19608
|
Une();
|
|
19609
19609
|
var Dne = ZS();
|
|
19610
|
-
const
|
|
19610
|
+
const zV = (e, t) => {
|
|
19611
19611
|
t(e);
|
|
19612
19612
|
const n = e.getSnapshot().children;
|
|
19613
19613
|
n && Object.values(n).forEach((i) => {
|
|
19614
|
-
|
|
19614
|
+
zV(i, t);
|
|
19615
19615
|
});
|
|
19616
19616
|
};
|
|
19617
19617
|
function Bne(e) {
|
|
19618
19618
|
const t = [];
|
|
19619
|
-
|
|
19619
|
+
zV(e, (i) => {
|
|
19620
19620
|
t.push([i, i.getSnapshot()]), i.observers = /* @__PURE__ */ new Set();
|
|
19621
19621
|
});
|
|
19622
19622
|
const n = e.system.getSnapshot?.();
|
|
@@ -21505,7 +21505,7 @@ const Qu = "__RESIUM_EVENT_MANAGER", ew = [
|
|
|
21505
21505
|
"onMouseEnter",
|
|
21506
21506
|
"onMouseLeave"
|
|
21507
21507
|
];
|
|
21508
|
-
let
|
|
21508
|
+
let AV = class NV {
|
|
21509
21509
|
static eventTypeMap = {
|
|
21510
21510
|
onClick: zt.LEFT_CLICK,
|
|
21511
21511
|
onDoubleClick: zt.LEFT_DOUBLE_CLICK,
|
|
@@ -21578,7 +21578,7 @@ let A9 = class N9 {
|
|
|
21578
21578
|
n || (this.events.onMouseEnter.size === 0 && this.events.onMouseLeave.size === 0 && this.events.onMouseMove.size === 0 ? this.sshe.removeInputAction(zt.MOUSE_MOVE) : this.sshe.getInputAction(zt.MOUSE_MOVE) || this.sshe.setInputAction(this.onMouseMove, zt.MOUSE_MOVE)), $2(this.events).forEach(([i, r]) => {
|
|
21579
21579
|
if (i === "onMouseEnter" || i === "onMouseLeave" || i === "onMouseMove")
|
|
21580
21580
|
return;
|
|
21581
|
-
const o =
|
|
21581
|
+
const o = NV.eventTypeMap[i];
|
|
21582
21582
|
n || (r.size === 0 ? t.removeInputAction(o) : t.getInputAction(o) || t.setInputAction(this.eventCallback(i), o));
|
|
21583
21583
|
});
|
|
21584
21584
|
}
|
|
@@ -21839,7 +21839,7 @@ const bie = [
|
|
|
21839
21839
|
"splitDirection"
|
|
21840
21840
|
], _ie = {
|
|
21841
21841
|
onDefinitionChange: "definitionChanged"
|
|
21842
|
-
},
|
|
21842
|
+
}, XV = dt({
|
|
21843
21843
|
name: "BillboardGraphics",
|
|
21844
21844
|
create(e, t) {
|
|
21845
21845
|
if (!e.entity) return;
|
|
@@ -22081,7 +22081,7 @@ dt({
|
|
|
22081
22081
|
const i = new RW(n, t);
|
|
22082
22082
|
if (!i) return;
|
|
22083
22083
|
typeof t.resolutionScale == "number" && (i.resolutionScale = t.resolutionScale);
|
|
22084
|
-
const r = new
|
|
22084
|
+
const r = new AV(i.scene);
|
|
22085
22085
|
return [i, r];
|
|
22086
22086
|
},
|
|
22087
22087
|
destroy(e, t, n, i) {
|
|
@@ -22702,7 +22702,7 @@ const Mre = [
|
|
|
22702
22702
|
"minimumTerrainLevel",
|
|
22703
22703
|
"maximumTerrainLevel",
|
|
22704
22704
|
"imageryProvider"
|
|
22705
|
-
],
|
|
22705
|
+
], ZV = dt({
|
|
22706
22706
|
name: "ImageryLayer",
|
|
22707
22707
|
async create(e, t) {
|
|
22708
22708
|
if (!e.imageryLayerCollection) return;
|
|
@@ -23197,7 +23197,7 @@ const loe = [
|
|
|
23197
23197
|
"textureCoordinates"
|
|
23198
23198
|
], uoe = {
|
|
23199
23199
|
onDefinitionChange: "definitionChanged"
|
|
23200
|
-
},
|
|
23200
|
+
}, kV = dt({
|
|
23201
23201
|
name: "PolygonGraphics",
|
|
23202
23202
|
create(e, t) {
|
|
23203
23203
|
if (!e.entity) return;
|
|
@@ -23792,7 +23792,7 @@ const Doe = [
|
|
|
23792
23792
|
t === !1 && s.imageryLayers.removeAll(), s && i.extend && (Array.isArray(i.extend) ? i.extend.forEach((c) => {
|
|
23793
23793
|
s.extend(c, {});
|
|
23794
23794
|
}) : s.extend(i.extend, {}));
|
|
23795
|
-
const a = new
|
|
23795
|
+
const a = new AV(s.scene);
|
|
23796
23796
|
return [s, a];
|
|
23797
23797
|
},
|
|
23798
23798
|
destroy(e, t, n, i) {
|
|
@@ -23905,7 +23905,7 @@ const nw = Ei(({ wsen: e, color: t }) => {
|
|
|
23905
23905
|
return /* @__PURE__ */ ce.jsx(Bc, { ...n });
|
|
23906
23906
|
});
|
|
23907
23907
|
nw.displayName = "SpatialIdSpace";
|
|
23908
|
-
const
|
|
23908
|
+
const WV = Ei(({ indicator: e }) => {
|
|
23909
23909
|
const t = he(
|
|
23910
23910
|
() => ({
|
|
23911
23911
|
rectangle: {
|
|
@@ -23924,7 +23924,7 @@ const W9 = Ei(({ indicator: e }) => {
|
|
|
23924
23924
|
);
|
|
23925
23925
|
return /* @__PURE__ */ ce.jsx(Bc, { ...t });
|
|
23926
23926
|
});
|
|
23927
|
-
|
|
23927
|
+
WV.displayName = "VerticalSpaceIndicator";
|
|
23928
23928
|
const Qoe = {
|
|
23929
23929
|
zoom: 20,
|
|
23930
23930
|
maxHeight: 4e3,
|
|
@@ -23945,8 +23945,8 @@ const Qoe = {
|
|
|
23945
23945
|
function qoe(e) {
|
|
23946
23946
|
return "z" in e && "f" in e && "x" in e && "y" in e;
|
|
23947
23947
|
}
|
|
23948
|
-
const qu = 25,
|
|
23949
|
-
function
|
|
23948
|
+
const qu = 25, UV = { f: 0, x: 0, y: 0, z: 0 }, $oe = 180 / Math.PI;
|
|
23949
|
+
function DV(e, t = 1) {
|
|
23950
23950
|
const { f: n, x: i, y: r, z: o } = e;
|
|
23951
23951
|
if (t <= 0)
|
|
23952
23952
|
throw new Error("steps must be greater than 0");
|
|
@@ -23959,7 +23959,7 @@ function D9(e, t = 1) {
|
|
|
23959
23959
|
z: o - t
|
|
23960
23960
|
};
|
|
23961
23961
|
}
|
|
23962
|
-
function zy(e =
|
|
23962
|
+
function zy(e = UV) {
|
|
23963
23963
|
const { f: t, x: n, y: i, z: r } = e;
|
|
23964
23964
|
return [
|
|
23965
23965
|
{ f: t * 2, x: n * 2, y: i * 2, z: r + 1 },
|
|
@@ -23973,7 +23973,7 @@ function zy(e = U9) {
|
|
|
23973
23973
|
// f +1, x +1, y +1
|
|
23974
23974
|
];
|
|
23975
23975
|
}
|
|
23976
|
-
function q1(e =
|
|
23976
|
+
function q1(e = UV) {
|
|
23977
23977
|
const { f: t, x: n, y: i, z: r } = e;
|
|
23978
23978
|
return [
|
|
23979
23979
|
Os({ f: t, x: n, y: i, z: r }),
|
|
@@ -24058,7 +24058,7 @@ function ose(e) {
|
|
|
24058
24058
|
const o = t;
|
|
24059
24059
|
let s = "";
|
|
24060
24060
|
for (; r > 0; ) {
|
|
24061
|
-
const a = { f: Math.abs(t), x: n, y: i, z: r }, c =
|
|
24061
|
+
const a = { f: Math.abs(t), x: n, y: i, z: r }, c = DV(a);
|
|
24062
24062
|
s = (zy(c).findIndex((h) => h.f === Math.abs(t) && h.x === n && h.y === i && h.z === r) + 1).toString() + s, t = c.f, n = c.x, i = c.y, r = c.z;
|
|
24063
24063
|
}
|
|
24064
24064
|
return (o < 0 ? "-" : "") + s;
|
|
@@ -24083,7 +24083,7 @@ function sse(e, t, n) {
|
|
|
24083
24083
|
};
|
|
24084
24084
|
return Hl(i, t, n);
|
|
24085
24085
|
}
|
|
24086
|
-
function
|
|
24086
|
+
function BV(e, t, n) {
|
|
24087
24087
|
if (n === void 0 && (n = {}), e.length < 2)
|
|
24088
24088
|
throw new Error("coordinates must be an array of two or more positions");
|
|
24089
24089
|
var i = {
|
|
@@ -24108,7 +24108,7 @@ function ase(e, t, n) {
|
|
|
24108
24108
|
function v3(e) {
|
|
24109
24109
|
return !isNaN(e) && e !== null && !Array.isArray(e);
|
|
24110
24110
|
}
|
|
24111
|
-
function
|
|
24111
|
+
function YV(e, t, n) {
|
|
24112
24112
|
if (e !== null)
|
|
24113
24113
|
for (var i, r, o, s, a, c, l, u = 0, h = 0, d, f = e.type, p = f === "FeatureCollection", m = f === "Feature", b = p ? e.features.length : 1, g = 0; g < b; g++) {
|
|
24114
24114
|
l = p ? e.features[g].geometry : m ? e.geometry : e, d = l ? l.type === "GeometryCollection" : !1, a = d ? l.geometries.length : 1;
|
|
@@ -24185,7 +24185,7 @@ function Y9(e, t, n) {
|
|
|
24185
24185
|
break;
|
|
24186
24186
|
case "GeometryCollection":
|
|
24187
24187
|
for (i = 0; i < s.geometries.length; i++)
|
|
24188
|
-
if (
|
|
24188
|
+
if (YV(s.geometries[i], t) === !1)
|
|
24189
24189
|
return !1;
|
|
24190
24190
|
break;
|
|
24191
24191
|
default:
|
|
@@ -24291,7 +24291,7 @@ function yp(e, t) {
|
|
|
24291
24291
|
}
|
|
24292
24292
|
function Ny(e) {
|
|
24293
24293
|
var t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
24294
|
-
return
|
|
24294
|
+
return YV(e, function(n) {
|
|
24295
24295
|
t[0] > n[0] && (t[0] = n[0]), t[1] > n[1] && (t[1] = n[1]), t[2] < n[0] && (t[2] = n[0]), t[3] < n[1] && (t[3] = n[1]);
|
|
24296
24296
|
}), t;
|
|
24297
24297
|
}
|
|
@@ -24383,7 +24383,7 @@ function hse(e, t) {
|
|
|
24383
24383
|
function dse(e, t) {
|
|
24384
24384
|
var n = [];
|
|
24385
24385
|
return e.reduce(function(i, r) {
|
|
24386
|
-
var o =
|
|
24386
|
+
var o = BV([i, r], t);
|
|
24387
24387
|
return o.bbox = fse(i, r), n.push(o), r;
|
|
24388
24388
|
}), n;
|
|
24389
24389
|
}
|
|
@@ -24393,13 +24393,13 @@ function fse(e, t) {
|
|
|
24393
24393
|
}
|
|
24394
24394
|
var WS = { exports: {} };
|
|
24395
24395
|
function pse(e, t, n, i, r) {
|
|
24396
|
-
|
|
24396
|
+
HV(e, t, n || 0, i || e.length - 1, r || mse);
|
|
24397
24397
|
}
|
|
24398
|
-
function
|
|
24398
|
+
function HV(e, t, n, i, r) {
|
|
24399
24399
|
for (; i > n; ) {
|
|
24400
24400
|
if (i - n > 600) {
|
|
24401
24401
|
var o = i - n + 1, s = t - n + 1, a = Math.log(o), c = 0.5 * Math.exp(2 * a / 3), l = 0.5 * Math.sqrt(a * c * (o - c) / o) * (s - o / 2 < 0 ? -1 : 1), u = Math.max(n, Math.floor(t - s * c / o + l)), h = Math.min(i, Math.floor(t + (o - s) * c / o + l));
|
|
24402
|
-
|
|
24402
|
+
HV(e, t, u, h, r);
|
|
24403
24403
|
}
|
|
24404
24404
|
var d = e[t], f = n, p = i;
|
|
24405
24405
|
for (Vd(e, n, t), r(e[i], d) > 0 && Vd(e, n, i); f < p; ) {
|
|
@@ -25036,7 +25036,7 @@ function xse(e, t, n, i) {
|
|
|
25036
25036
|
i
|
|
25037
25037
|
), r;
|
|
25038
25038
|
}
|
|
25039
|
-
function
|
|
25039
|
+
function jV(e, t) {
|
|
25040
25040
|
var n;
|
|
25041
25041
|
switch (e.type) {
|
|
25042
25042
|
case "FeatureCollection":
|
|
@@ -25050,11 +25050,11 @@ function j9(e, t) {
|
|
|
25050
25050
|
}
|
|
25051
25051
|
function Sse(e, t, n) {
|
|
25052
25052
|
var i = n;
|
|
25053
|
-
return
|
|
25053
|
+
return jV(e, function(r, o) {
|
|
25054
25054
|
o === 0 && n === void 0 ? i = r : i = t(i, r, o);
|
|
25055
25055
|
}), i;
|
|
25056
25056
|
}
|
|
25057
|
-
function
|
|
25057
|
+
function KV(e, t) {
|
|
25058
25058
|
if (e.type === "Feature")
|
|
25059
25059
|
t(e, 0);
|
|
25060
25060
|
else if (e.type === "FeatureCollection")
|
|
@@ -25063,7 +25063,7 @@ function K9(e, t) {
|
|
|
25063
25063
|
}
|
|
25064
25064
|
function Tse(e, t, n) {
|
|
25065
25065
|
var i = n;
|
|
25066
|
-
return
|
|
25066
|
+
return KV(e, function(r, o) {
|
|
25067
25067
|
o === 0 && n === void 0 ? i = r : i = t(i, r, o);
|
|
25068
25068
|
}), i;
|
|
25069
25069
|
}
|
|
@@ -25190,7 +25190,7 @@ function Rse(e, t, n) {
|
|
|
25190
25190
|
}
|
|
25191
25191
|
), i;
|
|
25192
25192
|
}
|
|
25193
|
-
function
|
|
25193
|
+
function JV(e, t) {
|
|
25194
25194
|
Yb(e, function(n, i, r) {
|
|
25195
25195
|
var o = 0;
|
|
25196
25196
|
if (n.geometry) {
|
|
@@ -25226,7 +25226,7 @@ function J9(e, t) {
|
|
|
25226
25226
|
}
|
|
25227
25227
|
function Ise(e, t, n) {
|
|
25228
25228
|
var i = n, r = !1;
|
|
25229
|
-
return
|
|
25229
|
+
return JV(
|
|
25230
25230
|
e,
|
|
25231
25231
|
function(o, s, a, c, l) {
|
|
25232
25232
|
r === !1 && n === void 0 ? i = o : i = t(
|
|
@@ -25240,7 +25240,7 @@ function Ise(e, t, n) {
|
|
|
25240
25240
|
}
|
|
25241
25241
|
), i;
|
|
25242
25242
|
}
|
|
25243
|
-
function
|
|
25243
|
+
function QV(e, t) {
|
|
25244
25244
|
if (!e) throw new Error("geojson is required");
|
|
25245
25245
|
Yb(e, function(n, i, r) {
|
|
25246
25246
|
if (n.geometry !== null) {
|
|
@@ -25266,7 +25266,7 @@ function Q9(e, t) {
|
|
|
25266
25266
|
}
|
|
25267
25267
|
function Mse(e, t, n) {
|
|
25268
25268
|
var i = n;
|
|
25269
|
-
return
|
|
25269
|
+
return QV(
|
|
25270
25270
|
e,
|
|
25271
25271
|
function(r, o, s, a) {
|
|
25272
25272
|
o === 0 && n === void 0 ? i = r : i = t(
|
|
@@ -25390,7 +25390,7 @@ function Pse(e, t) {
|
|
|
25390
25390
|
fi.coordAll = Ese;
|
|
25391
25391
|
fi.coordEach = xm;
|
|
25392
25392
|
fi.coordReduce = xse;
|
|
25393
|
-
fi.featureEach =
|
|
25393
|
+
fi.featureEach = KV;
|
|
25394
25394
|
fi.featureReduce = Tse;
|
|
25395
25395
|
fi.findPoint = Pse;
|
|
25396
25396
|
fi.findSegment = Lse;
|
|
@@ -25398,11 +25398,11 @@ fi.flattenEach = Yb;
|
|
|
25398
25398
|
fi.flattenReduce = Rse;
|
|
25399
25399
|
fi.geomEach = DS;
|
|
25400
25400
|
fi.geomReduce = Cse;
|
|
25401
|
-
fi.lineEach =
|
|
25401
|
+
fi.lineEach = QV;
|
|
25402
25402
|
fi.lineReduce = Mse;
|
|
25403
|
-
fi.propEach =
|
|
25403
|
+
fi.propEach = jV;
|
|
25404
25404
|
fi.propReduce = Sse;
|
|
25405
|
-
fi.segmentEach =
|
|
25405
|
+
fi.segmentEach = JV;
|
|
25406
25406
|
fi.segmentReduce = Ise;
|
|
25407
25407
|
var BS = {};
|
|
25408
25408
|
Object.defineProperty(BS, "__esModule", { value: !0 });
|
|
@@ -25415,10 +25415,10 @@ function rw(e) {
|
|
|
25415
25415
|
}
|
|
25416
25416
|
rw.default = rw;
|
|
25417
25417
|
BS.default = rw;
|
|
25418
|
-
var Ls = gse,
|
|
25419
|
-
$
|
|
25420
|
-
|
|
25421
|
-
var E3 =
|
|
25418
|
+
var Ls = gse, qV = US, $V = fi, wu = BS.default, Ose = $V.featureEach;
|
|
25419
|
+
$V.coordEach;
|
|
25420
|
+
qV.polygon;
|
|
25421
|
+
var E3 = qV.featureCollection;
|
|
25422
25422
|
function e4(e) {
|
|
25423
25423
|
var t = new Ls(e);
|
|
25424
25424
|
return t.insert = function(n) {
|
|
@@ -25526,7 +25526,7 @@ function Fse(e, t) {
|
|
|
25526
25526
|
}), Ay(o);
|
|
25527
25527
|
}
|
|
25528
25528
|
function t4(e, t) {
|
|
25529
|
-
return e.length > 1 ? ase(e, t) :
|
|
25529
|
+
return e.length > 1 ? ase(e, t) : BV(e[0], t);
|
|
25530
25530
|
}
|
|
25531
25531
|
function zse(e, t) {
|
|
25532
25532
|
var n = !0;
|
|
@@ -25952,7 +25952,7 @@ class er {
|
|
|
25952
25952
|
}
|
|
25953
25953
|
parent(t) {
|
|
25954
25954
|
const n = typeof t > "u" ? 1 : this.zfxy.z - t;
|
|
25955
|
-
return new er(
|
|
25955
|
+
return new er(DV(this.zfxy, n));
|
|
25956
25956
|
}
|
|
25957
25957
|
children() {
|
|
25958
25958
|
return zy(this.zfxy).map((t) => new er(t));
|
|
@@ -26318,7 +26318,7 @@ const aw = (e) => {
|
|
|
26318
26318
|
return /* @__PURE__ */ ce.jsxs(ce.Fragment, { children: [
|
|
26319
26319
|
a && a.length > 0 && a.map((d) => /* @__PURE__ */ ce.jsx(tw, { space: d }, d.id)),
|
|
26320
26320
|
h && h.length > 0 && h.map((d) => /* @__PURE__ */ ce.jsx(nw, { wsen: d.wsen, color: d.color }, d.id)),
|
|
26321
|
-
c && /* @__PURE__ */ ce.jsx(
|
|
26321
|
+
c && /* @__PURE__ */ ce.jsx(WV, { indicator: c }),
|
|
26322
26322
|
l && /* @__PURE__ */ ce.jsx(nw, { wsen: l.wsen, color: l.color }),
|
|
26323
26323
|
u && /* @__PURE__ */ ce.jsx(tw, { space: u })
|
|
26324
26324
|
] });
|
|
@@ -66959,7 +66959,7 @@ var Uve = ye((e, t, n) => {
|
|
|
66959
66959
|
return f && d.push(f), { geom: d, bbox: { minX: c, minY: u, maxX: l, maxY: h } };
|
|
66960
66960
|
}, "loadGeomAndBbox");
|
|
66961
66961
|
function AT(e, t) {
|
|
66962
|
-
let n = new U_e(new
|
|
66962
|
+
let n = new U_e(new X9(e)), i = /* @__PURE__ */ new Map();
|
|
66963
66963
|
for (let [r, o] of Object.entries(n.layers)) {
|
|
66964
66964
|
let s = [], a = o;
|
|
66965
66965
|
for (let c = 0; c < a.length; c++) {
|
|
@@ -68150,7 +68150,7 @@ function v2e({ tiles: e, cesiumIonAccessToken: t, onTilesChange: n }) {
|
|
|
68150
68150
|
provider: i[a]?.[2]
|
|
68151
68151
|
})).map(
|
|
68152
68152
|
({ id: a, opacity: c, zoomLevel: l, provider: u, heatmap: h }, d) => u ? /* @__PURE__ */ ce.jsx(
|
|
68153
|
-
|
|
68153
|
+
ZV,
|
|
68154
68154
|
{
|
|
68155
68155
|
imageryProvider: u,
|
|
68156
68156
|
minimumTerrainLevel: l?.[0],
|
|
@@ -68525,7 +68525,7 @@ const T2e = {
|
|
|
68525
68525
|
850
|
|
68526
68526
|
// 島
|
|
68527
68527
|
]
|
|
68528
|
-
}, E2e =
|
|
68528
|
+
}, E2e = u9(
|
|
68529
68529
|
Object.entries(T2e).flatMap(([e, t]) => t.map((n) => [n, e]))
|
|
68530
68530
|
);
|
|
68531
68531
|
function C2e(e) {
|
|
@@ -68955,7 +68955,7 @@ function B2e(e, t, n = {}) {
|
|
|
68955
68955
|
throw new Error("point is required");
|
|
68956
68956
|
if (!t)
|
|
68957
68957
|
throw new Error("polygon is required");
|
|
68958
|
-
const i =
|
|
68958
|
+
const i = p9(e), r = kH(t), o = r.type, s = t.bbox;
|
|
68959
68959
|
let a = r.coordinates;
|
|
68960
68960
|
if (s && Y2e(i, s) === !1)
|
|
68961
68961
|
return !1;
|
|
@@ -69587,7 +69587,7 @@ const awe = Jr(function({
|
|
|
69587
69587
|
return Object.assign(h, {
|
|
69588
69588
|
minimumLevel: o,
|
|
69589
69589
|
maximumLevel: s
|
|
69590
|
-
}), /* @__PURE__ */ ce.jsx(
|
|
69590
|
+
}), /* @__PURE__ */ ce.jsx(ZV, { ref: u, imageryProvider: h, ...l });
|
|
69591
69591
|
});
|
|
69592
69592
|
function cwe(e, t) {
|
|
69593
69593
|
if (e.level === t)
|
|
@@ -69603,7 +69603,7 @@ function cwe(e, t) {
|
|
|
69603
69603
|
});
|
|
69604
69604
|
}
|
|
69605
69605
|
function TM(e, t) {
|
|
69606
|
-
return t != null && e.length === t.length &&
|
|
69606
|
+
return t != null && e.length === t.length && d9(e, t, "key").length === 0;
|
|
69607
69607
|
}
|
|
69608
69608
|
function lwe(e, t) {
|
|
69609
69609
|
const n = e.globe;
|
|
@@ -69616,7 +69616,7 @@ function lwe(e, t) {
|
|
|
69616
69616
|
).sort((a, c) => a.key.localeCompare(c.key));
|
|
69617
69617
|
if (i === r || i === 1 / 0 || r === -1 / 0)
|
|
69618
69618
|
return o;
|
|
69619
|
-
const s =
|
|
69619
|
+
const s = u9(
|
|
69620
69620
|
o.map((a) => [
|
|
69621
69621
|
a.key,
|
|
69622
69622
|
{
|
|
@@ -69664,7 +69664,7 @@ const uwe = ({ imageryProvider: e, imageriesAtom: t, style: n, labelCollection:
|
|
|
69664
69664
|
(p) => p(f),
|
|
69665
69665
|
(p, m, b) => {
|
|
69666
69666
|
const g = p(f), v = typeof b == "function" ? b(g) : b;
|
|
69667
|
-
g.length !== v.length &&
|
|
69667
|
+
g.length !== v.length && d9(g, v, "key").length > 0 && m(f, v);
|
|
69668
69668
|
}
|
|
69669
69669
|
);
|
|
69670
69670
|
}, []), a = CO(s);
|
|
@@ -71872,7 +71872,7 @@ function axe(e, t = {}) {
|
|
|
71872
71872
|
function(o) {
|
|
71873
71873
|
n += o[0], i += o[1], r++;
|
|
71874
71874
|
}
|
|
71875
|
-
),
|
|
71875
|
+
), f9([n / r, i / r], t.properties);
|
|
71876
71876
|
}
|
|
71877
71877
|
const SN = [
|
|
71878
71878
|
[0.267004, 4874e-6, 0.329415],
|
|
@@ -74920,11 +74920,10 @@ function ZEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
74920
74920
|
outlineColor: ee,
|
|
74921
74921
|
outlineWidth: p,
|
|
74922
74922
|
heightReference: Oa(F),
|
|
74923
|
-
distanceDisplayCondition: Qe
|
|
74924
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
74923
|
+
distanceDisplayCondition: Qe
|
|
74925
74924
|
}
|
|
74926
74925
|
) : /* @__PURE__ */ ce.jsx(
|
|
74927
|
-
|
|
74926
|
+
XV,
|
|
74928
74927
|
{
|
|
74929
74928
|
image: Ue,
|
|
74930
74929
|
color: be,
|
|
@@ -74934,8 +74933,7 @@ function ZEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
74934
74933
|
distanceDisplayCondition: Qe,
|
|
74935
74934
|
sizeInMeters: G,
|
|
74936
74935
|
pixelOffset: A,
|
|
74937
|
-
eyeOffset: pe
|
|
74938
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
74936
|
+
eyeOffset: pe
|
|
74939
74937
|
}
|
|
74940
74938
|
),
|
|
74941
74939
|
m && /* @__PURE__ */ ce.jsx(
|
|
@@ -74951,8 +74949,7 @@ function ZEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
74951
74949
|
backgroundColor: Le,
|
|
74952
74950
|
backgroundPadding: Ce,
|
|
74953
74951
|
heightReference: Oa(F),
|
|
74954
|
-
distanceDisplayCondition: Qe
|
|
74955
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
74952
|
+
distanceDisplayCondition: Qe
|
|
74956
74953
|
}
|
|
74957
74954
|
)
|
|
74958
74955
|
]
|
|
@@ -75286,7 +75283,7 @@ function QEe({
|
|
|
75286
75283
|
properties: s?.properties,
|
|
75287
75284
|
availability: Z,
|
|
75288
75285
|
children: /* @__PURE__ */ ce.jsx(
|
|
75289
|
-
|
|
75286
|
+
XV,
|
|
75290
75287
|
{
|
|
75291
75288
|
image: P,
|
|
75292
75289
|
horizontalOrigin: r4(h),
|
|
@@ -75444,7 +75441,7 @@ function oCe({
|
|
|
75444
75441
|
properties: o?.properties,
|
|
75445
75442
|
hideIndicator: E,
|
|
75446
75443
|
children: /* @__PURE__ */ ce.jsx(
|
|
75447
|
-
|
|
75444
|
+
kV,
|
|
75448
75445
|
{
|
|
75449
75446
|
hierarchy: R,
|
|
75450
75447
|
fill: u,
|
|
@@ -85851,7 +85848,7 @@ const ZOe = {
|
|
|
85851
85848
|
[r]
|
|
85852
85849
|
);
|
|
85853
85850
|
return /* @__PURE__ */ ce.jsx(Hr, { hideIndicator: !0, children: /* @__PURE__ */ ce.jsx(
|
|
85854
|
-
|
|
85851
|
+
kV,
|
|
85855
85852
|
{
|
|
85856
85853
|
hierarchy: s,
|
|
85857
85854
|
fill: a.fill,
|
|
@@ -86328,17 +86325,17 @@ const HOe = ({
|
|
|
86328
86325
|
}, QOe = (e) => (e instanceof bs ? e.id : e instanceof ea ? e.featureId : "") ?? "", qOe = 5e3, $Oe = [
|
|
86329
86326
|
{ name: "color", convert: "color" },
|
|
86330
86327
|
{ name: "show" }
|
|
86331
|
-
],
|
|
86328
|
+
], e9e = [
|
|
86332
86329
|
{ name: "color", convert: "colorFunctionString" },
|
|
86333
86330
|
{ name: "show" },
|
|
86334
86331
|
{ name: "pointSize" },
|
|
86335
86332
|
{ name: "meta" }
|
|
86336
|
-
],
|
|
86333
|
+
], t9e = [{ name: "pointSize" }], n9e = [
|
|
86337
86334
|
"show",
|
|
86338
86335
|
"color",
|
|
86339
86336
|
"pointSize",
|
|
86340
86337
|
"meta"
|
|
86341
|
-
], Av = (e, t) => t === "color" ? ti(e) : t === "colorFunctionString" ? e === void 0 ? e : `color("${e}")` : e,
|
|
86338
|
+
], Av = (e, t) => t === "color" ? ti(e) : t === "colorFunctionString" ? e === void 0 ? e : `color("${e}")` : e, i9e = ({
|
|
86342
86339
|
id: e,
|
|
86343
86340
|
tilesetRef: t,
|
|
86344
86341
|
idProperty: n,
|
|
@@ -86362,12 +86359,12 @@ const HOe = ({
|
|
|
86362
86359
|
$Oe.forEach(({ name: W, convert: K }) => {
|
|
86363
86360
|
const Q = Av(F?.[W], K);
|
|
86364
86361
|
W === "color" ? (N.color = aZ, Q !== void 0 && (N.color = Q), B && typeof C["3dtiles"]?.selectedFeatureColor == "string" && (N.color = ti(C["3dtiles"]?.selectedFeatureColor) ?? Q)) : Q !== void 0 && (N[W] = Q);
|
|
86365
|
-
}), N instanceof dm &&
|
|
86362
|
+
}), N instanceof dm && t9e.forEach(({ name: W, convert: K }) => {
|
|
86366
86363
|
const Q = Av(F?.[W], K);
|
|
86367
86364
|
Q !== void 0 && (N[W] = Q);
|
|
86368
86365
|
}), "style" in N && (N.style = new pO(
|
|
86369
86366
|
// TODO: Convert value if it's necessary
|
|
86370
|
-
|
|
86367
|
+
e9e.reduce((W, { name: K, convert: Q }) => {
|
|
86371
86368
|
const re = Av(F?.[K], Q);
|
|
86372
86369
|
return re === void 0 ? W : { ...W, [K]: re };
|
|
86373
86370
|
}, {})
|
|
@@ -86429,7 +86426,7 @@ const HOe = ({
|
|
|
86429
86426
|
), Me(() => {
|
|
86430
86427
|
f.current = i;
|
|
86431
86428
|
}, [i]);
|
|
86432
|
-
const M = he(() => Ds(i)?.["3dtiles"], [i]), P = Gwe(M,
|
|
86429
|
+
const M = he(() => Ds(i)?.["3dtiles"], [i]), P = Gwe(M, n9e), V = l ? 0 : i?.layer._updateStyle, G = de(V), z = de(void 0);
|
|
86433
86430
|
Me(() => {
|
|
86434
86431
|
z.current = Date.now();
|
|
86435
86432
|
}, [P, V]);
|
|
@@ -86465,7 +86462,7 @@ const HOe = ({
|
|
|
86465
86462
|
await I(C), w?.();
|
|
86466
86463
|
})();
|
|
86467
86464
|
}, [I, w, V]);
|
|
86468
|
-
},
|
|
86465
|
+
}, r9e = ({
|
|
86469
86466
|
id: e,
|
|
86470
86467
|
boxId: t,
|
|
86471
86468
|
isVisible: n,
|
|
@@ -86566,7 +86563,7 @@ const HOe = ({
|
|
|
86566
86563
|
)), $e.color = _e.get(st?.featureId ?? "") ?? aZ;
|
|
86567
86564
|
}
|
|
86568
86565
|
});
|
|
86569
|
-
}, [_e, q, re, xe]),
|
|
86566
|
+
}, [_e, q, re, xe]), i9e({
|
|
86570
86567
|
id: e,
|
|
86571
86568
|
tilesetRef: h,
|
|
86572
86569
|
layer: o,
|
|
@@ -86698,7 +86695,7 @@ const HOe = ({
|
|
|
86698
86695
|
handleReady: St
|
|
86699
86696
|
};
|
|
86700
86697
|
};
|
|
86701
|
-
function
|
|
86698
|
+
function o9e({
|
|
86702
86699
|
id: e,
|
|
86703
86700
|
isVisible: t,
|
|
86704
86701
|
property: n,
|
|
@@ -86721,7 +86718,7 @@ function oVe({
|
|
|
86721
86718
|
builtinBoxProps: V,
|
|
86722
86719
|
imageBasedLighting: G,
|
|
86723
86720
|
handleReady: z
|
|
86724
|
-
} =
|
|
86721
|
+
} = r9e({
|
|
86725
86722
|
id: e,
|
|
86726
86723
|
boxId: g,
|
|
86727
86724
|
isVisible: t,
|
|
@@ -86775,26 +86772,26 @@ function oVe({
|
|
|
86775
86772
|
M && /* @__PURE__ */ ce.jsx(kOe, { ...P })
|
|
86776
86773
|
] });
|
|
86777
86774
|
}
|
|
86778
|
-
const
|
|
86779
|
-
|
|
86775
|
+
const s9e = Ei(
|
|
86776
|
+
o9e,
|
|
86780
86777
|
(e, t) => e.id === t.id && e.isVisible === t.isVisible && e.property === t.property && e.layer?.layer === t.layer?.layer && e.viewerProperty === t.viewerProperty && e.meta === t.meta && e.evalFeature === t.evalFeature && e.onComputedFeatureFetch === t.onComputedFeatureFetch && e.onFeatureDelete === t.onFeatureDelete
|
|
86781
|
-
),
|
|
86778
|
+
), a9e = {
|
|
86782
86779
|
noFeature: !0
|
|
86783
|
-
},
|
|
86780
|
+
}, c9e = ["transition"], l9e = (e) => !c9e.includes(e), of = {
|
|
86784
86781
|
marker: [ZEe, kEe],
|
|
86785
86782
|
polyline: [aCe, cCe],
|
|
86786
86783
|
polygon: [oCe, sCe],
|
|
86787
86784
|
ellipsoid: [Jwe, Qwe],
|
|
86788
86785
|
ellipse: [jwe, Kwe],
|
|
86789
86786
|
model: [UEe, DEe],
|
|
86790
|
-
"3dtiles": [
|
|
86787
|
+
"3dtiles": [s9e, a9e],
|
|
86791
86788
|
box: [xN, Hwe],
|
|
86792
86789
|
photooverlay: [QEe, eCe],
|
|
86793
86790
|
resource: [XOe, ZOe],
|
|
86794
86791
|
raster: [VOe, FOe],
|
|
86795
86792
|
heatMap: [zEe, NEe],
|
|
86796
86793
|
frustum: [rxe, oxe]
|
|
86797
|
-
},
|
|
86794
|
+
}, u9e = {
|
|
86798
86795
|
geojson: "auto",
|
|
86799
86796
|
csv: "auto",
|
|
86800
86797
|
czml: ["resource"],
|
|
@@ -86813,19 +86810,19 @@ const sVe = Ei(
|
|
|
86813
86810
|
gltf: ["model"],
|
|
86814
86811
|
tiles: ["raster"],
|
|
86815
86812
|
heatMap: ["heatMap"]
|
|
86816
|
-
},
|
|
86817
|
-
if (
|
|
86813
|
+
}, h9e = ["raster", "3dtiles"], lP = (e, t) => {
|
|
86814
|
+
if (h9e.includes(e) && t.layer.type === "simple")
|
|
86818
86815
|
return t.layer[e];
|
|
86819
|
-
}, uP = new gwe({ max: 1e4 }),
|
|
86820
|
-
function
|
|
86816
|
+
}, uP = new gwe({ max: 1e4 }), d9e = 6e3;
|
|
86817
|
+
function f9e({
|
|
86821
86818
|
layer: e,
|
|
86822
86819
|
isHidden: t,
|
|
86823
86820
|
sketchEditingFeature: n,
|
|
86824
86821
|
...i
|
|
86825
86822
|
}) {
|
|
86826
86823
|
const r = eu(e), o = !r?.type || r.type === "auto" ? MS(r?.url) : void 0;
|
|
86827
|
-
let s = r?.type &&
|
|
86828
|
-
(e.features?.length >
|
|
86824
|
+
let s = r?.type && u9e[o ?? r.type];
|
|
86825
|
+
(e.features?.length > d9e || r?.geojson?.useAsResource) && (s = ["resource"]);
|
|
86829
86826
|
const a = Array.isArray(s) && s.every((p) => of[p][1].noFeature && !of[p][1].noLayer), c = !!e?.transition?.useTransition, l = !r?.updateInterval && !c, u = he(() => r?.url ? Hg(r.url) : "", [r?.url]), { requestRender: h } = hi();
|
|
86830
86827
|
Me(() => {
|
|
86831
86828
|
setTimeout(() => {
|
|
@@ -86833,7 +86830,7 @@ function fVe({
|
|
|
86833
86830
|
}, 300);
|
|
86834
86831
|
}), Me(() => () => h?.(), [h]);
|
|
86835
86832
|
const d = (p, m) => {
|
|
86836
|
-
if (!
|
|
86833
|
+
if (!l9e(p)) return null;
|
|
86837
86834
|
const b = !!i.viewerProperty?.scene?.imageBasedLighting?.sphericalHarmonicCoefficients, g = !!i.viewerProperty?.scene?.imageBasedLighting?.specularEnvironmentMaps, v = e.layer.visible !== !1 && !t && !(n?.layerId === e.id && n?.feature?.id === m?.id), S = u + Hg(
|
|
86838
86835
|
`${e.id}_${m?.id ?? ""}_${p}_${v}_${b}_${g}_${JSON.stringify(m?.[p]) ?? ""}_${JSON.stringify(e.transition) ?? ""}_${JSON.stringify(m?.geometry) ?? ""}`
|
|
86839
86836
|
);
|
|
@@ -86883,18 +86880,18 @@ function fVe({
|
|
|
86883
86880
|
(p) => Object.keys(of).map((m) => d(m, p))
|
|
86884
86881
|
) });
|
|
86885
86882
|
}
|
|
86886
|
-
function
|
|
86883
|
+
function p9e() {
|
|
86887
86884
|
return window.REEARTH_E2E_ACCESS_TOKEN;
|
|
86888
86885
|
}
|
|
86889
86886
|
function hP(e) {
|
|
86890
86887
|
e ? window.REEARTH_E2E_CESIUM_VIEWER = e : delete window.REEARTH_E2E_CESIUM_VIEWER;
|
|
86891
86888
|
}
|
|
86892
86889
|
const dP = 1e6, fP = 1e6;
|
|
86893
|
-
function
|
|
86890
|
+
function m9e(e, t, n) {
|
|
86894
86891
|
const i = he(() => {
|
|
86895
86892
|
const a = e.current?.cesiumElement;
|
|
86896
86893
|
if (!(!a || a.isDestroyed() || !n?.enabled || !n.targetArea?.lng || !n.targetArea.lat))
|
|
86897
|
-
return
|
|
86894
|
+
return y9e(a, n.targetArea.lng, n.targetArea.lat);
|
|
86898
86895
|
}, [e, n?.enabled, n?.targetArea?.lng, n?.targetArea?.lat]), r = he(() => {
|
|
86899
86896
|
if (!i) return;
|
|
86900
86897
|
const a = typeof n?.targetWidth == "number" ? n.targetWidth : dP, c = typeof n?.targetLength == "number" ? n.targetLength : fP, { cartesianArray: l, cartographicDimensions: u } = pP(
|
|
@@ -86935,7 +86932,7 @@ function mVe(e, t, n) {
|
|
|
86935
86932
|
}, [e, n, i]), Me(() => {
|
|
86936
86933
|
const a = e?.current?.cesiumElement, c = Io(e?.current?.cesiumElement);
|
|
86937
86934
|
!a || a.isDestroyed() || !c || !n?.enabled || !r || a.camera.setView({
|
|
86938
|
-
destination:
|
|
86935
|
+
destination: b9e(c, r),
|
|
86939
86936
|
orientation: {
|
|
86940
86937
|
heading: a.camera.heading,
|
|
86941
86938
|
pitch: a.camera.pitch,
|
|
@@ -86946,12 +86943,12 @@ function mVe(e, t, n) {
|
|
|
86946
86943
|
}, [t, e, n, r]), {
|
|
86947
86944
|
cameraViewBoundaries: r?.cartesianArray,
|
|
86948
86945
|
cameraViewOuterBoundaries: o,
|
|
86949
|
-
cameraViewBoundariesMaterial:
|
|
86946
|
+
cameraViewBoundariesMaterial: g9e
|
|
86950
86947
|
};
|
|
86951
86948
|
}
|
|
86952
|
-
const
|
|
86949
|
+
const g9e = new aO({
|
|
86953
86950
|
color: nn.RED
|
|
86954
|
-
}),
|
|
86951
|
+
}), y9e = (e, t, n) => {
|
|
86955
86952
|
const i = e.scene.globe.ellipsoid, r = me.fromDegrees(t, n, 0), o = bn.fromCartesian(r), s = i.geodeticSurfaceNormal(r), a = me.normalize(
|
|
86956
86953
|
me.cross(me.UNIT_Z, s, new me()),
|
|
86957
86954
|
new me()
|
|
@@ -86985,7 +86982,7 @@ const gVe = new aO({
|
|
|
86985
86982
|
bn.toCartesian(a)
|
|
86986
86983
|
]
|
|
86987
86984
|
};
|
|
86988
|
-
},
|
|
86985
|
+
}, b9e = (e, t) => {
|
|
86989
86986
|
const n = bn.fromDegrees(e?.lng, e?.lat, e?.height), i = new bn(
|
|
86990
86987
|
bt.clamp(
|
|
86991
86988
|
n.longitude,
|
|
@@ -87000,7 +86997,7 @@ const gVe = new aO({
|
|
|
87000
86997
|
n.height
|
|
87001
86998
|
);
|
|
87002
86999
|
return bn.toCartesian(i);
|
|
87003
|
-
},
|
|
87000
|
+
}, _9e = ({
|
|
87004
87001
|
cesium: e,
|
|
87005
87002
|
property: t,
|
|
87006
87003
|
camera: n,
|
|
@@ -87034,7 +87031,7 @@ const gVe = new aO({
|
|
|
87034
87031
|
(v, S) => v[0] === S[0] && v[1] === S[1]
|
|
87035
87032
|
), f = ae(() => {
|
|
87036
87033
|
h.current = !1;
|
|
87037
|
-
}, []), { cameraViewBoundaries: p, cameraViewOuterBoundaries: m, cameraViewBoundariesMaterial: b } =
|
|
87034
|
+
}, []), { cameraViewBoundaries: p, cameraViewOuterBoundaries: m, cameraViewBoundariesMaterial: b } = m9e(e, n, t?.camera?.limiter), g = ae(
|
|
87038
87035
|
(v) => {
|
|
87039
87036
|
!v.camera || !o || Math.abs(bt.negativePiToPi(v.camera.roll)) > Math.PI / 86400 && v.camera.setView({
|
|
87040
87037
|
orientation: {
|
|
@@ -87060,7 +87057,7 @@ const gVe = new aO({
|
|
|
87060
87057
|
handleCameraMoveEnd: u
|
|
87061
87058
|
};
|
|
87062
87059
|
}, sf = new nn();
|
|
87063
|
-
function
|
|
87060
|
+
function v9e(e) {
|
|
87064
87061
|
const t = e.width ?? 1, n = e.height ?? 1, i = this._context, r = i.readPixels({
|
|
87065
87062
|
x: e.x,
|
|
87066
87063
|
y: e.y,
|
|
@@ -87078,8 +87075,8 @@ function vVe(e) {
|
|
|
87078
87075
|
}
|
|
87079
87076
|
return Array.from(o.values());
|
|
87080
87077
|
}
|
|
87081
|
-
const
|
|
87082
|
-
function
|
|
87078
|
+
const w9e = new dU(), x9e = new It();
|
|
87079
|
+
function S9e(e, t, n, i, r) {
|
|
87083
87080
|
const o = e.camera, s = o.frustum;
|
|
87084
87081
|
Xn(s instanceof fs), Xn(s.fovy !== void 0), Xn(s.aspectRatio !== void 0);
|
|
87085
87082
|
const a = s.near, c = Math.tan(s.fovy / 2), l = s.aspectRatio * c, u = t.x, h = t.y, d = 2 * (u - r.x) / r.width - 1, f = 2 * (r.height - h - r.y) / r.height - 1, p = d * a * l, m = f * a * c, b = s.getPixelDimensions(
|
|
@@ -87089,20 +87086,20 @@ function SVe(e, t, n, i, r) {
|
|
|
87089
87086
|
// Changed from 1
|
|
87090
87087
|
vN(e),
|
|
87091
87088
|
// Changed from 1
|
|
87092
|
-
|
|
87093
|
-
), g = b.x * n / 2, v = b.y * i / 2, S =
|
|
87089
|
+
x9e
|
|
87090
|
+
), g = b.x * n / 2, v = b.y * i / 2, S = w9e;
|
|
87094
87091
|
return S.top = m + v, S.bottom = m - v, S.right = p + g, S.left = p - g, S.near = a, S.far = s.far, S.computeCullingVolume(o.positionWC, o.directionWC, o.upWC);
|
|
87095
87092
|
}
|
|
87096
|
-
function
|
|
87093
|
+
function T9e(e, t, n = new yy()) {
|
|
87097
87094
|
Xn(e.width >= 0 && e.height >= 0), Xn(t.width >= 0 && t.height >= 0);
|
|
87098
87095
|
const i = Math.max(e.x, t.x), r = Math.min(e.x + e.width, t.x + t.width), o = Math.max(e.y, t.y), s = Math.min(e.y + e.height, t.y + t.height);
|
|
87099
87096
|
if (!(i >= r || o >= s))
|
|
87100
87097
|
return n.x = i, n.y = o, n.width = r - i, n.height = s - o, n.clone(new yy());
|
|
87101
87098
|
}
|
|
87102
|
-
const
|
|
87099
|
+
const E9e = new g_e({
|
|
87103
87100
|
pass: o_e.PICK
|
|
87104
|
-
}),
|
|
87105
|
-
function
|
|
87101
|
+
}), C9e = new nn(0, 0, 0, 0), R9e = new It(), _l = new yy();
|
|
87102
|
+
function I9e(e, t, n, i) {
|
|
87106
87103
|
const r = e.groundPrimitives.show;
|
|
87107
87104
|
e.groundPrimitives.show = !1, Xn(n > 0 && i > 0);
|
|
87108
87105
|
const o = e.context, s = e.defaultView;
|
|
@@ -87112,18 +87109,18 @@ function IVe(e, t, n, i) {
|
|
|
87112
87109
|
const c = Wi.transformWindowToDrawingBuffer(
|
|
87113
87110
|
e,
|
|
87114
87111
|
t,
|
|
87115
|
-
|
|
87112
|
+
R9e
|
|
87116
87113
|
), l = vN(e), u = n * l, h = i * l, d = e.frameState;
|
|
87117
|
-
d.cullingVolume =
|
|
87118
|
-
const f =
|
|
87114
|
+
d.cullingVolume = S9e(e, c, u, h, a), d.invertClassification = !1, d.passes.pick = !0, d.tilesetPassState = E9e, o.uniformState.update(d), e.updateEnvironment(), _l.x = c.x - u / 2, _l.y = e.drawingBufferHeight - c.y - h / 2, _l.height = h, _l.width = u;
|
|
87115
|
+
const f = T9e(_l, s.viewport, _l);
|
|
87119
87116
|
Xn(f != null);
|
|
87120
87117
|
const p = s.pickFramebuffer.begin(f, s.viewport);
|
|
87121
|
-
e.updateAndExecuteCommands(p,
|
|
87122
|
-
const m =
|
|
87118
|
+
e.updateAndExecuteCommands(p, C9e), e.resolveFramebuffers(p);
|
|
87119
|
+
const m = v9e.apply(s.pickFramebuffer, [_l]);
|
|
87123
87120
|
return o.endFrame(), e.groundPrimitives.show = r, m;
|
|
87124
87121
|
}
|
|
87125
|
-
const
|
|
87126
|
-
const o =
|
|
87122
|
+
const M9e = (e, t, n, i, r) => {
|
|
87123
|
+
const o = I9e(
|
|
87127
87124
|
e.scene,
|
|
87128
87125
|
t,
|
|
87129
87126
|
n,
|
|
@@ -87135,7 +87132,7 @@ const MVe = (e, t, n, i, r) => {
|
|
|
87135
87132
|
}
|
|
87136
87133
|
return s;
|
|
87137
87134
|
};
|
|
87138
|
-
function
|
|
87135
|
+
function L9e(e, t, n) {
|
|
87139
87136
|
n === void 0 && (n = {});
|
|
87140
87137
|
var i = { type: "Feature" };
|
|
87141
87138
|
return (n.id === 0 || n.id) && (i.id = n.id), n.bbox && (i.bbox = n.bbox), i.properties = t || {}, i.geometry = e, i;
|
|
@@ -87154,16 +87151,16 @@ function mP(e, t, n) {
|
|
|
87154
87151
|
type: "Polygon",
|
|
87155
87152
|
coordinates: e
|
|
87156
87153
|
};
|
|
87157
|
-
return
|
|
87154
|
+
return L9e(a, t, n);
|
|
87158
87155
|
}
|
|
87159
|
-
function
|
|
87156
|
+
function P9e(e) {
|
|
87160
87157
|
var t = e % 360;
|
|
87161
87158
|
return t * Math.PI / 180;
|
|
87162
87159
|
}
|
|
87163
87160
|
function gP(e) {
|
|
87164
87161
|
return !isNaN(e) && e !== null && !Array.isArray(e);
|
|
87165
87162
|
}
|
|
87166
|
-
function
|
|
87163
|
+
function G9e(e) {
|
|
87167
87164
|
return !!e && e.constructor === Object;
|
|
87168
87165
|
}
|
|
87169
87166
|
var fr = 63710088e-1, lZ = {
|
|
@@ -87183,12 +87180,12 @@ var fr = 63710088e-1, lZ = {
|
|
|
87183
87180
|
radians: 1,
|
|
87184
87181
|
yards: fr * 1.0936
|
|
87185
87182
|
};
|
|
87186
|
-
function
|
|
87183
|
+
function O9e(e, t, n) {
|
|
87187
87184
|
n === void 0 && (n = {});
|
|
87188
87185
|
var i = { type: "Feature" };
|
|
87189
87186
|
return (n.id === 0 || n.id) && (i.id = n.id), n.bbox && (i.bbox = n.bbox), i.properties = t || {}, i.geometry = e, i;
|
|
87190
87187
|
}
|
|
87191
|
-
function
|
|
87188
|
+
function V9e(e, t, n) {
|
|
87192
87189
|
if (n === void 0 && (n = {}), !e)
|
|
87193
87190
|
throw new Error("coordinates is required");
|
|
87194
87191
|
if (!Array.isArray(e))
|
|
@@ -87201,13 +87198,13 @@ function VVe(e, t, n) {
|
|
|
87201
87198
|
type: "Point",
|
|
87202
87199
|
coordinates: e
|
|
87203
87200
|
};
|
|
87204
|
-
return
|
|
87201
|
+
return O9e(i, t, n);
|
|
87205
87202
|
}
|
|
87206
|
-
function
|
|
87203
|
+
function F9e(e, t) {
|
|
87207
87204
|
var n = lZ[t];
|
|
87208
87205
|
return e * n;
|
|
87209
87206
|
}
|
|
87210
|
-
function
|
|
87207
|
+
function z9e(e, t) {
|
|
87211
87208
|
t === void 0 && (t = "kilometers");
|
|
87212
87209
|
var n = lZ[t];
|
|
87213
87210
|
if (!n)
|
|
@@ -87218,15 +87215,15 @@ function yP(e) {
|
|
|
87218
87215
|
var t = e % 360;
|
|
87219
87216
|
return t * Math.PI / 180;
|
|
87220
87217
|
}
|
|
87221
|
-
function
|
|
87218
|
+
function A9e(e, t, n) {
|
|
87222
87219
|
if (t === void 0 && (t = "kilometers"), !(e >= 0))
|
|
87223
87220
|
throw new Error("length must be a positive number");
|
|
87224
|
-
return
|
|
87221
|
+
return F9e(z9e(e, t), n);
|
|
87225
87222
|
}
|
|
87226
87223
|
function bP(e) {
|
|
87227
87224
|
return !isNaN(e) && e !== null && !Array.isArray(e);
|
|
87228
87225
|
}
|
|
87229
|
-
function
|
|
87226
|
+
function N9e(e) {
|
|
87230
87227
|
if (!e)
|
|
87231
87228
|
throw new Error("coord is required");
|
|
87232
87229
|
if (!Array.isArray(e)) {
|
|
@@ -87241,12 +87238,12 @@ function NVe(e) {
|
|
|
87241
87238
|
}
|
|
87242
87239
|
function mx(e, t, n, i) {
|
|
87243
87240
|
i === void 0 && (i = {});
|
|
87244
|
-
var r = t < 0, o =
|
|
87241
|
+
var r = t < 0, o = A9e(Math.abs(t), i.units, "meters");
|
|
87245
87242
|
r && (o = -Math.abs(o));
|
|
87246
|
-
var s =
|
|
87247
|
-
return a[0] += a[0] - s[0] > 180 ? -360 : s[0] - a[0] > 180 ? 360 : 0,
|
|
87243
|
+
var s = N9e(e), a = X9e(s, o, n);
|
|
87244
|
+
return a[0] += a[0] - s[0] > 180 ? -360 : s[0] - a[0] > 180 ? 360 : 0, V9e(a, i.properties);
|
|
87248
87245
|
}
|
|
87249
|
-
function
|
|
87246
|
+
function X9e(e, t, n, i) {
|
|
87250
87247
|
i = i === void 0 ? fr : Number(i);
|
|
87251
87248
|
var r = t / i, o = e[0] * Math.PI / 180, s = yP(e[1]), a = yP(n), c = r * Math.cos(a), l = s + c;
|
|
87252
87249
|
Math.abs(l) > Math.PI / 2 && (l = l > 0 ? Math.PI - l : -Math.PI - l);
|
|
@@ -87256,12 +87253,12 @@ function XVe(e, t, n, i) {
|
|
|
87256
87253
|
l * 180 / Math.PI
|
|
87257
87254
|
];
|
|
87258
87255
|
}
|
|
87259
|
-
function
|
|
87256
|
+
function Z9e(e, t, n) {
|
|
87260
87257
|
n === void 0 && (n = {});
|
|
87261
87258
|
var i = { type: "Feature" };
|
|
87262
87259
|
return (n.id === 0 || n.id) && (i.id = n.id), n.bbox && (i.bbox = n.bbox), i.properties = t || {}, i.geometry = e, i;
|
|
87263
87260
|
}
|
|
87264
|
-
function
|
|
87261
|
+
function k9e(e, t, n) {
|
|
87265
87262
|
if (n === void 0 && (n = {}), !e)
|
|
87266
87263
|
throw new Error("coordinates is required");
|
|
87267
87264
|
if (!Array.isArray(e))
|
|
@@ -87274,12 +87271,12 @@ function kVe(e, t, n) {
|
|
|
87274
87271
|
type: "Point",
|
|
87275
87272
|
coordinates: e
|
|
87276
87273
|
};
|
|
87277
|
-
return
|
|
87274
|
+
return Z9e(i, t, n);
|
|
87278
87275
|
}
|
|
87279
87276
|
function _P(e) {
|
|
87280
87277
|
return !isNaN(e) && e !== null && !Array.isArray(e);
|
|
87281
87278
|
}
|
|
87282
|
-
function
|
|
87279
|
+
function W9e(e) {
|
|
87283
87280
|
return !!e && e.constructor === Object;
|
|
87284
87281
|
}
|
|
87285
87282
|
function yE(e, t, n) {
|
|
@@ -87369,14 +87366,14 @@ function yE(e, t, n) {
|
|
|
87369
87366
|
}
|
|
87370
87367
|
}
|
|
87371
87368
|
}
|
|
87372
|
-
function
|
|
87369
|
+
function U9e(e, t) {
|
|
87373
87370
|
t === void 0 && (t = {});
|
|
87374
87371
|
var n = 0, i = 0, r = 0;
|
|
87375
87372
|
return yE(e, function(o) {
|
|
87376
87373
|
n += o[0], i += o[1], r++;
|
|
87377
|
-
}, !0),
|
|
87374
|
+
}, !0), k9e([n / r, i / r], t.properties);
|
|
87378
87375
|
}
|
|
87379
|
-
function
|
|
87376
|
+
function D9e(e) {
|
|
87380
87377
|
var t = e % (2 * Math.PI);
|
|
87381
87378
|
return t * 180 / Math.PI;
|
|
87382
87379
|
}
|
|
@@ -87397,7 +87394,7 @@ function pg(e) {
|
|
|
87397
87394
|
return e;
|
|
87398
87395
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
87399
87396
|
}
|
|
87400
|
-
function
|
|
87397
|
+
function B9e(e, t, n) {
|
|
87401
87398
|
n === void 0 && (n = {});
|
|
87402
87399
|
var i;
|
|
87403
87400
|
n.final ? i = vP(pg(t), pg(e)) : i = vP(pg(e), pg(t));
|
|
@@ -87408,7 +87405,7 @@ function vP(e, t) {
|
|
|
87408
87405
|
var n = Nv(e[1]), i = Nv(t[1]), r = Nv(t[0] - e[0]);
|
|
87409
87406
|
r > Math.PI && (r -= 2 * Math.PI), r < -Math.PI && (r += 2 * Math.PI);
|
|
87410
87407
|
var o = Math.log(Math.tan(i / 2 + Math.PI / 4) / Math.tan(n / 2 + Math.PI / 4)), s = Math.atan2(r, o);
|
|
87411
|
-
return (
|
|
87408
|
+
return (D9e(s) + 360) % 360;
|
|
87412
87409
|
}
|
|
87413
87410
|
var pr = 63710088e-1, uZ = {
|
|
87414
87411
|
centimeters: pr * 100,
|
|
@@ -87427,21 +87424,21 @@ var pr = 63710088e-1, uZ = {
|
|
|
87427
87424
|
radians: 1,
|
|
87428
87425
|
yards: pr * 1.0936
|
|
87429
87426
|
};
|
|
87430
|
-
function
|
|
87427
|
+
function Y9e(e, t) {
|
|
87431
87428
|
t === void 0 && (t = "kilometers");
|
|
87432
87429
|
var n = uZ[t];
|
|
87433
87430
|
if (!n)
|
|
87434
87431
|
throw new Error(t + " units is invalid");
|
|
87435
87432
|
return e * n;
|
|
87436
87433
|
}
|
|
87437
|
-
function
|
|
87434
|
+
function H9e(e, t) {
|
|
87438
87435
|
var n = uZ[t];
|
|
87439
87436
|
return e / n;
|
|
87440
87437
|
}
|
|
87441
|
-
function
|
|
87438
|
+
function j9e(e, t, n) {
|
|
87442
87439
|
if (n === void 0 && (n = "kilometers"), !(e >= 0))
|
|
87443
87440
|
throw new Error("length must be a positive number");
|
|
87444
|
-
return
|
|
87441
|
+
return Y9e(H9e(e, t), n);
|
|
87445
87442
|
}
|
|
87446
87443
|
function wP(e) {
|
|
87447
87444
|
if (!e)
|
|
@@ -87456,28 +87453,28 @@ function wP(e) {
|
|
|
87456
87453
|
return e;
|
|
87457
87454
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
87458
87455
|
}
|
|
87459
|
-
function
|
|
87456
|
+
function K9e(e, t, n) {
|
|
87460
87457
|
n === void 0 && (n = {});
|
|
87461
87458
|
var i = wP(e), r = wP(t);
|
|
87462
87459
|
r[0] += r[0] - i[0] > 180 ? -360 : i[0] - r[0] > 180 ? 360 : 0;
|
|
87463
|
-
var o =
|
|
87460
|
+
var o = J9e(i, r), s = j9e(o, "meters", n.units);
|
|
87464
87461
|
return s;
|
|
87465
87462
|
}
|
|
87466
|
-
function
|
|
87463
|
+
function J9e(e, t, n) {
|
|
87467
87464
|
n = n === void 0 ? pr : Number(n);
|
|
87468
87465
|
var i = n, r = e[1] * Math.PI / 180, o = t[1] * Math.PI / 180, s = o - r, a = Math.abs(t[0] - e[0]) * Math.PI / 180;
|
|
87469
87466
|
a > Math.PI && (a -= 2 * Math.PI);
|
|
87470
87467
|
var c = Math.log(Math.tan(o / 2 + Math.PI / 4) / Math.tan(r / 2 + Math.PI / 4)), l = Math.abs(c) > 1e-11 ? s / c : Math.cos(r), u = Math.sqrt(s * s + l * l * a * a), h = u * i;
|
|
87471
87468
|
return h;
|
|
87472
87469
|
}
|
|
87473
|
-
function
|
|
87470
|
+
function Q9e(e) {
|
|
87474
87471
|
if (!e)
|
|
87475
87472
|
throw new Error("geojson is required");
|
|
87476
87473
|
switch (e.type) {
|
|
87477
87474
|
case "Feature":
|
|
87478
87475
|
return hZ(e);
|
|
87479
87476
|
case "FeatureCollection":
|
|
87480
|
-
return
|
|
87477
|
+
return q9e(e);
|
|
87481
87478
|
case "Point":
|
|
87482
87479
|
case "LineString":
|
|
87483
87480
|
case "Polygon":
|
|
@@ -87512,7 +87509,7 @@ function dZ(e) {
|
|
|
87512
87509
|
}) : t[n] = dZ(i) : t[n] = i;
|
|
87513
87510
|
}), t;
|
|
87514
87511
|
}
|
|
87515
|
-
function
|
|
87512
|
+
function q9e(e) {
|
|
87516
87513
|
var t = { type: "FeatureCollection" };
|
|
87517
87514
|
return Object.keys(e).forEach(function(n) {
|
|
87518
87515
|
switch (n) {
|
|
@@ -87538,7 +87535,7 @@ function fZ(e) {
|
|
|
87538
87535
|
return fZ(n);
|
|
87539
87536
|
});
|
|
87540
87537
|
}
|
|
87541
|
-
function $
|
|
87538
|
+
function $9e(e) {
|
|
87542
87539
|
if (Array.isArray(e))
|
|
87543
87540
|
return e;
|
|
87544
87541
|
if (e.type === "Feature") {
|
|
@@ -87548,14 +87545,14 @@ function $Ve(e) {
|
|
|
87548
87545
|
return e.coordinates;
|
|
87549
87546
|
throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
|
|
87550
87547
|
}
|
|
87551
|
-
function
|
|
87552
|
-
if (n = n || {}, !
|
|
87548
|
+
function eVe(e, t, n) {
|
|
87549
|
+
if (n = n || {}, !W9e(n)) throw new Error("options is invalid");
|
|
87553
87550
|
var i = n.pivot, r = n.mutate;
|
|
87554
87551
|
if (!e) throw new Error("geojson is required");
|
|
87555
87552
|
if (t == null || isNaN(t))
|
|
87556
87553
|
throw new Error("angle is required");
|
|
87557
|
-
return t === 0 || (i || (i =
|
|
87558
|
-
var s =
|
|
87554
|
+
return t === 0 || (i || (i = U9e(e)), (r === !1 || r === void 0) && (e = Q9e(e)), yE(e, function(o) {
|
|
87555
|
+
var s = B9e(i, o), a = s + t, c = K9e(i, o), l = $9e(mx(i, c, a));
|
|
87559
87556
|
o[0] = l[0], o[1] = l[1];
|
|
87560
87557
|
})), e;
|
|
87561
87558
|
}
|
|
@@ -87572,18 +87569,18 @@ function Xv(e) {
|
|
|
87572
87569
|
return e;
|
|
87573
87570
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
87574
87571
|
}
|
|
87575
|
-
function
|
|
87572
|
+
function tVe(e, t, n, i) {
|
|
87576
87573
|
i = i || {};
|
|
87577
87574
|
var r = i.steps || 64, o = i.units || "kilometers", s = i.angle || 0, a = i.pivot || e, c = i.properties || e.properties || {};
|
|
87578
87575
|
if (!e) throw new Error("center is required");
|
|
87579
87576
|
if (!t) throw new Error("xSemiAxis is required");
|
|
87580
87577
|
if (!n) throw new Error("ySemiAxis is required");
|
|
87581
|
-
if (!
|
|
87578
|
+
if (!G9e(i)) throw new Error("options must be an object");
|
|
87582
87579
|
if (!gP(r)) throw new Error("steps must be a number");
|
|
87583
87580
|
if (!gP(s)) throw new Error("angle must be a number");
|
|
87584
87581
|
var l = Xv(e);
|
|
87585
87582
|
if (o === "degrees")
|
|
87586
|
-
var u =
|
|
87583
|
+
var u = P9e(s);
|
|
87587
87584
|
else
|
|
87588
87585
|
t = mx(e, t, 90, { units: o }), n = mx(e, n, 0, { units: o }), t = Xv(t)[0] - l[0], n = Xv(n)[1] - l[1];
|
|
87589
87586
|
for (var h = [], d = 0; d < r; d += 1) {
|
|
@@ -87598,7 +87595,7 @@ function t9e(e, t, n, i) {
|
|
|
87598
87595
|
}
|
|
87599
87596
|
h.push([p + l[0], m + l[1]]);
|
|
87600
87597
|
}
|
|
87601
|
-
return h.push(h[0]), o === "degrees" ? mP([h], c) :
|
|
87598
|
+
return h.push(h[0]), o === "degrees" ? mP([h], c) : eVe(mP([h], c), s, {
|
|
87602
87599
|
pivot: a
|
|
87603
87600
|
});
|
|
87604
87601
|
}
|
|
@@ -87607,7 +87604,7 @@ function xP(e) {
|
|
|
87607
87604
|
return Math.tan(t);
|
|
87608
87605
|
}
|
|
87609
87606
|
const ru = new Re(), mg = new y(), Zv = new y();
|
|
87610
|
-
function
|
|
87607
|
+
function nVe(e, t) {
|
|
87611
87608
|
if (e.length === 1)
|
|
87612
87609
|
try {
|
|
87613
87610
|
const n = Re.fromCartesian(
|
|
@@ -87615,7 +87612,7 @@ function n9e(e, t) {
|
|
|
87615
87612
|
t,
|
|
87616
87613
|
ru
|
|
87617
87614
|
);
|
|
87618
|
-
return
|
|
87615
|
+
return f9([
|
|
87619
87616
|
X.toDegrees(n.longitude),
|
|
87620
87617
|
X.toDegrees(n.latitude)
|
|
87621
87618
|
]).geometry;
|
|
@@ -87623,7 +87620,7 @@ function n9e(e, t) {
|
|
|
87623
87620
|
console.error(n);
|
|
87624
87621
|
}
|
|
87625
87622
|
}
|
|
87626
|
-
function
|
|
87623
|
+
function iVe(e, t) {
|
|
87627
87624
|
if (e.length !== 2)
|
|
87628
87625
|
return;
|
|
87629
87626
|
const n = y.distance(e[0], e[1]);
|
|
@@ -87634,7 +87631,7 @@ function i9e(e, t) {
|
|
|
87634
87631
|
t,
|
|
87635
87632
|
ru
|
|
87636
87633
|
);
|
|
87637
|
-
return
|
|
87634
|
+
return tVe(
|
|
87638
87635
|
[X.toDegrees(i.longitude), X.toDegrees(i.latitude)],
|
|
87639
87636
|
n,
|
|
87640
87637
|
n,
|
|
@@ -87644,7 +87641,7 @@ function i9e(e, t) {
|
|
|
87644
87641
|
console.error(i);
|
|
87645
87642
|
}
|
|
87646
87643
|
}
|
|
87647
|
-
function
|
|
87644
|
+
function rVe(e, t) {
|
|
87648
87645
|
if (!(e.length !== 2 && e.length !== 3))
|
|
87649
87646
|
try {
|
|
87650
87647
|
if (e.length === 2)
|
|
@@ -87687,7 +87684,7 @@ function r9e(e, t) {
|
|
|
87687
87684
|
console.error(n);
|
|
87688
87685
|
}
|
|
87689
87686
|
}
|
|
87690
|
-
function
|
|
87687
|
+
function oVe(e, t) {
|
|
87691
87688
|
if (!(e.length < 2))
|
|
87692
87689
|
try {
|
|
87693
87690
|
return fS(
|
|
@@ -87707,7 +87704,7 @@ function o9e(e, t) {
|
|
|
87707
87704
|
console.error(n);
|
|
87708
87705
|
}
|
|
87709
87706
|
}
|
|
87710
|
-
function
|
|
87707
|
+
function sVe(e, t) {
|
|
87711
87708
|
if (!(e.length < 2))
|
|
87712
87709
|
try {
|
|
87713
87710
|
return e.length === 2 ? fS(
|
|
@@ -87745,23 +87742,23 @@ function pZ({
|
|
|
87745
87742
|
}) {
|
|
87746
87743
|
switch (e) {
|
|
87747
87744
|
case "marker":
|
|
87748
|
-
return
|
|
87745
|
+
return nVe(t);
|
|
87749
87746
|
case "polyline":
|
|
87750
|
-
return
|
|
87747
|
+
return oVe(t);
|
|
87751
87748
|
case "circle":
|
|
87752
87749
|
case "extrudedCircle":
|
|
87753
|
-
return
|
|
87750
|
+
return iVe(t);
|
|
87754
87751
|
case "rectangle":
|
|
87755
87752
|
case "extrudedRectangle":
|
|
87756
|
-
return
|
|
87753
|
+
return rVe(t);
|
|
87757
87754
|
case "polygon":
|
|
87758
87755
|
case "extrudedPolygon":
|
|
87759
|
-
return
|
|
87756
|
+
return sVe(t);
|
|
87760
87757
|
default:
|
|
87761
87758
|
return;
|
|
87762
87759
|
}
|
|
87763
87760
|
}
|
|
87764
|
-
function
|
|
87761
|
+
function aVe(e, t) {
|
|
87765
87762
|
const n = de(void 0), i = de({
|
|
87766
87763
|
click: [],
|
|
87767
87764
|
doubleClick: [],
|
|
@@ -88392,7 +88389,7 @@ function a9e(e, t) {
|
|
|
88392
88389
|
pickManyFromViewport: (s, a, c, l) => {
|
|
88393
88390
|
const u = t.current?.cesiumElement;
|
|
88394
88391
|
if (!(!u || u.isDestroyed()))
|
|
88395
|
-
return
|
|
88392
|
+
return M9e(
|
|
88396
88393
|
u,
|
|
88397
88394
|
new De.Cartesian2(s[0], s[1]),
|
|
88398
88395
|
a,
|
|
@@ -88427,7 +88424,7 @@ function a9e(e, t) {
|
|
|
88427
88424
|
}), [t]);
|
|
88428
88425
|
return ja(e, () => o, [o]), o;
|
|
88429
88426
|
}
|
|
88430
|
-
const
|
|
88427
|
+
const cVe = ({
|
|
88431
88428
|
cesium: e,
|
|
88432
88429
|
requestingRenderMode: t,
|
|
88433
88430
|
isLayerDragging: n,
|
|
@@ -88453,14 +88450,14 @@ const c9e = ({
|
|
|
88453
88450
|
!a || a.isDestroyed() || t && (t.current = n || i ? _O : t.current === cf ? cf : p2);
|
|
88454
88451
|
}, [e, n, i, t]);
|
|
88455
88452
|
};
|
|
88456
|
-
var
|
|
88453
|
+
var lVe = Object.defineProperty, uVe = Object.defineProperties, hVe = Object.getOwnPropertyDescriptors, SP = Object.getOwnPropertySymbols, dVe = Object.prototype.hasOwnProperty, fVe = Object.prototype.propertyIsEnumerable, TP = (e, t, n) => t in e ? lVe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, pVe = (e, t) => {
|
|
88457
88454
|
for (var n in t || (t = {}))
|
|
88458
|
-
|
|
88455
|
+
dVe.call(t, n) && TP(e, n, t[n]);
|
|
88459
88456
|
if (SP)
|
|
88460
88457
|
for (var n of SP(t))
|
|
88461
|
-
|
|
88458
|
+
fVe.call(t, n) && TP(e, n, t[n]);
|
|
88462
88459
|
return e;
|
|
88463
|
-
},
|
|
88460
|
+
}, mVe = (e, t) => uVe(e, hVe(t));
|
|
88464
88461
|
class _E {
|
|
88465
88462
|
constructor(t, n) {
|
|
88466
88463
|
this._initialEnableRotate = !0, this._initialEnableTranslate = !0, this._callbackProperty = new Ui(() => {
|
|
@@ -88504,7 +88501,7 @@ class _E {
|
|
|
88504
88501
|
const s = this._resetHeight(this._convertCartesian2ToPosition(i.endPosition)), a = this._context(s, i.endPosition);
|
|
88505
88502
|
if (!a)
|
|
88506
88503
|
return;
|
|
88507
|
-
const c = (o = (r = this.options) == null ? void 0 : r.onDragging) == null ? void 0 : o.call(r, this._entity, s,
|
|
88504
|
+
const c = (o = (r = this.options) == null ? void 0 : r.onDragging) == null ? void 0 : o.call(r, this._entity, s, mVe(pVe({}, a), {
|
|
88508
88505
|
previousScreenPosition: i.startPosition
|
|
88509
88506
|
}));
|
|
88510
88507
|
c !== !1 && (typeof c < "u" ? this._position = c : s && (this._position = s));
|
|
@@ -88560,7 +88557,7 @@ class _E {
|
|
|
88560
88557
|
return new wg(t.radii.x + n, t.radii.y + n, t.radii.z + n);
|
|
88561
88558
|
}
|
|
88562
88559
|
}
|
|
88563
|
-
const
|
|
88560
|
+
const gVe = ({
|
|
88564
88561
|
cesium: e,
|
|
88565
88562
|
isLayerDraggable: t,
|
|
88566
88563
|
onLayerDrag: n,
|
|
@@ -88609,7 +88606,7 @@ const g9e = ({
|
|
|
88609
88606
|
y: n?.y,
|
|
88610
88607
|
...n ? jS(e.scene, n.x, n.y, !0) ?? {} : {}
|
|
88611
88608
|
};
|
|
88612
|
-
},
|
|
88609
|
+
}, yVe = ({
|
|
88613
88610
|
cesium: e,
|
|
88614
88611
|
engineAPI: t,
|
|
88615
88612
|
featureFlags: n,
|
|
@@ -88679,12 +88676,12 @@ const g9e = ({
|
|
|
88679
88676
|
}
|
|
88680
88677
|
])
|
|
88681
88678
|
), [h, u, l]);
|
|
88682
|
-
},
|
|
88679
|
+
}, bVe = `uniform vec3 u_reearth_sphericalHarmonicCoefficients[9];
|
|
88683
88680
|
uniform bool u_reearth_globeImageBasedLighting;
|
|
88684
88681
|
|
|
88685
88682
|
vec4 reearth_computeImageBasedLightingColor(vec4 color);
|
|
88686
88683
|
vec3 reearth_calculateElevationMapForGlobe(vec4 colorToAlpha, vec3 color);
|
|
88687
|
-
`,
|
|
88684
|
+
`, _Ve = `vec3 reearth_calculateElevationMapForGlobe(vec4 colorToAlpha, vec3 color) {
|
|
88688
88685
|
if(greaterThan(colorToAlpha, vec4(0.9)) == bvec4(true)) {
|
|
88689
88686
|
float decodedValue = dot(color, vec3(16711680.0, 65280.0, 255.0));
|
|
88690
88687
|
float height = (decodedValue - 8388607.0) * 0.01;
|
|
@@ -88697,7 +88694,7 @@ vec3 reearth_calculateElevationMapForGlobe(vec4 colorToAlpha, vec3 color);
|
|
|
88697
88694
|
}
|
|
88698
88695
|
return color;
|
|
88699
88696
|
}
|
|
88700
|
-
`,
|
|
88697
|
+
`, vVe = `#ifdef ENABLE_VERTEX_LIGHTING
|
|
88701
88698
|
// This file refers this implementation:
|
|
88702
88699
|
// https://github.com/takram-design-engineering/plateau-view/blob/8ea8bf1d5ef64319d92d0eb05b936cca7f1a2e8f/libs/cesium/src/shaders/imageBasedLightingStage.glsl
|
|
88703
88700
|
|
|
@@ -88752,14 +88749,14 @@ vec4 reearth_computeImageBasedLightingColor(vec4 color) {
|
|
|
88752
88749
|
}
|
|
88753
88750
|
}
|
|
88754
88751
|
#endif
|
|
88755
|
-
`, yx = 6378137,
|
|
88752
|
+
`, yx = 6378137, wVe = 1 / 298.257222101, xVe = (1 - wVe) * yx, gg = 36.7071, kv = Object.assign(
|
|
88756
88753
|
new ct(
|
|
88757
88754
|
yx + gg,
|
|
88758
88755
|
yx + gg,
|
|
88759
|
-
|
|
88756
|
+
xVe + gg
|
|
88760
88757
|
),
|
|
88761
88758
|
{ geoidalHeight: gg }
|
|
88762
|
-
),
|
|
88759
|
+
), SVe = `uniform sampler2D colorMap;
|
|
88763
88760
|
uniform float minHeight;
|
|
88764
88761
|
uniform float maxHeight;
|
|
88765
88762
|
uniform bool logarithmic;
|
|
@@ -88803,13 +88800,13 @@ class Wv extends Gb {
|
|
|
88803
88800
|
kv.radii.z
|
|
88804
88801
|
)
|
|
88805
88802
|
},
|
|
88806
|
-
source:
|
|
88803
|
+
source: SVe
|
|
88807
88804
|
},
|
|
88808
88805
|
translucent: !1
|
|
88809
88806
|
});
|
|
88810
88807
|
}
|
|
88811
88808
|
}
|
|
88812
|
-
const
|
|
88809
|
+
const TVe = new Mc().replace(
|
|
88813
88810
|
"vec4 color = computeDayColor(u_initialColor",
|
|
88814
88811
|
/* glsl */
|
|
88815
88812
|
`
|
|
@@ -88836,17 +88833,17 @@ function EP(e) {
|
|
|
88836
88833
|
const t = e.material;
|
|
88837
88834
|
t == null ? (e.material = Gb.fromType("Color"), e.material = void 0) : (e.material = void 0, e.material = t);
|
|
88838
88835
|
}
|
|
88839
|
-
function
|
|
88836
|
+
function EVe(e, t) {
|
|
88840
88837
|
if (!e._surface?._tileProvider) return;
|
|
88841
88838
|
const n = e._surface._tileProvider?.materialUniformMap ?? {};
|
|
88842
88839
|
e._surface._tileProvider.materialUniformMap = { ...n, ...t ?? {} };
|
|
88843
88840
|
}
|
|
88844
|
-
function
|
|
88841
|
+
function CVe(e, t) {
|
|
88845
88842
|
const n = e._surface?._tileProvider;
|
|
88846
88843
|
if (n?.materialUniformMap)
|
|
88847
88844
|
for (const i of t) delete n.materialUniformMap[i];
|
|
88848
88845
|
}
|
|
88849
|
-
const
|
|
88846
|
+
const RVe = ({
|
|
88850
88847
|
sphericalHarmonicCoefficients: e,
|
|
88851
88848
|
globeImageBasedLighting: t,
|
|
88852
88849
|
hasVertexNormals: n,
|
|
@@ -88880,7 +88877,7 @@ const R9e = ({
|
|
|
88880
88877
|
isIBLEnabled: r,
|
|
88881
88878
|
shaderForIBL: c
|
|
88882
88879
|
};
|
|
88883
|
-
},
|
|
88880
|
+
}, IVe = ({
|
|
88884
88881
|
cesium: e,
|
|
88885
88882
|
terrain: t
|
|
88886
88883
|
}) => {
|
|
@@ -88919,7 +88916,7 @@ const R9e = ({
|
|
|
88919
88916
|
l.material instanceof Wv && (l.material.uniforms.colorMap = nm(s));
|
|
88920
88917
|
}, [e, a, s]), { isCustomHeatmapEnabled: a, shaderForTerrainHeatmap: c };
|
|
88921
88918
|
};
|
|
88922
|
-
async function
|
|
88919
|
+
async function MVe(e) {
|
|
88923
88920
|
const t = e.terrain;
|
|
88924
88921
|
t?.ready || await new Promise((n) => {
|
|
88925
88922
|
if (!t) return n();
|
|
@@ -88928,7 +88925,7 @@ async function M9e(e) {
|
|
|
88928
88925
|
});
|
|
88929
88926
|
});
|
|
88930
88927
|
}
|
|
88931
|
-
const
|
|
88928
|
+
const LVe = ({
|
|
88932
88929
|
cesium: e,
|
|
88933
88930
|
sphericalHarmonicCoefficients: t,
|
|
88934
88931
|
globeShadowDarkness: n,
|
|
@@ -88937,12 +88934,12 @@ const L9e = ({
|
|
|
88937
88934
|
enableLighting: o,
|
|
88938
88935
|
terrain: s
|
|
88939
88936
|
}) => {
|
|
88940
|
-
const a = de(!1), { uniformMapForIBL: c, isIBLEnabled: l, shaderForIBL: u } =
|
|
88937
|
+
const a = de(!1), { uniformMapForIBL: c, isIBLEnabled: l, shaderForIBL: u } = RVe({
|
|
88941
88938
|
sphericalHarmonicCoefficients: t,
|
|
88942
88939
|
globeImageBasedLighting: i,
|
|
88943
88940
|
hasVertexNormals: r,
|
|
88944
88941
|
enableLighting: o
|
|
88945
|
-
}), { isCustomHeatmapEnabled: h, shaderForTerrainHeatmap: d } =
|
|
88942
|
+
}), { isCustomHeatmapEnabled: h, shaderForTerrainHeatmap: d } = IVe({
|
|
88946
88943
|
cesium: e,
|
|
88947
88944
|
terrain: s
|
|
88948
88945
|
});
|
|
@@ -88956,7 +88953,7 @@ const L9e = ({
|
|
|
88956
88953
|
a.current = !0;
|
|
88957
88954
|
try {
|
|
88958
88955
|
const { scene: m } = e.current.cesiumElement;
|
|
88959
|
-
await
|
|
88956
|
+
await MVe(m);
|
|
88960
88957
|
const b = e.current.cesiumElement.scene.globe;
|
|
88961
88958
|
EP(b);
|
|
88962
88959
|
const g = b._surfaceShaderSet;
|
|
@@ -88966,13 +88963,13 @@ const L9e = ({
|
|
|
88966
88963
|
if (!S || !v)
|
|
88967
88964
|
return;
|
|
88968
88965
|
const E = [], R = [], M = !!b.terrainProvider?.hasVertexNormals;
|
|
88969
|
-
if (l && b.enableLighting && M && (E.push(u), R.push(
|
|
88966
|
+
if (l && b.enableLighting && M && (E.push(u), R.push(vVe)), h && M && (E.push(d), R.push(_Ve)), !E.length || (f.current = !1, !b?._surface?._tileProvider))
|
|
88970
88967
|
return;
|
|
88971
|
-
const P =
|
|
88972
|
-
|
|
88968
|
+
const P = TVe.concat(...E).execute(S);
|
|
88969
|
+
EVe(b, l ? c : void 0), g.baseFragmentShaderSource = new kt({
|
|
88973
88970
|
sources: [
|
|
88974
88971
|
...v.sources.slice(0, -1),
|
|
88975
|
-
|
|
88972
|
+
bVe + P + R.join("")
|
|
88976
88973
|
],
|
|
88977
88974
|
defines: v.defines
|
|
88978
88975
|
});
|
|
@@ -88995,13 +88992,13 @@ const L9e = ({
|
|
|
88995
88992
|
if (!e.current?.cesiumElement || !l && !h) return;
|
|
88996
88993
|
const m = e.current.cesiumElement.scene, b = m.globe;
|
|
88997
88994
|
return f.current = !0, m.requestRender(), () => {
|
|
88998
|
-
b.isDestroyed() || (
|
|
88995
|
+
b.isDestroyed() || (CVe(b, [
|
|
88999
88996
|
"u_reearth_sphericalHarmonicCoefficients",
|
|
89000
88997
|
"u_reearth_globeImageBasedLighting"
|
|
89001
88998
|
]), EP(b));
|
|
89002
88999
|
};
|
|
89003
89000
|
}, [e, h, l]);
|
|
89004
|
-
},
|
|
89001
|
+
}, PVe = ({
|
|
89005
89002
|
cesium: e,
|
|
89006
89003
|
property: t
|
|
89007
89004
|
}) => {
|
|
@@ -89035,7 +89032,7 @@ const L9e = ({
|
|
|
89035
89032
|
sceneMsaaSamples: r,
|
|
89036
89033
|
sceneMode: o
|
|
89037
89034
|
};
|
|
89038
|
-
},
|
|
89035
|
+
}, GVe = ({
|
|
89039
89036
|
ref: e,
|
|
89040
89037
|
property: t,
|
|
89041
89038
|
time: n,
|
|
@@ -89064,7 +89061,7 @@ const L9e = ({
|
|
|
89064
89061
|
onMount: G,
|
|
89065
89062
|
onCreditsUpdate: z
|
|
89066
89063
|
}) => {
|
|
89067
|
-
const Z = de(null), I = typeof o?.cesiumIonAccessToken == "string" && o.cesiumIonAccessToken ? o.cesiumIonAccessToken : mU.defaultAccessToken, w =
|
|
89064
|
+
const Z = de(null), I = typeof o?.cesiumIonAccessToken == "string" && o.cesiumIonAccessToken ? o.cesiumIonAccessToken : mU.defaultAccessToken, w = aVe(e, Z), x = yVe({
|
|
89068
89065
|
cesium: Z,
|
|
89069
89066
|
engineAPI: w,
|
|
89070
89067
|
onLayerSelectWithRectStart: S,
|
|
@@ -89184,7 +89181,7 @@ const L9e = ({
|
|
|
89184
89181
|
t?.scene?.imageBasedLighting?.intensity
|
|
89185
89182
|
]
|
|
89186
89183
|
);
|
|
89187
|
-
|
|
89184
|
+
LVe({
|
|
89188
89185
|
cesium: Z,
|
|
89189
89186
|
sphericalHarmonicCoefficients: k,
|
|
89190
89187
|
globeShadowDarkness: t?.scene?.shadow?.darkness,
|
|
@@ -89200,7 +89197,7 @@ const L9e = ({
|
|
|
89200
89197
|
if (!Le || Le.isDestroyed()) return;
|
|
89201
89198
|
const Ce = gx(Le, ee);
|
|
89202
89199
|
if (!Ce) return;
|
|
89203
|
-
const Xe =
|
|
89200
|
+
const Xe = OVe(_e);
|
|
89204
89201
|
Xe && (Ce.layerId = Xe), w.mouseEventCallbacks[oe].forEach((Qe) => Qe(Ce));
|
|
89205
89202
|
}
|
|
89206
89203
|
},
|
|
@@ -89338,7 +89335,7 @@ const L9e = ({
|
|
|
89338
89335
|
]
|
|
89339
89336
|
);
|
|
89340
89337
|
Me(() => {
|
|
89341
|
-
if (
|
|
89338
|
+
if (p9e())
|
|
89342
89339
|
return hP(Z.current?.cesiumElement), () => {
|
|
89343
89340
|
hP(void 0);
|
|
89344
89341
|
};
|
|
@@ -89405,11 +89402,11 @@ const L9e = ({
|
|
|
89405
89402
|
}
|
|
89406
89403
|
});
|
|
89407
89404
|
}, [n, c]);
|
|
89408
|
-
const { sceneLight: xe, sceneBackgroundColor: ve, sceneMsaaSamples: Ae, sceneMode: Ne } =
|
|
89405
|
+
const { sceneLight: xe, sceneBackgroundColor: ve, sceneMsaaSamples: Ae, sceneMode: Ne } = PVe({
|
|
89409
89406
|
property: t,
|
|
89410
89407
|
cesium: Z
|
|
89411
89408
|
});
|
|
89412
|
-
|
|
89409
|
+
gVe({ cesium: Z, onLayerDrag: b, onLayerDrop: g, isLayerDraggable: l }), cVe({ cesium: Z, requestingRenderMode: d, isLayerDragging: u, shouldRender: h, property: t });
|
|
89413
89410
|
const {
|
|
89414
89411
|
cameraViewBoundaries: fe,
|
|
89415
89412
|
cameraViewOuterBoundaries: Ue,
|
|
@@ -89418,7 +89415,7 @@ const L9e = ({
|
|
|
89418
89415
|
handleCameraMoveEnd: A,
|
|
89419
89416
|
mountCamera: pe,
|
|
89420
89417
|
unmountCamera: ue
|
|
89421
|
-
} =
|
|
89418
|
+
} = _9e({
|
|
89422
89419
|
cesium: Z,
|
|
89423
89420
|
property: t,
|
|
89424
89421
|
camera: f,
|
|
@@ -89461,7 +89458,7 @@ const L9e = ({
|
|
|
89461
89458
|
function Uv(e) {
|
|
89462
89459
|
return e.getPropertyIds().reduce((t, n) => [...t, { key: n, value: e.getProperty(n) }], []);
|
|
89463
89460
|
}
|
|
89464
|
-
function
|
|
89461
|
+
function OVe(e) {
|
|
89465
89462
|
if (e && "id" in e && e.id instanceof Fr)
|
|
89466
89463
|
return Lt(e.id)?.layerId;
|
|
89467
89464
|
if (e && e instanceof ea)
|
|
@@ -89643,20 +89640,20 @@ vec3 unpackNormal(const vec3 normal) {
|
|
|
89643
89640
|
vec3 readPosition(const sampler2D depthTexture, const vec2 uv) {
|
|
89644
89641
|
return reconstructPosition(uv, readDepth(depthTexture, uv));
|
|
89645
89642
|
}
|
|
89646
|
-
`,
|
|
89643
|
+
`, VVe = {
|
|
89647
89644
|
textureScale: 1,
|
|
89648
89645
|
frustumLength: 1e5,
|
|
89649
89646
|
normalExponent: 5,
|
|
89650
89647
|
depthExponent: 1
|
|
89651
89648
|
};
|
|
89652
|
-
function
|
|
89649
|
+
function FVe({
|
|
89653
89650
|
prefix: e = "reearth",
|
|
89654
89651
|
outputType: t = null,
|
|
89655
89652
|
useGlobeDepth: n = !1,
|
|
89656
89653
|
getGlobeDepthTexture: i,
|
|
89657
89654
|
uniforms: r
|
|
89658
89655
|
}) {
|
|
89659
|
-
const o =
|
|
89656
|
+
const o = a9({}, r, VVe), s = new op({
|
|
89660
89657
|
name: `${e}_ambient_occlusion_cross_bilateral_filter_x`,
|
|
89661
89658
|
fragmentShader: `
|
|
89662
89659
|
#define DIRECTION (0)
|
|
@@ -89698,7 +89695,7 @@ function F9e({
|
|
|
89698
89695
|
])
|
|
89699
89696
|
});
|
|
89700
89697
|
}
|
|
89701
|
-
const
|
|
89698
|
+
const zVe = `#ifndef NUM_DIRECTIONS
|
|
89702
89699
|
#define NUM_DIRECTIONS (8)
|
|
89703
89700
|
#endif
|
|
89704
89701
|
|
|
@@ -89849,7 +89846,7 @@ void main() {
|
|
|
89849
89846
|
// Reuse normal in bilateral filter and read depth in it again.
|
|
89850
89847
|
out_FragColor = vec4(ao, packNormal(normal));
|
|
89851
89848
|
}
|
|
89852
|
-
`,
|
|
89849
|
+
`, AVe = `#ifndef OUTPUT_TYPE
|
|
89853
89850
|
#define OUTPUT_TYPE (0)
|
|
89854
89851
|
#endif
|
|
89855
89852
|
|
|
@@ -89895,7 +89892,7 @@ void main() {
|
|
|
89895
89892
|
);
|
|
89896
89893
|
#endif // OUTPUT_TYPE
|
|
89897
89894
|
}
|
|
89898
|
-
`,
|
|
89895
|
+
`, NVe = `// Based on https://github.com/pmndrs/drei/blob/master/src/core/softShadows.tsx
|
|
89899
89896
|
|
|
89900
89897
|
vec3 computeRandom3D(const vec2 uv) {
|
|
89901
89898
|
return vec3(
|
|
@@ -89923,7 +89920,7 @@ vec3 computeLowPassRandom3D(const vec2 uv) {
|
|
|
89923
89920
|
vec3 computeHighPassRandom3D(const vec2 uv) {
|
|
89924
89921
|
return computeRandom3D(uv) - computeLowPassRandom3D(uv) + 0.5;
|
|
89925
89922
|
}
|
|
89926
|
-
`,
|
|
89923
|
+
`, XVe = `vec3 getMinDiff(const vec3 position, const vec3 right, const vec3 left) {
|
|
89927
89924
|
vec3 v1 = right - position;
|
|
89928
89925
|
vec3 v2 = position - left;
|
|
89929
89926
|
return dot(v1, v1) < dot(v2, v2)
|
|
@@ -90032,7 +90029,7 @@ vec3 reconstructNormal(
|
|
|
90032
90029
|
);
|
|
90033
90030
|
#endif
|
|
90034
90031
|
}
|
|
90035
|
-
`,
|
|
90032
|
+
`, ZVe = `// Derived from https://gist.github.com/mikhailov-work/0d177465a8151eb6ede1768d51d476c7
|
|
90036
90033
|
|
|
90037
90034
|
const vec4 kRedVec4 = vec4(0.13572138, 4.6153926, -42.66032258, 132.13108234);
|
|
90038
90035
|
const vec4 kGreenVec4 = vec4(0.09140261, 2.19418839, 4.84296658, -14.18503333);
|
|
@@ -90052,7 +90049,7 @@ vec3 getTurboColormap(const float v) {
|
|
|
90052
90049
|
dot(v4, kBlueVec4) + dot(v2, kBlueVec2)
|
|
90053
90050
|
);
|
|
90054
90051
|
}
|
|
90055
|
-
`,
|
|
90052
|
+
`, kVe = {
|
|
90056
90053
|
intensity: 100,
|
|
90057
90054
|
color: nn.BLACK,
|
|
90058
90055
|
maxRadius: 30,
|
|
@@ -90063,7 +90060,7 @@ vec3 getTurboColormap(const float v) {
|
|
|
90063
90060
|
whitePoint: 0.9,
|
|
90064
90061
|
gamma: 2.5
|
|
90065
90062
|
};
|
|
90066
|
-
function
|
|
90063
|
+
function WVe({
|
|
90067
90064
|
prefix: e = "reearth",
|
|
90068
90065
|
textureScale: t = 1,
|
|
90069
90066
|
directions: n,
|
|
@@ -90075,7 +90072,7 @@ function W9e({
|
|
|
90075
90072
|
getGlobeDepthTexture: c,
|
|
90076
90073
|
uniforms: l = {}
|
|
90077
90074
|
}) {
|
|
90078
|
-
const u =
|
|
90075
|
+
const u = a9({}, l, kVe), h = new op({
|
|
90079
90076
|
name: `${e}_ambient_occlusion_generate`,
|
|
90080
90077
|
fragmentShader: `
|
|
90081
90078
|
${n != null ? `#define NUM_DIRECTIONS (${n})` : ""}
|
|
@@ -90084,10 +90081,10 @@ function W9e({
|
|
|
90084
90081
|
${s != null ? `#define OUTPUT_TYPE (${s})` : ""}
|
|
90085
90082
|
${a ? wb : vb}
|
|
90086
90083
|
${xb}
|
|
90087
|
-
${
|
|
90084
|
+
${NVe}
|
|
90088
90085
|
${Sb}
|
|
90089
|
-
${
|
|
90090
|
-
${
|
|
90086
|
+
${XVe}
|
|
90087
|
+
${zVe}
|
|
90091
90088
|
`,
|
|
90092
90089
|
textureScale: t,
|
|
90093
90090
|
uniforms: {
|
|
@@ -90102,8 +90099,8 @@ function W9e({
|
|
|
90102
90099
|
${a ? wb : vb}
|
|
90103
90100
|
${xb}
|
|
90104
90101
|
${Sb}
|
|
90105
|
-
${
|
|
90106
|
-
${
|
|
90102
|
+
${ZVe}
|
|
90103
|
+
${AVe}
|
|
90107
90104
|
`,
|
|
90108
90105
|
uniforms: {
|
|
90109
90106
|
...io(u, ["color", "frustumLength", "blackPoint", "whitePoint", "gamma"]),
|
|
@@ -90111,7 +90108,7 @@ function W9e({
|
|
|
90111
90108
|
}
|
|
90112
90109
|
});
|
|
90113
90110
|
if (r) {
|
|
90114
|
-
const f =
|
|
90111
|
+
const f = FVe({
|
|
90115
90112
|
prefix: e,
|
|
90116
90113
|
outputType: s,
|
|
90117
90114
|
useGlobeDepth: a,
|
|
@@ -90160,7 +90157,7 @@ function W9e({
|
|
|
90160
90157
|
])
|
|
90161
90158
|
});
|
|
90162
90159
|
}
|
|
90163
|
-
const
|
|
90160
|
+
const UVe = ({
|
|
90164
90161
|
enabled: e = !0,
|
|
90165
90162
|
textureScale: t,
|
|
90166
90163
|
directions: n,
|
|
@@ -90183,7 +90180,7 @@ const U9e = ({
|
|
|
90183
90180
|
a
|
|
90184
90181
|
],
|
|
90185
90182
|
create: () => {
|
|
90186
|
-
const d =
|
|
90183
|
+
const d = WVe({
|
|
90187
90184
|
textureScale: t,
|
|
90188
90185
|
steps: i,
|
|
90189
90186
|
directions: n,
|
|
@@ -90211,7 +90208,7 @@ const U9e = ({
|
|
|
90211
90208
|
h.uniforms.focalLength.x = f * d.aspectRatio, h.uniforms.focalLength.y = f;
|
|
90212
90209
|
}
|
|
90213
90210
|
}), null;
|
|
90214
|
-
},
|
|
90211
|
+
}, DVe = (e) => {
|
|
90215
90212
|
const t = di(), [n, i] = rt(!1);
|
|
90216
90213
|
return $l(() => {
|
|
90217
90214
|
const r = t.scene;
|
|
@@ -90221,10 +90218,10 @@ const U9e = ({
|
|
|
90221
90218
|
return;
|
|
90222
90219
|
const s = r.camera.positionCartographic.height - o, a = r?.camera.frustum;
|
|
90223
90220
|
a instanceof fs && a.fov !== void 0 && (r.camera.frustum.near = bt.clamp(s - 1, 1, 5) / Math.tan(a.fov / 2));
|
|
90224
|
-
}), /* @__PURE__ */ ce.jsx(
|
|
90221
|
+
}), /* @__PURE__ */ ce.jsx(UVe, { ...e, useGlobeDepth: n });
|
|
90225
90222
|
};
|
|
90226
90223
|
var mZ = /* @__PURE__ */ ((e) => (e[e.Occlusion = 1] = "Occlusion", e[e.Normal = 2] = "Normal", e[e.Depth = 3] = "Depth", e[e.Weight = 4] = "Weight", e[e.Shade = 5] = "Shade", e))(mZ || {});
|
|
90227
|
-
const
|
|
90224
|
+
const BVe = {
|
|
90228
90225
|
low: {
|
|
90229
90226
|
directions: 4,
|
|
90230
90227
|
steps: 4,
|
|
@@ -90249,8 +90246,8 @@ const B9e = {
|
|
|
90249
90246
|
textureScale: 1,
|
|
90250
90247
|
maxRadius: 40
|
|
90251
90248
|
}
|
|
90252
|
-
},
|
|
90253
|
-
let vl,
|
|
90249
|
+
}, YVe = "#00bebe", Nm = "#3B3CD0", HVe = "#FF9900", jVe = "#3B3CD0";
|
|
90250
|
+
let vl, KVe, JVe, wl;
|
|
90254
90251
|
const ep = ({
|
|
90255
90252
|
position: e,
|
|
90256
90253
|
clampToGround: t = !1,
|
|
@@ -90272,7 +90269,7 @@ const ep = ({
|
|
|
90272
90269
|
() => ({
|
|
90273
90270
|
position: l,
|
|
90274
90271
|
billboard: {
|
|
90275
|
-
image: i ? o ? e4e() : r ? $
|
|
90272
|
+
image: i ? o ? e4e() : r ? $Ve() : qVe() : QVe(),
|
|
90276
90273
|
width: i ? 16 : 8,
|
|
90277
90274
|
height: i ? 16 : 8,
|
|
90278
90275
|
heightReference: t ? jl.CLAMP_TO_GROUND : jl.NONE,
|
|
@@ -90287,25 +90284,25 @@ const ep = ({
|
|
|
90287
90284
|
}, [n, s, a]);
|
|
90288
90285
|
return /* @__PURE__ */ ce.jsx(Bc, { ...u, onMouseDown: h, onClick: d });
|
|
90289
90286
|
};
|
|
90290
|
-
function
|
|
90287
|
+
function QVe() {
|
|
90291
90288
|
if (vl != null)
|
|
90292
90289
|
return vl;
|
|
90293
90290
|
vl = document.createElement("canvas"), vl.width = 16, vl.height = 16;
|
|
90294
90291
|
const e = vl.getContext("2d");
|
|
90295
90292
|
return Xn(e != null), e.fillStyle = "white", e.fillRect(3, 3, 10, 10), e.strokeStyle = "black", e.lineWidth = 2, e.strokeRect(3, 3, 10, 10), vl;
|
|
90296
90293
|
}
|
|
90297
|
-
function
|
|
90298
|
-
return gZ(
|
|
90294
|
+
function qVe() {
|
|
90295
|
+
return gZ(KVe, {
|
|
90299
90296
|
size: 32,
|
|
90300
90297
|
color: "white",
|
|
90301
90298
|
strokeColor: Nm
|
|
90302
90299
|
});
|
|
90303
90300
|
}
|
|
90304
|
-
function $
|
|
90305
|
-
return gZ(
|
|
90301
|
+
function $Ve() {
|
|
90302
|
+
return gZ(JVe, {
|
|
90306
90303
|
size: 32,
|
|
90307
90304
|
color: "white",
|
|
90308
|
-
strokeColor:
|
|
90305
|
+
strokeColor: HVe
|
|
90309
90306
|
});
|
|
90310
90307
|
}
|
|
90311
90308
|
function e4e() {
|
|
@@ -90313,7 +90310,7 @@ function e4e() {
|
|
|
90313
90310
|
return wl;
|
|
90314
90311
|
wl = document.createElement("canvas"), wl.width = 32, wl.height = 32;
|
|
90315
90312
|
const e = wl.getContext("2d");
|
|
90316
|
-
return Xn(e != null), e.beginPath(), e.arc(16, 16, 12, 0, 2 * Math.PI), e.fillStyle = "white", e.fill(), e.strokeStyle =
|
|
90313
|
+
return Xn(e != null), e.beginPath(), e.arc(16, 16, 12, 0, 2 * Math.PI), e.fillStyle = "white", e.fill(), e.strokeStyle = jVe, e.lineWidth = 4, e.stroke(), e.beginPath(), e.moveTo(16, 8), e.lineTo(16, 24), e.stroke(), e.moveTo(8, 16), e.lineTo(24, 16), e.stroke(), wl;
|
|
90317
90314
|
}
|
|
90318
90315
|
function gZ(e, t) {
|
|
90319
90316
|
if (e != null)
|
|
@@ -95759,7 +95756,7 @@ const aW = Ei(
|
|
|
95759
95756
|
positionsArray: xM(p),
|
|
95760
95757
|
hierarchyArray: aN(p)
|
|
95761
95758
|
} : {}, [p]), g = he(
|
|
95762
|
-
() => U.fromCssColorString(i ??
|
|
95759
|
+
() => U.fromCssColorString(i ?? YVe),
|
|
95763
95760
|
[i]
|
|
95764
95761
|
);
|
|
95765
95762
|
return /* @__PURE__ */ ce.jsxs(ce.Fragment, { children: [
|
|
@@ -95877,7 +95874,7 @@ const oXe = ({
|
|
|
95877
95874
|
handleUnmount: A,
|
|
95878
95875
|
handleTilesChange: pe,
|
|
95879
95876
|
handleTerrainProviderChange: ue
|
|
95880
|
-
} =
|
|
95877
|
+
} = GVe({
|
|
95881
95878
|
ref: N,
|
|
95882
95879
|
property: n,
|
|
95883
95880
|
time: i,
|
|
@@ -96082,9 +96079,9 @@ const oXe = ({
|
|
|
96082
96079
|
),
|
|
96083
96080
|
/* @__PURE__ */ ce.jsx(mN.Provider, { value: J, children: s ? a : null }),
|
|
96084
96081
|
/* @__PURE__ */ ce.jsx(
|
|
96085
|
-
|
|
96082
|
+
DVe,
|
|
96086
96083
|
{
|
|
96087
|
-
...
|
|
96084
|
+
...BVe[n?.render?.ambientOcclusion?.quality || "low"],
|
|
96088
96085
|
enabled: !!n?.render?.ambientOcclusion?.enabled,
|
|
96089
96086
|
intensity: n?.render?.ambientOcclusion?.intensity ?? 100,
|
|
96090
96087
|
outputType: n?.render?.ambientOcclusion?.ambientOcclusionOnly ? mZ.Occlusion : null
|
|
@@ -96095,7 +96092,7 @@ const oXe = ({
|
|
|
96095
96092
|
);
|
|
96096
96093
|
}, sXe = document.createElement("div"), aXe = Jr(oXe), cXe = {
|
|
96097
96094
|
component: aXe,
|
|
96098
|
-
featureComponent:
|
|
96095
|
+
featureComponent: f9e,
|
|
96099
96096
|
clusterComponent: _ae,
|
|
96100
96097
|
sketchComponent: aW,
|
|
96101
96098
|
delegatedDataTypes: ["czml", "wms", "mvt", "3dtiles", "osm-buildings", "kml"]
|
|
@@ -96110,7 +96107,7 @@ function uXe({ error: e, resetErrorBoundary: t }) {
|
|
|
96110
96107
|
/* @__PURE__ */ ce.jsx("p", { children: /* @__PURE__ */ ce.jsx("button", { style: { color: "#fff" }, onClick: t, children: "Retry" }) })
|
|
96111
96108
|
] });
|
|
96112
96109
|
}
|
|
96113
|
-
const hXe = "0.0.7-alpha.
|
|
96110
|
+
const hXe = "0.0.7-alpha.60", dXe = ({ viewerProperty: e }) => {
|
|
96114
96111
|
const t = de(e);
|
|
96115
96112
|
t.current = e;
|
|
96116
96113
|
const n = he(
|
|
@@ -96486,7 +96483,7 @@ export {
|
|
|
96486
96483
|
U2 as computeAtom,
|
|
96487
96484
|
DH as convertLayer,
|
|
96488
96485
|
wXe as convertLegacyCluster,
|
|
96489
|
-
|
|
96486
|
+
b9 as convertLegacyLayer,
|
|
96490
96487
|
bae as coreContext,
|
|
96491
96488
|
lXe as engines,
|
|
96492
96489
|
$j as evalExpression,
|