@map-colonies/react-components 4.7.2 → 4.7.3

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.
@@ -12,7 +12,7 @@ import qt from "@date-io/date-fns";
12
12
  import { createTheme as Sn, makeStyles as Fe, createStyles as Ke } from "@material-ui/core/styles";
13
13
  import { Box as _n, ThemeProvider as Yt, Popover as Mn, Paper as ot, TableRow as $e, TableCell as Ae, TableSortLabel as Pn, IconButton as xn, Collapse as In, TableContainer as Dn, Table as On, TableBody as An, Typography as kn, TablePagination as Rn } from "@material-ui/core";
14
14
  import { useTheme as Xt, ThemeProvider as Nn, Button as Ne, TextField as We, Tooltip as st, Menu as Bn, MenuItem as Ze, Icon as _e, Dialog as Fn, DialogTitle as Hn, DialogContent as Gn, Drawer as Vn, DrawerHeader as zn, DrawerTitle as $n, DrawerContent as Wn, LinearProgress as Un } from "@map-colonies/react-core";
15
- import { default as Za } from "@material-ui/core/useMediaQuery";
15
+ import { default as Qa } from "@material-ui/core/useMediaQuery";
16
16
  import jn, { registerLocale as Kn } from "react-datepicker";
17
17
  import qn from "date-fns/locale/he";
18
18
  import De from "moment";
@@ -45,21 +45,21 @@ import bi from "@material-ui/core/ScopedCssBaseline";
45
45
  import { createPortal as Li } from "react-dom";
46
46
  import { Viewer as Si, Cesium3DTileset as _i, GeoJsonDataSource as Mi, ImageryLayer as Pi, Entity as xi, EntityDescription as Qt, PolygonGraphics as Ii, RectangleGraphics as Di, CustomDataSource as Oi, PolylineGraphics as Ai } from "resium";
47
47
  import * as g from "cesium";
48
- import { Math as fe, SceneMode as Le, Cartesian2 as Ce, Cartographic as He, PolylineDashMaterialProperty as ki, ConstantProperty as Ri, ConstantPositionProperty as Ni, Cartesian3 as ve, BoundingSphere as Bi, Ellipsoid as en, GeographicTilingScheme as Fi, Rectangle as Oe, Resource as Hi, EllipsoidTerrainProvider as Gi, CesiumTerrainProvider as Vi, VerticalOrigin as at, LabelStyle as tn, ScreenSpaceEventType as zi, WebMercatorProjection as $i, EventHelper as Wi, EllipsoidGeodesic as Ui, UrlTemplateImageryProvider as mt, WebMapServiceImageryProvider as pt, WebMapTileServiceImageryProvider as gt, Event as ji, SingleTileImageryProvider as Ki, Viewer as qi, Matrix4 as Yi, OpenStreetMapImageryProvider as Xi, Color as lt, PolygonHierarchy as Zi, viewerCesiumInspectorMixin as Ji, sampleTerrainMostDetailed as Qi } from "cesium";
49
- import { Math as Qa, sampleTerrainMostDetailed as el } from "cesium";
50
- import { get as Z, isNumber as Ue, isEmpty as ct, isArray as er, cloneDeep as tr, find as _t } from "lodash";
51
- import nr from "@turf/boolean-point-in-polygon";
48
+ import { Math as fe, SceneMode as Le, Cartesian2 as Ce, Cartographic as He, PolylineDashMaterialProperty as ki, ConstantProperty as Ri, ConstantPositionProperty as Ni, Cartesian3 as ve, BoundingSphere as Bi, Ellipsoid as en, GeographicTilingScheme as Fi, Rectangle as Oe, Resource as Hi, EllipsoidTerrainProvider as Gi, CesiumTerrainProvider as Vi, VerticalOrigin as at, HorizontalOrigin as zi, LabelStyle as tn, ScreenSpaceEventType as $i, WebMercatorProjection as Wi, EventHelper as Ui, EllipsoidGeodesic as ji, UrlTemplateImageryProvider as mt, WebMapServiceImageryProvider as pt, WebMapTileServiceImageryProvider as gt, Event as Ki, SingleTileImageryProvider as qi, Viewer as Yi, Matrix4 as Xi, OpenStreetMapImageryProvider as Zi, Color as lt, PolygonHierarchy as Ji, viewerCesiumInspectorMixin as Qi, sampleTerrainMostDetailed as er } from "cesium";
49
+ import { Math as tl, sampleTerrainMostDetailed as nl } from "cesium";
50
+ import { get as Z, isNumber as Ue, isEmpty as ct, isArray as tr, cloneDeep as nr, find as _t } from "lodash";
51
+ import ir from "@turf/boolean-point-in-polygon";
52
52
  import "@map-colonies/react-core/dist/linear-progress/styles";
53
- import ir from "@cmcleese/cesium-navigation";
53
+ import rr from "@cmcleese/cesium-navigation";
54
54
  import "@cmcleese/cesium-navigation/dist/index.css";
55
55
  import * as nn from "@turf/helpers";
56
56
  import rn from "@turf/bbox";
57
57
  import on from "@turf/bbox-polygon";
58
- import rr from "textarea-caret";
59
- import or, { setCaretPosition as sr } from "get-input-selection";
60
- import { ChonkyActions as F, FileHelper as sn, setChonkyDefaults as ar, FullFileBrowser as lr } from "chonky";
61
- import { ChonkyIconFA as cr } from "chonky-icon-fontawesome";
62
- import dr from "filesize";
58
+ import or from "textarea-caret";
59
+ import sr, { setCaretPosition as ar } from "get-input-selection";
60
+ import { ChonkyActions as F, FileHelper as sn, setChonkyDefaults as lr, FullFileBrowser as cr } from "chonky";
61
+ import { ChonkyIconFA as dr } from "chonky-icon-fontawesome";
62
+ import ur from "filesize";
63
63
  var le = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(le || {}), he = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(he || {}), dt = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(dt || {});
64
64
  const J = {
65
65
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -93,8 +93,8 @@ const J = {
93
93
  return /* @__PURE__ */ l(_n, { ...t, children: n });
94
94
  }, an = (e) => {
95
95
  const n = e.type === "dark";
96
- return Ee.useMemo(() => ur(e, n), [n, e]);
97
- }, ur = (e, n = !1) => Sn({
96
+ return Ee.useMemo(() => hr(e, n), [n, e]);
97
+ }, hr = (e, n = !1) => Sn({
98
98
  palette: {
99
99
  type: n ? "dark" : "light",
100
100
  primary: {
@@ -116,22 +116,22 @@ const J = {
116
116
  }
117
117
  }
118
118
  });
119
- const hr = 2, mr = 0.5, pr = Fe(
119
+ const mr = 2, pr = 0.5, gr = Fe(
120
120
  (e) => Ke({
121
121
  container: {
122
- padding: e.spacing(hr),
122
+ padding: e.spacing(mr),
123
123
  alignItems: "center"
124
124
  },
125
125
  setButton: {
126
126
  marginTop: e.spacing(1)
127
127
  },
128
128
  margin: {
129
- marginLeft: e.spacing(mr)
129
+ marginLeft: e.spacing(pr)
130
130
  }
131
131
  })
132
- ), gr = (e) => {
132
+ ), fr = (e) => {
133
133
  var j, O, z, k;
134
- const n = pr(), t = Xt(), i = an(t), [o, r] = D(null), [c, u] = D(null), [m, p] = D(J.DATE_RANGE_PICKER.dateFormat), v = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, L = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, w = ((j = e.local) == null ? void 0 : j.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((O = e.local) == null ? void 0 : O.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, A = ((z = e.local) == null ? void 0 : z.setText) ?? J.DATE_RANGE_PICKER.local.setText, Y = (((k = e.local) == null ? void 0 : k.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === he.HE ? Ut : jt;
134
+ const n = gr(), t = Xt(), i = an(t), [o, r] = D(null), [c, u] = D(null), [m, p] = D(J.DATE_RANGE_PICKER.dateFormat), v = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, L = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, w = ((j = e.local) == null ? void 0 : j.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((O = e.local) == null ? void 0 : O.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, A = ((z = e.local) == null ? void 0 : z.setText) ?? J.DATE_RANGE_PICKER.local.setText, Y = (((k = e.local) == null ? void 0 : k.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === he.HE ? Ut : jt;
135
135
  I(() => {
136
136
  r(e.from ?? null);
137
137
  }, [e.from]), I(() => {
@@ -195,11 +195,11 @@ const hr = 2, mr = 0.5, pr = Fe(
195
195
  ] })
196
196
  }
197
197
  ) });
198
- }, fr = (e) => {
198
+ }, yr = (e) => {
199
199
  const { children: n, ...t } = e;
200
200
  return /* @__PURE__ */ l(Mn, { ...t, children: n });
201
201
  };
202
- const Qs = (e) => {
202
+ const ea = (e) => {
203
203
  var O, z;
204
204
  const [n, t] = D(null), [i, o] = D(null), [r, c] = D(J.DATE_RANGE_PICKER.dateFormat), [u, m] = Ee.useState(null), p = (k) => {
205
205
  m(k.currentTarget);
@@ -232,8 +232,8 @@ const Qs = (e) => {
232
232
  }
233
233
  }
234
234
  ),
235
- /* @__PURE__ */ l(fr, { open: w, anchorEl: u, onClose: L, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
236
- gr,
235
+ /* @__PURE__ */ l(yr, { open: w, anchorEl: u, onClose: L, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
236
+ fr,
237
237
  {
238
238
  controlsLayout: P,
239
239
  contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - G,
@@ -250,7 +250,7 @@ const Qs = (e) => {
250
250
  }
251
251
  ) })
252
252
  ] });
253
- }, Qe = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ea = ({
253
+ }, Qe = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ta = ({
254
254
  endDate: e,
255
255
  startDate: n,
256
256
  setEndDate: t = () => {
@@ -301,7 +301,7 @@ const Qs = (e) => {
301
301
  }
302
302
  }
303
303
  ) })
304
- ] }), yr = wn(
304
+ ] }), vr = wn(
305
305
  ({ value: e, onClick: n, onInputClick: t, ...i }, o) => /* @__PURE__ */ l(
306
306
  We,
307
307
  {
@@ -315,7 +315,7 @@ const Qs = (e) => {
315
315
  value: e
316
316
  }
317
317
  )
318
- ), vr = ({ setStartDate: e = () => {
318
+ ), Er = ({ setStartDate: e = () => {
319
319
  }, setEndDate: n = () => {
320
320
  }, shortcuts: t, dateRange: i, onShortcut: o }) => {
321
321
  const [r, c] = D(), u = Be(
@@ -345,7 +345,7 @@ const Qs = (e) => {
345
345
  m.id + p
346
346
  );
347
347
  }) });
348
- }, ta = Ee.forwardRef((e, n) => {
348
+ }, na = Ee.forwardRef((e, n) => {
349
349
  const {
350
350
  // Time range input props
351
351
  // endTimeInputClassName,
@@ -403,12 +403,12 @@ const Qs = (e) => {
403
403
  } else
404
404
  w(O), c == null || c(O, z);
405
405
  },
406
- customInput: /* @__PURE__ */ l(yr, { name: u, onInputClick: () => {
406
+ customInput: /* @__PURE__ */ l(vr, { name: u, onInputClick: () => {
407
407
  Y(!0);
408
408
  } }),
409
409
  showTimeInput: !!(p && r),
410
410
  timeInputLabel: "",
411
- customTimeInput: p && Qe(G) && /* @__PURE__ */ l(vr, { onShortcut: (O) => {
411
+ customTimeInput: p && Qe(G) && /* @__PURE__ */ l(Er, { onShortcut: (O) => {
412
412
  c == null || c(O), Y(!1);
413
413
  }, shortcuts: p, setEndDate: A, setStartDate: w, dateRange: G }),
414
414
  showMonthYearDropdown: void 0,
@@ -416,7 +416,7 @@ const Qs = (e) => {
416
416
  }
417
417
  ) });
418
418
  });
419
- const na = (e) => {
419
+ const ia = (e) => {
420
420
  const n = Xt(), t = an(n), {
421
421
  format: i = J.DATE_PICKER.dateFormat,
422
422
  variant: o = J.DATE_PICKER.variant,
@@ -458,18 +458,18 @@ const na = (e) => {
458
458
  }
459
459
  )
460
460
  ] }) });
461
- }, Er = 18, Cr = Fe(
461
+ }, Cr = 18, wr = Fe(
462
462
  (e) => Ke({
463
463
  drawingButton: {
464
- width: e.spacing(Er)
464
+ width: e.spacing(Cr)
465
465
  },
466
466
  fullWidth: {
467
467
  width: "100%",
468
468
  marginTop: "36px"
469
469
  }
470
470
  })
471
- ), wr = (e) => {
472
- const n = Cr(), [t, i] = Ee.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: u } = e, m = (v) => {
471
+ ), Tr = (e) => {
472
+ const n = wr(), [t, i] = Ee.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: u } = e, m = (v) => {
473
473
  i(v.currentTarget);
474
474
  }, p = () => {
475
475
  i(null);
@@ -516,7 +516,7 @@ const na = (e) => {
516
516
  ] });
517
517
  };
518
518
  var ge = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(ge || {});
519
- const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10, Lr = (e) => e !== void 0 && e !== ge.WGS84 ? Qn([Mt, Pt], ge.WGS84, e) : [Mt, Pt], Sr = (e) => {
519
+ const ut = 5, ht = 2, ln = Me(null), br = ln.Provider, Mt = 35, Pt = 32, Lr = 10, Sr = (e) => e !== void 0 && e !== ge.WGS84 ? Qn([Mt, Pt], ge.WGS84, e) : [Mt, Pt], _r = (e) => {
520
520
  switch (e) {
521
521
  case ge.WEB_MERCATOR:
522
522
  return (n) => bt(n, "Mercator: {y}m, {x}m", ht);
@@ -530,7 +530,7 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
530
530
  if (e === null)
531
531
  throw new Error("map context is null, please check the provider");
532
532
  return e;
533
- }, _r = (e) => {
533
+ }, Mr = (e) => {
534
534
  const n = Se(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = D(
535
535
  new Xn({
536
536
  view: new Zn({
@@ -540,9 +540,9 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
540
540
  })
541
541
  );
542
542
  I(() => {
543
- r.getView().setCenter(e.center ?? Lr(e.projection));
543
+ r.getView().setCenter(e.center ?? Sr(e.projection));
544
544
  }, [r, e.center, e.projection]), I(() => {
545
- r.getView().setZoom(e.zoom ?? br);
545
+ r.getView().setZoom(e.zoom ?? Lr);
546
546
  }, [r, e.zoom, e.projection]);
547
547
  const c = (u, m) => {
548
548
  m.getControls().forEach((v) => {
@@ -554,47 +554,47 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
554
554
  }, [r, t]), I(() => {
555
555
  i !== void 0 && i ? (c(Je, r), r.addControl(
556
556
  new Je({
557
- coordinateFormat: Sr(o ?? ge.WGS84),
557
+ coordinateFormat: _r(o ?? ge.WGS84),
558
558
  projection: o ?? ge.WGS84,
559
559
  undefinedHTML: "&nbsp;"
560
560
  })
561
561
  )) : c(Je, r);
562
- }, [r, i, o]), /* @__PURE__ */ N(Tr, { value: r, children: [
562
+ }, [r, i, o]), /* @__PURE__ */ N(br, { value: r, children: [
563
563
  /* @__PURE__ */ l("div", { className: "map", ref: n }),
564
564
  e.children
565
565
  ] });
566
- }, cn = Me(null), Mr = cn.Provider, qe = () => {
566
+ }, cn = Me(null), Pr = cn.Provider, qe = () => {
567
567
  const e = Pe(cn);
568
568
  if (e === null)
569
569
  throw new Error("tile layer context is null, please check the provider");
570
570
  return e;
571
- }, Pr = ({ options: e, children: n }) => {
571
+ }, xr = ({ options: e, children: n }) => {
572
572
  const t = ke(), [i] = D(new ti(e));
573
573
  return I(() => (t.addLayer(i), () => {
574
574
  t.removeLayer(i);
575
- }), [t, i]), /* @__PURE__ */ l(Mr, { value: i, children: n });
576
- }, dn = Me(null), xr = dn.Provider, Ir = () => {
575
+ }), [t, i]), /* @__PURE__ */ l(Pr, { value: i, children: n });
576
+ }, dn = Me(null), Ir = dn.Provider, Dr = () => {
577
577
  const e = Pe(dn);
578
578
  if (e === null)
579
579
  throw new Error("vector layer context is null, please check the provider");
580
580
  return e;
581
- }, Dr = ({ children: e }) => {
581
+ }, Or = ({ children: e }) => {
582
582
  const n = ke(), [t] = D(new ni());
583
583
  return I(() => (n.addLayer(t), () => {
584
584
  n.removeLayer(t);
585
- }), [n, t]), /* @__PURE__ */ l(xr, { value: t, children: e });
586
- }, un = Me(null), Or = un.Provider, Ar = () => {
585
+ }), [n, t]), /* @__PURE__ */ l(Ir, { value: t, children: e });
586
+ }, un = Me(null), Ar = un.Provider, kr = () => {
587
587
  const e = Pe(un);
588
588
  if (e === null)
589
589
  throw new Error("vector source context is null, please check the provider");
590
590
  return e;
591
- }, kr = ({ children: e }) => {
592
- const n = Ir(), [t] = D(new ii());
591
+ }, Rr = ({ children: e }) => {
592
+ const n = Dr(), [t] = D(new ii());
593
593
  return I(() => {
594
594
  n.setSource(t);
595
- }, [t, n]), /* @__PURE__ */ l(Or, { value: t, children: e });
596
- }, Rr = ({ geometry: e, fitOptions: n, fit: t, featureStyle: i }) => {
597
- const o = Ar(), r = ke();
595
+ }, [t, n]), /* @__PURE__ */ l(Ar, { value: t, children: e });
596
+ }, Nr = ({ geometry: e, fitOptions: n, fit: t, featureStyle: i }) => {
597
+ const o = kr(), r = ke();
598
598
  return Wt(() => {
599
599
  const u = new Zt().readFeature(e);
600
600
  return t && o.on("addfeature", function() {
@@ -603,12 +603,12 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
603
603
  o.removeFeature(u);
604
604
  };
605
605
  }, [e, o, t]), null;
606
- }, Nr = (e) => {
606
+ }, Br = (e) => {
607
607
  const n = qe();
608
608
  return I(() => {
609
609
  n.setSource(new ri());
610
610
  }, [n]), null;
611
- }, Br = ({ drawType: e, onPolygonSelected: n }) => {
611
+ }, Fr = ({ drawType: e, onPolygonSelected: n }) => {
612
612
  const t = ke();
613
613
  return I(() => {
614
614
  const i = {
@@ -636,18 +636,18 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
636
636
  };
637
637
  }, [n, e, t]), null;
638
638
  };
639
- const Fr = (e) => {
639
+ const Hr = (e) => {
640
640
  const n = (t) => {
641
641
  const i = Yn(t);
642
642
  e.onPolygonSelection(i);
643
643
  };
644
- return /* @__PURE__ */ N(_r, { allowFullScreen: !0, showMousePosition: !0, children: [
645
- /* @__PURE__ */ l(Pr, { children: /* @__PURE__ */ l(Nr, {}) }),
646
- e.selectionPolygon && /* @__PURE__ */ l(Dr, { children: /* @__PURE__ */ l(kr, { children: /* @__PURE__ */ l(Rr, { geometry: e.selectionPolygon }) }) }),
644
+ return /* @__PURE__ */ N(Mr, { allowFullScreen: !0, showMousePosition: !0, children: [
645
+ /* @__PURE__ */ l(xr, { children: /* @__PURE__ */ l(Br, {}) }),
646
+ e.selectionPolygon && /* @__PURE__ */ l(Or, { children: /* @__PURE__ */ l(Rr, { children: /* @__PURE__ */ l(Nr, { geometry: e.selectionPolygon }) }) }),
647
647
  e.children,
648
- e.drawType !== void 0 && /* @__PURE__ */ l(Br, { drawType: e.drawType, onPolygonSelected: n })
648
+ e.drawType !== void 0 && /* @__PURE__ */ l(Fr, { drawType: e.drawType, onPolygonSelected: n })
649
649
  ] });
650
- }, et = 1.5, Hr = 80, Gr = Fe(
650
+ }, et = 1.5, Gr = 80, Vr = Fe(
651
651
  (e) => Ke({
652
652
  map: {
653
653
  height: "100%",
@@ -662,7 +662,7 @@ const Fr = (e) => {
662
662
  },
663
663
  contentContainer: {
664
664
  marginTop: e.spacing(et),
665
- width: e.spacing(Hr)
665
+ width: e.spacing(Gr)
666
666
  },
667
667
  filtersContainer: {
668
668
  display: "flex",
@@ -672,9 +672,9 @@ const Fr = (e) => {
672
672
  marginLeft: e.spacing(1)
673
673
  }
674
674
  })
675
- ), ia = (e) => {
675
+ ), ra = (e) => {
676
676
  var m;
677
- const [n, t] = D(), [i, o] = D(), r = Gr(), c = (p) => {
677
+ const [n, t] = D(), [i, o] = D(), r = Vr(), c = (p) => {
678
678
  o(p), t(void 0), e.handlePolygonSelected(p);
679
679
  }, u = () => {
680
680
  o(void 0), e.handlePolygonReset();
@@ -683,7 +683,7 @@ const Fr = (e) => {
683
683
  /* @__PURE__ */ N("div", { className: `${r.absolute}`, children: [
684
684
  /* @__PURE__ */ N(ot, { className: r.filtersContainer, children: [
685
685
  /* @__PURE__ */ l(
686
- wr,
686
+ Tr,
687
687
  {
688
688
  onCancelDraw: () => t(void 0),
689
689
  onReset: u,
@@ -695,7 +695,7 @@ const Fr = (e) => {
695
695
  ] }),
696
696
  /* @__PURE__ */ l(ot, { color: "red", className: `${r.contentContainer}`, children: e.children })
697
697
  ] }),
698
- /* @__PURE__ */ l(Fr, { children: e.mapContent, onPolygonSelection: c, drawType: n, selectionPolygon: i })
698
+ /* @__PURE__ */ l(Hr, { children: e.mapContent, onPolygonSelection: c, drawType: n, selectionPolygon: i })
699
699
  ] });
700
700
  }, xt = new di({
701
701
  color: "rgba(255,255,255,0.4)"
@@ -712,12 +712,12 @@ const Fr = (e) => {
712
712
  fill: xt,
713
713
  stroke: It
714
714
  })
715
- ], hn = Me(null), Vr = hn.Provider, zr = () => {
715
+ ], hn = Me(null), zr = hn.Provider, $r = () => {
716
716
  const e = Pe(hn);
717
717
  if (e === null)
718
718
  throw new Error("vector tile layer context is null, please check the provider");
719
719
  return e;
720
- }, ra = ({ children: e, options: n, style: t }) => {
720
+ }, oa = ({ children: e, options: n, style: t }) => {
721
721
  const i = ke(), [o] = D(
722
722
  new ci({
723
723
  ...n,
@@ -728,11 +728,11 @@ const Fr = (e) => {
728
728
  i.removeLayer(o);
729
729
  }), [i, o]), I(() => {
730
730
  o.setStyle(t || Dt);
731
- }, [o, t]), /* @__PURE__ */ l(Vr, { value: o, children: e });
732
- }, tt = 20, $r = 256, Wr = 2, Ur = 2, jr = "REST", oa = (e) => {
733
- const n = ei(e.projection), t = n.getExtent(), i = new Array(tt), o = new Array(tt), r = gi(t) / $r, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : Ur, u = e.requestEncoding !== void 0 ? e.requestEncoding : jr;
731
+ }, [o, t]), /* @__PURE__ */ l(zr, { value: o, children: e });
732
+ }, tt = 20, Wr = 256, Ur = 2, jr = 2, Kr = "REST", sa = (e) => {
733
+ const n = ei(e.projection), t = n.getExtent(), i = new Array(tt), o = new Array(tt), r = gi(t) / Wr, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : jr, u = e.requestEncoding !== void 0 ? e.requestEncoding : Kr;
734
734
  for (let p = 0; p < tt; ++p)
735
- i[p] = r / Math.pow(Wr, p) / c, o[p] = p.toString();
735
+ i[p] = r / Math.pow(Ur, p) / c, o[p] = p.toString();
736
736
  return {
737
737
  attributions: e.attributions,
738
738
  url: e.url,
@@ -749,12 +749,12 @@ const Fr = (e) => {
749
749
  requestEncoding: u,
750
750
  wrapX: e.wrapX !== void 0 ? e.wrapX : !0
751
751
  };
752
- }, sa = (e) => {
752
+ }, aa = (e) => {
753
753
  const n = qe(), { options: t } = e;
754
754
  return I(() => {
755
755
  n.setSource(new oi(t));
756
756
  }, [n, t]), null;
757
- }, aa = (e) => {
757
+ }, la = (e) => {
758
758
  const { attributions: n, url: t, params: i, serverType: o, transition: r } = e;
759
759
  return {
760
760
  attributions: n,
@@ -763,39 +763,39 @@ const Fr = (e) => {
763
763
  serverType: o,
764
764
  transition: r
765
765
  };
766
- }, la = (e) => {
766
+ }, ca = (e) => {
767
767
  const n = qe(), { options: t } = e;
768
768
  return I(() => {
769
769
  n.setSource(new yi(t));
770
770
  }, [n, t]), null;
771
- }, ca = (e) => {
771
+ }, da = (e) => {
772
772
  const { attributions: n, url: t } = e;
773
773
  return {
774
774
  attributions: n,
775
775
  url: t
776
776
  };
777
- }, da = (e) => {
777
+ }, ua = (e) => {
778
778
  const n = qe(), { options: t } = e;
779
779
  return I(() => {
780
780
  n.setSource(new vi(t));
781
781
  }, [n, t]), null;
782
- }, Kr = Me(null), ua = () => {
783
- const e = Pe(Kr);
782
+ }, qr = Me(null), ha = () => {
783
+ const e = Pe(qr);
784
784
  if (e === null)
785
785
  throw new Error("vector tile source context is null, please check the provider");
786
786
  return e;
787
- }, ha = (e) => {
787
+ }, ma = (e) => {
788
788
  const { url: n } = e;
789
789
  return {
790
790
  url: n,
791
791
  format: new si()
792
792
  };
793
- }, ma = ({ children: e, options: n }) => {
794
- const t = zr();
793
+ }, pa = ({ children: e, options: n }) => {
794
+ const t = $r();
795
795
  return I(() => {
796
796
  t.setSource(new Ei(n));
797
797
  }, [n, t]), null;
798
- }, pa = ({ legendItems: e, title: n, isCollapsed: t }) => {
798
+ }, ga = ({ legendItems: e, title: n, isCollapsed: t }) => {
799
799
  const i = ke();
800
800
  return I(() => {
801
801
  const o = new St({
@@ -819,7 +819,7 @@ const Fr = (e) => {
819
819
  };
820
820
  }, [i, e, n, t]), /* @__PURE__ */ l(oe, {});
821
821
  };
822
- function qr(e) {
822
+ function Yr(e) {
823
823
  const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, c = (u) => (m) => {
824
824
  o(m, u);
825
825
  };
@@ -845,18 +845,18 @@ function qr(e) {
845
845
  ))
846
846
  ] }) });
847
847
  }
848
- const Yr = Jt(
848
+ const Xr = Jt(
849
849
  /* @__PURE__ */ $t.createElement("path", {
850
850
  d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
851
851
  }),
852
852
  "KeyboardArrowDown"
853
- ), Xr = Jt(
853
+ ), Zr = Jt(
854
854
  /* @__PURE__ */ $t.createElement("path", {
855
855
  d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
856
856
  }),
857
857
  "KeyboardArrowUp"
858
858
  );
859
- function Zr(e) {
859
+ function Jr(e) {
860
860
  const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: u } = e, [m, p] = D(!1), v = n.length;
861
861
  return /* @__PURE__ */ N(oe, { children: [
862
862
  /* @__PURE__ */ N($e, { hover: !0, selected: t, onClick: () => {
@@ -870,7 +870,7 @@ function Zr(e) {
870
870
  onClick: (w) => {
871
871
  w.stopPropagation(), p(!m);
872
872
  },
873
- children: m ? /* @__PURE__ */ l(Xr, {}) : /* @__PURE__ */ l(Yr, {})
873
+ children: m ? /* @__PURE__ */ l(Zr, {}) : /* @__PURE__ */ l(Xr, {})
874
874
  }
875
875
  ) }),
876
876
  n.map((w) => /* @__PURE__ */ l(
@@ -886,7 +886,7 @@ function Zr(e) {
886
886
  c && /* @__PURE__ */ l($e, { children: /* @__PURE__ */ l(Ae, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: v + 1, children: /* @__PURE__ */ l(In, { in: m, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
887
887
  ] });
888
888
  }
889
- function ga(e) {
889
+ function fa(e) {
890
890
  const [n, t] = D(""), [i, o] = D("asc"), {
891
891
  cellsMetadata: r,
892
892
  items: c,
@@ -904,7 +904,7 @@ function ga(e) {
904
904
  return /* @__PURE__ */ N(Dn, { component: ot, children: [
905
905
  /* @__PURE__ */ N(On, { size: L ? "small" : "medium", children: [
906
906
  /* @__PURE__ */ l(
907
- qr,
907
+ Yr,
908
908
  {
909
909
  headCells: r,
910
910
  onRequestSort: (U, j) => {
@@ -918,7 +918,7 @@ function ga(e) {
918
918
  ),
919
919
  /* @__PURE__ */ N(An, { children: [
920
920
  c.map((U, j) => /* @__PURE__ */ l(
921
- Zr,
921
+ Jr,
922
922
  {
923
923
  item: U,
924
924
  rowIndex: j,
@@ -955,13 +955,13 @@ function ga(e) {
955
955
  )
956
956
  ] });
957
957
  }
958
- const fa = (e) => {
958
+ const ya = (e) => {
959
959
  const { children: n, ...t } = e;
960
960
  return /* @__PURE__ */ l(Ti, { ...t, children: n });
961
- }, ya = (e) => {
961
+ }, va = (e) => {
962
962
  const { children: n, ...t } = e;
963
963
  return /* @__PURE__ */ l(bi, { ...t, children: n });
964
- }, Ot = (e) => e * Math.PI / 180, Ge = (e) => e * (180 / Math.PI), Jr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(Ot(85.362 / 2)) / Math.sin(Ot(85.362 / 2)));
964
+ }, Ot = (e) => e * Math.PI / 180, Ge = (e) => e * (180 / Math.PI), Qr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(Ot(85.362 / 2)) / Math.sin(Ot(85.362 / 2)));
965
965
  const mn = (e, n, t) => {
966
966
  let i;
967
967
  if (e.scene.mode !== Le.SCENE2D)
@@ -971,7 +971,7 @@ const mn = (e, n, t) => {
971
971
  i = e.camera.pickEllipsoid(new Ce(n, t), o);
972
972
  }
973
973
  return He.fromCartesian(i);
974
- }, Qr = (e, n, t) => {
974
+ }, eo = (e, n, t) => {
975
975
  const i = mn(e, n, t);
976
976
  return {
977
977
  type: "Feature",
@@ -992,33 +992,33 @@ const mn = (e, n, t) => {
992
992
  return;
993
993
  }
994
994
  };
995
- class va extends ki {
995
+ class Ea extends ki {
996
996
  }
997
- class Ea extends Ri {
997
+ class Ca extends Ri {
998
998
  }
999
- class Ca extends Ni {
999
+ class wa extends Ni {
1000
1000
  }
1001
- class wa extends Ce {
1001
+ class Ta extends Ce {
1002
1002
  }
1003
- class Ta extends ve {
1003
+ class ba extends ve {
1004
1004
  }
1005
- class eo extends He {
1005
+ class to extends He {
1006
1006
  }
1007
- class ba extends Bi {
1007
+ class La extends Bi {
1008
1008
  }
1009
- class La extends en {
1009
+ class Sa extends en {
1010
1010
  }
1011
- class Sa extends Fi {
1011
+ class _a extends Fi {
1012
1012
  }
1013
- class _a extends Oe {
1013
+ class Ma extends Oe {
1014
1014
  }
1015
- class Ma extends Hi {
1015
+ class Pa extends Hi {
1016
1016
  }
1017
- class Pa extends Gi {
1017
+ class xa extends Gi {
1018
1018
  }
1019
- class xa extends Vi {
1019
+ class Ia extends Vi {
1020
1020
  }
1021
- const Ia = at, Da = tn, to = (e) => {
1021
+ const Da = at, Oa = zi, Aa = tn, no = (e) => {
1022
1022
  const n = se(), t = Se(null), [i, o] = D({ x: 0, y: 0 });
1023
1023
  return I(() => {
1024
1024
  n.screenSpaceEventHandler.setInputAction((r) => {
@@ -1026,18 +1026,18 @@ const Ia = at, Da = tn, to = (e) => {
1026
1026
  const c = { ...r.endPosition };
1027
1027
  c.x = Math.ceil(c.x), c.y = Math.ceil(c.y), o(c);
1028
1028
  }
1029
- }, zi.MOUSE_MOVE);
1029
+ }, $i.MOUSE_MOVE);
1030
1030
  }, [t, n]), I(() => {
1031
1031
  const r = n.scene.globe.ellipsoid;
1032
1032
  if (i) {
1033
1033
  const c = pn(n, i.x, i.y);
1034
1034
  if (c) {
1035
- const u = new eo(c.longitude, c.latitude);
1035
+ const u = new to(c.longitude, c.latitude);
1036
1036
  if (t.current) {
1037
1037
  let m = "";
1038
1038
  switch (e.projection) {
1039
1039
  case ge.WEB_MERCATOR: {
1040
- const v = new $i(r).project(u);
1040
+ const v = new Wi(r).project(u);
1041
1041
  m = `Mercator: ${v.y.toFixed(ht)}m, ${v.x.toFixed(
1042
1042
  ht
1043
1043
  )}m`, t.current.style.width = "220px";
@@ -1088,12 +1088,12 @@ const nt = [
1088
1088
  2e7,
1089
1089
  3e7,
1090
1090
  5e7
1091
- ], no = (e, n, t, i) => {
1091
+ ], io = (e, n, t, i) => {
1092
1092
  const o = Z(i, "METERS_UNIT") ?? "m", r = Z(i, "KILOMETERS_UNIT") ?? "km", c = {
1093
1093
  barWidth: void 0,
1094
1094
  distanceLabel: void 0,
1095
1095
  lastLegendUpdate: n.lastLegendUpdate
1096
- }, u = new Ui(), m = new Date().getTime();
1096
+ }, u = new ji(), m = new Date().getTime();
1097
1097
  if (m < c.lastLegendUpdate + 250)
1098
1098
  return;
1099
1099
  c.lastLegendUpdate = m;
@@ -1111,7 +1111,7 @@ const nt = [
1111
1111
  O >= 1e3 ? z = `${(O / 1e3).toString()} ${r}` : z = `${O.toString()} ${o}`, c.barWidth = O / U | 0, c.distanceLabel = z;
1112
1112
  }
1113
1113
  t(c);
1114
- }, io = (e) => {
1114
+ }, ro = (e) => {
1115
1115
  const n = se(), [t, i] = D({
1116
1116
  barWidth: void 0,
1117
1117
  distanceLabel: void 0,
@@ -1119,8 +1119,8 @@ const nt = [
1119
1119
  });
1120
1120
  I(() => {
1121
1121
  const r = (m) => {
1122
- no(n, t, i, e.locale);
1123
- }, c = new Wi(), u = (m) => {
1122
+ io(n, t, i, e.locale);
1123
+ }, c = new Ui(), u = (m) => {
1124
1124
  n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), c.removeAll());
1125
1125
  };
1126
1126
  return c.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
@@ -1158,7 +1158,7 @@ const At = (e, n) => {
1158
1158
  if (i.getLevelMaximumGeometricError(u) * r / (e * c) < o.maximumScreenSpaceError)
1159
1159
  return u;
1160
1160
  return null;
1161
- }, ro = (e, n) => {
1161
+ }, oo = (e, n) => {
1162
1162
  e = e || 10;
1163
1163
  const t = [];
1164
1164
  let i = 1e5, o = 0;
@@ -1177,8 +1177,8 @@ const At = (e, n) => {
1177
1177
  }
1178
1178
  }
1179
1179
  return t;
1180
- }, oo = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1181
- const t = se(), [i, o] = D(1), r = ro(1, t), c = pe(() => {
1180
+ }, so = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1181
+ const t = se(), [i, o] = D(1), r = oo(1, t), c = pe(() => {
1182
1182
  const v = t.camera, L = 0.5;
1183
1183
  let w = 0;
1184
1184
  switch (t.scene.mode) {
@@ -1224,8 +1224,8 @@ const At = (e, n) => {
1224
1224
  /* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: Z(e, "ZOOM_LABEL") ?? "zoom" })
1225
1225
  ] });
1226
1226
  };
1227
- const so = -1, ao = (e) => {
1228
- const n = se(), [t, i] = D(), { sceneModes: o } = e, r = (c) => o.findIndex((u) => u === c) > so;
1227
+ const ao = -1, lo = (e) => {
1228
+ const n = se(), [t, i] = D(), { sceneModes: o } = e, r = (c) => o.findIndex((u) => u === c) > ao;
1229
1229
  return I(() => {
1230
1230
  i(n.scene.mode);
1231
1231
  }, []), /* @__PURE__ */ N(oe, { children: [
@@ -1258,7 +1258,7 @@ const so = -1, ao = (e) => {
1258
1258
  )
1259
1259
  ] });
1260
1260
  };
1261
- const lo = Fe(
1261
+ const co = Fe(
1262
1262
  (e) => Ke({
1263
1263
  mapContainer: {
1264
1264
  width: "60px",
@@ -1266,8 +1266,8 @@ const lo = Fe(
1266
1266
  border: `${e.palette.background.paper} 2px solid`
1267
1267
  }
1268
1268
  })
1269
- ), co = (e) => {
1270
- const n = se(), { baseMaps: t } = e, [i, o] = D(" "), [r, c] = D(), u = lo();
1269
+ ), uo = (e) => {
1270
+ const n = se(), { baseMaps: t } = e, [i, o] = D(" "), [r, c] = D(), u = co();
1271
1271
  I(() => {
1272
1272
  const p = t == null ? void 0 : t.maps.find((v) => v.isCurrent);
1273
1273
  p && (c(p), o(p.title !== void 0 ? p.title : " "));
@@ -1303,7 +1303,7 @@ const lo = Fe(
1303
1303
  ) }, p.id)) })
1304
1304
  ] });
1305
1305
  };
1306
- const it = "ic_settings_24px", uo = (e) => {
1306
+ const it = "ic_settings_24px", ho = (e) => {
1307
1307
  const [n, t] = D(!1), { sceneModes: i, baseMaps: o, locale: r } = e, c = Se(null), u = Z(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", m = Z(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", p = Z(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1308
1308
  return I(() => {
1309
1309
  const v = (L) => {
@@ -1335,10 +1335,10 @@ const it = "ic_settings_24px", uo = (e) => {
1335
1335
  /* @__PURE__ */ l(Hn, { children: u }),
1336
1336
  /* @__PURE__ */ N(Gn, { children: [
1337
1337
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: m }),
1338
- /* @__PURE__ */ l(de, { className: "mapScenesContainer", children: /* @__PURE__ */ l(ao, { sceneModes: i }) }),
1338
+ /* @__PURE__ */ l(de, { className: "mapScenesContainer", children: /* @__PURE__ */ l(lo, { sceneModes: i }) }),
1339
1339
  /* @__PURE__ */ l(de, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(oe, { children: [
1340
1340
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: p }),
1341
- /* @__PURE__ */ l(co, { baseMaps: o })
1341
+ /* @__PURE__ */ l(uo, { baseMaps: o })
1342
1342
  ] }) })
1343
1343
  ] })
1344
1344
  ]
@@ -1346,7 +1346,7 @@ const it = "ic_settings_24px", uo = (e) => {
1346
1346
  ) })
1347
1347
  ] });
1348
1348
  };
1349
- const ho = () => {
1349
+ const mo = () => {
1350
1350
  const e = se();
1351
1351
  return /* @__PURE__ */ l("div", { className: "zoom-buttons-container", children: [
1352
1352
  { onClick: () => e.camera.zoomIn(), iconPath: "M48 20h-18v-18h-10v18h-18v10h18v18h10v-18h18z" },
@@ -1372,10 +1372,10 @@ const ho = () => {
1372
1372
  }
1373
1373
  )) });
1374
1374
  };
1375
- const mo = /* @__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__ */ N("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1375
+ const po = /* @__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__ */ N("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1376
1376
  /* @__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" }),
1377
1377
  /* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
1378
- ] }) }), po = ({ onClick: e }) => /* @__PURE__ */ l(de, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(_e, { icon: mo, className: "mapLegendIcon" }) }), go = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1378
+ ] }) }), go = ({ onClick: e }) => /* @__PURE__ */ l(de, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(_e, { icon: po, className: "mapLegendIcon" }) }), fo = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1379
1379
  const r = pe(() => {
1380
1380
  window.open(e, "_blank");
1381
1381
  }, [e]);
@@ -1394,10 +1394,10 @@ const mo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1394
1394
  /* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
1395
1395
  /* @__PURE__ */ l(de, { className: "legendActionsContainer", children: u() })
1396
1396
  ] });
1397
- }, fo = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1398
- const o = pe(() => /* @__PURE__ */ l(de, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = pe(() => e.length ? e.map((c, u) => /* @__PURE__ */ l(go, { legend: c, docText: n, imgText: t }, `${c.layer}_${u}`)) : o(), [e]);
1397
+ }, yo = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1398
+ const o = pe(() => /* @__PURE__ */ l(de, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = pe(() => e.length ? e.map((c, u) => /* @__PURE__ */ l(fo, { legend: c, docText: n, imgText: t }, `${c.layer}_${u}`)) : o(), [e]);
1399
1399
  return /* @__PURE__ */ l(de, { className: "mapLegendsList", children: r() });
1400
- }, yo = ({
1400
+ }, vo = ({
1401
1401
  isOpen: e,
1402
1402
  toggleSidebar: n,
1403
1403
  title: t = "Map Legends",
@@ -1408,7 +1408,7 @@ const mo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1408
1408
  /* @__PURE__ */ l(zn, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l($n, { className: "sidebarTitle", children: t }) }),
1409
1409
  /* @__PURE__ */ N(Wn, { className: "sidebarContent", children: [
1410
1410
  /* @__PURE__ */ l(_e, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1411
- /* @__PURE__ */ l(fo, { noLegendsText: i, legends: r, actionsTexts: o })
1411
+ /* @__PURE__ */ l(yo, { noLegendsText: i, legends: r, actionsTexts: o })
1412
1412
  ] })
1413
1413
  ] }) : null, me = document.createElement("canvas"), ie = me.getContext("2d"), kt = (e) => {
1414
1414
  const i = (e == null ? void 0 : e.data) ?? [];
@@ -1416,7 +1416,7 @@ const mo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1416
1416
  if (i[o] < 255)
1417
1417
  return !0;
1418
1418
  return !1;
1419
- }, vo = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1419
+ }, Eo = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1420
1420
  try {
1421
1421
  ie == null || ie.clearRect(0, 0, me.width, me.height);
1422
1422
  let o;
@@ -1452,7 +1452,7 @@ function ft(e, n, t, i, o) {
1452
1452
  }
1453
1453
  /* eslint-enable */
1454
1454
  )) == null ? void 0 : u.meta, c = Z(r, je) === !0;
1455
- this.tileTransparencyCheckedCounter < Ye && !c && vo(o == null ? void 0 : o.url, this).then((m) => {
1455
+ this.tileTransparencyCheckedCounter < Ye && !c && Eo(o == null ? void 0 : o.url, this).then((m) => {
1456
1456
  var p;
1457
1457
  (p = this.mapViewer.layersManager) == null || p.addMetaToLayer(
1458
1458
  { [je]: m },
@@ -1504,8 +1504,8 @@ class yn extends gt {
1504
1504
  return ft.call(this, super.requestImage.bind(this), t, i, o, r);
1505
1505
  }
1506
1506
  }
1507
- const Eo = 1, Co = -1, Rt = "TRANSPARENT_BASE_LAYER";
1508
- class wo {
1507
+ const Co = 1, wo = -1, Rt = "TRANSPARENT_BASE_LAYER";
1508
+ class To {
1509
1509
  constructor(n, t, i, o) {
1510
1510
  X(this, "mapViewer");
1511
1511
  X(this, "legendsList");
@@ -1513,7 +1513,7 @@ class wo {
1513
1513
  X(this, "layers");
1514
1514
  X(this, "legendsExtractor");
1515
1515
  X(this, "layerManagerFootprintMetaFieldPath");
1516
- this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new ji(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
1516
+ this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new Ki(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
1517
1517
  const c = Object.keys(r);
1518
1518
  c.length === 1 && c[0] === je && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
1519
1519
  }), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
@@ -1628,10 +1628,10 @@ class wo {
1628
1628
  }
1629
1629
  findLayerByPOI(n, t, i = !0) {
1630
1630
  if (this.layerManagerFootprintMetaFieldPath) {
1631
- const o = Qr(this.mapViewer, n, t);
1631
+ const o = eo(this.mapViewer, n, t);
1632
1632
  return this.layers.filter((u) => !Z(u.meta, "parentBasetMapId")).filter((u) => {
1633
1633
  const m = Z(u.meta, this.layerManagerFootprintMetaFieldPath);
1634
- return m !== void 0 ? nr(o.geometry, {
1634
+ return m !== void 0 ? ir(o.geometry, {
1635
1635
  type: "Feature",
1636
1636
  properties: {},
1637
1637
  geometry: m
@@ -1645,7 +1645,7 @@ class wo {
1645
1645
  }
1646
1646
  addTransparentImageryProvider() {
1647
1647
  const n = this.mapViewer.imageryLayers.addImageryProvider(
1648
- new Ki({
1648
+ new qi({
1649
1649
  url: "./assets/img/transparent-tile.png",
1650
1650
  /* eslint-disable @typescript-eslint/no-magic-numbers */
1651
1651
  rectangle: new Oe(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
@@ -1669,7 +1669,7 @@ class wo {
1669
1669
  return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
1670
1670
  }
1671
1671
  updateLayersOrder(n, t, i) {
1672
- const o = t > i ? Eo : Co, r = t < i ? t : i, c = t < i ? i : t;
1672
+ const o = t > i ? Co : wo, r = t < i ? t : i, c = t < i ? i : t;
1673
1673
  this.layers.forEach((u) => {
1674
1674
  var p;
1675
1675
  if (!Z(u.meta, "parentBasetMapId")) {
@@ -1735,11 +1735,11 @@ class wo {
1735
1735
  }
1736
1736
  }
1737
1737
  }
1738
- const To = (e) => {
1738
+ const bo = (e) => {
1739
1739
  const n = se(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
1740
1740
  return I(() => {
1741
1741
  if (typeof Z(n, "cesiumNavigation") > "u") {
1742
- n.extend(ir, {
1742
+ n.extend(rr, {
1743
1743
  enableCompass: t,
1744
1744
  enableZoomControls: i,
1745
1745
  enableDistanceLegend: !1
@@ -1748,8 +1748,8 @@ const To = (e) => {
1748
1748
  c && r.DIRECTION && c.classList.add(r.DIRECTION);
1749
1749
  }
1750
1750
  }, [n, t, i, r.DIRECTION, o]), null;
1751
- }, Nt = 212, Bt = 260, bo = 0;
1752
- class Oa extends qi {
1751
+ }, Nt = 212, Bt = 260, Lo = 0;
1752
+ class ka extends Yi {
1753
1753
  constructor(t, i) {
1754
1754
  super(t, i);
1755
1755
  X(this, "layersManager");
@@ -1763,12 +1763,12 @@ class Oa extends qi {
1763
1763
  this.useOptimizedTileRequests = t;
1764
1764
  }
1765
1765
  }
1766
- const vn = Me(null), Lo = vn.Provider, se = () => {
1766
+ const vn = Me(null), So = vn.Provider, se = () => {
1767
1767
  const e = Pe(vn);
1768
1768
  if (e === null)
1769
1769
  throw new Error("map context is null, please check the provider");
1770
1770
  return e;
1771
- }, Aa = (e) => {
1771
+ }, Ra = (e) => {
1772
1772
  var V, Q, ne, ye, ue, ae, ce, Re;
1773
1773
  const n = Se(null), [t, i] = D(), [o, r] = D(), [c, u] = D(), [m, p] = D(), [v, L] = D(), [w, P] = D(), [A, H] = D(), [Y, G] = D(!1), [U, j] = D(), O = Se(), [z, k] = D(), [$, te] = D([]), [s, a] = D(), [E, d] = D(!1), y = Se(), [h, C] = D(void 0), [f, T] = D(!1), [_, S] = D(), [b, M] = D(), x = {
1774
1774
  fullscreenButton: !0,
@@ -1805,7 +1805,7 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
1805
1805
  i((K = n.current) == null ? void 0 : K.cesiumElement);
1806
1806
  }, [n, e.imageryContextMenu]), I(() => {
1807
1807
  var K;
1808
- t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new wo(
1808
+ t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new To(
1809
1809
  t,
1810
1810
  (K = e.legends) == null ? void 0 : K.mapLegendsExtractor,
1811
1811
  () => {
@@ -1910,8 +1910,8 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
1910
1910
  };
1911
1911
  }, [t]), I(() => {
1912
1912
  const K = e.zoom, B = e.center;
1913
- t && Ue(K) && er(B) && t.camera.flyTo({
1914
- destination: ve.fromDegrees(B[0], B[1], Jr(K)),
1913
+ t && Ue(K) && tr(B) && t.camera.flyTo({
1914
+ destination: ve.fromDegrees(B[0], B[1], Qr(K)),
1915
1915
  duration: 0
1916
1916
  });
1917
1917
  }, [e.zoom, e.center, t]), I(() => {
@@ -1921,22 +1921,22 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
1921
1921
  /* @__PURE__ */ N(oe, { children: [
1922
1922
  A && Y && /* @__PURE__ */ l(Un, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
1923
1923
  /* @__PURE__ */ N(de, { className: "sideToolsContainer", children: [
1924
- /* @__PURE__ */ l(uo, { sceneModes: z, baseMaps: s, locale: U }),
1925
- /* @__PURE__ */ l(po, { onClick: () => T(!f) })
1924
+ /* @__PURE__ */ l(ho, { sceneModes: z, baseMaps: s, locale: U }),
1925
+ /* @__PURE__ */ l(go, { onClick: () => T(!f) })
1926
1926
  ] }),
1927
1927
  /* @__PURE__ */ N(de, { className: "toolsContainer", children: [
1928
- c && /* @__PURE__ */ l(to, { projection: o }),
1929
- m && /* @__PURE__ */ l(oo, { locale: U, valueBy: "RENDERED_TILES" }),
1930
- v && /* @__PURE__ */ l(io, { locale: U }),
1931
- w && /* @__PURE__ */ l(To, { locale: U })
1928
+ c && /* @__PURE__ */ l(no, { projection: o }),
1929
+ m && /* @__PURE__ */ l(so, { locale: U, valueBy: "RENDERED_TILES" }),
1930
+ v && /* @__PURE__ */ l(ro, { locale: U }),
1931
+ w && /* @__PURE__ */ l(bo, { locale: U })
1932
1932
  ] }),
1933
- b && /* @__PURE__ */ l(ho, {})
1933
+ b && /* @__PURE__ */ l(mo, {})
1934
1934
  ] }),
1935
1935
  document.querySelector(".cesium-viewer")
1936
1936
  ), [s, U, t, o, z, c, v, f, Y]);
1937
- return /* @__PURE__ */ l(Si, { className: "viewer", full: !0, ref: n, ...x, children: /* @__PURE__ */ N(Lo, { value: t, children: [
1937
+ return /* @__PURE__ */ l(Si, { className: "viewer", full: !0, ref: n, ...x, children: /* @__PURE__ */ N(So, { value: t, children: [
1938
1938
  /* @__PURE__ */ l(
1939
- yo,
1939
+ vo,
1940
1940
  {
1941
1941
  title: (V = e.legends) == null ? void 0 : V.title,
1942
1942
  isOpen: f,
@@ -1964,7 +1964,7 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
1964
1964
  h.y,
1965
1965
  ((ae = e.imageryContextMenuSize) == null ? void 0 : ae.width) ?? Bt,
1966
1966
  ((ce = e.imageryContextMenuSize) == null ? void 0 : ce.height) ?? Nt,
1967
- ((Re = e.imageryContextMenuSize) == null ? void 0 : Re.dynamicHeightIncrement) ?? bo
1967
+ ((Re = e.imageryContextMenuSize) == null ? void 0 : Re.dynamicHeightIncrement) ?? Lo
1968
1968
  ),
1969
1969
  size: e.imageryContextMenuSize ?? {
1970
1970
  height: Nt,
@@ -1976,7 +1976,7 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
1976
1976
  contextEvt: y.current
1977
1977
  })
1978
1978
  ] }) });
1979
- }, So = 0, ka = (e) => {
1979
+ }, _o = 0, Na = (e) => {
1980
1980
  const n = se();
1981
1981
  return /* @__PURE__ */ l(
1982
1982
  _i,
@@ -1986,10 +1986,10 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
1986
1986
  e.isZoomTo === !0 && n.zoomTo(t);
1987
1987
  const i = n.scene;
1988
1988
  i.globe.depthTestAgainstTerrain = !0;
1989
- const o = He.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? So;
1989
+ const o = He.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? _o;
1990
1990
  if (r) {
1991
1991
  const c = ve.fromRadians(o.longitude, o.latitude, o.height), u = ve.fromRadians(o.longitude, o.latitude, o.height + r), m = ve.subtract(u, c, new ve());
1992
- t.modelMatrix = Yi.fromTranslation(m);
1992
+ t.modelMatrix = Xi.fromTranslation(m);
1993
1993
  }
1994
1994
  }
1995
1995
  }
@@ -2011,8 +2011,8 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
2011
2011
  });
2012
2012
  break;
2013
2013
  }
2014
- }, Ra = (e) => {
2015
- const { data: n, ...t } = e, i = tr(n);
2014
+ }, Ba = (e) => {
2015
+ const { data: n, ...t } = e, i = nr(n);
2016
2016
  return i && (typeof i.features < "u" ? i.features.forEach((o) => {
2017
2017
  Vt(o.geometry);
2018
2018
  }) : Vt(i)), /* @__PURE__ */ l(Mi, { data: i, ...t });
@@ -2022,19 +2022,19 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
2022
2022
  var o;
2023
2023
  (o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
2024
2024
  }, [n, i]), /* @__PURE__ */ l(Pi, { ...t });
2025
- }, Na = (e) => {
2025
+ }, Fa = (e) => {
2026
2026
  const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new fn(n, i) : new pt(n);
2027
2027
  return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
2028
- }, Ba = (e) => {
2028
+ }, Ha = (e) => {
2029
2029
  const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new yn(n, i) : new gt(n);
2030
2030
  return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
2031
- }, Fa = (e) => {
2031
+ }, Ga = (e) => {
2032
2032
  const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new gn(n, i) : new mt(n);
2033
2033
  return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
2034
- }, Ha = (e) => {
2034
+ }, Va = (e) => {
2035
2035
  const { options: n, ...t } = e;
2036
- return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: new Xi(n) });
2037
- }, _o = (e) => /* @__PURE__ */ l(xi, { ...e }), Ga = (e) => /* @__PURE__ */ l(Qt, { ...e }), Mo = (e) => /* @__PURE__ */ l(Qt, { ...e }), Po = (e) => /* @__PURE__ */ l(Ii, { ...e }), xo = (e) => /* @__PURE__ */ l(Di, { ...e }), Io = (e) => /* @__PURE__ */ l(Oi, { ...e }), Do = (e) => /* @__PURE__ */ l(Ai, { ...e });
2036
+ return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: new Zi(n) });
2037
+ }, Mo = (e) => /* @__PURE__ */ l(xi, { ...e }), za = (e) => /* @__PURE__ */ l(Qt, { ...e }), Po = (e) => /* @__PURE__ */ l(Qt, { ...e }), xo = (e) => /* @__PURE__ */ l(Ii, { ...e }), Io = (e) => /* @__PURE__ */ l(Di, { ...e }), Do = (e) => /* @__PURE__ */ l(Oi, { ...e }), Oo = (e) => /* @__PURE__ */ l(Ai, { ...e });
2038
2038
  var be = function() {
2039
2039
  var e = g.Ellipsoid.WGS84, n, t = g.Material.fromType(g.Material.ColorType);
2040
2040
  function i(s, a = new g.Color(1, 1, 0, 0.5), E = new g.Color(1, 1, 1, 1)) {
@@ -2942,10 +2942,10 @@ var be = function() {
2942
2942
  }
2943
2943
  return i;
2944
2944
  }();
2945
- const Oo = 2, Ao = (e, n) => {
2945
+ const Ao = 2, ko = (e, n) => {
2946
2946
  switch (e) {
2947
2947
  case le.BOX: {
2948
- if (n.features.length !== Oo)
2948
+ if (n.features.length !== Ao)
2949
2949
  throw new Error(`${e} must have 2 points`);
2950
2950
  const t = _t(n.features, (o) => {
2951
2951
  var r;
@@ -2969,7 +2969,7 @@ const Oo = 2, Ao = (e, n) => {
2969
2969
  default:
2970
2970
  throw new Error(`${e} type geoJSON still not supported`);
2971
2971
  }
2972
- }, ko = (e) => {
2972
+ }, Ro = (e) => {
2973
2973
  const n = e.map((t) => {
2974
2974
  const i = He.fromCartesian(t);
2975
2975
  return [fe.toDegrees(i.longitude), fe.toDegrees(i.latitude)];
@@ -2982,22 +2982,22 @@ const Oo = 2, Ao = (e, n) => {
2982
2982
  coordinates: [n]
2983
2983
  }
2984
2984
  };
2985
- }, Ro = (e) => {
2985
+ }, No = (e) => {
2986
2986
  const n = nn.lineString([
2987
2987
  [fe.toDegrees(e.west), fe.toDegrees(e.south)],
2988
2988
  [fe.toDegrees(e.east), fe.toDegrees(e.north)]
2989
2989
  ]);
2990
2990
  return on(rn(n));
2991
- }, No = (e) => {
2991
+ }, Bo = (e) => {
2992
2992
  const n = nn.lineString([
2993
2993
  [e.west, e.south],
2994
2994
  [e.east, e.north]
2995
2995
  ]);
2996
2996
  return on(rn(n)).geometry.coordinates[0].map((i) => ve.fromRadiansArray(i)[0]);
2997
2997
  };
2998
- class Va extends lt {
2998
+ class $a extends lt {
2999
2999
  }
3000
- const za = (e) => {
3000
+ const Wa = (e) => {
3001
3001
  const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, u = se(), [m, p] = D();
3002
3002
  I(() => {
3003
3003
  p(
@@ -3015,7 +3015,7 @@ const za = (e) => {
3015
3015
  n.handler({
3016
3016
  primitive: w,
3017
3017
  type: le.POLYGON,
3018
- geojson: ko(w)
3018
+ geojson: Ro(w)
3019
3019
  });
3020
3020
  }
3021
3021
  });
@@ -3026,7 +3026,7 @@ const za = (e) => {
3026
3026
  n.handler({
3027
3027
  primitive: w,
3028
3028
  type: le.BOX,
3029
- geojson: Ro(w)
3029
+ geojson: No(w)
3030
3030
  });
3031
3031
  }
3032
3032
  });
@@ -3040,20 +3040,20 @@ const za = (e) => {
3040
3040
  }, [n, m]);
3041
3041
  const v = (L) => {
3042
3042
  try {
3043
- let w = L.coordinates !== void 0 ? L.coordinates : Ao(L.type, L.geojson);
3043
+ let w = L.coordinates !== void 0 ? L.coordinates : ko(L.type, L.geojson);
3044
3044
  if (r !== !0)
3045
3045
  switch (L.type) {
3046
3046
  case le.BOX:
3047
- return /* @__PURE__ */ l(xo, { coordinates: w, material: o ?? t });
3047
+ return /* @__PURE__ */ l(Io, { coordinates: w, material: o ?? t });
3048
3048
  case le.POLYGON:
3049
- return /* @__PURE__ */ l(Po, { hierarchy: new Zi(w), material: o ?? t });
3049
+ return /* @__PURE__ */ l(xo, { hierarchy: new Ji(w), material: o ?? t });
3050
3050
  default:
3051
3051
  return /* @__PURE__ */ l(oe, {});
3052
3052
  }
3053
3053
  else {
3054
3054
  switch (L.type) {
3055
3055
  case le.BOX:
3056
- w = No(w);
3056
+ w = Bo(w);
3057
3057
  break;
3058
3058
  case le.POLYGON:
3059
3059
  w = [...w, w[0]];
@@ -3061,14 +3061,14 @@ const za = (e) => {
3061
3061
  default:
3062
3062
  return /* @__PURE__ */ l(oe, {});
3063
3063
  }
3064
- return /* @__PURE__ */ l(Do, { clampToGround: !0, positions: w, width: c ?? 1, material: o ?? t });
3064
+ return /* @__PURE__ */ l(Oo, { clampToGround: !0, positions: w, width: c ?? 1, material: o ?? t });
3065
3065
  }
3066
3066
  } catch (w) {
3067
3067
  return console.error(w), /* @__PURE__ */ l(oe, {});
3068
3068
  }
3069
3069
  };
3070
- return /* @__PURE__ */ l(Io, { ...e, children: e.drawings.map((L, w) => /* @__PURE__ */ N(_o, { name: L.name, children: [
3071
- /* @__PURE__ */ N(Mo, { children: [
3070
+ return /* @__PURE__ */ l(Do, { ...e, children: e.drawings.map((L, w) => /* @__PURE__ */ N(Mo, { name: L.name, children: [
3071
+ /* @__PURE__ */ N(Po, { children: [
3072
3072
  /* @__PURE__ */ N("h1", { children: [
3073
3073
  "Drawed Entity ",
3074
3074
  L.name
@@ -3077,12 +3077,12 @@ const za = (e) => {
3077
3077
  ] }),
3078
3078
  v(L)
3079
3079
  ] }, L.id)) });
3080
- }, $a = (e) => {
3080
+ }, Ua = (e) => {
3081
3081
  const n = se();
3082
3082
  return I(() => {
3083
- n.extend(Ji);
3083
+ n.extend(Qi);
3084
3084
  }, [n]), /* @__PURE__ */ l(oe, {});
3085
- }, Bo = -25, zt = 2, Wa = (e) => {
3085
+ }, Fo = -25, zt = 2, ja = (e) => {
3086
3086
  const n = se(), t = (r, c = ",") => r.slice(r.indexOf(`
3087
3087
  `) + 1).split(`
3088
3088
  `).map((p) => {
@@ -3099,7 +3099,7 @@ const za = (e) => {
3099
3099
  var w;
3100
3100
  const p = (w = m.target) == null ? void 0 : w.result, v = t(p), L = en.WGS84;
3101
3101
  console.log(`Loaded CSV content:
3102
- `, p), Qi(
3102
+ `, p), er(
3103
3103
  n.terrainProvider,
3104
3104
  v.map((P) => P.cartographic)
3105
3105
  ).then(
@@ -3121,7 +3121,7 @@ const za = (e) => {
3121
3121
  outlineWidth: 4,
3122
3122
  outlineColor: lt.BLACK,
3123
3123
  verticalOrigin: at.BOTTOM,
3124
- pixelOffset: new Ce(0, Bo)
3124
+ pixelOffset: new Ce(0, Fo)
3125
3125
  },
3126
3126
  description: `
3127
3127
  Long: ${v[H].cartesian.x} </br>
@@ -3162,7 +3162,7 @@ const za = (e) => {
3162
3162
  }
3163
3163
  ) });
3164
3164
  };
3165
- const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo = (e) => {
3165
+ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko = (e) => {
3166
3166
  const [n, t] = D(e.defaultValue ?? ""), [i, o] = D(!1), [r, c] = D({
3167
3167
  helperVisible: !1,
3168
3168
  left: 0,
@@ -3238,7 +3238,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3238
3238
  triggerMatch: f.match(h),
3239
3239
  triggerLength: f.length
3240
3240
  })), v = (y, h, C) => !y || !y.length || h.substr(C, y.length) === y, L = (y) => {
3241
- const { onChange: h, options: C, spaceRemovers: f, spacer: T, value: _ } = e, S = n, b = y.target.value, M = or(w(y.target)).end;
3241
+ const { onChange: h, options: C, spaceRemovers: f, spacer: T, value: _ } = e, S = n, b = y.target.value, M = sr(w(y.target)).end;
3242
3242
  if (b.length || G({
3243
3243
  ...r,
3244
3244
  helperVisible: !1
@@ -3278,26 +3278,26 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3278
3278
  const { helperVisible: h, options: C, selection: f } = r, { onKeyDown: T, passThroughEnter: _ } = e;
3279
3279
  if (h)
3280
3280
  switch (y.keyCode) {
3281
- case zo:
3281
+ case $o:
3282
3282
  y.preventDefault(), j();
3283
3283
  break;
3284
- case Fo:
3284
+ case Ho:
3285
3285
  y.preventDefault(), G({
3286
3286
  ...r,
3287
3287
  selection: (C.length + f - 1) % C.length
3288
3288
  });
3289
3289
  break;
3290
- case Ho:
3290
+ case Go:
3291
3291
  y.preventDefault(), G({
3292
3292
  ...r,
3293
3293
  selection: (f + 1) % C.length
3294
3294
  });
3295
3295
  break;
3296
+ case zo:
3296
3297
  case Vo:
3297
- case Go:
3298
3298
  _ || y.preventDefault(), H(f);
3299
3299
  break;
3300
- case $o:
3300
+ case Wo:
3301
3301
  H(f);
3302
3302
  break;
3303
3303
  default:
@@ -3320,7 +3320,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3320
3320
  caret: y
3321
3321
  });
3322
3322
  const h = w(u.current);
3323
- sr(h, y);
3323
+ ar(h, y);
3324
3324
  }, G = (y) => {
3325
3325
  setTimeout(() => {
3326
3326
  c({
@@ -3336,9 +3336,9 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3336
3336
  return;
3337
3337
  const _ = f.getBoundingClientRect(), S = m(y, h, C);
3338
3338
  if (Object.keys(S).length > 0 && T !== null) {
3339
- const b = rr(T, h), M = T.getBoundingClientRect(), { minChars: x, onRequestOptions: W, requestOnlyIfNoOptions: q, mode: R } = e;
3339
+ const b = or(T, h), M = T.getBoundingClientRect(), { minChars: x, onRequestOptions: W, requestOnlyIfNoOptions: q, mode: R } = e;
3340
3340
  let V, Q, ne, ye = "unset";
3341
- R === "assist" ? (V = f === T ? b.top + T.offsetTop : b.top + _.top, Q = Math.min(b.left + T.offsetLeft - Wo, T.offsetLeft + M.width - Uo)) : (V = _.top + f.offsetHeight, Q = f.offsetLeft, ne = f.offsetLeft - f.offsetWidth, ye = `${_.width}px`), S.matchLength >= x && (S.options.length > 1 || S.options.length === 1 && S.options[0].length !== S.matchLength) ? G({
3341
+ R === "assist" ? (V = f === T ? b.top + T.offsetTop : b.top + _.top, Q = Math.min(b.left + T.offsetLeft - Uo, T.offsetLeft + M.width - jo)) : (V = _.top + f.offsetHeight, Q = f.offsetLeft, ne = f.offsetLeft - f.offsetWidth, ye = `${_.width}px`), S.matchLength >= x && (S.options.length > 1 || S.options.length === 1 && S.options[0].length !== S.matchLength) ? G({
3342
3342
  ...r,
3343
3343
  value: y,
3344
3344
  helperVisible: !0,
@@ -3411,7 +3411,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3411
3411
  }),
3412
3412
  O()
3413
3413
  ] });
3414
- }, Ko = {
3414
+ }, qo = {
3415
3415
  Component: /* @__PURE__ */ l("textarea", {}),
3416
3416
  ComponentProps: {},
3417
3417
  defaultValue: void 0,
@@ -3442,9 +3442,9 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3442
3442
  passThroughEnter: !1,
3443
3443
  mode: "assist",
3444
3444
  direction: "ltr"
3445
- }, Ua = (e) => {
3445
+ }, Ka = (e) => {
3446
3446
  let n = {
3447
- ...Ko,
3447
+ ...qo,
3448
3448
  ...e
3449
3449
  };
3450
3450
  return e.mode === "autocomplete" && (n = {
@@ -3452,7 +3452,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3452
3452
  trigger: "",
3453
3453
  regex: ".",
3454
3454
  spacer: ""
3455
- }), /* @__PURE__ */ l(jo, { ...n });
3455
+ }), /* @__PURE__ */ l(Ko, { ...n });
3456
3456
  }, yt = {
3457
3457
  formatFileModDate: (e, n) => {
3458
3458
  const t = sn.getModDate(n);
@@ -3464,16 +3464,16 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3464
3464
  formatFileSize: (e, n) => {
3465
3465
  if (!n || typeof n.size != "number")
3466
3466
  return null;
3467
- const t = n.size, i = dr(t, {
3467
+ const t = n.size, i = ur(t, {
3468
3468
  bits: !1,
3469
3469
  output: "object"
3470
3470
  });
3471
3471
  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()}`;
3472
3472
  }
3473
- }, qo = {
3473
+ }, Yo = {
3474
3474
  locale: he.EN,
3475
3475
  formatters: { ...yt }
3476
- }, Yo = {
3476
+ }, Xo = {
3477
3477
  locale: he.RU,
3478
3478
  formatters: { ...yt },
3479
3479
  messages: {
@@ -3513,7 +3513,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3513
3513
  [`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
3514
3514
  [`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
3515
3515
  }
3516
- }, Xo = {
3516
+ }, Zo = {
3517
3517
  locale: he.HE,
3518
3518
  formatters: { ...yt },
3519
3519
  messages: {
@@ -3552,24 +3552,24 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
3552
3552
  [`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
3553
3553
  [`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
3554
3554
  }
3555
- }, Zo = {
3556
- [he.EN]: qo,
3557
- [he.RU]: Yo,
3558
- [he.HE]: Xo
3555
+ }, Jo = {
3556
+ [he.EN]: Yo,
3557
+ [he.RU]: Xo,
3558
+ [he.HE]: Zo
3559
3559
  };
3560
- class ja extends sn {
3560
+ class qa extends sn {
3561
3561
  }
3562
- const Ka = F, Jo = {
3562
+ const Ya = F, Qo = {
3563
3563
  listView: F.EnableListView.id,
3564
3564
  gridView: F.EnableGridView.id
3565
3565
  };
3566
- ar({ iconComponent: cr });
3567
- const qa = Ee.memo(
3566
+ lr({ iconComponent: dr });
3567
+ const Xa = Ee.memo(
3568
3568
  Ee.forwardRef(
3569
3569
  ({
3570
3570
  theme: e,
3571
3571
  styles: n = { height: "100%", minWidth: "600px" },
3572
- defaultView: t = Jo.listView,
3572
+ defaultView: t = Qo.listView,
3573
3573
  readOnlyMode: i = !1,
3574
3574
  locale: o,
3575
3575
  files: r,
@@ -3597,7 +3597,7 @@ const qa = Ee.memo(
3597
3597
  return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, te[s] = a, te;
3598
3598
  }, {}) : {}, [e]), [P, A] = D(!1), [H, Y] = D(), [G, U] = D(!1), [j, O] = D(), [z, k] = D();
3599
3599
  return I(() => {
3600
- e && A(!0), Y(t), i ? U(!0) : O([F.CreateFolder, F.DeleteFiles]), o !== void 0 && k(Zo[o]);
3600
+ e && A(!0), Y(t), i ? U(!0) : O([F.CreateFolder, F.DeleteFiles]), o !== void 0 && k(Jo[o]);
3601
3601
  }, [e, t, i, o]), /* @__PURE__ */ l(
3602
3602
  de,
3603
3603
  {
@@ -3606,7 +3606,7 @@ const qa = Ee.memo(
3606
3606
  ...w
3607
3607
  },
3608
3608
  children: /* @__PURE__ */ l(
3609
- lr,
3609
+ cr,
3610
3610
  {
3611
3611
  ref: p,
3612
3612
  files: r ?? [],
@@ -3629,99 +3629,100 @@ const qa = Ee.memo(
3629
3629
  )
3630
3630
  );
3631
3631
  export {
3632
- Ua as Autocomplete,
3632
+ Ka as Autocomplete,
3633
3633
  dt as BboxCorner,
3634
3634
  de as Box,
3635
3635
  ht as COORDINATES_MERCATOR_FRACTION_DIGITS,
3636
3636
  ut as COORDINATES_WGS_FRACTION_DIGITS,
3637
- ka as Cesium3DTileset,
3638
- ba as CesiumBoundingSphere,
3639
- wa as CesiumCartesian2,
3640
- Ta as CesiumCartesian3,
3641
- eo as CesiumCartographic,
3642
- xa as CesiumCesiumTerrainProvider,
3643
- Va as CesiumColor,
3644
- Ca as CesiumConstantPositionProperty,
3645
- Ea as CesiumConstantProperty,
3646
- Io as CesiumCustomDataSource,
3647
- za as CesiumDrawingsDataSource,
3648
- La as CesiumEllipsoid,
3649
- Pa as CesiumEllipsoidTerrainProvider,
3650
- _o as CesiumEntity,
3651
- Ga as CesiumEntityDescription,
3652
- Mo as CesiumEntityStaticDescription,
3653
- Sa as CesiumGeographicTilingScheme,
3654
- Ra as CesiumGeojsonLayer,
3637
+ Na as Cesium3DTileset,
3638
+ La as CesiumBoundingSphere,
3639
+ Ta as CesiumCartesian2,
3640
+ ba as CesiumCartesian3,
3641
+ to as CesiumCartographic,
3642
+ Ia as CesiumCesiumTerrainProvider,
3643
+ $a as CesiumColor,
3644
+ wa as CesiumConstantPositionProperty,
3645
+ Ca as CesiumConstantProperty,
3646
+ Do as CesiumCustomDataSource,
3647
+ Wa as CesiumDrawingsDataSource,
3648
+ Sa as CesiumEllipsoid,
3649
+ xa as CesiumEllipsoidTerrainProvider,
3650
+ Mo as CesiumEntity,
3651
+ za as CesiumEntityDescription,
3652
+ Po as CesiumEntityStaticDescription,
3653
+ _a as CesiumGeographicTilingScheme,
3654
+ Ba as CesiumGeojsonLayer,
3655
+ Oa as CesiumHorizontalOrigin,
3655
3656
  Xe as CesiumImageryLayer,
3656
- Da as CesiumLabelStyle,
3657
- Aa as CesiumMap,
3658
- Qa as CesiumMath,
3659
- Ha as CesiumOSMLayer,
3660
- Po as CesiumPolygonGraphics,
3661
- va as CesiumPolylineDashMaterialProperty,
3662
- _a as CesiumRectangle,
3663
- xo as CesiumRectangleGraphics,
3664
- Ma as CesiumResource,
3657
+ Aa as CesiumLabelStyle,
3658
+ Ra as CesiumMap,
3659
+ tl as CesiumMath,
3660
+ Va as CesiumOSMLayer,
3661
+ xo as CesiumPolygonGraphics,
3662
+ Ea as CesiumPolylineDashMaterialProperty,
3663
+ Ma as CesiumRectangle,
3664
+ Io as CesiumRectangleGraphics,
3665
+ Pa as CesiumResource,
3665
3666
  re as CesiumSceneMode,
3666
- Ia as CesiumVerticalOrigin,
3667
- Oa as CesiumViewer,
3668
- Na as CesiumWMSLayer,
3669
- Ba as CesiumWMTSLayer,
3670
- Fa as CesiumXYZLayer,
3671
- to as CoordinatesTrackerTool,
3672
- fa as CssBaseline,
3673
- ta as DateRangePicker,
3674
- na as DateTimePicker,
3675
- gr as DateTimeRangePicker,
3676
- Qs as DateTimeRangePickerFormControl,
3667
+ Da as CesiumVerticalOrigin,
3668
+ ka as CesiumViewer,
3669
+ Fa as CesiumWMSLayer,
3670
+ Ha as CesiumWMTSLayer,
3671
+ Ga as CesiumXYZLayer,
3672
+ no as CoordinatesTrackerTool,
3673
+ ya as CssBaseline,
3674
+ na as DateRangePicker,
3675
+ ia as DateTimePicker,
3676
+ fr as DateTimeRangePicker,
3677
+ ea as DateTimeRangePickerFormControl,
3677
3678
  be as DrawHelper,
3678
- Br as DrawInteraction,
3679
+ Fr as DrawInteraction,
3679
3680
  le as DrawType,
3680
- ja as FileHelper,
3681
- qa as FilePicker,
3682
- Ka as FilePickerActions,
3683
- Jo as FilePickerViewObj,
3684
- Rr as GeoJSONFeature,
3685
- $a as InspectorTool,
3686
- pa as Legend,
3687
- ma as MVTSource,
3688
- _r as Map,
3689
- ia as MapFilterContainer,
3690
- fr as Popover,
3681
+ qa as FileHelper,
3682
+ Xa as FilePicker,
3683
+ Ya as FilePickerActions,
3684
+ Qo as FilePickerViewObj,
3685
+ Nr as GeoJSONFeature,
3686
+ Ua as InspectorTool,
3687
+ ga as Legend,
3688
+ pa as MVTSource,
3689
+ Mr as Map,
3690
+ ra as MapFilterContainer,
3691
+ yr as Popover,
3691
3692
  ge as Proj,
3692
- io as ScaleTrackerTool,
3693
- ya as ScopedCssBaseline,
3694
- ga as SmartTable,
3693
+ ro as ScaleTrackerTool,
3694
+ va as ScopedCssBaseline,
3695
+ fa as SmartTable,
3695
3696
  he as SupportedLocales,
3696
- Wa as TerrainianHeightTool,
3697
- Pr as TileLayer,
3698
- Nr as TileOsm,
3699
- la as TileWMS,
3700
- sa as TileWMTS,
3701
- da as TileXYZ,
3702
- ea as TimeRangeInput,
3703
- Dr as VectorLayer,
3704
- kr as VectorSource,
3705
- ra as VectorTileLayer,
3706
- oo as ZoomLevelTrackerTool,
3707
- el as cesiumSampleTerrainMostDetailed,
3697
+ ja as TerrainianHeightTool,
3698
+ xr as TileLayer,
3699
+ Br as TileOsm,
3700
+ ca as TileWMS,
3701
+ aa as TileWMTS,
3702
+ ua as TileXYZ,
3703
+ ta as TimeRangeInput,
3704
+ Or as VectorLayer,
3705
+ Rr as VectorSource,
3706
+ oa as VectorTileLayer,
3707
+ so as ZoomLevelTrackerTool,
3708
+ nl as cesiumSampleTerrainMostDetailed,
3708
3709
  yt as defaultFormatters,
3709
- ha as getMVTOptions,
3710
- aa as getWMSOptions,
3711
- oa as getWMTSOptions,
3712
- ca as getXYZOptions,
3710
+ ma as getMVTOptions,
3711
+ la as getWMSOptions,
3712
+ sa as getWMTSOptions,
3713
+ da as getXYZOptions,
3713
3714
  Qe as isDateRange,
3714
- ur as mapMcToMuiTheme,
3715
- ko as polygonToGeoJSON,
3716
- Ro as rectangleToGeoJSON,
3717
- No as rectangleToPositions,
3715
+ hr as mapMcToMuiTheme,
3716
+ Ro as polygonToGeoJSON,
3717
+ No as rectangleToGeoJSON,
3718
+ Bo as rectangleToPositions,
3718
3719
  se as useCesiumMap,
3719
3720
  ke as useMap,
3720
3721
  an as useMappedMuiTheme,
3721
- Za as useMediaQuery,
3722
+ Qa as useMediaQuery,
3722
3723
  qe as useTileLayer,
3723
- Ir as useVectorLayer,
3724
- Ar as useVectorSource,
3725
- zr as useVectorTileLayer,
3726
- ua as useVectorTileSource
3724
+ Dr as useVectorLayer,
3725
+ kr as useVectorSource,
3726
+ $r as useVectorTileLayer,
3727
+ ha as useVectorTileSource
3727
3728
  };