@map-colonies/react-components 4.10.2 → 4.10.4

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.
@@ -2,25 +2,25 @@
2
2
  var Jn = Object.defineProperty;
3
3
  var Qn = (e, n, t) => n in e ? Jn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
4
4
  var ce = (e, n, t) => (Qn(e, typeof n != "symbol" ? n + "" : n, t), t);
5
- import { jsx as l, jsxs as z, Fragment as Ee } from "react/jsx-runtime";
5
+ import { jsx as l, jsxs as $, Fragment as Ce } from "react/jsx-runtime";
6
6
  import * as Ln from "react";
7
- import Oe, { useState as F, useEffect as N, useMemo as be, forwardRef as ei, createContext as Ke, useContext as ze, useRef as Pe, useLayoutEffect as Tn, useCallback as xe } from "react";
8
- import { isValid as Xe, isBefore as ti, format as Pt, endOfDay as ni, isSameDay as Yt } from "date-fns";
7
+ import Ae, { useState as F, useEffect as N, useMemo as fe, forwardRef as ei, createContext as Ke, useContext as We, useRef as Pe, useLayoutEffect as Tn, useCallback as xe } from "react";
8
+ import { isValid as Xe, isBefore as ti, format as Pt, endOfDay as ni, isSameDay as qt } from "date-fns";
9
9
  import { he as Sn, enUS as Mn } from "date-fns/locale";
10
10
  import { MuiPickersUtilsProvider as _n, KeyboardDateTimePicker as xt, KeyboardDatePicker as ii } from "@material-ui/pickers";
11
11
  import Pn from "@date-io/date-fns";
12
12
  import { createTheme as ri, makeStyles as it, createStyles as pt } from "@material-ui/core/styles";
13
- import { Box as oi, ThemeProvider as Ft, Popover as si, Paper as Dt, TableRow as lt, TableCell as et, TableSortLabel as ai, IconButton as li, Collapse as ci, TableContainer as di, Table as ui, TableBody as hi, Typography as mi, TablePagination as pi, Input as gi } from "@material-ui/core";
14
- import { useTheme as Vt, ThemeProvider as fi, Button as nt, TextField as ct, Tooltip as dt, Menu as yi, MenuItem as Ct, Icon as He, Dialog as xn, DialogTitle as Dn, DialogContent as In, Drawer as vi, DrawerHeader as Ei, DrawerTitle as Ci, DrawerContent as wi, LinearProgress as bi, Checkbox as Li } from "@map-colonies/react-core";
15
- import { default as dc } from "@material-ui/core/useMediaQuery";
13
+ import { Box as oi, ThemeProvider as Vt, Popover as si, Paper as Dt, TableRow as lt, TableCell as et, TableSortLabel as ai, IconButton as li, Collapse as ci, TableContainer as di, Table as ui, TableBody as hi, Typography as mi, TablePagination as pi, Input as gi } from "@material-ui/core";
14
+ import { useTheme as Gt, ThemeProvider as fi, Button as nt, TextField as ct, Tooltip as dt, Menu as yi, MenuItem as Ct, Icon as $e, Dialog as xn, DialogTitle as Dn, DialogContent as In, Drawer as vi, DrawerHeader as Ei, DrawerTitle as Ci, DrawerContent as wi, LinearProgress as bi, Checkbox as Li } from "@map-colonies/react-core";
15
+ import { default as uc } from "@material-ui/core/useMediaQuery";
16
16
  import Ti, { registerLocale as Si } from "react-datepicker";
17
17
  import Mi from "date-fns/locale/he";
18
18
  import Je from "moment";
19
19
  import _i from "@turf/rewind";
20
20
  import { Map as Pi, View as xi } from "ol";
21
21
  import "ol/ol.css";
22
- import { format as qt } from "ol/coordinate";
23
- import { defaults as Di, FullScreen as Zt } from "ol/control";
22
+ import { format as Zt } from "ol/coordinate";
23
+ import { defaults as Di, FullScreen as Xt } from "ol/control";
24
24
  import wt from "ol/control/MousePosition";
25
25
  import { transform as Ii, get as Oi } from "ol/proj";
26
26
  import { Tile as Ai, Vector as ki } from "ol/layer";
@@ -35,7 +35,7 @@ import { getWidth as Ki, getTopLeft as Yi } from "ol/extent";
35
35
  import qi from "ol/source/TileWMS";
36
36
  import Zi from "ol/source/XYZ";
37
37
  import Xi from "ol/source/VectorTile";
38
- import Xt from "ol-ext/legend/Legend";
38
+ import Jt from "ol-ext/legend/Legend";
39
39
  import Ji from "ol-ext/control/Legend";
40
40
  import "ol-ext/dist/ol-ext.css";
41
41
  import Qi from "@material-ui/core/TableHead";
@@ -45,9 +45,9 @@ import tr from "@material-ui/core/ScopedCssBaseline";
45
45
  import { createPortal as nr } from "react-dom";
46
46
  import { Viewer as ir, Cesium3DTileset as rr, GeoJsonDataSource as or, ImageryLayer as sr, Entity as ar, EntityDescription as kn, PolygonGraphics as lr, RectangleGraphics as cr, CustomDataSource as dr, PolylineGraphics as ur } from "resium";
47
47
  import * as E from "cesium";
48
- import { Math as Q, SceneMode as $e, Cartesian2 as Ne, Cartographic as Re, defined as Jt, Cartesian3 as _e, PerspectiveFrustum as hr, Rectangle as je, UrlTemplateImageryProvider as Gt, WebMapServiceImageryProvider as Ht, WebMapTileServiceImageryProvider as $t, Event as Qt, SingleTileImageryProvider as mr, PolylineDashMaterialProperty as pr, ConstantProperty as gr, ConstantPositionProperty as fr, BoundingSphere as Rn, Ellipsoid as zt, GeographicTilingScheme as yr, Resource as vr, EllipsoidTerrainProvider as Er, CesiumTerrainProvider as Cr, PolylineGraphics as Nn, JulianDate as Qe, PositionProperty as wr, BillboardGraphics as It, Color as Ge, PolygonHierarchy as Bn, Scene as br, VerticalOrigin as ut, HorizontalOrigin as Lr, LabelStyle as Fn, HeightReference as Ot, ScreenSpaceEventType as At, WebMercatorProjection as Tr, EventHelper as Sr, EllipsoidGeodesic as Mr, Viewer as _r, Matrix4 as Pr, OpenStreetMapImageryProvider as xr, GeoJsonDataSource as en, ScreenSpaceEventHandler as Dr, SceneTransforms as tn, PolygonGraphics as Ir, viewerCesiumInspectorMixin as Or, sampleTerrainMostDetailed as Ar } from "cesium";
49
- import { Entity as hc, PolygonGraphics as mc, GeoJsonDataSource as pc, Math as gc, SceneTransforms as fc, sampleTerrainMostDetailed as yc } from "cesium";
50
- import { get as ie, isEmpty as kt, isNumber as ht, isArray as kr, cloneDeep as Rr, find as nn } from "lodash";
48
+ import { Math as J, SceneMode as ze, Cartesian2 as Ie, Cartographic as Ne, defined as It, Cartesian3 as _e, PerspectiveFrustum as hr, Rectangle as He, UrlTemplateImageryProvider as Ht, WebMapServiceImageryProvider as $t, WebMapTileServiceImageryProvider as zt, Event as Qt, SingleTileImageryProvider as mr, PolylineDashMaterialProperty as pr, ConstantProperty as gr, ConstantPositionProperty as fr, BoundingSphere as Rn, Ellipsoid as Wt, GeographicTilingScheme as yr, Resource as vr, EllipsoidTerrainProvider as Er, CesiumTerrainProvider as Cr, PolylineGraphics as Nn, JulianDate as Qe, PositionProperty as wr, BillboardGraphics as Ot, Color as Ge, PolygonHierarchy as Bn, Scene as br, VerticalOrigin as ut, HorizontalOrigin as Lr, LabelStyle as Fn, HeightReference as At, ScreenSpaceEventType as kt, WebMercatorProjection as Tr, EventHelper as Sr, EllipsoidGeodesic as Mr, Viewer as _r, Matrix4 as Pr, OpenStreetMapImageryProvider as xr, GeoJsonDataSource as en, ScreenSpaceEventHandler as Dr, SceneTransforms as tn, PolygonGraphics as Ir, viewerCesiumInspectorMixin as Or, sampleTerrainMostDetailed as Ar } from "cesium";
49
+ import { Entity as mc, PolygonGraphics as pc, GeoJsonDataSource as gc, Math as fc, SceneTransforms as yc, sampleTerrainMostDetailed as vc } from "cesium";
50
+ import { get as ie, isEmpty as Rt, isNumber as ht, isArray as kr, cloneDeep as Rr, find as nn } from "lodash";
51
51
  import Nr from "@turf/boolean-point-in-polygon";
52
52
  import gt from "@turf/bbox-polygon";
53
53
  import * as Vn from "@turf/helpers";
@@ -68,7 +68,7 @@ import { ChonkyActions as ne, FileHelper as Hn, setChonkyDefaults as Wr, FullFil
68
68
  import { ChonkyIconFA as jr } from "chonky-icon-fontawesome";
69
69
  import Kr from "filesize";
70
70
  import Yr, { components as qr } from "react-select";
71
- var Se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(Se || {}), De = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(De || {}), Rt = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(Rt || {});
71
+ var Se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(Se || {}), De = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(De || {}), Nt = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(Nt || {});
72
72
  const he = {
73
73
  // eslint-disable-next-line @typescript-eslint/naming-convention
74
74
  DATE_PICKER: {
@@ -99,9 +99,9 @@ const he = {
99
99
  }, me = (e) => {
100
100
  const { children: n, ...t } = e;
101
101
  return /* @__PURE__ */ l(oi, { ...t, children: n });
102
- }, Wt = (e) => {
102
+ }, Ut = (e) => {
103
103
  const n = e.type === "dark";
104
- return Oe.useMemo(() => Zr(e, n), [n, e]);
104
+ return Ae.useMemo(() => Zr(e, n), [n, e]);
105
105
  }, Zr = (e, n = !1) => ri({
106
106
  palette: {
107
107
  type: n ? "dark" : "light",
@@ -139,7 +139,7 @@ const Xr = 2, Jr = 0.5, Qr = it(
139
139
  })
140
140
  ), eo = (e) => {
141
141
  var Y, k, X, G;
142
- const n = Qr(), t = Vt(), i = Wt(t), [o, r] = F(null), [c, d] = F(null), [h, p] = F(he.DATE_RANGE_PICKER.dateFormat), C = e.controlsLayout ?? he.DATE_RANGE_PICKER.controlsLayout, m = e.disableFuture ?? he.DATE_RANGE_PICKER.disableFuture, b = ((Y = e.local) == null ? void 0 : Y.startPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((k = e.local) == null ? void 0 : k.endPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.endPlaceHolderText, S = ((X = e.local) == null ? void 0 : X.setText) ?? he.DATE_RANGE_PICKER.local.setText, Z = (((G = e.local) == null ? void 0 : G.calendarLocale) ?? he.DATE_RANGE_PICKER.local.calendarLocale) === De.HE ? Sn : Mn;
142
+ const n = Qr(), t = Gt(), i = Ut(t), [o, r] = F(null), [c, d] = F(null), [h, p] = F(he.DATE_RANGE_PICKER.dateFormat), C = e.controlsLayout ?? he.DATE_RANGE_PICKER.controlsLayout, m = e.disableFuture ?? he.DATE_RANGE_PICKER.disableFuture, b = ((Y = e.local) == null ? void 0 : Y.startPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((k = e.local) == null ? void 0 : k.endPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.endPlaceHolderText, S = ((X = e.local) == null ? void 0 : X.setText) ?? he.DATE_RANGE_PICKER.local.setText, Z = (((G = e.local) == null ? void 0 : G.calendarLocale) ?? he.DATE_RANGE_PICKER.local.calendarLocale) === De.HE ? Sn : Mn;
143
143
  N(() => {
144
144
  r(e.from ?? null);
145
145
  }, [e.from]), N(() => {
@@ -147,7 +147,7 @@ const Xr = 2, Jr = 0.5, Qr = it(
147
147
  }, [e.to]), N(() => {
148
148
  p(e.dateFormat ?? he.DATE_RANGE_PICKER.dateFormat);
149
149
  }, [e.dateFormat]);
150
- const W = Boolean(
150
+ const z = Boolean(
151
151
  Xe(o) && !c || Xe(c) && !o || o && c && Xe(o) && Xe(c) && ti(o, c)
152
152
  ), q = () => {
153
153
  e.onChange({
@@ -155,14 +155,14 @@ const Xr = 2, Jr = 0.5, Qr = it(
155
155
  to: c && Xe(c) ? c : void 0
156
156
  });
157
157
  };
158
- return /* @__PURE__ */ l(Ft, { theme: i, children: /* @__PURE__ */ l(
158
+ return /* @__PURE__ */ l(Vt, { theme: i, children: /* @__PURE__ */ l(
159
159
  me,
160
160
  {
161
161
  className: `${n.container} drpContainer`,
162
162
  display: "flex",
163
163
  flexDirection: C,
164
164
  width: C === "column" ? e.contentWidth : "unset",
165
- children: /* @__PURE__ */ z(_n, { utils: Pn, locale: Z, children: [
165
+ children: /* @__PURE__ */ $(_n, { utils: Pn, locale: Z, children: [
166
166
  /* @__PURE__ */ l(
167
167
  xt,
168
168
  {
@@ -196,7 +196,7 @@ const Xr = 2, Jr = 0.5, Qr = it(
196
196
  className: `${n.setButton} ${n.margin}`,
197
197
  raised: !0,
198
198
  onClick: q,
199
- disabled: !W,
199
+ disabled: !z,
200
200
  children: S
201
201
  }
202
202
  ) })
@@ -207,9 +207,9 @@ const Xr = 2, Jr = 0.5, Qr = it(
207
207
  const { children: n, ...t } = e;
208
208
  return /* @__PURE__ */ l(si, { ...t, children: n });
209
209
  };
210
- const nl = (e) => {
210
+ const il = (e) => {
211
211
  var k, X;
212
- const [n, t] = F(null), [i, o] = F(null), [r, c] = F(he.DATE_RANGE_PICKER.dateFormat), [d, h] = Oe.useState(null), p = (G) => {
212
+ const [n, t] = F(null), [i, o] = F(null), [r, c] = F(he.DATE_RANGE_PICKER.dateFormat), [d, h] = Ae.useState(null), p = (G) => {
213
213
  h(G.currentTarget);
214
214
  }, C = (G) => {
215
215
  G.currentTarget.tagName === "I" ? h(G.currentTarget.previousElementSibling) : h(G.currentTarget);
@@ -223,8 +223,8 @@ const nl = (e) => {
223
223
  }, [e.to]), N(() => {
224
224
  c(e.dateFormat ?? he.DATE_RANGE_PICKER.dateFormat);
225
225
  }, [e.dateFormat]);
226
- const S = ((k = e.local) == null ? void 0 : k.startPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.startPlaceHolderText, H = ((X = e.local) == null ? void 0 : X.endPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.endPlaceHolderText, Z = e.renderAsButton === void 0 ? he.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, W = e.offset === void 0 ? he.DATE_RANGE_PICKER.offset : e.offset, q = e.disableFuture === void 0 ? he.DATE_RANGE_PICKER.disableFuture : e.disableFuture, Y = be(() => `${n ? Pt(n, r) : S} - ${i ? Pt(i, r) : H}`, [n, i, r, S, H]);
227
- return /* @__PURE__ */ z(Ee, { children: [
226
+ const S = ((k = e.local) == null ? void 0 : k.startPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.startPlaceHolderText, H = ((X = e.local) == null ? void 0 : X.endPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.endPlaceHolderText, Z = e.renderAsButton === void 0 ? he.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, z = e.offset === void 0 ? he.DATE_RANGE_PICKER.offset : e.offset, q = e.disableFuture === void 0 ? he.DATE_RANGE_PICKER.disableFuture : e.disableFuture, Y = fe(() => `${n ? Pt(n, r) : S} - ${i ? Pt(i, r) : H}`, [n, i, r, S, H]);
227
+ return /* @__PURE__ */ $(Ce, { children: [
228
228
  Z ? /* @__PURE__ */ l(nt, { style: { width: e.width }, raised: !0, onClick: p, className: "drpOpener", children: Y }) : /* @__PURE__ */ l(
229
229
  ct,
230
230
  {
@@ -244,7 +244,7 @@ const nl = (e) => {
244
244
  eo,
245
245
  {
246
246
  controlsLayout: P,
247
- contentWidth: ((d == null ? void 0 : d.clientWidth) ?? 0) - W,
247
+ contentWidth: ((d == null ? void 0 : d.clientWidth) ?? 0) - z,
248
248
  dateFormat: r,
249
249
  disableFuture: q,
250
250
  minDate: e.minDate,
@@ -258,7 +258,7 @@ const nl = (e) => {
258
258
  }
259
259
  ) })
260
260
  ] });
261
- }, Lt = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, il = ({
261
+ }, Lt = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, rl = ({
262
262
  endDate: e,
263
263
  startDate: n,
264
264
  setEndDate: t = () => {
@@ -272,7 +272,7 @@ const nl = (e) => {
272
272
  startTimeInputClassName: h = "",
273
273
  startTimeLabel: p = "",
274
274
  startTimeWrapperClassName: C = ""
275
- }) => /* @__PURE__ */ z("div", { className: `timeRangeWrapper ${d}`, children: [
275
+ }) => /* @__PURE__ */ $("div", { className: `timeRangeWrapper ${d}`, children: [
276
276
  /* @__PURE__ */ l("div", { className: `startTimeWrapper ${C}`, children: /* @__PURE__ */ l(
277
277
  ct,
278
278
  {
@@ -326,13 +326,13 @@ const nl = (e) => {
326
326
  ), io = ({ setStartDate: e = () => {
327
327
  }, setEndDate: n = () => {
328
328
  }, shortcuts: t, dateRange: i, onShortcut: o }) => {
329
- const [r, c] = F(), d = be(
329
+ const [r, c] = F(), d = fe(
330
330
  () => t.map((h) => h instanceof Function ? h() : h),
331
331
  [t]
332
332
  );
333
333
  return N(() => {
334
334
  for (const h of d) {
335
- const p = i.startDate && i.endDate && Yt(h.startDate, i.startDate) && Yt(h.endDate, i.endDate);
335
+ const p = i.startDate && i.endDate && qt(h.startDate, i.startDate) && qt(h.endDate, i.endDate);
336
336
  r ? h.id === r && (p || c(void 0)) : p && c(h.id);
337
337
  }
338
338
  }, [i, r, d]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: d.map((h, p) => {
@@ -353,7 +353,7 @@ const nl = (e) => {
353
353
  h.id + p
354
354
  );
355
355
  }) });
356
- }, rl = Oe.forwardRef((e, n) => {
356
+ }, ol = Ae.forwardRef((e, n) => {
357
357
  const {
358
358
  // Time range input props
359
359
  // endTimeInputClassName,
@@ -374,14 +374,14 @@ const nl = (e) => {
374
374
  // withTimeRange,
375
375
  withShortcuts: p,
376
376
  locale: C = "en"
377
- } = e, [m, b] = F(null), [P, S] = F(null), [H, Z] = F(!1), W = r ? { startDate: m, endDate: P } : m;
377
+ } = e, [m, b] = F(null), [P, S] = F(null), [H, Z] = F(!1), z = r ? { startDate: m, endDate: P } : m;
378
378
  N(() => {
379
379
  C === "he" && Si("he", Mi);
380
380
  }, [C]), N(() => {
381
381
  var k, X;
382
382
  ((k = e.startDate) == null ? void 0 : k.toString()) !== (m == null ? void 0 : m.toString()) && b(e.startDate), ((X = e.endDate) == null ? void 0 : X.toString()) !== (P == null ? void 0 : P.toString()) && S(e.endDate);
383
383
  }, [e.startDate, e.endDate, m, P]);
384
- const q = be(() => {
384
+ const q = fe(() => {
385
385
  let k = "pickerContainer" + (C === "he" ? " pickerContainer-rtl" : "");
386
386
  return p && r && (k += " pickerContainer-withShortcuts"), k;
387
387
  }, [C, p, r]), Y = h ? {
@@ -396,9 +396,9 @@ const nl = (e) => {
396
396
  ref: n,
397
397
  onClickOutside: () => Z(!1),
398
398
  open: H,
399
- startDate: Lt(W) ? m : void 0,
399
+ startDate: Lt(z) ? m : void 0,
400
400
  selected: m,
401
- endDate: Lt(W) ? P : void 0,
401
+ endDate: Lt(z) ? P : void 0,
402
402
  monthsShown: e.monthsShown ?? 2,
403
403
  calendarClassName: `pickerCalendar ${t}`,
404
404
  weekDayClassName: (k) => `pickerWeek ${(i == null ? void 0 : i(k)) ?? ""}`,
@@ -416,16 +416,16 @@ const nl = (e) => {
416
416
  } }),
417
417
  showTimeInput: !!(p && r),
418
418
  timeInputLabel: "",
419
- customTimeInput: p && Lt(W) && /* @__PURE__ */ l(io, { onShortcut: (k) => {
419
+ customTimeInput: p && Lt(z) && /* @__PURE__ */ l(io, { onShortcut: (k) => {
420
420
  c == null || c(k), Z(!1);
421
- }, shortcuts: p, setEndDate: S, setStartDate: b, dateRange: W }),
421
+ }, shortcuts: p, setEndDate: S, setStartDate: b, dateRange: z }),
422
422
  showMonthYearDropdown: void 0,
423
423
  ...Y
424
424
  }
425
425
  ) });
426
426
  });
427
- const ol = (e) => {
428
- const n = Vt(), t = Wt(n), {
427
+ const sl = (e) => {
428
+ const n = Gt(), t = Ut(n), {
429
429
  format: i = he.DATE_PICKER.dateFormat,
430
430
  variant: o = he.DATE_PICKER.variant,
431
431
  disableFuture: r = he.DATE_PICKER.disableFuture,
@@ -440,7 +440,7 @@ const ol = (e) => {
440
440
  }, P = b === De.HE ? Sn : Mn, S = (H) => {
441
441
  d(H);
442
442
  };
443
- return /* @__PURE__ */ l(Ft, { theme: t, children: /* @__PURE__ */ z(_n, { utils: Pn, locale: P, children: [
443
+ return /* @__PURE__ */ l(Vt, { theme: t, children: /* @__PURE__ */ $(_n, { utils: Pn, locale: P, children: [
444
444
  h && /* @__PURE__ */ l(
445
445
  xt,
446
446
  {
@@ -477,14 +477,14 @@ const ol = (e) => {
477
477
  }
478
478
  })
479
479
  ), so = (e) => {
480
- const n = oo(), [t, i] = Oe.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: d } = e, h = (C) => {
480
+ const n = oo(), [t, i] = Ae.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: d } = e, h = (C) => {
481
481
  i(C.currentTarget);
482
482
  }, p = () => {
483
483
  i(null);
484
484
  };
485
- return o ? /* @__PURE__ */ l(dt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(nt, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ z(me, { position: "relative", children: [
485
+ return o ? /* @__PURE__ */ l(dt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(nt, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ $(me, { position: "relative", children: [
486
486
  /* @__PURE__ */ l(dt, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(nt, { className: n.drawingButton, raised: !0, onClick: h, children: "Draw AOI" }) }),
487
- /* @__PURE__ */ z(
487
+ /* @__PURE__ */ $(
488
488
  yi,
489
489
  {
490
490
  className: n.fullWidth,
@@ -523,18 +523,18 @@ const ol = (e) => {
523
523
  )
524
524
  ] });
525
525
  };
526
- var Ae = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(Ae || {});
527
- const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10, co = (e) => e !== void 0 && e !== Ae.WGS84 ? Ii([an, ln], Ae.WGS84, e) : [an, ln], uo = (e) => {
526
+ var ke = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(ke || {});
527
+ const Bt = 5, Ft = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10, co = (e) => e !== void 0 && e !== ke.WGS84 ? Ii([an, ln], ke.WGS84, e) : [an, ln], uo = (e) => {
528
528
  switch (e) {
529
- case Ae.WEB_MERCATOR:
530
- return (n) => qt(n, "Mercator: {y}m, {x}m", Bt);
531
- case Ae.WGS84:
532
- return (n) => qt(n, "WGS84: {y}°N {x}°E", Nt);
529
+ case ke.WEB_MERCATOR:
530
+ return (n) => Zt(n, "Mercator: {y}m, {x}m", Ft);
531
+ case ke.WGS84:
532
+ return (n) => Zt(n, "WGS84: {y}°N {x}°E", Bt);
533
533
  default:
534
534
  return (n) => "";
535
535
  }
536
536
  }, tt = () => {
537
- const e = ze($n);
537
+ const e = We($n);
538
538
  if (e === null)
539
539
  throw new Error("map context is null, please check the provider");
540
540
  return e;
@@ -542,7 +542,7 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
542
542
  const n = Pe(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = F(
543
543
  new Pi({
544
544
  view: new xi({
545
- projection: o ?? Ae.WGS84
545
+ projection: o ?? ke.WGS84
546
546
  }),
547
547
  controls: Di()
548
548
  })
@@ -558,21 +558,21 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
558
558
  });
559
559
  };
560
560
  return N(() => {
561
- r.setTarget(n.current), t !== void 0 && t ? r.addControl(new Zt()) : c(Zt, r);
561
+ r.setTarget(n.current), t !== void 0 && t ? r.addControl(new Xt()) : c(Xt, r);
562
562
  }, [r, t]), N(() => {
563
563
  i !== void 0 && i ? (c(wt, r), r.addControl(
564
564
  new wt({
565
- coordinateFormat: uo(o ?? Ae.WGS84),
566
- projection: o ?? Ae.WGS84,
565
+ coordinateFormat: uo(o ?? ke.WGS84),
566
+ projection: o ?? ke.WGS84,
567
567
  undefinedHTML: "&nbsp;"
568
568
  })
569
569
  )) : c(wt, r);
570
- }, [r, i, o]), /* @__PURE__ */ z(ao, { value: r, children: [
570
+ }, [r, i, o]), /* @__PURE__ */ $(ao, { value: r, children: [
571
571
  /* @__PURE__ */ l("div", { className: "map", ref: n }),
572
572
  e.children
573
573
  ] });
574
574
  }, zn = Ke(null), mo = zn.Provider, ft = () => {
575
- const e = ze(zn);
575
+ const e = We(zn);
576
576
  if (e === null)
577
577
  throw new Error("tile layer context is null, please check the provider");
578
578
  return e;
@@ -582,7 +582,7 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
582
582
  t.removeLayer(i);
583
583
  }), [t, i]), /* @__PURE__ */ l(mo, { value: i, children: n });
584
584
  }, Wn = Ke(null), go = Wn.Provider, fo = () => {
585
- const e = ze(Wn);
585
+ const e = We(Wn);
586
586
  if (e === null)
587
587
  throw new Error("vector layer context is null, please check the provider");
588
588
  return e;
@@ -592,7 +592,7 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
592
592
  n.removeLayer(t);
593
593
  }), [n, t]), /* @__PURE__ */ l(go, { value: t, children: e });
594
594
  }, Un = Ke(null), vo = Un.Provider, Eo = () => {
595
- const e = ze(Un);
595
+ const e = We(Un);
596
596
  if (e === null)
597
597
  throw new Error("vector source context is null, please check the provider");
598
598
  return e;
@@ -649,7 +649,7 @@ const To = (e) => {
649
649
  const i = _i(t);
650
650
  e.onPolygonSelection(i);
651
651
  };
652
- return /* @__PURE__ */ z(ho, { allowFullScreen: !0, showMousePosition: !0, children: [
652
+ return /* @__PURE__ */ $(ho, { allowFullScreen: !0, showMousePosition: !0, children: [
653
653
  /* @__PURE__ */ l(po, { children: /* @__PURE__ */ l(bo, {}) }),
654
654
  e.selectionPolygon && /* @__PURE__ */ l(yo, { children: /* @__PURE__ */ l(Co, { children: /* @__PURE__ */ l(wo, { geometry: e.selectionPolygon }) }) }),
655
655
  e.children,
@@ -680,16 +680,16 @@ const To = (e) => {
680
680
  marginLeft: e.spacing(1)
681
681
  }
682
682
  })
683
- ), sl = (e) => {
683
+ ), al = (e) => {
684
684
  var h;
685
685
  const [n, t] = F(), [i, o] = F(), r = Mo(), c = (p) => {
686
686
  o(p), t(void 0), e.handlePolygonSelected(p);
687
687
  }, d = () => {
688
688
  o(void 0), e.handlePolygonReset();
689
689
  };
690
- return /* @__PURE__ */ z("div", { className: r.map, children: [
691
- /* @__PURE__ */ z("div", { className: `${r.absolute}`, children: [
692
- /* @__PURE__ */ z(Dt, { className: r.filtersContainer, children: [
690
+ return /* @__PURE__ */ $("div", { className: r.map, children: [
691
+ /* @__PURE__ */ $("div", { className: `${r.absolute}`, children: [
692
+ /* @__PURE__ */ $(Dt, { className: r.filtersContainer, children: [
693
693
  /* @__PURE__ */ l(
694
694
  so,
695
695
  {
@@ -721,11 +721,11 @@ const To = (e) => {
721
721
  stroke: dn
722
722
  })
723
723
  ], jn = Ke(null), _o = jn.Provider, Po = () => {
724
- const e = ze(jn);
724
+ const e = We(jn);
725
725
  if (e === null)
726
726
  throw new Error("vector tile layer context is null, please check the provider");
727
727
  return e;
728
- }, al = ({ children: e, options: n, style: t }) => {
728
+ }, ll = ({ children: e, options: n, style: t }) => {
729
729
  const i = tt(), [o] = F(
730
730
  new Hi({
731
731
  ...n,
@@ -737,7 +737,7 @@ const To = (e) => {
737
737
  }), [i, o]), N(() => {
738
738
  o.setStyle(t || un);
739
739
  }, [o, t]), /* @__PURE__ */ l(_o, { value: o, children: e });
740
- }, St = 20, xo = 256, Do = 2, Io = 2, Oo = "REST", ll = (e) => {
740
+ }, St = 20, xo = 256, Do = 2, Io = 2, Oo = "REST", cl = (e) => {
741
741
  const n = Oi(e.projection), t = n.getExtent(), i = new Array(St), o = new Array(St), r = Ki(t) / xo, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : Io, d = e.requestEncoding !== void 0 ? e.requestEncoding : Oo;
742
742
  for (let p = 0; p < St; ++p)
743
743
  i[p] = r / Math.pow(Do, p) / c, o[p] = p.toString();
@@ -757,12 +757,12 @@ const To = (e) => {
757
757
  requestEncoding: d,
758
758
  wrapX: e.wrapX !== void 0 ? e.wrapX : !0
759
759
  };
760
- }, cl = (e) => {
760
+ }, dl = (e) => {
761
761
  const n = ft(), { options: t } = e;
762
762
  return N(() => {
763
763
  n.setSource(new Bi(t));
764
764
  }, [n, t]), null;
765
- }, dl = (e) => {
765
+ }, ul = (e) => {
766
766
  const { attributions: n, url: t, params: i, serverType: o, transition: r } = e;
767
767
  return {
768
768
  attributions: n,
@@ -771,42 +771,42 @@ const To = (e) => {
771
771
  serverType: o,
772
772
  transition: r
773
773
  };
774
- }, ul = (e) => {
774
+ }, hl = (e) => {
775
775
  const n = ft(), { options: t } = e;
776
776
  return N(() => {
777
777
  n.setSource(new qi(t));
778
778
  }, [n, t]), null;
779
- }, hl = (e) => {
779
+ }, ml = (e) => {
780
780
  const { attributions: n, url: t } = e;
781
781
  return {
782
782
  attributions: n,
783
783
  url: t
784
784
  };
785
- }, ml = (e) => {
785
+ }, pl = (e) => {
786
786
  const n = ft(), { options: t } = e;
787
787
  return N(() => {
788
788
  n.setSource(new Zi(t));
789
789
  }, [n, t]), null;
790
- }, Ao = Ke(null), pl = () => {
791
- const e = ze(Ao);
790
+ }, Ao = Ke(null), gl = () => {
791
+ const e = We(Ao);
792
792
  if (e === null)
793
793
  throw new Error("vector tile source context is null, please check the provider");
794
794
  return e;
795
- }, gl = (e) => {
795
+ }, fl = (e) => {
796
796
  const { url: n } = e;
797
797
  return {
798
798
  url: n,
799
799
  format: new Fi()
800
800
  };
801
- }, fl = ({ children: e, options: n }) => {
801
+ }, yl = ({ children: e, options: n }) => {
802
802
  const t = Po();
803
803
  return N(() => {
804
804
  t.setSource(new Xi(n));
805
805
  }, [n, t]), null;
806
- }, yl = ({ legendItems: e, title: n, isCollapsed: t }) => {
806
+ }, vl = ({ legendItems: e, title: n, isCollapsed: t }) => {
807
807
  const i = tt();
808
808
  return N(() => {
809
- const o = new Xt({
809
+ const o = new Jt({
810
810
  title: n ?? "",
811
811
  margin: 5,
812
812
  maxWidth: 300
@@ -815,7 +815,7 @@ const To = (e) => {
815
815
  collapsed: t === void 0 ? !0 : t
816
816
  });
817
817
  i.addControl(r);
818
- const c = new Xt({ margin: 4 });
818
+ const c = new Jt({ margin: 4 });
819
819
  return e.forEach((d) => {
820
820
  c.addItem({
821
821
  title: d.title,
@@ -825,13 +825,13 @@ const To = (e) => {
825
825
  }), o.addItem(c), () => {
826
826
  i.removeControl(r);
827
827
  };
828
- }, [i, e, n, t]), /* @__PURE__ */ l(Ee, {});
828
+ }, [i, e, n, t]), /* @__PURE__ */ l(Ce, {});
829
829
  };
830
830
  function ko(e) {
831
831
  const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, c = (d) => (h) => {
832
832
  o(h, d);
833
833
  };
834
- return /* @__PURE__ */ l(Qi, { children: /* @__PURE__ */ z(lt, { children: [
834
+ return /* @__PURE__ */ l(Qi, { children: /* @__PURE__ */ $(lt, { children: [
835
835
  r && /* @__PURE__ */ l(et, {}),
836
836
  n.map((d) => /* @__PURE__ */ l(
837
837
  et,
@@ -866,8 +866,8 @@ const Ro = An(
866
866
  );
867
867
  function Bo(e) {
868
868
  const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: d } = e, [h, p] = F(!1), C = n.length;
869
- return /* @__PURE__ */ z(Ee, { children: [
870
- /* @__PURE__ */ z(lt, { hover: !0, selected: t, onClick: () => {
869
+ return /* @__PURE__ */ $(Ce, { children: [
870
+ /* @__PURE__ */ $(lt, { hover: !0, selected: t, onClick: () => {
871
871
  o == null || o(r);
872
872
  }, children: [
873
873
  c && /* @__PURE__ */ l(et, { padding: "checkbox", children: /* @__PURE__ */ l(
@@ -894,7 +894,7 @@ function Bo(e) {
894
894
  c && /* @__PURE__ */ l(lt, { children: /* @__PURE__ */ l(et, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: C + 1, children: /* @__PURE__ */ l(ci, { in: h, unmountOnExit: !0, timeout: "auto", children: d == null ? void 0 : d(i) }) }) })
895
895
  ] });
896
896
  }
897
- function vl(e) {
897
+ function El(e) {
898
898
  const [n, t] = F(""), [i, o] = F("asc"), {
899
899
  cellsMetadata: r,
900
900
  items: c,
@@ -909,8 +909,8 @@ function vl(e) {
909
909
  handleChangePage: H,
910
910
  handleChangeRowsPerPage: Z
911
911
  } = e;
912
- return /* @__PURE__ */ z(di, { component: Dt, children: [
913
- /* @__PURE__ */ z(ui, { size: m ? "small" : "medium", children: [
912
+ return /* @__PURE__ */ $(di, { component: Dt, children: [
913
+ /* @__PURE__ */ $(ui, { size: m ? "small" : "medium", children: [
914
914
  /* @__PURE__ */ l(
915
915
  ko,
916
916
  {
@@ -924,7 +924,7 @@ function vl(e) {
924
924
  isCollapseable: p
925
925
  }
926
926
  ),
927
- /* @__PURE__ */ z(hi, { children: [
927
+ /* @__PURE__ */ $(hi, { children: [
928
928
  c.map((q, Y) => /* @__PURE__ */ l(
929
929
  Bo,
930
930
  {
@@ -963,16 +963,16 @@ function vl(e) {
963
963
  )
964
964
  ] });
965
965
  }
966
- const El = (e) => {
966
+ const Cl = (e) => {
967
967
  const { children: n, ...t } = e;
968
968
  return /* @__PURE__ */ l(er, { ...t, children: n });
969
- }, Cl = (e) => {
969
+ }, wl = (e) => {
970
970
  const { children: n, ...t } = e;
971
971
  return /* @__PURE__ */ l(tr, { ...t, children: n });
972
972
  }, hn = (e) => e * Math.PI / 180, ot = (e) => e * (180 / Math.PI), Fo = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(hn(85.362 / 2)) / Math.sin(hn(85.362 / 2)));
973
973
  const Vo = ({ children: e, locale: n }) => {
974
974
  var h;
975
- const [t, i] = F(!1), [o, r] = F([]), c = be(() => ie(n, "DEBUG_PANEL_TITLE") ?? "Debugger Tool", [n]), d = Ce();
975
+ const [t, i] = F(!1), [o, r] = F([]), c = fe(() => ie(n, "DEBUG_PANEL_TITLE") ?? "Debugger Tool", [n]), d = we();
976
976
  return N(() => {
977
977
  if (!d.layersManager)
978
978
  return;
@@ -981,16 +981,16 @@ const Vo = ({ children: e, locale: n }) => {
981
981
  C.forEach((S) => {
982
982
  if (m !== void 0 && m !== S.meta.id)
983
983
  return;
984
- const { options: H, meta: Z } = S, { zoomLevel: W } = H, { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K } = Z;
984
+ const { options: H, meta: Z } = S, { zoomLevel: z } = H, { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K } = Z;
985
985
  r((se) => {
986
986
  const s = se.findIndex((a) => a.id === q);
987
987
  if (s >= 0) {
988
- if (JSON.stringify(se[s]) !== JSON.stringify({ id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: W })) {
988
+ if (JSON.stringify(se[s]) !== JSON.stringify({ id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: z })) {
989
989
  const a = [...se];
990
- return a[s] = { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: W }, a;
990
+ return a[s] = { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: z }, a;
991
991
  }
992
992
  } else
993
- return [...se, { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: W }];
993
+ return [...se, { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: z }];
994
994
  return se;
995
995
  });
996
996
  });
@@ -1001,9 +1001,9 @@ const Vo = ({ children: e, locale: n }) => {
1001
1001
  var C;
1002
1002
  (C = d.layersManager) == null || C.removeDataLayerUpdatedListener(p);
1003
1003
  };
1004
- }, [(h = d.layersManager) == null ? void 0 : h.dataLayerList]), /* @__PURE__ */ z(Ee, { children: [
1004
+ }, [(h = d.layersManager) == null ? void 0 : h.dataLayerList]), /* @__PURE__ */ $(Ce, { children: [
1005
1005
  /* @__PURE__ */ l(
1006
- He,
1006
+ $e,
1007
1007
  {
1008
1008
  icon: /* @__PURE__ */ l("div", { className: "debugPanelIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", children: /* @__PURE__ */ l("path", { d: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z" }) }) }),
1009
1009
  onClick: () => {
@@ -1011,7 +1011,7 @@ const Vo = ({ children: e, locale: n }) => {
1011
1011
  }
1012
1012
  }
1013
1013
  ),
1014
- t && /* @__PURE__ */ l("div", { className: "debugPanel", children: /* @__PURE__ */ z(
1014
+ t && /* @__PURE__ */ l("div", { className: "debugPanel", children: /* @__PURE__ */ $(
1015
1015
  xn,
1016
1016
  {
1017
1017
  open: t,
@@ -1020,27 +1020,27 @@ const Vo = ({ children: e, locale: n }) => {
1020
1020
  },
1021
1021
  children: [
1022
1022
  /* @__PURE__ */ l(Dn, { className: "title", children: c }),
1023
- /* @__PURE__ */ l(In, { children: Oe.Children.map(e, (p) => Oe.isValidElement(p) ? Oe.cloneElement(p, { featureTypes: o }) : p) })
1023
+ /* @__PURE__ */ l(In, { children: Ae.Children.map(e, (p) => Ae.isValidElement(p) ? Ae.cloneElement(p, { featureTypes: o }) : p) })
1024
1024
  ]
1025
1025
  }
1026
1026
  ) })
1027
1027
  ] });
1028
1028
  };
1029
1029
  const Go = ({ featureTypes: e, locale: n }) => {
1030
- const t = be(() => ie(n, "WFS_TITLE") ?? "Data Layers", [n]), i = be(() => ie(n, "WFS_CACHE") ?? "Cache", [n]), o = be(() => ie(n, "WFS_EXTENT") ?? "Extent", [n]), r = be(() => ie(n, "NO_DATA_LAYERS") ?? "No layers found", [n]), c = be(() => /* @__PURE__ */ l(me, { className: "title", children: t }), [t]), d = be(() => /* @__PURE__ */ l(Ee, { children: e.length > 0 ? e.map((h, p) => /* @__PURE__ */ z(me, { className: "featureType", children: [
1031
- /* @__PURE__ */ l(dt, { content: `${h.featureStructure.aliasLayerName} ${h.id} (${String(h.zoomLevel)})`, children: /* @__PURE__ */ z(me, { className: `name ${h.currentZoomLevel < h.zoomLevel ? "warning blinking" : h.total === -1 ? "error blinking" : ""}`, children: [
1030
+ const t = fe(() => ie(n, "WFS_TITLE") ?? "Data Layers", [n]), i = fe(() => ie(n, "WFS_CACHE") ?? "Cache", [n]), o = fe(() => ie(n, "WFS_EXTENT") ?? "Extent", [n]), r = fe(() => ie(n, "NO_DATA_LAYERS") ?? "No layers found", [n]), c = fe(() => /* @__PURE__ */ l(me, { className: "title", children: t }), [t]), d = fe(() => /* @__PURE__ */ l(Ce, { children: e.length > 0 ? e.map((h, p) => /* @__PURE__ */ $(me, { className: "featureType", children: [
1031
+ /* @__PURE__ */ l(dt, { content: `${h.featureStructure.aliasLayerName} ${h.id} (${String(h.zoomLevel)})`, children: /* @__PURE__ */ $(me, { className: `name ${h.currentZoomLevel < h.zoomLevel ? "warning blinking" : h.total === -1 ? "error blinking" : ""}`, children: [
1032
1032
  h.featureStructure.aliasLayerName,
1033
1033
  " (",
1034
1034
  String(h.zoomLevel),
1035
1035
  "):"
1036
1036
  ] }) }),
1037
- /* @__PURE__ */ z(me, { className: "info", children: [
1038
- /* @__PURE__ */ z(me, { children: [
1037
+ /* @__PURE__ */ $(me, { className: "info", children: [
1038
+ /* @__PURE__ */ $(me, { children: [
1039
1039
  i,
1040
1040
  ": ",
1041
1041
  h.cache ?? 0
1042
1042
  ] }),
1043
- h.total > 0 && /* @__PURE__ */ z(me, { className: "spacer", children: [
1043
+ h.total > 0 && /* @__PURE__ */ $(me, { className: "spacer", children: [
1044
1044
  o,
1045
1045
  ": ",
1046
1046
  h.items,
@@ -1049,19 +1049,19 @@ const Go = ({ featureTypes: e, locale: n }) => {
1049
1049
  ] })
1050
1050
  ] })
1051
1051
  ] }, p)) : /* @__PURE__ */ l(me, { children: r }) }), [e]);
1052
- return /* @__PURE__ */ z(me, { className: "wfsContainer", children: [
1052
+ return /* @__PURE__ */ $(me, { className: "wfsContainer", children: [
1053
1053
  c,
1054
1054
  d
1055
1055
  ] });
1056
1056
  }, Kn = (e, n, t) => {
1057
1057
  let i;
1058
- if (e.scene.mode !== $e.SCENE2D)
1059
- i = e.scene.pickPosition(new Ne(n, t));
1058
+ if (e.scene.mode !== ze.SCENE2D)
1059
+ i = e.scene.pickPosition(new Ie(n, t));
1060
1060
  else {
1061
1061
  const o = e.scene.globe.ellipsoid;
1062
- i = e.camera.pickEllipsoid(new Ne(n, t), o);
1062
+ i = e.camera.pickEllipsoid(new Ie(n, t), o);
1063
1063
  }
1064
- return Re.fromCartesian(i);
1064
+ return Ne.fromCartesian(i);
1065
1065
  }, Ho = (e, n, t) => {
1066
1066
  const i = Kn(e, n, t);
1067
1067
  return {
@@ -1069,20 +1069,20 @@ const Go = ({ featureTypes: e, locale: n }) => {
1069
1069
  properties: {},
1070
1070
  geometry: {
1071
1071
  type: "Point",
1072
- coordinates: [Q.toDegrees(i.longitude), Q.toDegrees(i.latitude)]
1072
+ coordinates: [J.toDegrees(i.longitude), J.toDegrees(i.latitude)]
1073
1073
  }
1074
1074
  };
1075
1075
  }, Yn = (e, n, t) => {
1076
1076
  try {
1077
1077
  const i = Kn(e, n, t);
1078
1078
  return {
1079
- longitude: Q.toDegrees(i.longitude),
1080
- latitude: Q.toDegrees(i.latitude)
1079
+ longitude: J.toDegrees(i.longitude),
1080
+ latitude: J.toDegrees(i.latitude)
1081
1081
  };
1082
1082
  } catch {
1083
1083
  return;
1084
1084
  }
1085
- }, Ie = document.createElement("canvas"), Te = Ie.getContext("2d"), mn = (e) => {
1085
+ }, Oe = document.createElement("canvas"), Te = Oe.getContext("2d"), mn = (e) => {
1086
1086
  const i = (e == null ? void 0 : e.data) ?? [];
1087
1087
  for (let o = 3; o < i.length; o += 4)
1088
1088
  if (i[o] < 255)
@@ -1090,20 +1090,20 @@ const Go = ({ featureTypes: e, locale: n }) => {
1090
1090
  return !1;
1091
1091
  }, $o = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1092
1092
  try {
1093
- Te == null || Te.clearRect(0, 0, Ie.width, Ie.height);
1093
+ Te == null || Te.clearRect(0, 0, Oe.width, Oe.height);
1094
1094
  let o;
1095
1095
  if (e instanceof HTMLImageElement)
1096
1096
  o = e;
1097
1097
  else if (e instanceof ImageBitmap) {
1098
- Ie.width = e.width, Ie.height = e.height, Te == null || Te.drawImage(e, 0, 0);
1099
- const r = Te == null ? void 0 : Te.getImageData(0, 0, Ie.width, Ie.height), c = mn(r);
1098
+ Oe.width = e.width, Oe.height = e.height, Te == null || Te.drawImage(e, 0, 0);
1099
+ const r = Te == null ? void 0 : Te.getImageData(0, 0, Oe.width, Oe.height), c = mn(r);
1100
1100
  c && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(c);
1101
1101
  return;
1102
1102
  } else
1103
1103
  o = new Image(), o.crossOrigin = "anonymous", o.src = e;
1104
1104
  o.onload = () => {
1105
- Ie.width = o.width, Ie.height = o.height, Te == null || Te.drawImage(o, 0, 0);
1106
- const r = Te == null ? void 0 : Te.getImageData(0, 0, Ie.width, Ie.height);
1105
+ Oe.width = o.width, Oe.height = o.height, Te == null || Te.drawImage(o, 0, 0);
1106
+ const r = Te == null ? void 0 : Te.getImageData(0, 0, Oe.width, Oe.height);
1107
1107
  mn(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
1108
1108
  };
1109
1109
  } catch (o) {
@@ -1113,28 +1113,37 @@ const Go = ({ featureTypes: e, locale: n }) => {
1113
1113
  const { west: t, east: i, north: o, south: r } = e, { west: c, east: d, north: h, south: p } = n;
1114
1114
  return t >= c && i <= d && o <= h && r >= p;
1115
1115
  }, zo = (e, n) => Fr(e, gt(n)), Wo = (e) => {
1116
- const n = (Q.toDegrees(e.west) + Q.toDegrees(e.east)) / 2, t = (Q.toDegrees(e.south) + Q.toDegrees(e.north)) / 2;
1116
+ const n = (J.toDegrees(e.west) + J.toDegrees(e.east)) / 2, t = (J.toDegrees(e.south) + J.toDegrees(e.north)) / 2;
1117
1117
  return Br([n, t]);
1118
1118
  }, Uo = (e) => [
1119
- Q.toDegrees(e.west),
1120
- Q.toDegrees(e.south),
1121
- Q.toDegrees(e.east),
1122
- Q.toDegrees(e.north)
1123
- ], jo = (e, n = 100) => {
1124
- const t = e.scene, i = e.camera, o = t.mode, r = i.computeViewRectangle(t.globe.ellipsoid);
1125
- if (!Jt(r) || !r) {
1126
- console.error("computeViewRectangle returned invalid rectangle.");
1119
+ J.toDegrees(e.west),
1120
+ J.toDegrees(e.south),
1121
+ J.toDegrees(e.east),
1122
+ J.toDegrees(e.north)
1123
+ ], jo = (e) => {
1124
+ const n = e.scene;
1125
+ let i = e.camera.computeViewRectangle(n.globe.ellipsoid);
1126
+ if (!It(i) || !i) {
1127
+ console.error("cesium native computeViewRectangle returned invalid rectangle, fallback to custom calculation ");
1128
+ const o = new Ie(0, 0), r = n.camera.pickEllipsoid(o, n.globe.ellipsoid), c = new Ie(n.canvas.width, n.canvas.height), d = n.camera.pickEllipsoid(c, n.globe.ellipsoid), h = n.globe.ellipsoid.cartesianToCartographic(r), p = n.globe.ellipsoid.cartesianToCartographic(d);
1129
+ i = new He(h.longitude, p.latitude, p.longitude, h.latitude);
1130
+ }
1131
+ return i;
1132
+ }, Ko = (e, n = 100) => {
1133
+ const t = e.scene, i = e.camera, o = t.mode, r = jo(e);
1134
+ if (!It(r) || !r) {
1135
+ console.error("customComputeViewRectangle returned invalid rectangle.");
1127
1136
  return;
1128
1137
  }
1129
- if (o === $e.SCENE2D)
1138
+ if (o === ze.SCENE2D)
1130
1139
  return r;
1131
1140
  const c = i.positionCartographic;
1132
- if (!Jt(c)) {
1141
+ if (!It(c)) {
1133
1142
  console.error("Camera position is undefined in 3D mode.");
1134
1143
  return;
1135
1144
  }
1136
1145
  const d = c.latitude, h = c.longitude;
1137
- if (d < -Q.PI_OVER_TWO || d > Q.PI_OVER_TWO || h < -Q.PI || h > Q.PI) {
1146
+ if (d < -J.PI_OVER_TWO || d > J.PI_OVER_TWO || h < -J.PI || h > J.PI) {
1138
1147
  console.error("Invalid latitude or longitude values.");
1139
1148
  return;
1140
1149
  }
@@ -1148,19 +1157,19 @@ const Go = ({ featureTypes: e, locale: n }) => {
1148
1157
  const Z = i.pitch;
1149
1158
  if (Z === void 0)
1150
1159
  return;
1151
- const W = Math.PI / 4, q = Math.max(0, 1 - Math.abs(Z) / W);
1160
+ const z = Math.PI / 4, q = Math.max(0, 1 - Math.abs(Z) / z);
1152
1161
  m *= q, b *= q;
1153
1162
  const Y = 5e-4;
1154
1163
  m = Math.max(m, Y), b = Math.max(b, Y);
1155
- const k = c.latitude - m, X = c.latitude + m, G = c.longitude - b, K = c.longitude + b, se = Q.clamp(k, r.south, r.north), s = Q.clamp(X, r.south, r.north), a = Q.clamp(G, r.west, r.east), y = Q.clamp(K, r.west, r.east), u = Math.min(1, Z / Q.PI_OVER_TWO), v = r.north - (r.north - r.south) * u, g = Math.min(s, v);
1156
- return new je(
1157
- Q.negativePiToPi(a),
1158
- Q.clamp(se, -Q.PI_OVER_TWO, Q.PI_OVER_TWO),
1159
- Q.negativePiToPi(y),
1160
- Q.clamp(g, -Q.PI_OVER_TWO, Q.PI_OVER_TWO)
1164
+ const k = c.latitude - m, X = c.latitude + m, G = c.longitude - b, K = c.longitude + b, se = J.clamp(k, r.south, r.north), s = J.clamp(X, r.south, r.north), a = J.clamp(G, r.west, r.east), y = J.clamp(K, r.west, r.east), u = Math.min(1, Z / J.PI_OVER_TWO), v = r.north - (r.north - r.south) * u, g = Math.min(s, v);
1165
+ return new He(
1166
+ J.negativePiToPi(a),
1167
+ J.clamp(se, -J.PI_OVER_TWO, J.PI_OVER_TWO),
1168
+ J.negativePiToPi(y),
1169
+ J.clamp(g, -J.PI_OVER_TWO, J.PI_OVER_TWO)
1161
1170
  );
1162
1171
  }, yt = 3, mt = "hasTransparency";
1163
- function Ut(e, n, t, i, o) {
1172
+ function jt(e, n, t, i, o) {
1164
1173
  return setTimeout(() => {
1165
1174
  var d;
1166
1175
  const r = (d = this.layerListInstance.find(
@@ -1181,7 +1190,7 @@ function Ut(e, n, t, i, o) {
1181
1190
  });
1182
1191
  }, 0), e(n, t, i, o);
1183
1192
  }
1184
- class qn extends Gt {
1193
+ class qn extends Ht {
1185
1194
  constructor(t, i) {
1186
1195
  var o;
1187
1196
  super(t);
@@ -1192,10 +1201,10 @@ class qn extends Gt {
1192
1201
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1193
1202
  }
1194
1203
  requestImage(t, i, o, r) {
1195
- return Ut.call(this, super.requestImage.bind(this), t, i, o, r);
1204
+ return jt.call(this, super.requestImage.bind(this), t, i, o, r);
1196
1205
  }
1197
1206
  }
1198
- class Zn extends Ht {
1207
+ class Zn extends $t {
1199
1208
  constructor(t, i) {
1200
1209
  var o;
1201
1210
  super(t);
@@ -1206,10 +1215,10 @@ class Zn extends Ht {
1206
1215
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1207
1216
  }
1208
1217
  requestImage(t, i, o, r) {
1209
- return Ut.call(this, super.requestImage.bind(this), t, i, o, r);
1218
+ return jt.call(this, super.requestImage.bind(this), t, i, o, r);
1210
1219
  }
1211
1220
  }
1212
- class Xn extends $t {
1221
+ class Xn extends zt {
1213
1222
  constructor(t, i) {
1214
1223
  var o;
1215
1224
  super(t);
@@ -1220,11 +1229,11 @@ class Xn extends $t {
1220
1229
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1221
1230
  }
1222
1231
  requestImage(t, i, o, r) {
1223
- return Ut.call(this, super.requestImage.bind(this), t, i, o, r);
1232
+ return jt.call(this, super.requestImage.bind(this), t, i, o, r);
1224
1233
  }
1225
1234
  }
1226
- const Ko = 1, Yo = -1, pn = "TRANSPARENT_BASE_LAYER";
1227
- class qo {
1235
+ const Yo = 1, qo = -1, pn = "TRANSPARENT_BASE_LAYER";
1236
+ class Zo {
1228
1237
  constructor(n, t, i, o, r) {
1229
1238
  ce(this, "mapViewer");
1230
1239
  ce(this, "legendsList");
@@ -1278,17 +1287,17 @@ class qo {
1278
1287
  let o;
1279
1288
  switch (n.type) {
1280
1289
  case "XYZ_LAYER": {
1281
- const r = n.options, c = this.shouldOptimizedTileRequests ? new qn(r, this.mapViewer) : new Gt(r);
1290
+ const r = n.options, c = this.shouldOptimizedTileRequests ? new qn(r, this.mapViewer) : new Ht(r);
1282
1291
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1283
1292
  break;
1284
1293
  }
1285
1294
  case "WMS_LAYER": {
1286
- const r = n.options, c = this.shouldOptimizedTileRequests ? new Zn(r, this.mapViewer) : new Ht(r);
1295
+ const r = n.options, c = this.shouldOptimizedTileRequests ? new Zn(r, this.mapViewer) : new $t(r);
1287
1296
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1288
1297
  break;
1289
1298
  }
1290
1299
  case "WMTS_LAYER": {
1291
- const r = n.options, c = this.shouldOptimizedTileRequests ? new Xn(r, this.mapViewer) : new $t(r);
1300
+ const r = n.options, c = this.shouldOptimizedTileRequests ? new Xn(r, this.mapViewer) : new zt(r);
1292
1301
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1293
1302
  break;
1294
1303
  }
@@ -1386,7 +1395,7 @@ class qo {
1386
1395
  new mr({
1387
1396
  url: "./assets/img/transparent-tile.png",
1388
1397
  /* eslint-disable @typescript-eslint/no-magic-numbers */
1389
- rectangle: new je(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
1398
+ rectangle: new He(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
1390
1399
  /* eslint-enable @typescript-eslint/no-magic-numbers */
1391
1400
  }),
1392
1401
  0
@@ -1416,7 +1425,7 @@ class qo {
1416
1425
  return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
1417
1426
  }
1418
1427
  updateLayersOrder(n, t, i) {
1419
- const o = t > i ? Ko : Yo, r = t < i ? t : i, c = t < i ? i : t;
1428
+ const o = t > i ? Yo : qo, r = t < i ? t : i, c = t < i ? i : t;
1420
1429
  this.layers.forEach((d) => {
1421
1430
  var p;
1422
1431
  if (!ie(d.meta, "parentBasetMapId")) {
@@ -1435,7 +1444,7 @@ class qo {
1435
1444
  try {
1436
1445
  const i = this.mapViewer.camera.computeViewRectangle();
1437
1446
  for (let o = this.layers.length - 1; o >= 0; o--) {
1438
- const r = this.layers[o], c = !kt(i) && !kt(r.rectangle) && je.intersection(i, r.rectangle);
1447
+ const r = this.layers[o], c = !Rt(i) && !Rt(r.rectangle) && He.intersection(i, r.rectangle);
1439
1448
  for (let d = this.layers.length - 1; d >= o; d--) {
1440
1449
  if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
1441
1450
  r.meta = { ...r.meta, relevantToExtent: !0 };
@@ -1443,7 +1452,7 @@ class qo {
1443
1452
  }
1444
1453
  const h = this.layers[d], p = ((t = h.meta) == null ? void 0 : t[mt]) === !0;
1445
1454
  if (r !== h)
1446
- if (c instanceof je) {
1455
+ if (c instanceof He) {
1447
1456
  if (st(i, r.rectangle))
1448
1457
  if (st(i, h.rectangle) && !p) {
1449
1458
  r.meta = {
@@ -1473,7 +1482,7 @@ class qo {
1473
1482
  else
1474
1483
  o === this.layers.length - 1 && (r.meta = {
1475
1484
  ...r.meta ?? {},
1476
- relevantToExtent: c instanceof je
1485
+ relevantToExtent: c instanceof He
1477
1486
  });
1478
1487
  }
1479
1488
  }
@@ -1482,10 +1491,10 @@ class qo {
1482
1491
  }
1483
1492
  }
1484
1493
  }
1485
- const Zo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24", width: "24", viewBox: "0 0 612 612", children: /* @__PURE__ */ z("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1494
+ const Xo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24", width: "24", viewBox: "0 0 612 612", children: /* @__PURE__ */ $("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1486
1495
  /* @__PURE__ */ l("path", { d: "M322.4,173.9l-129,16.2l-4.6,21.4l25.3,4.7c16.5,3.9,19.8,9.9,16.2,26.4l-41.5,195.3c-10.9,50.5,5.9,74.3,45.5,74.3 c30.7,0,66.3-14.2,82.5-33.6l4.9-23.4c-11.3,9.9-27.7,13.9-38.6,13.9c-15.5,0-21.1-10.9-17.1-30L322.4,173.9z" }),
1487
1496
  /* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
1488
- ] }) }), Xo = ({ onClick: e }) => /* @__PURE__ */ l(me, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(He, { icon: Zo, className: "mapLegendIcon" }) }), Jo = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1497
+ ] }) }), Jo = ({ onClick: e }) => /* @__PURE__ */ l(me, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l($e, { icon: Xo, className: "mapLegendIcon" }) }), Qo = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1489
1498
  const r = xe(() => {
1490
1499
  window.open(e, "_blank");
1491
1500
  }, [e]);
@@ -1499,70 +1508,70 @@ const Zo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1499
1508
  typeof e == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: e, target: "_blank", rel: "noreferrer", children: o }),
1500
1509
  typeof n == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: n, target: "_blank", rel: "noreferrer", children: i })
1501
1510
  ], [e, o, n, i]);
1502
- return /* @__PURE__ */ z(me, { className: "mapLegend", children: [
1511
+ return /* @__PURE__ */ $(me, { className: "mapLegend", children: [
1503
1512
  c(),
1504
1513
  /* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
1505
1514
  /* @__PURE__ */ l(me, { className: "legendActionsContainer", children: d() })
1506
1515
  ] });
1507
- }, Qo = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1508
- const o = xe(() => /* @__PURE__ */ l(me, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = xe(() => e.length ? e.map((c, d) => /* @__PURE__ */ l(Jo, { legend: c, docText: n, imgText: t }, `${c.layer}_${d}`)) : o(), [e]);
1516
+ }, es = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1517
+ const o = xe(() => /* @__PURE__ */ l(me, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = xe(() => e.length ? e.map((c, d) => /* @__PURE__ */ l(Qo, { legend: c, docText: n, imgText: t }, `${c.layer}_${d}`)) : o(), [e]);
1509
1518
  return /* @__PURE__ */ l(me, { className: "mapLegendsList", children: r() });
1510
- }, es = ({
1519
+ }, ts = ({
1511
1520
  isOpen: e,
1512
1521
  toggleSidebar: n,
1513
1522
  title: t = "Map Legends",
1514
1523
  noLegendsText: i = "No legends to display...",
1515
1524
  actionsTexts: o = { docText: "Docs", imgText: "View Image" },
1516
1525
  legends: r = []
1517
- }) => e ? /* @__PURE__ */ z(vi, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1526
+ }) => e ? /* @__PURE__ */ $(vi, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1518
1527
  /* @__PURE__ */ l(Ei, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(Ci, { className: "sidebarTitle", children: t }) }),
1519
- /* @__PURE__ */ z(wi, { className: "sidebarContent", children: [
1520
- /* @__PURE__ */ l(He, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1521
- /* @__PURE__ */ l(Qo, { noLegendsText: i, legends: r, actionsTexts: o })
1528
+ /* @__PURE__ */ $(wi, { className: "sidebarContent", children: [
1529
+ /* @__PURE__ */ l($e, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1530
+ /* @__PURE__ */ l(es, { noLegendsText: i, legends: r, actionsTexts: o })
1522
1531
  ] })
1523
1532
  ] }) : null;
1524
- class wl extends pr {
1533
+ class bl extends pr {
1525
1534
  }
1526
- class bl extends gr {
1535
+ class Ll extends gr {
1527
1536
  }
1528
- class Ll extends fr {
1537
+ class Tl extends fr {
1529
1538
  }
1530
- class Tl extends Ne {
1539
+ class Sl extends Ie {
1531
1540
  }
1532
- class Sl extends _e {
1541
+ class Ml extends _e {
1533
1542
  }
1534
- class ts extends Re {
1543
+ class ns extends Ne {
1535
1544
  }
1536
- class Ml extends Rn {
1545
+ class _l extends Rn {
1537
1546
  }
1538
- class _l extends zt {
1547
+ class Pl extends Wt {
1539
1548
  }
1540
- class Pl extends yr {
1549
+ class xl extends yr {
1541
1550
  }
1542
- class xl extends je {
1551
+ class Dl extends He {
1543
1552
  }
1544
- class Dl extends vr {
1553
+ class Il extends vr {
1545
1554
  }
1546
- class Il extends Er {
1555
+ class Ol extends Er {
1547
1556
  }
1548
- class Ol extends Cr {
1557
+ class Al extends Cr {
1549
1558
  }
1550
- class Al extends Nn {
1559
+ class kl extends Nn {
1551
1560
  }
1552
- class kl extends Qe {
1561
+ class Rl extends Qe {
1553
1562
  }
1554
- class Rl extends wr {
1563
+ class Nl extends wr {
1555
1564
  }
1556
- class Nl extends It {
1565
+ class Bl extends Ot {
1557
1566
  }
1558
- class Bl extends Ge {
1567
+ class Fl extends Ge {
1559
1568
  }
1560
- class Fl extends Bn {
1569
+ class Vl extends Bn {
1561
1570
  }
1562
- class Vl extends br {
1571
+ class Gl extends br {
1563
1572
  }
1564
- const Gl = ut, Hl = Lr, we = $e, $l = Fn, zl = Ot;
1565
- const ns = it(
1573
+ const Hl = ut, $l = Lr, be = ze, zl = Fn, Wl = At;
1574
+ const is = it(
1566
1575
  (e) => pt({
1567
1576
  mapContainer: {
1568
1577
  width: "60px",
@@ -1570,8 +1579,8 @@ const ns = it(
1570
1579
  border: `${e.palette.background.paper} 2px solid`
1571
1580
  }
1572
1581
  })
1573
- ), is = (e) => {
1574
- const n = Ce(), { baseMaps: t } = e, [i, o] = F(" "), [r, c] = F(), d = ns();
1582
+ ), rs = (e) => {
1583
+ const n = we(), { baseMaps: t } = e, [i, o] = F(" "), [r, c] = F(), d = is();
1575
1584
  N(() => {
1576
1585
  const p = t == null ? void 0 : t.maps.find((C) => C.isCurrent);
1577
1586
  p && (c(p), o(p.title !== void 0 ? p.title : " "));
@@ -1586,7 +1595,7 @@ const ns = it(
1586
1595
  }));
1587
1596
  }
1588
1597
  };
1589
- return /* @__PURE__ */ z(Ee, { children: [
1598
+ return /* @__PURE__ */ $(Ce, { children: [
1590
1599
  /* @__PURE__ */ l("label", { className: "mapLabel", children: i }),
1591
1600
  /* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((p) => /* @__PURE__ */ l("li", { className: `mapContainer ${d.mapContainer} ${p === r ? "mapContainerSelected" : ""}`, children: /* @__PURE__ */ l(
1592
1601
  "img",
@@ -1607,41 +1616,41 @@ const ns = it(
1607
1616
  ) }, p.id)) })
1608
1617
  ] });
1609
1618
  };
1610
- const rs = -1, os = (e) => {
1611
- const n = Ce(), [t, i] = F(we.SCENE2D), { sceneModes: o } = e, r = (c) => o.findIndex((d) => d === c) > rs;
1619
+ const os = -1, ss = (e) => {
1620
+ const n = we(), [t, i] = F(be.SCENE2D), { sceneModes: o } = e, r = (c) => o.findIndex((d) => d === c) > os;
1612
1621
  return N(() => {
1613
1622
  i(n.scene.mode);
1614
- }, []), /* @__PURE__ */ z(Ee, { children: [
1615
- r(we.SCENE3D) && /* @__PURE__ */ l(
1616
- He,
1623
+ }, []), /* @__PURE__ */ $(Ce, { children: [
1624
+ r(be.SCENE3D) && /* @__PURE__ */ l(
1625
+ $e,
1617
1626
  {
1618
- icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === we.SCENE3D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z" }) }) }),
1627
+ icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === be.SCENE3D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z" }) }) }),
1619
1628
  onClick: () => {
1620
- n.scene.morphTo3D(), i(we.SCENE3D);
1629
+ n.scene.morphTo3D(), i(be.SCENE3D);
1621
1630
  }
1622
1631
  }
1623
1632
  ),
1624
- r(we.SCENE2D) && /* @__PURE__ */ l(
1625
- He,
1633
+ r(be.SCENE2D) && /* @__PURE__ */ l(
1634
+ $e,
1626
1635
  {
1627
- icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === we.SCENE2D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z" }) }) }),
1636
+ icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === be.SCENE2D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z" }) }) }),
1628
1637
  onClick: () => {
1629
- n.scene.morphTo2D(), i(we.SCENE2D);
1638
+ n.scene.morphTo2D(), i(be.SCENE2D);
1630
1639
  }
1631
1640
  }
1632
1641
  ),
1633
- r(we.COLUMBUS_VIEW) && /* @__PURE__ */ l(
1634
- He,
1642
+ r(be.COLUMBUS_VIEW) && /* @__PURE__ */ l(
1643
+ $e,
1635
1644
  {
1636
- icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === we.COLUMBUS_VIEW ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z" }) }) }),
1645
+ icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === be.COLUMBUS_VIEW ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z" }) }) }),
1637
1646
  onClick: () => {
1638
- n.scene.morphToColumbusView(), i(we.COLUMBUS_VIEW);
1647
+ n.scene.morphToColumbusView(), i(be.COLUMBUS_VIEW);
1639
1648
  }
1640
1649
  }
1641
1650
  )
1642
1651
  ] });
1643
1652
  };
1644
- const Mt = "ic_settings_24px", ss = (e) => {
1653
+ const Mt = "ic_settings_24px", as = (e) => {
1645
1654
  const [n, t] = F(!1), { sceneModes: i, baseMaps: o, locale: r } = e, c = Pe(null), d = ie(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", h = ie(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", p = ie(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1646
1655
  return N(() => {
1647
1656
  const C = (m) => {
@@ -1652,9 +1661,9 @@ const Mt = "ic_settings_24px", ss = (e) => {
1652
1661
  return document.addEventListener("click", C, !1), () => {
1653
1662
  document.removeEventListener("click", C, !1);
1654
1663
  };
1655
- }), /* @__PURE__ */ z(Ee, { children: [
1664
+ }), /* @__PURE__ */ $(Ce, { children: [
1656
1665
  /* @__PURE__ */ l(
1657
- He,
1666
+ $e,
1658
1667
  {
1659
1668
  icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id: Mt, x: "288", y: "24", children: /* @__PURE__ */ l("path", { d: "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" }) }) }),
1660
1669
  onClick: () => {
@@ -1662,7 +1671,7 @@ const Mt = "ic_settings_24px", ss = (e) => {
1662
1671
  }
1663
1672
  }
1664
1673
  ),
1665
- n && /* @__PURE__ */ l("div", { className: "settingsDialogPortal", ref: c, children: /* @__PURE__ */ z(
1674
+ n && /* @__PURE__ */ l("div", { className: "settingsDialogPortal", ref: c, children: /* @__PURE__ */ $(
1666
1675
  xn,
1667
1676
  {
1668
1677
  open: n,
@@ -1671,12 +1680,12 @@ const Mt = "ic_settings_24px", ss = (e) => {
1671
1680
  },
1672
1681
  children: [
1673
1682
  /* @__PURE__ */ l(Dn, { children: d }),
1674
- /* @__PURE__ */ z(In, { children: [
1683
+ /* @__PURE__ */ $(In, { children: [
1675
1684
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: h }),
1676
- /* @__PURE__ */ l(me, { className: "mapScenesContainer", children: /* @__PURE__ */ l(os, { sceneModes: i }) }),
1677
- /* @__PURE__ */ l(me, { className: "baseMapsContainer", children: o && /* @__PURE__ */ z(Ee, { children: [
1685
+ /* @__PURE__ */ l(me, { className: "mapScenesContainer", children: /* @__PURE__ */ l(ss, { sceneModes: i }) }),
1686
+ /* @__PURE__ */ l(me, { className: "baseMapsContainer", children: o && /* @__PURE__ */ $(Ce, { children: [
1678
1687
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: p }),
1679
- /* @__PURE__ */ l(is, { baseMaps: o })
1688
+ /* @__PURE__ */ l(rs, { baseMaps: o })
1680
1689
  ] }) })
1681
1690
  ] })
1682
1691
  ]
@@ -1684,8 +1693,8 @@ const Mt = "ic_settings_24px", ss = (e) => {
1684
1693
  ) })
1685
1694
  ] });
1686
1695
  };
1687
- const as = (e) => {
1688
- const n = Ce(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
1696
+ const ls = (e) => {
1697
+ const n = we(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
1689
1698
  return N(() => {
1690
1699
  if (typeof ie(n, "cesiumNavigation") > "u") {
1691
1700
  n.extend(Vr, {
@@ -1698,34 +1707,34 @@ const as = (e) => {
1698
1707
  }
1699
1708
  }, [n, t, i, r.DIRECTION, o]), null;
1700
1709
  };
1701
- const ls = (e) => {
1702
- const n = Ce(), t = Pe(null), [i, o] = F({ x: 0, y: 0 });
1710
+ const cs = (e) => {
1711
+ const n = we(), t = Pe(null), [i, o] = F({ x: 0, y: 0 });
1703
1712
  return N(() => {
1704
1713
  n.screenSpaceEventHandler.setInputAction((r) => {
1705
1714
  if (r != null && r.endPosition) {
1706
1715
  const c = { ...r.endPosition };
1707
1716
  c.x = Math.ceil(c.x), c.y = Math.ceil(c.y), o(c);
1708
1717
  }
1709
- }, At.MOUSE_MOVE);
1718
+ }, kt.MOUSE_MOVE);
1710
1719
  }, [t, n]), N(() => {
1711
1720
  const r = n.scene.globe.ellipsoid;
1712
1721
  if (i) {
1713
1722
  const c = Yn(n, i.x, i.y);
1714
1723
  if (c) {
1715
- const d = new ts(c.longitude, c.latitude);
1724
+ const d = new ns(c.longitude, c.latitude);
1716
1725
  if (t.current) {
1717
1726
  let h = "";
1718
1727
  switch (e.projection) {
1719
- case Ae.WEB_MERCATOR: {
1728
+ case ke.WEB_MERCATOR: {
1720
1729
  const C = new Tr(r).project(d);
1721
- h = `Mercator: ${C.y.toFixed(Bt)}m, ${C.x.toFixed(
1722
- Bt
1730
+ h = `Mercator: ${C.y.toFixed(Ft)}m, ${C.x.toFixed(
1731
+ Ft
1723
1732
  )}m`, t.current.style.width = "220px";
1724
1733
  break;
1725
1734
  }
1726
- case Ae.WGS84: {
1727
- const p = d.longitude.toFixed(Nt);
1728
- h = `WGS84: ${d.latitude.toFixed(Nt)}°N ${p}°E`, t.current.style.width = "200px";
1735
+ case ke.WGS84: {
1736
+ const p = d.longitude.toFixed(Bt);
1737
+ h = `WGS84: ${d.latitude.toFixed(Bt)}°N ${p}°E`, t.current.style.width = "200px";
1729
1738
  break;
1730
1739
  }
1731
1740
  }
@@ -1768,7 +1777,7 @@ const _t = [
1768
1777
  2e7,
1769
1778
  3e7,
1770
1779
  5e7
1771
- ], cs = (e, n, t, i) => {
1780
+ ], ds = (e, n, t, i) => {
1772
1781
  const o = ie(i, "METERS_UNIT") ?? "m", r = ie(i, "KILOMETERS_UNIT") ?? "km", c = {
1773
1782
  barWidth: void 0,
1774
1783
  distanceLabel: void 0,
@@ -1777,11 +1786,11 @@ const _t = [
1777
1786
  if (h < c.lastLegendUpdate + 250)
1778
1787
  return;
1779
1788
  c.lastLegendUpdate = h;
1780
- const p = e.scene.canvas.clientWidth, C = e.scene.canvas.clientHeight, m = e.scene.camera.getPickRay(new Ne(p / 2 | 0, C - 1)), b = e.scene.camera.getPickRay(new Ne(1 + p / 2 | 0, C - 1)), P = e.scene.globe, S = P.pick(m, e.scene), H = P.pick(b, e.scene);
1789
+ const p = e.scene.canvas.clientWidth, C = e.scene.canvas.clientHeight, m = e.scene.camera.getPickRay(new Ie(p / 2 | 0, C - 1)), b = e.scene.camera.getPickRay(new Ie(1 + p / 2 | 0, C - 1)), P = e.scene.globe, S = P.pick(m, e.scene), H = P.pick(b, e.scene);
1781
1790
  if (!S || !H)
1782
1791
  return;
1783
- const Z = P.ellipsoid.cartesianToCartographic(S), W = P.ellipsoid.cartesianToCartographic(H);
1784
- d.setEndPoints(Z, W);
1792
+ const Z = P.ellipsoid.cartesianToCartographic(S), z = P.ellipsoid.cartesianToCartographic(H);
1793
+ d.setEndPoints(Z, z);
1785
1794
  const q = d.surfaceDistance, Y = 100;
1786
1795
  let k;
1787
1796
  for (let X = _t.length - 1; !ht(k) && X >= 0; --X)
@@ -1791,15 +1800,15 @@ const _t = [
1791
1800
  k >= 1e3 ? X = `${(k / 1e3).toString()} ${r}` : X = `${k.toString()} ${o}`, c.barWidth = k / q | 0, c.distanceLabel = X;
1792
1801
  }
1793
1802
  t(c);
1794
- }, ds = (e) => {
1795
- const n = Ce(), [t, i] = F({
1803
+ }, us = (e) => {
1804
+ const n = we(), [t, i] = F({
1796
1805
  barWidth: void 0,
1797
1806
  distanceLabel: void 0,
1798
1807
  lastLegendUpdate: -1
1799
1808
  });
1800
1809
  N(() => {
1801
1810
  const r = (h) => {
1802
- cs(n, t, i, e.locale);
1811
+ ds(n, t, i, e.locale);
1803
1812
  }, c = new Sr(), d = (h) => {
1804
1813
  n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), c.removeAll());
1805
1814
  };
@@ -1812,7 +1821,7 @@ const _t = [
1812
1821
  };
1813
1822
  }, [n, e.locale, t]);
1814
1823
  const o = (r) => 5 + (125 - r) / 2;
1815
- return /* @__PURE__ */ l("div", { className: "scalePosition", children: ht(t.barWidth) && /* @__PURE__ */ z(Ee, { children: [
1824
+ return /* @__PURE__ */ l("div", { className: "scalePosition", children: ht(t.barWidth) && /* @__PURE__ */ $(Ce, { children: [
1816
1825
  /* @__PURE__ */ l("div", { className: "scale-tracker-label", children: /* @__PURE__ */ l("bdi", { children: t.distanceLabel }) }),
1817
1826
  /* @__PURE__ */ l(
1818
1827
  "div",
@@ -1833,7 +1842,7 @@ const gn = (e, n) => {
1833
1842
  if (i.getLevelMaximumGeometricError(d) * r / (e * c) < o.maximumScreenSpaceError)
1834
1843
  return d;
1835
1844
  return null;
1836
- }, us = (e, n) => {
1845
+ }, hs = (e, n) => {
1837
1846
  e = e || 10;
1838
1847
  const t = [];
1839
1848
  let i = 1e5, o = 0;
@@ -1852,18 +1861,18 @@ const gn = (e, n) => {
1852
1861
  }
1853
1862
  }
1854
1863
  return t;
1855
- }, hs = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1856
- const t = Ce(), i = rt(), [o, r] = F(1), c = us(1, t), d = xe(() => {
1864
+ }, ms = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1865
+ const t = we(), i = rt(), [o, r] = F(1), c = hs(1, t), d = xe(() => {
1857
1866
  const m = t.camera, b = 0.5;
1858
1867
  let P = 0;
1859
1868
  switch (t.scene.mode) {
1860
- case we.SCENE3D:
1869
+ case be.SCENE3D:
1861
1870
  P = t.scene.mapProjection.ellipsoid.cartesianToCartographic(m.positionWC).height;
1862
1871
  break;
1863
- case we.SCENE2D:
1872
+ case be.SCENE2D:
1864
1873
  P = (m.frustum.right - m.frustum.left) * b;
1865
1874
  break;
1866
- case we.COLUMBUS_VIEW:
1875
+ case be.COLUMBUS_VIEW:
1867
1876
  P = m.position.z;
1868
1877
  break;
1869
1878
  default:
@@ -1879,7 +1888,7 @@ const gn = (e, n) => {
1879
1888
  t.scene.globe._surface.forEachRenderedTile(function(b) {
1880
1889
  m = Math.max(m, b.level);
1881
1890
  }), r(m), i.setViewState && i.setViewState((b) => ({ ...b, currentZoomLevel: m }));
1882
- }, [t]), C = be(
1891
+ }, [t]), C = fe(
1883
1892
  () => ({
1884
1893
  CALCULATION: d,
1885
1894
  RENDERED_TILES: h
@@ -1897,18 +1906,18 @@ const gn = (e, n) => {
1897
1906
  console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', b);
1898
1907
  }
1899
1908
  };
1900
- }, [t, C]), /* @__PURE__ */ z("div", { className: "zoomLevel", children: [
1909
+ }, [t, C]), /* @__PURE__ */ $("div", { className: "zoomLevel", children: [
1901
1910
  /* @__PURE__ */ l("div", { className: "zoomLevelValue", children: o }),
1902
1911
  /* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: ie(e, "ZOOM_LABEL") ?? "zoom" })
1903
1912
  ] });
1904
1913
  };
1905
- const ms = () => {
1906
- const e = Ce();
1914
+ const ps = () => {
1915
+ const e = we();
1907
1916
  return /* @__PURE__ */ l("div", { className: "zoom-buttons-container", children: [
1908
1917
  { onClick: () => e.camera.zoomIn(), iconPath: "M48 20h-18v-18h-10v18h-18v10h18v18h10v-18h18z" },
1909
1918
  { onClick: () => e.camera.zoomOut(), iconPath: "M2 20h46v10h-46z" }
1910
1919
  ].map((t, i) => /* @__PURE__ */ l(
1911
- He,
1920
+ $e,
1912
1921
  {
1913
1922
  icon: /* @__PURE__ */ l("div", { className: "zoom-button", children: /* @__PURE__ */ l(
1914
1923
  "svg",
@@ -1929,26 +1938,26 @@ const ms = () => {
1929
1938
  i
1930
1939
  )) });
1931
1940
  };
1932
- const fn = 212, yn = 260, ps = 0;
1933
- class Wl extends _r {
1941
+ const fn = 212, yn = 260, gs = 0;
1942
+ class Ul extends _r {
1934
1943
  constructor(t, i) {
1935
1944
  super(t, i);
1936
1945
  ce(this, "layersManager");
1937
1946
  }
1938
1947
  }
1939
- const jt = Ke(null), gs = jt.Provider, Ce = () => {
1940
- const e = ze(jt);
1948
+ const Kt = Ke(null), fs = Kt.Provider, we = () => {
1949
+ const e = We(Kt);
1941
1950
  if (e === null)
1942
1951
  throw new Error("map context is null, please check the provider");
1943
1952
  return e.mapViewer;
1944
1953
  }, rt = () => {
1945
- const { mapViewer: e, ...n } = ze(jt);
1954
+ const { mapViewer: e, ...n } = We(Kt);
1946
1955
  if (n === null)
1947
1956
  throw new Error("map context viewstate is null, please check the provider");
1948
1957
  return n;
1949
- }, Ul = (e) => {
1950
- var L, T, O, B, R, j, oe, fe;
1951
- const n = Pe(null), [t, i] = F(), [o, r] = F(), [c, d] = F(), [h, p] = F(), [C, m] = F(), [b, P] = F(), [S, H] = F(), [Z, W] = F(!1), [q, Y] = F(!1), [k, X] = F(), G = Pe(), [K, se] = F(), [s, a] = F([]), [y, u] = F(), [v, g] = F(!1), w = Pe(), [f, M] = F(void 0), [D, x] = F(!1), [_, I] = F(), [A, re] = F(), ae = be(() => Z || q, [Z, q]), [$, te] = F();
1958
+ }, jl = (e) => {
1959
+ var L, T, O, B, R, j, oe, ye;
1960
+ const n = Pe(null), [t, i] = F(), [o, r] = F(), [c, d] = F(), [h, p] = F(), [C, m] = F(), [b, P] = F(), [S, H] = F(), [Z, z] = F(!1), [q, Y] = F(!1), [k, X] = F(), G = Pe(), [K, se] = F(), [s, a] = F([]), [y, u] = F(), [v, g] = F(!1), w = Pe(), [f, M] = F(void 0), [D, x] = F(!1), [_, I] = F(), [A, re] = F(), ae = fe(() => Z || q, [Z, q]), [W, te] = F();
1952
1961
  N(() => {
1953
1962
  te({
1954
1963
  currentZoomLevel: -1,
@@ -1966,17 +1975,17 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
1966
1975
  sceneModePicker: !1,
1967
1976
  imageryProvider: !1,
1968
1977
  ...e
1969
- }, pe = (U, J, V, ee, ge) => {
1970
- const de = t.container, le = de.clientWidth, ye = de.clientHeight, Le = ee + ge;
1978
+ }, pe = (U, Q, V, ee, ge) => {
1979
+ const de = t.container, le = de.clientWidth, ve = de.clientHeight, Le = ee + ge;
1971
1980
  return {
1972
1981
  left: `${le - U < V ? U - (V - (le - U)) : U}px`,
1973
- top: `${ye - J < Le ? J - (Le - (ye - J)) : J}px`
1982
+ top: `${ve - Q < Le ? Q - (Le - (ve - Q)) : Q}px`
1974
1983
  };
1975
- }, ke = xe(
1984
+ }, Re = xe(
1976
1985
  (U) => {
1977
1986
  if (n.current !== null) {
1978
- const J = n.current.cesiumElement, V = { x: U.offsetX, y: U.offsetY };
1979
- g(!1), M(V), I(Yn(J, V.x, V.y)), g(!0), w.current = U;
1987
+ const Q = n.current.cesiumElement, V = { x: U.offsetX, y: U.offsetY };
1988
+ g(!1), M(V), I(Yn(Q, V.x, V.y)), g(!0), w.current = U;
1980
1989
  }
1981
1990
  },
1982
1991
  [n]
@@ -1984,42 +1993,42 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
1984
1993
  N(() => {
1985
1994
  var U;
1986
1995
  if (n.current !== null) {
1987
- const J = n.current.cesiumElement;
1988
- e.imageryContextMenu && (J.scene.canvas.removeEventListener("contextmenu", ke), J.scene.canvas.addEventListener("contextmenu", ke));
1996
+ const Q = n.current.cesiumElement;
1997
+ e.imageryContextMenu && (Q.scene.canvas.removeEventListener("contextmenu", Re), Q.scene.canvas.addEventListener("contextmenu", Re));
1989
1998
  }
1990
1999
  i((U = n.current) == null ? void 0 : U.cesiumElement);
1991
2000
  }, [n, e.imageryContextMenu]);
1992
- const Me = be(() => {
2001
+ const Me = fe(() => {
1993
2002
  var U;
1994
2003
  if (t)
1995
2004
  return {
1996
- mapViewer: Object.assign(t, {
1997
- layersManager: new qo(
2005
+ mapViewer: t.layersManager ? t : Object.assign(t, {
2006
+ layersManager: new Zo(
1998
2007
  t,
1999
2008
  (U = e.legends) == null ? void 0 : U.mapLegendsExtractor,
2000
2009
  () => {
2001
- var J;
2002
- a((J = t.layersManager) == null ? void 0 : J.legendsList);
2010
+ var V;
2011
+ a((V = t.layersManager) == null ? void 0 : V.legendsList);
2003
2012
  },
2004
2013
  e.layerManagerFootprintMetaFieldPath,
2005
- $ == null ? void 0 : $.shouldOptimizedTileRequests
2014
+ W == null ? void 0 : W.shouldOptimizedTileRequests
2006
2015
  )
2007
2016
  }),
2008
- viewState: $,
2017
+ viewState: W,
2009
2018
  setViewState: te
2010
2019
  };
2011
- }, [e.useOptimizedTileRequests, e.legends, e.layerManagerFootprintMetaFieldPath, t, $ == null ? void 0 : $.shouldOptimizedTileRequests]);
2020
+ }, [e.useOptimizedTileRequests, e.legends, e.layerManagerFootprintMetaFieldPath, t, W]);
2012
2021
  N(() => {
2013
2022
  se(
2014
- e.sceneModes ?? [we.SCENE2D, we.SCENE3D, we.COLUMBUS_VIEW]
2023
+ e.sceneModes ?? [be.SCENE2D, be.SCENE3D, be.COLUMBUS_VIEW]
2015
2024
  );
2016
2025
  }, [e.sceneModes]), N(() => {
2017
- var J, V;
2026
+ var Q, V;
2018
2027
  u(e.baseMaps);
2019
- const U = (J = e.baseMaps) == null ? void 0 : J.maps.find((ee) => ee.isCurrent);
2028
+ const U = (Q = e.baseMaps) == null ? void 0 : Q.maps.find((ee) => ee.isCurrent);
2020
2029
  U && t && ((V = t.layersManager) == null || V.setBaseMapLayers(U));
2021
2030
  }, [e.baseMaps, t]), N(() => {
2022
- r(e.projection ?? Ae.WGS84);
2031
+ r(e.projection ?? ke.WGS84);
2023
2032
  }, [e.projection]), N(() => {
2024
2033
  X(e.locale);
2025
2034
  }, [e.locale]), N(() => {
@@ -2033,7 +2042,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2033
2042
  }, [e.showCompass]), N(() => {
2034
2043
  H(e.showLoadingProgress ?? !0);
2035
2044
  }, [e.showLoadingProgress]), N(() => {
2036
- var J;
2045
+ var Q;
2037
2046
  const U = () => {
2038
2047
  if (t === void 0)
2039
2048
  return {
@@ -2049,8 +2058,8 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2049
2058
  height: ee.height
2050
2059
  };
2051
2060
  };
2052
- if (t.scene.mode === $e.SCENE3D) {
2053
- const ee = new Ne(
2061
+ if (t.scene.mode === ze.SCENE3D) {
2062
+ const ee = new Ie(
2054
2063
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
2055
2064
  t.container.clientWidth / 2,
2056
2065
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
@@ -2072,7 +2081,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2072
2081
  return V();
2073
2082
  };
2074
2083
  t && (t.camera.moveEnd.addEventListener(() => {
2075
- if (t.scene.mode !== $e.MORPHING) {
2084
+ if (t.scene.mode !== ze.MORPHING) {
2076
2085
  const V = t.camera, ee = {
2077
2086
  position: U(),
2078
2087
  direction: V.direction.clone(),
@@ -2084,8 +2093,8 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2084
2093
  G.current = ee;
2085
2094
  }
2086
2095
  }), S && (t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
2087
- t.scene.globe.tilesLoaded ? W(!1) : W(!0);
2088
- }), (J = t.layersManager) == null || J.addDataLayerUpdatedListener(() => {
2096
+ t.scene.globe.tilesLoaded ? z(!1) : z(!0);
2097
+ }), (Q = t.layersManager) == null || Q.addDataLayerUpdatedListener(() => {
2089
2098
  var ee;
2090
2099
  let V = !1;
2091
2100
  (ee = t.layersManager) == null || ee.dataLayerList.forEach((ge) => {
@@ -2098,9 +2107,9 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2098
2107
  }, [t]), N(() => {
2099
2108
  const U = () => {
2100
2109
  if (t && G.current) {
2101
- const J = G.current;
2110
+ const Q = G.current;
2102
2111
  t.camera.flyTo({
2103
- destination: _e.fromDegrees(J.position.longitude, J.position.latitude, J.position.height),
2112
+ destination: _e.fromDegrees(Q.position.longitude, Q.position.latitude, Q.position.height),
2104
2113
  duration: 0
2105
2114
  });
2106
2115
  }
@@ -2114,35 +2123,35 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2114
2123
  }
2115
2124
  };
2116
2125
  }, [t]), N(() => {
2117
- const U = e.zoom, J = e.center;
2118
- t && ht(U) && kr(J) && t.camera.flyTo({
2119
- destination: _e.fromDegrees(J[0], J[1], Fo(U)),
2126
+ const U = e.zoom, Q = e.center;
2127
+ t && ht(U) && kr(Q) && t.camera.flyTo({
2128
+ destination: _e.fromDegrees(Q[0], Q[1], Fo(U)),
2120
2129
  duration: 0
2121
2130
  });
2122
2131
  }, [e.zoom, e.center, t]), N(() => {
2123
2132
  re(e.displayZoomButtons ?? !0);
2124
2133
  }, [e.displayZoomButtons]);
2125
- const ve = xe(() => t && nr(
2126
- /* @__PURE__ */ z(Ee, { children: [
2134
+ const Ee = xe(() => t && nr(
2135
+ /* @__PURE__ */ $(Ce, { children: [
2127
2136
  S && ae && /* @__PURE__ */ l(bi, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
2128
- /* @__PURE__ */ z(me, { className: "sideToolsContainer", children: [
2137
+ /* @__PURE__ */ $(me, { className: "sideToolsContainer", children: [
2129
2138
  e.debugPanel && /* @__PURE__ */ l(Vo, { locale: k, children: e.debugPanel.wfs && /* @__PURE__ */ l(Go, { locale: k, featureTypes: [] }) }),
2130
- /* @__PURE__ */ l(ss, { sceneModes: K, baseMaps: y, locale: k }),
2131
- /* @__PURE__ */ l(Xo, { onClick: () => x(!D) })
2139
+ /* @__PURE__ */ l(as, { sceneModes: K, baseMaps: y, locale: k }),
2140
+ /* @__PURE__ */ l(Jo, { onClick: () => x(!D) })
2132
2141
  ] }),
2133
- /* @__PURE__ */ z(me, { className: "toolsContainer", children: [
2134
- c && /* @__PURE__ */ l(ls, { projection: o }),
2135
- h && /* @__PURE__ */ l(hs, { locale: k, valueBy: "RENDERED_TILES" }),
2136
- C && /* @__PURE__ */ l(ds, { locale: k }),
2137
- b && /* @__PURE__ */ l(as, { locale: k })
2142
+ /* @__PURE__ */ $(me, { className: "toolsContainer", children: [
2143
+ c && /* @__PURE__ */ l(cs, { projection: o }),
2144
+ h && /* @__PURE__ */ l(ms, { locale: k, valueBy: "RENDERED_TILES" }),
2145
+ C && /* @__PURE__ */ l(us, { locale: k }),
2146
+ b && /* @__PURE__ */ l(ls, { locale: k })
2138
2147
  ] }),
2139
- A && /* @__PURE__ */ l(ms, {})
2148
+ A && /* @__PURE__ */ l(ps, {})
2140
2149
  ] }),
2141
2150
  document.querySelector(".cesium-viewer")
2142
2151
  ), [y, k, t, o, K, c, C, D, ae]);
2143
- return /* @__PURE__ */ l(ir, { className: "viewer", full: !0, ref: n, ...ue, children: /* @__PURE__ */ z(gs, { value: Me, children: [
2152
+ return /* @__PURE__ */ l(ir, { className: "viewer", full: !0, ref: n, ...ue, children: /* @__PURE__ */ $(fs, { value: Me, children: [
2144
2153
  /* @__PURE__ */ l(
2145
- es,
2154
+ ts,
2146
2155
  {
2147
2156
  title: (L = e.legends) == null ? void 0 : L.title,
2148
2157
  isOpen: D,
@@ -2153,8 +2162,8 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2153
2162
  }
2154
2163
  ),
2155
2164
  e.children,
2156
- ve(),
2157
- e.imageryContextMenu && v && f && _ && Oe.cloneElement(e.imageryContextMenu, {
2165
+ Ee(),
2166
+ e.imageryContextMenu && v && f && _ && Ae.cloneElement(e.imageryContextMenu, {
2158
2167
  data: (R = t == null ? void 0 : t.layersManager) == null ? void 0 : R.findLayerByPOI(
2159
2168
  f.x,
2160
2169
  f.y,
@@ -2170,7 +2179,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2170
2179
  f.y,
2171
2180
  ((j = e.imageryContextMenuSize) == null ? void 0 : j.width) ?? yn,
2172
2181
  ((oe = e.imageryContextMenuSize) == null ? void 0 : oe.height) ?? fn,
2173
- ((fe = e.imageryContextMenuSize) == null ? void 0 : fe.dynamicHeightIncrement) ?? ps
2182
+ ((ye = e.imageryContextMenuSize) == null ? void 0 : ye.dynamicHeightIncrement) ?? gs
2174
2183
  ),
2175
2184
  size: e.imageryContextMenuSize ?? {
2176
2185
  height: fn,
@@ -2182,8 +2191,8 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2182
2191
  contextEvt: w.current
2183
2192
  })
2184
2193
  ] }) });
2185
- }, fs = 0, jl = (e) => {
2186
- const n = Ce();
2194
+ }, ys = 0, Kl = (e) => {
2195
+ const n = we();
2187
2196
  return /* @__PURE__ */ l(
2188
2197
  rr,
2189
2198
  {
@@ -2192,7 +2201,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2192
2201
  e.isZoomTo === !0 && n.zoomTo(t);
2193
2202
  const i = n.scene;
2194
2203
  i.globe.depthTestAgainstTerrain = !0;
2195
- const o = Re.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? fs;
2204
+ const o = Ne.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? ys;
2196
2205
  if (r) {
2197
2206
  const c = _e.fromRadians(o.longitude, o.latitude, o.height), d = _e.fromRadians(o.longitude, o.latitude, o.height + r), h = _e.subtract(d, c, new _e());
2198
2207
  t.modelMatrix = Pr.fromTranslation(h);
@@ -2217,31 +2226,31 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2217
2226
  });
2218
2227
  break;
2219
2228
  }
2220
- }, Kl = (e) => {
2229
+ }, Yl = (e) => {
2221
2230
  const { data: n, ...t } = e, i = Rr(n);
2222
2231
  return i && (typeof i.features < "u" ? i.features.forEach((o) => {
2223
2232
  wn(o.geometry);
2224
2233
  }) : wn(i)), /* @__PURE__ */ l(or, { data: i, ...t });
2225
2234
  }, vt = (e) => {
2226
- const { meta: n, ...t } = e, i = Ce();
2235
+ const { meta: n, ...t } = e, i = we();
2227
2236
  return Tn(() => {
2228
2237
  var o;
2229
2238
  (o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
2230
2239
  }, [n, i]), /* @__PURE__ */ l(sr, { ...t });
2231
- }, Yl = (e) => {
2232
- const { options: n, ...t } = e, i = Ce(), { viewState: o } = rt(), r = o.shouldOptimizedTileRequests ? new Zn(n, i) : new Ht(n);
2233
- return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2234
2240
  }, ql = (e) => {
2235
- const { options: n, ...t } = e, i = Ce(), { viewState: o } = rt(), r = o.shouldOptimizedTileRequests ? new Xn(n, i) : new $t(n);
2241
+ const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new Zn(n, i) : new $t(n), [o.shouldOptimizedTileRequests]);
2236
2242
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2237
2243
  }, Zl = (e) => {
2238
- const { options: n, ...t } = e, i = Ce(), { viewState: o } = rt(), r = o.shouldOptimizedTileRequests ? new qn(n, i) : new Gt(n);
2244
+ const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new Xn(n, i) : new zt(n), [o.shouldOptimizedTileRequests]);
2239
2245
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2240
2246
  }, Xl = (e) => {
2247
+ const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new qn(n, i) : new Ht(n), [o.shouldOptimizedTileRequests]);
2248
+ return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2249
+ }, Jl = (e) => {
2241
2250
  const { options: n, ...t } = e;
2242
2251
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: new xr(n) });
2243
- }, ys = "#FFFF00", Jl = (e) => {
2244
- const { options: n, meta: t, visualizationHandler: i } = e, { url: o, featureType: r, style: c, pageSize: d, zoomLevel: h, maxCacheSize: p, keyField: C, labeling: m } = n, { color: b, hover: P } = c, S = Ce(), H = rt(), Z = Pe(H.viewState), W = Pe(/* @__PURE__ */ new Map()), q = Pe(/* @__PURE__ */ new Set()), Y = Pe(0), [k, X] = F(t), G = be(() => Ge.fromCssColorString(P ?? "#24AEE9").withAlpha(0.5), [P]), K = be(() => `wfs_${r}_${rn()}`, [r]), se = Pe(!1);
2252
+ }, vs = "#FFFF00", Ql = (e) => {
2253
+ const { options: n, meta: t, visualizationHandler: i } = e, { url: o, featureType: r, style: c, pageSize: d, zoomLevel: h, maxCacheSize: p, keyField: C, labeling: m } = n, { color: b, hover: P } = c, S = we(), H = rt(), Z = Pe(H.viewState), z = Pe(/* @__PURE__ */ new Map()), q = Pe(/* @__PURE__ */ new Set()), Y = Pe(0), [k, X] = F(t), G = fe(() => Ge.fromCssColorString(P ?? "#24AEE9").withAlpha(0.5), [P]), K = fe(() => `wfs_${r}_${rn()}`, [r]), se = Pe(!1);
2245
2254
  N(() => {
2246
2255
  Z.current = H.viewState;
2247
2256
  }, [H.viewState]);
@@ -2249,10 +2258,10 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2249
2258
  const T = [], O = t.featureStructure;
2250
2259
  if (O && O.fields)
2251
2260
  for (const R of O.fields) {
2252
- const { fieldName: j, aliasFieldName: oe } = R, fe = oe, U = L[j] ?? "N/A";
2261
+ const { fieldName: j, aliasFieldName: oe } = R, ye = oe, U = L[j] ?? "N/A";
2253
2262
  T.push(`
2254
2263
  <tr>
2255
- <td><strong>${fe}:</strong></td>
2264
+ <td><strong>${ye}:</strong></td>
2256
2265
  <td>${U}</td>
2257
2266
  </tr>
2258
2267
  `);
@@ -2282,21 +2291,21 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2282
2291
  const oe = tn.wgs84ToWindowCoordinates(S.scene, j);
2283
2292
  if (!oe)
2284
2293
  return { entity: R, distance: Number.MAX_VALUE };
2285
- const fe = L.x - oe.x, U = L.y - oe.y, J = Math.sqrt(fe * fe + U * U);
2286
- return { entity: R, distance: J };
2294
+ const ye = L.x - oe.x, U = L.y - oe.y, Q = Math.sqrt(ye * ye + U * U);
2295
+ return { entity: R, distance: Q };
2287
2296
  });
2288
2297
  return B.sort((R, j) => j.distance - R.distance), B[0].entity;
2289
2298
  }, g = (L) => {
2290
2299
  let T = null, O = null;
2291
2300
  L.setInputAction((B) => {
2292
- if (S.scene.mode === $e.SCENE2D) {
2301
+ if (S.scene.mode === ze.SCENE2D) {
2293
2302
  const j = S.scene.pick(B.endPosition);
2294
2303
  j && j.id && (j.id.polygon || j.id.polyline) ? ie(T, "id") !== ie(j.id, "id") && (T && (T[y(T)].material = O, S.container.style.cursor = "default"), T = j.id, O = T[y(T)].material, T[y(T)].material = G, S.container.style.cursor = "pointer") : T && (T[y(T)].material = O, T = null, S.container.style.cursor = "default");
2295
2304
  } else {
2296
2305
  const j = v(B.endPosition);
2297
2306
  j ? ie(T, "id") !== ie(j, "id") && (T && (T[y(T)].material = O, S.container.style.cursor = "default"), T = j, O = T[y(T)].material, T[y(T)].material = G, S.container.style.cursor = "pointer") : T && (T[y(T)].material = O, T = null, S.container.style.cursor = "default");
2298
2307
  }
2299
- }, At.MOUSE_MOVE);
2308
+ }, kt.MOUSE_MOVE);
2300
2309
  }, w = (L, T) => {
2301
2310
  const O = navigator.hardwareConcurrency || 4;
2302
2311
  let B = Math.ceil(O * 1.5);
@@ -2334,16 +2343,16 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2334
2343
  }, O = L.split(`
2335
2344
  `), B = (m == null ? void 0 : m.fontSize) ?? T.fontSize, R = (m == null ? void 0 : m.padding) ?? T.padding, j = B + 2;
2336
2345
  _.clearRect(0, 0, x.width, x.height), _.font = `${B}px ${(m == null ? void 0 : m.fontName) ?? T.fontName}`;
2337
- const oe = Math.max(...O.map((J) => _.measureText(J).width)), fe = document.createElement("canvas");
2338
- fe.width = oe + R * 2, fe.height = j * O.length + R * 2;
2339
- const U = fe.getContext("2d");
2340
- return U.font = `${B}px ${(m == null ? void 0 : m.fontName) ?? T.fontName}`, U.fillStyle = (m == null ? void 0 : m.fillStyle) ?? T.fillStyle, U.strokeStyle = (m == null ? void 0 : m.strokeStyle) ?? T.strokeStyle, U.lineWidth = (m == null ? void 0 : m.lineWidth) ?? T.lineWidth, O.forEach((J, V) => {
2346
+ const oe = Math.max(...O.map((Q) => _.measureText(Q).width)), ye = document.createElement("canvas");
2347
+ ye.width = oe + R * 2, ye.height = j * O.length + R * 2;
2348
+ const U = ye.getContext("2d");
2349
+ return U.font = `${B}px ${(m == null ? void 0 : m.fontName) ?? T.fontName}`, U.fillStyle = (m == null ? void 0 : m.fillStyle) ?? T.fillStyle, U.strokeStyle = (m == null ? void 0 : m.strokeStyle) ?? T.strokeStyle, U.lineWidth = (m == null ? void 0 : m.lineWidth) ?? T.lineWidth, O.forEach((Q, V) => {
2341
2350
  const ee = R + (V + 1) * j - 4;
2342
- U.strokeText(J, R, ee), U.fillText(J, R, ee);
2351
+ U.strokeText(Q, R, ee), U.fillText(Q, R, ee);
2343
2352
  }), {
2344
- dataURL: fe.toDataURL(),
2345
- width: fe.width,
2346
- height: fe.height
2353
+ dataURL: ye.toDataURL(),
2354
+ width: ye.width,
2355
+ height: ye.height
2347
2356
  };
2348
2357
  }, A = (L) => m == null ? void 0 : m.text.pattern.replace(/\$\{([^}]+)\}/g, (O, B) => {
2349
2358
  const R = m.text.fields.find((oe) => oe.name === B);
@@ -2381,13 +2390,13 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2381
2390
  },
2382
2391
  { concurrency: w(L.length, "cpu") }
2383
2392
  ), O;
2384
- }, ae = (L, T) => Array.from(W.current.values()).filter((O) => JSON.stringify(O.parentBBox) !== JSON.stringify(L)).reduce(
2393
+ }, ae = (L, T) => Array.from(z.current.values()).filter((O) => JSON.stringify(O.parentBBox) !== JSON.stringify(L)).reduce(
2385
2394
  (O, B) => {
2386
2395
  const R = zo(T, B.bbox);
2387
2396
  return R > O.distance ? { id: B.id, key: B.bbox.join(","), distance: R } : O;
2388
2397
  },
2389
2398
  { id: "", key: "", distance: -1 / 0 }
2390
- ), $ = async (L) => {
2399
+ ), W = async (L) => {
2391
2400
  const T = [];
2392
2401
  await bt(
2393
2402
  s.entities.values,
@@ -2410,18 +2419,18 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2410
2419
  const O = ae(L, T);
2411
2420
  if (O.id === "")
2412
2421
  break;
2413
- await $(O.id), O.key && W.current.delete(O.key);
2422
+ await W(O.id), O.key && z.current.delete(O.key);
2414
2423
  }
2415
2424
  }, ue = async (L, T, O, B) => {
2416
2425
  let R = "", j = "", oe = [];
2417
- if (L.numberReturned && L.numberReturned !== 0 && (L.bbox && (j = L.bbox.join(","), W.current.has(j) || (R = rn())), oe = await re(L.features, R), L.bbox && oe.length > 0 && !W.current.has(j) && W.current.set(j, {
2426
+ if (L.numberReturned && L.numberReturned !== 0 && (L.bbox && (j = L.bbox.join(","), z.current.has(j) || (R = rn())), oe = await re(L.features, R), L.bbox && oe.length > 0 && !z.current.has(j) && z.current.set(j, {
2418
2427
  id: R,
2419
2428
  parentBBox: T,
2420
2429
  bbox: L.bbox,
2421
2430
  timestamp: L.timeStamp,
2422
2431
  items: oe.length
2423
2432
  })), f(L.numberReturned !== 0 ? O + L.numberReturned : L.numberMatched, L.numberMatched), oe.length === 0) {
2424
- L.numberReturned && L.numberReturned !== 0 ? pe(++Y.current * d) : (Y.current = 0, ve(
2433
+ L.numberReturned && L.numberReturned !== 0 ? pe(++Y.current * d) : (Y.current = 0, Ee(
2425
2434
  S,
2426
2435
  s,
2427
2436
  s.entities.values.map((U) => U.id),
@@ -2430,22 +2439,22 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2430
2439
  return;
2431
2440
  }
2432
2441
  await te(T, B);
2433
- const fe = {
2442
+ const ye = {
2434
2443
  type: "FeatureCollection",
2435
2444
  features: oe
2436
2445
  };
2437
- await s.process(fe, { describe: a }), S.scene.requestRender(), ve(
2446
+ await s.process(ye, { describe: a }), S.scene.requestRender(), Ee(
2438
2447
  S,
2439
2448
  s,
2440
2449
  oe.map((U) => U.id),
2441
2450
  T
2442
2451
  ), L.numberReturned && L.numberReturned !== 0 ? pe(++Y.current * d) : Y.current = 0;
2443
2452
  }, pe = xe(async (L = 0) => {
2444
- if (!S || S.scene.mode === $e.MORPHING)
2453
+ if (!S || S.scene.mode === ze.MORPHING)
2445
2454
  return;
2446
- const T = jo(S);
2455
+ const T = Ko(S);
2447
2456
  if (T) {
2448
- if (await ke(), Z.current.currentZoomLevel > 0 && Z.current.currentZoomLevel < h && (s == null ? void 0 : s.entities.values.length) > 0) {
2457
+ if (await Re(), Z.current.currentZoomLevel > 0 && Z.current.currentZoomLevel < h && (s == null ? void 0 : s.entities.values.length) > 0) {
2449
2458
  M();
2450
2459
  return;
2451
2460
  }
@@ -2465,20 +2474,20 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2465
2474
  }
2466
2475
  }
2467
2476
  }
2468
- }, []), ke = () => new Promise((L) => {
2477
+ }, []), Re = () => new Promise((L) => {
2469
2478
  const T = setInterval(() => {
2470
2479
  S.scene.globe.tilesLoaded && (clearInterval(T), L());
2471
2480
  }, 100);
2472
2481
  }), Me = (L, T, O, B) => {
2473
- const R = L.scene.mode === $e.SCENE2D, j = (V) => {
2482
+ const R = L.scene.mode === ze.SCENE2D, j = (V) => {
2474
2483
  var ee;
2475
2484
  if (V.polygon)
2476
2485
  return {
2477
2486
  type: "Polygon",
2478
2487
  coordinates: [((ee = V.polygon.hierarchy) == null ? void 0 : ee.getValue(Qe.now())).positions.map((le) => {
2479
- const ye = Re.fromCartesian(le), Le = new Re(
2480
- Q.toDegrees(ye.longitude),
2481
- Q.toDegrees(ye.latitude),
2488
+ const ve = Ne.fromCartesian(le), Le = new Ne(
2489
+ J.toDegrees(ve.longitude),
2490
+ J.toDegrees(ve.latitude),
2482
2491
  R ? 500 : void 0
2483
2492
  //viewer.scene.sampleHeight(Cartographic.fromCartesian(position))
2484
2493
  );
@@ -2489,13 +2498,13 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2489
2498
  const le = tn.wgs84ToWindowCoordinates(V, ee);
2490
2499
  if (!le)
2491
2500
  return null;
2492
- const ye = le.x + ge, Le = le.y + de, Ye = new Ne(ye, le.y), We = new Ne(le.x, Le), Be = V.camera.pickEllipsoid(Ye, V.globe.ellipsoid), Fe = V.camera.pickEllipsoid(We, V.globe.ellipsoid);
2501
+ const ve = le.x + ge, Le = le.y + de, Ye = new Ie(ve, le.y), Ue = new Ie(le.x, Le), Be = V.camera.pickEllipsoid(Ye, V.globe.ellipsoid), Fe = V.camera.pickEllipsoid(Ue, V.globe.ellipsoid);
2493
2502
  if (!Be || !Fe)
2494
2503
  return null;
2495
2504
  const qe = _e.distance(ee, Be), Ve = _e.distance(ee, Fe);
2496
2505
  return { widthMeters: qe, heightMeters: Ve };
2497
- }, fe = (V, ee, ge) => {
2498
- const de = zt.WGS84, le = V.latitude, ye = V.longitude, Le = Math.PI / 180 * de.maximumRadius, Ye = Math.PI / 180 * de.maximumRadius, We = ge / 2 / Le, Be = ee / 2 / Ye, Fe = le + We, qe = le - We, Ve = ye + Be, Ze = ye - Be;
2506
+ }, ye = (V, ee, ge) => {
2507
+ const de = Wt.WGS84, le = V.latitude, ve = V.longitude, Le = Math.PI / 180 * de.maximumRadius, Ye = Math.PI / 180 * de.maximumRadius, Ue = ge / 2 / Le, Be = ee / 2 / Ye, Fe = le + Ue, qe = le - Ue, Ve = ve + Be, Ze = ve - Be;
2499
2508
  return {
2500
2509
  type: "Polygon",
2501
2510
  coordinates: [
@@ -2509,25 +2518,25 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2509
2518
  ]
2510
2519
  ]
2511
2520
  };
2512
- }, U = (V, ee) => on(V) / on(ee), J = [];
2521
+ }, U = (V, ee) => on(V) / on(ee), Q = [];
2513
2522
  if (T == null || T.entities.values.forEach((V) => {
2514
2523
  var ee, ge;
2515
2524
  if (B && m && R)
2516
2525
  try {
2517
2526
  const de = gt(B), le = sn(j(V), de);
2518
2527
  if (le) {
2519
- const ye = (ee = V.properties) == null ? void 0 : ee.label.getValue(Qe.now()), Le = Gr(le, {
2528
+ const ve = (ee = V.properties) == null ? void 0 : ee.label.getValue(Qe.now()), Le = Gr(le, {
2520
2529
  properties: {
2521
- label: ye
2530
+ label: ve
2522
2531
  }
2523
- }), Ye = { width: ye.width, height: ye.height }, [We, Be, Fe = 0] = Le.geometry.coordinates, qe = _e.fromDegrees(We, Be, Fe), Ve = oe(L.scene, qe, Ye.width, Ye.height);
2532
+ }), Ye = { width: ve.width, height: ve.height }, [Ue, Be, Fe = 0] = Le.geometry.coordinates, qe = _e.fromDegrees(Ue, Be, Fe), Ve = oe(L.scene, qe, Ye.width, Ye.height);
2524
2533
  if (Ve) {
2525
- const Ze = fe({ longitude: We, latitude: Be }, Ve.widthMeters, Ve.heightMeters), Et = sn(le, {
2534
+ const Ze = ye({ longitude: Ue, latitude: Be }, Ve.widthMeters, Ve.heightMeters), Et = sn(le, {
2526
2535
  type: "Feature",
2527
2536
  properties: {},
2528
2537
  geometry: Ze
2529
2538
  });
2530
- U(Et == null ? void 0 : Et.geometry, Ze) > 0.7 && J.push(Le);
2539
+ U(Et == null ? void 0 : Et.geometry, Ze) > 0.7 && Q.push(Le);
2531
2540
  }
2532
2541
  }
2533
2542
  } catch {
@@ -2548,20 +2557,20 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2548
2557
  clampToGround: !0,
2549
2558
  width: 4
2550
2559
  })), V.billboard)) {
2551
- const de = (ge = V.position) == null ? void 0 : ge.getValue(Qe.now()), le = Re.fromCartesian(de), ye = new Re(
2560
+ const de = (ge = V.position) == null ? void 0 : ge.getValue(Qe.now()), le = Ne.fromCartesian(de), ve = new Ne(
2552
2561
  le.longitude,
2553
2562
  le.latitude,
2554
- R ? 500 : L.scene.sampleHeight(Re.fromCartesian(de))
2555
- ), Le = _e.fromRadians(ye.longitude, ye.latitude, ye.height);
2556
- V.position = Le, V.billboard = new It({
2563
+ R ? 500 : L.scene.sampleHeight(Ne.fromCartesian(de))
2564
+ ), Le = _e.fromRadians(ve.longitude, ve.latitude, ve.height);
2565
+ V.position = Le, V.billboard = new Ot({
2557
2566
  image: "data:image/svg+xml;base64," + btoa(`
2558
2567
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
2559
- <circle cx="8" cy="8" r="6" fill="${b}33" stroke="${ys}80" stroke-width="2"/>
2568
+ <circle cx="8" cy="8" r="6" fill="${b}33" stroke="${vs}80" stroke-width="2"/>
2560
2569
  </svg>
2561
2570
  `),
2562
2571
  //${color}33 - with opacity 0.2 ; #FFFF0080 - with opacity 0.5
2563
2572
  verticalOrigin: ut.BOTTOM,
2564
- heightReference: Ot.NONE,
2573
+ heightReference: At.NONE,
2565
2574
  // Ensures it's not clamped and floats above
2566
2575
  scale: 1,
2567
2576
  disableDepthTestDistance: Number.POSITIVE_INFINITY
@@ -2571,13 +2580,13 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2571
2580
  const V = new en(`${m == null ? void 0 : m.dataSourcePrefix}${T.name}`);
2572
2581
  L.dataSources.add(V), V.load({
2573
2582
  type: "FeatureCollection",
2574
- features: J
2583
+ features: Q
2575
2584
  }).then((ee) => {
2576
2585
  ee == null || ee.entities.values.forEach((ge) => {
2577
2586
  var de;
2578
- ge.billboard = new It({
2587
+ ge.billboard = new Ot({
2579
2588
  image: (de = ge.properties) == null ? void 0 : de.label.getValue(Qe.now()).dataURL,
2580
- heightReference: Ot.NONE,
2589
+ heightReference: At.NONE,
2581
2590
  // Ensures it's not clamped and floats above
2582
2591
  scale: 1,
2583
2592
  disableDepthTestDistance: Number.POSITIVE_INFINITY
@@ -2585,12 +2594,12 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2585
2594
  });
2586
2595
  });
2587
2596
  }
2588
- }, ve = (L, T, O, B) => {
2597
+ }, Ee = (L, T, O, B) => {
2589
2598
  i ? i(L, T, O, B) : Me(L, T, O, B);
2590
2599
  };
2591
2600
  return N(() => {
2592
2601
  const L = S.dataSources.getByName(K)[0];
2593
- L && ve(S, L, [], void 0);
2602
+ L && Ee(S, L, [], void 0);
2594
2603
  }, [S.scene.mode]), N(() => {
2595
2604
  S.layersManager && S.layersManager.dataLayerList.length > 0 && S.layersManager.findDataLayerById(t.id) !== void 0 && S.layersManager.addMetaToDataLayer(k);
2596
2605
  }, [k]), N(() => {
@@ -2605,11 +2614,11 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2605
2614
  const T = new Dr(S.scene.canvas);
2606
2615
  return g(T), Z.current.currentZoomLevel > 0 && (pe(), se.current = !0), () => {
2607
2616
  var O;
2608
- ie(S, "_cesiumWidget") !== void 0 && (q.current.clear(), W.current.clear(), S.dataSources.remove(S.dataSources.getByName(`${m == null ? void 0 : m.dataSourcePrefix}${s.name}`)[0]), S.dataSources.remove(s, !0), (O = S.layersManager) == null || O.removeDataLayer(t.id), S.scene.camera.moveEnd.removeEventListener(L), T.removeInputAction(At.MOUSE_MOVE));
2617
+ ie(S, "_cesiumWidget") !== void 0 && (q.current.clear(), z.current.clear(), S.dataSources.remove(S.dataSources.getByName(`${m == null ? void 0 : m.dataSourcePrefix}${s.name}`)[0]), S.dataSources.remove(s, !0), (O = S.layersManager) == null || O.removeDataLayer(t.id), S.scene.camera.moveEnd.removeEventListener(L), T.removeInputAction(kt.MOUSE_MOVE));
2609
2618
  };
2610
2619
  }, []), null;
2611
- }, vs = (e) => /* @__PURE__ */ l(ar, { ...e }), Ql = (e) => /* @__PURE__ */ l(kn, { ...e }), Es = (e) => /* @__PURE__ */ l(kn, { ...e }), Cs = (e) => /* @__PURE__ */ l(lr, { ...e }), ws = (e) => /* @__PURE__ */ l(cr, { ...e }), bs = (e) => /* @__PURE__ */ l(dr, { ...e }), Ls = (e) => /* @__PURE__ */ l(ur, { ...e });
2612
- var Ue = function() {
2620
+ }, Es = (e) => /* @__PURE__ */ l(ar, { ...e }), ec = (e) => /* @__PURE__ */ l(kn, { ...e }), Cs = (e) => /* @__PURE__ */ l(kn, { ...e }), ws = (e) => /* @__PURE__ */ l(lr, { ...e }), bs = (e) => /* @__PURE__ */ l(cr, { ...e }), Ls = (e) => /* @__PURE__ */ l(dr, { ...e }), Ts = (e) => /* @__PURE__ */ l(ur, { ...e });
2621
+ var je = function() {
2613
2622
  var e = E.Ellipsoid.WGS84, n, t = E.Material.fromType(E.Material.ColorType);
2614
2623
  function i(s, a = new E.Color(1, 1, 0, 0.5), y = new E.Color(1, 1, 1, 1)) {
2615
2624
  this._scene = s.scene, t.uniforms.color = a, n = y, this._tooltip = {
@@ -3025,10 +3034,10 @@ var Ue = function() {
3025
3034
  this.startDrawingPolyshape(!1, a);
3026
3035
  }, i.prototype.startDrawingPolyshape = function(s, a) {
3027
3036
  this.startDrawing(function() {
3028
- v.remove(f), D.remove(), x.destroy(), g.setVisible(!1), W(u);
3037
+ v.remove(f), D.remove(), x.destroy(), g.setVisible(!1), z(u);
3029
3038
  });
3030
3039
  var y = this, u = this._scene, v = u.primitives, g = this._tooltip, w = s ? 3 : 2, f;
3031
- s ? f = new Ue.PolygonPrimitive(a) : f = new Ue.PolylinePrimitive(a), f.asynchronous = !1, v.add(f);
3040
+ s ? f = new je.PolygonPrimitive(a) : f = new je.PolylinePrimitive(a), f.asynchronous = !1, v.add(f);
3032
3041
  var M = [], D = new i.BillboardGroup(this, b), x = new E.ScreenSpaceEventHandler(u.canvas);
3033
3042
  Z(u), x.setInputAction(function(_) {
3034
3043
  if (_.position != null) {
@@ -3053,7 +3062,7 @@ var Ue = function() {
3053
3062
  if (M.length < w + 2)
3054
3063
  return;
3055
3064
  var A = u.camera.pickEllipsoid(I, e);
3056
- A && (W(u), y.stopDrawing(), typeof a.callback == "function" && (M.length - 1, a.callback(M)));
3065
+ A && (z(u), y.stopDrawing(), typeof a.callback == "function" && (M.length - 1, a.callback(M)));
3057
3066
  }
3058
3067
  }, E.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
3059
3068
  };
@@ -3068,18 +3077,18 @@ var Ue = function() {
3068
3077
  function Z(s) {
3069
3078
  s && (s.canvas.style.cursor = "crosshair");
3070
3079
  }
3071
- function W(s) {
3080
+ function z(s) {
3072
3081
  s && (s.canvas.style.cursor = "");
3073
3082
  }
3074
3083
  i.prototype.startDrawingExtent = function(a) {
3075
3084
  var a = G(a, r);
3076
3085
  this.startDrawing(function() {
3077
- f != null && v.remove(f), M != null && M.remove(), D.destroy(), g.setVisible(!1), W(u);
3086
+ f != null && v.remove(f), M != null && M.remove(), D.destroy(), g.setVisible(!1), z(u);
3078
3087
  });
3079
3088
  var y = this, u = this._scene, v = this._scene.primitives, g = this._tooltip, w = null, f = null, M = null, D = new E.ScreenSpaceEventHandler(u.canvas);
3080
3089
  Z(u);
3081
3090
  function x(_) {
3082
- f == null && (f = new Ue.ExtentPrimitive({
3091
+ f == null && (f = new je.ExtentPrimitive({
3083
3092
  extent: _,
3084
3093
  material: a.material
3085
3094
  }), f.asynchronous = !1, v.add(f)), f.setExtent(_);
@@ -3171,34 +3180,34 @@ var Ue = function() {
3171
3180
  s.setEdited(this);
3172
3181
  var v = s._scene, g = this;
3173
3182
  if (this._markers == null) {
3174
- let A = function($, te) {
3175
- var ue = $ - 1 < 0 ? te.length - 1 : $ - 1;
3176
- ue < f.countBillboards() && (f.getBillboard(ue).position = ae(ue)), ue = $, ue < f.countBillboards() && (f.getBillboard(ue).position = ae(ue));
3183
+ let A = function(W, te) {
3184
+ var ue = W - 1 < 0 ? te.length - 1 : W - 1;
3185
+ ue < f.countBillboards() && (f.getBillboard(ue).position = ae(ue)), ue = W, ue < f.countBillboards() && (f.getBillboard(ue).position = ae(ue));
3177
3186
  }, re = function() {
3178
3187
  g.executeListeners({
3179
3188
  name: "onEdited",
3180
3189
  positions: g.positions
3181
3190
  });
3182
- }, ae = function($) {
3191
+ }, ae = function(W) {
3183
3192
  var te = g.positions;
3184
3193
  return e.cartographicToCartesian(
3185
3194
  new E.EllipsoidGeodesic(
3186
- e.cartesianToCartographic(te[$]),
3187
- e.cartesianToCartographic(te[$ < te.length - 1 ? $ + 1 : 0])
3195
+ e.cartesianToCartographic(te[W]),
3196
+ e.cartesianToCartographic(te[W < te.length - 1 ? W + 1 : 0])
3188
3197
  ).interpolateUsingFraction(0.5)
3189
3198
  );
3190
3199
  };
3191
3200
  var w = new i.BillboardGroup(s, P), f = new i.BillboardGroup(s, S), M = {
3192
3201
  dragHandlers: {
3193
- onDrag: function($, te) {
3194
- g.positions[$] = te, A($, g.positions), g._createPrimitive = !0;
3202
+ onDrag: function(W, te) {
3203
+ g.positions[W] = te, A(W, g.positions), g._createPrimitive = !0;
3195
3204
  },
3196
- onDragEnd: function($, te) {
3205
+ onDragEnd: function(W, te) {
3197
3206
  g._createPrimitive = !0, re();
3198
3207
  }
3199
3208
  },
3200
- onDoubleClick: function($) {
3201
- g.positions.length < 4 || (g.positions.splice($, 1), g._createPrimitive = !0, w.removeBillboard($), f.removeBillboard($), A($, g.positions), re());
3209
+ onDoubleClick: function(W) {
3210
+ g.positions.length < 4 || (g.positions.splice(W, 1), g._createPrimitive = !0, w.removeBillboard(W), f.removeBillboard(W), A(W, g.positions), re());
3202
3211
  },
3203
3212
  tooltip: function() {
3204
3213
  if (g.positions.length > 3)
@@ -3210,13 +3219,13 @@ var Ue = function() {
3210
3219
  D.push(ae(x));
3211
3220
  var I = {
3212
3221
  dragHandlers: {
3213
- onDragStart: function($, te) {
3214
- this.index = $ + 1, g.positions.splice(this.index, 0, te), g._createPrimitive = !0;
3222
+ onDragStart: function(W, te) {
3223
+ this.index = W + 1, g.positions.splice(this.index, 0, te), g._createPrimitive = !0;
3215
3224
  },
3216
- onDrag: function($, te) {
3225
+ onDrag: function(W, te) {
3217
3226
  g.positions[this.index] = te, g._createPrimitive = !0;
3218
3227
  },
3219
- onDragEnd: function($, te) {
3228
+ onDragEnd: function(W, te) {
3220
3229
  w.insertBillboard(this.index, te, M), f.getBillboard(this.index - 1).position = ae(this.index - 1), f.insertBillboard(this.index, ae(this.index), I), g._createPrimitive = !0, re();
3221
3230
  }
3222
3231
  },
@@ -3224,8 +3233,8 @@ var Ue = function() {
3224
3233
  return "Drag to create a new point";
3225
3234
  }
3226
3235
  };
3227
- f.addBillboards(D, I), this._editMarkers = f, this._globeClickhandler = new E.ScreenSpaceEventHandler(v.canvas), this._globeClickhandler.setInputAction(function($) {
3228
- var te = v.pick($.position);
3236
+ f.addBillboards(D, I), this._editMarkers = f, this._globeClickhandler = new E.ScreenSpaceEventHandler(v.canvas), this._globeClickhandler.setInputAction(function(W) {
3237
+ var te = v.pick(W.position);
3229
3238
  te && te.primitive || g.setEditMode(!1);
3230
3239
  }, E.ScreenSpaceEventType.LEFT_CLICK), w.setOnTop(), f.setOnTop();
3231
3240
  }
@@ -3233,7 +3242,7 @@ var Ue = function() {
3233
3242
  } else
3234
3243
  this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
3235
3244
  }
3236
- Ue.PolylinePrimitive.prototype.setEditable = function() {
3245
+ je.PolylinePrimitive.prototype.setEditable = function() {
3237
3246
  if (!this.setEditMode) {
3238
3247
  var u = this;
3239
3248
  u.isPolygon = !1, u.asynchronous = !1, s.registerEditableShape(u), u.setEditMode = y;
@@ -3244,10 +3253,10 @@ var Ue = function() {
3244
3253
  return E.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
3245
3254
  }, se(u), u.setEditMode(!1);
3246
3255
  }
3247
- }, Ue.PolygonPrimitive.prototype.setEditable = function() {
3256
+ }, je.PolygonPrimitive.prototype.setEditable = function() {
3248
3257
  var u = this;
3249
3258
  u.asynchronous = !1, s._scene, s.registerEditableShape(u), u.setEditMode = y, u.setHighlighted = a, se(u), u.setEditMode(!1);
3250
- }, Ue.ExtentPrimitive.prototype.setEditable = function() {
3259
+ }, je.ExtentPrimitive.prototype.setEditable = function() {
3251
3260
  if (!this.setEditMode) {
3252
3261
  var u = this, v = s._scene;
3253
3262
  s.registerEditableShape(u), u.asynchronous = !1, u.setEditMode = function(g) {
@@ -3516,22 +3525,22 @@ var Ue = function() {
3516
3525
  }
3517
3526
  return i;
3518
3527
  }();
3519
- const Ts = 2, Ss = (e, n) => {
3528
+ const Ss = 2, Ms = (e, n) => {
3520
3529
  switch (e) {
3521
3530
  case Se.BOX: {
3522
- if (n.features.length !== Ts)
3531
+ if (n.features.length !== Ss)
3523
3532
  throw new Error(`${e} must have 2 points`);
3524
3533
  const t = nn(n.features, (o) => {
3525
3534
  var r;
3526
- return ((r = o.properties) == null ? void 0 : r.type) === Rt.BOTTOM_LEFT;
3535
+ return ((r = o.properties) == null ? void 0 : r.type) === Nt.BOTTOM_LEFT;
3527
3536
  }), i = nn(n.features, (o) => {
3528
3537
  var r;
3529
- return ((r = o.properties) == null ? void 0 : r.type) === Rt.TOP_RIGHT;
3538
+ return ((r = o.properties) == null ? void 0 : r.type) === Nt.TOP_RIGHT;
3530
3539
  });
3531
3540
  if (i && t) {
3532
3541
  if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
3533
3542
  throw new Error(`${e} must define BOTTOM_LEFT and TOP_RIGHT different points`);
3534
- return je.fromDegrees(
3543
+ return He.fromDegrees(
3535
3544
  t.geometry.coordinates[0],
3536
3545
  t.geometry.coordinates[1],
3537
3546
  i.geometry.coordinates[0],
@@ -3543,10 +3552,10 @@ const Ts = 2, Ss = (e, n) => {
3543
3552
  default:
3544
3553
  throw new Error(`${e} type geoJSON still not supported`);
3545
3554
  }
3546
- }, Ms = (e) => {
3555
+ }, _s = (e) => {
3547
3556
  const n = e.map((t) => {
3548
- const i = Re.fromCartesian(t);
3549
- return [Q.toDegrees(i.longitude), Q.toDegrees(i.latitude)];
3557
+ const i = Ne.fromCartesian(t);
3558
+ return [J.toDegrees(i.longitude), J.toDegrees(i.latitude)];
3550
3559
  });
3551
3560
  return n.push(n[0]), {
3552
3561
  type: "Feature",
@@ -3556,24 +3565,24 @@ const Ts = 2, Ss = (e, n) => {
3556
3565
  coordinates: [n]
3557
3566
  }
3558
3567
  };
3559
- }, _s = (e) => {
3568
+ }, Ps = (e) => {
3560
3569
  const n = Vn.lineString([
3561
- [Q.toDegrees(e.west), Q.toDegrees(e.south)],
3562
- [Q.toDegrees(e.east), Q.toDegrees(e.north)]
3570
+ [J.toDegrees(e.west), J.toDegrees(e.south)],
3571
+ [J.toDegrees(e.east), J.toDegrees(e.north)]
3563
3572
  ]);
3564
3573
  return gt(Gn(n));
3565
- }, Ps = (e) => {
3574
+ }, xs = (e) => {
3566
3575
  const n = Vn.lineString([
3567
3576
  [e.west, e.south],
3568
3577
  [e.east, e.north]
3569
3578
  ]);
3570
3579
  return gt(Gn(n)).geometry.coordinates[0].map((i) => _e.fromRadiansArray(i)[0]);
3571
- }, ec = (e) => {
3572
- const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, d = Ce(), [h, p] = F();
3580
+ }, tc = (e) => {
3581
+ const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, d = we(), [h, p] = F();
3573
3582
  N(() => {
3574
3583
  p(
3575
3584
  // eslint-disable-next-line
3576
- new Ue(d, t, i)
3585
+ new je(d, t, i)
3577
3586
  );
3578
3587
  }, []), N(() => {
3579
3588
  if (h) {
@@ -3586,7 +3595,7 @@ const Ts = 2, Ss = (e, n) => {
3586
3595
  n.handler({
3587
3596
  primitive: b,
3588
3597
  type: Se.POLYGON,
3589
- geojson: Ms(b)
3598
+ geojson: _s(b)
3590
3599
  });
3591
3600
  }
3592
3601
  });
@@ -3597,7 +3606,7 @@ const Ts = 2, Ss = (e, n) => {
3597
3606
  n.handler({
3598
3607
  primitive: b,
3599
3608
  type: Se.BOX,
3600
- geojson: _s(b)
3609
+ geojson: Ps(b)
3601
3610
  });
3602
3611
  }
3603
3612
  });
@@ -3611,36 +3620,36 @@ const Ts = 2, Ss = (e, n) => {
3611
3620
  }, [n, h]);
3612
3621
  const C = (m) => {
3613
3622
  try {
3614
- let b = m.coordinates !== void 0 ? m.coordinates : Ss(m.type, m.geojson);
3623
+ let b = m.coordinates !== void 0 ? m.coordinates : Ms(m.type, m.geojson);
3615
3624
  if (r !== !0)
3616
3625
  switch (m.type) {
3617
3626
  case Se.BOX:
3618
- return /* @__PURE__ */ l(ws, { coordinates: b, material: o ?? t });
3627
+ return /* @__PURE__ */ l(bs, { coordinates: b, material: o ?? t });
3619
3628
  case Se.POLYGON:
3620
- return /* @__PURE__ */ l(Cs, { hierarchy: new Bn(b), material: o ?? t });
3629
+ return /* @__PURE__ */ l(ws, { hierarchy: new Bn(b), material: o ?? t });
3621
3630
  default:
3622
- return /* @__PURE__ */ l(Ee, {});
3631
+ return /* @__PURE__ */ l(Ce, {});
3623
3632
  }
3624
3633
  else {
3625
3634
  switch (m.type) {
3626
3635
  case Se.BOX:
3627
- b = Ps(b);
3636
+ b = xs(b);
3628
3637
  break;
3629
3638
  case Se.POLYGON:
3630
3639
  b = [...b, b[0]];
3631
3640
  break;
3632
3641
  default:
3633
- return /* @__PURE__ */ l(Ee, {});
3642
+ return /* @__PURE__ */ l(Ce, {});
3634
3643
  }
3635
- return /* @__PURE__ */ l(Ls, { clampToGround: !0, positions: b, width: c ?? 1, material: o ?? t });
3644
+ return /* @__PURE__ */ l(Ts, { clampToGround: !0, positions: b, width: c ?? 1, material: o ?? t });
3636
3645
  }
3637
3646
  } catch (b) {
3638
- return console.error(b), /* @__PURE__ */ l(Ee, {});
3647
+ return console.error(b), /* @__PURE__ */ l(Ce, {});
3639
3648
  }
3640
3649
  };
3641
- return /* @__PURE__ */ l(bs, { ...e, children: e.drawings.map((m, b) => /* @__PURE__ */ z(vs, { name: m.name, children: [
3642
- /* @__PURE__ */ z(Es, { children: [
3643
- /* @__PURE__ */ z("h1", { children: [
3650
+ return /* @__PURE__ */ l(Ls, { ...e, children: e.drawings.map((m, b) => /* @__PURE__ */ $(Es, { name: m.name, children: [
3651
+ /* @__PURE__ */ $(Cs, { children: [
3652
+ /* @__PURE__ */ $("h1", { children: [
3644
3653
  "Drawed Entity ",
3645
3654
  m.name
3646
3655
  ] }),
@@ -3648,19 +3657,19 @@ const Ts = 2, Ss = (e, n) => {
3648
3657
  ] }),
3649
3658
  C(m)
3650
3659
  ] }, m.id)) });
3651
- }, tc = (e) => {
3652
- const n = Ce();
3660
+ }, nc = (e) => {
3661
+ const n = we();
3653
3662
  return N(() => {
3654
3663
  n.extend(Or);
3655
- }, [n]), /* @__PURE__ */ l(Ee, {});
3656
- }, xs = -25, bn = 2, nc = (e) => {
3657
- const n = Ce(), t = (r, c = ",") => r.slice(r.indexOf(`
3664
+ }, [n]), /* @__PURE__ */ l(Ce, {});
3665
+ }, Ds = -25, bn = 2, ic = (e) => {
3666
+ const n = we(), t = (r, c = ",") => r.slice(r.indexOf(`
3658
3667
  `) + 1).split(`
3659
3668
  `).map((p) => {
3660
3669
  const C = p.split(c);
3661
3670
  return {
3662
- cartographic: Re.fromDegrees(parseFloat(C[0]), parseFloat(C[1])),
3663
- cartesian: new Ne(parseFloat(C[0]), parseFloat(C[1]))
3671
+ cartographic: Ne.fromDegrees(parseFloat(C[0]), parseFloat(C[1])),
3672
+ cartesian: new Ie(parseFloat(C[0]), parseFloat(C[1]))
3664
3673
  };
3665
3674
  }), i = (r) => {
3666
3675
  var d;
@@ -3668,7 +3677,7 @@ const Ts = 2, Ss = (e, n) => {
3668
3677
  const c = new FileReader();
3669
3678
  c.onload = (h) => {
3670
3679
  var b;
3671
- const p = (b = h.target) == null ? void 0 : b.result, C = t(p), m = zt.WGS84;
3680
+ const p = (b = h.target) == null ? void 0 : b.result, C = t(p), m = Wt.WGS84;
3672
3681
  console.log(`Loaded CSV content:
3673
3682
  `, p), Ar(
3674
3683
  n.terrainProvider,
@@ -3692,7 +3701,7 @@ const Ts = 2, Ss = (e, n) => {
3692
3701
  outlineWidth: 4,
3693
3702
  outlineColor: Ge.BLACK,
3694
3703
  verticalOrigin: ut.BOTTOM,
3695
- pixelOffset: new Ne(0, xs)
3704
+ pixelOffset: new Ie(0, Ds)
3696
3705
  },
3697
3706
  description: `
3698
3707
  Long: ${C[H].cartesian.x} </br>
@@ -3721,7 +3730,7 @@ const Ts = 2, Ss = (e, n) => {
3721
3730
  const p = new Blob([h], { type: "text/csv;charset=utf-8;" }), C = document.createElement("a"), m = URL.createObjectURL(p);
3722
3731
  C.setAttribute("href", m), C.setAttribute("download", r), C.style.visibility = "hidden", document.body.appendChild(C), C.click(), document.body.removeChild(C);
3723
3732
  };
3724
- return /* @__PURE__ */ l(Ee, { children: /* @__PURE__ */ l(
3733
+ return /* @__PURE__ */ l(Ce, { children: /* @__PURE__ */ l(
3725
3734
  "input",
3726
3735
  {
3727
3736
  type: "file",
@@ -3733,7 +3742,7 @@ const Ts = 2, Ss = (e, n) => {
3733
3742
  }
3734
3743
  ) });
3735
3744
  };
3736
- const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs = (e) => {
3745
+ const Is = 38, Os = 40, As = 13, ks = 14, Rs = 27, Ns = 9, Bs = 10, Fs = 100, Vs = (e) => {
3737
3746
  const [n, t] = F(e.defaultValue ?? ""), [i, o] = F(!1), [r, c] = F({
3738
3747
  helperVisible: !1,
3739
3748
  left: 0,
@@ -3771,32 +3780,32 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3771
3780
  const A = p(_, x);
3772
3781
  let re = {};
3773
3782
  for (let ae = 0; ae < A.length; ae++) {
3774
- const { triggerStr: $, triggerMatch: te, triggerLength: ue } = A[ae];
3783
+ const { triggerStr: W, triggerMatch: te, triggerLength: ue } = A[ae];
3775
3784
  for (let pe = g - 1; pe >= 0; --pe) {
3776
3785
  const Me = v.substring(pe, g).match(x);
3777
- let ve = -1;
3786
+ let Ee = -1;
3778
3787
  if (ue > 0) {
3779
3788
  const L = te ? pe : pe - ue + 1;
3780
- if (L < 0 || (C($, v, L) && (ve = L + ue), !Me && ve < 0))
3789
+ if (L < 0 || (C(W, v, L) && (Ee = L + ue), !Me && Ee < 0))
3781
3790
  break;
3782
3791
  } else {
3783
3792
  if (Me && pe > 0)
3784
3793
  continue;
3785
- if (ve = pe === 0 && Me ? 0 : pe + 1, g - ve === 0)
3794
+ if (Ee = pe === 0 && Me ? 0 : pe + 1, g - Ee === 0)
3786
3795
  break;
3787
3796
  }
3788
- if (ve >= 0) {
3789
- const L = I[$];
3797
+ if (Ee >= 0) {
3798
+ const L = I[W];
3790
3799
  if (!Array.isArray(L))
3791
3800
  continue;
3792
- const T = v.substring(ve, g), O = L.filter((j) => {
3801
+ const T = v.substring(Ee, g), O = L.filter((j) => {
3793
3802
  const oe = j.toLowerCase().indexOf(T.toLowerCase());
3794
3803
  return oe !== -1 && (M || oe === 0);
3795
- }), B = $, R = T.length;
3804
+ }), B = W, R = T.length;
3796
3805
  re = {
3797
3806
  ...re,
3798
3807
  trigger: B,
3799
- matchStart: ve,
3808
+ matchStart: Ee,
3800
3809
  matchLength: R,
3801
3810
  options: O
3802
3811
  };
@@ -3810,10 +3819,10 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3810
3819
  triggerLength: f.length
3811
3820
  })), C = (v, g, w) => !v || !v.length || g.substr(w, v.length) === v, m = (v) => {
3812
3821
  const { onChange: g, options: w, spaceRemovers: f, spacer: M, value: D } = e, x = n, _ = v.target.value, I = $r(b(v.target)).end;
3813
- if (_.length || W({
3822
+ if (_.length || z({
3814
3823
  ...r,
3815
3824
  helperVisible: !1
3816
- }), t(_), W({
3825
+ }), t(_), z({
3817
3826
  ...r,
3818
3827
  caret: I,
3819
3828
  value: v.target.value
@@ -3822,9 +3831,9 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3822
3831
  if (i && f.length && _.length > 2 && M.length) {
3823
3832
  for (let A = 0; A < Math.max(x.length, _.length); ++A)
3824
3833
  if (x[A] !== _[A]) {
3825
- if (A >= 2 && _[A - 1] === M && f.indexOf(_[A - 2]) === -1 && f.indexOf(_[A]) !== -1 && !kt(h(_.substring(0, A - 2), I - 3, w))) {
3834
+ if (A >= 2 && _[A - 1] === M && f.indexOf(_[A - 2]) === -1 && f.indexOf(_[A]) !== -1 && !Rt(h(_.substring(0, A - 2), I - 3, w))) {
3826
3835
  const re = `${_.slice(0, A - 1)}${_.slice(A, A + 1)}${_.slice(A - 1, A)}${_.slice(A + 1)}`;
3827
- return Z(A + 1), d.current !== null && (d.current.value = re), D || W({
3836
+ return Z(A + 1), d.current !== null && (d.current.value = re), D || z({
3828
3837
  ...r,
3829
3838
  value: re
3830
3839
  }), g(re);
@@ -3849,26 +3858,26 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3849
3858
  const { helperVisible: g, options: w, selection: f } = r, { onKeyDown: M, passThroughEnter: D } = e;
3850
3859
  if (g)
3851
3860
  switch (v.keyCode) {
3852
- case ks:
3861
+ case Rs:
3853
3862
  v.preventDefault(), Y();
3854
3863
  break;
3855
- case Ds:
3856
- v.preventDefault(), W({
3864
+ case Is:
3865
+ v.preventDefault(), z({
3857
3866
  ...r,
3858
3867
  selection: (w.length + f - 1) % w.length
3859
3868
  });
3860
3869
  break;
3861
- case Is:
3862
- v.preventDefault(), W({
3870
+ case Os:
3871
+ v.preventDefault(), z({
3863
3872
  ...r,
3864
3873
  selection: (f + 1) % w.length
3865
3874
  });
3866
3875
  break;
3876
+ case ks:
3867
3877
  case As:
3868
- case Os:
3869
3878
  D || v.preventDefault(), H(f);
3870
3879
  break;
3871
- case Rs:
3880
+ case Ns:
3872
3881
  H(f);
3873
3882
  break;
3874
3883
  default:
@@ -3878,21 +3887,21 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3878
3887
  else
3879
3888
  M(v);
3880
3889
  }, S = () => {
3881
- W({
3890
+ z({
3882
3891
  ...r,
3883
3892
  helperVisible: !1
3884
3893
  });
3885
3894
  }, H = (v) => {
3886
- const { spacer: g, onSelect: w, changeOnSelect: f } = e, { matchStart: M, matchLength: D, options: x, trigger: _ } = r, I = x[v], A = n, re = A.substring(0, M - _.length), ae = A.substring(M + D), $ = { target: d.current }, te = f(_, I);
3887
- $.target !== null && ($.target.value = `${re}${te}${g}${ae}`), m($), $.target !== null && w($.target.value), Y(), Z(re.length + te.length + 1), o(!0);
3895
+ const { spacer: g, onSelect: w, changeOnSelect: f } = e, { matchStart: M, matchLength: D, options: x, trigger: _ } = r, I = x[v], A = n, re = A.substring(0, M - _.length), ae = A.substring(M + D), W = { target: d.current }, te = f(_, I);
3896
+ W.target !== null && (W.target.value = `${re}${te}${g}${ae}`), m(W), W.target !== null && w(W.target.value), Y(), Z(re.length + te.length + 1), o(!0);
3888
3897
  }, Z = (v) => {
3889
- W({
3898
+ z({
3890
3899
  ...r,
3891
3900
  caret: v
3892
3901
  });
3893
3902
  const g = b(d.current);
3894
3903
  zr(g, v);
3895
- }, W = (v) => {
3904
+ }, z = (v) => {
3896
3905
  setTimeout(() => {
3897
3906
  c({
3898
3907
  ...v
@@ -3907,23 +3916,23 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3907
3916
  return;
3908
3917
  const D = f.getBoundingClientRect(), x = h(v, g, w);
3909
3918
  if (Object.keys(x).length > 0 && M !== null) {
3910
- const _ = Hr(M, g), I = M.getBoundingClientRect(), { minChars: A, onRequestOptions: re, requestOnlyIfNoOptions: ae, mode: $ } = e;
3911
- let te, ue, pe, ke = "unset";
3912
- $ === "assist" ? (te = f === M ? _.top + M.offsetTop : _.top + D.top, ue = Math.min(_.left + M.offsetLeft - Ns, M.offsetLeft + I.width - Bs)) : (te = D.top + f.offsetHeight, ue = f.offsetLeft, pe = f.offsetLeft - f.offsetWidth, ke = `${D.width}px`), x.matchLength >= A && (x.options.length > 1 || x.options.length === 1 && x.options[0].length !== x.matchLength) ? W({
3919
+ const _ = Hr(M, g), I = M.getBoundingClientRect(), { minChars: A, onRequestOptions: re, requestOnlyIfNoOptions: ae, mode: W } = e;
3920
+ let te, ue, pe, Re = "unset";
3921
+ W === "assist" ? (te = f === M ? _.top + M.offsetTop : _.top + D.top, ue = Math.min(_.left + M.offsetLeft - Bs, M.offsetLeft + I.width - Fs)) : (te = D.top + f.offsetHeight, ue = f.offsetLeft, pe = f.offsetLeft - f.offsetWidth, Re = `${D.width}px`), x.matchLength >= A && (x.options.length > 1 || x.options.length === 1 && x.options[0].length !== x.matchLength) ? z({
3913
3922
  ...r,
3914
3923
  value: v,
3915
3924
  helperVisible: !0,
3916
3925
  top: te,
3917
3926
  left: ue,
3918
3927
  right: pe,
3919
- width: ke,
3928
+ width: Re,
3920
3929
  ...x
3921
3930
  }) : ((!ae || !x.options.length) && re(v.substr(x.matchStart, x.matchLength)), Y());
3922
3931
  } else
3923
3932
  Y();
3924
3933
  }, Y = () => {
3925
3934
  setTimeout(() => {
3926
- W({
3935
+ z({
3927
3936
  ...r,
3928
3937
  helperVisible: !1,
3929
3938
  selection: 0
@@ -3933,27 +3942,27 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3933
3942
  const { helperVisible: v, left: g, right: w, matchStart: f, matchLength: M, options: D, selection: x, top: _, value: I, width: A } = r;
3934
3943
  if (!v)
3935
3944
  return null;
3936
- const { maxOptions: re, offsetX: ae, offsetY: $, direction: te } = e;
3945
+ const { maxOptions: re, offsetX: ae, offsetY: W, direction: te } = e;
3937
3946
  if (D.length === 0)
3938
3947
  return null;
3939
3948
  if (x >= D.length)
3940
- return W({
3949
+ return z({
3941
3950
  ...r,
3942
3951
  selection: 0
3943
3952
  }), null;
3944
- const ue = re === 0 ? D.length : re, pe = D.slice(0, ue).map((Me, ve) => {
3953
+ const ue = re === 0 ? D.length : re, pe = D.slice(0, ue).map((Me, Ee) => {
3945
3954
  const L = Me.toLowerCase().indexOf(I.substr(f, M).toLowerCase());
3946
- return /* @__PURE__ */ z(
3955
+ return /* @__PURE__ */ $(
3947
3956
  "li",
3948
3957
  {
3949
- className: ve === x ? "active" : void 0,
3958
+ className: Ee === x ? "active" : void 0,
3950
3959
  onClick: () => {
3951
- H(ve);
3960
+ H(Ee);
3952
3961
  },
3953
3962
  onMouseEnter: () => {
3954
- W({
3963
+ z({
3955
3964
  ...r,
3956
- selection: ve
3965
+ selection: Ee
3957
3966
  });
3958
3967
  },
3959
3968
  children: [
@@ -3964,13 +3973,13 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3964
3973
  },
3965
3974
  Me
3966
3975
  );
3967
- }), ke = te === "ltr" ? { left: g + ae } : { right: w + ae };
3968
- return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ke, top: _ + $, width: A }, children: pe });
3976
+ }), Re = te === "ltr" ? { left: g + ae } : { right: w + ae };
3977
+ return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...Re, top: _ + W, width: A }, children: pe });
3969
3978
  }, { Component: X, ComponentProps: G, defaultValue: K, disabled: se, onBlur: s, value: a, ...y } = e, u = Object.assign({}, y);
3970
3979
  return Object.keys(e).forEach((v) => {
3971
3980
  delete u[v];
3972
- }), /* @__PURE__ */ z(Ee, { children: [
3973
- Oe.cloneElement(X, {
3981
+ }), /* @__PURE__ */ $(Ce, { children: [
3982
+ Ae.cloneElement(X, {
3974
3983
  disabled: se,
3975
3984
  onBlur: s,
3976
3985
  onChange: m,
@@ -3982,7 +3991,7 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3982
3991
  }),
3983
3992
  k()
3984
3993
  ] });
3985
- }, Vs = {
3994
+ }, Gs = {
3986
3995
  Component: /* @__PURE__ */ l("textarea", {}),
3987
3996
  ComponentProps: {},
3988
3997
  defaultValue: void 0,
@@ -4013,9 +4022,9 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4013
4022
  passThroughEnter: !1,
4014
4023
  mode: "assist",
4015
4024
  direction: "ltr"
4016
- }, ic = (e) => {
4025
+ }, rc = (e) => {
4017
4026
  let n = {
4018
- ...Vs,
4027
+ ...Gs,
4019
4028
  ...e
4020
4029
  };
4021
4030
  return e.mode === "autocomplete" && (n = {
@@ -4023,8 +4032,8 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4023
4032
  trigger: "",
4024
4033
  regex: ".",
4025
4034
  spacer: ""
4026
- }), /* @__PURE__ */ l(Fs, { ...n });
4027
- }, Kt = {
4035
+ }), /* @__PURE__ */ l(Vs, { ...n });
4036
+ }, Yt = {
4028
4037
  formatFileModDate: (e, n) => {
4029
4038
  const t = Hn.getModDate(n);
4030
4039
  return t ? e.formatDate(t, {
@@ -4041,12 +4050,12 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4041
4050
  });
4042
4051
  return i.symbol === "B" ? `${Math.round(i.value / 10) / 100} KB` : i.symbol === "KB" ? `${Math.round(i.value)} ${i.symbol}` : `${i.value} ${i.symbol.toUpperCase()}`;
4043
4052
  }
4044
- }, Gs = {
4045
- locale: De.EN,
4046
- formatters: { ...Kt }
4047
4053
  }, Hs = {
4054
+ locale: De.EN,
4055
+ formatters: { ...Yt }
4056
+ }, $s = {
4048
4057
  locale: De.RU,
4049
- formatters: { ...Kt },
4058
+ formatters: { ...Yt },
4050
4059
  messages: {
4051
4060
  "chonky.toolbar.searchPlaceholder": "Поиск",
4052
4061
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -4084,9 +4093,9 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4084
4093
  [`chonky.actions.${ne.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
4085
4094
  [`chonky.actions.${ne.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
4086
4095
  }
4087
- }, $s = {
4096
+ }, zs = {
4088
4097
  locale: De.HE,
4089
- formatters: { ...Kt },
4098
+ formatters: { ...Yt },
4090
4099
  messages: {
4091
4100
  "chonky.toolbar.searchPlaceholder": "חיפוש",
4092
4101
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -4123,24 +4132,24 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4123
4132
  [`chonky.actions.${ne.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
4124
4133
  [`chonky.actions.${ne.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
4125
4134
  }
4126
- }, zs = {
4127
- [De.EN]: Gs,
4128
- [De.RU]: Hs,
4129
- [De.HE]: $s
4135
+ }, Ws = {
4136
+ [De.EN]: Hs,
4137
+ [De.RU]: $s,
4138
+ [De.HE]: zs
4130
4139
  };
4131
- class rc extends Hn {
4140
+ class oc extends Hn {
4132
4141
  }
4133
- const oc = ne, Ws = {
4142
+ const sc = ne, Us = {
4134
4143
  listView: ne.EnableListView.id,
4135
4144
  gridView: ne.EnableGridView.id
4136
4145
  };
4137
4146
  Wr({ iconComponent: jr });
4138
- const sc = Oe.memo(
4139
- Oe.forwardRef(
4147
+ const ac = Ae.memo(
4148
+ Ae.forwardRef(
4140
4149
  ({
4141
4150
  theme: e,
4142
4151
  styles: n = { height: "100%", minWidth: "600px" },
4143
- defaultView: t = Ws.listView,
4152
+ defaultView: t = Us.listView,
4144
4153
  readOnlyMode: i = !1,
4145
4154
  locale: o,
4146
4155
  files: r,
@@ -4163,12 +4172,12 @@ const sc = Oe.memo(
4163
4172
  }
4164
4173
  }
4165
4174
  })();
4166
- const m = (K) => K.replace(/([A-Z])/g, (se) => "-" + se.toLowerCase()), b = be(() => e !== void 0 ? Object.keys(e).reduce((se, s) => {
4175
+ const m = (K) => K.replace(/([A-Z])/g, (se) => "-" + se.toLowerCase()), b = fe(() => e !== void 0 ? Object.keys(e).reduce((se, s) => {
4167
4176
  const a = e[s];
4168
4177
  return s = s.startsWith("--") ? s : `--fp-theme-${m(s)}`, se[s] = a, se;
4169
- }, {}) : {}, [e]), [P, S] = F(!1), [H, Z] = F(), [W, q] = F(!1), [Y, k] = F(), [X, G] = F();
4178
+ }, {}) : {}, [e]), [P, S] = F(!1), [H, Z] = F(), [z, q] = F(!1), [Y, k] = F(), [X, G] = F();
4170
4179
  return N(() => {
4171
- e && S(!0), Z(t), i ? q(!0) : k([ne.CreateFolder, ne.DeleteFiles]), o !== void 0 && G(zs[o]);
4180
+ e && S(!0), Z(t), i ? q(!0) : k([ne.CreateFolder, ne.DeleteFiles]), o !== void 0 && G(Ws[o]);
4172
4181
  }, [e, t, i, o]), /* @__PURE__ */ l(
4173
4182
  me,
4174
4183
  {
@@ -4187,7 +4196,7 @@ const sc = Oe.memo(
4187
4196
  },
4188
4197
  thumbnailGenerator: C,
4189
4198
  defaultFileViewActionId: H,
4190
- disableDragAndDrop: W,
4199
+ disableDragAndDrop: z,
4191
4200
  fileActions: Y,
4192
4201
  darkMode: P,
4193
4202
  i18n: X,
@@ -4198,18 +4207,18 @@ const sc = Oe.memo(
4198
4207
  );
4199
4208
  }
4200
4209
  )
4201
- ), Us = (e) => /* @__PURE__ */ l(qr.Option, { ...e, children: /* @__PURE__ */ l(Li, { label: e.label, checked: e.isSelected }) }), js = (e) => {
4210
+ ), js = (e) => /* @__PURE__ */ l(qr.Option, { ...e, children: /* @__PURE__ */ l(Li, { label: e.label, checked: e.isSelected }) }), Ks = (e) => {
4202
4211
  const { styles: n } = e;
4203
- return /* @__PURE__ */ l(Yr, { isMulti: !0, components: { Option: Us }, styles: n, isClearable: !0, hideSelectedOptions: !1, closeMenuOnSelect: !1, ...e });
4204
- }, ac = (e) => {
4205
- const { values: n, options: t, onChange: i, placeholder: o, styles: r } = e, c = Vt(), d = Wt(c), [h, p] = F(n);
4206
- return /* @__PURE__ */ l(Ft, { theme: d, children: /* @__PURE__ */ l(
4212
+ return /* @__PURE__ */ l(Yr, { isMulti: !0, components: { Option: js }, styles: n, isClearable: !0, hideSelectedOptions: !1, closeMenuOnSelect: !1, ...e });
4213
+ }, lc = (e) => {
4214
+ const { values: n, options: t, onChange: i, placeholder: o, styles: r } = e, c = Gt(), d = Ut(c), [h, p] = F(n);
4215
+ return /* @__PURE__ */ l(Vt, { theme: d, children: /* @__PURE__ */ l(
4207
4216
  gi,
4208
4217
  {
4209
4218
  multiline: !0,
4210
4219
  fullWidth: !0,
4211
4220
  disableUnderline: !0,
4212
- inputComponent: js,
4221
+ inputComponent: Ks,
4213
4222
  value: h,
4214
4223
  onChange: (m) => {
4215
4224
  p(m), i && i(m);
@@ -4224,114 +4233,114 @@ const sc = Oe.memo(
4224
4233
  ) });
4225
4234
  };
4226
4235
  export {
4227
- ic as Autocomplete,
4228
- Rt as BboxCorner,
4236
+ rc as Autocomplete,
4237
+ Nt as BboxCorner,
4229
4238
  me as Box,
4230
- Bt as COORDINATES_MERCATOR_FRACTION_DIGITS,
4231
- Nt as COORDINATES_WGS_FRACTION_DIGITS,
4232
- jl as Cesium3DTileset,
4233
- Ml as CesiumBoundingSphere,
4234
- Tl as CesiumCartesian2,
4235
- Sl as CesiumCartesian3,
4236
- ts as CesiumCartographic,
4237
- Nl as CesiumCesiumBillboardGraphics,
4238
- hc as CesiumCesiumEntity,
4239
- mc as CesiumCesiumPolygonGraphics,
4240
- Al as CesiumCesiumPolylineGraphics,
4241
- Ol as CesiumCesiumTerrainProvider,
4242
- Bl as CesiumColor,
4243
- Ll as CesiumConstantPositionProperty,
4244
- bl as CesiumConstantProperty,
4245
- bs as CesiumCustomDataSource,
4246
- ec as CesiumDrawingsDataSource,
4247
- _l as CesiumEllipsoid,
4248
- Il as CesiumEllipsoidTerrainProvider,
4249
- vs as CesiumEntity,
4250
- Ql as CesiumEntityDescription,
4251
- Es as CesiumEntityStaticDescription,
4252
- pc as CesiumGeoJsonDataSource,
4253
- Pl as CesiumGeographicTilingScheme,
4254
- Kl as CesiumGeojsonLayer,
4255
- zl as CesiumHeightReference,
4256
- Hl as CesiumHorizontalOrigin,
4239
+ Ft as COORDINATES_MERCATOR_FRACTION_DIGITS,
4240
+ Bt as COORDINATES_WGS_FRACTION_DIGITS,
4241
+ Kl as Cesium3DTileset,
4242
+ _l as CesiumBoundingSphere,
4243
+ Sl as CesiumCartesian2,
4244
+ Ml as CesiumCartesian3,
4245
+ ns as CesiumCartographic,
4246
+ Bl as CesiumCesiumBillboardGraphics,
4247
+ mc as CesiumCesiumEntity,
4248
+ pc as CesiumCesiumPolygonGraphics,
4249
+ kl as CesiumCesiumPolylineGraphics,
4250
+ Al as CesiumCesiumTerrainProvider,
4251
+ Fl as CesiumColor,
4252
+ Tl as CesiumConstantPositionProperty,
4253
+ Ll as CesiumConstantProperty,
4254
+ Ls as CesiumCustomDataSource,
4255
+ tc as CesiumDrawingsDataSource,
4256
+ Pl as CesiumEllipsoid,
4257
+ Ol as CesiumEllipsoidTerrainProvider,
4258
+ Es as CesiumEntity,
4259
+ ec as CesiumEntityDescription,
4260
+ Cs as CesiumEntityStaticDescription,
4261
+ gc as CesiumGeoJsonDataSource,
4262
+ xl as CesiumGeographicTilingScheme,
4263
+ Yl as CesiumGeojsonLayer,
4264
+ Wl as CesiumHeightReference,
4265
+ $l as CesiumHorizontalOrigin,
4257
4266
  vt as CesiumImageryLayer,
4258
- kl as CesiumJulianDate,
4259
- $l as CesiumLabelStyle,
4260
- Ul as CesiumMap,
4261
- gc as CesiumMath,
4262
- Xl as CesiumOSMLayer,
4263
- Cs as CesiumPolygonGraphics,
4264
- Fl as CesiumPolygonHierarchy,
4265
- wl as CesiumPolylineDashMaterialProperty,
4266
- Rl as CesiumPositionProperty,
4267
- xl as CesiumRectangle,
4268
- ws as CesiumRectangleGraphics,
4269
- Dl as CesiumResource,
4270
- Vl as CesiumScene,
4271
- we as CesiumSceneMode,
4272
- fc as CesiumSceneTransforms,
4273
- Gl as CesiumVerticalOrigin,
4274
- Wl as CesiumViewer,
4275
- Jl as CesiumWFSLayer,
4276
- Yl as CesiumWMSLayer,
4277
- ql as CesiumWMTSLayer,
4278
- Zl as CesiumXYZLayer,
4279
- ls as CoordinatesTrackerTool,
4280
- El as CssBaseline,
4281
- rl as DateRangePicker,
4282
- ol as DateTimePicker,
4267
+ Rl as CesiumJulianDate,
4268
+ zl as CesiumLabelStyle,
4269
+ jl as CesiumMap,
4270
+ fc as CesiumMath,
4271
+ Jl as CesiumOSMLayer,
4272
+ ws as CesiumPolygonGraphics,
4273
+ Vl as CesiumPolygonHierarchy,
4274
+ bl as CesiumPolylineDashMaterialProperty,
4275
+ Nl as CesiumPositionProperty,
4276
+ Dl as CesiumRectangle,
4277
+ bs as CesiumRectangleGraphics,
4278
+ Il as CesiumResource,
4279
+ Gl as CesiumScene,
4280
+ be as CesiumSceneMode,
4281
+ yc as CesiumSceneTransforms,
4282
+ Hl as CesiumVerticalOrigin,
4283
+ Ul as CesiumViewer,
4284
+ Ql as CesiumWFSLayer,
4285
+ ql as CesiumWMSLayer,
4286
+ Zl as CesiumWMTSLayer,
4287
+ Xl as CesiumXYZLayer,
4288
+ cs as CoordinatesTrackerTool,
4289
+ Cl as CssBaseline,
4290
+ ol as DateRangePicker,
4291
+ sl as DateTimePicker,
4283
4292
  eo as DateTimeRangePicker,
4284
- nl as DateTimeRangePickerFormControl,
4285
- Ue as DrawHelper,
4293
+ il as DateTimeRangePickerFormControl,
4294
+ je as DrawHelper,
4286
4295
  Lo as DrawInteraction,
4287
4296
  Se as DrawType,
4288
- rc as FileHelper,
4289
- sc as FilePicker,
4290
- oc as FilePickerActions,
4291
- Ws as FilePickerViewObj,
4297
+ oc as FileHelper,
4298
+ ac as FilePicker,
4299
+ sc as FilePickerActions,
4300
+ Us as FilePickerViewObj,
4292
4301
  wo as GeoJSONFeature,
4293
- tc as InspectorTool,
4294
- yl as Legend,
4295
- fl as MVTSource,
4302
+ nc as InspectorTool,
4303
+ vl as Legend,
4304
+ yl as MVTSource,
4296
4305
  ho as Map,
4297
- sl as MapFilterContainer,
4298
- ac as MultiSelection,
4306
+ al as MapFilterContainer,
4307
+ lc as MultiSelection,
4299
4308
  to as Popover,
4300
- Ae as Proj,
4301
- ds as ScaleTrackerTool,
4302
- Cl as ScopedCssBaseline,
4303
- vl as SmartTable,
4309
+ ke as Proj,
4310
+ us as ScaleTrackerTool,
4311
+ wl as ScopedCssBaseline,
4312
+ El as SmartTable,
4304
4313
  De as SupportedLocales,
4305
- nc as TerrainianHeightTool,
4314
+ ic as TerrainianHeightTool,
4306
4315
  po as TileLayer,
4307
4316
  bo as TileOsm,
4308
- ul as TileWMS,
4309
- cl as TileWMTS,
4310
- ml as TileXYZ,
4311
- il as TimeRangeInput,
4317
+ hl as TileWMS,
4318
+ dl as TileWMTS,
4319
+ pl as TileXYZ,
4320
+ rl as TimeRangeInput,
4312
4321
  yo as VectorLayer,
4313
4322
  Co as VectorSource,
4314
- al as VectorTileLayer,
4315
- hs as ZoomLevelTrackerTool,
4316
- yc as cesiumSampleTerrainMostDetailed,
4317
- Kt as defaultFormatters,
4318
- gl as getMVTOptions,
4319
- dl as getWMSOptions,
4320
- ll as getWMTSOptions,
4321
- hl as getXYZOptions,
4323
+ ll as VectorTileLayer,
4324
+ ms as ZoomLevelTrackerTool,
4325
+ vc as cesiumSampleTerrainMostDetailed,
4326
+ Yt as defaultFormatters,
4327
+ fl as getMVTOptions,
4328
+ ul as getWMSOptions,
4329
+ cl as getWMTSOptions,
4330
+ ml as getXYZOptions,
4322
4331
  Lt as isDateRange,
4323
4332
  Zr as mapMcToMuiTheme,
4324
- Ms as polygonToGeoJSON,
4325
- _s as rectangleToGeoJSON,
4326
- Ps as rectangleToPositions,
4327
- Ce as useCesiumMap,
4333
+ _s as polygonToGeoJSON,
4334
+ Ps as rectangleToGeoJSON,
4335
+ xs as rectangleToPositions,
4336
+ we as useCesiumMap,
4328
4337
  rt as useCesiumMapViewstate,
4329
4338
  tt as useMap,
4330
- Wt as useMappedMuiTheme,
4331
- dc as useMediaQuery,
4339
+ Ut as useMappedMuiTheme,
4340
+ uc as useMediaQuery,
4332
4341
  ft as useTileLayer,
4333
4342
  fo as useVectorLayer,
4334
4343
  Eo as useVectorSource,
4335
4344
  Po as useVectorTileLayer,
4336
- pl as useVectorTileSource
4345
+ gl as useVectorTileSource
4337
4346
  };