@reearth/core 0.0.7-alpha.40 → 0.0.7-alpha.41

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 CHANGED
@@ -20,7 +20,7 @@ var jm = (t, n, o, s) => ({
20
20
  import * as React from "react";
21
21
  import React__default, { forwardRef, useRef, useCallback, useImperativeHandle, useState, useEffect, useMemo, useContext as useContext$1, useReducer, useDebugValue, createContext, useLayoutEffect, memo as memo$1, Component as Component$1, isValidElement, createElement, Suspense, useInsertionEffect, Fragment, useId } from "react";
22
22
  import * as Cesium$1 from "cesium";
23
- import { Color as Color$3, Math as Math$1, ScreenSpaceEventType, ScreenSpaceEventHandler, BillboardCollection, BillboardGraphics as BillboardGraphics$1, BoxGraphics as BoxGraphics$1, Cesium3DTileset, Cesium3DTilesetGraphics as Cesium3DTilesetGraphics$1, CesiumWidget, ClassificationPrimitive as ClassificationPrimitive$1, CloudCollection, CorridorGraphics as CorridorGraphics$1, CustomDataSource, CylinderGraphics as CylinderGraphics$1, CzmlDataSource, EllipseGraphics as EllipseGraphics$1, EllipsoidGraphics as EllipsoidGraphics$1, Entity as Entity$2, Fog, GeoJsonDataSource, GroundPolylinePrimitive as GroundPolylinePrimitive$1, GroundPrimitive as GroundPrimitive$1, ImageryLayer, KmlDataSource, LabelCollection, LabelGraphics as LabelGraphics$1, Model as Model$1, ModelGraphics as ModelGraphics$1, Moon, ParticleSystem, PathGraphics as PathGraphics$1, PlaneGraphics as PlaneGraphics$1, PointGraphics as PointGraphics$1, PointPrimitiveCollection, PolygonGraphics as PolygonGraphics$1, PolylineCollection, PolylineGraphics as PolylineGraphics$1, PolylineVolumeGraphics as PolylineVolumeGraphics$1, PostProcessStage, PostProcessStageLibrary, PostProcessStageComposite, Primitive as Primitive$1, RectangleGraphics as RectangleGraphics$1, Sun, TimeDynamicPointCloud, Viewer, WallGraphics as WallGraphics$1, SceneMode as SceneMode$2, Event as Event$2, Rectangle as Rectangle$1, HeightReference as HeightReference$2, ClassificationType as ClassificationType$2, EntityCluster, HorizontalOrigin as HorizontalOrigin$2, VerticalOrigin as VerticalOrigin$2, Cartesian3 as Cartesian3$1, ClockRange, JulianDate as JulianDate$1, ClockStep, CameraEventType, KeyboardEventModifier, Cartesian2 as Cartesian2$1, Ray as Ray$1, Cartographic as Cartographic$1, BoundingSphere as BoundingSphere$1, HeadingPitchRange, Matrix4 as Matrix4$1, PerspectiveFrustum, IntersectionTests as IntersectionTests$1, OrthographicOffCenterFrustum as OrthographicOffCenterFrustum$1, Cesium3DTileColorBlendMode, ShadowMode as ShadowMode$2, Quaternion as Quaternion$1, Matrix3 as Matrix3$1, EllipsoidTerrainProvider, sampleTerrainMostDetailed, Plane as Plane$1, ColorBlendMode, CesiumTerrainProvider, IonResource, ArcGISTiledElevationTerrainProvider, IonImageryProvider, IonWorldImageryStyle, OpenStreetMapImageryProvider, ArcGisMapServerImageryProvider, UrlTemplateImageryProvider, DiscardEmptyTileImagePolicy as DiscardEmptyTileImagePolicy$1, TextureMagnificationFilter as TextureMagnificationFilter$2, TextureMinificationFilter as TextureMinificationFilter$2, SceneTransforms as SceneTransforms$1, DistanceDisplayCondition, WebMercatorTilingScheme as WebMercatorTilingScheme$1, Cesium3DTileFeature, Cesium3DTilePointFeature, PropertyBag as PropertyBag$1, TimeIntervalCollection, TimeInterval, Iso8601, CallbackProperty as CallbackProperty$1, ColorMaterialProperty as ColorMaterialProperty$1, ArcType as ArcType$2, ImageryLayerFeatureInfo, HeadingPitchRoll as HeadingPitchRoll$1, Transforms as Transforms$1, Axis, TranslationRotationScale as TranslationRotationScale$1, PolylineDashMaterialProperty as PolylineDashMaterialProperty$1, PerInstanceColorAppearance as PerInstanceColorAppearance$1, Material as Material$1, VertexFormat as VertexFormat$1, GeometryAttribute as GeometryAttribute$1, ComponentDatatype as ComponentDatatype$2, FrustumGeometry, GeometryInstance as GeometryInstance$1, PolygonGeometry, EllipsoidSurfaceAppearance, Intersect as Intersect$2, CustomShader, CustomShaderMode, LightingModel, CustomShaderTranslucencyMode, ImageBasedLighting, EasingFunction, PolygonHierarchy as PolygonHierarchy$1, Credit, WindingOrder as WindingOrder$2, TileMapServiceImageryProvider, WebMapServiceImageryProvider, ClippingPlane, ClippingPlaneCollection, Cesium3DTileStyle, createGooglePhotorealistic3DTileset, Camera, EllipsoidGeodesic as EllipsoidGeodesic$1, PerspectiveOffCenterFrustum, BoundingRectangle as BoundingRectangle$1, Ellipsoid as Ellipsoid$2, SunLight, DirectionalLight, Ion, PostProcessStageSampleMode } from "cesium";
23
+ import { Color as Color$3, Math as Math$1, ScreenSpaceEventType, ScreenSpaceEventHandler, BillboardCollection, BillboardGraphics as BillboardGraphics$1, BoxGraphics as BoxGraphics$1, Cesium3DTileset, Cesium3DTilesetGraphics as Cesium3DTilesetGraphics$1, CesiumWidget, ClassificationPrimitive as ClassificationPrimitive$1, CloudCollection, CorridorGraphics as CorridorGraphics$1, CustomDataSource, CylinderGraphics as CylinderGraphics$1, CzmlDataSource, EllipseGraphics as EllipseGraphics$1, EllipsoidGraphics as EllipsoidGraphics$1, Entity as Entity$2, Fog, GeoJsonDataSource, GroundPolylinePrimitive as GroundPolylinePrimitive$1, GroundPrimitive as GroundPrimitive$1, ImageryLayer, KmlDataSource, LabelCollection, LabelGraphics as LabelGraphics$1, Model as Model$1, ModelGraphics as ModelGraphics$1, Moon, ParticleSystem, PathGraphics as PathGraphics$1, PlaneGraphics as PlaneGraphics$1, PointGraphics as PointGraphics$1, PointPrimitiveCollection, PolygonGraphics as PolygonGraphics$1, PolylineCollection, PolylineGraphics as PolylineGraphics$1, PolylineVolumeGraphics as PolylineVolumeGraphics$1, PostProcessStage, PostProcessStageLibrary, PostProcessStageComposite, Primitive as Primitive$1, RectangleGraphics as RectangleGraphics$1, Sun, TimeDynamicPointCloud, Viewer, WallGraphics as WallGraphics$1, SceneMode as SceneMode$2, Event as Event$2, Rectangle as Rectangle$1, HeightReference as HeightReference$2, ClassificationType as ClassificationType$2, EntityCluster, HorizontalOrigin as HorizontalOrigin$2, VerticalOrigin as VerticalOrigin$2, Cartesian3 as Cartesian3$1, ClockRange, JulianDate as JulianDate$1, ClockStep, CameraEventType, KeyboardEventModifier, Cartesian2 as Cartesian2$1, Ray as Ray$1, Cartographic as Cartographic$1, BoundingSphere as BoundingSphere$1, HeadingPitchRange, Matrix4 as Matrix4$1, PerspectiveFrustum, IntersectionTests as IntersectionTests$1, OrthographicOffCenterFrustum as OrthographicOffCenterFrustum$1, Cesium3DTileColorBlendMode, ShadowMode as ShadowMode$2, Quaternion as Quaternion$1, Matrix3 as Matrix3$1, EllipsoidTerrainProvider, sampleTerrainMostDetailed, Plane as Plane$1, ColorBlendMode, CesiumTerrainProvider, IonResource, ArcGISTiledElevationTerrainProvider, IonImageryProvider, IonWorldImageryStyle, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, DiscardEmptyTileImagePolicy as DiscardEmptyTileImagePolicy$1, TextureMagnificationFilter as TextureMagnificationFilter$2, TextureMinificationFilter as TextureMinificationFilter$2, SceneTransforms as SceneTransforms$1, DistanceDisplayCondition, WebMercatorTilingScheme as WebMercatorTilingScheme$1, Cesium3DTileFeature, Cesium3DTilePointFeature, PropertyBag as PropertyBag$1, TimeIntervalCollection, TimeInterval, Iso8601, CallbackProperty as CallbackProperty$1, ColorMaterialProperty as ColorMaterialProperty$1, ArcType as ArcType$2, ImageryLayerFeatureInfo, HeadingPitchRoll as HeadingPitchRoll$1, Transforms as Transforms$1, Axis, TranslationRotationScale as TranslationRotationScale$1, PolylineDashMaterialProperty as PolylineDashMaterialProperty$1, PerInstanceColorAppearance as PerInstanceColorAppearance$1, Material as Material$1, VertexFormat as VertexFormat$1, GeometryAttribute as GeometryAttribute$1, ComponentDatatype as ComponentDatatype$2, FrustumGeometry, GeometryInstance as GeometryInstance$1, PolygonGeometry, EllipsoidSurfaceAppearance, Intersect as Intersect$2, CustomShader, CustomShaderMode, LightingModel, CustomShaderTranslucencyMode, ImageBasedLighting, EasingFunction, PolygonHierarchy as PolygonHierarchy$1, Credit, WindingOrder as WindingOrder$2, TileMapServiceImageryProvider, WebMapServiceImageryProvider, ClippingPlane, ClippingPlaneCollection, Cesium3DTileStyle, createGooglePhotorealistic3DTileset, Camera, EllipsoidGeodesic as EllipsoidGeodesic$1, PerspectiveOffCenterFrustum, BoundingRectangle as BoundingRectangle$1, Ellipsoid as Ellipsoid$2, SunLight, DirectionalLight, Ion, PostProcessStageSampleMode } from "cesium";
24
24
  import "react-dom";
25
25
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
26
26
  function getDefaultExportFromCjs(t) {
@@ -400,7 +400,7 @@ function requireReactJsxRuntime_development() {
400
400
  ref: !0,
401
401
  __self: !0,
402
402
  __source: !0
403
- }, Hf, xf;
403
+ }, Hf, vf;
404
404
  function wf(al) {
405
405
  if (Xd.call(al, "ref")) {
406
406
  var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
@@ -420,7 +420,7 @@ function requireReactJsxRuntime_development() {
420
420
  function Nf(al, tf) {
421
421
  typeof al.ref == "string" && Pf.current;
422
422
  }
423
- function vf(al, tf) {
423
+ function xf(al, tf) {
424
424
  {
425
425
  var lf = function() {
426
426
  Hf || (Hf = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
@@ -434,7 +434,7 @@ function requireReactJsxRuntime_development() {
434
434
  function Ff(al, tf) {
435
435
  {
436
436
  var lf = function() {
437
- xf || (xf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
437
+ vf || (vf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
438
438
  };
439
439
  lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
440
440
  get: lf,
@@ -484,7 +484,7 @@ function requireReactJsxRuntime_development() {
484
484
  }
485
485
  if (Vf || Gf) {
486
486
  var Zf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
487
- Vf && vf(Mf, Zf), Gf && Ff(Mf, Zf);
487
+ Vf && xf(Mf, Zf), Gf && Ff(Mf, Zf);
488
488
  }
489
489
  return Uf(al, Vf, Gf, Lf, yf, Pf.current, Mf);
490
490
  }
@@ -4502,7 +4502,7 @@ function log2(t) {
4502
4502
  return Math$1.log2(t);
4503
4503
  }
4504
4504
  const rgbParenthesesMatcher$1 = /^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i, hslParenthesesMatcher$1 = /^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;
4505
- let Color$2 = class vp {
4505
+ let Color$2 = class xp {
4506
4506
  constructor(n, o, s, c) {
4507
4507
  Rf(this, "red");
4508
4508
  Rf(this, "green");
@@ -4523,19 +4523,19 @@ let Color$2 = class vp {
4523
4523
  return o;
4524
4524
  let s = rgbaMatcher$1.exec(n);
4525
4525
  if (s !== null) {
4526
- const c = new vp();
4526
+ const c = new xp();
4527
4527
  return c.red = parseInt(s[1], 16) / 15, c.green = parseInt(s[2], 16) / 15, c.blue = parseInt(s[3], 16) / 15, c.alpha = parseInt(defaultValue$1(s[4], "f"), 16) / 15, c;
4528
4528
  }
4529
4529
  if (s = rrggbbaaMatcher$1.exec(n), s !== null) {
4530
- const c = new vp();
4530
+ const c = new xp();
4531
4531
  return c.red = parseInt(s[1], 16) / 255, c.green = parseInt(s[2], 16) / 255, c.blue = parseInt(s[3], 16) / 255, c.alpha = parseInt(defaultValue$1(s[4], "ff"), 16) / 255, c;
4532
4532
  }
4533
4533
  if (s = rgbParenthesesMatcher$1.exec(n), s !== null) {
4534
- const c = new vp();
4534
+ const c = new xp();
4535
4535
  return c.red = parseFloat(s[1]) / (s[1].substr(-1) === "%" ? 100 : 255), c.green = parseFloat(s[2]) / (s[2].substr(-1) === "%" ? 100 : 255), c.blue = parseFloat(s[3]) / (s[3].substr(-1) === "%" ? 100 : 255), c.alpha = parseFloat(defaultValue$1(s[4], "1.0")), c;
4536
4536
  }
4537
4537
  if (s = hslParenthesesMatcher$1.exec(n), s !== null)
4538
- return vp.fromHsl(
4538
+ return xp.fromHsl(
4539
4539
  parseFloat(s[1]) / 360,
4540
4540
  parseFloat(s[2]) / 100,
4541
4541
  parseFloat(s[3]) / 100,
@@ -4545,30 +4545,30 @@ let Color$2 = class vp {
4545
4545
  static fromHsl(n, o, s, c) {
4546
4546
  if (n = defaultValue$1(n, 0) % 1, o = defaultValue$1(o, 0), s = defaultValue$1(s, 0), c = defaultValue$1(c, 1), n && o && s && c) {
4547
4547
  let d = s, h = s, p = s;
4548
- const y = new vp();
4548
+ const y = new xp();
4549
4549
  if (o !== 0) {
4550
4550
  let S;
4551
4551
  s < 0.5 ? S = s * (1 + o) : S = s + o - s * o;
4552
4552
  const P = 2 * s - S;
4553
4553
  d = hue2rgb$1(P, S, n + 1 / 3), h = hue2rgb$1(P, S, n), p = hue2rgb$1(P, S, n - 1 / 3);
4554
4554
  }
4555
- return typeof y > "u" ? new vp(d, h, p, c) : (y.red = d, y.green = h, y.blue = p, y.alpha = c, y);
4555
+ return typeof y > "u" ? new xp(d, h, p, c) : (y.red = d, y.green = h, y.blue = p, y.alpha = c, y);
4556
4556
  }
4557
4557
  }
4558
4558
  toCssHexString() {
4559
- let n = vp.floatToByte(this.red).toString(16);
4559
+ let n = xp.floatToByte(this.red).toString(16);
4560
4560
  n.length < 2 && (n = `0${n}`);
4561
- let o = vp.floatToByte(this.green).toString(16);
4561
+ let o = xp.floatToByte(this.green).toString(16);
4562
4562
  o.length < 2 && (o = `0${o}`);
4563
- let s = vp.floatToByte(this.blue).toString(16);
4563
+ let s = xp.floatToByte(this.blue).toString(16);
4564
4564
  if (s.length < 2 && (s = `0${s}`), this.alpha < 1) {
4565
- let c = vp.floatToByte(this.alpha).toString(16);
4565
+ let c = xp.floatToByte(this.alpha).toString(16);
4566
4566
  return c.length < 2 && (c = `0${c}`), `#${n}${o}${s}${c}`;
4567
4567
  }
4568
4568
  return `#${n}${o}${s}`.toUpperCase();
4569
4569
  }
4570
4570
  static fromBytes(n, o, s, c) {
4571
- return n = this.byteToFloat(defaultValue$1(n, 255)), o = vp.byteToFloat(defaultValue$1(o, 255)), s = vp.byteToFloat(defaultValue$1(s, 255)), c = vp.byteToFloat(defaultValue$1(c, 255)), new vp(n, o, s, c);
4571
+ return n = this.byteToFloat(defaultValue$1(n, 255)), o = xp.byteToFloat(defaultValue$1(o, 255)), s = xp.byteToFloat(defaultValue$1(s, 255)), c = xp.byteToFloat(defaultValue$1(c, 255)), new xp(n, o, s, c);
4572
4572
  }
4573
4573
  };
4574
4574
  function getColor(t) {
@@ -10766,11 +10766,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10766
10766
  for (nf = _f; cf = pd.heap[1], pd.heap[1] = pd.heap[pd.heap_len--], gf(pd, df, 1), sf = pd.heap[1], pd.heap[--pd.heap_max] = cf, pd.heap[--pd.heap_max] = sf, df[2 * nf] = df[2 * cf] + df[2 * sf], pd.depth[nf] = (pd.depth[cf] >= pd.depth[sf] ? pd.depth[cf] : pd.depth[sf]) + 1, df[2 * cf + 1] = df[2 * sf + 1] = nf, pd.heap[1] = nf++, gf(pd, df, 1), 2 <= pd.heap_len; )
10767
10767
  ;
10768
10768
  pd.heap[--pd.heap_max] = pd.heap[1], function(Af, Hf) {
10769
- var xf, wf, Yf, Nf, vf, Ff, Uf = Hf.dyn_tree, Wf = Hf.max_code, Qf = Hf.stat_desc.static_tree, ep = Hf.stat_desc.has_stree, Bf = Hf.stat_desc.extra_bits, tp = Hf.stat_desc.extra_base, qf = Hf.stat_desc.max_length, ip = 0;
10769
+ var vf, wf, Yf, Nf, xf, Ff, Uf = Hf.dyn_tree, Wf = Hf.max_code, Qf = Hf.stat_desc.static_tree, ep = Hf.stat_desc.has_stree, Bf = Hf.stat_desc.extra_bits, tp = Hf.stat_desc.extra_base, qf = Hf.stat_desc.max_length, ip = 0;
10770
10770
  for (Nf = 0; Nf <= nt; Nf++)
10771
10771
  Af.bl_count[Nf] = 0;
10772
- for (Uf[2 * Af.heap[Af.heap_max] + 1] = 0, xf = Af.heap_max + 1; xf < W; xf++)
10773
- qf < (Nf = Uf[2 * Uf[2 * (wf = Af.heap[xf]) + 1] + 1] + 1) && (Nf = qf, ip++), Uf[2 * wf + 1] = Nf, Wf < wf || (Af.bl_count[Nf]++, vf = 0, tp <= wf && (vf = Bf[wf - tp]), Ff = Uf[2 * wf], Af.opt_len += Ff * (Nf + vf), ep && (Af.static_len += Ff * (Qf[2 * wf + 1] + vf)));
10772
+ for (Uf[2 * Af.heap[Af.heap_max] + 1] = 0, vf = Af.heap_max + 1; vf < W; vf++)
10773
+ qf < (Nf = Uf[2 * Uf[2 * (wf = Af.heap[vf]) + 1] + 1] + 1) && (Nf = qf, ip++), Uf[2 * wf + 1] = Nf, Wf < wf || (Af.bl_count[Nf]++, xf = 0, tp <= wf && (xf = Bf[wf - tp]), Ff = Uf[2 * wf], Af.opt_len += Ff * (Nf + xf), ep && (Af.static_len += Ff * (Qf[2 * wf + 1] + xf)));
10774
10774
  if (ip !== 0) {
10775
10775
  do {
10776
10776
  for (Nf = qf - 1; Af.bl_count[Nf] === 0; )
@@ -10779,7 +10779,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10779
10779
  } while (0 < ip);
10780
10780
  for (Nf = qf; Nf !== 0; Nf--)
10781
10781
  for (wf = Af.bl_count[Nf]; wf !== 0; )
10782
- Wf < (Yf = Af.heap[--xf]) || (Uf[2 * Yf + 1] !== Nf && (Af.opt_len += (Nf - Uf[2 * Yf + 1]) * Uf[2 * Yf], Uf[2 * Yf + 1] = Nf), wf--);
10782
+ Wf < (Yf = Af.heap[--vf]) || (Uf[2 * Yf + 1] !== Nf && (Af.opt_len += (Nf - Uf[2 * Yf + 1]) * Uf[2 * Yf], Uf[2 * Yf + 1] = Nf), wf--);
10783
10783
  }
10784
10784
  }(pd, Zd), ff(df, Pf, pd.bl_count);
10785
10785
  }
@@ -14848,7 +14848,7 @@ function useHooks$a({
14848
14848
  [y]
14849
14849
  ), lt = useRef(S), _i = useCallback(
14850
14850
  (Xd, gd) => {
14851
- var Af, Hf, xf, wf, Yf;
14851
+ var Af, Hf, vf, wf, Yf;
14852
14852
  const pd = y.get(Xd);
14853
14853
  if (!pd)
14854
14854
  return;
@@ -14869,7 +14869,7 @@ function useHooks$a({
14869
14869
  extensionId: pd.compat.extensionId,
14870
14870
  property: {
14871
14871
  default: {
14872
- ...((xf = pd.compat.property) == null ? void 0 : xf.default) || {},
14872
+ ...((vf = pd.compat.property) == null ? void 0 : vf.default) || {},
14873
14873
  ...nf.default || {}
14874
14874
  }
14875
14875
  }
@@ -14881,8 +14881,8 @@ function useHooks$a({
14881
14881
  return;
14882
14882
  pd.type === "simple" && ((wf = pd.data) != null && wf.value) && // If data isn't cachable, reuse layer id for performance.
14883
14883
  DATA_CACHE_KEYS.some((Nf) => {
14884
- var vf;
14885
- return !((vf = pd.data) != null && vf[Nf]);
14884
+ var xf;
14885
+ return !((xf = pd.data) != null && xf[Nf]);
14886
14886
  }) && Object.isExtensible(pd.data.value) && df.type === "simple" && ((Yf = df == null ? void 0 : df.data) != null && Yf.value) && (df.data.value.id = Xd);
14887
14887
  const Cf = { id: Xd, ...omit(df, "id", "type", "children") }, pf = lt.current, _f = pf.findIndex((Nf) => Nf.id === Xd), Pf = _f < 0 ? [...pf, Cf] : [
14888
14888
  ...pf.slice(0, _f),
@@ -19973,15 +19973,15 @@ function useHooks$9({
19973
19973
  Pf.current === "sketch" ? "default" : Pf.current
19974
19974
  ));
19975
19975
  }, [mt]);
19976
- const xf = useRef(mt);
19977
- xf.current = mt, useEffect(() => {
19976
+ const vf = useRef(mt);
19977
+ vf.current = mt, useEffect(() => {
19978
19978
  rp.current || s !== "sketch" && Af.current && Hf.current();
19979
19979
  }, [s, kt]);
19980
19980
  const wf = useRef([]), Yf = useCallback((rf) => {
19981
19981
  wf.current.push(rf);
19982
19982
  }, []), Nf = useRef(Yf);
19983
19983
  Nf.current = Yf;
19984
- const vf = useRef(void 0), Ff = useMemo(
19984
+ const xf = useRef(void 0), Ff = useMemo(
19985
19985
  () => Pe.context.catchedControlPointIndex,
19986
19986
  [Pe.context.catchedControlPointIndex]
19987
19987
  ), Uf = useMemo(
@@ -19993,7 +19993,7 @@ function useHooks$9({
19993
19993
  if (wf.current.forEach((bf) => {
19994
19994
  bf(z);
19995
19995
  }), z)
19996
- vf.current = z;
19996
+ xf.current = z;
19997
19997
  else {
19998
19998
  if (Wf.current) {
19999
19999
  Wf.current = !1;
@@ -20006,12 +20006,12 @@ function useHooks$9({
20006
20006
  }
20007
20007
  ]), setTimeout(() => {
20008
20008
  var bf, If, Xf;
20009
- vf.current && ((Xf = o.current) == null || Xf.selectFeatures([
20009
+ xf.current && ((Xf = o.current) == null || Xf.selectFeatures([
20010
20010
  {
20011
- layerId: (bf = vf.current) == null ? void 0 : bf.layerId,
20012
- featureId: [(If = vf.current) == null ? void 0 : If.feature.id]
20011
+ layerId: (bf = xf.current) == null ? void 0 : bf.layerId,
20012
+ featureId: [(If = xf.current) == null ? void 0 : If.feature.id]
20013
20013
  }
20014
- ])), vf.current = void 0;
20014
+ ])), xf.current = void 0;
20015
20015
  }, 50);
20016
20016
  }
20017
20017
  }, [o, z, wf]);
@@ -20582,7 +20582,7 @@ function Gt$1() {
20582
20582
  ref: !0,
20583
20583
  __self: !0,
20584
20584
  __source: !0
20585
- }, Hf, xf;
20585
+ }, Hf, vf;
20586
20586
  function wf(al) {
20587
20587
  if (Xd.call(al, "ref")) {
20588
20588
  var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
@@ -20602,7 +20602,7 @@ function Gt$1() {
20602
20602
  function Nf(al, tf) {
20603
20603
  typeof al.ref == "string" && Pf.current;
20604
20604
  }
20605
- function vf(al, tf) {
20605
+ function xf(al, tf) {
20606
20606
  {
20607
20607
  var lf = function() {
20608
20608
  Hf || (Hf = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
@@ -20616,7 +20616,7 @@ function Gt$1() {
20616
20616
  function Ff(al, tf) {
20617
20617
  {
20618
20618
  var lf = function() {
20619
- xf || (xf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
20619
+ vf || (vf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
20620
20620
  };
20621
20621
  lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
20622
20622
  get: lf,
@@ -20666,7 +20666,7 @@ function Gt$1() {
20666
20666
  }
20667
20667
  if (Vf || Gf) {
20668
20668
  var Zf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
20669
- Vf && vf(Mf, Zf), Gf && Ff(Mf, Zf);
20669
+ Vf && xf(Mf, Zf), Gf && Ff(Mf, Zf);
20670
20670
  }
20671
20671
  return Uf(al, Vf, Gf, Lf, yf, Pf.current, Mf);
20672
20672
  }
@@ -41564,8 +41564,8 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41564
41564
  endPlaneNormalScratch
41565
41565
  );
41566
41566
  Af = Cartesian3.normalize(Af, Af);
41567
- const Hf = cf / ba, xf = uf / ba;
41568
- let wf = 0, Yf, Nf, vf, Ff = 0, Uf = 0;
41567
+ const Hf = cf / ba, vf = uf / ba;
41568
+ let wf = 0, Yf, Nf, xf, Ff = 0, Uf = 0;
41569
41569
  if (h) {
41570
41570
  wf = Cartesian3.distance(Xd, gd), Yf = EncodedCartesian3.fromCartesian(
41571
41571
  Xd,
@@ -41574,9 +41574,9 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41574
41574
  gd,
41575
41575
  Xd,
41576
41576
  forwardOffset2DScratch
41577
- ), vf = Cartesian3.normalize(Nf, right2DScratch);
41578
- const rf = vf.x;
41579
- vf.x = vf.y, vf.y = -rf, Ff = wf / La, Uf = ff / La;
41577
+ ), xf = Cartesian3.normalize(Nf, right2DScratch);
41578
+ const rf = xf.x;
41579
+ xf.x = xf.y, xf.y = -rf, Ff = wf / La, Uf = ff / La;
41580
41580
  }
41581
41581
  for (Sc = 0; Sc < 8; Sc++) {
41582
41582
  const rf = Nl + Sc * 4, bf = Xs + Sc * 2, If = rf + 3, Xf = Sc < 4 ? 1 : -1, jf = Sc === 2 || Sc === 3 || Sc === 6 || Sc === 7 ? 1 : -1;
@@ -41593,8 +41593,8 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41593
41593
  kt,
41594
41594
  rf
41595
41595
  );
41596
- let np = xf * jf;
41597
- np === 0 && jf < 0 && (np = 9), kt[If] = np, h && (mn[rf] = Yf.high.x, mn[rf + 1] = Yf.high.y, mn[rf + 2] = Yf.low.x, mn[rf + 3] = Yf.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] = Nf.x, pi[rf + 1] = Nf.y, pi[rf + 2] = vf.x, pi[rf + 3] = vf.y, Sa[bf] = Ff * Xf, np = Uf * jf, np === 0 && jf < 0 && (np = 9), Sa[bf + 1] = np);
41596
+ let np = vf * jf;
41597
+ np === 0 && jf < 0 && (np = 9), kt[If] = np, h && (mn[rf] = Yf.high.x, mn[rf + 1] = Yf.high.y, mn[rf + 2] = Yf.low.x, mn[rf + 3] = Yf.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] = Nf.x, pi[rf + 1] = Nf.y, pi[rf + 2] = xf.x, pi[rf + 3] = xf.y, Sa[bf] = Ff * Xf, np = Uf * jf, np === 0 && jf < 0 && (np = 9), Sa[bf + 1] = np);
41598
41598
  }
41599
41599
  const Wf = adjustHeightStartBottomScratch, Qf = adjustHeightEndBottomScratch, ep = adjustHeightStartTopScratch, Bf = adjustHeightEndTopScratch, tp = Rectangle.fromCartographicArray(
41600
41600
  getHeightCartographics,
@@ -64347,21 +64347,15 @@ const tiles = {
64347
64347
  accessToken: t
64348
64348
  }).catch(console.error),
64349
64349
  open_street_map: () => new OpenStreetMapImageryProvider({
64350
- url: "https://a.tile.openstreetmap.org/",
64351
- credit: "Copyright: Tiles © Esri Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"
64350
+ url: "https://tile.openstreetmap.org/{zoom}/{x}/{y}.png",
64351
+ credit: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
64352
64352
  }),
64353
- esri_world_topo: () => ArcGisMapServerImageryProvider.fromUrl(
64354
- "https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",
64355
- {
64356
- credit: "Copyright: Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Communit",
64357
- enablePickFeatures: !1
64358
- }
64359
- ).catch(console.error),
64360
- black_marble: ({ cesiumIonAccessToken: t } = {}) => IonImageryProvider.fromAssetId(3812, { accessToken: t }).catch(
64361
- console.error
64362
- ),
64353
+ black_marble: ({ cesiumIonAccessToken: t } = {}) => IonImageryProvider.fromAssetId(3812, {
64354
+ accessToken: t
64355
+ }).catch(console.error),
64363
64356
  japan_gsi_standard: () => new OpenStreetMapImageryProvider({
64364
- url: "https://cyberjapandata.gsi.go.jp/xyz/std/"
64357
+ url: "https://cyberjapandata.gsi.go.jp/xyz/std/",
64358
+ credit: `<a href='https://maps.gsi.go.jp/development/ichiran.html'>国土地理院</a>, Shoreline data is derived from: United States. National Imagery and Mapping Agency. "Vector Map Level 0 (VMAP0)." Bethesda, MD: Denver, CO: The Agency; USGS Information Services, 1997.`
64365
64359
  }),
64366
64360
  url: ({ url: t, heatmap: n, tile_zoomLevel: o } = {}) => t ? new UrlTemplateImageryProvider({
64367
64361
  url: t,
@@ -66169,7 +66163,7 @@ const Up = class Up {
66169
66163
  Hp = new WeakMap(), // private constructor
66170
66164
  Jf(Up, Hp, !1);
66171
66165
  let Stack = Up;
66172
- var wp, _p, Vp, Rp, $p, hp, Mp, fp, sp, $f, xp, Ep, Cp, gp, Pp, yp, Gp, Dp, Ip, Lp, Xp, Sp, qp, ig, Wp, Np, _m, Tp, tg, lg, Zp, Yp, Om, Op, kp, Fp, zp, Am, rg, jp, qm, Kp, eg, ap, lp, Dm, ag, Bp, Qp;
66166
+ var wp, _p, Vp, Rp, $p, hp, Mp, fp, sp, $f, vp, Ep, Cp, gp, Pp, yp, Gp, Dp, Ip, Lp, Xp, Sp, qp, ig, Wp, Np, _m, Tp, tg, lg, Zp, Yp, Om, Op, kp, Fp, zp, Am, rg, jp, qm, Kp, eg, ap, lp, Dm, ag, Bp, Qp;
66173
66167
  const og = class og {
66174
66168
  constructor(n) {
66175
66169
  Jf(this, qp);
@@ -66256,7 +66250,7 @@ const og = class og {
66256
66250
  Jf(this, fp, void 0);
66257
66251
  Jf(this, sp, void 0);
66258
66252
  Jf(this, $f, void 0);
66259
- Jf(this, xp, void 0);
66253
+ Jf(this, vp, void 0);
66260
66254
  Jf(this, Ep, void 0);
66261
66255
  Jf(this, Cp, void 0);
66262
66256
  Jf(this, gp, void 0);
@@ -66300,7 +66294,7 @@ const og = class og {
66300
66294
  }
66301
66295
  if (nt !== void 0 && typeof nt != "function")
66302
66296
  throw new TypeError("fetchMethod must be a function if specified");
66303
- if (zf(this, $p, nt), zf(this, Xp, !!nt), zf(this, fp, /* @__PURE__ */ new Map()), zf(this, sp, new Array(o).fill(void 0)), zf(this, $f, new Array(o).fill(void 0)), zf(this, xp, new pi(o)), zf(this, Ep, new pi(o)), zf(this, Cp, 0), zf(this, gp, 0), zf(this, Pp, Stack.create(o)), zf(this, hp, 0), zf(this, Mp, 0), typeof S == "function" && zf(this, Vp, S), typeof P == "function" ? (zf(this, Rp, P), zf(this, yp, [])) : (zf(this, Rp, void 0), zf(this, yp, void 0)), zf(this, Lp, !!ef(this, Vp)), zf(this, Sp, !!ef(this, Rp)), this.noDisposeOnSet = !!L, this.noUpdateTTL = !!F, this.noDeleteOnFetchRejection = !!Pe, this.allowStaleOnFetchRejection = !!mt, this.allowStaleOnFetchAbort = !!kt, this.ignoreFetchAbort = !!mn, this.maxEntrySize !== 0) {
66297
+ if (zf(this, $p, nt), zf(this, Xp, !!nt), zf(this, fp, /* @__PURE__ */ new Map()), zf(this, sp, new Array(o).fill(void 0)), zf(this, $f, new Array(o).fill(void 0)), zf(this, vp, new pi(o)), zf(this, Ep, new pi(o)), zf(this, Cp, 0), zf(this, gp, 0), zf(this, Pp, Stack.create(o)), zf(this, hp, 0), zf(this, Mp, 0), typeof S == "function" && zf(this, Vp, S), typeof P == "function" ? (zf(this, Rp, P), zf(this, yp, [])) : (zf(this, Rp, void 0), zf(this, yp, void 0)), zf(this, Lp, !!ef(this, Vp)), zf(this, Sp, !!ef(this, Rp)), this.noDisposeOnSet = !!L, this.noUpdateTTL = !!F, this.noDeleteOnFetchRejection = !!Pe, this.allowStaleOnFetchRejection = !!mt, this.allowStaleOnFetchAbort = !!kt, this.ignoreFetchAbort = !!mn, this.maxEntrySize !== 0) {
66304
66298
  if (ef(this, _p) !== 0 && !isPosInt(ef(this, _p)))
66305
66299
  throw new TypeError("maxSize must be a positive integer if specified");
66306
66300
  if (!isPosInt(this.maxEntrySize))
@@ -66337,7 +66331,7 @@ const og = class og {
66337
66331
  keyMap: ef(n, fp),
66338
66332
  keyList: ef(n, sp),
66339
66333
  valList: ef(n, $f),
66340
- next: ef(n, xp),
66334
+ next: ef(n, vp),
66341
66335
  prev: ef(n, Ep),
66342
66336
  get head() {
66343
66337
  return ef(n, Cp);
@@ -66577,7 +66571,7 @@ const og = class og {
66577
66571
  return y && (y.set = "miss", y.maxEntrySizeExceeded = !0), this.delete(n), this;
66578
66572
  let L = ef(this, hp) === 0 ? void 0 : ef(this, fp).get(n);
66579
66573
  if (L === void 0)
66580
- L = ef(this, hp) === 0 ? ef(this, gp) : ef(this, Pp).length !== 0 ? ef(this, Pp).pop() : ef(this, hp) === ef(this, wp) ? kf(this, jp, qm).call(this, !1) : ef(this, hp), ef(this, sp)[L] = n, ef(this, $f)[L] = o, ef(this, fp).set(n, L), ef(this, xp)[ef(this, gp)] = L, ef(this, Ep)[L] = ef(this, gp), zf(this, gp, L), jm(this, hp)._++, ef(this, Yp).call(this, L, P, y), y && (y.set = "add"), S = !1;
66574
+ L = ef(this, hp) === 0 ? ef(this, gp) : ef(this, Pp).length !== 0 ? ef(this, Pp).pop() : ef(this, hp) === ef(this, wp) ? kf(this, jp, qm).call(this, !1) : ef(this, hp), ef(this, sp)[L] = n, ef(this, $f)[L] = o, ef(this, fp).set(n, L), ef(this, vp)[ef(this, gp)] = L, ef(this, Ep)[L] = ef(this, gp), zf(this, gp, L), jm(this, hp)._++, ef(this, Yp).call(this, L, P, y), y && (y.set = "add"), S = !1;
66581
66575
  else {
66582
66576
  kf(this, Bp, Qp).call(this, L);
66583
66577
  const W = ef(this, $f)[L];
@@ -66750,7 +66744,7 @@ const og = class og {
66750
66744
  else {
66751
66745
  ef(this, Zp).call(this, p);
66752
66746
  const y = ef(this, $f)[p];
66753
- kf(this, ap, lp).call(this, y) ? y.__abortController.abort(new Error("deleted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((s = ef(this, Vp)) == null || s.call(this, y, n, "delete")), ef(this, Sp) && ((c = ef(this, yp)) == null || c.push([y, n, "delete"]))), ef(this, fp).delete(n), ef(this, sp)[p] = void 0, ef(this, $f)[p] = void 0, p === ef(this, gp) ? zf(this, gp, ef(this, Ep)[p]) : p === ef(this, Cp) ? zf(this, Cp, ef(this, xp)[p]) : (ef(this, xp)[ef(this, Ep)[p]] = ef(this, xp)[p], ef(this, Ep)[ef(this, xp)[p]] = ef(this, Ep)[p]), jm(this, hp)._--, ef(this, Pp).push(p);
66747
+ kf(this, ap, lp).call(this, y) ? y.__abortController.abort(new Error("deleted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((s = ef(this, Vp)) == null || s.call(this, y, n, "delete")), ef(this, Sp) && ((c = ef(this, yp)) == null || c.push([y, n, "delete"]))), ef(this, fp).delete(n), ef(this, sp)[p] = void 0, ef(this, $f)[p] = void 0, p === ef(this, gp) ? zf(this, gp, ef(this, Ep)[p]) : p === ef(this, Cp) ? zf(this, Cp, ef(this, vp)[p]) : (ef(this, vp)[ef(this, Ep)[p]] = ef(this, vp)[p], ef(this, Ep)[ef(this, vp)[p]] = ef(this, Ep)[p]), jm(this, hp)._--, ef(this, Pp).push(p);
66754
66748
  }
66755
66749
  }
66756
66750
  if (ef(this, Sp) && ((d = ef(this, yp)) != null && d.length)) {
@@ -66783,7 +66777,7 @@ const og = class og {
66783
66777
  }
66784
66778
  }
66785
66779
  };
66786
- wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(), $p = new WeakMap(), hp = new WeakMap(), Mp = new WeakMap(), fp = new WeakMap(), sp = new WeakMap(), $f = new WeakMap(), xp = new WeakMap(), Ep = new WeakMap(), Cp = new WeakMap(), gp = new WeakMap(), Pp = new WeakMap(), yp = new WeakMap(), Gp = new WeakMap(), Dp = new WeakMap(), Ip = new WeakMap(), Lp = new WeakMap(), Xp = new WeakMap(), Sp = new WeakMap(), qp = new WeakSet(), ig = function() {
66780
+ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(), $p = new WeakMap(), hp = new WeakMap(), Mp = new WeakMap(), fp = new WeakMap(), sp = new WeakMap(), $f = new WeakMap(), vp = new WeakMap(), Ep = new WeakMap(), Cp = new WeakMap(), gp = new WeakMap(), Pp = new WeakMap(), yp = new WeakMap(), Gp = new WeakMap(), Dp = new WeakMap(), Ip = new WeakMap(), Lp = new WeakMap(), Xp = new WeakMap(), Sp = new WeakMap(), qp = new WeakSet(), ig = function() {
66787
66781
  const n = new ZeroArray(ef(this, wp)), o = new ZeroArray(ef(this, wp));
66788
66782
  zf(this, Ip, n), zf(this, Dp, o), zf(this, _m, (d, h, p = perf.now()) => {
66789
66783
  if (o[d] = h !== 0 ? p : 0, n[d] = h, h !== 0 && this.ttlAutopurge) {
@@ -66845,13 +66839,13 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
66845
66839
  }, Fp = new WeakSet(), zp = function* ({ allowStale: n = this.allowStale } = {}) {
66846
66840
  if (ef(this, hp))
66847
66841
  for (let o = ef(this, Cp); !(!kf(this, Am, rg).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this, gp))); )
66848
- o = ef(this, xp)[o];
66842
+ o = ef(this, vp)[o];
66849
66843
  }, Am = new WeakSet(), rg = function(n) {
66850
66844
  return n !== void 0 && ef(this, fp).get(ef(this, sp)[n]) === n;
66851
66845
  }, jp = new WeakSet(), qm = function(n) {
66852
66846
  var d, h;
66853
66847
  const o = ef(this, Cp), s = ef(this, sp)[o], c = ef(this, $f)[o];
66854
- return ef(this, Xp) && kf(this, ap, lp).call(this, c) ? c.__abortController.abort(new Error("evicted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((d = ef(this, Vp)) == null || d.call(this, c, s, "evict")), ef(this, Sp) && ((h = ef(this, yp)) == null || h.push([c, s, "evict"]))), ef(this, Zp).call(this, o), n && (ef(this, sp)[o] = void 0, ef(this, $f)[o] = void 0, ef(this, Pp).push(o)), ef(this, hp) === 1 ? (zf(this, Cp, zf(this, gp, 0)), ef(this, Pp).length = 0) : zf(this, Cp, ef(this, xp)[o]), ef(this, fp).delete(s), jm(this, hp)._--, o;
66848
+ return ef(this, Xp) && kf(this, ap, lp).call(this, c) ? c.__abortController.abort(new Error("evicted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((d = ef(this, Vp)) == null || d.call(this, c, s, "evict")), ef(this, Sp) && ((h = ef(this, yp)) == null || h.push([c, s, "evict"]))), ef(this, Zp).call(this, o), n && (ef(this, sp)[o] = void 0, ef(this, $f)[o] = void 0, ef(this, Pp).push(o)), ef(this, hp) === 1 ? (zf(this, Cp, zf(this, gp, 0)), ef(this, Pp).length = 0) : zf(this, Cp, ef(this, vp)[o]), ef(this, fp).delete(s), jm(this, hp)._--, o;
66855
66849
  }, Kp = new WeakSet(), eg = function(n, o, s, c) {
66856
66850
  const d = o === void 0 ? void 0 : ef(this, $f)[o];
66857
66851
  if (kf(this, ap, lp).call(this, d))
@@ -66896,9 +66890,9 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
66896
66890
  const o = n;
66897
66891
  return !!o && o instanceof Promise && o.hasOwnProperty("__staleWhileFetching") && o.__abortController instanceof AbortController;
66898
66892
  }, Dm = new WeakSet(), ag = function(n, o) {
66899
- ef(this, Ep)[o] = n, ef(this, xp)[n] = o;
66893
+ ef(this, Ep)[o] = n, ef(this, vp)[n] = o;
66900
66894
  }, Bp = new WeakSet(), Qp = function(n) {
66901
- n !== ef(this, gp) && (n === ef(this, Cp) ? zf(this, Cp, ef(this, xp)[n]) : kf(this, Dm, ag).call(this, ef(this, Ep)[n], ef(this, xp)[n]), kf(this, Dm, ag).call(this, ef(this, gp), n), zf(this, gp, n));
66895
+ n !== ef(this, gp) && (n === ef(this, Cp) ? zf(this, Cp, ef(this, vp)[n]) : kf(this, Dm, ag).call(this, ef(this, Ep)[n], ef(this, vp)[n]), kf(this, Dm, ag).call(this, ef(this, gp), n), zf(this, gp, n));
66902
66896
  };
66903
66897
  let LRUCache = og;
66904
66898
  const SIDE_PLANES = [
@@ -71701,24 +71695,24 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
71701
71695
  ), Xd = useMemo(() => {
71702
71696
  if (Wa)
71703
71697
  return Wa;
71704
- const xf = 15, wf = (of ? Ef : P) / 2 + xf, Yf = (of ? Sf : P) / 2 + xf;
71698
+ const vf = 15, wf = (of ? Ef : P) / 2 + vf, Yf = (of ? Sf : P) / 2 + vf;
71705
71699
  return new Cartesian2$1(
71706
71700
  se.includes("left") || se.includes("right") ? wf * (se.includes("left") ? -1 : 1) : 0,
71707
71701
  se.includes("top") || se.includes("bottom") ? Yf * (se.includes("top") ? -1 : 1) : 0
71708
71702
  );
71709
71703
  }, [of, Ef, P, Sf, se, Wa]), gd = useMemo(() => Color$3.WHITE.withAlpha(0.4), []), pd = useRef(null), Zd = getTag((Hf = pd.current) == null ? void 0 : Hf.cesiumElement), cf = useMemo(
71710
71704
  () => {
71711
- var xf, wf;
71705
+ var vf, wf;
71712
71706
  return toColor$1(
71713
- Zd != null && Zd.isFeatureSelected && typeof ((xf = c == null ? void 0 : c.marker) == null ? void 0 : xf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : ma
71707
+ Zd != null && Zd.isFeatureSelected && typeof ((vf = c == null ? void 0 : c.marker) == null ? void 0 : vf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : ma
71714
71708
  );
71715
71709
  },
71716
71710
  [ma, c, Zd == null ? void 0 : Zd.isFeatureSelected]
71717
71711
  ), sf = useMemo(
71718
71712
  () => {
71719
- var xf, wf;
71713
+ var vf, wf;
71720
71714
  return toColor$1(
71721
- Zd != null && Zd.isFeatureSelected && typeof ((xf = c == null ? void 0 : c.marker) == null ? void 0 : xf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : F
71715
+ Zd != null && Zd.isFeatureSelected && typeof ((vf = c == null ? void 0 : c.marker) == null ? void 0 : vf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : F
71722
71716
  );
71723
71717
  },
71724
71718
  [F, c, Zd == null ? void 0 : Zd.isFeatureSelected]
@@ -82612,7 +82606,7 @@ const useDrawClipping = ({
82612
82606
  onComputedFeatureFetch: y,
82613
82607
  onLayerFetch: S
82614
82608
  }) => {
82615
- var Af, Hf, xf, wf, Yf, Nf;
82609
+ var Af, Hf, vf, wf, Yf, Nf;
82616
82610
  const { viewer: P } = $e$1(), L = useRef(), { onLayerLoad: F, updateCredits: N } = useContext(), z = useRef(d == null ? void 0 : d.id);
82617
82611
  z.current = d == null ? void 0 : d.id;
82618
82612
  const {
@@ -82638,8 +82632,8 @@ const useDrawClipping = ({
82638
82632
  builtinBoxProps: Sc,
82639
82633
  allowEnterGround: ms
82640
82634
  } = useClippingBox({ clipping: mt, boxId: n }), [Xs, yu] = useState(), { url: Nl, type: pu, idProperty: Ru, googleMapApiKey: Vd } = useData(d), Gd = !mn && !!Ru, [uf, ff] = useState(!1), mf = useRef(lt), hf = useMemo(() => {
82641
- var vf, Ff;
82642
- return (!((vf = mf.current) != null && vf.length) || !((Ff = mf.current) != null && Ff.every(
82635
+ var xf, Ff;
82636
+ return (!((xf = mf.current) != null && xf.length) || !((Ff = mf.current) != null && Ff.every(
82643
82637
  (Uf, Wf) => {
82644
82638
  var Qf, ep, Bf, tp, qf, ip;
82645
82639
  return ((Qf = Uf.normal) == null ? void 0 : Qf.x) === ((ep = lt == null ? void 0 : lt[Wf].normal) == null ? void 0 : ep.x) && ((Bf = Uf.normal) == null ? void 0 : Bf.y) === ((tp = lt == null ? void 0 : lt[Wf].normal) == null ? void 0 : tp.y) && ((qf = Uf.normal) == null ? void 0 : qf.z) === ((ip = lt == null ? void 0 : lt[Wf].normal) == null ? void 0 : ip.z) && Uf.distance === (lt == null ? void 0 : lt[Wf].distance);
@@ -82648,11 +82642,11 @@ const useDrawClipping = ({
82648
82642
  }, [lt]), of = ba === "inside" ? -1 : 1, [gf, Ef] = useState(
82649
82643
  () => new ClippingPlaneCollection({
82650
82644
  planes: hf == null ? void 0 : hf.map(
82651
- (vf) => {
82645
+ (xf) => {
82652
82646
  var Ff, Uf, Wf;
82653
82647
  return new ClippingPlane(
82654
- new Cartesian3$1((Ff = vf.normal) == null ? void 0 : Ff.x, (Uf = vf.normal) == null ? void 0 : Uf.y, (Wf = vf.normal) == null ? void 0 : Wf.z),
82655
- (vf.distance || 0) * of
82648
+ new Cartesian3$1((Ff = xf.normal) == null ? void 0 : Ff.x, (Uf = xf.normal) == null ? void 0 : Uf.y, (Wf = xf.normal) == null ? void 0 : Wf.z),
82649
+ (xf.distance || 0) * of
82656
82650
  );
82657
82651
  }
82658
82652
  ),
@@ -82666,11 +82660,11 @@ const useDrawClipping = ({
82666
82660
  Ef(
82667
82661
  new ClippingPlaneCollection({
82668
82662
  planes: hf == null ? void 0 : hf.map(
82669
- (vf) => {
82663
+ (xf) => {
82670
82664
  var Ff, Uf, Wf;
82671
82665
  return new ClippingPlane(
82672
- new Cartesian3$1((Ff = vf.normal) == null ? void 0 : Ff.x, (Uf = vf.normal) == null ? void 0 : Uf.y, (Wf = vf.normal) == null ? void 0 : Wf.z),
82673
- (vf.distance || 0) * of
82666
+ new Cartesian3$1((Ff = xf.normal) == null ? void 0 : Ff.x, (Uf = xf.normal) == null ? void 0 : Uf.y, (Wf = xf.normal) == null ? void 0 : Wf.z),
82667
+ (xf.distance || 0) * of
82674
82668
  );
82675
82669
  }
82676
82670
  ),
@@ -82690,12 +82684,12 @@ const useDrawClipping = ({
82690
82684
  clippingPlanes: gf,
82691
82685
  isTilesetReady: uf
82692
82686
  }), [af] = useState(() => new TilesetFeatureIndex()), Xd = useCallback(
82693
- (vf) => {
82694
- vf != null && vf.cesiumElement && attachTag(vf.cesiumElement, {
82687
+ (xf) => {
82688
+ xf != null && xf.cesiumElement && attachTag(xf.cesiumElement, {
82695
82689
  layerId: (d == null ? void 0 : d.id) || t,
82696
82690
  featureIndex: Gd ? af : void 0,
82697
82691
  appearanceType: "3dtiles"
82698
- }), d != null && d.id && (vf != null && vf.cesiumElement) && ((vf == null ? void 0 : vf.cesiumElement)[layerIdField] = d.id), L.current = vf == null ? void 0 : vf.cesiumElement;
82692
+ }), d != null && d.id && (xf != null && xf.cesiumElement) && ((xf == null ? void 0 : xf.cesiumElement)[layerIdField] = d.id), L.current = xf == null ? void 0 : xf.cesiumElement;
82699
82693
  },
82700
82694
  [t, d == null ? void 0 : d.id, af, Gd]
82701
82695
  ), gd = useRef([]), pd = useRef(kt);
@@ -82703,15 +82697,15 @@ const useDrawClipping = ({
82703
82697
  const [Zd] = useState(() => /* @__PURE__ */ new Map());
82704
82698
  useEffect(() => {
82705
82699
  !L.current || !Gd || !uf || Object.assign(L.current, {
82706
- onSelectFeature: (vf) => {
82707
- const Ff = getTag(vf);
82708
- Ff != null && Ff.featureId && (gd.current.push(Ff.featureId), Zd.set(Ff.featureId, vf.color)), pd.current && (vf.color = toColor(pd.current) ?? vf.color);
82700
+ onSelectFeature: (xf) => {
82701
+ const Ff = getTag(xf);
82702
+ Ff != null && Ff.featureId && (gd.current.push(Ff.featureId), Zd.set(Ff.featureId, xf.color)), pd.current && (xf.color = toColor(pd.current) ?? xf.color);
82709
82703
  },
82710
- onUnselectFeature: (vf) => {
82711
- const Ff = getTag(vf);
82704
+ onUnselectFeature: (xf) => {
82705
+ const Ff = getTag(xf);
82712
82706
  Ff != null && Ff.featureId && (gd.current = gd.current.filter(
82713
82707
  (Uf) => Uf !== Ff.featureId
82714
- )), vf.color = Zd.get((Ff == null ? void 0 : Ff.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
82708
+ )), xf.color = Zd.get((Ff == null ? void 0 : Ff.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
82715
82709
  }
82716
82710
  });
82717
82711
  }, [Zd, af, Gd, uf]), useFeature({
@@ -82728,8 +82722,8 @@ const useDrawClipping = ({
82728
82722
  isTilesetReady: uf
82729
82723
  });
82730
82724
  const [cf, sf] = useState(0), nf = useRef(!1), df = useCallback(
82731
- (vf) => {
82732
- nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene, vf).then((Ff) => {
82725
+ (xf) => {
82726
+ nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene, xf).then((Ff) => {
82733
82727
  sf(Ff ?? 0), nf.current = !1;
82734
82728
  }));
82735
82729
  },
@@ -82738,7 +82732,7 @@ const useDrawClipping = ({
82738
82732
  useEffect(() => {
82739
82733
  if (mt != null && mt.draw)
82740
82734
  return;
82741
- const vf = La || (fa ? [fa.lng, fa.lat, fa.height ?? 0] : void 0), Ff = Cartesian3$1.fromDegrees((vf == null ? void 0 : vf[0]) || 0, (vf == null ? void 0 : vf[1]) || 0, (vf == null ? void 0 : vf[2]) || 0);
82735
+ const xf = La || (fa ? [fa.lng, fa.lat, fa.height ?? 0] : void 0), Ff = Cartesian3$1.fromDegrees((xf == null ? void 0 : xf[0]) || 0, (xf == null ? void 0 : xf[1]) || 0, (xf == null ? void 0 : xf[2]) || 0);
82742
82736
  (async () => {
82743
82737
  if (!L.current || !uf)
82744
82738
  return;
@@ -82775,12 +82769,12 @@ const useDrawClipping = ({
82775
82769
  mt != null && mt.draw || (gf.unionClippingRegions = ba === "outside");
82776
82770
  }, [gf, ba, mt == null ? void 0 : mt.draw]), useEffect(() => {
82777
82771
  mt != null && mt.draw || (gf.removeAll(), hf == null || hf.forEach(
82778
- (vf) => {
82772
+ (xf) => {
82779
82773
  var Ff, Uf, Wf;
82780
82774
  return gf.add(
82781
82775
  new ClippingPlane(
82782
- new Cartesian3$1((Ff = vf.normal) == null ? void 0 : Ff.x, (Uf = vf.normal) == null ? void 0 : Uf.y, (Wf = vf.normal) == null ? void 0 : Wf.z),
82783
- (vf.distance || 0) * of
82776
+ new Cartesian3$1((Ff = xf.normal) == null ? void 0 : Ff.x, (Uf = xf.normal) == null ? void 0 : Uf.y, (Wf = xf.normal) == null ? void 0 : Wf.z),
82777
+ (xf.distance || 0) * of
82784
82778
  )
82785
82779
  );
82786
82780
  }
@@ -82791,8 +82785,8 @@ const useDrawClipping = ({
82791
82785
  return;
82792
82786
  }
82793
82787
  (async () => {
82794
- const vf = await fetch(nt);
82795
- vf.ok && yu(new Cesium3DTileStyle(await vf.json()));
82788
+ const xf = await fetch(nt);
82789
+ xf.ok && yu(new Cesium3DTileStyle(await xf.json()));
82796
82790
  })();
82797
82791
  }, [nt]);
82798
82792
  const Cf = useMemo(() => pu !== "google-photorealistic" || !o ? null : (async () => {
@@ -82809,21 +82803,21 @@ const useDrawClipping = ({
82809
82803
  var Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf;
82810
82804
  if (!(s != null && s.specularEnvironmentMaps) && !(s != null && s.sphericalHarmonicCoefficients) && !((ep = (Qf = c == null ? void 0 : c.scene) == null ? void 0 : Qf.imageBasedLighting) != null && ep.specularEnvironmentMaps) && !((tp = (Bf = c == null ? void 0 : c.scene) == null ? void 0 : Bf.imageBasedLighting) != null && tp.sphericalHarmonicCoefficients))
82811
82805
  return;
82812
- const vf = new ImageBasedLighting(), Ff = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((ip = (qf = c == null ? void 0 : c.scene) == null ? void 0 : qf.imageBasedLighting) == null ? void 0 : ip.specularEnvironmentMaps), Uf = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((Tf = (rp = c == null ? void 0 : c.scene) == null ? void 0 : rp.imageBasedLighting) == null ? void 0 : Tf.intensity), Wf = arrayToCartecian3(
82806
+ const xf = new ImageBasedLighting(), Ff = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((ip = (qf = c == null ? void 0 : c.scene) == null ? void 0 : qf.imageBasedLighting) == null ? void 0 : ip.specularEnvironmentMaps), Uf = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((Tf = (rp = c == null ? void 0 : c.scene) == null ? void 0 : rp.imageBasedLighting) == null ? void 0 : Tf.intensity), Wf = arrayToCartecian3(
82813
82807
  (s == null ? void 0 : s.sphericalHarmonicCoefficients) ?? ((bf = (rf = c == null ? void 0 : c.scene) == null ? void 0 : rf.imageBasedLighting) == null ? void 0 : bf.sphericalHarmonicCoefficients),
82814
82808
  Uf
82815
82809
  );
82816
- return Ff && (vf.specularEnvironmentMaps = Ff), Wf && (vf.sphericalHarmonicCoefficients = Wf), vf;
82810
+ return Ff && (xf.specularEnvironmentMaps = Ff), Wf && (xf.sphericalHarmonicCoefficients = Wf), xf;
82817
82811
  }, [
82818
82812
  s == null ? void 0 : s.specularEnvironmentMaps,
82819
82813
  s == null ? void 0 : s.sphericalHarmonicCoefficients,
82820
82814
  s == null ? void 0 : s.imageBasedLightIntensity,
82821
82815
  (Hf = (Af = c == null ? void 0 : c.scene) == null ? void 0 : Af.imageBasedLighting) == null ? void 0 : Hf.specularEnvironmentMaps,
82822
- (wf = (xf = c == null ? void 0 : c.scene) == null ? void 0 : xf.imageBasedLighting) == null ? void 0 : wf.sphericalHarmonicCoefficients,
82816
+ (wf = (vf = c == null ? void 0 : c.scene) == null ? void 0 : vf.imageBasedLighting) == null ? void 0 : wf.sphericalHarmonicCoefficients,
82823
82817
  (Nf = (Yf = c == null ? void 0 : c.scene) == null ? void 0 : Yf.imageBasedLighting) == null ? void 0 : Nf.intensity
82824
82818
  ]), Pf = useCallback(
82825
- (vf) => {
82826
- ff(!0), S == null || S({ properties: vf.properties }), F == null || F({ layerId: z.current });
82819
+ (xf) => {
82820
+ ff(!0), S == null || S({ properties: xf.properties }), F == null || F({ layerId: z.current });
82827
82821
  },
82828
82822
  [S, F]
82829
82823
  );
@@ -84881,7 +84875,7 @@ const useIBL = ({
84881
84875
  onMount: fa,
84882
84876
  onCreditsUpdate: La
84883
84877
  }) => {
84884
- var sf, nf, df, Cf, pf, _f, Pf, Af, Hf, xf, wf, Yf, Nf, vf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp;
84878
+ var sf, nf, df, Cf, pf, _f, Pf, Af, Hf, vf, wf, Yf, Nf, xf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp;
84885
84879
  const Ra = useRef(null), ma = typeof (d == null ? void 0 : d.cesiumIonAccessToken) == "string" && d.cesiumIonAccessToken ? d.cesiumIonAccessToken : Ion.defaultAccessToken, yt = useEngineRef(t, Ra), lt = useLayerSelectWithRect({
84886
84880
  cesium: Ra,
84887
84881
  engineAPI: yt,
@@ -84923,7 +84917,7 @@ const useIBL = ({
84923
84917
  (df = (nf = (sf = n == null ? void 0 : n.scene) == null ? void 0 : sf.shadow) == null ? void 0 : nf.shadowMap) == null ? void 0 : df.softShadows,
84924
84918
  (_f = (pf = (Cf = n == null ? void 0 : n.scene) == null ? void 0 : Cf.shadow) == null ? void 0 : pf.shadowMap) == null ? void 0 : _f.darkness,
84925
84919
  (Hf = (Af = (Pf = n == null ? void 0 : n.scene) == null ? void 0 : Pf.shadow) == null ? void 0 : Af.shadowMap) == null ? void 0 : Hf.size,
84926
- (Yf = (wf = (xf = n == null ? void 0 : n.scene) == null ? void 0 : xf.shadow) == null ? void 0 : wf.shadowMap) == null ? void 0 : Yf.maximumDistance
84920
+ (Yf = (wf = (vf = n == null ? void 0 : n.scene) == null ? void 0 : vf.shadow) == null ? void 0 : wf.shadowMap) == null ? void 0 : Yf.maximumDistance
84927
84921
  ]);
84928
84922
  const _i = useRef(), ba = useRef();
84929
84923
  useEffect(() => {
@@ -85009,7 +85003,7 @@ const useIBL = ({
85009
85003
  ) : void 0;
85010
85004
  },
85011
85005
  [
85012
- (vf = (Nf = n == null ? void 0 : n.scene) == null ? void 0 : Nf.imageBasedLighting) == null ? void 0 : vf.sphericalHarmonicCoefficients,
85006
+ (xf = (Nf = n == null ? void 0 : n.scene) == null ? void 0 : Nf.imageBasedLighting) == null ? void 0 : xf.sphericalHarmonicCoefficients,
85013
85007
  (Uf = (Ff = n == null ? void 0 : n.scene) == null ? void 0 : Ff.imageBasedLighting) == null ? void 0 : Uf.intensity
85014
85008
  ]
85015
85009
  );
@@ -91128,7 +91122,7 @@ const Cesium = ({
91128
91122
  onLayerLoad: lt,
91129
91123
  onCreditsUpdate: _i
91130
91124
  }, ba) => {
91131
- var gd, pd, Zd, cf, sf, nf, df, Cf, pf, _f, Pf, Af, Hf, xf, wf, Yf, Nf, vf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf, If, Xf, jf, np, up, dp, pp, mp, al, tf, lf;
91125
+ var gd, pd, Zd, cf, sf, nf, df, Cf, pf, _f, Pf, Af, Hf, vf, wf, Yf, Nf, xf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf, If, Xf, jf, np, up, dp, pp, mp, al, tf, lf;
91132
91126
  const {
91133
91127
  cesium: Sc,
91134
91128
  mouseEventHandles: ms,
@@ -91326,12 +91320,12 @@ const Cesium = ({
91326
91320
  msaaSamples: Vd,
91327
91321
  useDepthPicking: !1,
91328
91322
  useWebVR: !!((Hf = o == null ? void 0 : o.scene) != null && Hf.vr) || void 0,
91329
- debugShowFramesPerSecond: !!((xf = o == null ? void 0 : o.debug) != null && xf.showFramesPerSecond),
91323
+ debugShowFramesPerSecond: !!((vf = o == null ? void 0 : o.debug) != null && vf.showFramesPerSecond),
91330
91324
  verticalExaggerationRelativeHeight: (wf = o == null ? void 0 : o.scene) == null ? void 0 : wf.verticalExaggerationRelativeHeight,
91331
91325
  verticalExaggeration: (Yf = o == null ? void 0 : o.scene) == null ? void 0 : Yf.verticalExaggeration
91332
91326
  }
91333
91327
  ),
91334
- /* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((vf = (Nf = o == null ? void 0 : o.sky) == null ? void 0 : Nf.skyBox) == null ? void 0 : vf.show) ?? !0 }),
91328
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((xf = (Nf = o == null ? void 0 : o.sky) == null ? void 0 : Nf.skyBox) == null ? void 0 : xf.show) ?? !0 }),
91335
91329
  /* @__PURE__ */ jsxRuntimeExports.jsx(Vs, { enabled: ((Uf = (Ff = o == null ? void 0 : o.sky) == null ? void 0 : Ff.fog) == null ? void 0 : Uf.enabled) ?? !0, density: (Qf = (Wf = o == null ? void 0 : o.sky) == null ? void 0 : Wf.fog) == null ? void 0 : Qf.density }),
91336
91330
  /* @__PURE__ */ jsxRuntimeExports.jsx(Ga$1, { show: ((Bf = (ep = o == null ? void 0 : o.sky) == null ? void 0 : ep.sun) == null ? void 0 : Bf.show) ?? !0 }),
91337
91331
  /* @__PURE__ */ jsxRuntimeExports.jsx(ea, { show: ((qf = (tp = o == null ? void 0 : o.sky) == null ? void 0 : tp.moon) == null ? void 0 : qf.show) ?? !0 }),
@@ -91381,7 +91375,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
91381
91375
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
91382
91376
  ] });
91383
91377
  }
91384
- const version = "0.0.7-alpha.40", useCoreAPI = ({ viewerProperty: t }) => {
91378
+ const version = "0.0.7-alpha.41", useCoreAPI = ({ viewerProperty: t }) => {
91385
91379
  const n = useRef(t);
91386
91380
  n.current = t;
91387
91381
  const o = useMemo(
@@ -91450,94 +91444,94 @@ function useHooks({
91450
91444
  const F = useRef(null), N = useViewport({
91451
91445
  wrapperRef: F
91452
91446
  }), [z, W] = useState({}), [nt, Pe] = useState(), [se, mt] = useState(), kt = useCallback(
91453
- async (xf, wf, Yf, Nf, vf) => {
91447
+ async (vf, wf, Yf, Nf, xf) => {
91454
91448
  var Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf, If;
91455
91449
  const Ff = ((Qf = z.layer) == null ? void 0 : Qf.layer.type) === "simple" && ((tp = (Bf = (ep = z.layer) == null ? void 0 : ep.layer) == null ? void 0 : Bf.data) == null ? void 0 : tp.isSketchLayer);
91456
- if (z.layerId === xf && z.featureId === wf && !Ff)
91450
+ if (z.layerId === vf && z.featureId === wf && !Ff)
91457
91451
  return;
91458
- const Uf = await (Yf == null ? void 0 : Yf()), Wf = xf && wf ? (Ff ? (qf = Uf == null ? void 0 : Uf.features) == null ? void 0 : qf.find((Xf) => Xf.id === wf) : (Tf = (ip = L.current) == null ? void 0 : (rp = ip.engine).findComputedFeatureById) == null ? void 0 : Tf.call(rp, xf, wf)) ?? (vf == null ? void 0 : vf.feature) : void 0;
91452
+ const Uf = await (Yf == null ? void 0 : Yf()), Wf = vf && wf ? (Ff ? (qf = Uf == null ? void 0 : Uf.features) == null ? void 0 : qf.find((Xf) => Xf.id === wf) : (Tf = (ip = L.current) == null ? void 0 : (rp = ip.engine).findComputedFeatureById) == null ? void 0 : Tf.call(rp, vf, wf)) ?? (xf == null ? void 0 : xf.feature) : void 0;
91459
91453
  Pe(
91460
- xf && wf ? (If = (rf = L.current) == null ? void 0 : (bf = rf.engine).findFeatureById) == null ? void 0 : If.call(bf, xf, wf) : void 0
91454
+ vf && wf ? (If = (rf = L.current) == null ? void 0 : (bf = rf.engine).findFeatureById) == null ? void 0 : If.call(bf, vf, wf) : void 0
91461
91455
  ), mt(Wf), W(
91462
- (Xf) => Xf.layerId === xf && Xf.featureId === wf ? Xf : { layerId: xf, featureId: wf, layer: Uf, reason: Nf }
91463
- ), c == null || c(xf, Yf, Wf, Nf);
91456
+ (Xf) => Xf.layerId === vf && Xf.featureId === wf ? Xf : { layerId: vf, featureId: wf, layer: Uf, reason: Nf }
91457
+ ), c == null || c(vf, Yf, Wf, Nf);
91464
91458
  },
91465
91459
  [z, c]
91466
- ), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((xf) => {
91467
- fa(!!xf);
91460
+ ), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((vf) => {
91461
+ fa(!!vf);
91468
91462
  }, []), [Ra, ma] = useValue(
91469
91463
  n || "default",
91470
91464
  h
91471
91465
  );
91472
91466
  useEffect(() => {
91473
- var xf, wf;
91474
- Ra === "default" && ((wf = (xf = L == null ? void 0 : L.current) == null ? void 0 : xf.engine) == null || wf.setCursor("auto"));
91467
+ var vf, wf;
91468
+ Ra === "default" && ((wf = (vf = L == null ? void 0 : L.current) == null ? void 0 : vf.engine) == null || wf.setCursor("auto"));
91475
91469
  }, [Ra]);
91476
- const yt = INTERACTION_MODES[Ra ?? "default"], lt = useRef(), _i = useCallback((xf) => {
91477
- lt.current = xf;
91478
- }, []), ba = useCallback((xf) => {
91470
+ const yt = INTERACTION_MODES[Ra ?? "default"], lt = useRef(), _i = useCallback((vf) => {
91471
+ lt.current = vf;
91472
+ }, []), ba = useCallback((vf) => {
91479
91473
  var wf;
91480
- (wf = lt.current) == null || wf.call(lt, xf);
91481
- }, []), Sc = useRef(), ms = useCallback((xf) => {
91482
- Sc.current = xf;
91483
- }, []), Xs = useCallback((xf) => {
91474
+ (wf = lt.current) == null || wf.call(lt, vf);
91475
+ }, []), Sc = useRef(), ms = useCallback((vf) => {
91476
+ Sc.current = vf;
91477
+ }, []), Xs = useCallback((vf) => {
91484
91478
  var wf;
91485
- (wf = Sc.current) == null || wf.call(Sc, xf);
91486
- }, []), yu = useRef(), Nl = useCallback((xf) => {
91487
- yu.current = xf;
91488
- }, []), pu = useCallback((xf) => {
91479
+ (wf = Sc.current) == null || wf.call(Sc, vf);
91480
+ }, []), yu = useRef(), Nl = useCallback((vf) => {
91481
+ yu.current = vf;
91482
+ }, []), pu = useCallback((vf) => {
91489
91483
  var wf;
91490
- (wf = yu.current) == null || wf.call(yu, xf);
91491
- }, []), Ru = useRef(), Vd = useCallback((xf) => {
91492
- Ru.current = xf;
91493
- }, []), Gd = useCallback((xf) => {
91484
+ (wf = yu.current) == null || wf.call(yu, vf);
91485
+ }, []), Ru = useRef(), Vd = useCallback((vf) => {
91486
+ Ru.current = vf;
91487
+ }, []), Gd = useCallback((vf) => {
91494
91488
  var wf;
91495
- (wf = Ru.current) == null || wf.call(Ru, xf);
91496
- }, []), uf = useRef(), ff = useCallback((xf) => {
91497
- uf.current = xf;
91498
- }, []), mf = useCallback((xf) => {
91489
+ (wf = Ru.current) == null || wf.call(Ru, vf);
91490
+ }, []), uf = useRef(), ff = useCallback((vf) => {
91491
+ uf.current = vf;
91492
+ }, []), mf = useCallback((vf) => {
91499
91493
  var wf;
91500
- (wf = uf.current) == null || wf.call(uf, xf);
91501
- }, []), hf = useRef(), of = useCallback((xf) => {
91502
- hf.current = xf;
91503
- }, []), gf = useCallback((xf) => {
91494
+ (wf = uf.current) == null || wf.call(uf, vf);
91495
+ }, []), hf = useRef(), of = useCallback((vf) => {
91496
+ hf.current = vf;
91497
+ }, []), gf = useCallback((vf) => {
91504
91498
  var wf;
91505
- (wf = hf.current) == null || wf.call(hf, xf);
91506
- }, []), Ef = useRef([]), Sf = useCallback((xf) => {
91507
- Ef.current.push(xf);
91508
- }, []), Wa = useCallback((xf) => {
91509
- Ef.current.forEach((wf) => wf(xf));
91510
- }, []), af = useRef([]), Xd = useCallback((xf) => {
91511
- af.current.push(xf);
91512
- }, []), gd = useCallback((xf) => {
91513
- af.current.forEach((wf) => wf(xf));
91514
- }, []), pd = useRef([]), Zd = useCallback((xf) => {
91515
- pd.current.push(xf);
91499
+ (wf = hf.current) == null || wf.call(hf, vf);
91500
+ }, []), Ef = useRef([]), Sf = useCallback((vf) => {
91501
+ Ef.current.push(vf);
91502
+ }, []), Wa = useCallback((vf) => {
91503
+ Ef.current.forEach((wf) => wf(vf));
91504
+ }, []), af = useRef([]), Xd = useCallback((vf) => {
91505
+ af.current.push(vf);
91506
+ }, []), gd = useCallback((vf) => {
91507
+ af.current.forEach((wf) => wf(vf));
91508
+ }, []), pd = useRef([]), Zd = useCallback((vf) => {
91509
+ pd.current.push(vf);
91516
91510
  }, []), cf = useCallback(
91517
- (xf) => {
91518
- pd.current.forEach((wf) => wf(xf));
91511
+ (vf) => {
91512
+ pd.current.forEach((wf) => wf(vf));
91519
91513
  },
91520
91514
  []
91521
- ), sf = useRef([]), nf = useCallback((xf) => {
91522
- sf.current.push(xf);
91515
+ ), sf = useRef([]), nf = useCallback((vf) => {
91516
+ sf.current.push(vf);
91523
91517
  }, []), df = useCallback(
91524
- (xf, wf) => {
91525
- sf.current.forEach((Yf) => Yf(xf)), S == null || S(xf, wf);
91518
+ (vf, wf) => {
91519
+ sf.current.forEach((Yf) => Yf(vf)), S == null || S(vf, wf);
91526
91520
  },
91527
91521
  [S]
91528
91522
  );
91529
91523
  useEffect(() => {
91530
- var xf, wf;
91531
- o && ((wf = (xf = L.current) == null ? void 0 : xf.engine) == null || wf.lookAtLayer(o), p == null || p(void 0));
91524
+ var vf, wf;
91525
+ o && ((wf = (vf = L.current) == null ? void 0 : vf.engine) == null || wf.lookAtLayer(o), p == null || p(void 0));
91532
91526
  }, [o, p]);
91533
91527
  const [Cf, pf] = useState(!1), _f = useCallback(() => {
91534
91528
  pf(!0);
91535
91529
  }, []), Pf = useCallback(
91536
- (xf, wf, Yf) => {
91530
+ (vf, wf, Yf) => {
91537
91531
  var Ff;
91538
91532
  pf(!1);
91539
- const Nf = (Ff = L.current) == null ? void 0 : Ff.layers.findById(xf), vf = Nf != null && Nf.property.default.location ? "default.location" : Nf != null && Nf.property.default.position ? "default.position" : void 0;
91540
- Yf && Nf && Nf.propertyId && vf && (y == null || y(Nf.propertyId, vf, Yf));
91533
+ const Nf = (Ff = L.current) == null ? void 0 : Ff.layers.findById(vf), xf = Nf != null && Nf.property.default.location ? "default.location" : Nf != null && Nf.property.default.position ? "default.position" : void 0;
91534
+ Yf && Nf && Nf.propertyId && xf && (y == null || y(Nf.propertyId, xf, Yf));
91541
91535
  },
91542
91536
  [y, L]
91543
91537
  ), Af = useMemo(