@reearth/core 0.0.7-alpha.66 → 0.0.7-alpha.67
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 +556 -554
- package/dist/core.umd.cjs +41 -41
- package/package.json +1 -1
- package/src/engines/Cesium/core/Imagery.test.ts +91 -2
- package/src/engines/Cesium/core/Imagery.tsx +26 -5
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as gy from "react";
|
|
2
|
-
import ea, { forwardRef as no, useRef as
|
|
2
|
+
import ea, { forwardRef as no, useRef as de, useCallback as se, useImperativeHandle as Ka, useState as ot, useEffect as Me, useMemo as he, useReducer as lW, useDebugValue as uW, useContext as wi, createContext as Qo, useLayoutEffect as Ur, memo as Fi, Component as $G, createElement as cp, Suspense as hW, useId as dW, Fragment as eO, useInsertionEffect as tO } from "react";
|
|
3
3
|
import * as De from "cesium";
|
|
4
|
-
import { Color as rn, Math as yt, Event as f2, ImageryLayer as Fb, PolylineGraphics as fW, BoxGraphics as pW, PlaneGraphics as mW, Viewer as gW, ScreenSpaceEventHandler as td, Fog as eC, Sun as tC, Moon as nC, ScreenSpaceEventType as zt, SceneMode as Go, Primitive as mm, GeoJsonDataSource as yW, CzmlDataSource as bW, KmlDataSource as _W, BillboardGraphics as nO, ModelGraphics as vW, EllipseGraphics as wW, EllipsoidGraphics as xW, PolygonGraphics as SW, PointGraphics as iO, LabelGraphics as TW, CustomDataSource as EW, Cesium3DTileset as Mh, BillboardCollection as CW, Cesium3DTilesetGraphics as RW, Cesium3DTilesTerrainProvider as iC, CesiumWidget as IW, ClassificationPrimitive as MW, CloudCollection as LW, CorridorGraphics as PW, CylinderGraphics as GW, Entity as
|
|
4
|
+
import { Color as rn, Math as yt, Event as f2, ImageryLayer as Fb, PolylineGraphics as fW, BoxGraphics as pW, PlaneGraphics as mW, Viewer as gW, ScreenSpaceEventHandler as td, Fog as eC, Sun as tC, Moon as nC, ScreenSpaceEventType as zt, SceneMode as Go, Primitive as mm, GeoJsonDataSource as yW, CzmlDataSource as bW, KmlDataSource as _W, BillboardGraphics as nO, ModelGraphics as vW, EllipseGraphics as wW, EllipsoidGraphics as xW, PolygonGraphics as SW, PointGraphics as iO, LabelGraphics as TW, CustomDataSource as EW, Cesium3DTileset as Mh, BillboardCollection as CW, Cesium3DTilesetGraphics as RW, Cesium3DTilesTerrainProvider as iC, CesiumWidget as IW, ClassificationPrimitive as MW, CloudCollection as LW, CorridorGraphics as PW, CylinderGraphics as GW, Entity as Wr, Google2DImageryProvider as rC, GroundPolylinePrimitive as OW, GroundPrimitive as nd, LabelCollection as rO, Model as vs, ParticleSystem as VW, PathGraphics as FW, PointPrimitiveCollection as AW, PolylineCollection as zW, PolylineVolumeGraphics as NW, PostProcessStage as lp, PostProcessStageComposite as Ff, RectangleGraphics as XW, TimeDynamicPointCloud as ZW, WallGraphics as kW, PostProcessStageLibrary as qc, ClassificationType as fh, HeightReference as Sg, Rectangle as kc, EntityCluster as WW, HorizontalOrigin as Pa, VerticalOrigin as Ic, Cartesian3 as pe, ClockRange as w1, JulianDate as wn, ClockStep as p2, KeyboardEventModifier as Ga, CameraEventType as vr, Cartographic as vn, EllipsoidTerrainProvider as yy, sampleTerrainMostDetailed as UW, IntersectionTests as by, Ray as zc, PerspectiveFrustum as ms, OrthographicOffCenterFrustum as DW, Matrix4 as Zn, BoundingSphere as jx, HeadingPitchRange as BW, Cartesian2 as It, Plane as Po, Quaternion as Oa, Matrix3 as Mc, ColorBlendMode as x1, ShadowMode as jm, Cesium3DTileColorBlendMode as S1, CesiumTerrainProvider as T1, IonResource as _y, UrlTemplateImageryProvider as Af, OpenStreetMapImageryProvider as oC, IonImageryProvider as xd, IonWorldImageryStyle as E1, DiscardEmptyTileImagePolicy as YW, TextureMinificationFilter as HW, TextureMagnificationFilter as jW, SceneTransforms as KW, DistanceDisplayCondition as oO, WebMercatorTilingScheme as sO, Cesium3DTileFeature as ta, Cesium3DTilePointFeature as gm, PropertyBag as JW, TimeIntervalCollection as QW, TimeInterval as qW, Iso8601 as $W, CallbackProperty as Bi, ColorMaterialProperty as eU, ArcType as up, ImageryLayerFeatureInfo as aO, Axis as ph, HeadingPitchRoll as Xl, Transforms as Lh, TranslationRotationScale as cO, PolylineDashMaterialProperty as lO, PerInstanceColorAppearance as tU, Material as Ab, VertexFormat as nU, GeometryAttribute as iU, ComponentDatatype as rU, FrustumGeometry as sC, GeometryInstance as uO, PolygonGeometry as oU, EllipsoidSurfaceAppearance as aC, Intersect as sU, CustomShader as hO, CustomShaderTranslucencyMode as dO, LightingModel as fO, CustomShaderMode as pO, ImageBasedLighting as mO, EasingFunction as C1, PolygonHierarchy as m2, Credit as aU, WindingOrder as g2, TileMapServiceImageryProvider as cU, WebMapServiceImageryProvider as lU, ClippingPlane as zf, ClippingPlaneCollection as cC, Cesium3DTileStyle as gO, createGooglePhotorealistic3DTileset as uU, Camera as hU, EllipsoidGeodesic as lC, PerspectiveOffCenterFrustum as dU, BoundingRectangle as vy, Ellipsoid as Tg, SunLight as fU, DirectionalLight as pU, PostProcessStageSampleMode as uC } from "cesium";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
var Il = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function id(e) {
|
|
@@ -306,7 +306,7 @@ const Dn = {
|
|
|
306
306
|
sketch: Dn.SKETCH | Dn.CAMERA_ZOOM | Dn.CAMERA_TILT,
|
|
307
307
|
spatialId: Dn.CAMERA_ZOOM | Dn.CAMERA_TILT
|
|
308
308
|
}, bU = 1e3, _U = ({ geoidServer: e }, t) => {
|
|
309
|
-
const n =
|
|
309
|
+
const n = de(/* @__PURE__ */ new Map()), i = se(
|
|
310
310
|
async (r, o) => {
|
|
311
311
|
if (!e?.url || !e?.geoidProperty)
|
|
312
312
|
return console.error("Geoid: Server is not set properly"), Promise.resolve(void 0);
|
|
@@ -337,7 +337,7 @@ const Dn = {
|
|
|
337
337
|
})), null;
|
|
338
338
|
}, vU = no(_U);
|
|
339
339
|
function y2(e) {
|
|
340
|
-
const t =
|
|
340
|
+
const t = de(e);
|
|
341
341
|
return t.current = e, se(() => t.current, []);
|
|
342
342
|
}
|
|
343
343
|
function Ed(e, t) {
|
|
@@ -559,7 +559,7 @@ ${n}` : h), l;
|
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function ws(e) {
|
|
562
|
-
const t =
|
|
562
|
+
const t = de(void 0);
|
|
563
563
|
return t.current == null && (t.current = { value: e() }), t.current.value;
|
|
564
564
|
}
|
|
565
565
|
const bO = typeof window < "u" ? window : global, MU = (e, t) => {
|
|
@@ -750,7 +750,7 @@ function zU(e, t, n, i) {
|
|
|
750
750
|
);
|
|
751
751
|
}
|
|
752
752
|
const NU = (e) => {
|
|
753
|
-
const t =
|
|
753
|
+
const t = de(void 0), [n, i] = ot();
|
|
754
754
|
return Me(() => {
|
|
755
755
|
if (!e) {
|
|
756
756
|
i(void 0), t.current && (t.current.src = "");
|
|
@@ -763,7 +763,7 @@ const NU = (e) => {
|
|
|
763
763
|
}, [e]), n;
|
|
764
764
|
};
|
|
765
765
|
function XU() {
|
|
766
|
-
var e =
|
|
766
|
+
var e = de(!0);
|
|
767
767
|
return e.current ? (e.current = !1, !0) : e.current;
|
|
768
768
|
}
|
|
769
769
|
var b2 = function() {
|
|
@@ -787,7 +787,7 @@ var ZU = function(e, t) {
|
|
|
787
787
|
};
|
|
788
788
|
function kU(e, t) {
|
|
789
789
|
t === void 0 && (t = ZU);
|
|
790
|
-
var n =
|
|
790
|
+
var n = de(), i = de(e), r = XU();
|
|
791
791
|
return !r && !t(i.current, e) && (n.current = i.current, i.current = e), n.current;
|
|
792
792
|
}
|
|
793
793
|
var WU = function(e) {
|
|
@@ -821,7 +821,7 @@ var WU = function(e) {
|
|
|
821
821
|
return [n, o];
|
|
822
822
|
};
|
|
823
823
|
const UU = (e = []) => {
|
|
824
|
-
const [t, n] = ot(0), i = kU(t), r =
|
|
824
|
+
const [t, n] = ot(0), i = kU(t), r = de(!1), o = de(void 0), s = se(() => {
|
|
825
825
|
n((c) => Math.max(0, Math.min(e.length + 1, c + (r.current ? -1 : 1))));
|
|
826
826
|
}, [e.length]), a = se(
|
|
827
827
|
(c, l) => {
|
|
@@ -873,11 +873,11 @@ const UU = (e = []) => {
|
|
|
873
873
|
multiplier: g.payload?.multiplier === void 0 ? v.multiplier : g.payload.multiplier,
|
|
874
874
|
rangeType: g.payload?.rangeType === void 0 ? v.rangeType : g.payload.rangeType
|
|
875
875
|
})), d.current.forEach((v) => v(g.committer)));
|
|
876
|
-
}, []), l =
|
|
876
|
+
}, []), l = de([]), u = se((g) => {
|
|
877
877
|
l.current.push(g);
|
|
878
878
|
}, []), h = se((g) => {
|
|
879
879
|
l.current = l.current.filter((v) => v !== g);
|
|
880
|
-
}, []), d =
|
|
880
|
+
}, []), d = de([]), f = se((g) => {
|
|
881
881
|
d.current.push(g);
|
|
882
882
|
}, []), p = se((g) => {
|
|
883
883
|
d.current = d.current.filter((v) => v !== g);
|
|
@@ -934,7 +934,7 @@ function YU({
|
|
|
934
934
|
layers: !1,
|
|
935
935
|
sketch: !1,
|
|
936
936
|
spatialId: !1
|
|
937
|
-
}), a =
|
|
937
|
+
}), a = de(null), c = de(null), l = de(null), u = de(null), h = de(null), d = de(_2);
|
|
938
938
|
Ka(
|
|
939
939
|
e,
|
|
940
940
|
() => CU({
|
|
@@ -1547,11 +1547,11 @@ function zb(e, t) {
|
|
|
1547
1547
|
r[n] = t(e[n], n, e);
|
|
1548
1548
|
return r;
|
|
1549
1549
|
}
|
|
1550
|
-
var
|
|
1550
|
+
var Mr = Array.isArray, xC = Bo ? Bo.prototype : void 0, SC = xC ? xC.toString : void 0;
|
|
1551
1551
|
function PO(e) {
|
|
1552
1552
|
if (typeof e == "string")
|
|
1553
1553
|
return e;
|
|
1554
|
-
if (
|
|
1554
|
+
if (Mr(e))
|
|
1555
1555
|
return zb(e, PO) + "";
|
|
1556
1556
|
if (Qx(e))
|
|
1557
1557
|
return SC ? SC.call(e) : "";
|
|
@@ -1810,7 +1810,7 @@ var XO = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
1810
1810
|
}
|
|
1811
1811
|
})(), LC = Ph && Ph.isTypedArray, rS = LC ? Zb(LC) : HB, KB = Object.prototype, JB = KB.hasOwnProperty;
|
|
1812
1812
|
function ZO(e, t) {
|
|
1813
|
-
var n =
|
|
1813
|
+
var n = Mr(e), i = !n && hp(e), r = !n && !i && dp(e), o = !n && !i && !r && rS(e), s = n || i || r || o, a = s ? gB(e.length, String) : [], c = a.length;
|
|
1814
1814
|
for (var l in e)
|
|
1815
1815
|
(t || JB.call(e, l)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1816
1816
|
(l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -1857,7 +1857,7 @@ function ad(e) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
var o8 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s8 = /^\w*$/;
|
|
1859
1859
|
function oS(e, t) {
|
|
1860
|
-
if (
|
|
1860
|
+
if (Mr(e))
|
|
1861
1861
|
return !1;
|
|
1862
1862
|
var n = typeof e;
|
|
1863
1863
|
return n == "number" || n == "symbol" || n == "boolean" || e == null || Qx(e) ? !0 : s8.test(e) || !o8.test(e) || t != null && e in Object(t);
|
|
@@ -2014,7 +2014,7 @@ function z8(e) {
|
|
|
2014
2014
|
return e == null ? "" : PO(e);
|
|
2015
2015
|
}
|
|
2016
2016
|
function cd(e, t) {
|
|
2017
|
-
return
|
|
2017
|
+
return Mr(e) ? e : oS(e, t) ? [e] : A8(z8(e));
|
|
2018
2018
|
}
|
|
2019
2019
|
function ld(e) {
|
|
2020
2020
|
if (typeof e == "string" || Qx(e))
|
|
@@ -2039,7 +2039,7 @@ function aS(e, t) {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
var PC = Bo ? Bo.isConcatSpreadable : void 0;
|
|
2041
2041
|
function X8(e) {
|
|
2042
|
-
return
|
|
2042
|
+
return Mr(e) || hp(e) || !!(PC && e && e[PC]);
|
|
2043
2043
|
}
|
|
2044
2044
|
function WO(e, t, n, i, r) {
|
|
2045
2045
|
var o = -1, s = e.length;
|
|
@@ -2147,7 +2147,7 @@ function s6(e, t) {
|
|
|
2147
2147
|
}
|
|
2148
2148
|
function QO(e, t, n) {
|
|
2149
2149
|
var i = t(e);
|
|
2150
|
-
return
|
|
2150
|
+
return Mr(e) ? i : aS(i, n(e));
|
|
2151
2151
|
}
|
|
2152
2152
|
function E2(e) {
|
|
2153
2153
|
return QO(e, bm, lS);
|
|
@@ -2254,7 +2254,7 @@ function Xf(e, t, n, i, r, o) {
|
|
|
2254
2254
|
return s;
|
|
2255
2255
|
if (!lo(e))
|
|
2256
2256
|
return e;
|
|
2257
|
-
var u =
|
|
2257
|
+
var u = Mr(e);
|
|
2258
2258
|
if (u) {
|
|
2259
2259
|
if (s = m6(e), !a)
|
|
2260
2260
|
return GO(e, s);
|
|
@@ -2428,7 +2428,7 @@ function DY(e, t, n, i, r, o) {
|
|
|
2428
2428
|
}
|
|
2429
2429
|
var BY = 1, YC = "[object Arguments]", HC = "[object Array]", Qm = "[object Object]", YY = Object.prototype, jC = YY.hasOwnProperty;
|
|
2430
2430
|
function HY(e, t, n, i, r, o) {
|
|
2431
|
-
var s =
|
|
2431
|
+
var s = Mr(e), a = Mr(t), c = s ? HC : hs(e), l = a ? HC : hs(t);
|
|
2432
2432
|
c = c == YC ? Qm : c, l = l == YC ? Qm : l;
|
|
2433
2433
|
var u = c == Qm, h = l == Qm, d = c == l;
|
|
2434
2434
|
if (d && dp(e)) {
|
|
@@ -2506,7 +2506,7 @@ function eH(e, t, n) {
|
|
|
2506
2506
|
break;
|
|
2507
2507
|
e = e[s];
|
|
2508
2508
|
}
|
|
2509
|
-
return o || ++i != r ? o : (r = e == null ? 0 : e.length, !!r && nS(r) && Nb(s, r) && (
|
|
2509
|
+
return o || ++i != r ? o : (r = e == null ? 0 : e.length, !!r && nS(r) && Nb(s, r) && (Mr(e) || hp(e)));
|
|
2510
2510
|
}
|
|
2511
2511
|
function sV(e, t) {
|
|
2512
2512
|
return e != null && eH(e, t, $Y);
|
|
@@ -2532,7 +2532,7 @@ function sH(e) {
|
|
|
2532
2532
|
return oS(e) ? rH(ld(e)) : oH(e);
|
|
2533
2533
|
}
|
|
2534
2534
|
function _m(e) {
|
|
2535
|
-
return typeof e == "function" ? e : e == null ? qx : typeof e == "object" ?
|
|
2535
|
+
return typeof e == "function" ? e : e == null ? qx : typeof e == "object" ? Mr(e) ? iH(e[0], e[1]) : qY(e) : sH(e);
|
|
2536
2536
|
}
|
|
2537
2537
|
function aH(e, t, n, i) {
|
|
2538
2538
|
for (var r = -1, o = e == null ? 0 : e.length; ++r < o; ) {
|
|
@@ -2574,7 +2574,7 @@ function dH(e, t, n, i) {
|
|
|
2574
2574
|
}
|
|
2575
2575
|
function fH(e, t) {
|
|
2576
2576
|
return function(n, i) {
|
|
2577
|
-
var r =
|
|
2577
|
+
var r = Mr(n) ? aH : dH, o = {};
|
|
2578
2578
|
return r(n, e, _m(i), o);
|
|
2579
2579
|
};
|
|
2580
2580
|
}
|
|
@@ -2609,8 +2609,8 @@ function gH(e, t, n, i, r, o, s) {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
var u = o ? o(a, c, n + "", e, t, s) : void 0, h = u === void 0;
|
|
2611
2611
|
if (h) {
|
|
2612
|
-
var d =
|
|
2613
|
-
u = c, d || f || p ?
|
|
2612
|
+
var d = Mr(c), f = !d && dp(c), p = !d && !f && rS(c);
|
|
2613
|
+
u = c, d || f || p ? Mr(a) ? u = a : M2(a) ? u = GO(a) : f ? (h = !1, u = HO(c, !0)) : p ? (h = !1, u = qO(c, !0)) : u = [] : BO(c) || hp(c) ? (u = a, hp(a) ? u = mH(a) : (!lo(a) || $x(a)) && (u = $O(c))) : h = !1;
|
|
2614
2614
|
}
|
|
2615
2615
|
h && (s.set(c, u), r(u, c, i, o, s), s.delete(c)), I2(e, n, u);
|
|
2616
2616
|
}
|
|
@@ -2659,7 +2659,7 @@ var _H = Object.prototype, vH = _H.hasOwnProperty, P2 = fH(function(e, t, n) {
|
|
|
2659
2659
|
function wH(e, t) {
|
|
2660
2660
|
return t.length < 2 ? e : Ub(e, Y8(t, 0, -1));
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function Sr(e, t) {
|
|
2663
2663
|
return Db(e, t);
|
|
2664
2664
|
}
|
|
2665
2665
|
var mS = pB(function(e, t, n) {
|
|
@@ -7029,11 +7029,11 @@ class _7 {
|
|
|
7029
7029
|
return { entities: i, i: n };
|
|
7030
7030
|
}
|
|
7031
7031
|
readEntityExp(t, n) {
|
|
7032
|
-
n =
|
|
7032
|
+
n = Or(t, n);
|
|
7033
7033
|
let i = "";
|
|
7034
7034
|
for (; n < t.length && !/\s/.test(t[n]) && t[n] !== '"' && t[n] !== "'"; )
|
|
7035
7035
|
i += t[n], n++;
|
|
7036
|
-
if (Ld(i), n =
|
|
7036
|
+
if (Ld(i), n = Or(t, n), !this.suppressValidationErr) {
|
|
7037
7037
|
if (t.substring(n, n + 6).toUpperCase() === "SYSTEM")
|
|
7038
7038
|
throw new Error("External entities are not supported");
|
|
7039
7039
|
if (t[n] === "%")
|
|
@@ -7047,18 +7047,18 @@ class _7 {
|
|
|
7047
7047
|
return n--, [i, r, n];
|
|
7048
7048
|
}
|
|
7049
7049
|
readNotationExp(t, n) {
|
|
7050
|
-
n =
|
|
7050
|
+
n = Or(t, n);
|
|
7051
7051
|
let i = "";
|
|
7052
7052
|
for (; n < t.length && !/\s/.test(t[n]); )
|
|
7053
7053
|
i += t[n], n++;
|
|
7054
|
-
!this.suppressValidationErr && Ld(i), n =
|
|
7054
|
+
!this.suppressValidationErr && Ld(i), n = Or(t, n);
|
|
7055
7055
|
const r = t.substring(n, n + 6).toUpperCase();
|
|
7056
7056
|
if (!this.suppressValidationErr && r !== "SYSTEM" && r !== "PUBLIC")
|
|
7057
7057
|
throw new Error(`Expected SYSTEM or PUBLIC, found "${r}"`);
|
|
7058
|
-
n += r.length, n =
|
|
7058
|
+
n += r.length, n = Or(t, n);
|
|
7059
7059
|
let o = null, s = null;
|
|
7060
7060
|
if (r === "PUBLIC")
|
|
7061
|
-
[n, o] = this.readIdentifierVal(t, n, "publicIdentifier"), n =
|
|
7061
|
+
[n, o] = this.readIdentifierVal(t, n, "publicIdentifier"), n = Or(t, n), (t[n] === '"' || t[n] === "'") && ([n, s] = this.readIdentifierVal(t, n, "systemIdentifier"));
|
|
7062
7062
|
else if (r === "SYSTEM" && ([n, s] = this.readIdentifierVal(t, n, "systemIdentifier"), !this.suppressValidationErr && !s))
|
|
7063
7063
|
throw new Error("Missing mandatory system identifier for SYSTEM notation");
|
|
7064
7064
|
return { notationName: i, publicIdentifier: o, systemIdentifier: s, index: --n };
|
|
@@ -7075,13 +7075,13 @@ class _7 {
|
|
|
7075
7075
|
return n++, [n, r];
|
|
7076
7076
|
}
|
|
7077
7077
|
readElementExp(t, n) {
|
|
7078
|
-
n =
|
|
7078
|
+
n = Or(t, n);
|
|
7079
7079
|
let i = "";
|
|
7080
7080
|
for (; n < t.length && !/\s/.test(t[n]); )
|
|
7081
7081
|
i += t[n], n++;
|
|
7082
7082
|
if (!this.suppressValidationErr && !Yb(i))
|
|
7083
7083
|
throw new Error(`Invalid element name: "${i}"`);
|
|
7084
|
-
n =
|
|
7084
|
+
n = Or(t, n);
|
|
7085
7085
|
let r = "";
|
|
7086
7086
|
if (t[n] === "E" && dl(t, "MPTY", n)) n += 4;
|
|
7087
7087
|
else if (t[n] === "A" && dl(t, "NY", n)) n += 2;
|
|
@@ -7099,20 +7099,20 @@ class _7 {
|
|
|
7099
7099
|
};
|
|
7100
7100
|
}
|
|
7101
7101
|
readAttlistExp(t, n) {
|
|
7102
|
-
n =
|
|
7102
|
+
n = Or(t, n);
|
|
7103
7103
|
let i = "";
|
|
7104
7104
|
for (; n < t.length && !/\s/.test(t[n]); )
|
|
7105
7105
|
i += t[n], n++;
|
|
7106
|
-
Ld(i), n =
|
|
7106
|
+
Ld(i), n = Or(t, n);
|
|
7107
7107
|
let r = "";
|
|
7108
7108
|
for (; n < t.length && !/\s/.test(t[n]); )
|
|
7109
7109
|
r += t[n], n++;
|
|
7110
7110
|
if (!Ld(r))
|
|
7111
7111
|
throw new Error(`Invalid attribute name: "${r}"`);
|
|
7112
|
-
n =
|
|
7112
|
+
n = Or(t, n);
|
|
7113
7113
|
let o = "";
|
|
7114
7114
|
if (t.substring(n, n + 8).toUpperCase() === "NOTATION") {
|
|
7115
|
-
if (o = "NOTATION", n += 8, n =
|
|
7115
|
+
if (o = "NOTATION", n += 8, n = Or(t, n), t[n] !== "(")
|
|
7116
7116
|
throw new Error(`Expected '(', found "${t[n]}"`);
|
|
7117
7117
|
n++;
|
|
7118
7118
|
let a = [];
|
|
@@ -7122,7 +7122,7 @@ class _7 {
|
|
|
7122
7122
|
c += t[n], n++;
|
|
7123
7123
|
if (c = c.trim(), !Ld(c))
|
|
7124
7124
|
throw new Error(`Invalid notation name: "${c}"`);
|
|
7125
|
-
a.push(c), t[n] === "|" && (n++, n =
|
|
7125
|
+
a.push(c), t[n] === "|" && (n++, n = Or(t, n));
|
|
7126
7126
|
}
|
|
7127
7127
|
if (t[n] !== ")")
|
|
7128
7128
|
throw new Error("Unterminated list of notations");
|
|
@@ -7134,7 +7134,7 @@ class _7 {
|
|
|
7134
7134
|
if (!this.suppressValidationErr && !a.includes(o.toUpperCase()))
|
|
7135
7135
|
throw new Error(`Invalid attribute type: "${o}"`);
|
|
7136
7136
|
}
|
|
7137
|
-
n =
|
|
7137
|
+
n = Or(t, n);
|
|
7138
7138
|
let s = "";
|
|
7139
7139
|
return t.substring(n, n + 8).toUpperCase() === "#REQUIRED" ? (s = "#REQUIRED", n += 8) : t.substring(n, n + 7).toUpperCase() === "#IMPLIED" ? (s = "#IMPLIED", n += 7) : [n, s] = this.readIdentifierVal(t, n, "ATTLIST"), {
|
|
7140
7140
|
elementName: i,
|
|
@@ -7145,7 +7145,7 @@ class _7 {
|
|
|
7145
7145
|
};
|
|
7146
7146
|
}
|
|
7147
7147
|
}
|
|
7148
|
-
const
|
|
7148
|
+
const Or = (e, t) => {
|
|
7149
7149
|
for (; t < e.length && /\s/.test(e[t]); )
|
|
7150
7150
|
t++;
|
|
7151
7151
|
return t;
|
|
@@ -8583,12 +8583,12 @@ function EK(e, t, n) {
|
|
|
8583
8583
|
}
|
|
8584
8584
|
return n;
|
|
8585
8585
|
}
|
|
8586
|
-
class
|
|
8586
|
+
class Pr {
|
|
8587
8587
|
read(t, n) {
|
|
8588
8588
|
return t.readFields(this.readField, this.defaultMessage, n);
|
|
8589
8589
|
}
|
|
8590
8590
|
}
|
|
8591
|
-
class CK extends
|
|
8591
|
+
class CK extends Pr {
|
|
8592
8592
|
defaultMessage = {
|
|
8593
8593
|
header: null,
|
|
8594
8594
|
entities: []
|
|
@@ -8597,7 +8597,7 @@ class CK extends Lr {
|
|
|
8597
8597
|
t === 1 ? n.header = new RK().read(i, i.readVarint() + i.pos) : t === 2 && n.entities?.push(new IK().read(i, i.readVarint() + i.pos));
|
|
8598
8598
|
}
|
|
8599
8599
|
}
|
|
8600
|
-
class RK extends
|
|
8600
|
+
class RK extends Pr {
|
|
8601
8601
|
defaultMessage = {
|
|
8602
8602
|
gtfs_realtime_version: "",
|
|
8603
8603
|
incrementality: 0,
|
|
@@ -8607,7 +8607,7 @@ class RK extends Lr {
|
|
|
8607
8607
|
t === 1 ? n.gtfs_realtime_version = i.readString() : t === 2 ? n.incrementality = i.readVarint() : t === 3 && (n.timestamp = i.readVarint());
|
|
8608
8608
|
}
|
|
8609
8609
|
}
|
|
8610
|
-
class IK extends
|
|
8610
|
+
class IK extends Pr {
|
|
8611
8611
|
defaultMessage = {
|
|
8612
8612
|
id: "",
|
|
8613
8613
|
is_deleted: !1,
|
|
@@ -8619,7 +8619,7 @@ class IK extends Lr {
|
|
|
8619
8619
|
t === 1 ? n.id = i.readString() : t === 2 ? n.is_deleted = i.readBoolean() : t === 3 ? n.trip_update = new MK().read(i, i.readVarint() + i.pos) : t === 4 ? n.vehicle = new PK().read(i, i.readVarint() + i.pos) : t === 5 && (n.alert = new GK().read(i, i.readVarint() + i.pos));
|
|
8620
8620
|
}
|
|
8621
8621
|
}
|
|
8622
|
-
class MK extends
|
|
8622
|
+
class MK extends Pr {
|
|
8623
8623
|
defaultMessage = {
|
|
8624
8624
|
trip: {},
|
|
8625
8625
|
vehicle: {},
|
|
@@ -8631,7 +8631,7 @@ class MK extends Lr {
|
|
|
8631
8631
|
t === 1 ? n.trip = new wS().read(i, i.readVarint() + i.pos) : t === 3 ? n.vehicle = new WV().read(i, i.readVarint() + i.pos) : t === 2 ? n.stop_time_update?.push(new LK().read(i, i.readVarint() + i.pos)) : t === 4 ? n.timestamp = i.readVarint() : t === 5 && (n.delay = i.readVarint(!0));
|
|
8632
8632
|
}
|
|
8633
8633
|
}
|
|
8634
|
-
class bR extends
|
|
8634
|
+
class bR extends Pr {
|
|
8635
8635
|
defaultMessage = {
|
|
8636
8636
|
delay: 0,
|
|
8637
8637
|
time: 0,
|
|
@@ -8641,7 +8641,7 @@ class bR extends Lr {
|
|
|
8641
8641
|
t === 1 ? n.delay = i.readVarint(!0) : t === 2 ? n.time = i.readVarint(!0) : t === 3 && (n.uncertainty = i.readVarint(!0));
|
|
8642
8642
|
}
|
|
8643
8643
|
}
|
|
8644
|
-
class LK extends
|
|
8644
|
+
class LK extends Pr {
|
|
8645
8645
|
defaultMessage = {
|
|
8646
8646
|
stop_sequence: 0,
|
|
8647
8647
|
stop_id: "",
|
|
@@ -8654,7 +8654,7 @@ class LK extends Lr {
|
|
|
8654
8654
|
t === 1 ? n.stop_sequence = i.readVarint() : t === 4 ? n.stop_id = i.readString() : t === 2 ? n.arrival = new bR().read(i, i.readVarint() + i.pos) : t === 3 ? n.departure = new bR().read(i, i.readVarint() + i.pos) : t === 5 && (n.schedule_relationship = i.readVarint());
|
|
8655
8655
|
}
|
|
8656
8656
|
}
|
|
8657
|
-
class PK extends
|
|
8657
|
+
class PK extends Pr {
|
|
8658
8658
|
defaultMessage = {
|
|
8659
8659
|
trip: null,
|
|
8660
8660
|
vehicle: null,
|
|
@@ -8671,7 +8671,7 @@ class PK extends Lr {
|
|
|
8671
8671
|
t === 1 ? n.trip = new wS().read(i, i.readVarint() + i.pos) : t === 8 ? n.vehicle = new WV().read(i, i.readVarint() + i.pos) : t === 2 ? n.position = new VK().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());
|
|
8672
8672
|
}
|
|
8673
8673
|
}
|
|
8674
|
-
class GK extends
|
|
8674
|
+
class GK extends Pr {
|
|
8675
8675
|
defaultMessage = {
|
|
8676
8676
|
active_period: [],
|
|
8677
8677
|
informed_entity: [],
|
|
@@ -8685,7 +8685,7 @@ class GK extends Lr {
|
|
|
8685
8685
|
t === 1 ? n.active_period?.push(new OK().read(i, i.readVarint() + i.pos)) : t === 5 ? n.informed_entity?.push(new FK().read(i, i.readVarint() + i.pos)) : t === 6 ? n.cause = i.readVarint() : t === 7 ? n.effect = i.readVarint() : t === 8 ? n.url = new X1().read(i, i.readVarint() + i.pos) : t === 10 ? n.header_text = new X1().read(i, i.readVarint() + i.pos) : t === 11 && (n.description_text = new X1().read(i, i.readVarint() + i.pos));
|
|
8686
8686
|
}
|
|
8687
8687
|
}
|
|
8688
|
-
class OK extends
|
|
8688
|
+
class OK extends Pr {
|
|
8689
8689
|
defaultMessage = {
|
|
8690
8690
|
start: 0,
|
|
8691
8691
|
end: 0
|
|
@@ -8694,7 +8694,7 @@ class OK extends Lr {
|
|
|
8694
8694
|
t === 1 ? n.start = i.readVarint() : t === 2 && (n.end = i.readVarint());
|
|
8695
8695
|
}
|
|
8696
8696
|
}
|
|
8697
|
-
class VK extends
|
|
8697
|
+
class VK extends Pr {
|
|
8698
8698
|
defaultMessage = {
|
|
8699
8699
|
latitude: 0,
|
|
8700
8700
|
longitude: 0,
|
|
@@ -8706,7 +8706,7 @@ class VK extends Lr {
|
|
|
8706
8706
|
t === 1 ? n.latitude = i.readFloat() : t === 2 ? n.longitude = i.readFloat() : t === 3 ? n.bearing = i.readFloat() : t === 4 ? n.odometer = i.readDouble() : t === 5 && (n.speed = i.readFloat());
|
|
8707
8707
|
}
|
|
8708
8708
|
}
|
|
8709
|
-
class wS extends
|
|
8709
|
+
class wS extends Pr {
|
|
8710
8710
|
defaultMessage = {
|
|
8711
8711
|
trip_id: "",
|
|
8712
8712
|
route_id: "",
|
|
@@ -8720,7 +8720,7 @@ class wS extends Lr {
|
|
|
8720
8720
|
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());
|
|
8721
8721
|
}
|
|
8722
8722
|
}
|
|
8723
|
-
class WV extends
|
|
8723
|
+
class WV extends Pr {
|
|
8724
8724
|
defaultMessage = {
|
|
8725
8725
|
id: "",
|
|
8726
8726
|
label: "",
|
|
@@ -8730,7 +8730,7 @@ class WV extends Lr {
|
|
|
8730
8730
|
t === 1 ? n.id = i.readString() : t === 2 ? n.label = i.readString() : t === 3 && (n.license_plate = i.readString());
|
|
8731
8731
|
}
|
|
8732
8732
|
}
|
|
8733
|
-
class FK extends
|
|
8733
|
+
class FK extends Pr {
|
|
8734
8734
|
defaultMessage = {
|
|
8735
8735
|
agency_id: "",
|
|
8736
8736
|
route_id: "",
|
|
@@ -8742,13 +8742,13 @@ class FK extends Lr {
|
|
|
8742
8742
|
t === 1 ? n.agency_id = i.readString() : t === 2 ? n.route_id = i.readString() : t === 3 ? n.route_type = i.readVarint(!0) : t === 4 ? n.trip = new wS().read(i, i.readVarint() + i.pos) : t === 5 && (n.stop_id = i.readString());
|
|
8743
8743
|
}
|
|
8744
8744
|
}
|
|
8745
|
-
class X1 extends
|
|
8745
|
+
class X1 extends Pr {
|
|
8746
8746
|
defaultMessage = { translation: [] };
|
|
8747
8747
|
readField(t, n = {}, i) {
|
|
8748
8748
|
t === 1 && n.translation?.push(new AK().read(i, i.readVarint() + i.pos));
|
|
8749
8749
|
}
|
|
8750
8750
|
}
|
|
8751
|
-
class AK extends
|
|
8751
|
+
class AK extends Pr {
|
|
8752
8752
|
defaultMessage = { text: "", language: "" };
|
|
8753
8753
|
readField(t, n = {}, i) {
|
|
8754
8754
|
t === 1 ? n.text = i.readString() : t === 2 && (n.language = i.readString());
|
|
@@ -14119,7 +14119,7 @@ function JJ(e, t, n) {
|
|
|
14119
14119
|
}
|
|
14120
14120
|
}, o && (s.oProj = r), s);
|
|
14121
14121
|
}
|
|
14122
|
-
var NR = 6, i9 = "AJSAJS", r9 = "AFAFAF", Ku = 65,
|
|
14122
|
+
var NR = 6, i9 = "AJSAJS", r9 = "AFAFAF", Ku = 65, Ar = 73, So = 79, hf = 86, df = 90;
|
|
14123
14123
|
const QJ = {
|
|
14124
14124
|
forward: o9,
|
|
14125
14125
|
inverse: qJ,
|
|
@@ -14205,7 +14205,7 @@ function a9(e) {
|
|
|
14205
14205
|
}
|
|
14206
14206
|
function iQ(e, t, n) {
|
|
14207
14207
|
var i = n - 1, r = i9.charCodeAt(i), o = r9.charCodeAt(i), s = r + e - 1, a = o + t, c = !1;
|
|
14208
|
-
s > df && (s = s - df + Ku - 1, c = !0), (s ===
|
|
14208
|
+
s > df && (s = s - df + Ku - 1, c = !0), (s === Ar || r < Ar && s > Ar || (s > Ar || r < Ar) && c) && s++, (s === So || r < So && s > So || (s > So || r < So) && c) && (s++, s === Ar && s++), s > df && (s = s - df + Ku - 1), a > hf ? (a = a - hf + Ku - 1, c = !0) : c = !1, (a === Ar || o < Ar && a > Ar || (a > Ar || o < Ar) && c) && a++, (a === So || o < So && a > So || (a > So || o < So) && c) && (a++, a === Ar && a++), a > hf && (a = a - hf + Ku - 1);
|
|
14209
14209
|
var l = String.fromCharCode(s) + String.fromCharCode(a);
|
|
14210
14210
|
return l;
|
|
14211
14211
|
}
|
|
@@ -14243,7 +14243,7 @@ northing meters` + e;
|
|
|
14243
14243
|
}
|
|
14244
14244
|
function rQ(e, t) {
|
|
14245
14245
|
for (var n = i9.charCodeAt(t - 1), i = 1e5, r = !1; n !== e.charCodeAt(0); ) {
|
|
14246
|
-
if (n++, n ===
|
|
14246
|
+
if (n++, n === Ar && n++, n === So && n++, n > df) {
|
|
14247
14247
|
if (r)
|
|
14248
14248
|
throw "Bad character: " + e;
|
|
14249
14249
|
n = Ku, r = !0;
|
|
@@ -14256,7 +14256,7 @@ function oQ(e, t) {
|
|
|
14256
14256
|
if (e > "V")
|
|
14257
14257
|
throw "MGRSPoint given invalid Northing " + e;
|
|
14258
14258
|
for (var n = r9.charCodeAt(t - 1), i = 0, r = !1; n !== e.charCodeAt(0); ) {
|
|
14259
|
-
if (n++, n ===
|
|
14259
|
+
if (n++, n === Ar && n++, n === So && n++, n > hf) {
|
|
14260
14260
|
if (r)
|
|
14261
14261
|
throw "Bad character: " + e;
|
|
14262
14262
|
n = Ku, r = !0;
|
|
@@ -14739,7 +14739,7 @@ const pq = {
|
|
|
14739
14739
|
inverse: dq,
|
|
14740
14740
|
names: fq
|
|
14741
14741
|
};
|
|
14742
|
-
function
|
|
14742
|
+
function Er(e, t, n, i, r) {
|
|
14743
14743
|
return e * r - t * Math.sin(2 * r) + n * Math.sin(4 * r) - i * Math.sin(6 * r);
|
|
14744
14744
|
}
|
|
14745
14745
|
function wm(e) {
|
|
@@ -14770,14 +14770,14 @@ function Py(e, t, n, i, r) {
|
|
|
14770
14770
|
return NaN;
|
|
14771
14771
|
}
|
|
14772
14772
|
function mq() {
|
|
14773
|
-
this.sphere || (this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.ml0 = this.a *
|
|
14773
|
+
this.sphere || (this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.ml0 = this.a * Er(this.e0, this.e1, this.e2, this.e3, this.lat0));
|
|
14774
14774
|
}
|
|
14775
14775
|
function gq(e) {
|
|
14776
14776
|
var t, n, i = e.x, r = e.y;
|
|
14777
14777
|
if (i = it(i - this.long0, this.over), this.sphere)
|
|
14778
14778
|
t = this.a * Math.asin(Math.cos(r) * Math.sin(i)), n = this.a * (Math.atan2(Math.tan(r), Math.cos(i)) - this.lat0);
|
|
14779
14779
|
else {
|
|
14780
|
-
var o = Math.sin(r), s = Math.cos(r), a = PS(this.a, this.e, o), c = Math.tan(r) * Math.tan(r), l = i * Math.cos(r), u = l * l, h = this.es * s * s / (1 - this.es), d = this.a *
|
|
14780
|
+
var o = Math.sin(r), s = Math.cos(r), a = PS(this.a, this.e, o), c = Math.tan(r) * Math.tan(r), l = i * Math.cos(r), u = l * l, h = this.es * s * s / (1 - this.es), d = this.a * Er(this.e0, this.e1, this.e2, this.e3, r);
|
|
14781
14781
|
t = a * l * (1 - u * c * (1 / 6 - (8 - c + 8 * h) * u / 120)), n = d - this.ml0 + a * o / s * u * (0.5 + (5 - c + 6 * h) * u / 24);
|
|
14782
14782
|
}
|
|
14783
14783
|
return e.x = t + this.x0, e.y = n + this.y0, e;
|
|
@@ -15033,7 +15033,7 @@ const e$ = {
|
|
|
15033
15033
|
};
|
|
15034
15034
|
var UR = 20;
|
|
15035
15035
|
function t$() {
|
|
15036
|
-
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.ml0 = this.a *
|
|
15036
|
+
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.ml0 = this.a * Er(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
15037
15037
|
}
|
|
15038
15038
|
function n$(e) {
|
|
15039
15039
|
var t = e.x, n = e.y, i, r, o, s = it(t - this.long0, this.over);
|
|
@@ -15043,7 +15043,7 @@ function n$(e) {
|
|
|
15043
15043
|
i = this.a * s, r = -1 * this.ml0;
|
|
15044
15044
|
else {
|
|
15045
15045
|
var a = PS(this.a, this.e, Math.sin(n)) / Math.tan(n);
|
|
15046
|
-
i = a * Math.sin(o), r = this.a *
|
|
15046
|
+
i = a * Math.sin(o), r = this.a * Er(this.e0, this.e1, this.e2, this.e3, n) - this.ml0 + a * (1 - Math.cos(o));
|
|
15047
15047
|
}
|
|
15048
15048
|
return e.x = i + this.x0, e.y = r + this.y0, e;
|
|
15049
15049
|
}
|
|
@@ -15068,7 +15068,7 @@ function i$(e) {
|
|
|
15068
15068
|
s = (this.ml0 + r) / this.a, a = i * i / this.a / this.a + s * s, c = s;
|
|
15069
15069
|
var h, d, f, p, m;
|
|
15070
15070
|
for (o = UR; o; --o)
|
|
15071
|
-
if (m = this.e * Math.sin(c), h = Math.sqrt(1 - m * m) * Math.tan(c), d = this.a *
|
|
15071
|
+
if (m = this.e * Math.sin(c), h = Math.sqrt(1 - m * m) * Math.tan(c), d = this.a * Er(this.e0, this.e1, this.e2, this.e3, c), f = this.e0 - 2 * this.e1 * Math.cos(2 * c) + 4 * this.e2 * Math.cos(4 * c) - 6 * this.e3 * Math.cos(6 * c), p = d / this.a, l = (s * (h * p + 1) - p - 0.5 * h * (p * p + a)) / (this.es * Math.sin(2 * c) * (p * p + a - 2 * s * p) / (4 * h) + (s - p) * (h * f - 2 / Math.sin(2 * c)) - f), c -= l, Math.abs(l) <= qe) {
|
|
15072
15072
|
n = c;
|
|
15073
15073
|
break;
|
|
15074
15074
|
}
|
|
@@ -15203,14 +15203,14 @@ const C$ = {
|
|
|
15203
15203
|
names: E$
|
|
15204
15204
|
};
|
|
15205
15205
|
function R$() {
|
|
15206
|
-
Math.abs(this.lat1 + this.lat2) < qe || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = ra(this.e, this.sin_phi, this.cos_phi), this.ml1 =
|
|
15206
|
+
Math.abs(this.lat1 + this.lat2) < qe || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = wm(this.es), this.e1 = xm(this.es), this.e2 = Sm(this.es), this.e3 = Tm(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = ra(this.e, this.sin_phi, this.cos_phi), this.ml1 = Er(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < qe ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = ra(this.e, this.sin_phi, this.cos_phi), this.ml2 = Er(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = Er(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
|
|
15207
15207
|
}
|
|
15208
15208
|
function I$(e) {
|
|
15209
15209
|
var t = e.x, n = e.y, i;
|
|
15210
15210
|
if (this.sphere)
|
|
15211
15211
|
i = this.a * (this.g - n);
|
|
15212
15212
|
else {
|
|
15213
|
-
var r =
|
|
15213
|
+
var r = Er(this.e0, this.e1, this.e2, this.e3, n);
|
|
15214
15214
|
i = this.a * (this.g - r);
|
|
15215
15215
|
}
|
|
15216
15216
|
var o = this.ns * it(t - this.long0, this.over), s = this.x0 + i * Math.sin(o), a = this.y0 + this.rh - i * Math.cos(o);
|
|
@@ -15291,12 +15291,12 @@ function X$() {
|
|
|
15291
15291
|
}
|
|
15292
15292
|
function Z$(e) {
|
|
15293
15293
|
var t = e.x, n = e.y, i = Math.sin(e.y), r = Math.cos(e.y), o = it(t - this.long0, this.over), s, a, c, l, u, h, d, f, p, m, y;
|
|
15294
|
-
return this.sphere ? Math.abs(this.sin_p12 - 1) <= qe ? (e.x = this.x0 + this.a * (We - n) * Math.sin(o), e.y = this.y0 - this.a * (We - n) * Math.cos(o), e) : Math.abs(this.sin_p12 + 1) <= qe ? (e.x = this.x0 + this.a * (We + n) * Math.sin(o), e.y = this.y0 + this.a * (We + n) * Math.cos(o), e) : (p = this.sin_p12 * i + this.cos_p12 * r * Math.cos(o), d = Math.acos(p), f = d ? d / Math.sin(d) : 1, e.x = this.x0 + this.a * f * r * Math.sin(o), e.y = this.y0 + this.a * f * (this.cos_p12 * i - this.sin_p12 * r * Math.cos(o)), e) : (s = wm(this.es), a = xm(this.es), c = Sm(this.es), l = Tm(this.es), Math.abs(this.sin_p12 - 1) <= qe ? (u = this.a *
|
|
15294
|
+
return this.sphere ? Math.abs(this.sin_p12 - 1) <= qe ? (e.x = this.x0 + this.a * (We - n) * Math.sin(o), e.y = this.y0 - this.a * (We - n) * Math.cos(o), e) : Math.abs(this.sin_p12 + 1) <= qe ? (e.x = this.x0 + this.a * (We + n) * Math.sin(o), e.y = this.y0 + this.a * (We + n) * Math.cos(o), e) : (p = this.sin_p12 * i + this.cos_p12 * r * Math.cos(o), d = Math.acos(p), f = d ? d / Math.sin(d) : 1, e.x = this.x0 + this.a * f * r * Math.sin(o), e.y = this.y0 + this.a * f * (this.cos_p12 * i - this.sin_p12 * r * Math.cos(o)), e) : (s = wm(this.es), a = xm(this.es), c = Sm(this.es), l = Tm(this.es), Math.abs(this.sin_p12 - 1) <= qe ? (u = this.a * Er(s, a, c, l, We), h = this.a * Er(s, a, c, l, n), e.x = this.x0 + (u - h) * Math.sin(o), e.y = this.y0 - (u - h) * Math.cos(o), e) : Math.abs(this.sin_p12 + 1) <= qe ? (u = this.a * Er(s, a, c, l, We), h = this.a * Er(s, a, c, l, n), e.x = this.x0 + (u + h) * Math.sin(o), e.y = this.y0 + (u + h) * Math.cos(o), e) : Math.abs(t) < qe && Math.abs(n - this.lat0) < qe ? (e.x = e.y = 0, e) : (m = z$(this.lat0, this.long0, n, t, this.a, this.f), y = m.azi1, e.x = m.s12 * Math.sin(y), e.y = m.s12 * Math.cos(y), e));
|
|
15295
15295
|
}
|
|
15296
15296
|
function k$(e) {
|
|
15297
15297
|
e.x -= this.x0, e.y -= this.y0;
|
|
15298
15298
|
var t, n, i, r, o, s, a, c, l, u, h, d, f, p, m, y;
|
|
15299
|
-
return this.sphere ? (t = Math.sqrt(e.x * e.x + e.y * e.y), t > 2 * We * this.a ? void 0 : (n = t / this.a, i = Math.sin(n), r = Math.cos(n), o = this.long0, Math.abs(t) <= qe ? s = this.lat0 : (s = Uc(r * this.sin_p12 + e.y * i * this.cos_p12 / t), a = Math.abs(this.lat0) - We, Math.abs(a) <= qe ? this.lat0 >= 0 ? o = it(this.long0 + Math.atan2(e.x, -e.y), this.over) : o = it(this.long0 - Math.atan2(-e.x, e.y), this.over) : o = it(this.long0 + Math.atan2(e.x * i, t * this.cos_p12 * r - e.y * this.sin_p12 * i), this.over)), e.x = o, e.y = s, e)) : (c = wm(this.es), l = xm(this.es), u = Sm(this.es), h = Tm(this.es), Math.abs(this.sin_p12 - 1) <= qe ? (d = this.a *
|
|
15299
|
+
return this.sphere ? (t = Math.sqrt(e.x * e.x + e.y * e.y), t > 2 * We * this.a ? void 0 : (n = t / this.a, i = Math.sin(n), r = Math.cos(n), o = this.long0, Math.abs(t) <= qe ? s = this.lat0 : (s = Uc(r * this.sin_p12 + e.y * i * this.cos_p12 / t), a = Math.abs(this.lat0) - We, Math.abs(a) <= qe ? this.lat0 >= 0 ? o = it(this.long0 + Math.atan2(e.x, -e.y), this.over) : o = it(this.long0 - Math.atan2(-e.x, e.y), this.over) : o = it(this.long0 + Math.atan2(e.x * i, t * this.cos_p12 * r - e.y * this.sin_p12 * i), this.over)), e.x = o, e.y = s, e)) : (c = wm(this.es), l = xm(this.es), u = Sm(this.es), h = Tm(this.es), Math.abs(this.sin_p12 - 1) <= qe ? (d = this.a * Er(c, l, u, h, We), t = Math.sqrt(e.x * e.x + e.y * e.y), f = d - t, s = Py(f / this.a, c, l, u, h), o = it(this.long0 + Math.atan2(e.x, -1 * e.y), this.over), e.x = o, e.y = s, e) : Math.abs(this.sin_p12 + 1) <= qe ? (d = this.a * Er(c, l, u, h, We), t = Math.sqrt(e.x * e.x + e.y * e.y), f = t - d, s = Py(f / this.a, c, l, u, h), o = it(this.long0 + Math.atan2(e.x, e.y), this.over), e.x = o, e.y = s, e) : (p = Math.atan2(e.x, e.y), m = Math.sqrt(e.x * e.x + e.y * e.y), y = N$(this.lat0, this.long0, p, m, this.a, this.f), e.x = y.lon2, e.y = y.lat2, e));
|
|
15300
15300
|
}
|
|
15301
15301
|
var W$ = ["Azimuthal_Equidistant", "aeqd"];
|
|
15302
15302
|
const U$ = {
|
|
@@ -16411,7 +16411,7 @@ function j2(e) {
|
|
|
16411
16411
|
);
|
|
16412
16412
|
return x.length === I?.length ? !x.every((w, R) => {
|
|
16413
16413
|
const N = I[R];
|
|
16414
|
-
return
|
|
16414
|
+
return Sr({ ...w, id: "" }, { ...N, id: "" });
|
|
16415
16415
|
}) : !0;
|
|
16416
16416
|
}, X = await rR(M, { getFeatures: async (I, x) => {
|
|
16417
16417
|
const w = S(c.get), R = w(G, I, x);
|
|
@@ -16559,31 +16559,31 @@ function fte({
|
|
|
16559
16559
|
(g) => a({ type: "deleteComputedFeatures", features: g }),
|
|
16560
16560
|
[a]
|
|
16561
16561
|
), p = se(() => a({ type: "forceUpdateFeatures" }), [a]);
|
|
16562
|
-
|
|
16562
|
+
Ur(() => {
|
|
16563
16563
|
a({ type: "updateDelegatedDataTypes", delegatedDataTypes: i ?? [] });
|
|
16564
|
-
}, [i, a]),
|
|
16564
|
+
}, [i, a]), Ur(() => {
|
|
16565
16565
|
a({
|
|
16566
16566
|
type: "override",
|
|
16567
16567
|
overrides: n
|
|
16568
16568
|
});
|
|
16569
|
-
}, [a, n]),
|
|
16569
|
+
}, [a, n]), Ur(() => {
|
|
16570
16570
|
a({
|
|
16571
16571
|
type: "setLayer",
|
|
16572
16572
|
layer: typeof e?.visible > "u" || e?.type === null || e?.type ? e : void 0
|
|
16573
16573
|
});
|
|
16574
16574
|
}, [e, a]);
|
|
16575
|
-
const m =
|
|
16576
|
-
|
|
16575
|
+
const m = de(void 0);
|
|
16576
|
+
Ur(() => {
|
|
16577
16577
|
const g = e?.type === "simple" ? e.data : void 0;
|
|
16578
16578
|
if (!(!g?.updateInterval || !g?.url))
|
|
16579
16579
|
return m.current = window.setInterval(p, g.updateInterval), () => {
|
|
16580
16580
|
m.current && clearInterval(m.current);
|
|
16581
16581
|
};
|
|
16582
16582
|
}, [e, p]);
|
|
16583
|
-
const y =
|
|
16584
|
-
return
|
|
16583
|
+
const y = de(void 0);
|
|
16584
|
+
return Ur(() => {
|
|
16585
16585
|
const g = e?.type === "simple" ? e.data : void 0, v = co(g, "csv", "jsonProperties", "value");
|
|
16586
|
-
|
|
16586
|
+
Sr(v, y.current) || !g?.url && !g?.value || (p(), y.current = v);
|
|
16587
16587
|
}, [e, p]), Me(
|
|
16588
16588
|
() => () => {
|
|
16589
16589
|
_O(() => {
|
|
@@ -16775,7 +16775,7 @@ const K2 = (e, t) => Object.fromEntries(
|
|
|
16775
16775
|
Object.entries({ ...t, ...e }).map(([n, i]) => {
|
|
16776
16776
|
const r = t[n];
|
|
16777
16777
|
if (!(Object.hasOwn(t, n) && r == null))
|
|
16778
|
-
return r === void 0 ? [n, i] :
|
|
16778
|
+
return r === void 0 ? [n, i] : Mr(r) ? [n, r] : lo(i) && Object.keys(i).length !== 0 && lo(r) && Object.keys(r).length !== 0 ? [n, K2(i, r)] : i !== r ? [n, r] : [n, i];
|
|
16779
16779
|
}).filter((n) => !!n)
|
|
16780
16780
|
);
|
|
16781
16781
|
function Tte({
|
|
@@ -16797,7 +16797,7 @@ function Tte({
|
|
|
16797
16797
|
...Y,
|
|
16798
16798
|
visible: $ ? !$ : Y.visible
|
|
16799
16799
|
};
|
|
16800
|
-
}), [y, e]), v = y2(g), [S, E] = ot([]), C =
|
|
16800
|
+
}), [y, e]), v = y2(g), [S, E] = ot([]), C = de([]), M = he(() => [...J2(g ?? []), ...J2(S)].map(($) => {
|
|
16801
16801
|
const ce = l.find((ue) => ue.id === $.id);
|
|
16802
16802
|
if (!ce) return $;
|
|
16803
16803
|
const be = ce.data?.value ?? ($.type === "simple" ? $.data?.value : void 0), q = K2(
|
|
@@ -16816,7 +16816,7 @@ function Tte({
|
|
|
16816
16816
|
}),
|
|
16817
16817
|
[h]
|
|
16818
16818
|
)
|
|
16819
|
-
), V =
|
|
16819
|
+
), V = de(G);
|
|
16820
16820
|
Me(() => {
|
|
16821
16821
|
V.current = G;
|
|
16822
16822
|
}, [G]);
|
|
@@ -16891,7 +16891,7 @@ function Tte({
|
|
|
16891
16891
|
}), [...ce]));
|
|
16892
16892
|
},
|
|
16893
16893
|
[c]
|
|
16894
|
-
), N =
|
|
16894
|
+
), N = de(l), k = se(
|
|
16895
16895
|
(Y, $) => {
|
|
16896
16896
|
const ce = c.get(Y);
|
|
16897
16897
|
if (!ce) return;
|
|
@@ -17072,8 +17072,8 @@ function Tte({
|
|
|
17072
17072
|
), Me(() => {
|
|
17073
17073
|
a?.();
|
|
17074
17074
|
}, [a]);
|
|
17075
|
-
const Q =
|
|
17076
|
-
return
|
|
17075
|
+
const Q = de([]);
|
|
17076
|
+
return Ur(() => {
|
|
17077
17077
|
const Y = /* @__PURE__ */ new Set();
|
|
17078
17078
|
Lg(g ?? [], (q) => {
|
|
17079
17079
|
Y.add(q.id), h.has(q.id) || h.set(q.id, j2()), c.set(q.id, q);
|
|
@@ -17179,7 +17179,7 @@ function Ete({
|
|
|
17179
17179
|
) : i?.(void 0, void 0, void 0, void 0, void 0);
|
|
17180
17180
|
},
|
|
17181
17181
|
[o, n, i]
|
|
17182
|
-
), u =
|
|
17182
|
+
), u = de([]), h = se(
|
|
17183
17183
|
(m, y, g) => {
|
|
17184
17184
|
if (m.length === 1) {
|
|
17185
17185
|
const [{ layerId: v, featureId: S }] = m;
|
|
@@ -17291,7 +17291,7 @@ const Cte = ({
|
|
|
17291
17291
|
}
|
|
17292
17292
|
);
|
|
17293
17293
|
}, Rte = no(Cte);
|
|
17294
|
-
var Ite =
|
|
17294
|
+
var Ite = Ur;
|
|
17295
17295
|
function Mte() {
|
|
17296
17296
|
if (typeof globalThis < "u")
|
|
17297
17297
|
return globalThis;
|
|
@@ -17600,7 +17600,7 @@ function Ute(e, t) {
|
|
|
17600
17600
|
}
|
|
17601
17601
|
let j1 = !1;
|
|
17602
17602
|
const AS = 1;
|
|
17603
|
-
let
|
|
17603
|
+
let zr = /* @__PURE__ */ (function(e) {
|
|
17604
17604
|
return e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped", e;
|
|
17605
17605
|
})({});
|
|
17606
17606
|
const Dte = {
|
|
@@ -17620,7 +17620,7 @@ class Bte {
|
|
|
17620
17620
|
* @param options Actor options
|
|
17621
17621
|
*/
|
|
17622
17622
|
constructor(t, n) {
|
|
17623
|
-
this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new KR(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Map(), this.logger = void 0, this._processingStatus =
|
|
17623
|
+
this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new KR(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Map(), this.logger = void 0, this._processingStatus = zr.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this.systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
|
|
17624
17624
|
const i = {
|
|
17625
17625
|
...Dte,
|
|
17626
17626
|
...n
|
|
@@ -17680,7 +17680,7 @@ class Bte {
|
|
|
17680
17680
|
j1 = f;
|
|
17681
17681
|
}
|
|
17682
17682
|
};
|
|
17683
|
-
this._processingStatus ===
|
|
17683
|
+
this._processingStatus === zr.Running ? d() : this._deferred.push(d);
|
|
17684
17684
|
}
|
|
17685
17685
|
}, this.send = this.send.bind(this), this.system._sendInspectionEvent({
|
|
17686
17686
|
type: "@xstate.actor",
|
|
@@ -17801,7 +17801,7 @@ class Bte {
|
|
|
17801
17801
|
*/
|
|
17802
17802
|
subscribe(t, n, i) {
|
|
17803
17803
|
const r = ew(t, n, i);
|
|
17804
|
-
if (this._processingStatus !==
|
|
17804
|
+
if (this._processingStatus !== zr.Stopped)
|
|
17805
17805
|
this.observers.add(r);
|
|
17806
17806
|
else
|
|
17807
17807
|
switch (this._snapshot.status) {
|
|
@@ -17843,7 +17843,7 @@ class Bte {
|
|
|
17843
17843
|
}
|
|
17844
17844
|
/** Starts the Actor from the initial state */
|
|
17845
17845
|
start() {
|
|
17846
|
-
if (this._processingStatus ===
|
|
17846
|
+
if (this._processingStatus === zr.Running)
|
|
17847
17847
|
return this;
|
|
17848
17848
|
this._syncSnapshot && this.subscribe({
|
|
17849
17849
|
next: (i) => {
|
|
@@ -17854,7 +17854,7 @@ class Bte {
|
|
|
17854
17854
|
},
|
|
17855
17855
|
error: () => {
|
|
17856
17856
|
}
|
|
17857
|
-
}), this.system._register(this.sessionId, this), this.systemId && this.system._set(this.systemId, this), this._processingStatus =
|
|
17857
|
+
}), this.system._register(this.sessionId, this), this.systemId && this.system._set(this.systemId, this), this._processingStatus = zr.Running;
|
|
17858
17858
|
const t = w9(this.options.input);
|
|
17859
17859
|
switch (this.system._sendInspectionEvent({
|
|
17860
17860
|
type: "@xstate.event",
|
|
@@ -17902,7 +17902,7 @@ class Bte {
|
|
|
17902
17902
|
this.update(n, t), t.type === Q2 && (this._stopProcedure(), this._complete());
|
|
17903
17903
|
}
|
|
17904
17904
|
_stop() {
|
|
17905
|
-
return this._processingStatus ===
|
|
17905
|
+
return this._processingStatus === zr.Stopped ? this : (this.mailbox.clear(), this._processingStatus === zr.NotStarted ? (this._processingStatus = zr.Stopped, this) : (this.mailbox.enqueue({
|
|
17906
17906
|
type: Q2
|
|
17907
17907
|
}), this));
|
|
17908
17908
|
}
|
|
@@ -17947,11 +17947,11 @@ class Bte {
|
|
|
17947
17947
|
// right now, they are being stopped within the machine's transition
|
|
17948
17948
|
// but that could throw and leave us with "orphaned" active actors
|
|
17949
17949
|
_stopProcedure() {
|
|
17950
|
-
return this._processingStatus !==
|
|
17950
|
+
return this._processingStatus !== zr.Running ? this : (this.system.scheduler.cancelAll(this), this.mailbox.clear(), this.mailbox = new KR(this._process.bind(this)), this._processingStatus = zr.Stopped, this.system._unregister(this), this);
|
|
17951
17951
|
}
|
|
17952
17952
|
/** @internal */
|
|
17953
17953
|
_send(t) {
|
|
17954
|
-
this._processingStatus !==
|
|
17954
|
+
this._processingStatus !== zr.Stopped && this.mailbox.enqueue(t);
|
|
17955
17955
|
}
|
|
17956
17956
|
/**
|
|
17957
17957
|
* Sends an event to the running Actor to trigger a transition.
|
|
@@ -18068,7 +18068,7 @@ function Jte(e, {
|
|
|
18068
18068
|
actorRef: t
|
|
18069
18069
|
}) {
|
|
18070
18070
|
t && e.defer(() => {
|
|
18071
|
-
t._processingStatus !==
|
|
18071
|
+
t._processingStatus !== zr.Stopped && t.start();
|
|
18072
18072
|
});
|
|
18073
18073
|
}
|
|
18074
18074
|
function Qte(...[e, {
|
|
@@ -18101,7 +18101,7 @@ function C9(e, t) {
|
|
|
18101
18101
|
}
|
|
18102
18102
|
function $te(e, t) {
|
|
18103
18103
|
if (t) {
|
|
18104
|
-
if (C9(e, t), t._processingStatus !==
|
|
18104
|
+
if (C9(e, t), t._processingStatus !== zr.Running) {
|
|
18105
18105
|
e.stopChild(t);
|
|
18106
18106
|
return;
|
|
18107
18107
|
}
|
|
@@ -19009,7 +19009,7 @@ function Gne(e, {
|
|
|
19009
19009
|
return (s, a) => {
|
|
19010
19010
|
const c = o(s, a);
|
|
19011
19011
|
return r[c.id] = c, e.defer(() => {
|
|
19012
|
-
c._processingStatus !==
|
|
19012
|
+
c._processingStatus !== zr.Stopped && c.start();
|
|
19013
19013
|
}), c;
|
|
19014
19014
|
};
|
|
19015
19015
|
}
|
|
@@ -19671,9 +19671,9 @@ function Yne(e, ...[t]) {
|
|
|
19671
19671
|
return Bne(e, t);
|
|
19672
19672
|
}
|
|
19673
19673
|
function iw(e, t, n) {
|
|
19674
|
-
const i =
|
|
19674
|
+
const i = de(t);
|
|
19675
19675
|
i.current = t;
|
|
19676
|
-
const r =
|
|
19676
|
+
const r = de(n);
|
|
19677
19677
|
Me(() => {
|
|
19678
19678
|
if (typeof window > "u")
|
|
19679
19679
|
return;
|
|
@@ -20689,15 +20689,15 @@ const Qne = ({
|
|
|
20689
20689
|
a,
|
|
20690
20690
|
d,
|
|
20691
20691
|
r
|
|
20692
|
-
]), I =
|
|
20692
|
+
]), I = de(G);
|
|
20693
20693
|
I.current = G;
|
|
20694
|
-
const x =
|
|
20694
|
+
const x = de(V);
|
|
20695
20695
|
x.current = V;
|
|
20696
|
-
const w =
|
|
20696
|
+
const w = de(P);
|
|
20697
20697
|
w.current = P;
|
|
20698
|
-
const R =
|
|
20698
|
+
const R = de(A);
|
|
20699
20699
|
R.current = A;
|
|
20700
|
-
const N =
|
|
20700
|
+
const N = de(X);
|
|
20701
20701
|
N.current = X;
|
|
20702
20702
|
const k = se(
|
|
20703
20703
|
(j) => {
|
|
@@ -20721,7 +20721,7 @@ const Qne = ({
|
|
|
20721
20721
|
[R]
|
|
20722
20722
|
), F = se(() => {
|
|
20723
20723
|
N.current?.();
|
|
20724
|
-
}, [N]), W =
|
|
20724
|
+
}, [N]), W = de(!1);
|
|
20725
20725
|
return Me(() => {
|
|
20726
20726
|
W.current || !t.current || (W.current = !0, t.current?.onMouseDown(k), t.current?.onMouseMove(D), t.current?.onMouseUp(B), t.current?.onDoubleClick(K), t.current?.onRightClick(F));
|
|
20727
20727
|
}, [t, k, D, B, K, F]), {};
|
|
@@ -20880,7 +20880,7 @@ function tie({
|
|
|
20880
20880
|
...je,
|
|
20881
20881
|
appearance: mS(dS(Ft.appearance), je.appearance)
|
|
20882
20882
|
}));
|
|
20883
|
-
}, []), [x, w] = ot(null), [R, N] = ot(0), [k, D] = ot(), [B, K] = ot(), [F, W] = ot(), [j, J] = ot(), ie =
|
|
20883
|
+
}, []), [x, w] = ot(null), [R, N] = ot(0), [k, D] = ot(), [B, K] = ot(), [F, W] = ot(), [j, J] = ot(), ie = de(null), Ee = de(void 0), ve = he(() => g.matches("editing"), [g]), Ne = se(() => {
|
|
20884
20884
|
const je = S === "marker" ? ie.current : x;
|
|
20885
20885
|
if (je == null)
|
|
20886
20886
|
return null;
|
|
@@ -20913,7 +20913,7 @@ function tie({
|
|
|
20913
20913
|
});
|
|
20914
20914
|
},
|
|
20915
20915
|
[g, w, N]
|
|
20916
|
-
), ke =
|
|
20916
|
+
), ke = de(me);
|
|
20917
20917
|
ke.current = me;
|
|
20918
20918
|
const tt = se(
|
|
20919
20919
|
async (je) => {
|
|
@@ -21029,7 +21029,7 @@ function tie({
|
|
|
21029
21029
|
}), iw("keydown", (je) => {
|
|
21030
21030
|
if (S !== void 0)
|
|
21031
21031
|
if (je.code === "Space")
|
|
21032
|
-
|
|
21032
|
+
Gr.current = !0, P(!0), o?.("move");
|
|
21033
21033
|
else {
|
|
21034
21034
|
if (V)
|
|
21035
21035
|
return;
|
|
@@ -21043,43 +21043,43 @@ function tie({
|
|
|
21043
21043
|
}
|
|
21044
21044
|
}
|
|
21045
21045
|
}), iw("keyup", (je) => {
|
|
21046
|
-
S !== void 0 && je.code === "Space" && (o?.("sketch"), P(!1),
|
|
21046
|
+
S !== void 0 && je.code === "Space" && (o?.("sketch"), P(!1), Gr.current && (Gr.current = !1));
|
|
21047
21047
|
}), Me(() => {
|
|
21048
21048
|
S === void 0 && !p && (v({ type: "ABORT" }), ke.current?.(void 0));
|
|
21049
21049
|
}, [S, p, v]);
|
|
21050
|
-
const Ie =
|
|
21050
|
+
const Ie = de(C);
|
|
21051
21051
|
Ie.current = C;
|
|
21052
|
-
const we =
|
|
21052
|
+
const we = de(o);
|
|
21053
21053
|
we.current = o;
|
|
21054
|
-
const Ue =
|
|
21054
|
+
const Ue = de(s);
|
|
21055
21055
|
Ue.current = s;
|
|
21056
|
-
const Ye =
|
|
21056
|
+
const Ye = de(i);
|
|
21057
21057
|
Ye.current = i, Me(() => {
|
|
21058
21058
|
(p || S) && Ye.current !== "sketch" && we.current?.("sketch");
|
|
21059
21059
|
}, [S, p]);
|
|
21060
|
-
const Qe =
|
|
21060
|
+
const Qe = de(ve);
|
|
21061
21061
|
Qe.current = ve;
|
|
21062
|
-
const Wt =
|
|
21062
|
+
const Wt = de(be);
|
|
21063
21063
|
Wt.current = be, Me(() => {
|
|
21064
21064
|
Ue.current?.(S, Ie.current), Qe.current && Wt.current(), S === void 0 && we.current?.(
|
|
21065
21065
|
Ye.current === "sketch" ? "default" : Ye.current
|
|
21066
21066
|
);
|
|
21067
21067
|
}, [S]);
|
|
21068
|
-
const Be =
|
|
21068
|
+
const Be = de(S);
|
|
21069
21069
|
Be.current = S, Me(() => {
|
|
21070
|
-
|
|
21070
|
+
Gr.current || i !== "sketch" && Qe.current && Wt.current();
|
|
21071
21071
|
}, [i, E]);
|
|
21072
|
-
const Ct =
|
|
21072
|
+
const Ct = de([]), Yt = se((je) => {
|
|
21073
21073
|
Ct.current.push(je);
|
|
21074
|
-
}, []), Et =
|
|
21074
|
+
}, []), Et = de(Yt);
|
|
21075
21075
|
Et.current = Yt;
|
|
21076
|
-
const yn =
|
|
21076
|
+
const yn = de(void 0), Ri = he(
|
|
21077
21077
|
() => g.context.catchedControlPointIndex,
|
|
21078
21078
|
[g.context.catchedControlPointIndex]
|
|
21079
21079
|
), ei = he(
|
|
21080
21080
|
() => !!g.context.catchedExtrudedPoint,
|
|
21081
21081
|
[g.context.catchedExtrudedPoint]
|
|
21082
|
-
), ti =
|
|
21082
|
+
), ti = de(!1);
|
|
21083
21083
|
Me(() => {
|
|
21084
21084
|
if (Ct.current.forEach((je) => {
|
|
21085
21085
|
je(p);
|
|
@@ -21160,7 +21160,7 @@ function tie({
|
|
|
21160
21160
|
} : null
|
|
21161
21161
|
), J(void 0);
|
|
21162
21162
|
}
|
|
21163
|
-
}, [j, g.context.controlPoints, v, w]), gi =
|
|
21163
|
+
}, [j, g.context.controlPoints, v, w]), gi = de(Rt);
|
|
21164
21164
|
gi.current = Rt;
|
|
21165
21165
|
const pr = se(
|
|
21166
21166
|
(je, Ft) => {
|
|
@@ -21181,11 +21181,11 @@ function tie({
|
|
|
21181
21181
|
);
|
|
21182
21182
|
},
|
|
21183
21183
|
[g.context.controlPoints, v, w]
|
|
21184
|
-
),
|
|
21184
|
+
), Gr = de(!1), Ki = de(g);
|
|
21185
21185
|
return Ki.current = g, Me(() => window.addEventListener("keydown", (je) => {
|
|
21186
|
-
je.code === "Space" && Ki.current.matches("editing") ? (
|
|
21186
|
+
je.code === "Space" && Ki.current.matches("editing") ? (Gr.current = !0, o?.("move")) : je.code === "Delete" && Ki.current.matches("editing") && gi.current();
|
|
21187
21187
|
}), [o]), Me(() => window.addEventListener("keyup", (je) => {
|
|
21188
|
-
je.code === "Space" &&
|
|
21188
|
+
je.code === "Space" && Gr.current && (o?.("sketch"), Gr.current = !1);
|
|
21189
21189
|
}), [o]), Me(() => {
|
|
21190
21190
|
ve || we.current?.("default");
|
|
21191
21191
|
}, [ve]), {
|
|
@@ -21702,7 +21702,7 @@ const die = ({
|
|
|
21702
21702
|
useCommonEvent: l,
|
|
21703
21703
|
useRootEvent: u
|
|
21704
21704
|
}, h, d) => {
|
|
21705
|
-
const f =
|
|
21705
|
+
const f = de(void 0), p = si(), m = de(i ? {} : void 0), y = de({}), g = de(m3(h)), v = de({}), [S, E] = ot(!1), C = de(!1), M = de(null), G = de(void 0), V = p?.[qu], P = de(void 0), A = de(void 0), X = se(
|
|
21706
21706
|
async (R) => {
|
|
21707
21707
|
if (!f.current) return;
|
|
21708
21708
|
const N = f.current, k = Object.keys(R), D = Object.keys(s || []), B = k.concat(
|
|
@@ -21765,7 +21765,7 @@ const die = ({
|
|
|
21765
21765
|
}
|
|
21766
21766
|
y.current = {}, m.current = void 0, G.current = void 0, f.current = void 0;
|
|
21767
21767
|
}, []);
|
|
21768
|
-
return
|
|
21768
|
+
return Ur(() => ((async () => (A.current && (await A.current, A.current = void 0), P.current = I()))(), () => {
|
|
21769
21769
|
x(), A.current = w();
|
|
21770
21770
|
}), [I, w, x]), Me(() => {
|
|
21771
21771
|
(async () => {
|
|
@@ -22525,7 +22525,7 @@ const jie = ["clustering", "show"], Kie = ["name", "sourceUri", "credit"], Jie =
|
|
|
22525
22525
|
name: "Entity",
|
|
22526
22526
|
create(e, t) {
|
|
22527
22527
|
if (!e.entityCollection) return;
|
|
22528
|
-
const n = new
|
|
22528
|
+
const n = new Wr(t);
|
|
22529
22529
|
return e.viewer && t.selected && (e.viewer.selectedEntity = n), e.viewer && t.tracked && (e.viewer.trackedEntity = n), e.entityCollection.add(n), n;
|
|
22530
22530
|
},
|
|
22531
22531
|
destroy(e, t) {
|
|
@@ -26167,7 +26167,7 @@ const dw = (e) => {
|
|
|
26167
26167
|
overrideInteractionMode: o,
|
|
26168
26168
|
onMount: s
|
|
26169
26169
|
}) => {
|
|
26170
|
-
const [a, c] = ot("idle"), [l, u] = ot(null), [h, d] = ot(null), [f, p] = ot(null), m =
|
|
26170
|
+
const [a, c] = ot("idle"), [l, u] = ot(null), [h, d] = ot(null), [f, p] = ot(null), m = de(null), [y, g] = ot(null), v = de(null), [S, E] = ot(null), [C, M] = ot(
|
|
26171
26171
|
null
|
|
26172
26172
|
), [G, V] = ot(Joe), P = he(
|
|
26173
26173
|
() => oae(G.maxHeight, G.minHeight, G.zoom),
|
|
@@ -26194,7 +26194,7 @@ const dw = (e) => {
|
|
|
26194
26194
|
}, 100);
|
|
26195
26195
|
},
|
|
26196
26196
|
[t, o]
|
|
26197
|
-
), I =
|
|
26197
|
+
), I = de(r);
|
|
26198
26198
|
I.current = r;
|
|
26199
26199
|
const x = se(() => {
|
|
26200
26200
|
c("idle"), E(null), M(null), g(null), p(null), m.current = null, v.current = null, d(null), o?.(
|
|
@@ -26331,15 +26331,15 @@ const dw = (e) => {
|
|
|
26331
26331
|
iw("keydown", (me) => {
|
|
26332
26332
|
me.code === "Escape" && N();
|
|
26333
26333
|
});
|
|
26334
|
-
const D =
|
|
26334
|
+
const D = de(!1), B = de(w);
|
|
26335
26335
|
B.current = w;
|
|
26336
26336
|
const K = se((me) => {
|
|
26337
26337
|
B.current(me);
|
|
26338
|
-
}, []), F =
|
|
26338
|
+
}, []), F = de(R);
|
|
26339
26339
|
F.current = R;
|
|
26340
26340
|
const W = se((me) => {
|
|
26341
26341
|
F.current(me);
|
|
26342
|
-
}, []), j =
|
|
26342
|
+
}, []), j = de(k);
|
|
26343
26343
|
j.current = k;
|
|
26344
26344
|
const J = se(() => {
|
|
26345
26345
|
j.current();
|
|
@@ -26347,13 +26347,13 @@ const dw = (e) => {
|
|
|
26347
26347
|
Me(() => {
|
|
26348
26348
|
D.current || !t.current || (D.current = !0, t.current.onMouseUp(K), t.current.onMouseMove(W), t.current.onRightClick(J));
|
|
26349
26349
|
}, [t, K, W, J]);
|
|
26350
|
-
const ie =
|
|
26350
|
+
const ie = de(a);
|
|
26351
26351
|
ie.current = a;
|
|
26352
|
-
const Ee =
|
|
26352
|
+
const Ee = de(x);
|
|
26353
26353
|
Ee.current = x, Me(() => {
|
|
26354
26354
|
Oe.current || r !== "spatialId" && ie.current !== "idle" && Ee.current();
|
|
26355
26355
|
}, [r]);
|
|
26356
|
-
const ve =
|
|
26356
|
+
const ve = de([]), Ne = se((me) => {
|
|
26357
26357
|
ve.current.push(me);
|
|
26358
26358
|
}, []);
|
|
26359
26359
|
Ka(
|
|
@@ -26365,7 +26365,7 @@ const dw = (e) => {
|
|
|
26365
26365
|
}),
|
|
26366
26366
|
[X, Ne, x]
|
|
26367
26367
|
);
|
|
26368
|
-
const Oe =
|
|
26368
|
+
const Oe = de(!1);
|
|
26369
26369
|
return Me(() => {
|
|
26370
26370
|
const me = (ke) => {
|
|
26371
26371
|
ke.code === "Space" && ie.current !== "idle" && (Oe.current = !0, o?.("move"));
|
|
@@ -27232,7 +27232,7 @@ function d4(e) {
|
|
|
27232
27232
|
}
|
|
27233
27233
|
const Kae = "https://terrain.reearth.land/cesium-mesh/ellipsoid";
|
|
27234
27234
|
function Jae(e) {
|
|
27235
|
-
const t =
|
|
27235
|
+
const t = de(/* @__PURE__ */ new Map()), n = de(void 0);
|
|
27236
27236
|
return he(() => {
|
|
27237
27237
|
if (!e.terrain)
|
|
27238
27238
|
return n.current || (n.current = new yy()), Promise.resolve(n.current);
|
|
@@ -27283,7 +27283,7 @@ function $ae({
|
|
|
27283
27283
|
}), r = he(
|
|
27284
27284
|
() => Cc(e?.globe?.baseColor),
|
|
27285
27285
|
[e?.globe?.baseColor]
|
|
27286
|
-
), o =
|
|
27286
|
+
), o = de(null);
|
|
27287
27287
|
return Me(() => {
|
|
27288
27288
|
let s = !1;
|
|
27289
27289
|
return i.then((a) => {
|
|
@@ -32011,7 +32011,7 @@ const Za = /* @__PURE__ */ id(Wce);
|
|
|
32011
32011
|
function Uce(e) {
|
|
32012
32012
|
return (e.length === 0 || e[e.length - 1] !== "/") && (e = `${e}/`), e;
|
|
32013
32013
|
}
|
|
32014
|
-
function
|
|
32014
|
+
function Tr(e, t) {
|
|
32015
32015
|
if (e === null || typeof e != "object")
|
|
32016
32016
|
return e;
|
|
32017
32017
|
t = t ?? !1;
|
|
@@ -32019,7 +32019,7 @@ function Sr(e, t) {
|
|
|
32019
32019
|
for (const i in e)
|
|
32020
32020
|
if (e.hasOwnProperty(i)) {
|
|
32021
32021
|
let r = e[i];
|
|
32022
|
-
t && (r =
|
|
32022
|
+
t && (r = Tr(r, t)), n[i] = r;
|
|
32023
32023
|
}
|
|
32024
32024
|
return n;
|
|
32025
32025
|
}
|
|
@@ -32624,7 +32624,7 @@ function Xe(e) {
|
|
|
32624
32624
|
}), T.typeOf.string("options.url", e.url), this._url = void 0, this._templateValues = Qs(e.templateValues, {}), this._queryParameters = Qs(e.queryParameters, {}), this.headers = Qs(e.headers, {}), this.request = e.request ?? new Uy(), this.proxy = e.proxy, this.retryCallback = e.retryCallback, this.retryAttempts = e.retryAttempts ?? 0, this._retryCount = 0, e.parseUrl ?? !0 ? this.parseUrl(e.url, !0, !0) : this._url = e.url, this._credits = e.credits;
|
|
32625
32625
|
}
|
|
32626
32626
|
function Qs(e, t) {
|
|
32627
|
-
return _(e) ?
|
|
32627
|
+
return _(e) ? Tr(e) : t;
|
|
32628
32628
|
}
|
|
32629
32629
|
Xe.createIfNeeded = function(e) {
|
|
32630
32630
|
return e instanceof Xe ? e.getDerivedResource({
|
|
@@ -32796,7 +32796,7 @@ function ale(e) {
|
|
|
32796
32796
|
function Dy(e, t, n) {
|
|
32797
32797
|
if (!n)
|
|
32798
32798
|
return Jr(e, t);
|
|
32799
|
-
const i =
|
|
32799
|
+
const i = Tr(e, !0);
|
|
32800
32800
|
for (const r in t)
|
|
32801
32801
|
if (t.hasOwnProperty(r)) {
|
|
32802
32802
|
let o = i[r];
|
|
@@ -32865,7 +32865,7 @@ Xe.prototype.retryOnError = function(e) {
|
|
|
32865
32865
|
});
|
|
32866
32866
|
};
|
|
32867
32867
|
Xe.prototype.clone = function(e) {
|
|
32868
|
-
return _(e) ? (e._url = this._url, e._queryParameters =
|
|
32868
|
+
return _(e) ? (e._url = this._url, e._queryParameters = Tr(this._queryParameters), e._templateValues = Tr(this._templateValues), e.headers = Tr(this.headers), e.proxy = this.proxy, e.retryCallback = this.retryCallback, e.retryAttempts = this.retryAttempts, e._retryCount = 0, e.request = this.request.clone(), e) : new Xe({
|
|
32869
32869
|
url: this._url,
|
|
32870
32870
|
queryParameters: this.queryParameters,
|
|
32871
32871
|
templateValues: this.templateValues,
|
|
@@ -34584,8 +34584,8 @@ const Bn = {
|
|
|
34584
34584
|
fullscreenElement: void 0,
|
|
34585
34585
|
fullscreenchange: void 0,
|
|
34586
34586
|
fullscreenerror: void 0
|
|
34587
|
-
},
|
|
34588
|
-
Object.defineProperties(
|
|
34587
|
+
}, kr = {};
|
|
34588
|
+
Object.defineProperties(kr, {
|
|
34589
34589
|
/**
|
|
34590
34590
|
* The element that is currently fullscreen, if any. To simply check if the
|
|
34591
34591
|
* browser is in fullscreen mode or not, use {@link Fullscreen#fullscreen}.
|
|
@@ -34595,7 +34595,7 @@ Object.defineProperties(Zr, {
|
|
|
34595
34595
|
*/
|
|
34596
34596
|
element: {
|
|
34597
34597
|
get: function() {
|
|
34598
|
-
if (
|
|
34598
|
+
if (kr.supportsFullscreen())
|
|
34599
34599
|
return document[Bn.fullscreenElement];
|
|
34600
34600
|
}
|
|
34601
34601
|
},
|
|
@@ -34610,7 +34610,7 @@ Object.defineProperties(Zr, {
|
|
|
34610
34610
|
*/
|
|
34611
34611
|
changeEventName: {
|
|
34612
34612
|
get: function() {
|
|
34613
|
-
if (
|
|
34613
|
+
if (kr.supportsFullscreen())
|
|
34614
34614
|
return Bn.fullscreenchange;
|
|
34615
34615
|
}
|
|
34616
34616
|
},
|
|
@@ -34623,7 +34623,7 @@ Object.defineProperties(Zr, {
|
|
|
34623
34623
|
*/
|
|
34624
34624
|
errorEventName: {
|
|
34625
34625
|
get: function() {
|
|
34626
|
-
if (
|
|
34626
|
+
if (kr.supportsFullscreen())
|
|
34627
34627
|
return Bn.fullscreenerror;
|
|
34628
34628
|
}
|
|
34629
34629
|
},
|
|
@@ -34637,7 +34637,7 @@ Object.defineProperties(Zr, {
|
|
|
34637
34637
|
*/
|
|
34638
34638
|
enabled: {
|
|
34639
34639
|
get: function() {
|
|
34640
|
-
if (
|
|
34640
|
+
if (kr.supportsFullscreen())
|
|
34641
34641
|
return document[Bn.fullscreenEnabled];
|
|
34642
34642
|
}
|
|
34643
34643
|
},
|
|
@@ -34649,12 +34649,12 @@ Object.defineProperties(Zr, {
|
|
|
34649
34649
|
*/
|
|
34650
34650
|
fullscreen: {
|
|
34651
34651
|
get: function() {
|
|
34652
|
-
if (
|
|
34653
|
-
return
|
|
34652
|
+
if (kr.supportsFullscreen())
|
|
34653
|
+
return kr.element !== null;
|
|
34654
34654
|
}
|
|
34655
34655
|
}
|
|
34656
34656
|
});
|
|
34657
|
-
|
|
34657
|
+
kr.supportsFullscreen = function() {
|
|
34658
34658
|
if (_(ac))
|
|
34659
34659
|
return ac;
|
|
34660
34660
|
ac = !1;
|
|
@@ -34669,13 +34669,13 @@ Zr.supportsFullscreen = function() {
|
|
|
34669
34669
|
}
|
|
34670
34670
|
return ac;
|
|
34671
34671
|
};
|
|
34672
|
-
|
|
34673
|
-
|
|
34672
|
+
kr.requestFullscreen = function(e, t) {
|
|
34673
|
+
kr.supportsFullscreen() && e[Bn.requestFullscreen]({ vrDisplay: t });
|
|
34674
34674
|
};
|
|
34675
|
-
|
|
34676
|
-
|
|
34675
|
+
kr.exitFullscreen = function() {
|
|
34676
|
+
kr.supportsFullscreen() && document[Bn.exitFullscreen]();
|
|
34677
34677
|
};
|
|
34678
|
-
|
|
34678
|
+
kr._names = Bn;
|
|
34679
34679
|
let Yo;
|
|
34680
34680
|
typeof navigator < "u" ? Yo = navigator : Yo = {};
|
|
34681
34681
|
function Lm(e) {
|
|
@@ -34831,7 +34831,7 @@ Ti.supportsBasis = function(e) {
|
|
|
34831
34831
|
return Ti.supportsWebAssembly() && e.context.supportsBasis;
|
|
34832
34832
|
};
|
|
34833
34833
|
Ti.supportsFullscreen = function() {
|
|
34834
|
-
return
|
|
34834
|
+
return kr.supportsFullscreen();
|
|
34835
34835
|
};
|
|
34836
34836
|
Ti.supportsTypedArrays = function() {
|
|
34837
34837
|
return typeof ArrayBuffer < "u";
|
|
@@ -35161,7 +35161,7 @@ const St = {}, w_ = {
|
|
|
35161
35161
|
south: [1, 0, 0],
|
|
35162
35162
|
west: [0, -1, 0],
|
|
35163
35163
|
down: [0, 0, -1]
|
|
35164
|
-
}, x_ = {},
|
|
35164
|
+
}, x_ = {}, Vr = {
|
|
35165
35165
|
east: new b(),
|
|
35166
35166
|
north: new b(),
|
|
35167
35167
|
up: new b(),
|
|
@@ -35225,21 +35225,21 @@ St.localFrameToFixedFrameGenerator = function(e, t) {
|
|
|
35225
35225
|
uc
|
|
35226
35226
|
);
|
|
35227
35227
|
} else {
|
|
35228
|
-
s = s ?? at.default, s.geodeticSurfaceNormal(o,
|
|
35229
|
-
const c =
|
|
35230
|
-
l.x = -o.y, l.y = o.x, l.z = 0, b.normalize(l,
|
|
35231
|
-
|
|
35228
|
+
s = s ?? at.default, s.geodeticSurfaceNormal(o, Vr.up);
|
|
35229
|
+
const c = Vr.up, l = Vr.east;
|
|
35230
|
+
l.x = -o.y, l.y = o.x, l.z = 0, b.normalize(l, Vr.east), b.cross(c, l, Vr.north), b.multiplyByScalar(
|
|
35231
|
+
Vr.up,
|
|
35232
35232
|
-1,
|
|
35233
|
-
|
|
35233
|
+
Vr.down
|
|
35234
35234
|
), b.multiplyByScalar(
|
|
35235
|
-
|
|
35235
|
+
Vr.east,
|
|
35236
35236
|
-1,
|
|
35237
|
-
|
|
35237
|
+
Vr.west
|
|
35238
35238
|
), b.multiplyByScalar(
|
|
35239
|
-
|
|
35239
|
+
Vr.north,
|
|
35240
35240
|
-1,
|
|
35241
|
-
|
|
35242
|
-
), cc =
|
|
35241
|
+
Vr.south
|
|
35242
|
+
), cc = Vr[e], lc = Vr[t], uc = Vr[n];
|
|
35243
35243
|
}
|
|
35244
35244
|
return a[0] = cc.x, a[1] = cc.y, a[2] = cc.z, a[3] = 0, a[4] = lc.x, a[5] = lc.y, a[6] = lc.z, a[7] = 0, a[8] = uc.x, a[9] = uc.y, a[10] = uc.z, a[11] = 0, a[12] = o.x, a[13] = o.y, a[14] = o.z, a[15] = 1, a;
|
|
35245
35245
|
}, x_[r] = i), i;
|
|
@@ -38573,7 +38573,7 @@ Hi.prototype.isTranslucent = function() {
|
|
|
38573
38573
|
return _(this.material) && this.material.isTranslucent() || !_(this.material) && this.translucent;
|
|
38574
38574
|
};
|
|
38575
38575
|
Hi.prototype.getRenderState = function() {
|
|
38576
|
-
const e = this.isTranslucent(), t =
|
|
38576
|
+
const e = this.isTranslucent(), t = Tr(this.renderState, !1);
|
|
38577
38577
|
return e ? (t.depthMask = !1, t.blending = Pm.ALPHA_BLEND) : t.depthMask = !0, t;
|
|
38578
38578
|
};
|
|
38579
38579
|
Hi.getDefaultRenderState = function(e, t, n) {
|
|
@@ -43829,7 +43829,7 @@ pn.prototype.isDestroyed = function() {
|
|
|
43829
43829
|
pn.prototype.destroy = function() {
|
|
43830
43830
|
return this._context._gl.deleteTexture(this._texture), this._positiveX = vi(this._positiveX), this._negativeX = vi(this._negativeX), this._positiveY = vi(this._positiveY), this._negativeY = vi(this._negativeY), this._positiveZ = vi(this._positiveZ), this._negativeZ = vi(this._negativeZ), vi(this);
|
|
43831
43831
|
};
|
|
43832
|
-
function
|
|
43832
|
+
function Lr(e) {
|
|
43833
43833
|
e = e ?? Ke.EMPTY_OBJECT, T.defined("options.context", e.context);
|
|
43834
43834
|
const {
|
|
43835
43835
|
context: t,
|
|
@@ -44075,10 +44075,10 @@ function rF(e) {
|
|
|
44075
44075
|
null
|
|
44076
44076
|
);
|
|
44077
44077
|
}
|
|
44078
|
-
|
|
44079
|
-
return new
|
|
44078
|
+
Lr.create = function(e) {
|
|
44079
|
+
return new Lr(e);
|
|
44080
44080
|
};
|
|
44081
|
-
|
|
44081
|
+
Lr.fromFramebuffer = function(e) {
|
|
44082
44082
|
e = e ?? Ke.EMPTY_OBJECT, T.defined("options.context", e.context);
|
|
44083
44083
|
const t = e.context, {
|
|
44084
44084
|
pixelFormat: n = xt.RGB,
|
|
@@ -44110,7 +44110,7 @@ Mr.fromFramebuffer = function(e) {
|
|
|
44110
44110
|
throw new O(
|
|
44111
44111
|
"framebufferYOffset + height must be less than or equal to drawingBufferHeight."
|
|
44112
44112
|
);
|
|
44113
|
-
return new
|
|
44113
|
+
return new Lr({
|
|
44114
44114
|
context: t,
|
|
44115
44115
|
width: o,
|
|
44116
44116
|
height: s,
|
|
@@ -44124,7 +44124,7 @@ Mr.fromFramebuffer = function(e) {
|
|
|
44124
44124
|
}
|
|
44125
44125
|
});
|
|
44126
44126
|
};
|
|
44127
|
-
Object.defineProperties(
|
|
44127
|
+
Object.defineProperties(Lr.prototype, {
|
|
44128
44128
|
/**
|
|
44129
44129
|
* A unique id for the texture
|
|
44130
44130
|
* @memberof Texture.prototype
|
|
@@ -44217,7 +44217,7 @@ function oF(e, t) {
|
|
|
44217
44217
|
t.maximumAnisotropy
|
|
44218
44218
|
), c.bindTexture(l, null);
|
|
44219
44219
|
}
|
|
44220
|
-
|
|
44220
|
+
Lr.prototype.copyFrom = function(e) {
|
|
44221
44221
|
T.defined("options", e);
|
|
44222
44222
|
const {
|
|
44223
44223
|
xOffset: t = 0,
|
|
@@ -44259,7 +44259,7 @@ Mr.prototype.copyFrom = function(e) {
|
|
|
44259
44259
|
l
|
|
44260
44260
|
) : jde(this, i, t, n)), s.bindTexture(a, null);
|
|
44261
44261
|
};
|
|
44262
|
-
|
|
44262
|
+
Lr.prototype.copyFromFramebuffer = function(e, t, n, i, r, o) {
|
|
44263
44263
|
if (e = e ?? 0, t = t ?? 0, n = n ?? 0, i = i ?? 0, r = r ?? this._width, o = o ?? this._height, xt.isDepthFormat(this._pixelFormat))
|
|
44264
44264
|
throw new O(
|
|
44265
44265
|
"Cannot call copyFromFramebuffer when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL."
|
|
@@ -44305,7 +44305,7 @@ Mr.prototype.copyFromFramebuffer = function(e, t, n, i, r, o) {
|
|
|
44305
44305
|
o
|
|
44306
44306
|
), s.bindTexture(a, null), this._initialized = !0;
|
|
44307
44307
|
};
|
|
44308
|
-
|
|
44308
|
+
Lr.prototype.generateMipmap = function(e) {
|
|
44309
44309
|
if (e = e ?? Jy.DONT_CARE, xt.isDepthFormat(this._pixelFormat))
|
|
44310
44310
|
throw new O(
|
|
44311
44311
|
"Cannot call generateMipmap when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL."
|
|
@@ -44330,10 +44330,10 @@ Mr.prototype.generateMipmap = function(e) {
|
|
|
44330
44330
|
const t = this._context._gl, n = this._textureTarget;
|
|
44331
44331
|
t.hint(t.GENERATE_MIPMAP_HINT, e), t.activeTexture(t.TEXTURE0), t.bindTexture(n, this._texture), t.generateMipmap(n), t.bindTexture(n, null);
|
|
44332
44332
|
};
|
|
44333
|
-
|
|
44333
|
+
Lr.prototype.isDestroyed = function() {
|
|
44334
44334
|
return !1;
|
|
44335
44335
|
};
|
|
44336
|
-
|
|
44336
|
+
Lr.prototype.destroy = function() {
|
|
44337
44337
|
return this._context._gl.deleteTexture(this._texture), vi(this);
|
|
44338
44338
|
};
|
|
44339
44339
|
const Kde = `uniform sampler2D image;
|
|
@@ -45035,7 +45035,7 @@ xe.prototype.update = function(e) {
|
|
|
45035
45035
|
magnificationFilter: this._magnificationFilter
|
|
45036
45036
|
});
|
|
45037
45037
|
let d;
|
|
45038
|
-
_(l.internalFormat) ? d = new
|
|
45038
|
+
_(l.internalFormat) ? d = new Lr({
|
|
45039
45039
|
context: e,
|
|
45040
45040
|
pixelFormat: l.internalFormat,
|
|
45041
45041
|
width: l.width,
|
|
@@ -45045,7 +45045,7 @@ xe.prototype.update = function(e) {
|
|
|
45045
45045
|
mipLevels: u
|
|
45046
45046
|
},
|
|
45047
45047
|
sampler: h
|
|
45048
|
-
}) : d = new
|
|
45048
|
+
}) : d = new Lr({
|
|
45049
45049
|
context: e,
|
|
45050
45050
|
source: l,
|
|
45051
45051
|
sampler: h
|
|
@@ -45104,15 +45104,15 @@ xe.prototype.destroy = function() {
|
|
|
45104
45104
|
return vi(this);
|
|
45105
45105
|
};
|
|
45106
45106
|
function pfe(e, t) {
|
|
45107
|
-
e = e ?? Ke.EMPTY_OBJECT, t._strict = e.strict ?? !1, t._count = e.count ?? 0, t._template =
|
|
45107
|
+
e = e ?? Ke.EMPTY_OBJECT, t._strict = e.strict ?? !1, t._count = e.count ?? 0, t._template = Tr(e.fabric ?? Ke.EMPTY_OBJECT), t.fabric = Tr(e.fabric ?? Ke.EMPTY_OBJECT), t._template.uniforms = Tr(
|
|
45108
45108
|
t._template.uniforms ?? Ke.EMPTY_OBJECT
|
|
45109
|
-
), t._template.materials =
|
|
45109
|
+
), t._template.materials = Tr(
|
|
45110
45110
|
t._template.materials ?? Ke.EMPTY_OBJECT
|
|
45111
45111
|
), t.type = _(t._template.type) ? t._template.type : t1(), t.shaderSource = "", t.materials = {}, t.uniforms = {}, t._uniforms = {}, t._translucentFunctions = [];
|
|
45112
45112
|
let n;
|
|
45113
45113
|
const i = xe._materialCache.getMaterial(t.type);
|
|
45114
45114
|
if (_(i)) {
|
|
45115
|
-
const o =
|
|
45115
|
+
const o = Tr(i.fabric, !0);
|
|
45116
45116
|
t._template = Jr(t._template, o, !0), n = i.translucent;
|
|
45117
45117
|
}
|
|
45118
45118
|
bfe(t), vfe(t), Tfe(t), Cfe(t), _(i) || xe._materialCache.addMaterial(t.type, t);
|
|
@@ -45229,7 +45229,7 @@ function xfe(e) {
|
|
|
45229
45229
|
minificationFilter: n._minificationFilter,
|
|
45230
45230
|
magnificationFilter: n._magnificationFilter
|
|
45231
45231
|
});
|
|
45232
|
-
c = new
|
|
45232
|
+
c = new Lr({
|
|
45233
45233
|
context: i,
|
|
45234
45234
|
source: o,
|
|
45235
45235
|
sampler: h
|
|
@@ -45242,7 +45242,7 @@ function xfe(e) {
|
|
|
45242
45242
|
} else _(c) || (n._textures[e] = i.defaultTexture);
|
|
45243
45243
|
return;
|
|
45244
45244
|
}
|
|
45245
|
-
if (o instanceof
|
|
45245
|
+
if (o instanceof Lr && o !== c) {
|
|
45246
45246
|
n._texturePaths[e] = void 0;
|
|
45247
45247
|
const h = n._textures[e];
|
|
45248
45248
|
_(h) && h !== n._defaultTexture && h.destroy(), n._textures[e] = o, l = `${e}Dimensions`, r.hasOwnProperty(l) && (u = r[l], u.x = o._width, u.y = o._height);
|
|
@@ -54822,7 +54822,7 @@ $a.prototype.setBatchedAttribute = function(e, t, n) {
|
|
|
54822
54822
|
};
|
|
54823
54823
|
function Xge(e, t) {
|
|
54824
54824
|
const n = e._textureDimensions;
|
|
54825
|
-
e._texture = new
|
|
54825
|
+
e._texture = new Lr({
|
|
54826
54826
|
context: t,
|
|
54827
54827
|
pixelFormat: xt.RGBA,
|
|
54828
54828
|
pixelDatatype: e._pixelDatatype,
|
|
@@ -56386,10 +56386,10 @@ function bye(e, t) {
|
|
|
56386
56386
|
}
|
|
56387
56387
|
function _ye(e, t, n, i) {
|
|
56388
56388
|
let r = n.getRenderState(), o;
|
|
56389
|
-
i ? (o =
|
|
56389
|
+
i ? (o = Tr(r, !1), o.cull = {
|
|
56390
56390
|
enabled: !0,
|
|
56391
56391
|
face: nh.BACK
|
|
56392
|
-
}, e._frontFaceRS = En.fromCache(o), o.cull.face = nh.FRONT, e._backFaceRS = En.fromCache(o)) : (e._frontFaceRS = En.fromCache(r), e._backFaceRS = e._frontFaceRS), o =
|
|
56392
|
+
}, e._frontFaceRS = En.fromCache(o), o.cull.face = nh.FRONT, e._backFaceRS = En.fromCache(o)) : (e._frontFaceRS = En.fromCache(r), e._backFaceRS = e._frontFaceRS), o = Tr(r, !1), _(e._depthFailAppearance) && (o.depthTest.enabled = !1), _(e._depthFailAppearance) && (r = e._depthFailAppearance.getRenderState(), o = Tr(r, !1), o.depthTest.func = cA.GREATER, i ? (o.cull = {
|
|
56393
56393
|
enabled: !0,
|
|
56394
56394
|
face: nh.BACK
|
|
56395
56395
|
}, e._frontFaceDepthFailRS = En.fromCache(o), o.cull.face = nh.FRONT, e._backFaceDepthFailRS = En.fromCache(o)) : (e._frontFaceDepthFailRS = En.fromCache(o), e._backFaceDepthFailRS = e._frontFaceRS));
|
|
@@ -59635,19 +59635,19 @@ function a1e(e, t, n, i, r, o, s) {
|
|
|
59635
59635
|
), gi = qt.getMinimumMaximumHeights(
|
|
59636
59636
|
Rt,
|
|
59637
59637
|
l
|
|
59638
|
-
), pr = gi.minimumTerrainHeight,
|
|
59639
|
-
Ne += Math.abs(pr), Ne += Math.abs(
|
|
59638
|
+
), pr = gi.minimumTerrainHeight, Gr = gi.maximumTerrainHeight;
|
|
59639
|
+
Ne += Math.abs(pr), Ne += Math.abs(Gr), k5(
|
|
59640
59640
|
rt,
|
|
59641
59641
|
z,
|
|
59642
59642
|
pr,
|
|
59643
|
-
|
|
59643
|
+
Gr,
|
|
59644
59644
|
ti,
|
|
59645
59645
|
ji
|
|
59646
59646
|
), k5(
|
|
59647
59647
|
j,
|
|
59648
59648
|
J,
|
|
59649
59649
|
pr,
|
|
59650
|
-
|
|
59650
|
+
Gr,
|
|
59651
59651
|
ni,
|
|
59652
59652
|
ut
|
|
59653
59653
|
);
|
|
@@ -65372,11 +65372,11 @@ Ot.convert = function(e) {
|
|
|
65372
65372
|
throw new Error("Expected [x, y] or {x, y} point format");
|
|
65373
65373
|
};
|
|
65374
65374
|
var y_e = Object.defineProperty, pa = (e, t) => y_e(e, "name", { value: t, configurable: !0 });
|
|
65375
|
-
function
|
|
65375
|
+
function Fr(e, t) {
|
|
65376
65376
|
let n = "script";
|
|
65377
65377
|
return e === "name" ? n = "script" : e === "name2" ? n = "script2" : e === "name3" && (n = "script3"), [["coalesce", ["get", `pgf:${e}`], ["get", e]], { "text-font": ["case", ["==", ["get", n], "Devanagari"], ["literal", ["Noto Sans Devanagari Regular v1"]], ["literal", [t || "Noto Sans Regular"]]] }];
|
|
65378
65378
|
}
|
|
65379
|
-
pa(
|
|
65379
|
+
pa(Fr, "get_name_block");
|
|
65380
65380
|
function Fs(e, t, n) {
|
|
65381
65381
|
let i = "name";
|
|
65382
65382
|
return n === "name" ? i = "" : n === "name2" ? i = "2" : n === "name3" && (i = "3"), t === "Latin" ? ["has", `script${i}`] : e === "ja" ? ["all", ["!=", ["get", `script${i}`], "Han"], ["!=", ["get", `script${i}`], "Hiragana"], ["!=", ["get", `script${i}`], "Katakana"], ["!=", ["get", `script${i}`], "Mixed-Japanese"]] : ["!=", ["get", `script${i}`], t];
|
|
@@ -65400,19 +65400,19 @@ function rs(e, t, n) {
|
|
|
65400
65400
|
let i = t || OT(e), r;
|
|
65401
65401
|
return i === "Devanagari" ? r = "pgf:" : r = "", ["case", ["all", ["any", ["has", "name"], ["has", "pgf:name"]], ["!", ["any", ["has", "name2"], ["has", "pgf:name2"]]], ["!", ["any", ["has", "name3"], ["has", "pgf:name3"]]]], ["case", Fs(e, i, "name"), ["case", ["any", ["is-supported-script", ["get", "name"]], ["has", "pgf:name"]], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "name:en"]], ss(i), `
|
|
65402
65402
|
`, {}, ["case", ["all", ["!", ["has", `${r}name:${e}`]], ["has", "name:en"], ["!", ["has", "script"]]], "", ["coalesce", ["get", "pgf:name"], ["get", "name"]]], { "text-font": ["case", ["==", ["get", "script"], "Devanagari"], ["literal", ["Noto Sans Devanagari Regular v1"]], ["literal", [n || "Noto Sans Regular"]]] }], ["get", "name:en"]], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name"], ["get", "name"]], ss(i)]], ["all", ["any", ["has", "name"], ["has", "pgf:name"]], ["any", ["has", "name2"], ["has", "pgf:name2"]], ["!", ["any", ["has", "name3"], ["has", "pgf:name3"]]]], ["case", ["all", Fs(e, i, "name"), Fs(e, i, "name2")], ["format", ["get", `${r}name:${e}`], ss(i), `
|
|
65403
|
-
`, {}, ...
|
|
65404
|
-
`, {}, ...
|
|
65405
|
-
`, {}, ...
|
|
65406
|
-
`, {}, ...
|
|
65407
|
-
`, {}, ...
|
|
65408
|
-
`, {}, ...
|
|
65409
|
-
`, {}, ...
|
|
65410
|
-
`, {}, ...
|
|
65411
|
-
`, {}, ...
|
|
65412
|
-
`, {}, ...
|
|
65413
|
-
`, {}, ...
|
|
65414
|
-
`, {}, ...
|
|
65415
|
-
`, {}, ...
|
|
65403
|
+
`, {}, ...Fr("name", n), `
|
|
65404
|
+
`, {}, ...Fr("name2", n)], ["case", Fs(e, i, "name2"), ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name"], ["get", "name"]], ss(i), `
|
|
65405
|
+
`, {}, ...Fr("name2", n)], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name2"], ["get", "name2"]], ss(i), `
|
|
65406
|
+
`, {}, ...Fr("name", n)]]], ["case", ["all", Fs(e, i, "name"), Fs(e, i, "name2"), Fs(e, i, "name3")], ["format", ["get", `${r}name:${e}`], ss(i), `
|
|
65407
|
+
`, {}, ...Fr("name", n), `
|
|
65408
|
+
`, {}, ...Fr("name2", n), `
|
|
65409
|
+
`, {}, ...Fr("name3", n)], ["case", ["!", Fs(e, i, "name")], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name"], ["get", "name"]], ss(i), `
|
|
65410
|
+
`, {}, ...Fr("name2", n), `
|
|
65411
|
+
`, {}, ...Fr("name3", n)], ["!", Fs(e, i, "name2")], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name2"], ["get", "name2"]], ss(i), `
|
|
65412
|
+
`, {}, ...Fr("name", n), `
|
|
65413
|
+
`, {}, ...Fr("name3", n)], ["format", ["coalesce", ["get", `${r}name:${e}`], ["get", "pgf:name3"], ["get", "name3"]], ss(i), `
|
|
65414
|
+
`, {}, ...Fr("name", n), `
|
|
65415
|
+
`, {}, ...Fr("name2", n)]]]];
|
|
65416
65416
|
}
|
|
65417
65417
|
pa(rs, "get_multiline_name");
|
|
65418
65418
|
var b_e = [{ lang: "ar", full_name: "Arabic", script: "Arabic" }, { lang: "cs", full_name: "Czech", script: "Latin" }, { lang: "bg", full_name: "Bulgarian", script: "Cyrillic" }, { lang: "da", full_name: "Danish", script: "Latin" }, { lang: "de", full_name: "German", script: "Latin" }, { lang: "el", full_name: "Greek", script: "Greek" }, { lang: "en", full_name: "English", script: "Latin" }, { lang: "es", full_name: "Spanish", script: "Latin" }, { lang: "et", full_name: "Estonian", script: "Latin" }, { lang: "fa", full_name: "Persian", script: "Arabic" }, { lang: "fi", full_name: "Finnish", script: "Latin" }, { lang: "fr", full_name: "French", script: "Latin" }, { lang: "ga", full_name: "Irish", script: "Latin" }, { lang: "he", full_name: "Hebrew", script: "Hebrew" }, { lang: "hi", full_name: "Hindi", script: "Devanagari" }, { lang: "hr", full_name: "Croatian", script: "Latin" }, { lang: "hu", full_name: "Hungarian", script: "Latin" }, { lang: "id", full_name: "Indonesian", script: "Latin" }, { lang: "it", full_name: "Italian", script: "Latin" }, { lang: "ja", full_name: "Japanese", script: "" }, { lang: "ko", full_name: "Korean", script: "Hangul" }, { lang: "lt", full_name: "Lithuanian", script: "Latin" }, { lang: "lv", full_name: "Latvian", script: "Latin" }, { lang: "ne", full_name: "Nepali", script: "Devanagari" }, { lang: "nl", full_name: "Dutch", script: "Latin" }, { lang: "no", full_name: "Norwegian", script: "Latin" }, { lang: "mr", full_name: "Marathi", script: "Devanagari" }, { lang: "mt", full_name: "Maltese", script: "Latin" }, { lang: "pl", full_name: "Polish", script: "Latin" }, { lang: "pt", full_name: "Portuguese", script: "Latin" }, { lang: "ro", full_name: "Romanian", script: "Latin" }, { lang: "ru", full_name: "Russian", script: "Cyrillic" }, { lang: "sk", full_name: "Slovak", script: "Latin" }, { lang: "sl", full_name: "Slovenian", script: "Latin" }, { lang: "sv", full_name: "Swedish", script: "Latin" }, { lang: "tr", full_name: "Turkish", script: "Latin" }, { lang: "uk", full_name: "Ukrainian", script: "Cyrillic" }, { lang: "ur", full_name: "Urdu", script: "Arabic" }, { lang: "vi", full_name: "Vietnamese", script: "Latin" }, { lang: "zh-Hans", full_name: "Chinese (Simplified)", script: "Han" }, { lang: "zh-Hant", full_name: "Chinese (Traditional)", script: "Han" }];
|
|
@@ -66915,7 +66915,7 @@ function Nve(e) {
|
|
|
66915
66915
|
// space utilization
|
|
66916
66916
|
};
|
|
66917
66917
|
}
|
|
66918
|
-
var Xve = Object.defineProperty,
|
|
66918
|
+
var Xve = Object.defineProperty, Cr = Math.pow, _e = (e, t) => Xve(e, "name", { value: t, configurable: !0 }), Fo = (e, t, n) => new Promise((i, r) => {
|
|
66919
66919
|
var o = (c) => {
|
|
66920
66920
|
try {
|
|
66921
66921
|
a(n.next(c));
|
|
@@ -66995,8 +66995,8 @@ _e(yz, "ArrayAttr");
|
|
|
66995
66995
|
var Zve = yz, kve = _e((e, t, n) => {
|
|
66996
66996
|
let i = [], r, o, s, a = 0, c = 0, l = 0, u = 0, h = 0, d = 0, f = 0, p = 0, m = 0, y = 0, g = 0, v = 0;
|
|
66997
66997
|
if (e.length < 2) return [];
|
|
66998
|
-
if (e.length === 2) return l = Math.sqrt(
|
|
66999
|
-
for (u = Math.sqrt(
|
|
66998
|
+
if (e.length === 2) return l = Math.sqrt(Cr(e[1].x - e[0].x, 2) + Cr(e[1].y - e[0].y, 2)), [{ length: l, beginIndex: 0, beginDistance: 0, endIndex: 2, endDistance: l }];
|
|
66999
|
+
for (u = Math.sqrt(Cr(e[1].x - e[0].x, 2) + Cr(e[1].y - e[0].y, 2)), a = 1, c = e.length - 1; a < c; a++) r = e[a - 1], o = e[a], s = e[a + 1], d = o.x - r.x, f = o.y - r.y, p = s.x - o.x, m = s.y - o.y, h = Math.sqrt(p * p + m * m), l += u, y = Math.acos((d * p + f * m) / (u * h)), (y > t || l - v > n) && (i.push({ length: l - v, beginDistance: v, beginIndex: g, endIndex: a + 1, endDistance: l }), g = a, v = l), u = h;
|
|
67000
67000
|
return a - g > 0 && i.push({ length: l - v + h, beginIndex: g, beginDistance: v, endIndex: a + 1, endDistance: l + h }), i;
|
|
67001
67001
|
}, "linelabel");
|
|
67002
67002
|
function bz(e, t, n, i) {
|
|
@@ -67012,7 +67012,7 @@ function bz(e, t, n, i) {
|
|
|
67012
67012
|
}
|
|
67013
67013
|
_e(bz, "simpleLabel");
|
|
67014
67014
|
function _z(e, t, n, i) {
|
|
67015
|
-
let r = t.x - e.x, o = t.y - e.y, s = Math.sqrt(
|
|
67015
|
+
let r = t.x - e.x, o = t.y - e.y, s = Math.sqrt(Cr(t.x - e.x, 2) + Cr(t.y - e.y, 2)), a = [];
|
|
67016
67016
|
for (let c = 0; c < n + i; c += 2 * i) {
|
|
67017
67017
|
let l = c * 1 / s;
|
|
67018
67018
|
a.push({ x: e.x + l * r, y: e.y + l * o });
|
|
@@ -67266,7 +67266,7 @@ function Gz(e, t, n) {
|
|
|
67266
67266
|
_e(Gz, "interpolate");
|
|
67267
67267
|
function Oz(e, t, n, i) {
|
|
67268
67268
|
let r = i[t + 1][0] - i[t][0], o = e - i[t][0];
|
|
67269
|
-
return r === 0 ? 0 : n === 1 ? o / r : (
|
|
67269
|
+
return r === 0 ? 0 : n === 1 ? o / r : (Cr(n, o) - 1) / (Cr(n, r) - 1);
|
|
67270
67270
|
}
|
|
67271
67271
|
_e(Oz, "computeInterpolationFactor");
|
|
67272
67272
|
function as(e, t) {
|
|
@@ -67540,7 +67540,7 @@ var i2e = Uz, r2e = ((e) => (e[e.Above = 1] = "Above", e[e.Center = 2] = "Center
|
|
|
67540
67540
|
}
|
|
67541
67541
|
};
|
|
67542
67542
|
_e(Dz, "LineLabelSymbolizer");
|
|
67543
|
-
var yv = Dz,
|
|
67543
|
+
var yv = Dz, Xr = _e((e, t) => {
|
|
67544
67544
|
let n = e[t];
|
|
67545
67545
|
return typeof n == "string" ? n : "";
|
|
67546
67546
|
}, "getString"), fM = _e((e, t) => {
|
|
@@ -67549,31 +67549,31 @@ var yv = Dz, Nr = _e((e, t) => {
|
|
|
67549
67549
|
}, "getNumber"), Bz = _e((e) => [{ dataLayer: "earth", symbolizer: new ai({ fill: e.earth }) }, ...e.landcover ? [{ dataLayer: "landcover", symbolizer: new ai({ fill: _e((t, n) => {
|
|
67550
67550
|
let i = e.landcover;
|
|
67551
67551
|
if (!i || !n) return "";
|
|
67552
|
-
let r =
|
|
67552
|
+
let r = Xr(n.props, "kind");
|
|
67553
67553
|
return r === "grassland" ? i.grassland : r === "barren" ? i.barren : r === "urban_area" ? i.urban_area : r === "farmland" ? i.farmland : r === "glacier" ? i.glacier : r === "scrub" ? i.scrub : i.forest;
|
|
67554
67554
|
}, "fill"), opacity: _e((t, n) => t === 8 ? 0.5 : 1, "opacity") }) }] : [], { dataLayer: "landuse", symbolizer: new ai({ fill: _e((t, n) => dv(e.park_a, e.park_b, Math.min(Math.max(t / 12, 12), 0)), "fill") }), filter: _e((t, n) => {
|
|
67555
|
-
let i =
|
|
67555
|
+
let i = Xr(n.props, "kind");
|
|
67556
67556
|
return ["allotments", "village_green", "playground"].includes(i);
|
|
67557
67557
|
}, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.park_b, opacity: _e((t, n) => t < 8 ? 0 : t === 8 ? 0.5 : 1, "opacity") }), filter: _e((t, n) => {
|
|
67558
|
-
let i =
|
|
67558
|
+
let i = Xr(n.props, "kind");
|
|
67559
67559
|
return ["national_park", "park", "cemetery", "protected_area", "nature_reserve", "forest", "golf_course"].includes(i);
|
|
67560
67560
|
}, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.hospital }), filter: _e((t, n) => n.props.kind === "hospital", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.industrial }), filter: _e((t, n) => n.props.kind === "industrial", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.school }), filter: _e((t, n) => {
|
|
67561
|
-
let i =
|
|
67561
|
+
let i = Xr(n.props, "kind");
|
|
67562
67562
|
return ["school", "university", "college"].includes(i);
|
|
67563
67563
|
}, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.beach }), filter: _e((t, n) => n.props.kind === "beach", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.zoo }), filter: _e((t, n) => n.props.kind === "zoo", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.zoo }), filter: _e((t, n) => {
|
|
67564
|
-
let i =
|
|
67564
|
+
let i = Xr(n.props, "kind");
|
|
67565
67565
|
return ["military", "naval_base", "airfield"].includes(i);
|
|
67566
67566
|
}, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: _e((t, n) => dv(e.wood_a, e.wood_b, Math.min(Math.max(t / 12, 12), 0)), "fill"), opacity: _e((t, n) => t < 8 ? 0 : t === 8 ? 0.5 : 1, "opacity") }), filter: _e((t, n) => {
|
|
67567
|
-
let i =
|
|
67567
|
+
let i = Xr(n.props, "kind");
|
|
67568
67568
|
return ["wood", "nature_reserve", "forest"].includes(i);
|
|
67569
67569
|
}, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: _e((t, n) => dv(e.scrub_a, e.scrub_b, Math.min(Math.max(t / 12, 12), 0)), "fill") }), filter: _e((t, n) => {
|
|
67570
|
-
let i =
|
|
67570
|
+
let i = Xr(n.props, "kind");
|
|
67571
67571
|
return ["scrub", "grassland", "grass"].includes(i);
|
|
67572
67572
|
}, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.scrub_b }), filter: _e((t, n) => {
|
|
67573
|
-
let i =
|
|
67573
|
+
let i = Xr(n.props, "kind");
|
|
67574
67574
|
return ["scrub", "grassland", "grass"].includes(i);
|
|
67575
67575
|
}, "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.glacier }), filter: _e((t, n) => n.props.kind === "glacier", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.sand, opacity: _e((t, n) => t < 8 ? 0 : t === 8 ? 0.5 : 1, "opacity") }), filter: _e((t, n) => n.props.kind === "sand", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.aerodrome }), filter: _e((t, n) => n.props.kind === "aerodrome", "filter") }, { dataLayer: "water", symbolizer: new ai({ fill: e.water }), filter: _e((t, n) => n.geomType === 3, "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.runway, width: _e((t, n) => as(1.6, [[11, 0], [13, 4], [19, 30]])(t), "width") }), filter: _e((t, n) => n.props.kind_detail === "runway", "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.runway, width: _e((t, n) => as(1.6, [[14, 0], [14.5, 1], [16, 6]])(t), "width") }), filter: _e((t, n) => n.props.kind_detail === "taxiway", "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.pier, width: _e((t, n) => as(1.6, [[13, 0], [13.5, 0, 5], [21, 16]])(t), "width") }), filter: _e((t, n) => n.props.kind === "path" && n.props.kind_detail === "pier", "filter") }, { dataLayer: "water", minzoom: 14, symbolizer: new vo({ color: e.water, width: _e((t, n) => as(1.6, [[9, 0], [9.5, 1], [18, 12]])(t), "width") }), filter: _e((t, n) => n.geomType === 2 && n.props.kind === "river", "filter") }, { dataLayer: "water", minzoom: 14, symbolizer: new vo({ color: e.water, width: 0.5 }), filter: _e((t, n) => n.geomType === 2 && n.props.kind === "stream", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.pedestrian }), filter: _e((t, n) => n.props.kind === "pedestrian", "filter") }, { dataLayer: "landuse", symbolizer: new ai({ fill: e.pier }), filter: _e((t, n) => n.props.kind === "pier", "filter") }, { dataLayer: "buildings", symbolizer: new ai({ fill: e.buildings, opacity: 0.5 }) }, { dataLayer: "roads", symbolizer: new vo({ color: e.major, width: _e((t, n) => as(1.6, [[14, 0], [20, 7]])(t), "width") }), filter: _e((t, n) => {
|
|
67576
|
-
let i =
|
|
67576
|
+
let i = Xr(n.props, "kind");
|
|
67577
67577
|
return ["other", "path"].includes(i);
|
|
67578
67578
|
}, "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.major, width: _e((t, n) => as(1.6, [[13, 0], [18, 8]])(t), "width") }), filter: _e((t, n) => n.props.kind === "minor_road", "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.major, width: _e((t, n) => as(1.6, [[6, 0], [12, 1.6], [15, 3], [18, 13]])(t), "width") }), filter: _e((t, n) => n.props.kind === "major_road", "filter") }, { dataLayer: "roads", symbolizer: new vo({ color: e.major, width: _e((t, n) => as(1.6, [[3, 0], [6, 1.1], [12, 1.6], [15, 5], [18, 15]])(t), "width") }), filter: _e((t, n) => n.props.kind === "highway", "filter") }, { dataLayer: "boundaries", symbolizer: new vo({ color: e.boundaries, width: 1 }), filter: _e((t, n) => {
|
|
67579
67579
|
let i = n.props.kind_detail;
|
|
@@ -67584,19 +67584,19 @@ var yv = Dz, Nr = _e((e, t) => {
|
|
|
67584
67584
|
}, "filter") }], "paintRules"), Yz = _e((e, t) => {
|
|
67585
67585
|
let n = [`name:${t}`, "name"];
|
|
67586
67586
|
return [{ dataLayer: "roads", symbolizer: new yv({ labelProps: n, fill: e.roads_label_minor, font: "400 12px sans-serif", width: 2, stroke: e.roads_label_minor_halo }), minzoom: 16, filter: _e((i, r) => {
|
|
67587
|
-
let o =
|
|
67587
|
+
let o = Xr(r.props, "kind");
|
|
67588
67588
|
return ["minor_road", "other", "path"].includes(o);
|
|
67589
67589
|
}, "filter") }, { dataLayer: "roads", symbolizer: new yv({ labelProps: n, fill: e.roads_label_major, font: "400 12px sans-serif", width: 2, stroke: e.roads_label_major_halo }), minzoom: 12, filter: _e((i, r) => {
|
|
67590
|
-
let o =
|
|
67590
|
+
let o = Xr(r.props, "kind");
|
|
67591
67591
|
return ["highway", "major_road"].includes(o);
|
|
67592
67592
|
}, "filter") }, { dataLayer: "roads", symbolizer: new yv({ labelProps: n, fill: e.roads_label_major, font: "400 12px sans-serif", width: 2, stroke: e.roads_label_major_halo }), minzoom: 12, filter: _e((i, r) => {
|
|
67593
|
-
let o =
|
|
67593
|
+
let o = Xr(r.props, "kind");
|
|
67594
67594
|
return ["highway", "major_road"].includes(o);
|
|
67595
67595
|
}, "filter") }, { dataLayer: "water", symbolizer: new Qd({ labelProps: n, fill: e.ocean_label, lineHeight: 1.5, letterSpacing: 1, font: _e((i, r) => `400 ${Dw([[3, 10], [10, 12]])(i)}px sans-serif`, "font"), textTransform: "uppercase" }), filter: _e((i, r) => {
|
|
67596
|
-
let o =
|
|
67596
|
+
let o = Xr(r.props, "kind");
|
|
67597
67597
|
return r.geomType === 1 && ["ocean", "bay", "strait", "fjord"].includes(o);
|
|
67598
67598
|
}, "filter") }, { dataLayer: "water", symbolizer: new Qd({ labelProps: n, fill: e.ocean_label, lineHeight: 1.5, letterSpacing: 1, font: _e((i, r) => `400 ${Dw([[3, 10], [6, 12], [10, 12]])(i)}px sans-serif`, "font") }), filter: _e((i, r) => {
|
|
67599
|
-
let o =
|
|
67599
|
+
let o = Xr(r.props, "kind");
|
|
67600
67600
|
return r.geomType === 1 && ["sea", "lake", "water"].includes(o);
|
|
67601
67601
|
}, "filter") }, { dataLayer: "places", symbolizer: new Qd({ labelProps: _e((i, r) => i < 6 ? [`ref:${t}`, "ref"] : n, "labelProps"), fill: e.state_label, stroke: e.state_label_halo, width: 1, lineHeight: 1.5, font: _e((i, r) => "400 12px sans-serif", "font"), textTransform: "uppercase" }), filter: _e((i, r) => r.props.kind === "region", "filter") }, { dataLayer: "places", symbolizer: new Qd({ labelProps: n, fill: e.country_label, lineHeight: 1.5, font: _e((i, r) => "600 12px sans-serif", "font"), textTransform: "uppercase" }), filter: _e((i, r) => r.props.kind === "country", "filter") }, { dataLayer: "places", minzoom: 9, symbolizer: new Qd({ labelProps: n, fill: e.city_label, lineHeight: 1.5, font: _e((i, r) => {
|
|
67602
67602
|
if (!r) return "400 12px sans-serif";
|
|
@@ -67624,7 +67624,7 @@ var yv = Dz, Nr = _e((e, t) => {
|
|
|
67624
67624
|
this.tileCache = t, this.maxDataLevel = n, this.levelDiff = i;
|
|
67625
67625
|
}
|
|
67626
67626
|
dataTilesForBounds(t, n) {
|
|
67627
|
-
let i =
|
|
67627
|
+
let i = Cr(2, t) / Cr(2, Math.ceil(t)), r = [], o = 1, s = this.tileCache.tileSize;
|
|
67628
67628
|
if (t < this.levelDiff) o = 1 / (1 << this.levelDiff - t) * i, r.push({ dataTile: { z: 0, x: 0, y: 0 }, origin: new Ot(0, 0), scale: o, dim: s * o });
|
|
67629
67629
|
else if (t <= this.levelDiff + this.maxDataLevel) {
|
|
67630
67630
|
let a = 1 << this.levelDiff, c = 256 * i, l = Math.ceil(t) - this.levelDiff, u = Math.floor(n.minX / a / c), h = Math.floor(n.minY / a / c), d = Math.floor(n.maxX / a / c), f = Math.floor(n.maxY / a / c);
|
|
@@ -67765,7 +67765,7 @@ var o2e = jz, Kz = _e((e) => {
|
|
|
67765
67765
|
let a = s.split(":");
|
|
67766
67766
|
if (a[3] === n[3]) {
|
|
67767
67767
|
o++;
|
|
67768
|
-
let c = Math.sqrt(
|
|
67768
|
+
let c = Math.sqrt(Cr(+a[0] - +n[0], 2) + Cr(+a[1] - +n[1], 2));
|
|
67769
67769
|
c > r && (r = c, i = s);
|
|
67770
67770
|
}
|
|
67771
67771
|
i && o > this.maxLabeledTiles && this.pruneKey(i);
|
|
@@ -67903,9 +67903,9 @@ var $p = 6378137, mM = 85.0511287798, Ao = $p * Math.PI, eN = _e((e) => {
|
|
|
67903
67903
|
return { lat: (2 * Math.atan(Math.exp(e.y / $p)) - Math.PI / 2) * t, lng: e.x * t / $p };
|
|
67904
67904
|
}, "unproject"), l2e = _e((e, t) => (n) => {
|
|
67905
67905
|
let i = eN(n);
|
|
67906
|
-
return new Ot((i.x + Ao) / (Ao * 2), 1 - (i.y + Ao) / (Ao * 2)).mult(
|
|
67906
|
+
return new Ot((i.x + Ao) / (Ao * 2), 1 - (i.y + Ao) / (Ao * 2)).mult(Cr(2, t) * 256).sub(e);
|
|
67907
67907
|
}, "instancedProject"), u2e = _e((e, t) => (n) => {
|
|
67908
|
-
let i = new Ot(n.x, n.y).add(e).div(
|
|
67908
|
+
let i = new Ot(n.x, n.y).add(e).div(Cr(2, t) * 256), r = new Ot(i.x * (Ao * 2) - Ao, (1 - i.y) * (Ao * 2) - Ao);
|
|
67909
67909
|
return c2e(r);
|
|
67910
67910
|
}, "instancedUnproject"), gM = _e((e, t) => {
|
|
67911
67911
|
let n = t * (360 / e);
|
|
@@ -67920,7 +67920,7 @@ var $p = 6378137, mM = 85.0511287798, Ao = $p * Math.PI, eN = _e((e) => {
|
|
|
67920
67920
|
}
|
|
67921
67921
|
drawContext(t, n, i, r, o) {
|
|
67922
67922
|
return Fo(this, null, function* () {
|
|
67923
|
-
let s = eN(r), a = new Ot((s.x + Ao) / (Ao * 2), 1 - (s.y + Ao) / (Ao * 2)).clone().mult(
|
|
67923
|
+
let s = eN(r), a = new Ot((s.x + Ao) / (Ao * 2), 1 - (s.y + Ao) / (Ao * 2)).clone().mult(Cr(2, o) * 256).sub(new Ot(n / 2, i / 2)), c = { minX: a.x, minY: a.y, maxX: a.x + n, maxY: a.y + i }, l = [];
|
|
67924
67924
|
for (let [m, y] of this.views) {
|
|
67925
67925
|
let g = y.getBbox(o, c);
|
|
67926
67926
|
l.push({ key: m, promise: g });
|
|
@@ -68282,47 +68282,49 @@ function _2e({
|
|
|
68282
68282
|
customProvider: n,
|
|
68283
68283
|
onTilesChange: i
|
|
68284
68284
|
}) {
|
|
68285
|
-
const { imageryLayerCollection: r, scene: o } = si(), { providers:
|
|
68286
|
-
tiles:
|
|
68285
|
+
const { imageryLayerCollection: r, scene: o } = si(), s = he(() => [], []), a = e ?? s, c = de(a), l = he(() => (Sr(c.current, a) || (c.current = a), c.current), [a]), { providers: u } = v2e({
|
|
68286
|
+
tiles: l,
|
|
68287
68287
|
cesiumIonAccessToken: t,
|
|
68288
68288
|
customProvider: n,
|
|
68289
68289
|
presets: Uu
|
|
68290
68290
|
});
|
|
68291
68291
|
return Me(() => {
|
|
68292
68292
|
if (!r || !o) return;
|
|
68293
|
-
let
|
|
68294
|
-
const
|
|
68295
|
-
|
|
68296
|
-
|
|
68297
|
-
|
|
68298
|
-
if (
|
|
68299
|
-
const
|
|
68300
|
-
|
|
68293
|
+
let h = !1;
|
|
68294
|
+
const d = [], f = new Array(l?.length || 0).fill(
|
|
68295
|
+
null
|
|
68296
|
+
), p = () => {
|
|
68297
|
+
h || o.isDestroyed() || (f.forEach((m, y) => {
|
|
68298
|
+
if (!m) return;
|
|
68299
|
+
const g = r.indexOf(m);
|
|
68300
|
+
if (g === -1) return;
|
|
68301
|
+
const v = f.slice(0, y).filter((S) => S !== null).length;
|
|
68302
|
+
g !== v && (r.remove(m, !1), r.add(m, v));
|
|
68301
68303
|
}), o.requestRender());
|
|
68302
68304
|
};
|
|
68303
|
-
return
|
|
68304
|
-
const
|
|
68305
|
-
if (!
|
|
68306
|
-
const
|
|
68307
|
-
if (!
|
|
68308
|
-
const
|
|
68309
|
-
minimumTerrainLevel:
|
|
68310
|
-
maximumTerrainLevel:
|
|
68311
|
-
alpha:
|
|
68312
|
-
colorToAlpha:
|
|
68313
|
-
colorToAlphaThreshold:
|
|
68314
|
-
magnificationFilter:
|
|
68315
|
-
minificationFilter:
|
|
68305
|
+
return l?.forEach(({ id: m, zoomLevel: y, opacity: g, heatmap: v }, S) => {
|
|
68306
|
+
const E = u[m]?.[3];
|
|
68307
|
+
if (!E) return;
|
|
68308
|
+
const C = (M) => {
|
|
68309
|
+
if (!M || h || o.isDestroyed()) return;
|
|
68310
|
+
const G = new Fb(M, {
|
|
68311
|
+
minimumTerrainLevel: y?.[0],
|
|
68312
|
+
maximumTerrainLevel: y?.[1],
|
|
68313
|
+
alpha: g,
|
|
68314
|
+
colorToAlpha: v ? rn.WHITE : void 0,
|
|
68315
|
+
colorToAlphaThreshold: v ? 1 : void 0,
|
|
68316
|
+
magnificationFilter: v ? jW.LINEAR : void 0,
|
|
68317
|
+
minificationFilter: v ? HW.NEAREST : void 0
|
|
68316
68318
|
});
|
|
68317
|
-
r.add(
|
|
68319
|
+
r.add(G), f[S] = G, d.push(G), p();
|
|
68318
68320
|
};
|
|
68319
|
-
|
|
68321
|
+
E instanceof Promise ? E.then(C).catch((M) => console.error("Failed to load imagery provider:", M)) : C(E);
|
|
68320
68322
|
}), o.requestRender(), i?.(), () => {
|
|
68321
|
-
|
|
68322
|
-
for (const
|
|
68323
|
-
!o.isDestroyed() && r.contains(
|
|
68323
|
+
h = !0;
|
|
68324
|
+
for (const m of d)
|
|
68325
|
+
!o.isDestroyed() && r.contains(m) && r.remove(m);
|
|
68324
68326
|
};
|
|
68325
|
-
}, [
|
|
68327
|
+
}, [u, l, r, o, i]), null;
|
|
68326
68328
|
}
|
|
68327
68329
|
function v2e({
|
|
68328
68330
|
tiles: e = [],
|
|
@@ -68350,12 +68352,12 @@ function v2e({
|
|
|
68350
68352
|
}) : i.open_street_map(g);
|
|
68351
68353
|
},
|
|
68352
68354
|
[i]
|
|
68353
|
-
), o =
|
|
68355
|
+
), o = de(t), s = de(n), a = e.map((p) => p.id).join(","), c = de(a), l = de({}), u = he(
|
|
68354
68356
|
() => e.map((p) => {
|
|
68355
68357
|
if (p.id && p.zoomLevel) return { [p.id]: p.zoomLevel };
|
|
68356
68358
|
}),
|
|
68357
68359
|
[e]
|
|
68358
|
-
), h =
|
|
68360
|
+
), h = de(u), { providers: d, updated: f } = he(() => {
|
|
68359
68361
|
const p = o.current !== t, m = s.current !== n, y = Object.keys(l.current), g = e.map((C) => C.id).filter((C) => C && !y.includes(C)), v = [
|
|
68360
68362
|
...Object.entries(l.current),
|
|
68361
68363
|
...g.map((C) => [C, void 0])
|
|
@@ -68389,7 +68391,7 @@ function v2e({
|
|
|
68389
68391
|
).filter(
|
|
68390
68392
|
(C) => !!C?.[1][3]
|
|
68391
68393
|
)
|
|
68392
|
-
), E = !!g.length || !!p || !!m || !
|
|
68394
|
+
), E = !!g.length || !!p || !!m || !Sr(c.current, a) || !Sr(h.current, u) || v.some(
|
|
68393
68395
|
(C) => C.tile && (C.prevType !== C.tile.type || C.prevUrl !== C.tile.url || C.prevIonAssetId !== C.tile.cesiumIonAssetId)
|
|
68394
68396
|
);
|
|
68395
68397
|
return c.current = a, h.current = u, o.current = t, s.current = n, { providers: S, updated: E };
|
|
@@ -68399,7 +68401,7 @@ function v2e({
|
|
|
68399
68401
|
const iN = (e, t, n) => {
|
|
68400
68402
|
const [i, r] = ot(
|
|
68401
68403
|
e ? "entered" : n && n.mountOnEnter ? "unmounted" : "exited"
|
|
68402
|
-
), o =
|
|
68404
|
+
), o = de(), s = de(), a = se(() => {
|
|
68403
68405
|
r(
|
|
68404
68406
|
e ? "entered" : n && n.unmountOnExit ? "unmounted" : "exited"
|
|
68405
68407
|
), s.current = void 0;
|
|
@@ -68712,8 +68714,8 @@ function E2e(e) {
|
|
|
68712
68714
|
return T2e[e];
|
|
68713
68715
|
}
|
|
68714
68716
|
function rN(e, t) {
|
|
68715
|
-
const { viewer: n } = si(), i = n?.scene, r =
|
|
68716
|
-
r.current = t,
|
|
68717
|
+
const { viewer: n } = si(), i = n?.scene, r = de(t);
|
|
68718
|
+
r.current = t, Ur(() => i?.[e].addEventListener((o, s) => {
|
|
68717
68719
|
try {
|
|
68718
68720
|
r.current(o, s);
|
|
68719
68721
|
} catch (a) {
|
|
@@ -69663,7 +69665,7 @@ const UT = Fi(
|
|
|
69663
69665
|
// https://maps.gsi.go.jp/help/pdf/vector/optbv_attribute.pdf
|
|
69664
69666
|
(t.level < 16 || t.level === 16 && v.props.vt_flag17 !== 2 || t.level === 17 && v.props.vr_flag17 !== 0)
|
|
69665
69667
|
);
|
|
69666
|
-
}, [l, t]), f =
|
|
69668
|
+
}, [l, t]), f = de(void 0), p = c?.scene, m = se(() => {
|
|
69667
69669
|
const g = f.current;
|
|
69668
69670
|
g != null && (g.forEach(([v, S]) => {
|
|
69669
69671
|
const E = rwe(
|
|
@@ -69678,7 +69680,7 @@ const UT = Fi(
|
|
|
69678
69680
|
);
|
|
69679
69681
|
E != null ? (S.position = E, S.show = !0) : S.show = !1;
|
|
69680
69682
|
}), p?.requestRender());
|
|
69681
|
-
}, [e, t, i, u, h, p]), y =
|
|
69683
|
+
}, [e, t, i, u, h, p]), y = de(m);
|
|
69682
69684
|
return y.current = m, Me(() => {
|
|
69683
69685
|
if (!p || !o)
|
|
69684
69686
|
return;
|
|
@@ -69733,7 +69735,7 @@ function owe(e, t) {
|
|
|
69733
69735
|
}
|
|
69734
69736
|
}
|
|
69735
69737
|
function lN(e) {
|
|
69736
|
-
const [t, n] = ot(), i =
|
|
69738
|
+
const [t, n] = ot(), i = de(void 0);
|
|
69737
69739
|
return i.current == null && (i.current = e.create()), Me(() => {
|
|
69738
69740
|
i.current == null && (i.current = e.create(), n(i.current));
|
|
69739
69741
|
const r = i.current, o = owe(e, r);
|
|
@@ -69854,11 +69856,11 @@ const lwe = ({ imageryProvider: e, imageriesAtom: t, style: n, labelCollection:
|
|
|
69854
69856
|
const p = cwe(f, i);
|
|
69855
69857
|
a(p);
|
|
69856
69858
|
});
|
|
69857
|
-
const { labelCollection: c, scene: l } = si(), u =
|
|
69859
|
+
const { labelCollection: c, scene: l } = si(), u = de(!1), h = he(() => c ?? (l ? new rO({ scene: l }) : void 0), [l, c]);
|
|
69858
69860
|
Me(() => {
|
|
69859
69861
|
!c && l && !u.current && (l.primitives.add(h), u.current = !0);
|
|
69860
69862
|
}, [c, h, l]);
|
|
69861
|
-
const d =
|
|
69863
|
+
const d = de(0);
|
|
69862
69864
|
return $l((f) => {
|
|
69863
69865
|
h && d.current !== h._labelsToUpdate.length && (f.requestRender(), d.current = h._labelsToUpdate.length);
|
|
69864
69866
|
}), Me(() => () => {
|
|
@@ -69898,7 +69900,7 @@ const lwe = ({ imageryProvider: e, imageriesAtom: t, style: n, labelCollection:
|
|
|
69898
69900
|
},
|
|
69899
69901
|
t.id
|
|
69900
69902
|
) : null) }),
|
|
69901
|
-
(e, t) =>
|
|
69903
|
+
(e, t) => Sr(e.tileLabels, t.tileLabels)
|
|
69902
69904
|
);
|
|
69903
69905
|
uN.displayName = "LabelImageryLayers";
|
|
69904
69906
|
function hwe({ onMount: e, onUnmount: t }) {
|
|
@@ -70692,7 +70694,7 @@ function Iwe({
|
|
|
70692
70694
|
...s
|
|
70693
70695
|
}, a) {
|
|
70694
70696
|
const [c, l] = ot(null);
|
|
70695
|
-
|
|
70697
|
+
Ur(() => {
|
|
70696
70698
|
c?.cesiumElement && Ko(c.cesiumElement, {
|
|
70697
70699
|
layerId: e || s.id,
|
|
70698
70700
|
featureId: t,
|
|
@@ -70796,7 +70798,7 @@ const Mwe = {
|
|
|
70796
70798
|
const v = new pe(), S = new pe(), E = Zn.fromTranslationRotationScale(o);
|
|
70797
70799
|
return Zn.multiplyByPoint(E, n.start, v), Zn.multiplyByPoint(E, n.end, S), [v, S];
|
|
70798
70800
|
}, !1)
|
|
70799
|
-
), d =
|
|
70801
|
+
), d = de(!1), [f] = ot(
|
|
70800
70802
|
() => new eU(
|
|
70801
70803
|
new Bi(
|
|
70802
70804
|
() => d.current ? s ?? r : r,
|
|
@@ -71010,7 +71012,7 @@ const Sv = (e, t, n) => {
|
|
|
71010
71012
|
},
|
|
71011
71013
|
attributes: {
|
|
71012
71014
|
type: "table",
|
|
71013
|
-
value: !(e instanceof
|
|
71015
|
+
value: !(e instanceof Wr) && "properties" in e && e.properties && typeof e.properties == "object" ? OM(e.properties) : e instanceof Wr && e.properties ? OM(e.properties.getValue(t)) : []
|
|
71014
71016
|
}
|
|
71015
71017
|
};
|
|
71016
71018
|
return n ? i[n] : i.attributes ?? i.description;
|
|
@@ -71054,8 +71056,8 @@ const wh = (e, t) => {
|
|
|
71054
71056
|
}
|
|
71055
71057
|
];
|
|
71056
71058
|
}
|
|
71057
|
-
if (t instanceof
|
|
71058
|
-
const n = t instanceof
|
|
71059
|
+
if (t instanceof Wr || "id" in t && t.id instanceof Wr) {
|
|
71060
|
+
const n = t instanceof Wr ? t : t.id, i = Lt(n);
|
|
71059
71061
|
return [
|
|
71060
71062
|
i?.layerId,
|
|
71061
71063
|
i?.computedFeature ?? {
|
|
@@ -71144,7 +71146,7 @@ const kwe = ({
|
|
|
71144
71146
|
t,
|
|
71145
71147
|
v
|
|
71146
71148
|
)
|
|
71147
|
-
), M =
|
|
71149
|
+
), M = de(!1), G = se(() => {
|
|
71148
71150
|
M.current || !v && r && (M.current = !0, h4(r.scene, C.translation).then((j) => {
|
|
71149
71151
|
E(j ?? 0), M.current = !1;
|
|
71150
71152
|
}));
|
|
@@ -71190,12 +71192,12 @@ const kwe = ({
|
|
|
71190
71192
|
axisLineColor: ri(y) ?? P.outlineColor
|
|
71191
71193
|
}),
|
|
71192
71194
|
[f, p, y, P, m]
|
|
71193
|
-
), X =
|
|
71195
|
+
), X = de(void 0), I = se(
|
|
71194
71196
|
(j, { index: J }) => {
|
|
71195
71197
|
r && (eh(r, !1), X.current = J);
|
|
71196
71198
|
},
|
|
71197
71199
|
[r]
|
|
71198
|
-
), x =
|
|
71200
|
+
), x = de(void 0), w = se(
|
|
71199
71201
|
(j, { position: J, oppositePosition: ie, pointLocal: Ee, index: ve, layerId: Ne }) => {
|
|
71200
71202
|
if (X.current !== ve || !J || !ie || !Ee || !r)
|
|
71201
71203
|
return;
|
|
@@ -71273,12 +71275,12 @@ const kwe = ({
|
|
|
71273
71275
|
[C, r, v, o, i]
|
|
71274
71276
|
), R = se(() => {
|
|
71275
71277
|
r && (X.current = void 0, x.current = void 0, eh(r, !0));
|
|
71276
|
-
}, [r]), N =
|
|
71278
|
+
}, [r]), N = de(void 0), k = se(
|
|
71277
71279
|
(j, { index: J }) => {
|
|
71278
71280
|
r && (N.current = J, eh(r, !1));
|
|
71279
71281
|
},
|
|
71280
71282
|
[r]
|
|
71281
|
-
), D =
|
|
71283
|
+
), D = de(void 0), B = se(
|
|
71282
71284
|
(j, { index: J, layerId: ie }) => {
|
|
71283
71285
|
if (N.current !== J)
|
|
71284
71286
|
return;
|
|
@@ -71367,7 +71369,7 @@ const kwe = ({
|
|
|
71367
71369
|
!1
|
|
71368
71370
|
)
|
|
71369
71371
|
};
|
|
71370
|
-
}), y =
|
|
71372
|
+
}), y = de(!1), [g] = ot(
|
|
71371
71373
|
() => new Bi(
|
|
71372
71374
|
() => y.current ? o : r,
|
|
71373
71375
|
!1
|
|
@@ -71383,7 +71385,7 @@ const kwe = ({
|
|
|
71383
71385
|
), [E] = ot(() => new Bi(() => Oa.IDENTITY, !1)), C = he(
|
|
71384
71386
|
() => new lO({ color: s, dashLength: 8 }),
|
|
71385
71387
|
[s]
|
|
71386
|
-
), M =
|
|
71388
|
+
), M = de(!1), G = se(
|
|
71387
71389
|
(X) => {
|
|
71388
71390
|
if (!p)
|
|
71389
71391
|
return;
|
|
@@ -71570,7 +71572,7 @@ const kwe = ({
|
|
|
71570
71572
|
return Zwe(r.scale, h, d), d;
|
|
71571
71573
|
}, !1),
|
|
71572
71574
|
new Bi(() => r.rotation, !1)
|
|
71573
|
-
], [r, e]), l =
|
|
71575
|
+
], [r, e]), l = de(!1), [u] = ot(
|
|
71574
71576
|
() => new Bi(
|
|
71575
71577
|
() => l.current ? i ?? n : n,
|
|
71576
71578
|
!1
|
|
@@ -71966,7 +71968,7 @@ function ixe({ isVisible: e, property: t, geometry: n, layer: i, feature: r }) {
|
|
|
71966
71968
|
zoom: l = 1,
|
|
71967
71969
|
aspectRatio: u = 3 / 2,
|
|
71968
71970
|
length: h = 200
|
|
71969
|
-
} = t || {}, { requestRender: d } = pi(), f =
|
|
71971
|
+
} = t || {}, { requestRender: d } = pi(), f = de(null), { translate: p, rotate: m } = i?.transition ?? {}, y = he(
|
|
71970
71972
|
() => p ? pe.fromDegrees(...p) : void 0,
|
|
71971
71973
|
[p]
|
|
71972
71974
|
), g = he(
|
|
@@ -71996,7 +71998,7 @@ function ixe({ isVisible: e, property: t, geometry: n, layer: i, feature: r }) {
|
|
|
71996
71998
|
);
|
|
71997
71999
|
return Me(() => {
|
|
71998
72000
|
!f.current || f.current.cesiumElement?.isDestroyed() || d?.();
|
|
71999
|
-
}),
|
|
72001
|
+
}), Ur(() => {
|
|
72000
72002
|
!f.current || f.current.cesiumElement?.isDestroyed() || Ko(f.current.cesiumElement, {
|
|
72001
72003
|
layerId: i?.id,
|
|
72002
72004
|
featureId: r?.id
|
|
@@ -74810,7 +74812,7 @@ const qN = Fi(
|
|
|
74810
74812
|
cropBound: a,
|
|
74811
74813
|
...c
|
|
74812
74814
|
}, l) => {
|
|
74813
|
-
const { scene: u } = si(), h = u?.groundPrimitives, d =
|
|
74815
|
+
const { scene: u } = si(), h = u?.groundPrimitives, d = de(void 0), f = ws(
|
|
74814
74816
|
() => VEe({
|
|
74815
74817
|
image: i.image,
|
|
74816
74818
|
width: i.width,
|
|
@@ -74842,7 +74844,7 @@ const qN = Fi(
|
|
|
74842
74844
|
return h?.add(y), d.current = y, () => {
|
|
74843
74845
|
h?.isDestroyed() || h?.remove(y), d.current = void 0;
|
|
74844
74846
|
};
|
|
74845
|
-
}, [m, h, f]),
|
|
74847
|
+
}, [m, h, f]), Ur(() => {
|
|
74846
74848
|
!d.current || d.current?.isDestroyed() || Ko(d.current, {
|
|
74847
74849
|
layerId: e?.id,
|
|
74848
74850
|
featureId: t?.id,
|
|
@@ -74911,7 +74913,7 @@ const FEe = Fi(function({ property: t, isVisible: n, layer: i, feature: r }) {
|
|
|
74911
74913
|
N?.direction || pe.ONE,
|
|
74912
74914
|
N?.up || pe.ONE
|
|
74913
74915
|
).computeVisibility(E) !== sU.OUTSIDE;
|
|
74914
|
-
}, V =
|
|
74916
|
+
}, V = de(null);
|
|
74915
74917
|
Me(() => {
|
|
74916
74918
|
V.current && V.current.sendToBack();
|
|
74917
74919
|
}, []), $l(() => {
|
|
@@ -75005,7 +75007,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
75005
75007
|
} = e ?? {}, { useTransition: j, translate: J } = r?.transition ?? {}, ie = he(
|
|
75006
75008
|
() => J ? pe.fromDegrees(...J) : void 0,
|
|
75007
75009
|
[J]
|
|
75008
|
-
), Ee =
|
|
75010
|
+
), Ee = de(ie);
|
|
75009
75011
|
Ee.current = ie;
|
|
75010
75012
|
const ve = he(
|
|
75011
75013
|
() => j ? new Bi(() => Ee.current, !1) : void 0,
|
|
@@ -75035,7 +75037,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
75035
75037
|
v.includes("left") || v.includes("right") ? Be * (v.includes("left") ? -1 : 1) : 0,
|
|
75036
75038
|
v.includes("top") || v.includes("bottom") ? Ct * (v.includes("top") ? -1 : 1) : 0
|
|
75037
75039
|
);
|
|
75038
|
-
}, [me, tt, u, rt, v, z]), Q = he(() => rn.WHITE.withAlpha(0.4), []), Y =
|
|
75040
|
+
}, [me, tt, u, rt, v, z]), Q = he(() => rn.WHITE.withAlpha(0.4), []), Y = de(null), $ = Lt(Y.current?.cesiumElement), ce = he(
|
|
75039
75041
|
() => Cc(
|
|
75040
75042
|
$?.isFeatureSelected && typeof r?.marker?.selectedFeatureColor == "string" ? r.marker?.selectedFeatureColor : I
|
|
75041
75043
|
),
|
|
@@ -75286,7 +75288,7 @@ function WEe({
|
|
|
75286
75288
|
i?.scene?.imageBasedLighting?.specularEnvironmentMaps,
|
|
75287
75289
|
i?.scene?.imageBasedLighting?.sphericalHarmonicCoefficients,
|
|
75288
75290
|
i?.scene?.imageBasedLighting?.intensity
|
|
75289
|
-
]), { viewer: J } = si(), { requestRender: ie } = pi(), Ee =
|
|
75291
|
+
]), { viewer: J } = si(), { requestRender: ie } = pi(), Ee = de(!1);
|
|
75290
75292
|
return rN("postRender", () => {
|
|
75291
75293
|
const ve = J?.scene.primitives, Ne = ve?.length ?? 0;
|
|
75292
75294
|
if (!(!Ee.current || !j))
|
|
@@ -75351,11 +75353,11 @@ const YEe = /* @__PURE__ */ id(BEe), tX = 2, nX = 2, iX = 0.5, rX = 0.5, QT = 1,
|
|
|
75351
75353
|
[QT * 1e3, qT * 1e3]
|
|
75352
75354
|
];
|
|
75353
75355
|
function jEe({ isSelected: e, camera: t }) {
|
|
75354
|
-
const { selectionReason: n, flyTo: i, getCamera: r } = pi(), [o, s, a] = UU(HEe), c =
|
|
75356
|
+
const { selectionReason: n, flyTo: i, getCamera: r } = pi(), [o, s, a] = UU(HEe), c = de(t);
|
|
75355
75357
|
c.current = t;
|
|
75356
|
-
const l =
|
|
75358
|
+
const l = de(!1);
|
|
75357
75359
|
l.current = n?.reason === "storytelling";
|
|
75358
|
-
const u =
|
|
75360
|
+
const u = de(void 0);
|
|
75359
75361
|
Me(() => {
|
|
75360
75362
|
if ((s ?? 0) > 1 && o === 1 && u.current)
|
|
75361
75363
|
i?.(u.current, {
|
|
@@ -75532,7 +75534,7 @@ function oX(e, t, n) {
|
|
|
75532
75534
|
);
|
|
75533
75535
|
}
|
|
75534
75536
|
function sX(e, t) {
|
|
75535
|
-
const n =
|
|
75537
|
+
const n = de(void 0), i = de(
|
|
75536
75538
|
n.current
|
|
75537
75539
|
);
|
|
75538
75540
|
return (i.current === void 0 || !t(i.current, e)) && (n.current = e), i.current = e, n.current;
|
|
@@ -75578,7 +75580,7 @@ function rCe({
|
|
|
75578
75580
|
)
|
|
75579
75581
|
) : void 0,
|
|
75580
75582
|
[a ?? []],
|
|
75581
|
-
|
|
75583
|
+
Sr
|
|
75582
75584
|
), M = he(
|
|
75583
75585
|
() => a && h && !s ? a.flatMap((w) => [
|
|
75584
75586
|
// bottom
|
|
@@ -75597,7 +75599,7 @@ function rCe({
|
|
|
75597
75599
|
), G = he(
|
|
75598
75600
|
() => h ? mh(f) : void 0,
|
|
75599
75601
|
[h, f]
|
|
75600
|
-
), V =
|
|
75602
|
+
), V = de(null), P = Lt(V.current?.cesiumElement), A = he(
|
|
75601
75603
|
() => u ? P?.isFeatureSelected && typeof r?.polygon?.selectedFeatureColor == "string" ? mh(r.polygon?.selectedFeatureColor) : mh(d) : void 0,
|
|
75602
75604
|
[u, d, r?.id, o?.id, P?.isFeatureSelected]
|
|
75603
75605
|
), X = he(() => ol(o?.interval), [o?.interval]), I = he(
|
|
@@ -75670,8 +75672,8 @@ function sCe({ id: e, isVisible: t, property: n, geometry: i, layer: r, feature:
|
|
|
75670
75672
|
} = n ?? {}, m = $T(
|
|
75671
75673
|
() => a?.map((C) => pe.fromDegrees(C[0], C[1], C[2])),
|
|
75672
75674
|
[a ?? []],
|
|
75673
|
-
|
|
75674
|
-
), y =
|
|
75675
|
+
Sr
|
|
75676
|
+
), y = de(null), g = Lt(y.current?.cesiumElement), v = he(
|
|
75675
75677
|
() => g?.isFeatureSelected && typeof r?.polyline?.selectedFeatureColor == "string" ? mh(r.polyline?.selectedFeatureColor) : mh(u),
|
|
75676
75678
|
[u, r, g?.isFeatureSelected]
|
|
75677
75679
|
), S = he(() => ol(o?.interval), [o?.interval]), E = he(
|
|
@@ -77248,30 +77250,30 @@ Je.prototype.equalsEpsilon = function(e, t, n) {
|
|
|
77248
77250
|
Je.prototype.toString = function() {
|
|
77249
77251
|
return `(${this.x}, ${this.y})`;
|
|
77250
77252
|
};
|
|
77251
|
-
function
|
|
77253
|
+
function fe(e, t, n) {
|
|
77252
77254
|
this.x = pt(e, 0), this.y = pt(t, 0), this.z = pt(n, 0);
|
|
77253
77255
|
}
|
|
77254
|
-
|
|
77255
|
-
oe.typeOf.object("spherical", e), Ge(t) || (t = new
|
|
77256
|
+
fe.fromSpherical = function(e, t) {
|
|
77257
|
+
oe.typeOf.object("spherical", e), Ge(t) || (t = new fe());
|
|
77256
77258
|
const n = e.clock, i = e.cone, r = pt(e.magnitude, 1), o = r * Math.sin(i);
|
|
77257
77259
|
return t.x = o * Math.cos(n), t.y = o * Math.sin(n), t.z = r * Math.cos(i), t;
|
|
77258
77260
|
};
|
|
77259
|
-
|
|
77260
|
-
return Ge(i) ? (i.x = e, i.y = t, i.z = n, i) : new
|
|
77261
|
+
fe.fromElements = function(e, t, n, i) {
|
|
77262
|
+
return Ge(i) ? (i.x = e, i.y = t, i.z = n, i) : new fe(e, t, n);
|
|
77261
77263
|
};
|
|
77262
|
-
|
|
77264
|
+
fe.clone = function(e, t) {
|
|
77263
77265
|
if (Ge(e))
|
|
77264
|
-
return Ge(t) ? (t.x = e.x, t.y = e.y, t.z = e.z, t) : new
|
|
77266
|
+
return Ge(t) ? (t.x = e.x, t.y = e.y, t.z = e.z, t) : new fe(e.x, e.y, e.z);
|
|
77265
77267
|
};
|
|
77266
|
-
|
|
77267
|
-
|
|
77268
|
-
|
|
77268
|
+
fe.fromCartesian4 = fe.clone;
|
|
77269
|
+
fe.packedLength = 3;
|
|
77270
|
+
fe.pack = function(e, t, n) {
|
|
77269
77271
|
return oe.typeOf.object("value", e), oe.defined("array", t), n = pt(n, 0), t[n++] = e.x, t[n++] = e.y, t[n] = e.z, t;
|
|
77270
77272
|
};
|
|
77271
|
-
|
|
77272
|
-
return oe.defined("array", e), t = pt(t, 0), Ge(n) || (n = new
|
|
77273
|
+
fe.unpack = function(e, t, n) {
|
|
77274
|
+
return oe.defined("array", e), t = pt(t, 0), Ge(n) || (n = new fe()), n.x = e[t++], n.y = e[t++], n.z = e[t], n;
|
|
77273
77275
|
};
|
|
77274
|
-
|
|
77276
|
+
fe.packArray = function(e, t) {
|
|
77275
77277
|
oe.defined("array", e);
|
|
77276
77278
|
const n = e.length, i = n * 3;
|
|
77277
77279
|
if (!Ge(t))
|
|
@@ -77284,94 +77286,94 @@ de.packArray = function(e, t) {
|
|
|
77284
77286
|
t.length !== i && (t.length = i);
|
|
77285
77287
|
}
|
|
77286
77288
|
for (let r = 0; r < n; ++r)
|
|
77287
|
-
|
|
77289
|
+
fe.pack(e[r], t, r * 3);
|
|
77288
77290
|
return t;
|
|
77289
77291
|
};
|
|
77290
|
-
|
|
77292
|
+
fe.unpackArray = function(e, t) {
|
|
77291
77293
|
if (oe.defined("array", e), oe.typeOf.number.greaterThanOrEquals("array.length", e.length, 3), e.length % 3 !== 0)
|
|
77292
77294
|
throw new lt("array length must be a multiple of 3.");
|
|
77293
77295
|
const n = e.length;
|
|
77294
77296
|
Ge(t) ? t.length = n / 3 : t = new Array(n / 3);
|
|
77295
77297
|
for (let i = 0; i < n; i += 3) {
|
|
77296
77298
|
const r = i / 3;
|
|
77297
|
-
t[r] =
|
|
77299
|
+
t[r] = fe.unpack(e, i, t[r]);
|
|
77298
77300
|
}
|
|
77299
77301
|
return t;
|
|
77300
77302
|
};
|
|
77301
|
-
|
|
77302
|
-
|
|
77303
|
+
fe.fromArray = fe.unpack;
|
|
77304
|
+
fe.maximumComponent = function(e) {
|
|
77303
77305
|
return oe.typeOf.object("cartesian", e), Math.max(e.x, e.y, e.z);
|
|
77304
77306
|
};
|
|
77305
|
-
|
|
77307
|
+
fe.minimumComponent = function(e) {
|
|
77306
77308
|
return oe.typeOf.object("cartesian", e), Math.min(e.x, e.y, e.z);
|
|
77307
77309
|
};
|
|
77308
|
-
|
|
77310
|
+
fe.minimumByComponent = function(e, t, n) {
|
|
77309
77311
|
return oe.typeOf.object("first", e), oe.typeOf.object("second", t), oe.typeOf.object("result", n), n.x = Math.min(e.x, t.x), n.y = Math.min(e.y, t.y), n.z = Math.min(e.z, t.z), n;
|
|
77310
77312
|
};
|
|
77311
|
-
|
|
77313
|
+
fe.maximumByComponent = function(e, t, n) {
|
|
77312
77314
|
return oe.typeOf.object("first", e), oe.typeOf.object("second", t), oe.typeOf.object("result", n), n.x = Math.max(e.x, t.x), n.y = Math.max(e.y, t.y), n.z = Math.max(e.z, t.z), n;
|
|
77313
77315
|
};
|
|
77314
|
-
|
|
77316
|
+
fe.clamp = function(e, t, n, i) {
|
|
77315
77317
|
oe.typeOf.object("value", e), oe.typeOf.object("min", t), oe.typeOf.object("max", n), oe.typeOf.object("result", i);
|
|
77316
77318
|
const r = st.clamp(e.x, t.x, n.x), o = st.clamp(e.y, t.y, n.y), s = st.clamp(e.z, t.z, n.z);
|
|
77317
77319
|
return i.x = r, i.y = o, i.z = s, i;
|
|
77318
77320
|
};
|
|
77319
|
-
|
|
77321
|
+
fe.magnitudeSquared = function(e) {
|
|
77320
77322
|
return oe.typeOf.object("cartesian", e), e.x * e.x + e.y * e.y + e.z * e.z;
|
|
77321
77323
|
};
|
|
77322
|
-
|
|
77323
|
-
return Math.sqrt(
|
|
77324
|
+
fe.magnitude = function(e) {
|
|
77325
|
+
return Math.sqrt(fe.magnitudeSquared(e));
|
|
77324
77326
|
};
|
|
77325
|
-
const mb = new
|
|
77326
|
-
|
|
77327
|
-
return oe.typeOf.object("left", e), oe.typeOf.object("right", t),
|
|
77327
|
+
const mb = new fe();
|
|
77328
|
+
fe.distance = function(e, t) {
|
|
77329
|
+
return oe.typeOf.object("left", e), oe.typeOf.object("right", t), fe.subtract(e, t, mb), fe.magnitude(mb);
|
|
77328
77330
|
};
|
|
77329
|
-
|
|
77330
|
-
return oe.typeOf.object("left", e), oe.typeOf.object("right", t),
|
|
77331
|
+
fe.distanceSquared = function(e, t) {
|
|
77332
|
+
return oe.typeOf.object("left", e), oe.typeOf.object("right", t), fe.subtract(e, t, mb), fe.magnitudeSquared(mb);
|
|
77331
77333
|
};
|
|
77332
|
-
|
|
77334
|
+
fe.normalize = function(e, t) {
|
|
77333
77335
|
oe.typeOf.object("cartesian", e), oe.typeOf.object("result", t);
|
|
77334
|
-
const n =
|
|
77336
|
+
const n = fe.magnitude(e);
|
|
77335
77337
|
if (t.x = e.x / n, t.y = e.y / n, t.z = e.z / n, isNaN(t.x) || isNaN(t.y) || isNaN(t.z))
|
|
77336
77338
|
throw new lt("normalized result is not a number");
|
|
77337
77339
|
return t;
|
|
77338
77340
|
};
|
|
77339
|
-
|
|
77341
|
+
fe.dot = function(e, t) {
|
|
77340
77342
|
return oe.typeOf.object("left", e), oe.typeOf.object("right", t), e.x * t.x + e.y * t.y + e.z * t.z;
|
|
77341
77343
|
};
|
|
77342
|
-
|
|
77344
|
+
fe.multiplyComponents = function(e, t, n) {
|
|
77343
77345
|
return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = e.x * t.x, n.y = e.y * t.y, n.z = e.z * t.z, n;
|
|
77344
77346
|
};
|
|
77345
|
-
|
|
77347
|
+
fe.divideComponents = function(e, t, n) {
|
|
77346
77348
|
return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = e.x / t.x, n.y = e.y / t.y, n.z = e.z / t.z, n;
|
|
77347
77349
|
};
|
|
77348
|
-
|
|
77350
|
+
fe.add = function(e, t, n) {
|
|
77349
77351
|
return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = e.x + t.x, n.y = e.y + t.y, n.z = e.z + t.z, n;
|
|
77350
77352
|
};
|
|
77351
|
-
|
|
77353
|
+
fe.subtract = function(e, t, n) {
|
|
77352
77354
|
return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = e.x - t.x, n.y = e.y - t.y, n.z = e.z - t.z, n;
|
|
77353
77355
|
};
|
|
77354
|
-
|
|
77356
|
+
fe.multiplyByScalar = function(e, t, n) {
|
|
77355
77357
|
return oe.typeOf.object("cartesian", e), oe.typeOf.number("scalar", t), oe.typeOf.object("result", n), n.x = e.x * t, n.y = e.y * t, n.z = e.z * t, n;
|
|
77356
77358
|
};
|
|
77357
|
-
|
|
77359
|
+
fe.divideByScalar = function(e, t, n) {
|
|
77358
77360
|
return oe.typeOf.object("cartesian", e), oe.typeOf.number("scalar", t), oe.typeOf.object("result", n), n.x = e.x / t, n.y = e.y / t, n.z = e.z / t, n;
|
|
77359
77361
|
};
|
|
77360
|
-
|
|
77362
|
+
fe.negate = function(e, t) {
|
|
77361
77363
|
return oe.typeOf.object("cartesian", e), oe.typeOf.object("result", t), t.x = -e.x, t.y = -e.y, t.z = -e.z, t;
|
|
77362
77364
|
};
|
|
77363
|
-
|
|
77365
|
+
fe.abs = function(e, t) {
|
|
77364
77366
|
return oe.typeOf.object("cartesian", e), oe.typeOf.object("result", t), t.x = Math.abs(e.x), t.y = Math.abs(e.y), t.z = Math.abs(e.z), t;
|
|
77365
77367
|
};
|
|
77366
|
-
const OL = new
|
|
77367
|
-
|
|
77368
|
-
return oe.typeOf.object("start", e), oe.typeOf.object("end", t), oe.typeOf.number("t", n), oe.typeOf.object("result", i),
|
|
77368
|
+
const OL = new fe();
|
|
77369
|
+
fe.lerp = function(e, t, n, i) {
|
|
77370
|
+
return oe.typeOf.object("start", e), oe.typeOf.object("end", t), oe.typeOf.number("t", n), oe.typeOf.object("result", i), fe.multiplyByScalar(t, n, OL), i = fe.multiplyByScalar(e, 1 - n, i), fe.add(OL, i, i);
|
|
77369
77371
|
};
|
|
77370
|
-
const fg = new
|
|
77371
|
-
|
|
77372
|
-
oe.typeOf.object("left", e), oe.typeOf.object("right", t),
|
|
77373
|
-
const n =
|
|
77374
|
-
|
|
77372
|
+
const fg = new fe(), Lv = new fe();
|
|
77373
|
+
fe.angleBetween = function(e, t) {
|
|
77374
|
+
oe.typeOf.object("left", e), oe.typeOf.object("right", t), fe.normalize(e, fg), fe.normalize(t, Lv);
|
|
77375
|
+
const n = fe.dot(fg, Lv), i = fe.magnitude(
|
|
77376
|
+
fe.cross(
|
|
77375
77377
|
fg,
|
|
77376
77378
|
Lv,
|
|
77377
77379
|
fg
|
|
@@ -77379,24 +77381,24 @@ de.angleBetween = function(e, t) {
|
|
|
77379
77381
|
);
|
|
77380
77382
|
return Math.atan2(i, n);
|
|
77381
77383
|
};
|
|
77382
|
-
const bMe = new
|
|
77383
|
-
|
|
77384
|
+
const bMe = new fe();
|
|
77385
|
+
fe.mostOrthogonalAxis = function(e, t) {
|
|
77384
77386
|
oe.typeOf.object("cartesian", e), oe.typeOf.object("result", t);
|
|
77385
|
-
const n =
|
|
77386
|
-
return
|
|
77387
|
+
const n = fe.normalize(e, bMe);
|
|
77388
|
+
return fe.abs(n, n), n.x <= n.y ? n.x <= n.z ? t = fe.clone(fe.UNIT_X, t) : t = fe.clone(fe.UNIT_Z, t) : n.y <= n.z ? t = fe.clone(fe.UNIT_Y, t) : t = fe.clone(fe.UNIT_Z, t), t;
|
|
77387
77389
|
};
|
|
77388
|
-
|
|
77390
|
+
fe.projectVector = function(e, t, n) {
|
|
77389
77391
|
oe.defined("a", e), oe.defined("b", t), oe.defined("result", n);
|
|
77390
|
-
const i =
|
|
77391
|
-
return
|
|
77392
|
+
const i = fe.dot(e, t) / fe.dot(t, t);
|
|
77393
|
+
return fe.multiplyByScalar(t, i, n);
|
|
77392
77394
|
};
|
|
77393
|
-
|
|
77395
|
+
fe.equals = function(e, t) {
|
|
77394
77396
|
return e === t || Ge(e) && Ge(t) && e.x === t.x && e.y === t.y && e.z === t.z;
|
|
77395
77397
|
};
|
|
77396
|
-
|
|
77398
|
+
fe.equalsArray = function(e, t, n) {
|
|
77397
77399
|
return e.x === t[n] && e.y === t[n + 1] && e.z === t[n + 2];
|
|
77398
77400
|
};
|
|
77399
|
-
|
|
77401
|
+
fe.equalsEpsilon = function(e, t, n, i) {
|
|
77400
77402
|
return e === t || Ge(e) && Ge(t) && st.equalsEpsilon(
|
|
77401
77403
|
e.x,
|
|
77402
77404
|
t.x,
|
|
@@ -77414,31 +77416,31 @@ de.equalsEpsilon = function(e, t, n, i) {
|
|
|
77414
77416
|
i
|
|
77415
77417
|
);
|
|
77416
77418
|
};
|
|
77417
|
-
|
|
77419
|
+
fe.cross = function(e, t, n) {
|
|
77418
77420
|
oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n);
|
|
77419
77421
|
const i = e.x, r = e.y, o = e.z, s = t.x, a = t.y, c = t.z, l = r * c - o * a, u = o * s - i * c, h = i * a - r * s;
|
|
77420
77422
|
return n.x = l, n.y = u, n.z = h, n;
|
|
77421
77423
|
};
|
|
77422
|
-
|
|
77424
|
+
fe.midpoint = function(e, t, n) {
|
|
77423
77425
|
return oe.typeOf.object("left", e), oe.typeOf.object("right", t), oe.typeOf.object("result", n), n.x = (e.x + t.x) * 0.5, n.y = (e.y + t.y) * 0.5, n.z = (e.z + t.z) * 0.5, n;
|
|
77424
77426
|
};
|
|
77425
|
-
|
|
77426
|
-
return oe.typeOf.number("longitude", e), oe.typeOf.number("latitude", t), e = st.toRadians(e), t = st.toRadians(t),
|
|
77427
|
+
fe.fromDegrees = function(e, t, n, i, r) {
|
|
77428
|
+
return oe.typeOf.number("longitude", e), oe.typeOf.number("latitude", t), e = st.toRadians(e), t = st.toRadians(t), fe.fromRadians(e, t, n, i, r);
|
|
77427
77429
|
};
|
|
77428
|
-
let wo = new
|
|
77429
|
-
const _Me = new
|
|
77430
|
+
let wo = new fe(), Fu = new fe();
|
|
77431
|
+
const _Me = new fe(
|
|
77430
77432
|
6378137 * 6378137,
|
|
77431
77433
|
6378137 * 6378137,
|
|
77432
77434
|
6356752314245179e-9 * 6356752314245179e-9
|
|
77433
77435
|
);
|
|
77434
|
-
|
|
77436
|
+
fe.fromRadians = function(e, t, n, i, r) {
|
|
77435
77437
|
oe.typeOf.number("longitude", e), oe.typeOf.number("latitude", t), n = pt(n, 0);
|
|
77436
77438
|
const o = Ge(i) ? i.radiiSquared : _Me, s = Math.cos(t);
|
|
77437
|
-
wo.x = s * Math.cos(e), wo.y = s * Math.sin(e), wo.z = Math.sin(t), wo =
|
|
77438
|
-
const a = Math.sqrt(
|
|
77439
|
-
return Fu =
|
|
77439
|
+
wo.x = s * Math.cos(e), wo.y = s * Math.sin(e), wo.z = Math.sin(t), wo = fe.normalize(wo, wo), fe.multiplyComponents(o, wo, Fu);
|
|
77440
|
+
const a = Math.sqrt(fe.dot(wo, Fu));
|
|
77441
|
+
return Fu = fe.divideByScalar(Fu, a, Fu), wo = fe.multiplyByScalar(wo, n, wo), Ge(r) || (r = new fe()), fe.add(Fu, wo, r);
|
|
77440
77442
|
};
|
|
77441
|
-
|
|
77443
|
+
fe.fromDegreesArray = function(e, t, n) {
|
|
77442
77444
|
if (oe.defined("coordinates", e), e.length < 2 || e.length % 2 !== 0)
|
|
77443
77445
|
throw new lt(
|
|
77444
77446
|
"the number of coordinates must be a multiple of 2 and at least 2"
|
|
@@ -77447,7 +77449,7 @@ de.fromDegreesArray = function(e, t, n) {
|
|
|
77447
77449
|
Ge(n) ? n.length = i / 2 : n = new Array(i / 2);
|
|
77448
77450
|
for (let r = 0; r < i; r += 2) {
|
|
77449
77451
|
const o = e[r], s = e[r + 1], a = r / 2;
|
|
77450
|
-
n[a] =
|
|
77452
|
+
n[a] = fe.fromDegrees(
|
|
77451
77453
|
o,
|
|
77452
77454
|
s,
|
|
77453
77455
|
0,
|
|
@@ -77457,7 +77459,7 @@ de.fromDegreesArray = function(e, t, n) {
|
|
|
77457
77459
|
}
|
|
77458
77460
|
return n;
|
|
77459
77461
|
};
|
|
77460
|
-
|
|
77462
|
+
fe.fromRadiansArray = function(e, t, n) {
|
|
77461
77463
|
if (oe.defined("coordinates", e), e.length < 2 || e.length % 2 !== 0)
|
|
77462
77464
|
throw new lt(
|
|
77463
77465
|
"the number of coordinates must be a multiple of 2 and at least 2"
|
|
@@ -77466,7 +77468,7 @@ de.fromRadiansArray = function(e, t, n) {
|
|
|
77466
77468
|
Ge(n) ? n.length = i / 2 : n = new Array(i / 2);
|
|
77467
77469
|
for (let r = 0; r < i; r += 2) {
|
|
77468
77470
|
const o = e[r], s = e[r + 1], a = r / 2;
|
|
77469
|
-
n[a] =
|
|
77471
|
+
n[a] = fe.fromRadians(
|
|
77470
77472
|
o,
|
|
77471
77473
|
s,
|
|
77472
77474
|
0,
|
|
@@ -77476,7 +77478,7 @@ de.fromRadiansArray = function(e, t, n) {
|
|
|
77476
77478
|
}
|
|
77477
77479
|
return n;
|
|
77478
77480
|
};
|
|
77479
|
-
|
|
77481
|
+
fe.fromDegreesArrayHeights = function(e, t, n) {
|
|
77480
77482
|
if (oe.defined("coordinates", e), e.length < 3 || e.length % 3 !== 0)
|
|
77481
77483
|
throw new lt(
|
|
77482
77484
|
"the number of coordinates must be a multiple of 3 and at least 3"
|
|
@@ -77485,7 +77487,7 @@ de.fromDegreesArrayHeights = function(e, t, n) {
|
|
|
77485
77487
|
Ge(n) ? n.length = i / 3 : n = new Array(i / 3);
|
|
77486
77488
|
for (let r = 0; r < i; r += 3) {
|
|
77487
77489
|
const o = e[r], s = e[r + 1], a = e[r + 2], c = r / 3;
|
|
77488
|
-
n[c] =
|
|
77490
|
+
n[c] = fe.fromDegrees(
|
|
77489
77491
|
o,
|
|
77490
77492
|
s,
|
|
77491
77493
|
a,
|
|
@@ -77495,7 +77497,7 @@ de.fromDegreesArrayHeights = function(e, t, n) {
|
|
|
77495
77497
|
}
|
|
77496
77498
|
return n;
|
|
77497
77499
|
};
|
|
77498
|
-
|
|
77500
|
+
fe.fromRadiansArrayHeights = function(e, t, n) {
|
|
77499
77501
|
if (oe.defined("coordinates", e), e.length < 3 || e.length % 3 !== 0)
|
|
77500
77502
|
throw new lt(
|
|
77501
77503
|
"the number of coordinates must be a multiple of 3 and at least 3"
|
|
@@ -77504,7 +77506,7 @@ de.fromRadiansArrayHeights = function(e, t, n) {
|
|
|
77504
77506
|
Ge(n) ? n.length = i / 3 : n = new Array(i / 3);
|
|
77505
77507
|
for (let r = 0; r < i; r += 3) {
|
|
77506
77508
|
const o = e[r], s = e[r + 1], a = e[r + 2], c = r / 3;
|
|
77507
|
-
n[c] =
|
|
77509
|
+
n[c] = fe.fromRadians(
|
|
77508
77510
|
o,
|
|
77509
77511
|
s,
|
|
77510
77512
|
a,
|
|
@@ -77514,29 +77516,29 @@ de.fromRadiansArrayHeights = function(e, t, n) {
|
|
|
77514
77516
|
}
|
|
77515
77517
|
return n;
|
|
77516
77518
|
};
|
|
77517
|
-
|
|
77518
|
-
|
|
77519
|
-
|
|
77520
|
-
|
|
77521
|
-
|
|
77522
|
-
|
|
77523
|
-
return
|
|
77519
|
+
fe.ZERO = Object.freeze(new fe(0, 0, 0));
|
|
77520
|
+
fe.ONE = Object.freeze(new fe(1, 1, 1));
|
|
77521
|
+
fe.UNIT_X = Object.freeze(new fe(1, 0, 0));
|
|
77522
|
+
fe.UNIT_Y = Object.freeze(new fe(0, 1, 0));
|
|
77523
|
+
fe.UNIT_Z = Object.freeze(new fe(0, 0, 1));
|
|
77524
|
+
fe.prototype.clone = function(e) {
|
|
77525
|
+
return fe.clone(this, e);
|
|
77524
77526
|
};
|
|
77525
|
-
|
|
77526
|
-
return
|
|
77527
|
+
fe.prototype.equals = function(e) {
|
|
77528
|
+
return fe.equals(this, e);
|
|
77527
77529
|
};
|
|
77528
|
-
|
|
77529
|
-
return
|
|
77530
|
+
fe.prototype.equalsEpsilon = function(e, t, n) {
|
|
77531
|
+
return fe.equalsEpsilon(
|
|
77530
77532
|
this,
|
|
77531
77533
|
e,
|
|
77532
77534
|
t,
|
|
77533
77535
|
n
|
|
77534
77536
|
);
|
|
77535
77537
|
};
|
|
77536
|
-
|
|
77538
|
+
fe.prototype.toString = function() {
|
|
77537
77539
|
return `(${this.x}, ${this.y}, ${this.z})`;
|
|
77538
77540
|
};
|
|
77539
|
-
const vMe = new
|
|
77541
|
+
const vMe = new fe(), wMe = new fe();
|
|
77540
77542
|
function RX(e, t, n, i, r) {
|
|
77541
77543
|
if (!Ge(e))
|
|
77542
77544
|
throw new lt("cartesian is required.");
|
|
@@ -77546,22 +77548,22 @@ function RX(e, t, n, i, r) {
|
|
|
77546
77548
|
throw new lt("oneOverRadiiSquared is required.");
|
|
77547
77549
|
if (!Ge(i))
|
|
77548
77550
|
throw new lt("centerToleranceSquared is required.");
|
|
77549
|
-
const o = e.x, s = e.y, a = e.z, c = t.x, l = t.y, u = t.z, h = o * o * c * c, d = s * s * l * l, f = a * a * u * u, p = h + d + f, m = Math.sqrt(1 / p), y =
|
|
77551
|
+
const o = e.x, s = e.y, a = e.z, c = t.x, l = t.y, u = t.z, h = o * o * c * c, d = s * s * l * l, f = a * a * u * u, p = h + d + f, m = Math.sqrt(1 / p), y = fe.multiplyByScalar(
|
|
77550
77552
|
e,
|
|
77551
77553
|
m,
|
|
77552
77554
|
vMe
|
|
77553
77555
|
);
|
|
77554
77556
|
if (p < i)
|
|
77555
|
-
return isFinite(m) ?
|
|
77557
|
+
return isFinite(m) ? fe.clone(y, r) : void 0;
|
|
77556
77558
|
const g = n.x, v = n.y, S = n.z, E = wMe;
|
|
77557
77559
|
E.x = y.x * g * 2, E.y = y.y * v * 2, E.z = y.z * S * 2;
|
|
77558
|
-
let C = (1 - m) *
|
|
77560
|
+
let C = (1 - m) * fe.magnitude(e) / (0.5 * fe.magnitude(E)), M = 0, G, V, P, A, X, I, x, w, R, N, k;
|
|
77559
77561
|
do {
|
|
77560
77562
|
C -= M, P = 1 / (1 + C * g), A = 1 / (1 + C * v), X = 1 / (1 + C * S), I = P * P, x = A * A, w = X * X, R = I * P, N = x * A, k = w * X, G = h * I + d * x + f * w - 1, V = h * R * g + d * N * v + f * k * S;
|
|
77561
77563
|
const D = -2 * V;
|
|
77562
77564
|
M = G / D;
|
|
77563
77565
|
} while (Math.abs(G) > st.EPSILON12);
|
|
77564
|
-
return Ge(r) ? (r.x = o * P, r.y = s * A, r.z = a * X, r) : new
|
|
77566
|
+
return Ge(r) ? (r.x = o * P, r.y = s * A, r.z = a * X, r) : new fe(
|
|
77565
77567
|
o * P,
|
|
77566
77568
|
s * A,
|
|
77567
77569
|
a * X
|
|
@@ -77576,11 +77578,11 @@ Tn.fromRadians = function(e, t, n, i) {
|
|
|
77576
77578
|
Tn.fromDegrees = function(e, t, n, i) {
|
|
77577
77579
|
return oe.typeOf.number("longitude", e), oe.typeOf.number("latitude", t), e = st.toRadians(e), t = st.toRadians(t), Tn.fromRadians(e, t, n, i);
|
|
77578
77580
|
};
|
|
77579
|
-
const xMe = new
|
|
77581
|
+
const xMe = new fe(), SMe = new fe(), TMe = new fe(), EMe = new fe(
|
|
77580
77582
|
1 / 6378137,
|
|
77581
77583
|
1 / 6378137,
|
|
77582
77584
|
1 / 6356752314245179e-9
|
|
77583
|
-
), CMe = new
|
|
77585
|
+
), CMe = new fe(
|
|
77584
77586
|
1 / (6378137 * 6378137),
|
|
77585
77587
|
1 / (6378137 * 6378137),
|
|
77586
77588
|
1 / (6356752314245179e-9 * 6356752314245179e-9)
|
|
@@ -77595,17 +77597,17 @@ Tn.fromCartesian = function(e, t, n) {
|
|
|
77595
77597
|
);
|
|
77596
77598
|
if (!Ge(s))
|
|
77597
77599
|
return;
|
|
77598
|
-
let a =
|
|
77600
|
+
let a = fe.multiplyComponents(
|
|
77599
77601
|
s,
|
|
77600
77602
|
r,
|
|
77601
77603
|
xMe
|
|
77602
77604
|
);
|
|
77603
|
-
a =
|
|
77604
|
-
const c =
|
|
77605
|
+
a = fe.normalize(a, a);
|
|
77606
|
+
const c = fe.subtract(e, s, TMe), l = Math.atan2(a.y, a.x), u = Math.asin(a.z), h = st.sign(fe.dot(c, e)) * fe.magnitude(c);
|
|
77605
77607
|
return Ge(n) ? (n.longitude = l, n.latitude = u, n.height = h, n) : new Tn(l, u, h);
|
|
77606
77608
|
};
|
|
77607
77609
|
Tn.toCartesian = function(e, t, n) {
|
|
77608
|
-
return oe.defined("cartographic", e),
|
|
77610
|
+
return oe.defined("cartographic", e), fe.fromRadians(
|
|
77609
77611
|
e.longitude,
|
|
77610
77612
|
e.latitude,
|
|
77611
77613
|
e.height,
|
|
@@ -77641,15 +77643,15 @@ Tn.prototype.toString = function() {
|
|
|
77641
77643
|
return `(${this.longitude}, ${this.latitude}, ${this.height})`;
|
|
77642
77644
|
};
|
|
77643
77645
|
function IX(e, t, n, i) {
|
|
77644
|
-
t = pt(t, 0), n = pt(n, 0), i = pt(i, 0), oe.typeOf.number.greaterThanOrEquals("x", t, 0), oe.typeOf.number.greaterThanOrEquals("y", n, 0), oe.typeOf.number.greaterThanOrEquals("z", i, 0), e._radii = new
|
|
77646
|
+
t = pt(t, 0), n = pt(n, 0), i = pt(i, 0), oe.typeOf.number.greaterThanOrEquals("x", t, 0), oe.typeOf.number.greaterThanOrEquals("y", n, 0), oe.typeOf.number.greaterThanOrEquals("z", i, 0), e._radii = new fe(t, n, i), e._radiiSquared = new fe(t * t, n * n, i * i), e._radiiToTheFourth = new fe(
|
|
77645
77647
|
t * t * t * t,
|
|
77646
77648
|
n * n * n * n,
|
|
77647
77649
|
i * i * i * i
|
|
77648
|
-
), e._oneOverRadii = new
|
|
77650
|
+
), e._oneOverRadii = new fe(
|
|
77649
77651
|
t === 0 ? 0 : 1 / t,
|
|
77650
77652
|
n === 0 ? 0 : 1 / n,
|
|
77651
77653
|
i === 0 ? 0 : 1 / i
|
|
77652
|
-
), e._oneOverRadiiSquared = new
|
|
77654
|
+
), e._oneOverRadiiSquared = new fe(
|
|
77653
77655
|
t === 0 ? 0 : 1 / (t * t),
|
|
77654
77656
|
n === 0 ? 0 : 1 / (n * n),
|
|
77655
77657
|
i === 0 ? 0 : 1 / (i * i)
|
|
@@ -77741,7 +77743,7 @@ Bt.clone = function(e, t) {
|
|
|
77741
77743
|
if (!Ge(e))
|
|
77742
77744
|
return;
|
|
77743
77745
|
const n = e._radii;
|
|
77744
|
-
return Ge(t) ? (
|
|
77746
|
+
return Ge(t) ? (fe.clone(n, t._radii), fe.clone(e._radiiSquared, t._radiiSquared), fe.clone(e._radiiToTheFourth, t._radiiToTheFourth), fe.clone(e._oneOverRadii, t._oneOverRadii), fe.clone(e._oneOverRadiiSquared, t._oneOverRadiiSquared), t._minimumRadius = e._minimumRadius, t._maximumRadius = e._maximumRadius, t._centerToleranceSquared = e._centerToleranceSquared, t) : new Bt(n.x, n.y, n.z);
|
|
77745
77747
|
};
|
|
77746
77748
|
Bt.fromCartesian3 = function(e, t) {
|
|
77747
77749
|
return Ge(t) || (t = new Bt()), Ge(e) && IX(t, e.x, e.y, e.z), t;
|
|
@@ -77760,35 +77762,35 @@ Bt.MOON = Object.freeze(
|
|
|
77760
77762
|
Bt.prototype.clone = function(e) {
|
|
77761
77763
|
return Bt.clone(this, e);
|
|
77762
77764
|
};
|
|
77763
|
-
Bt.packedLength =
|
|
77765
|
+
Bt.packedLength = fe.packedLength;
|
|
77764
77766
|
Bt.pack = function(e, t, n) {
|
|
77765
|
-
return oe.typeOf.object("value", e), oe.defined("array", t), n = pt(n, 0),
|
|
77767
|
+
return oe.typeOf.object("value", e), oe.defined("array", t), n = pt(n, 0), fe.pack(e._radii, t, n), t;
|
|
77766
77768
|
};
|
|
77767
77769
|
Bt.unpack = function(e, t, n) {
|
|
77768
77770
|
oe.defined("array", e), t = pt(t, 0);
|
|
77769
|
-
const i =
|
|
77771
|
+
const i = fe.unpack(e, t);
|
|
77770
77772
|
return Bt.fromCartesian3(i, n);
|
|
77771
77773
|
};
|
|
77772
|
-
Bt.prototype.geocentricSurfaceNormal =
|
|
77774
|
+
Bt.prototype.geocentricSurfaceNormal = fe.normalize;
|
|
77773
77775
|
Bt.prototype.geodeticSurfaceNormalCartographic = function(e, t) {
|
|
77774
77776
|
oe.typeOf.object("cartographic", e);
|
|
77775
77777
|
const n = e.longitude, i = e.latitude, r = Math.cos(i), o = r * Math.cos(n), s = r * Math.sin(n), a = Math.sin(i);
|
|
77776
|
-
return Ge(t) || (t = new
|
|
77778
|
+
return Ge(t) || (t = new fe()), t.x = o, t.y = s, t.z = a, fe.normalize(t, t);
|
|
77777
77779
|
};
|
|
77778
77780
|
Bt.prototype.geodeticSurfaceNormal = function(e, t) {
|
|
77779
|
-
if (!
|
|
77780
|
-
return Ge(t) || (t = new
|
|
77781
|
+
if (!fe.equalsEpsilon(e, fe.ZERO, st.EPSILON14))
|
|
77782
|
+
return Ge(t) || (t = new fe()), t = fe.multiplyComponents(
|
|
77781
77783
|
e,
|
|
77782
77784
|
this._oneOverRadiiSquared,
|
|
77783
77785
|
t
|
|
77784
|
-
),
|
|
77786
|
+
), fe.normalize(t, t);
|
|
77785
77787
|
};
|
|
77786
|
-
const IMe = new
|
|
77788
|
+
const IMe = new fe(), MMe = new fe();
|
|
77787
77789
|
Bt.prototype.cartographicToCartesian = function(e, t) {
|
|
77788
77790
|
const n = IMe, i = MMe;
|
|
77789
|
-
this.geodeticSurfaceNormalCartographic(e, n),
|
|
77790
|
-
const r = Math.sqrt(
|
|
77791
|
-
return
|
|
77791
|
+
this.geodeticSurfaceNormalCartographic(e, n), fe.multiplyComponents(this._radiiSquared, n, i);
|
|
77792
|
+
const r = Math.sqrt(fe.dot(n, i));
|
|
77793
|
+
return fe.divideByScalar(i, r, i), fe.multiplyByScalar(n, e.height, n), Ge(t) || (t = new fe()), fe.add(i, n, t);
|
|
77792
77794
|
};
|
|
77793
77795
|
Bt.prototype.cartographicArrayToCartesianArray = function(e, t) {
|
|
77794
77796
|
oe.defined("cartographics", e);
|
|
@@ -77798,12 +77800,12 @@ Bt.prototype.cartographicArrayToCartesianArray = function(e, t) {
|
|
|
77798
77800
|
t[i] = this.cartographicToCartesian(e[i], t[i]);
|
|
77799
77801
|
return t;
|
|
77800
77802
|
};
|
|
77801
|
-
const LMe = new
|
|
77803
|
+
const LMe = new fe(), PMe = new fe(), GMe = new fe();
|
|
77802
77804
|
Bt.prototype.cartesianToCartographic = function(e, t) {
|
|
77803
77805
|
const n = this.scaleToGeodeticSurface(e, PMe);
|
|
77804
77806
|
if (!Ge(n))
|
|
77805
77807
|
return;
|
|
77806
|
-
const i = this.geodeticSurfaceNormal(n, LMe), r =
|
|
77808
|
+
const i = this.geodeticSurfaceNormal(n, LMe), r = fe.subtract(e, n, GMe), o = Math.atan2(i.y, i.x), s = Math.asin(i.z), a = st.sign(fe.dot(r, e)) * fe.magnitude(r);
|
|
77807
77809
|
return Ge(t) ? (t.longitude = o, t.latitude = s, t.height = a, t) : new Tn(o, s, a);
|
|
77808
77810
|
};
|
|
77809
77811
|
Bt.prototype.cartesianArrayToCartographicArray = function(e, t) {
|
|
@@ -77824,20 +77826,20 @@ Bt.prototype.scaleToGeodeticSurface = function(e, t) {
|
|
|
77824
77826
|
);
|
|
77825
77827
|
};
|
|
77826
77828
|
Bt.prototype.scaleToGeocentricSurface = function(e, t) {
|
|
77827
|
-
oe.typeOf.object("cartesian", e), Ge(t) || (t = new
|
|
77829
|
+
oe.typeOf.object("cartesian", e), Ge(t) || (t = new fe());
|
|
77828
77830
|
const n = e.x, i = e.y, r = e.z, o = this._oneOverRadiiSquared, s = 1 / Math.sqrt(
|
|
77829
77831
|
n * n * o.x + i * i * o.y + r * r * o.z
|
|
77830
77832
|
);
|
|
77831
|
-
return
|
|
77833
|
+
return fe.multiplyByScalar(e, s, t);
|
|
77832
77834
|
};
|
|
77833
77835
|
Bt.prototype.transformPositionToScaledSpace = function(e, t) {
|
|
77834
|
-
return Ge(t) || (t = new
|
|
77836
|
+
return Ge(t) || (t = new fe()), fe.multiplyComponents(e, this._oneOverRadii, t);
|
|
77835
77837
|
};
|
|
77836
77838
|
Bt.prototype.transformPositionFromScaledSpace = function(e, t) {
|
|
77837
|
-
return Ge(t) || (t = new
|
|
77839
|
+
return Ge(t) || (t = new fe()), fe.multiplyComponents(e, this._radii, t);
|
|
77838
77840
|
};
|
|
77839
77841
|
Bt.prototype.equals = function(e) {
|
|
77840
|
-
return this === e || Ge(e) &&
|
|
77842
|
+
return this === e || Ge(e) && fe.equals(this._radii, e._radii);
|
|
77841
77843
|
};
|
|
77842
77844
|
Bt.prototype.toString = function() {
|
|
77843
77845
|
return this._radii.toString();
|
|
@@ -77853,7 +77855,7 @@ Bt.prototype.getSurfaceNormalIntersectionWithZAxis = function(e, t, n) {
|
|
|
77853
77855
|
);
|
|
77854
77856
|
oe.typeOf.number.greaterThan("Ellipsoid.radii.z", this._radii.z, 0), t = pt(t, 0);
|
|
77855
77857
|
const i = this._squaredXOverSquaredZ;
|
|
77856
|
-
if (Ge(n) || (n = new
|
|
77858
|
+
if (Ge(n) || (n = new fe()), n.x = 0, n.y = 0, n.z = e.z * (1 - i), !(Math.abs(n.z) >= this._radii.z - t))
|
|
77857
77859
|
return n;
|
|
77858
77860
|
};
|
|
77859
77861
|
const OMe = [
|
|
@@ -78137,7 +78139,7 @@ Br.prototype.project = function(e, t) {
|
|
|
78137
78139
|
const n = this._semimajorAxis, i = e.longitude * n, r = Br.geodeticLatitudeToMercatorAngle(
|
|
78138
78140
|
e.latitude
|
|
78139
78141
|
) * n, o = e.height;
|
|
78140
|
-
return Ge(t) ? (t.x = i, t.y = r, t.z = o, t) : new
|
|
78142
|
+
return Ge(t) ? (t.x = i, t.y = r, t.z = o, t) : new fe(i, r, o);
|
|
78141
78143
|
};
|
|
78142
78144
|
Br.prototype.unproject = function(e, t) {
|
|
78143
78145
|
if (!Ge(e))
|
|
@@ -82340,10 +82342,10 @@ const Pf = class {
|
|
|
82340
82342
|
let zX = Pf;
|
|
82341
82343
|
$f = /* @__PURE__ */ new WeakMap(), // private constructor
|
|
82342
82344
|
At(zX, $f, !1);
|
|
82343
|
-
var Hs, Co, Ns, As, ep, Li, Io, bi, Xn, Mt,
|
|
82345
|
+
var Hs, Co, Ns, As, ep, Li, Io, bi, Xn, Mt, Zr, Mo, xr, ki, Ws, Ni, Xs, Zs, To, Us, Gl, Nr, ty, fx, sh, Sc, bb, Lo, px, NX, Ch, tp, _b, Ta, yc, Ea, bc, ny, Ov, XX, np, vb, Gf, iy, In, Gn, ry, Vv, Bu, Of;
|
|
82344
82346
|
const ZX = class {
|
|
82345
82347
|
constructor(e) {
|
|
82346
|
-
At(this, ty), At(this, px), At(this, Ta), At(this, Ea), At(this, ny), At(this, np), At(this, Gf), At(this, In), At(this, ry), At(this, Bu), At(this, Hs, void 0), At(this, Co, void 0), At(this, Ns, void 0), At(this, As, void 0), At(this, ep, void 0), ct(this, "ttl"), ct(this, "ttlResolution"), ct(this, "ttlAutopurge"), ct(this, "updateAgeOnGet"), ct(this, "updateAgeOnHas"), ct(this, "allowStale"), ct(this, "noDisposeOnSet"), ct(this, "noUpdateTTL"), ct(this, "maxEntrySize"), ct(this, "sizeCalculation"), ct(this, "noDeleteOnFetchRejection"), ct(this, "noDeleteOnStaleGet"), ct(this, "allowStaleOnFetchAbort"), ct(this, "allowStaleOnFetchRejection"), ct(this, "ignoreFetchAbort"), At(this, Li, void 0), At(this, Io, void 0), At(this, bi, void 0), At(this, Xn, void 0), At(this, Mt, void 0), At(this,
|
|
82348
|
+
At(this, ty), At(this, px), At(this, Ta), At(this, Ea), At(this, ny), At(this, np), At(this, Gf), At(this, In), At(this, ry), At(this, Bu), At(this, Hs, void 0), At(this, Co, void 0), At(this, Ns, void 0), At(this, As, void 0), At(this, ep, void 0), ct(this, "ttl"), ct(this, "ttlResolution"), ct(this, "ttlAutopurge"), ct(this, "updateAgeOnGet"), ct(this, "updateAgeOnHas"), ct(this, "allowStale"), ct(this, "noDisposeOnSet"), ct(this, "noUpdateTTL"), ct(this, "maxEntrySize"), ct(this, "sizeCalculation"), ct(this, "noDeleteOnFetchRejection"), ct(this, "noDeleteOnStaleGet"), ct(this, "allowStaleOnFetchAbort"), ct(this, "allowStaleOnFetchRejection"), ct(this, "ignoreFetchAbort"), At(this, Li, void 0), At(this, Io, void 0), At(this, bi, void 0), At(this, Xn, void 0), At(this, Mt, void 0), At(this, Zr, void 0), At(this, Mo, void 0), At(this, xr, void 0), At(this, ki, void 0), At(this, Ws, void 0), At(this, Ni, void 0), At(this, Xs, void 0), At(this, Zs, void 0), At(this, To, void 0), At(this, Us, void 0), At(this, Gl, void 0), At(this, Nr, void 0), At(this, sh, () => {
|
|
82347
82349
|
}), At(this, Sc, () => {
|
|
82348
82350
|
}), At(this, bb, () => {
|
|
82349
82351
|
}), At(this, Lo, () => !1), At(this, Ch, (M) => {
|
|
@@ -82367,7 +82369,7 @@ const ZX = class {
|
|
|
82367
82369
|
}
|
|
82368
82370
|
if (m !== void 0 && typeof m != "function")
|
|
82369
82371
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
82370
|
-
if (Tt(this, ep, m), Tt(this, Gl, !!m), Tt(this, bi, /* @__PURE__ */ new Map()), Tt(this, Xn, new Array(t).fill(void 0)), Tt(this, Mt, new Array(t).fill(void 0)), Tt(this,
|
|
82372
|
+
if (Tt(this, ep, m), Tt(this, Gl, !!m), Tt(this, bi, /* @__PURE__ */ new Map()), Tt(this, Xn, new Array(t).fill(void 0)), Tt(this, Mt, new Array(t).fill(void 0)), Tt(this, Zr, new C(t)), Tt(this, Mo, new C(t)), Tt(this, xr, 0), Tt(this, ki, 0), Tt(this, Ws, zX.create(t)), Tt(this, Li, 0), Tt(this, Io, 0), typeof c == "function" && Tt(this, Ns, c), typeof l == "function" ? (Tt(this, As, l), Tt(this, Ni, [])) : (Tt(this, As, void 0), Tt(this, Ni, void 0)), Tt(this, Us, !!ne(this, Ns)), Tt(this, Nr, !!ne(this, As)), this.noDisposeOnSet = !!u, this.noUpdateTTL = !!h, this.noDeleteOnFetchRejection = !!y, this.allowStaleOnFetchRejection = !!v, this.allowStaleOnFetchAbort = !!S, this.ignoreFetchAbort = !!E, this.maxEntrySize !== 0) {
|
|
82371
82373
|
if (ne(this, Co) !== 0 && !Rc(ne(this, Co)))
|
|
82372
82374
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
82373
82375
|
if (!Rc(this.maxEntrySize))
|
|
@@ -82404,7 +82406,7 @@ const ZX = class {
|
|
|
82404
82406
|
keyMap: ne(e, bi),
|
|
82405
82407
|
keyList: ne(e, Xn),
|
|
82406
82408
|
valList: ne(e, Mt),
|
|
82407
|
-
next: ne(e,
|
|
82409
|
+
next: ne(e, Zr),
|
|
82408
82410
|
prev: ne(e, Mo),
|
|
82409
82411
|
get head() {
|
|
82410
82412
|
return ne(e, xr);
|
|
@@ -82672,7 +82674,7 @@ const ZX = class {
|
|
|
82672
82674
|
return d && (d.set = "miss", d.maxEntrySizeExceeded = !0), this.delete(e), this;
|
|
82673
82675
|
let m = ne(this, Li) === 0 ? void 0 : ne(this, bi).get(e);
|
|
82674
82676
|
if (m === void 0)
|
|
82675
|
-
m = ne(this, Li) === 0 ? ne(this, ki) : ne(this, Ws).length !== 0 ? ne(this, Ws).pop() : ne(this, Li) === ne(this, Hs) ? gt(this, np, vb).call(this, !1) : ne(this, Li), ne(this, Xn)[m] = e, ne(this, Mt)[m] = t, ne(this, bi).set(e, m), ne(this,
|
|
82677
|
+
m = ne(this, Li) === 0 ? ne(this, ki) : ne(this, Ws).length !== 0 ? ne(this, Ws).pop() : ne(this, Li) === ne(this, Hs) ? gt(this, np, vb).call(this, !1) : ne(this, Li), ne(this, Xn)[m] = e, ne(this, Mt)[m] = t, ne(this, bi).set(e, m), ne(this, Zr)[ne(this, ki)] = m, ne(this, Mo)[m] = ne(this, ki), Tt(this, ki, m), nx(this, Li)._++, ne(this, tp).call(this, m, p, d), d && (d.set = "add"), f = !1;
|
|
82676
82678
|
else {
|
|
82677
82679
|
gt(this, Bu, Of).call(this, m);
|
|
82678
82680
|
const y = ne(this, Mt)[m];
|
|
@@ -82680,9 +82682,9 @@ const ZX = class {
|
|
|
82680
82682
|
if (ne(this, Gl) && gt(this, In, Gn).call(this, y)) {
|
|
82681
82683
|
y.__abortController.abort(new Error("replaced"));
|
|
82682
82684
|
const { __staleWhileFetching: g } = y;
|
|
82683
|
-
g !== void 0 && !u && (ne(this, Us) && ((i = ne(this, Ns)) == null || i.call(this, g, e, "set")), ne(this,
|
|
82685
|
+
g !== void 0 && !u && (ne(this, Us) && ((i = ne(this, Ns)) == null || i.call(this, g, e, "set")), ne(this, Nr) && ((r = ne(this, Ni)) == null || r.push([g, e, "set"])));
|
|
82684
82686
|
} else
|
|
82685
|
-
u || (ne(this, Us) && ((o = ne(this, Ns)) == null || o.call(this, y, e, "set")), ne(this,
|
|
82687
|
+
u || (ne(this, Us) && ((o = ne(this, Ns)) == null || o.call(this, y, e, "set")), ne(this, Nr) && ((s = ne(this, Ni)) == null || s.push([y, e, "set"])));
|
|
82686
82688
|
if (ne(this, Ch).call(this, m), ne(this, tp).call(this, m, p, d), ne(this, Mt)[m] = t, d) {
|
|
82687
82689
|
d.set = "replace";
|
|
82688
82690
|
const g = y && gt(this, In, Gn).call(this, y) ? y.__staleWhileFetching : y;
|
|
@@ -82691,7 +82693,7 @@ const ZX = class {
|
|
|
82691
82693
|
} else
|
|
82692
82694
|
d && (d.set = "update");
|
|
82693
82695
|
}
|
|
82694
|
-
if (c !== 0 && !ne(this, To) && gt(this, ty, fx).call(this), ne(this, To) && (f || ne(this, bb).call(this, m, c, l), d && ne(this, Sc).call(this, d, m)), !u && ne(this,
|
|
82696
|
+
if (c !== 0 && !ne(this, To) && gt(this, ty, fx).call(this), ne(this, To) && (f || ne(this, bb).call(this, m, c, l), d && ne(this, Sc).call(this, d, m)), !u && ne(this, Nr) && ne(this, Ni)) {
|
|
82695
82697
|
const y = ne(this, Ni);
|
|
82696
82698
|
let g;
|
|
82697
82699
|
for (; g = y?.shift(); )
|
|
@@ -82715,7 +82717,7 @@ const ZX = class {
|
|
|
82715
82717
|
return t;
|
|
82716
82718
|
}
|
|
82717
82719
|
} finally {
|
|
82718
|
-
if (ne(this,
|
|
82720
|
+
if (ne(this, Nr) && ne(this, Ni)) {
|
|
82719
82721
|
const t = ne(this, Ni);
|
|
82720
82722
|
let n;
|
|
82721
82723
|
for (; n = t?.shift(); )
|
|
@@ -82851,20 +82853,20 @@ const ZX = class {
|
|
|
82851
82853
|
else {
|
|
82852
82854
|
ne(this, Ch).call(this, s);
|
|
82853
82855
|
const a = ne(this, Mt)[s];
|
|
82854
|
-
if (gt(this, In, Gn).call(this, a) ? a.__abortController.abort(new Error("deleted")) : (ne(this, Us) || ne(this,
|
|
82856
|
+
if (gt(this, In, Gn).call(this, a) ? a.__abortController.abort(new Error("deleted")) : (ne(this, Us) || ne(this, Nr)) && (ne(this, Us) && ((t = ne(this, Ns)) == null || t.call(this, a, e, "delete")), ne(this, Nr) && ((n = ne(this, Ni)) == null || n.push([a, e, "delete"]))), ne(this, bi).delete(e), ne(this, Xn)[s] = void 0, ne(this, Mt)[s] = void 0, s === ne(this, ki))
|
|
82855
82857
|
Tt(this, ki, ne(this, Mo)[s]);
|
|
82856
82858
|
else if (s === ne(this, xr))
|
|
82857
|
-
Tt(this, xr, ne(this,
|
|
82859
|
+
Tt(this, xr, ne(this, Zr)[s]);
|
|
82858
82860
|
else {
|
|
82859
82861
|
const c = ne(this, Mo)[s];
|
|
82860
|
-
ne(this,
|
|
82861
|
-
const l = ne(this,
|
|
82862
|
+
ne(this, Zr)[c] = ne(this, Zr)[s];
|
|
82863
|
+
const l = ne(this, Zr)[s];
|
|
82862
82864
|
ne(this, Mo)[l] = ne(this, Mo)[s];
|
|
82863
82865
|
}
|
|
82864
82866
|
nx(this, Li)._--, ne(this, Ws).push(s);
|
|
82865
82867
|
}
|
|
82866
82868
|
}
|
|
82867
|
-
if (ne(this,
|
|
82869
|
+
if (ne(this, Nr) && (i = ne(this, Ni)) != null && i.length) {
|
|
82868
82870
|
const s = ne(this, Ni);
|
|
82869
82871
|
let a;
|
|
82870
82872
|
for (; a = s?.shift(); )
|
|
@@ -82883,10 +82885,10 @@ const ZX = class {
|
|
|
82883
82885
|
r.__abortController.abort(new Error("deleted"));
|
|
82884
82886
|
else {
|
|
82885
82887
|
const o = ne(this, Xn)[i];
|
|
82886
|
-
ne(this, Us) && ((e = ne(this, Ns)) == null || e.call(this, r, o, "delete")), ne(this,
|
|
82888
|
+
ne(this, Us) && ((e = ne(this, Ns)) == null || e.call(this, r, o, "delete")), ne(this, Nr) && ((t = ne(this, Ni)) == null || t.push([r, o, "delete"]));
|
|
82887
82889
|
}
|
|
82888
82890
|
}
|
|
82889
|
-
if (ne(this, bi).clear(), ne(this, Mt).fill(void 0), ne(this, Xn).fill(void 0), ne(this, To) && ne(this, Zs) && (ne(this, To).fill(0), ne(this, Zs).fill(0)), ne(this, Xs) && ne(this, Xs).fill(0), Tt(this, xr, 0), Tt(this, ki, 0), ne(this, Ws).length = 0, Tt(this, Io, 0), Tt(this, Li, 0), ne(this,
|
|
82891
|
+
if (ne(this, bi).clear(), ne(this, Mt).fill(void 0), ne(this, Xn).fill(void 0), ne(this, To) && ne(this, Zs) && (ne(this, To).fill(0), ne(this, Zs).fill(0)), ne(this, Xs) && ne(this, Xs).fill(0), Tt(this, xr, 0), Tt(this, ki, 0), ne(this, Ws).length = 0, Tt(this, Io, 0), Tt(this, Li, 0), ne(this, Nr) && ne(this, Ni)) {
|
|
82890
82892
|
const i = ne(this, Ni);
|
|
82891
82893
|
let r;
|
|
82892
82894
|
for (; r = i?.shift(); )
|
|
@@ -82895,7 +82897,7 @@ const ZX = class {
|
|
|
82895
82897
|
}
|
|
82896
82898
|
};
|
|
82897
82899
|
let NPe = ZX;
|
|
82898
|
-
XX = Symbol.toStringTag, Hs = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), ep = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(),
|
|
82900
|
+
XX = Symbol.toStringTag, Hs = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), ep = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), Gl = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), ty = /* @__PURE__ */ new WeakSet(), fx = function() {
|
|
82899
82901
|
const e = new ey(ne(this, Hs)), t = new ey(ne(this, Hs));
|
|
82900
82902
|
Tt(this, To, e), Tt(this, Zs, t), Tt(this, bb, (r, o, s = Eh.now()) => {
|
|
82901
82903
|
if (t[r] = o !== 0 ? s : 0, e[r] = o, o !== 0 && this.ttlAutopurge) {
|
|
@@ -82970,13 +82972,13 @@ XX = Symbol.toStringTag, Hs = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ *
|
|
|
82970
82972
|
}, Ea = /* @__PURE__ */ new WeakSet(), bc = function* ({ allowStale: e = this.allowStale } = {}) {
|
|
82971
82973
|
if (ne(this, Li))
|
|
82972
82974
|
for (let t = ne(this, xr); !(!gt(this, ny, Ov).call(this, t) || ((e || !ne(this, Lo).call(this, t)) && (yield t), t === ne(this, ki))); )
|
|
82973
|
-
t = ne(this,
|
|
82975
|
+
t = ne(this, Zr)[t];
|
|
82974
82976
|
}, ny = /* @__PURE__ */ new WeakSet(), Ov = function(e) {
|
|
82975
82977
|
return e !== void 0 && ne(this, bi).get(ne(this, Xn)[e]) === e;
|
|
82976
82978
|
}, np = /* @__PURE__ */ new WeakSet(), vb = function(e) {
|
|
82977
82979
|
var t, n;
|
|
82978
82980
|
const i = ne(this, xr), r = ne(this, Xn)[i], o = ne(this, Mt)[i];
|
|
82979
|
-
return ne(this, Gl) && gt(this, In, Gn).call(this, o) ? o.__abortController.abort(new Error("evicted")) : (ne(this, Us) || ne(this,
|
|
82981
|
+
return ne(this, Gl) && gt(this, In, Gn).call(this, o) ? o.__abortController.abort(new Error("evicted")) : (ne(this, Us) || ne(this, Nr)) && (ne(this, Us) && ((t = ne(this, Ns)) == null || t.call(this, o, r, "evict")), ne(this, Nr) && ((n = ne(this, Ni)) == null || n.push([o, r, "evict"]))), ne(this, Ch).call(this, i), e && (ne(this, Xn)[i] = void 0, ne(this, Mt)[i] = void 0, ne(this, Ws).push(i)), ne(this, Li) === 1 ? (Tt(this, xr, Tt(this, ki, 0)), ne(this, Ws).length = 0) : Tt(this, xr, ne(this, Zr)[i]), ne(this, bi).delete(r), nx(this, Li)._--, i;
|
|
82980
82982
|
}, Gf = /* @__PURE__ */ new WeakSet(), iy = function(e, t, n, i) {
|
|
82981
82983
|
const r = t === void 0 ? void 0 : ne(this, Mt)[t];
|
|
82982
82984
|
if (gt(this, In, Gn).call(this, r))
|
|
@@ -83021,9 +83023,9 @@ XX = Symbol.toStringTag, Hs = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ *
|
|
|
83021
83023
|
const t = e;
|
|
83022
83024
|
return !!t && t instanceof Promise && t.hasOwnProperty("__staleWhileFetching") && t.__abortController instanceof yb;
|
|
83023
83025
|
}, ry = /* @__PURE__ */ new WeakSet(), Vv = function(e, t) {
|
|
83024
|
-
ne(this, Mo)[t] = e, ne(this,
|
|
83026
|
+
ne(this, Mo)[t] = e, ne(this, Zr)[e] = t;
|
|
83025
83027
|
}, Bu = /* @__PURE__ */ new WeakSet(), Of = function(e) {
|
|
83026
|
-
e !== ne(this, ki) && (e === ne(this, xr) ? Tt(this, xr, ne(this,
|
|
83028
|
+
e !== ne(this, ki) && (e === ne(this, xr) ? Tt(this, xr, ne(this, Zr)[e]) : gt(this, ry, Vv).call(this, ne(this, Mo)[e], ne(this, Zr)[e]), gt(this, ry, Vv).call(this, ne(this, ki), e), Tt(this, ki, e));
|
|
83027
83029
|
};
|
|
83028
83030
|
const jL = new NPe({ max: 1e3 }), XPe = (e, t, n) => {
|
|
83029
83031
|
const i = JSON.stringify(e.properties), r = jL.get(i);
|
|
@@ -85631,7 +85633,7 @@ const OOe = Fi(
|
|
|
85631
85633
|
GOe,
|
|
85632
85634
|
(e, t) => (
|
|
85633
85635
|
// In Raster component, we only use polygon, polyline and marker, so we only check polygon in layer props.
|
|
85634
|
-
|
|
85636
|
+
Sr(Bs(e.layer)?.polygon, Bs(t.layer)?.polygon) && Sr(Bs(e.layer)?.polyline, Bs(t.layer)?.polyline) && Sr(Bs(e.layer)?.marker, Bs(t.layer)?.marker) && Sr(eu(e.layer), eu(t.layer)) && Sr(e.property, t.property) && e.isVisible === t.isVisible && e.evalFeature === t.evalFeature && e.onComputedFeatureFetch === t.onComputedFeatureFetch
|
|
85635
85637
|
)
|
|
85636
85638
|
), VOe = {
|
|
85637
85639
|
noFeature: !0
|
|
@@ -85924,7 +85926,7 @@ function NOe({
|
|
|
85924
85926
|
R ?? x?.url,
|
|
85925
85927
|
x?.time?.updateClockOnLoad ?? !0
|
|
85926
85928
|
];
|
|
85927
|
-
}, [t, n]), { viewer: y } = si(), g =
|
|
85929
|
+
}, [t, n]), { viewer: y } = si(), g = de([]), v = de(/* @__PURE__ */ new Set()), S = he(() => !f || f === "auto" ? GS(p) : void 0, [f, p]), E = S ? AOe[S] : f !== "auto" ? f : void 0, C = E ? zOe[E] : void 0, { requestRender: M, timelineManagerRef: G } = pi(), V = se(
|
|
85928
85930
|
(x) => {
|
|
85929
85931
|
if (!y) return;
|
|
85930
85932
|
const w = [], R = [];
|
|
@@ -86017,7 +86019,7 @@ const XOe = {
|
|
|
86017
86019
|
const s = $T(
|
|
86018
86020
|
() => e ? new m2(e.map((c) => pe.fromDegrees(c[0], c[1], c[2] ?? 0))) : void 0,
|
|
86019
86021
|
[e ?? []],
|
|
86020
|
-
|
|
86022
|
+
Sr
|
|
86021
86023
|
), a = he(
|
|
86022
86024
|
() => ({
|
|
86023
86025
|
...Zv,
|
|
@@ -86042,10 +86044,10 @@ const XOe = {
|
|
|
86042
86044
|
}
|
|
86043
86045
|
) });
|
|
86044
86046
|
}, kOe = (e) => {
|
|
86045
|
-
const t =
|
|
86047
|
+
const t = de(e);
|
|
86046
86048
|
return t.current = e, t;
|
|
86047
86049
|
}, uP = (e) => {
|
|
86048
|
-
const t =
|
|
86050
|
+
const t = de(e), n = se(() => t.current, []);
|
|
86049
86051
|
return Me(() => {
|
|
86050
86052
|
t.current = e;
|
|
86051
86053
|
}, [e]), n;
|
|
@@ -86146,7 +86148,7 @@ const DOe = [
|
|
|
86146
86148
|
pitch: u,
|
|
86147
86149
|
roll: h,
|
|
86148
86150
|
disabledSelection: d
|
|
86149
|
-
} = e || {}, { viewer: f } = si(), p =
|
|
86151
|
+
} = e || {}, { viewer: f } = si(), p = de(!1), m = de(!1), y = de(void 0), [g, v] = ot(o);
|
|
86150
86152
|
Me(() => {
|
|
86151
86153
|
n && !g && v(o);
|
|
86152
86154
|
}, [g, o, n]);
|
|
@@ -86209,7 +86211,7 @@ const DOe = [
|
|
|
86209
86211
|
activeBox: !1,
|
|
86210
86212
|
cursor: "default"
|
|
86211
86213
|
})));
|
|
86212
|
-
}, [C, G, f, d]), A =
|
|
86214
|
+
}, [C, G, f, d]), A = de(0), X = se(
|
|
86213
86215
|
async (K) => {
|
|
86214
86216
|
if (!p.current || !f || !d) return;
|
|
86215
86217
|
const F = pe.fromDegrees(g?.[0] || 0, g?.[1] || 0, g?.[2]);
|
|
@@ -86288,7 +86290,7 @@ const DOe = [
|
|
|
86288
86290
|
});
|
|
86289
86291
|
},
|
|
86290
86292
|
[t, C.isEdgeClicked, C.isScalePointClicked, G]
|
|
86291
|
-
), w =
|
|
86293
|
+
), w = de(void 0), R = se(
|
|
86292
86294
|
(K) => {
|
|
86293
86295
|
const F = f?.scene.pick(K.endPosition);
|
|
86294
86296
|
if (w.current !== F) {
|
|
@@ -86366,7 +86368,7 @@ const DOe = [
|
|
|
86366
86368
|
};
|
|
86367
86369
|
};
|
|
86368
86370
|
function kv(e) {
|
|
86369
|
-
if (e && "id" in e && e.id instanceof
|
|
86371
|
+
if (e && "id" in e && e.id instanceof Wr)
|
|
86370
86372
|
return Lt(e.id)?.layerId;
|
|
86371
86373
|
if (e && e instanceof ta)
|
|
86372
86374
|
return Lt(e.tileset)?.layerId;
|
|
@@ -86530,7 +86532,7 @@ const YOe = ({
|
|
|
86530
86532
|
isTilesetReady: u,
|
|
86531
86533
|
useExternalStyle: h
|
|
86532
86534
|
}) => {
|
|
86533
|
-
const d =
|
|
86535
|
+
const d = de([]), f = de(i), p = de(/* @__PURE__ */ new Set()), m = i?.id || e, y = kOe(m), g = se(
|
|
86534
86536
|
async (w) => {
|
|
86535
86537
|
const R = f?.current?.layer;
|
|
86536
86538
|
if (R?.type === "simple" && w?.feature) {
|
|
@@ -86584,7 +86586,7 @@ const YOe = ({
|
|
|
86584
86586
|
l,
|
|
86585
86587
|
y
|
|
86586
86588
|
]
|
|
86587
|
-
), S =
|
|
86589
|
+
), S = de(v);
|
|
86588
86590
|
S.current = v, Me(
|
|
86589
86591
|
() => t.current?.tileLoad.addEventListener(
|
|
86590
86592
|
(w) => S.current(w)
|
|
@@ -86598,7 +86600,7 @@ const YOe = ({
|
|
|
86598
86600
|
});
|
|
86599
86601
|
},
|
|
86600
86602
|
[n, o, l]
|
|
86601
|
-
), C =
|
|
86603
|
+
), C = de(E);
|
|
86602
86604
|
C.current = E, Me(
|
|
86603
86605
|
() => t.current?.tileUnload.addEventListener(
|
|
86604
86606
|
(w) => C.current(w)
|
|
@@ -86607,7 +86609,7 @@ const YOe = ({
|
|
|
86607
86609
|
), Me(() => {
|
|
86608
86610
|
f.current = i;
|
|
86609
86611
|
}, [i]);
|
|
86610
|
-
const M = he(() => Bs(i)?.["3dtiles"], [i]), G = Pwe(M, tVe), V = l ? 0 : i?.layer._updateStyle, P =
|
|
86612
|
+
const M = he(() => Bs(i)?.["3dtiles"], [i]), G = Pwe(M, tVe), V = l ? 0 : i?.layer._updateStyle, P = de(V), A = de(void 0);
|
|
86611
86613
|
Me(() => {
|
|
86612
86614
|
A.current = Date.now();
|
|
86613
86615
|
}, [G, V]);
|
|
@@ -86655,7 +86657,7 @@ const YOe = ({
|
|
|
86655
86657
|
onComputedFeatureFetch: c,
|
|
86656
86658
|
onLayerFetch: l
|
|
86657
86659
|
}) => {
|
|
86658
|
-
const { viewer: u } = si(), h =
|
|
86660
|
+
const { viewer: u } = si(), h = de(void 0), { onLayerLoad: d, updateCredits: f, customProvider: p } = pi(), m = de(o?.id);
|
|
86659
86661
|
m.current = o?.id;
|
|
86660
86662
|
const {
|
|
86661
86663
|
tileset: y,
|
|
@@ -86705,9 +86707,9 @@ const YOe = ({
|
|
|
86705
86707
|
ge,
|
|
86706
86708
|
ve
|
|
86707
86709
|
]
|
|
86708
|
-
), Q =
|
|
86710
|
+
), Q = de(le);
|
|
86709
86711
|
Q.current = le;
|
|
86710
|
-
const Y =
|
|
86712
|
+
const Y = de(void 0), $ = de(R), ce = he(() => ((!$.current?.length || !$.current?.every(
|
|
86711
86713
|
(ut, Rt) => ut.normal?.x === R?.[Rt].normal?.x && ut.normal?.y === R?.[Rt].normal?.y && ut.normal?.z === R?.[Rt].normal?.z && ut.distance === R?.[Rt].distance
|
|
86712
86714
|
)) && ($.current = R), $.current), [R]), be = k === "inside" ? -1 : 1, [q, ue] = ot(
|
|
86713
86715
|
() => new cC({
|
|
@@ -86757,10 +86759,10 @@ const YOe = ({
|
|
|
86757
86759
|
}), o?.id && Rt && (Rt[xae] = o.id), h.current = Rt, Y.current = Rt ? le : void 0, z(!!Rt));
|
|
86758
86760
|
},
|
|
86759
86761
|
[e, o?.id, Ue, Ne, le]
|
|
86760
|
-
), Qe =
|
|
86762
|
+
), Qe = de([]), Wt = de(C);
|
|
86761
86763
|
Wt.current = C;
|
|
86762
86764
|
const [Be] = ot(() => /* @__PURE__ */ new Map());
|
|
86763
|
-
|
|
86765
|
+
Ur(() => {
|
|
86764
86766
|
tt(!1), me(!1), Y.current !== le && (h.current = void 0, Y.current = void 0, z(!1)), Ue.records.clear(), Qe.current = [], Be.clear();
|
|
86765
86767
|
}, [le, Ue, Be]), Me(() => {
|
|
86766
86768
|
!h.current || !Ne || !Oe || Object.assign(h.current, {
|
|
@@ -86789,7 +86791,7 @@ const YOe = ({
|
|
|
86789
86791
|
isTilesetReady: Oe,
|
|
86790
86792
|
useExternalStyle: !!g
|
|
86791
86793
|
});
|
|
86792
|
-
const [Ct, Yt] = ot(0), Et =
|
|
86794
|
+
const [Ct, Yt] = ot(0), Et = de(!1), yn = se(
|
|
86793
86795
|
(ut) => {
|
|
86794
86796
|
Et.current || !u || B || (Et.current = !0, h4(u.scene, ut).then((Rt) => {
|
|
86795
86797
|
Yt(Rt ?? 0), Et.current = !1;
|
|
@@ -86803,14 +86805,14 @@ const YOe = ({
|
|
|
86803
86805
|
(async () => {
|
|
86804
86806
|
if (!h.current || !Oe)
|
|
86805
86807
|
return;
|
|
86806
|
-
const pr = h.current.clippingPlanesOriginMatrix.clone(),
|
|
86808
|
+
const pr = h.current.clippingPlanesOriginMatrix.clone(), Gr = new pe(G || 100, P || 100, V || 100);
|
|
86807
86809
|
if (!B) {
|
|
86808
|
-
const Ji = new cO(Rt, void 0,
|
|
86810
|
+
const Ji = new cO(Rt, void 0, Gr);
|
|
86809
86811
|
yN(Ji, !!B, Ct), Rt.x = Ji.translation.x, Rt.y = Ji.translation.y, Rt.z = Ji.translation.z;
|
|
86810
86812
|
}
|
|
86811
86813
|
const Ki = I && w && x ? new Xl(I, w, x) : void 0, je = Zn.multiply(
|
|
86812
86814
|
Ki ? Zn.fromRotationTranslation(Mc.fromHeadingPitchRoll(Ki), Rt) : Lh.eastNorthUpToFixedFrame(Rt),
|
|
86813
|
-
Zn.fromScale(
|
|
86815
|
+
Zn.fromScale(Gr, new Zn()),
|
|
86814
86816
|
new Zn()
|
|
86815
86817
|
), Ft = Zn.inverse(pr, new Zn());
|
|
86816
86818
|
Zn.multiply(Ft, je, q.modelMatrix);
|
|
@@ -87249,11 +87251,11 @@ const pVe = new lO({
|
|
|
87249
87251
|
cameraForceHorizontalRoll: o = !1,
|
|
87250
87252
|
onCameraChange: s
|
|
87251
87253
|
}) => {
|
|
87252
|
-
const a =
|
|
87254
|
+
const a = de([]), c = se(() => {
|
|
87253
87255
|
const v = e?.current?.cesiumElement;
|
|
87254
87256
|
if (!v || v.isDestroyed() || !s) return;
|
|
87255
87257
|
const S = Oo(v);
|
|
87256
|
-
S && !
|
|
87258
|
+
S && !Sr(S, n) && (a.current.push(S), a.current.length > 10 && a.current.shift(), s?.(S));
|
|
87257
87259
|
}, [e, n, s]), l = se(() => {
|
|
87258
87260
|
c();
|
|
87259
87261
|
}, [c]), u = se(() => {
|
|
@@ -87266,7 +87268,7 @@ const pVe = new lO({
|
|
|
87266
87268
|
const v = !!(i & Dn.CAMERA_MOVE), S = !!(i & Dn.CAMERA_ZOOM), E = !!(i & Dn.CAMERA_TILT), C = !!(i & Dn.CAMERA_LOOK);
|
|
87267
87269
|
e.current.cesiumElement.scene.screenSpaceCameraController.enableTranslate = v, e.current.cesiumElement.scene.screenSpaceCameraController.enableRotate = v, e.current.cesiumElement.scene.screenSpaceCameraController.enableLook = C, e.current.cesiumElement.scene.screenSpaceCameraController.enableTilt = E, e.current.cesiumElement.scene.screenSpaceCameraController.enableZoom = S;
|
|
87268
87270
|
}, [e, i]);
|
|
87269
|
-
const h =
|
|
87271
|
+
const h = de(!1), d = nCe(
|
|
87270
87272
|
() => {
|
|
87271
87273
|
h.current || (h.current = !0, t?.camera?.limiter?.enabled && t?.camera?.limiter?.targetArea ? r.flyTo(t?.camera?.limiter?.targetArea, { duration: 0 }) : n && r.flyTo(n, { duration: 0 }));
|
|
87272
87274
|
},
|
|
@@ -88002,7 +88004,7 @@ function mZ({
|
|
|
88002
88004
|
}
|
|
88003
88005
|
}
|
|
88004
88006
|
function o9e(e, t) {
|
|
88005
|
-
const n =
|
|
88007
|
+
const n = de(void 0), i = de({
|
|
88006
88008
|
click: [],
|
|
88007
88009
|
doubleClick: [],
|
|
88008
88010
|
mouseDown: [],
|
|
@@ -88017,7 +88019,7 @@ function o9e(e, t) {
|
|
|
88017
88019
|
mouseEnter: [],
|
|
88018
88020
|
mouseLeave: [],
|
|
88019
88021
|
wheel: []
|
|
88020
|
-
}), r =
|
|
88022
|
+
}), r = de([]), o = he(() => ({
|
|
88021
88023
|
name: "cesium",
|
|
88022
88024
|
requestRender: () => {
|
|
88023
88025
|
const s = t.current?.cesiumElement;
|
|
@@ -88677,7 +88679,7 @@ const s9e = ({
|
|
|
88677
88679
|
const o = se(() => {
|
|
88678
88680
|
const a = e.current?.cesiumElement;
|
|
88679
88681
|
!t?.current || !a || a.isDestroyed() || (a.scene.requestRender(), t.current === uf && (t.current = _2));
|
|
88680
|
-
}, [e, t]), s =
|
|
88682
|
+
}, [e, t]), s = de(void 0);
|
|
88681
88683
|
Me(() => {
|
|
88682
88684
|
s.current = o;
|
|
88683
88685
|
}, [o]), Me(() => {
|
|
@@ -88825,7 +88827,7 @@ const p9e = ({
|
|
|
88825
88827
|
return i?.(u?.layerId || "", u?.featureId || "", h), !1;
|
|
88826
88828
|
},
|
|
88827
88829
|
[e, i]
|
|
88828
|
-
), s =
|
|
88830
|
+
), s = de(void 0);
|
|
88829
88831
|
return Me(() => {
|
|
88830
88832
|
const a = e.current?.cesiumElement;
|
|
88831
88833
|
if (!(!a || a.isDestroyed()))
|
|
@@ -88857,7 +88859,7 @@ const p9e = ({
|
|
|
88857
88859
|
onLayerSelectWithRectMove: r,
|
|
88858
88860
|
onLayerSelectWithRectEnd: o
|
|
88859
88861
|
}) => {
|
|
88860
|
-
const s =
|
|
88862
|
+
const s = de([0, 0]), a = de(!1), c = de(!1), l = se(
|
|
88861
88863
|
(f, p) => {
|
|
88862
88864
|
if (a.current || c.current || n !== Kx.selection || !e.current?.cesiumElement || e.current.cesiumElement.isDestroyed()) return;
|
|
88863
88865
|
const m = wx(e.current.cesiumElement, f) ?? {};
|
|
@@ -89177,7 +89179,7 @@ const I9e = ({
|
|
|
89177
89179
|
enableLighting: o,
|
|
89178
89180
|
terrain: s
|
|
89179
89181
|
}) => {
|
|
89180
|
-
const a =
|
|
89182
|
+
const a = de(!1), { uniformMapForIBL: c, isIBLEnabled: l, shaderForIBL: u } = E9e({
|
|
89181
89183
|
sphericalHarmonicCoefficients: t,
|
|
89182
89184
|
globeImageBasedLighting: i,
|
|
89183
89185
|
hasVertexNormals: r,
|
|
@@ -89191,7 +89193,7 @@ const I9e = ({
|
|
|
89191
89193
|
const m = e.current.cesiumElement.scene.globe;
|
|
89192
89194
|
m.vertexShadowDarkness = n ?? m.vertexShadowDarkness;
|
|
89193
89195
|
}, [e, n, r]);
|
|
89194
|
-
const f =
|
|
89196
|
+
const f = de(!1), p = se(async () => {
|
|
89195
89197
|
if (!(!e.current?.cesiumElement || !f.current) && !a.current) {
|
|
89196
89198
|
a.current = !0;
|
|
89197
89199
|
try {
|
|
@@ -89305,7 +89307,7 @@ const I9e = ({
|
|
|
89305
89307
|
onMount: A,
|
|
89306
89308
|
onCreditsUpdate: X
|
|
89307
89309
|
}) => {
|
|
89308
|
-
const I =
|
|
89310
|
+
const I = de(null), x = typeof o?.cesiumIonAccessToken == "string" && o.cesiumIonAccessToken ? o.cesiumIonAccessToken : void 0, w = o9e(e, I), R = m9e({
|
|
89309
89311
|
cesium: I,
|
|
89310
89312
|
engineAPI: w,
|
|
89311
89313
|
onLayerSelectWithRectStart: E,
|
|
@@ -89346,7 +89348,7 @@ const I9e = ({
|
|
|
89346
89348
|
t?.scene?.shadow?.shadowMap?.size,
|
|
89347
89349
|
t?.scene?.shadow?.shadowMap?.maximumDistance
|
|
89348
89350
|
]);
|
|
89349
|
-
const N =
|
|
89351
|
+
const N = de(void 0), k = de(void 0);
|
|
89350
89352
|
Me(() => {
|
|
89351
89353
|
const q = I.current?.cesiumElement;
|
|
89352
89354
|
if (!q || q.isDestroyed() || k.current === i?.featureId && i?.featureId !== void 0)
|
|
@@ -89357,7 +89359,7 @@ const I9e = ({
|
|
|
89357
89359
|
const Ie = Ys(q, void 0, i?.featureId) || Ys(q, i?.layerId);
|
|
89358
89360
|
if (N.current === Ie) return;
|
|
89359
89361
|
const we = Lt(Ie);
|
|
89360
|
-
if (Ie instanceof
|
|
89362
|
+
if (Ie instanceof Wr && !we?.hideIndicator ? q.selectedEntity = Ie : q.selectedEntity = void 0, N.current = Ie, !Ie && i?.featureId) {
|
|
89361
89363
|
const Ue = [], Ye = a?.current?.findAll(
|
|
89362
89364
|
(Qe) => Qe.type === "simple" && !!Qe.data?.type && Ue.includes(Qe.data?.type)
|
|
89363
89365
|
);
|
|
@@ -89401,7 +89403,7 @@ const I9e = ({
|
|
|
89401
89403
|
y?.(
|
|
89402
89404
|
we?.layerId,
|
|
89403
89405
|
we?.featureId,
|
|
89404
|
-
Ie instanceof
|
|
89406
|
+
Ie instanceof Wr && (Ie.description || Ie.properties) ? {
|
|
89405
89407
|
defaultInfobox: {
|
|
89406
89408
|
title: Ie.name,
|
|
89407
89409
|
content: Sv(
|
|
@@ -89482,7 +89484,7 @@ const I9e = ({
|
|
|
89482
89484
|
if (!Ie || Ie.isDestroyed()) return;
|
|
89483
89485
|
k.current = void 0;
|
|
89484
89486
|
const we = Ys(Ie, void 0, i?.featureId) || Ys(Ie, i?.layerId), Ue = Lt(we);
|
|
89485
|
-
if ((!we || we instanceof
|
|
89487
|
+
if ((!we || we instanceof Wr && Ue?.hideIndicator) && (Ie.selectedEntity = void 0), ue && "id" in ue && ue.id instanceof Wr && u4(ue.id)) {
|
|
89486
89488
|
const Ye = Lt(ue.id), Qe = Ye?.layerId ? a?.current?.overriddenLayers().find((Wt) => Wt.id === Ye.layerId) ?? a?.current?.findById(Ye.layerId) : void 0;
|
|
89487
89489
|
y?.(
|
|
89488
89490
|
Ye?.layerId,
|
|
@@ -89497,7 +89499,7 @@ const I9e = ({
|
|
|
89497
89499
|
)
|
|
89498
89500
|
}
|
|
89499
89501
|
} : void 0
|
|
89500
|
-
), N.current = ue.id, ue.id instanceof
|
|
89502
|
+
), N.current = ue.id, ue.id instanceof Wr && !Ye?.hideIndicator ? Ie.selectedEntity = ue.id : Ie.selectedEntity = void 0;
|
|
89501
89503
|
return;
|
|
89502
89504
|
}
|
|
89503
89505
|
if (ue && (ue instanceof ta || ue instanceof gm)) {
|
|
@@ -89541,7 +89543,7 @@ const I9e = ({
|
|
|
89541
89543
|
if (Ct && Be?.data?.feature?.[Ct]?.show !== !1) {
|
|
89542
89544
|
const Yt = Lt(Be.imageryLayer), Et = Be.position;
|
|
89543
89545
|
Et && requestAnimationFrame(() => {
|
|
89544
|
-
Yt?.hideIndicator || (Ie.selectedEntity = new
|
|
89546
|
+
Yt?.hideIndicator || (Ie.selectedEntity = new Wr({
|
|
89545
89547
|
position: vn.toCartesian(Et)
|
|
89546
89548
|
}));
|
|
89547
89549
|
});
|
|
@@ -89590,7 +89592,7 @@ const I9e = ({
|
|
|
89590
89592
|
const j = se(() => {
|
|
89591
89593
|
const q = I.current?.cesiumElement;
|
|
89592
89594
|
!q || q.isDestroyed() || q.scene.requestRender();
|
|
89593
|
-
}, []), J =
|
|
89595
|
+
}, []), J = de(X);
|
|
89594
89596
|
J.current = X;
|
|
89595
89597
|
const ie = se(() => {
|
|
89596
89598
|
J.current && setTimeout(() => {
|
|
@@ -89711,7 +89713,7 @@ function jv(e) {
|
|
|
89711
89713
|
return e.getPropertyIds().reduce((t, n) => [...t, { key: n, value: e.getProperty(n) }], []);
|
|
89712
89714
|
}
|
|
89713
89715
|
function P9e(e) {
|
|
89714
|
-
if (e && "id" in e && e.id instanceof
|
|
89716
|
+
if (e && "id" in e && e.id instanceof Wr)
|
|
89715
89717
|
return Lt(e.id)?.layerId;
|
|
89716
89718
|
if (e && e instanceof ta)
|
|
89717
89719
|
return Lt(e.tileset)?.layerId;
|
|
@@ -90510,7 +90512,7 @@ const rp = ({
|
|
|
90510
90512
|
isExtrudedControlPoint: s,
|
|
90511
90513
|
handleControlPointMouseEvent: a
|
|
90512
90514
|
}) => {
|
|
90513
|
-
const c =
|
|
90515
|
+
const c = de(e);
|
|
90514
90516
|
c.current = e;
|
|
90515
90517
|
const l = ws(
|
|
90516
90518
|
() => new jo(
|
|
@@ -90598,10 +90600,10 @@ const Um = Fi(
|
|
|
90598
90600
|
lineHeight: 1
|
|
90599
90601
|
}, bZ = ({ children: e }) => /* @__PURE__ */ ae.jsx("div", { style: e4e, children: e }), _Z = Qo({});
|
|
90600
90602
|
function vZ(e) {
|
|
90601
|
-
const t =
|
|
90603
|
+
const t = de(null);
|
|
90602
90604
|
return t.current === null && (t.current = e()), t.current;
|
|
90603
90605
|
}
|
|
90604
|
-
const t4e = typeof window < "u", n4e = t4e ?
|
|
90606
|
+
const t4e = typeof window < "u", n4e = t4e ? Ur : Me, SE = /* @__PURE__ */ Qo(null);
|
|
90605
90607
|
function TE(e, t) {
|
|
90606
90608
|
e.indexOf(t) === -1 && e.push(t);
|
|
90607
90609
|
}
|
|
@@ -90785,8 +90787,8 @@ let ly;
|
|
|
90785
90787
|
function f4e() {
|
|
90786
90788
|
ly = void 0;
|
|
90787
90789
|
}
|
|
90788
|
-
const
|
|
90789
|
-
now: () => (ly === void 0 &&
|
|
90790
|
+
const Rr = {
|
|
90791
|
+
now: () => (ly === void 0 && Rr.set(Zi.isProcessing || ja.useManualTiming ? Zi.timestamp : performance.now()), ly),
|
|
90790
90792
|
set: (e) => {
|
|
90791
90793
|
ly = e, queueMicrotask(f4e);
|
|
90792
90794
|
}
|
|
@@ -90991,7 +90993,7 @@ const z4e = (e) => {
|
|
|
90991
90993
|
* If we're processing this frame we can use the
|
|
90992
90994
|
* framelocked timestamp to keep things in sync.
|
|
90993
90995
|
*/
|
|
90994
|
-
now: () => Zi.isProcessing ? Zi.timestamp :
|
|
90996
|
+
now: () => Zi.isProcessing ? Zi.timestamp : Rr.now()
|
|
90995
90997
|
};
|
|
90996
90998
|
}, YZ = (e, t, n = 10) => {
|
|
90997
90999
|
let i = "";
|
|
@@ -91322,7 +91324,7 @@ class AE extends FE {
|
|
|
91322
91324
|
constructor(t) {
|
|
91323
91325
|
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
|
|
91324
91326
|
const { motionValue: n } = this.options;
|
|
91325
|
-
n && n.updatedAt !==
|
|
91327
|
+
n && n.updatedAt !== Rr.now() && this.tick(Rr.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
91326
91328
|
}, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause();
|
|
91327
91329
|
}
|
|
91328
91330
|
initAnimation() {
|
|
@@ -91392,7 +91394,7 @@ class AE extends FE {
|
|
|
91392
91394
|
}
|
|
91393
91395
|
set speed(t) {
|
|
91394
91396
|
const n = this.playbackSpeed !== t;
|
|
91395
|
-
n && this.driver && this.updateTime(
|
|
91397
|
+
n && this.driver && this.updateTime(Rr.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */ No(this.currentTime));
|
|
91396
91398
|
}
|
|
91397
91399
|
play() {
|
|
91398
91400
|
if (this.isStopped)
|
|
@@ -91403,7 +91405,7 @@ class AE extends FE {
|
|
|
91403
91405
|
this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = n ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
91404
91406
|
}
|
|
91405
91407
|
pause() {
|
|
91406
|
-
this.state = "paused", this.updateTime(
|
|
91408
|
+
this.state = "paused", this.updateTime(Rr.now()), this.holdTime = this.currentTime;
|
|
91407
91409
|
}
|
|
91408
91410
|
complete() {
|
|
91409
91411
|
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
|
|
@@ -91781,7 +91783,7 @@ class yFe extends nk {
|
|
|
91781
91783
|
const a = new AE({
|
|
91782
91784
|
...s,
|
|
91783
91785
|
autoplay: !1
|
|
91784
|
-
}), c = Math.max(e2,
|
|
91786
|
+
}), c = Math.max(e2, Rr.now() - this.startTime), l = da(0, e2, c - e2), u = a.sample(c).value, { name: h } = this.options;
|
|
91785
91787
|
o && h && QZ(o, h, u), n.setWithVelocity(a.sample(Math.max(0, c - l)).value, u, l), a.stop();
|
|
91786
91788
|
}
|
|
91787
91789
|
}
|
|
@@ -91832,7 +91834,7 @@ class TFe extends FE {
|
|
|
91832
91834
|
constructor({ autoplay: t = !0, delay: n = 0, type: i = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: s = "loop", keyframes: a, name: c, motionValue: l, element: u, ...h }) {
|
|
91833
91835
|
super(), this.stop = () => {
|
|
91834
91836
|
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
91835
|
-
}, this.createdAt =
|
|
91837
|
+
}, this.createdAt = Rr.now();
|
|
91836
91838
|
const d = {
|
|
91837
91839
|
autoplay: t,
|
|
91838
91840
|
delay: n,
|
|
@@ -91850,7 +91852,7 @@ class TFe extends FE {
|
|
|
91850
91852
|
onKeyframesResolved(t, n, i, r) {
|
|
91851
91853
|
this.keyframeResolver = void 0;
|
|
91852
91854
|
const { name: o, type: s, velocity: a, delay: c, isHandoff: l, onUpdate: u } = i;
|
|
91853
|
-
this.resolvedAt =
|
|
91855
|
+
this.resolvedAt = Rr.now(), _Fe(t, o, s, a) || ((ja.instantAnimations || !c) && u?.(VE(t, i, n)), t[0] = t[t.length - 1], Ax(i), i.repeat = 0);
|
|
91854
91856
|
const d = {
|
|
91855
91857
|
startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > SFe ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
|
|
91856
91858
|
finalKeyframe: n,
|
|
@@ -92050,14 +92052,14 @@ class zFe {
|
|
|
92050
92052
|
*/
|
|
92051
92053
|
constructor(t, n = {}) {
|
|
92052
92054
|
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i) => {
|
|
92053
|
-
const r =
|
|
92055
|
+
const r = Rr.now();
|
|
92054
92056
|
if (this.updatedAt !== r && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents))
|
|
92055
92057
|
for (const o of this.dependents)
|
|
92056
92058
|
o.dirty();
|
|
92057
92059
|
}, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
|
|
92058
92060
|
}
|
|
92059
92061
|
setCurrent(t) {
|
|
92060
|
-
this.current = t, this.updatedAt =
|
|
92062
|
+
this.current = t, this.updatedAt = Rr.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = AFe(this.current));
|
|
92061
92063
|
}
|
|
92062
92064
|
setPrevFrameValue(t = this.current) {
|
|
92063
92065
|
this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -92185,7 +92187,7 @@ class zFe {
|
|
|
92185
92187
|
* @public
|
|
92186
92188
|
*/
|
|
92187
92189
|
getVelocity() {
|
|
92188
|
-
const t =
|
|
92190
|
+
const t = Rr.now();
|
|
92189
92191
|
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > HP)
|
|
92190
92192
|
return 0;
|
|
92191
92193
|
const n = Math.min(this.updatedAt - this.prevUpdatedAt, HP);
|
|
@@ -92870,7 +92872,7 @@ class LAe {
|
|
|
92870
92872
|
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = zE, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
92871
92873
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
92872
92874
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
92873
|
-
const f =
|
|
92875
|
+
const f = Rr.now();
|
|
92874
92876
|
this.renderScheduledAt < f && (this.renderScheduledAt = f, Ln.render(this.render, !1, !0));
|
|
92875
92877
|
};
|
|
92876
92878
|
const { latestValues: l, renderState: u } = a;
|
|
@@ -93596,26 +93598,26 @@ function dG(e, t) {
|
|
|
93596
93598
|
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
93597
93599
|
}
|
|
93598
93600
|
const zk = 1e-4, $Ae = 1 - zk, eze = 1 + zk, Nk = 0.01, tze = 0 - Nk, nze = 0 + Nk;
|
|
93599
|
-
function
|
|
93601
|
+
function Ir(e) {
|
|
93600
93602
|
return e.max - e.min;
|
|
93601
93603
|
}
|
|
93602
93604
|
function ize(e, t, n) {
|
|
93603
93605
|
return Math.abs(e - t) <= n;
|
|
93604
93606
|
}
|
|
93605
93607
|
function fG(e, t, n, i = 0.5) {
|
|
93606
|
-
e.origin = i, e.originPoint = jn(t.min, t.max, e.origin), e.scale =
|
|
93608
|
+
e.origin = i, e.originPoint = jn(t.min, t.max, e.origin), e.scale = Ir(n) / Ir(t), e.translate = jn(n.min, n.max, e.origin) - e.originPoint, (e.scale >= $Ae && e.scale <= eze || isNaN(e.scale)) && (e.scale = 1), (e.translate >= tze && e.translate <= nze || isNaN(e.translate)) && (e.translate = 0);
|
|
93607
93609
|
}
|
|
93608
93610
|
function sp(e, t, n, i) {
|
|
93609
93611
|
fG(e.x, t.x, n.x, i ? i.originX : void 0), fG(e.y, t.y, n.y, i ? i.originY : void 0);
|
|
93610
93612
|
}
|
|
93611
93613
|
function pG(e, t, n) {
|
|
93612
|
-
e.min = n.min + t.min, e.max = e.min +
|
|
93614
|
+
e.min = n.min + t.min, e.max = e.min + Ir(t);
|
|
93613
93615
|
}
|
|
93614
93616
|
function rze(e, t, n) {
|
|
93615
93617
|
pG(e.x, t.x, n.x), pG(e.y, t.y, n.y);
|
|
93616
93618
|
}
|
|
93617
93619
|
function mG(e, t, n) {
|
|
93618
|
-
e.min = t.min - n.min, e.max = e.min +
|
|
93620
|
+
e.min = t.min - n.min, e.max = e.min + Ir(t);
|
|
93619
93621
|
}
|
|
93620
93622
|
function Ob(e, t, n) {
|
|
93621
93623
|
mG(e.x, t.x, n.x), mG(e.y, t.y, n.y);
|
|
@@ -93655,7 +93657,7 @@ function Zk(e, t) {
|
|
|
93655
93657
|
return wG(e.x, t.x) && wG(e.y, t.y);
|
|
93656
93658
|
}
|
|
93657
93659
|
function xG(e) {
|
|
93658
|
-
return
|
|
93660
|
+
return Ir(e.x) / Ir(e.y);
|
|
93659
93661
|
}
|
|
93660
93662
|
function SG(e, t) {
|
|
93661
93663
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
@@ -93715,7 +93717,7 @@ class gze {
|
|
|
93715
93717
|
}
|
|
93716
93718
|
}
|
|
93717
93719
|
function yze(e, t) {
|
|
93718
|
-
const n =
|
|
93720
|
+
const n = Rr.now(), i = ({ timestamp: r }) => {
|
|
93719
93721
|
const o = r - n;
|
|
93720
93722
|
o >= t && (Qc(i), e(o - t));
|
|
93721
93723
|
};
|
|
@@ -93917,7 +93919,7 @@ function Dk({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
93917
93919
|
return;
|
|
93918
93920
|
}
|
|
93919
93921
|
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Cze), this.nodes.forEach(wze), this.nodes.forEach(xze)) : this.nodes.forEach(IG), this.clearAllSnapshots();
|
|
93920
|
-
const a =
|
|
93922
|
+
const a = Rr.now();
|
|
93921
93923
|
Zi.delta = da(0, 1e3 / 60, a - Zi.timestamp), Zi.timestamp = a, Zi.isProcessing = !0, Kv.update.process(Zi), Kv.preRender.process(Zi), Kv.render.process(Zi), Zi.isProcessing = !1;
|
|
93922
93924
|
}
|
|
93923
93925
|
didUpdate() {
|
|
@@ -93938,7 +93940,7 @@ function Dk({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
93938
93940
|
* Update measurements
|
|
93939
93941
|
*/
|
|
93940
93942
|
updateSnapshot() {
|
|
93941
|
-
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !
|
|
93943
|
+
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !Ir(this.snapshot.measuredBox.x) && !Ir(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
93942
93944
|
}
|
|
93943
93945
|
updateLayout() {
|
|
93944
93946
|
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
|
|
@@ -94145,9 +94147,9 @@ function Dk({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
94145
94147
|
if (!(!a || !c || !l)) {
|
|
94146
94148
|
if (this !== s && this.layout && l && Bk(this.options.animationType, this.layout.layoutBox, l.layoutBox)) {
|
|
94147
94149
|
c = this.target || _i();
|
|
94148
|
-
const h =
|
|
94150
|
+
const h = Ir(this.layout.layoutBox.x);
|
|
94149
94151
|
c.x.min = s.target.x.min, c.x.max = c.x.min + h;
|
|
94150
|
-
const d =
|
|
94152
|
+
const d = Ir(this.layout.layoutBox.y);
|
|
94151
94153
|
c.y.min = s.target.y.min, c.y.max = c.y.min + d;
|
|
94152
94154
|
}
|
|
94153
94155
|
is(a, c), dh(a, u), sp(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
|
|
@@ -94257,10 +94259,10 @@ function xze(e) {
|
|
|
94257
94259
|
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
|
|
94258
94260
|
const { layoutBox: n, measuredBox: i } = e.layout, { animationType: r } = e.options, o = t.source !== e.layout.source;
|
|
94259
94261
|
r === "size" ? ks((u) => {
|
|
94260
|
-
const h = o ? t.measuredBox[u] : t.layoutBox[u], d =
|
|
94262
|
+
const h = o ? t.measuredBox[u] : t.layoutBox[u], d = Ir(h);
|
|
94261
94263
|
h.min = n[u].min, h.max = h.min + d;
|
|
94262
94264
|
}) : Bk(r, t.layoutBox, n) && ks((u) => {
|
|
94263
|
-
const h = o ? t.measuredBox[u] : t.layoutBox[u], d =
|
|
94265
|
+
const h = o ? t.measuredBox[u] : t.layoutBox[u], d = Ir(n[u]);
|
|
94264
94266
|
h.max = h.min + d, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[u].max = e.relativeTarget[u].min + d);
|
|
94265
94267
|
});
|
|
94266
94268
|
const s = uh();
|
|
@@ -94655,11 +94657,11 @@ const qk = (e) => (t, n) => {
|
|
|
94655
94657
|
createRenderState: Qk
|
|
94656
94658
|
}), tNe = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
|
|
94657
94659
|
function nNe(e, t, n) {
|
|
94658
|
-
const i =
|
|
94660
|
+
const i = de(n);
|
|
94659
94661
|
tO(() => {
|
|
94660
94662
|
i.current = n;
|
|
94661
94663
|
});
|
|
94662
|
-
const r =
|
|
94664
|
+
const r = de(null);
|
|
94663
94665
|
return se((o) => {
|
|
94664
94666
|
o && e.onMount?.(o);
|
|
94665
94667
|
const s = i.current;
|
|
@@ -94677,7 +94679,7 @@ function Yu(e) {
|
|
|
94677
94679
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
94678
94680
|
}
|
|
94679
94681
|
function iNe(e, t, n, i, r, o) {
|
|
94680
|
-
const { visualElement: s } = wi(v1), a = wi(Hk), c = wi(SE), l = wi(JE), u = l.reducedMotion, h = l.skipAnimations, d =
|
|
94682
|
+
const { visualElement: s } = wi(v1), a = wi(Hk), c = wi(SE), l = wi(JE), u = l.reducedMotion, h = l.skipAnimations, d = de(null), f = de(!1);
|
|
94681
94683
|
i = i || a.renderer, !d.current && i && (d.current = i(e, {
|
|
94682
94684
|
visualState: t,
|
|
94683
94685
|
parent: s,
|
|
@@ -94690,11 +94692,11 @@ function iNe(e, t, n, i, r, o) {
|
|
|
94690
94692
|
}), f.current && d.current && (d.current.manuallyAnimateOnMount = !0));
|
|
94691
94693
|
const p = d.current, m = wi($k);
|
|
94692
94694
|
p && !p.projection && r && (p.type === "html" || p.type === "svg") && rNe(d.current, n, r, m);
|
|
94693
|
-
const y =
|
|
94695
|
+
const y = de(!1);
|
|
94694
94696
|
tO(() => {
|
|
94695
94697
|
p && y.current && p.update(n, c);
|
|
94696
94698
|
});
|
|
94697
|
-
const g = n[ck], v =
|
|
94699
|
+
const g = n[ck], v = de(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
|
|
94698
94700
|
return n4e(() => {
|
|
94699
94701
|
f.current = !0, p && (y.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), v.current && p.animationState && p.animationState.animateChanges());
|
|
94700
94702
|
}), Me(() => {
|
|
@@ -95007,7 +95009,7 @@ function vNe(e, t) {
|
|
|
95007
95009
|
}
|
|
95008
95010
|
function wNe(e, t) {
|
|
95009
95011
|
let n = 0.5;
|
|
95010
|
-
const i =
|
|
95012
|
+
const i = Ir(e), r = Ir(t);
|
|
95011
95013
|
return r > i ? n = /* @__PURE__ */ um(t.min, t.max - i, e.min) : i > r && (n = /* @__PURE__ */ um(e.min, e.max - r, t.min)), da(0, 1, n);
|
|
95012
95014
|
}
|
|
95013
95015
|
function xNe(e, t) {
|
|
@@ -95051,7 +95053,7 @@ class ENe {
|
|
|
95051
95053
|
const { projection: S } = this.visualElement;
|
|
95052
95054
|
if (S && S.layout) {
|
|
95053
95055
|
const E = S.layout.layoutBox[g];
|
|
95054
|
-
E && (v =
|
|
95056
|
+
E && (v = Ir(E) * (parseFloat(v) / 100));
|
|
95055
95057
|
}
|
|
95056
95058
|
}
|
|
95057
95059
|
this.originPoint[g] = v;
|
|
@@ -95593,7 +95595,7 @@ const KNe = new Is(at.WGS84, b.ZERO), $E = no(
|
|
|
95593
95595
|
({ position: e, children: t, ...n }, i) => {
|
|
95594
95596
|
const r = ws(() => new b());
|
|
95595
95597
|
e?.clone(r);
|
|
95596
|
-
const o = jG(""), s = jG("none"), { toWindowPosition: a, getCamera: c, toXYZ: l, isPositionVisible: u } = pi(), h =
|
|
95598
|
+
const o = jG(""), s = jG("none"), { toWindowPosition: a, getCamera: c, toXYZ: l, isPositionVisible: u } = pi(), h = de(null);
|
|
95597
95599
|
$l(() => {
|
|
95598
95600
|
if (h.current == null)
|
|
95599
95601
|
return;
|
|
@@ -95638,7 +95640,7 @@ const KNe = new Is(at.WGS84, b.ZERO), $E = no(
|
|
|
95638
95640
|
);
|
|
95639
95641
|
$E.displayName = "ScreenSpaceElement";
|
|
95640
95642
|
const JNe = ({ a: e, b: t, color: n }) => {
|
|
95641
|
-
const i =
|
|
95643
|
+
const i = de([e, t]);
|
|
95642
95644
|
i.current = [e, t];
|
|
95643
95645
|
const r = ws(
|
|
95644
95646
|
() => new jo(() => i.current, !1)
|
|
@@ -95731,11 +95733,11 @@ const qNe = ({
|
|
|
95731
95733
|
disableShadow: r = !1,
|
|
95732
95734
|
isEditing: o
|
|
95733
95735
|
}) => {
|
|
95734
|
-
const s =
|
|
95736
|
+
const s = de(t);
|
|
95735
95737
|
s.current = t;
|
|
95736
95738
|
const c = ws(
|
|
95737
95739
|
() => new jo(() => s.current, !1)
|
|
95738
|
-
), l =
|
|
95740
|
+
), l = de(n);
|
|
95739
95741
|
l.current = n;
|
|
95740
95742
|
const h = ws(
|
|
95741
95743
|
() => new jo(() => l.current, !1)
|
|
@@ -95764,7 +95766,7 @@ const qNe = ({
|
|
|
95764
95766
|
hierarchy: t,
|
|
95765
95767
|
color: n
|
|
95766
95768
|
}) => {
|
|
95767
|
-
const i =
|
|
95769
|
+
const i = de(t);
|
|
95768
95770
|
i.current = t;
|
|
95769
95771
|
const r = ws(
|
|
95770
95772
|
() => new jo(() => i.current, !1)
|
|
@@ -95786,7 +95788,7 @@ const qNe = ({
|
|
|
95786
95788
|
color: n,
|
|
95787
95789
|
isEditing: i
|
|
95788
95790
|
}) => {
|
|
95789
|
-
const r =
|
|
95791
|
+
const r = de(t);
|
|
95790
95792
|
r.current = t;
|
|
95791
95793
|
const o = ws(
|
|
95792
95794
|
() => new jo(() => r.current, !e)
|
|
@@ -95835,7 +95837,7 @@ const qNe = ({
|
|
|
95835
95837
|
);
|
|
95836
95838
|
sW.displayName = "SurfaceAddingPoints";
|
|
95837
95839
|
const tXe = ({ a: e, b: t, color: n }) => {
|
|
95838
|
-
const i =
|
|
95840
|
+
const i = de([e, t]);
|
|
95839
95841
|
i.current = [e, t];
|
|
95840
95842
|
const r = ws(
|
|
95841
95843
|
() => new jo(() => i.current, !1)
|
|
@@ -96371,8 +96373,8 @@ function cXe({ error: e, resetErrorBoundary: t }) {
|
|
|
96371
96373
|
/* @__PURE__ */ ae.jsx("p", { children: /* @__PURE__ */ ae.jsx("button", { style: { color: "#fff" }, onClick: t, children: "Retry" }) })
|
|
96372
96374
|
] });
|
|
96373
96375
|
}
|
|
96374
|
-
const lXe = "0.0.7-alpha.
|
|
96375
|
-
const t =
|
|
96376
|
+
const lXe = "0.0.7-alpha.67", uXe = ({ viewerProperty: e }) => {
|
|
96377
|
+
const t = de(e);
|
|
96376
96378
|
t.current = e;
|
|
96377
96379
|
const n = he(
|
|
96378
96380
|
() => ({
|
|
@@ -96433,9 +96435,9 @@ function pXe({
|
|
|
96433
96435
|
onLayerDrop: c,
|
|
96434
96436
|
onSketchTypeChangeProp: l
|
|
96435
96437
|
}, u) {
|
|
96436
|
-
const h =
|
|
96438
|
+
const h = de(null);
|
|
96437
96439
|
Ka(u, () => h.current, []);
|
|
96438
|
-
const d =
|
|
96440
|
+
const d = de(null), f = dXe({
|
|
96439
96441
|
wrapperRef: d
|
|
96440
96442
|
}), [p, m] = ot({}), [y, g] = ot(), [v, S] = ot(), E = se(
|
|
96441
96443
|
async (Be, Ct, Yt, Et, yn) => {
|
|
@@ -96450,7 +96452,7 @@ function pXe({
|
|
|
96450
96452
|
), r?.(Be, Yt, ti, Et);
|
|
96451
96453
|
},
|
|
96452
96454
|
[p, r]
|
|
96453
|
-
), C =
|
|
96455
|
+
), C = de(void 0), [M, G] = qG(e, o), [V, P] = ot(!1), A = se((Be) => {
|
|
96454
96456
|
P(!!Be);
|
|
96455
96457
|
}, []), [X, I] = qG(
|
|
96456
96458
|
t || "default",
|
|
@@ -96459,46 +96461,46 @@ function pXe({
|
|
|
96459
96461
|
Me(() => {
|
|
96460
96462
|
X === "default" && h?.current?.engine?.setCursor("auto");
|
|
96461
96463
|
}, [X]);
|
|
96462
|
-
const x = Kx[X ?? "default"], w =
|
|
96464
|
+
const x = Kx[X ?? "default"], w = de(void 0), R = se((Be) => {
|
|
96463
96465
|
w.current = Be;
|
|
96464
96466
|
}, []), N = se((Be) => {
|
|
96465
96467
|
w.current?.(Be);
|
|
96466
|
-
}, []), k =
|
|
96468
|
+
}, []), k = de(void 0), D = se((Be) => {
|
|
96467
96469
|
k.current = Be;
|
|
96468
96470
|
}, []), B = se((Be) => {
|
|
96469
96471
|
k.current?.(Be);
|
|
96470
|
-
}, []), K =
|
|
96472
|
+
}, []), K = de(void 0), F = se((Be) => {
|
|
96471
96473
|
K.current = Be;
|
|
96472
96474
|
}, []), W = se((Be) => {
|
|
96473
96475
|
K.current?.(Be);
|
|
96474
|
-
}, []), j =
|
|
96476
|
+
}, []), j = de(void 0), J = se((Be) => {
|
|
96475
96477
|
j.current = Be;
|
|
96476
96478
|
}, []), ie = se((Be) => {
|
|
96477
96479
|
j.current?.(Be);
|
|
96478
|
-
}, []), Ee =
|
|
96480
|
+
}, []), Ee = de(void 0), ve = se((Be) => {
|
|
96479
96481
|
Ee.current = Be;
|
|
96480
96482
|
}, []), Ne = se((Be) => {
|
|
96481
96483
|
Ee.current?.(Be);
|
|
96482
|
-
}, []), Oe =
|
|
96484
|
+
}, []), Oe = de(void 0), me = se((Be) => {
|
|
96483
96485
|
Oe.current = Be;
|
|
96484
96486
|
}, []), ke = se((Be) => {
|
|
96485
96487
|
Oe.current?.(Be);
|
|
96486
|
-
}, []), tt =
|
|
96488
|
+
}, []), tt = de([]), rt = se((Be) => {
|
|
96487
96489
|
tt.current.push(Be);
|
|
96488
96490
|
}, []), z = se((Be) => {
|
|
96489
96491
|
tt.current.forEach((Ct) => Ct(Be));
|
|
96490
|
-
}, []), ge =
|
|
96492
|
+
}, []), ge = de([]), le = se((Be) => {
|
|
96491
96493
|
ge.current.push(Be);
|
|
96492
96494
|
}, []), Q = se((Be) => {
|
|
96493
96495
|
ge.current.forEach((Ct) => Ct(Be));
|
|
96494
|
-
}, []), Y =
|
|
96496
|
+
}, []), Y = de([]), $ = se((Be) => {
|
|
96495
96497
|
Y.current.push(Be);
|
|
96496
96498
|
}, []), ce = se(
|
|
96497
96499
|
(Be) => {
|
|
96498
96500
|
Y.current.forEach((Ct) => Ct(Be));
|
|
96499
96501
|
},
|
|
96500
96502
|
[]
|
|
96501
|
-
), be =
|
|
96503
|
+
), be = de([]), q = se((Be) => {
|
|
96502
96504
|
be.current.push(Be);
|
|
96503
96505
|
}, []), ue = se(
|
|
96504
96506
|
(Be, Ct) => {
|