@map-colonies/react-components 4.3.1 → 4.4.1

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.
@@ -1,54 +1,54 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('body[dir=rtl] .drpOpener .mdc-text-field{direction:ltr}body[dir=rtl] .drpContainer .MuiInputLabel-formControl{right:0px;left:unset}body[dir=rtl] .drpContainer .MuiInputBase-input{direction:ltr;text-align:end}.map{height:100%;width:100%}.ol-mouse-position{top:auto!important;right:auto!important;bottom:8px;left:8px;background-color:#fff;opacity:.7;font-size:12px;padding:2px;border-radius:2px}.ol-zoom{top:2.5em;right:.5em;left:unset}.trackerPosition{background-color:var(--mdc-theme-surface);z-index:2000;padding:2px;border-radius:2px;font-size:12px;height:24px;text-align:center;line-height:20px;white-space:nowrap}.scalePosition{background-color:var(--mdc-theme-surface);padding:1px;border-radius:2px;font-size:12px;width:110px}.distance-legend-label{text-align:center}.distance-legend-scale-bar{background:var(--mdc-theme-on-surface);margin:0 auto;display:block;transition:all .5s ease-in-out}.zoomLevel{z-index:2000;background-color:var(--mdc-theme-surface);border-radius:2px;padding:2px;height:24px}.zoomLevelValue{margin:2px;font-size:14px;line-height:10px;text-align:center}.zoomLevelLabel{font-size:8px;line-height:8px}.mapViewIcon{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.mapViewIcon:hover{background:#48b;border-color:#aef}.mapViewCurrent{fill:#aef;border:1px solid #aef;border-radius:4px}.mapSelector{width:260px;list-style:none;padding-left:0;display:flex;flex-wrap:wrap;grid-gap:4px;min-height:140px;margin-block-start:0px;padding-inline-start:0px}.mapContainerSelected{border:blueviolet 2px solid!important;border-radius:2px}.mapContainer:hover{border:tomato 2px solid;border-radius:2px}.mapContainerImg{width:100%;height:100%}.mapLabel{font-size:12px}.mapLabel:before{content:"\\a0"}.mapScenesContainer{display:flex;gap:8px}.settingsIconContainer,.mapLegendToggleContainer{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.settingsIconContainer:hover,.mapLegendToggleContainer:hover{background:#48b;border-color:#aef}.baseMapsContainer{margin-top:12px;min-height:58%}.settingsDialogPortal{transform:translateZ(0);height:calc(100vh - 220px);max-height:460px;width:280px;position:absolute;top:40px;right:80px}.settingsDialogPortal .mdc-dialog__container{align-items:unset}.settingsDialogPortal .mdc-dialog .mdc-dialog__surface{max-height:unset}body[dir=rtl] .settingsDialogPortal{left:80px;right:unset}.sectionLabel{margin-block-end:.5em}.mapLegendSidebarContainer{width:340px;height:100%;position:relative;overflow-y:auto;overflow-x:hidden;font-size:16px}.mapLegendSidebarContainer.mdc-drawer--animate{transform:translate(0)!important;transition:none!important}.mapLegendSidebarContainer.mdc-drawer--dismissible{position:relative}div.MuiPaper-root{transition:none!important}.mapLegendCloseBtn{position:absolute;top:0;right:0;cursor:pointer;width:50px;height:50px;padding:20px;font-size:24px}body[dir=rtl] .mapLegendCloseBtn{right:unset;left:0}.mapLegendToggleContainer{display:flex;align-items:center;justify-content:center}.mapLegendIcon{width:2rem;height:2rem;transform:translate(8%,8%)}.sidebarHeaderContainer{text-align:center;margin-top:40px}.sidebarTitle{font-size:1.5rem;font-weight:700}.mapLegend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 14px}.layerNameContainer{width:90%;display:flex;justify-content:center;align-items:center}.layerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legendImg{width:90%;height:150px;border:1px solid black;border-radius:5px;object-fit:cover;cursor:pointer}.legendActionsContainer{display:flex;flex-direction:row;align-self:center}.legendAction:not(:last-child):after{content:"|";margin:0 4px}.mapLegendsList{display:flex;flex-direction:column;padding:20px 0;width:100%;height:90%}.legendAction{text-decoration:underline;cursor:pointer;font-size:1.1rem;transition:all .1s ease-in-out;width:max-content}.legendAction:hover{filter:brightness(1.2)}.noLegendsContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.noLegendsMsg{text-align:center}.cesium-widget-credits{display:none!important}.cesium-viewer-fullscreenContainer{bottom:8px;right:8px;left:unset}body[dir=rtl] .cesium-viewer-fullscreenContainer{left:8px;right:unset}body[dir=rtl] .cesium-viewer-toolbar{left:5px;right:unset}.cesium-button.cesium-fullscreenButton{border-radius:14%}.toolsContainer{color:var(--mdc-theme-on-surface);display:flex;gap:8px;z-index:2000;position:absolute;bottom:12px;right:40px;opacity:.7}body[dir=rtl] .toolsContainer{left:40px;right:unset}.sideToolsContainer{display:flex;flex-direction:row;gap:8px;z-index:2000;position:absolute;top:12px;right:40px}body[dir=rtl] .sideToolsContainer{left:40px;right:unset}.viewer{display:flex;flex-direction:row}.viewer .mdc-linear-progress__bar-inner{border-top-width:10px}.twipsy{display:block;position:absolute;visibility:visible;max-width:200px;min-width:100px;padding:5px;font-size:11px;z-index:1000;opacity:.8;-khtml-opacity:.8;-moz-opacity:.8;filter:alpha(opacity=80)}.twipsy.left .twipsy-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000}.twipsy.right .twipsy-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000}.twipsy-inner{padding:3px 8px;background-color:#000;color:#fff;text-align:center;max-width:200px;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.twipsy-arrow{position:absolute;width:0;height:0}.toolbar{margin:0;padding:0;background:white}.toolbar>.button{margin:5px;padding:5px;border:1px solid #eee;cursor:pointer}.toolbar>.button:hover{background:#eee}.infoWindow{position:absolute;min-width:100px;max-width:300px}.infoWindow #frame{padding:10px;border:1px solid black;background:white}.infoWindow #close{float:right;margin:5px 2px;font-size:small;color:gray;cursor:pointer}.infoWindow #arrow{position:absolute;bottom:-8px;left:50%;margin-left:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-top:10px solid white}.react-autocomplete-input{background-clip:padding-box;background-color:#fff;bottom:auto;box-shadow:0 6px 12px #0000002d;display:block;font-size:14px;list-style:none;padding:1px;position:absolute;z-index:20000;margin-block-start:unset;margin-block-end:unset}.react-autocomplete-input>li{cursor:pointer;padding:10px;min-width:100px}.react-autocomplete-input>li.active{background-color:#337ab7;color:#fff}body[dir=rtl] .chonky-fileListWrapper [class^=listContainer-]{direction:rtl!important}body[dir=rtl] .chonky-fileEntryClickableWrapper [class^=listFileEntryProperty-],body[dir=rtl] .chonky-navbarContainer{direction:ltr!important}body[dir=rtl] .chonky-chonkyRoot{text-align:right}body[dir=rtl] .chonky-infoText{margin-left:unset;margin-right:12px}body[dir=rtl] .chonky-contextMenuList .MuiListItemText-root,body[dir=rtl] .chonky-dropdownList .MuiListItemText-root{text-align:right}body[dir=rtl] .chonky-icon{margin-right:unset;margin-left:8px}.chonky-chonkyRoot div[class^=folderBackSide]{box-shadow:unset}.chonky-chonkyRoot div[class^=folderBackSide]:after{border-color:var(--fp-theme-background, #fff) var(--fp-theme-background, #fff) transparent transparent}.chonky-chonkyRoot div[class^=listFileEntryIcon-]{color:#d5d5d5}.chonky-chonkyRoot div[class*=previewFile-d]{background-color:#d5d5d5}.chonky-chonkyRoot div[class^=selectionIndicator-]{background:var(--fp-theme-selection-background, #455570)}.chonky-chonkyRoot{background-color:var(--fp-theme-background, #fff)!important}.chonky-contextMenuList{background-color:var(--fp-theme-surface, #fff)!important}button[class*=chonky-activeButton],.chonky-selectionSizeText{color:var(--fp-theme-primary, #24aee9)!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- var tn = Object.defineProperty;
3
- var nn = (e, n, t) => n in e ? tn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
4
- var Z = (e, n, t) => (nn(e, typeof n != "symbol" ? n + "" : n, t), t);
5
- import { jsx as l, jsxs as N, Fragment as ie } from "react/jsx-runtime";
6
- import * as At from "react";
7
- import ve, { useState as D, useEffect as k, useMemo as ze, forwardRef as rn, createContext as Ae, useRef as we, useContext as ke, useCallback as me, useLayoutEffect as on } from "react";
8
- import { isValid as Te, isBefore as sn, format as ht, endOfDay as an, isSameDay as mt } from "date-fns";
9
- import { he as kt, enUS as xt } from "date-fns/locale";
10
- import { MuiPickersUtilsProvider as Ot, KeyboardDateTimePicker as Qe, KeyboardDatePicker as ln } from "@material-ui/pickers";
11
- import Rt from "@date-io/date-fns";
12
- import { createTheme as cn, makeStyles as xe, createStyles as $e } from "@material-ui/core/styles";
13
- import { Box as dn, ThemeProvider as Nt, Popover as un, Paper as et, TableRow as Fe, TableCell as Le, TableSortLabel as hn, IconButton as mn, Collapse as pn, TableContainer as gn, Table as fn, TableBody as yn, Typography as vn, TablePagination as En } from "@material-ui/core";
14
- import { useTheme as Bt, ThemeProvider as Cn, Button as Ie, TextField as He, Tooltip as tt, Menu as wn, MenuItem as Ke, Icon as Pe, Dialog as bn, DialogTitle as Tn, DialogContent as _n, Drawer as Sn, DrawerHeader as Ln, DrawerTitle as Pn, DrawerContent as Mn, LinearProgress as Dn } from "@map-colonies/react-core";
15
- import { default as Vs } from "@material-ui/core/useMediaQuery";
16
- import In, { registerLocale as An } from "react-datepicker";
17
- import kn from "date-fns/locale/he";
18
- import _e from "moment";
19
- import xn from "@turf/rewind";
20
- import { Map as On, View as Rn } from "ol";
2
+ var an = Object.defineProperty;
3
+ var ln = (e, n, t) => n in e ? an(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
4
+ var Z = (e, n, t) => (ln(e, typeof n != "symbol" ? n + "" : n, t), t);
5
+ import { jsx as l, jsxs as N, Fragment as te } from "react/jsx-runtime";
6
+ import * as Ot from "react";
7
+ import ve, { useState as A, useEffect as I, useMemo as $e, forwardRef as cn, createContext as Ie, useRef as be, useContext as xe, useCallback as me, useLayoutEffect as dn } from "react";
8
+ import { isValid as _e, isBefore as un, format as pt, endOfDay as hn, isSameDay as gt } from "date-fns";
9
+ import { he as Rt, enUS as Nt } from "date-fns/locale";
10
+ import { MuiPickersUtilsProvider as Bt, KeyboardDateTimePicker as Qe, KeyboardDatePicker as mn } from "@material-ui/pickers";
11
+ import Ft from "@date-io/date-fns";
12
+ import { createTheme as pn, makeStyles as ke, createStyles as We } from "@material-ui/core/styles";
13
+ import { Box as gn, ThemeProvider as Ht, Popover as fn, Paper as et, TableRow as He, TableCell as Me, TableSortLabel as yn, IconButton as vn, Collapse as En, TableContainer as Cn, Table as wn, TableBody as bn, Typography as Tn, TablePagination as _n } from "@material-ui/core";
14
+ import { useTheme as Gt, ThemeProvider as Ln, Button as Ae, TextField as Ge, Tooltip as tt, Menu as Sn, MenuItem as je, Icon as Pe, Dialog as Mn, DialogTitle as Pn, DialogContent as Dn, Drawer as An, DrawerHeader as In, DrawerTitle as xn, DrawerContent as kn, LinearProgress as On } from "@map-colonies/react-core";
15
+ import { default as js } from "@material-ui/core/useMediaQuery";
16
+ import Rn, { registerLocale as Nn } from "react-datepicker";
17
+ import Bn from "date-fns/locale/he";
18
+ import Le from "moment";
19
+ import Fn from "@turf/rewind";
20
+ import { Map as Hn, View as Gn } from "ol";
21
21
  import "ol/ol.css";
22
- import { format as pt } from "ol/coordinate";
23
- import { defaults as Nn, FullScreen as gt } from "ol/control";
22
+ import { format as ft } from "ol/coordinate";
23
+ import { defaults as Vn, FullScreen as yt } from "ol/control";
24
24
  import qe from "ol/control/MousePosition";
25
- import { transform as Bn } from "ol/proj";
26
- import { Tile as Fn, Vector as Hn } from "ol/layer";
27
- import { Vector as Gn, OSM as Vn } from "ol/source";
28
- import { GeoJSON as Ft } from "ol/format";
29
- import { Draw as zn } from "ol/interaction";
30
- import { createBox as $n } from "ol/interaction/Draw";
31
- import Wn from "@material-ui/core/TableHead";
32
- import { createSvgIcon as Ht } from "@material-ui/core/utils";
33
- import Un from "@material-ui/core/CssBaseline";
34
- import jn from "@material-ui/core/ScopedCssBaseline";
35
- import { createPortal as Kn } from "react-dom";
36
- import { Viewer as qn, Cesium3DTileset as Yn, GeoJsonDataSource as Xn, ImageryLayer as Zn, Entity as Jn, EntityDescription as Gt, PolygonGraphics as Qn, RectangleGraphics as ei, CustomDataSource as ti, PolylineGraphics as ni } from "resium";
25
+ import { transform as zn } from "ol/proj";
26
+ import { Tile as $n, Vector as Wn } from "ol/layer";
27
+ import { Vector as Un, OSM as Kn } from "ol/source";
28
+ import { GeoJSON as Vt } from "ol/format";
29
+ import { Draw as jn } from "ol/interaction";
30
+ import { createBox as qn } from "ol/interaction/Draw";
31
+ import Yn from "@material-ui/core/TableHead";
32
+ import { createSvgIcon as zt } from "@material-ui/core/utils";
33
+ import Xn from "@material-ui/core/CssBaseline";
34
+ import Zn from "@material-ui/core/ScopedCssBaseline";
35
+ import { createPortal as Jn } from "react-dom";
36
+ import { Viewer as Qn, Cesium3DTileset as ei, GeoJsonDataSource as ti, ImageryLayer as ni, Entity as ii, EntityDescription as $t, PolygonGraphics as ri, RectangleGraphics as oi, CustomDataSource as si, PolylineGraphics as ai } from "resium";
37
37
  import * as p from "cesium";
38
- import { ScreenSpaceEventType as ii, Cartesian3 as pe, Math as le, WebMercatorProjection as ri, SceneMode as Ce, Cartesian2 as Me, Cartographic as We, EventHelper as oi, EllipsoidGeodesic as si, UrlTemplateImageryProvider as st, WebMapServiceImageryProvider as at, WebMapTileServiceImageryProvider as lt, Event as ai, SingleTileImageryProvider as li, Rectangle as Se, Viewer as ci, Matrix4 as di, OpenStreetMapImageryProvider as ui, Color as hi, PolygonHierarchy as mi, PolylineDashMaterialProperty as pi, ConstantProperty as gi, ConstantPositionProperty as fi, BoundingSphere as yi, Ellipsoid as vi, GeographicTilingScheme as Ei, Resource as Ci, EllipsoidTerrainProvider as wi, CesiumTerrainProvider as bi, VerticalOrigin as Ti, LabelStyle as _i } from "cesium";
39
- import { Math as $s, sampleTerrainMostDetailed as Ws } from "cesium";
40
- import { get as ee, isNumber as Ge, isEmpty as nt, isArray as Si, find as ft } from "lodash";
41
- import Li from "@turf/boolean-point-in-polygon";
38
+ import { ScreenSpaceEventType as li, Cartesian3 as pe, Math as ce, WebMercatorProjection as ci, SceneMode as we, Cartesian2 as Ee, Cartographic as Oe, EventHelper as di, EllipsoidGeodesic as ui, UrlTemplateImageryProvider as lt, WebMapServiceImageryProvider as ct, WebMapTileServiceImageryProvider as dt, Event as hi, SingleTileImageryProvider as mi, Rectangle as Se, Viewer as pi, Matrix4 as gi, OpenStreetMapImageryProvider as fi, Color as nt, PolygonHierarchy as yi, PolylineDashMaterialProperty as vi, ConstantProperty as Ei, ConstantPositionProperty as Ci, BoundingSphere as wi, Ellipsoid as Wt, GeographicTilingScheme as bi, Resource as Ti, EllipsoidTerrainProvider as _i, CesiumTerrainProvider as Li, VerticalOrigin as it, LabelStyle as Ut, viewerCesiumInspectorMixin as Si, sampleTerrainMostDetailed as Mi } from "cesium";
39
+ import { Math as Ys, sampleTerrainMostDetailed as Xs } from "cesium";
40
+ import { get as ee, isNumber as Ve, isEmpty as rt, isArray as Pi, find as vt } from "lodash";
41
+ import Di from "@turf/boolean-point-in-polygon";
42
42
  import "@map-colonies/react-core/dist/linear-progress/styles";
43
- import * as Vt from "@turf/helpers";
44
- import zt from "@turf/bbox";
45
- import $t from "@turf/bbox-polygon";
46
- import Pi from "textarea-caret";
47
- import Mi, { setCaretPosition as Di } from "get-input-selection";
48
- import { ChonkyActions as H, FileHelper as Wt, setChonkyDefaults as Ii, FullFileBrowser as Ai } from "chonky";
49
- import { ChonkyIconFA as ki } from "chonky-icon-fontawesome";
50
- import xi from "filesize";
51
- var se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(se || {}), ce = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(ce || {}), it = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(it || {});
43
+ import * as Kt from "@turf/helpers";
44
+ import jt from "@turf/bbox";
45
+ import qt from "@turf/bbox-polygon";
46
+ import Ai from "textarea-caret";
47
+ import Ii, { setCaretPosition as xi } from "get-input-selection";
48
+ import { ChonkyActions as G, FileHelper as Yt, setChonkyDefaults as ki, FullFileBrowser as Oi } from "chonky";
49
+ import { ChonkyIconFA as Ri } from "chonky-icon-fontawesome";
50
+ import Ni from "filesize";
51
+ 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 || {}), ot = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(ot || {});
52
52
  const J = {
53
53
  // eslint-disable-next-line @typescript-eslint/naming-convention
54
54
  DATE_PICKER: {
@@ -56,7 +56,7 @@ const J = {
56
56
  local: {
57
57
  setText: "set",
58
58
  placeHolderText: "Enter the Date",
59
- calendarLocale: ce.EN
59
+ calendarLocale: de.EN
60
60
  },
61
61
  disableFuture: !0,
62
62
  showTime: !1,
@@ -70,7 +70,7 @@ const J = {
70
70
  setText: "set",
71
71
  startPlaceHolderText: "Start of time",
72
72
  endPlaceHolderText: "End of time",
73
- calendarLocale: ce.EN
73
+ calendarLocale: de.EN
74
74
  },
75
75
  renderAsButton: !0,
76
76
  offset: 0,
@@ -78,11 +78,11 @@ const J = {
78
78
  }
79
79
  }, ae = (e) => {
80
80
  const { children: n, ...t } = e;
81
- return /* @__PURE__ */ l(dn, { ...t, children: n });
82
- }, Ut = (e) => {
81
+ return /* @__PURE__ */ l(gn, { ...t, children: n });
82
+ }, Xt = (e) => {
83
83
  const n = e.type === "dark";
84
- return ve.useMemo(() => Oi(e, n), [n, e]);
85
- }, Oi = (e, n = !1) => cn({
84
+ return ve.useMemo(() => Bi(e, n), [n, e]);
85
+ }, Bi = (e, n = !1) => pn({
86
86
  palette: {
87
87
  type: n ? "dark" : "light",
88
88
  primary: {
@@ -104,54 +104,54 @@ const J = {
104
104
  }
105
105
  }
106
106
  });
107
- const Ri = 2, Ni = 0.5, Bi = xe(
108
- (e) => $e({
107
+ const Fi = 2, Hi = 0.5, Gi = ke(
108
+ (e) => We({
109
109
  container: {
110
- padding: e.spacing(Ri),
110
+ padding: e.spacing(Fi),
111
111
  alignItems: "center"
112
112
  },
113
113
  setButton: {
114
114
  marginTop: e.spacing(1)
115
115
  },
116
116
  margin: {
117
- marginLeft: e.spacing(Ni)
117
+ marginLeft: e.spacing(Hi)
118
118
  }
119
119
  })
120
- ), Fi = (e) => {
121
- var U, A, $, O;
122
- const n = Bi(), t = Bt(), i = Ut(t), [o, r] = D(null), [d, u] = D(null), [m, E] = D(J.DATE_RANGE_PICKER.dateFormat), w = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, P = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, T = ((U = e.local) == null ? void 0 : U.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, I = ((A = e.local) == null ? void 0 : A.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, G = (($ = e.local) == null ? void 0 : $.setText) ?? J.DATE_RANGE_PICKER.local.setText, K = (((O = e.local) == null ? void 0 : O.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === ce.HE ? kt : xt;
123
- k(() => {
120
+ ), Vi = (e) => {
121
+ var K, x, W, O;
122
+ const n = Gi(), t = Gt(), i = Xt(t), [o, r] = A(null), [d, u] = A(null), [h, E] = A(J.DATE_RANGE_PICKER.dateFormat), C = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, L = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, b = ((K = e.local) == null ? void 0 : K.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((x = e.local) == null ? void 0 : x.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, B = ((W = e.local) == null ? void 0 : W.setText) ?? J.DATE_RANGE_PICKER.local.setText, q = (((O = e.local) == null ? void 0 : O.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === de.HE ? Rt : Nt;
123
+ I(() => {
124
124
  r(e.from ?? null);
125
- }, [e.from]), k(() => {
125
+ }, [e.from]), I(() => {
126
126
  u(e.to ?? null);
127
- }, [e.to]), k(() => {
127
+ }, [e.to]), I(() => {
128
128
  E(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
129
129
  }, [e.dateFormat]);
130
- const F = Boolean(
131
- Te(o) && !d || Te(d) && !o || o && d && Te(o) && Te(d) && sn(o, d)
130
+ const H = Boolean(
131
+ _e(o) && !d || _e(d) && !o || o && d && _e(o) && _e(d) && un(o, d)
132
132
  ), Y = () => {
133
133
  e.onChange({
134
- from: o && Te(o) ? o : void 0,
135
- to: d && Te(d) ? d : void 0
134
+ from: o && _e(o) ? o : void 0,
135
+ to: d && _e(d) ? d : void 0
136
136
  });
137
137
  };
138
- return /* @__PURE__ */ l(Nt, { theme: i, children: /* @__PURE__ */ l(
138
+ return /* @__PURE__ */ l(Ht, { theme: i, children: /* @__PURE__ */ l(
139
139
  ae,
140
140
  {
141
141
  className: `${n.container} drpContainer`,
142
142
  display: "flex",
143
- flexDirection: w,
144
- width: w === "column" ? e.contentWidth : "unset",
145
- children: /* @__PURE__ */ N(Ot, { utils: Rt, locale: K, children: [
143
+ flexDirection: C,
144
+ width: C === "column" ? e.contentWidth : "unset",
145
+ children: /* @__PURE__ */ N(Bt, { utils: Ft, locale: q, children: [
146
146
  /* @__PURE__ */ l(
147
147
  Qe,
148
148
  {
149
149
  variant: "inline",
150
- placeholder: T,
150
+ placeholder: b,
151
151
  onChange: (V) => r(V),
152
152
  value: o,
153
- disableFuture: P,
154
- format: m,
153
+ disableFuture: L,
154
+ format: h,
155
155
  maxDate: e.maxDate,
156
156
  minDate: e.minDate
157
157
  }
@@ -160,71 +160,71 @@ const Ri = 2, Ni = 0.5, Bi = xe(
160
160
  Qe,
161
161
  {
162
162
  variant: "inline",
163
- placeholder: I,
163
+ placeholder: P,
164
164
  className: n.margin,
165
165
  onChange: (V) => u(V),
166
166
  value: d,
167
- disableFuture: P,
168
- format: m,
167
+ disableFuture: L,
168
+ format: h,
169
169
  maxDate: e.maxDate,
170
170
  minDate: e.minDate
171
171
  }
172
172
  ),
173
- /* @__PURE__ */ l(Cn, { options: t, children: /* @__PURE__ */ l(
174
- Ie,
173
+ /* @__PURE__ */ l(Ln, { options: t, children: /* @__PURE__ */ l(
174
+ Ae,
175
175
  {
176
176
  className: `${n.setButton} ${n.margin}`,
177
177
  raised: !0,
178
178
  onClick: Y,
179
- disabled: !F,
180
- children: G
179
+ disabled: !H,
180
+ children: B
181
181
  }
182
182
  ) })
183
183
  ] })
184
184
  }
185
185
  ) });
186
- }, Hi = (e) => {
186
+ }, zi = (e) => {
187
187
  const { children: n, ...t } = e;
188
- return /* @__PURE__ */ l(un, { ...t, children: n });
188
+ return /* @__PURE__ */ l(fn, { ...t, children: n });
189
189
  };
190
- const ts = (e) => {
191
- var A, $;
192
- const [n, t] = D(null), [i, o] = D(null), [r, d] = D(J.DATE_RANGE_PICKER.dateFormat), [u, m] = ve.useState(null), E = (O) => {
193
- m(O.currentTarget);
194
- }, w = (O) => {
195
- O.currentTarget.tagName === "I" ? m(O.currentTarget.previousElementSibling) : m(O.currentTarget);
196
- }, P = () => {
197
- m(null);
198
- }, T = Boolean(u), I = e.controlsLayout ?? "column";
199
- k(() => {
190
+ const os = (e) => {
191
+ var x, W;
192
+ const [n, t] = A(null), [i, o] = A(null), [r, d] = A(J.DATE_RANGE_PICKER.dateFormat), [u, h] = ve.useState(null), E = (O) => {
193
+ h(O.currentTarget);
194
+ }, C = (O) => {
195
+ O.currentTarget.tagName === "I" ? h(O.currentTarget.previousElementSibling) : h(O.currentTarget);
196
+ }, L = () => {
197
+ h(null);
198
+ }, b = Boolean(u), P = e.controlsLayout ?? "column";
199
+ I(() => {
200
200
  t(e.from ?? null);
201
- }, [e.from]), k(() => {
201
+ }, [e.from]), I(() => {
202
202
  o(e.to ?? null);
203
- }, [e.to]), k(() => {
203
+ }, [e.to]), I(() => {
204
204
  d(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
205
205
  }, [e.dateFormat]);
206
- const G = ((A = e.local) == null ? void 0 : A.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, q = (($ = e.local) == null ? void 0 : $.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, K = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, F = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, Y = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, U = ze(() => `${n ? ht(n, r) : G} - ${i ? ht(i, r) : q}`, [n, i, r, G, q]);
207
- return /* @__PURE__ */ N(ie, { children: [
208
- K ? /* @__PURE__ */ l(Ie, { style: { width: e.width }, raised: !0, onClick: E, className: "drpOpener", children: U }) : /* @__PURE__ */ l(
209
- He,
206
+ const B = ((x = e.local) == null ? void 0 : x.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, $ = ((W = e.local) == null ? void 0 : W.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, q = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, H = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, Y = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, K = $e(() => `${n ? pt(n, r) : B} - ${i ? pt(i, r) : $}`, [n, i, r, B, $]);
207
+ return /* @__PURE__ */ N(te, { children: [
208
+ q ? /* @__PURE__ */ l(Ae, { style: { width: e.width }, raised: !0, onClick: E, className: "drpOpener", children: K }) : /* @__PURE__ */ l(
209
+ Ge,
210
210
  {
211
211
  className: "drpOpener",
212
212
  readOnly: !0,
213
213
  style: { width: e.width },
214
- value: U,
215
- onClick: w,
214
+ value: K,
215
+ onClick: C,
216
216
  trailingIcon: {
217
217
  icon: "date_range",
218
218
  tabIndex: 0,
219
- onClick: w
219
+ onClick: C
220
220
  }
221
221
  }
222
222
  ),
223
- /* @__PURE__ */ l(Hi, { open: T, anchorEl: u, onClose: P, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
224
- Fi,
223
+ /* @__PURE__ */ l(zi, { open: b, anchorEl: u, onClose: L, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
224
+ Vi,
225
225
  {
226
- controlsLayout: I,
227
- contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - F,
226
+ controlsLayout: P,
227
+ contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - H,
228
228
  dateFormat: r,
229
229
  disableFuture: Y,
230
230
  minDate: e.minDate,
@@ -233,12 +233,12 @@ const ts = (e) => {
233
233
  from: n ?? void 0,
234
234
  to: i ?? void 0,
235
235
  onChange: ({ from: O, to: V }) => {
236
- t(O ?? null), o(V ?? null), e.onChange({ from: O, to: V }), P();
236
+ t(O ?? null), o(V ?? null), e.onChange({ from: O, to: V }), L();
237
237
  }
238
238
  }
239
239
  ) })
240
240
  ] });
241
- }, Ye = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ns = ({
241
+ }, Ye = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ss = ({
242
242
  endDate: e,
243
243
  startDate: n,
244
244
  setEndDate: t = () => {
@@ -249,49 +249,49 @@ const ts = (e) => {
249
249
  endTimeLabel: r = "",
250
250
  endTimeWrapperClassName: d = "",
251
251
  timeRangeInputsWrapperClassName: u = "",
252
- startTimeInputClassName: m = "",
252
+ startTimeInputClassName: h = "",
253
253
  startTimeLabel: E = "",
254
- startTimeWrapperClassName: w = ""
254
+ startTimeWrapperClassName: C = ""
255
255
  }) => /* @__PURE__ */ N("div", { className: `timeRangeWrapper ${u}`, children: [
256
- /* @__PURE__ */ l("div", { className: `startTimeWrapper ${w}`, children: /* @__PURE__ */ l(
257
- He,
256
+ /* @__PURE__ */ l("div", { className: `startTimeWrapper ${C}`, children: /* @__PURE__ */ l(
257
+ Ge,
258
258
  {
259
259
  label: E,
260
260
  disabled: n === null,
261
- className: `timeRangeInput ${m}`,
261
+ className: `timeRangeInput ${h}`,
262
262
  name: "start-time",
263
263
  type: "time",
264
- value: _e(n).format("HH:mm"),
265
- onChange: (P) => {
266
- const T = _e(n), I = _e(P.currentTarget.value, "HH:mm"), G = T.set({
267
- hours: I.get("hours"),
268
- minutes: I.get("minutes")
264
+ value: Le(n).format("HH:mm"),
265
+ onChange: (L) => {
266
+ const b = Le(n), P = Le(L.currentTarget.value, "HH:mm"), B = b.set({
267
+ hours: P.get("hours"),
268
+ minutes: P.get("minutes")
269
269
  });
270
- i(G.toDate());
270
+ i(B.toDate());
271
271
  }
272
272
  }
273
273
  ) }),
274
274
  /* @__PURE__ */ l("div", { className: `endTimeWrapper ${d}`, children: /* @__PURE__ */ l(
275
- He,
275
+ Ge,
276
276
  {
277
277
  label: r,
278
278
  disabled: e === null,
279
279
  className: `timeRangeInput ${o}`,
280
280
  name: "end-time",
281
281
  type: "time",
282
- value: _e(e).format("HH:mm"),
283
- onChange: (P) => {
284
- const T = _e(e), I = _e(P.currentTarget.value, "HH:mm"), G = T.set({
285
- hours: I.get("hours"),
286
- minutes: I.get("minutes")
282
+ value: Le(e).format("HH:mm"),
283
+ onChange: (L) => {
284
+ const b = Le(e), P = Le(L.currentTarget.value, "HH:mm"), B = b.set({
285
+ hours: P.get("hours"),
286
+ minutes: P.get("minutes")
287
287
  });
288
- t(G.toDate());
288
+ t(B.toDate());
289
289
  }
290
290
  }
291
291
  ) })
292
- ] }), Gi = rn(
292
+ ] }), $i = cn(
293
293
  ({ value: e, onClick: n, onInputClick: t, ...i }, o) => /* @__PURE__ */ l(
294
- He,
294
+ Ge,
295
295
  {
296
296
  ...i,
297
297
  className: "dateRangeCustomInput",
@@ -303,37 +303,37 @@ const ts = (e) => {
303
303
  value: e
304
304
  }
305
305
  )
306
- ), Vi = ({ setStartDate: e = () => {
306
+ ), Wi = ({ setStartDate: e = () => {
307
307
  }, setEndDate: n = () => {
308
308
  }, shortcuts: t, dateRange: i, onShortcut: o }) => {
309
- const [r, d] = D(), u = ze(
310
- () => t.map((m) => m instanceof Function ? m() : m),
309
+ const [r, d] = A(), u = $e(
310
+ () => t.map((h) => h instanceof Function ? h() : h),
311
311
  [t]
312
312
  );
313
- return k(() => {
314
- for (const m of u) {
315
- const E = i.startDate && i.endDate && mt(m.startDate, i.startDate) && mt(m.endDate, i.endDate);
316
- r ? m.id === r && (E || d(void 0)) : E && d(m.id);
313
+ return I(() => {
314
+ for (const h of u) {
315
+ const E = i.startDate && i.endDate && gt(h.startDate, i.startDate) && gt(h.endDate, i.endDate);
316
+ r ? h.id === r && (E || d(void 0)) : E && d(h.id);
317
317
  }
318
- }, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((m, E) => {
319
- const w = () => {
320
- e(m.startDate), n(m.endDate);
318
+ }, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((h, E) => {
319
+ const C = () => {
320
+ e(h.startDate), n(h.endDate);
321
321
  };
322
322
  return /* @__PURE__ */ l(
323
- Ie,
323
+ Ae,
324
324
  {
325
325
  type: "button",
326
- className: `shortcut ${r === m.id ? "selected" : ""}`,
327
- onClick: (P) => {
328
- w(), o == null || o({ startDate: m.startDate, endDate: m.endDate });
326
+ className: `shortcut ${r === h.id ? "selected" : ""}`,
327
+ onClick: (L) => {
328
+ C(), o == null || o({ startDate: h.startDate, endDate: h.endDate });
329
329
  },
330
330
  outlined: !0,
331
- children: m.label
331
+ children: h.label
332
332
  },
333
- m.id + E
333
+ h.id + E
334
334
  );
335
335
  }) });
336
- }, is = ve.forwardRef((e, n) => {
336
+ }, as = ve.forwardRef((e, n) => {
337
337
  const {
338
338
  // Time range input props
339
339
  // endTimeInputClassName,
@@ -350,129 +350,129 @@ const ts = (e) => {
350
350
  selectsRange: r,
351
351
  onChange: d,
352
352
  inputName: u,
353
- showMonthYearDropdown: m,
353
+ showMonthYearDropdown: h,
354
354
  // withTimeRange,
355
355
  withShortcuts: E,
356
- locale: w = "en"
357
- } = e, [P, T] = D(null), [I, G] = D(null), [q, K] = D(!1), F = r ? { startDate: P, endDate: I } : P;
358
- k(() => {
359
- w === "he" && An("he", kn);
360
- }, [w]), k(() => {
361
- var A, $;
362
- ((A = e.startDate) == null ? void 0 : A.toString()) !== (P == null ? void 0 : P.toString()) && T(e.startDate), (($ = e.endDate) == null ? void 0 : $.toString()) !== (I == null ? void 0 : I.toString()) && G(e.endDate);
363
- }, [e.startDate, e.endDate, P, I]);
364
- const Y = ze(() => {
365
- let A = "pickerContainer" + (w === "he" ? " pickerContainer-rtl" : "");
366
- return E && r && (A += " pickerContainer-withShortcuts"), A;
367
- }, [w, E, r]), U = m ? {
356
+ locale: C = "en"
357
+ } = e, [L, b] = A(null), [P, B] = A(null), [$, q] = A(!1), H = r ? { startDate: L, endDate: P } : L;
358
+ I(() => {
359
+ C === "he" && Nn("he", Bn);
360
+ }, [C]), I(() => {
361
+ var x, W;
362
+ ((x = e.startDate) == null ? void 0 : x.toString()) !== (L == null ? void 0 : L.toString()) && b(e.startDate), ((W = e.endDate) == null ? void 0 : W.toString()) !== (P == null ? void 0 : P.toString()) && B(e.endDate);
363
+ }, [e.startDate, e.endDate, L, P]);
364
+ const Y = $e(() => {
365
+ let x = "pickerContainer" + (C === "he" ? " pickerContainer-rtl" : "");
366
+ return E && r && (x += " pickerContainer-withShortcuts"), x;
367
+ }, [C, E, r]), K = h ? {
368
368
  showMonthDropdown: !0,
369
369
  showYearDropdown: !0,
370
370
  dropdownMode: "select"
371
371
  } : {};
372
- return /* @__PURE__ */ l("div", { className: Y, style: { direction: w === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
373
- In,
372
+ return /* @__PURE__ */ l("div", { className: Y, style: { direction: C === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
373
+ Rn,
374
374
  {
375
375
  ...e,
376
376
  ref: n,
377
- onClickOutside: () => K(!1),
378
- open: q,
379
- startDate: Ye(F) ? P : void 0,
380
- selected: P,
381
- endDate: Ye(F) ? I : void 0,
377
+ onClickOutside: () => q(!1),
378
+ open: $,
379
+ startDate: Ye(H) ? L : void 0,
380
+ selected: L,
381
+ endDate: Ye(H) ? P : void 0,
382
382
  monthsShown: e.monthsShown ?? 2,
383
383
  calendarClassName: `pickerCalendar ${t}`,
384
- weekDayClassName: (A) => `pickerWeek ${(i == null ? void 0 : i(A)) ?? ""}`,
385
- dayClassName: (A) => `pickerDay ${(i == null ? void 0 : i(A)) ?? ""}`,
386
- monthClassName: (A) => `pickerMonth ${(o == null ? void 0 : o(A)) ?? ""}`,
387
- onChange: (A, $) => {
388
- if (Array.isArray(A)) {
389
- const [O, V] = A;
390
- T(O), G(V), d == null || d({ startDate: O, endDate: V && an(V) }, $);
384
+ weekDayClassName: (x) => `pickerWeek ${(i == null ? void 0 : i(x)) ?? ""}`,
385
+ dayClassName: (x) => `pickerDay ${(i == null ? void 0 : i(x)) ?? ""}`,
386
+ monthClassName: (x) => `pickerMonth ${(o == null ? void 0 : o(x)) ?? ""}`,
387
+ onChange: (x, W) => {
388
+ if (Array.isArray(x)) {
389
+ const [O, V] = x;
390
+ b(O), B(V), d == null || d({ startDate: O, endDate: V && hn(V) }, W);
391
391
  } else
392
- T(A), d == null || d(A, $);
392
+ b(x), d == null || d(x, W);
393
393
  },
394
- customInput: /* @__PURE__ */ l(Gi, { name: u, onInputClick: () => {
395
- K(!0);
394
+ customInput: /* @__PURE__ */ l($i, { name: u, onInputClick: () => {
395
+ q(!0);
396
396
  } }),
397
397
  showTimeInput: !!(E && r),
398
398
  timeInputLabel: "",
399
- customTimeInput: E && Ye(F) && /* @__PURE__ */ l(Vi, { onShortcut: (A) => {
400
- d == null || d(A), K(!1);
401
- }, shortcuts: E, setEndDate: G, setStartDate: T, dateRange: F }),
399
+ customTimeInput: E && Ye(H) && /* @__PURE__ */ l(Wi, { onShortcut: (x) => {
400
+ d == null || d(x), q(!1);
401
+ }, shortcuts: E, setEndDate: B, setStartDate: b, dateRange: H }),
402
402
  showMonthYearDropdown: void 0,
403
- ...U
403
+ ...K
404
404
  }
405
405
  ) });
406
406
  });
407
- const rs = (e) => {
408
- const n = Bt(), t = Ut(n), [i, o] = D(e.value), {
407
+ const ls = (e) => {
408
+ const n = Gt(), t = Xt(n), [i, o] = A(e.value), {
409
409
  format: r = J.DATE_PICKER.dateFormat,
410
410
  variant: d = J.DATE_PICKER.variant,
411
411
  disableFuture: u = J.DATE_PICKER.disableFuture,
412
- local: m,
412
+ local: h,
413
413
  onChange: E,
414
- showTime: w = J.DATE_PICKER.showTime,
415
- value: P,
416
- ...T
417
- } = e, { placeHolderText: I = J.DATE_PICKER.local.placeHolderText, calendarLocale: G } = m ?? {
414
+ showTime: C = J.DATE_PICKER.showTime,
415
+ value: L,
416
+ ...b
417
+ } = e, { placeHolderText: P = J.DATE_PICKER.local.placeHolderText, calendarLocale: B } = h ?? {
418
418
  placeHolderText: J.DATE_PICKER.local.placeHolderText,
419
- calendarLocale: ce.EN
420
- }, q = G === ce.HE ? kt : xt, K = (F) => {
421
- o(F), E(F);
419
+ calendarLocale: de.EN
420
+ }, $ = B === de.HE ? Rt : Nt, q = (H) => {
421
+ o(H), E(H);
422
422
  };
423
- return /* @__PURE__ */ l(Nt, { theme: t, children: /* @__PURE__ */ N(Ot, { utils: Rt, locale: q, children: [
424
- w && /* @__PURE__ */ l(
423
+ return /* @__PURE__ */ l(Ht, { theme: t, children: /* @__PURE__ */ N(Bt, { utils: Ft, locale: $, children: [
424
+ C && /* @__PURE__ */ l(
425
425
  Qe,
426
426
  {
427
427
  variant: d,
428
- placeholder: I,
429
- onChange: K,
428
+ placeholder: P,
429
+ onChange: q,
430
430
  value: i,
431
431
  disableFuture: u,
432
432
  format: r,
433
- ...T
433
+ ...b
434
434
  }
435
435
  ),
436
- !w && /* @__PURE__ */ l(
437
- ln,
436
+ !C && /* @__PURE__ */ l(
437
+ mn,
438
438
  {
439
439
  variant: d,
440
- placeholder: I,
441
- onChange: K,
440
+ placeholder: P,
441
+ onChange: q,
442
442
  value: i,
443
443
  disableFuture: u,
444
444
  format: r,
445
- ...T
445
+ ...b
446
446
  }
447
447
  )
448
448
  ] }) });
449
- }, zi = 18, $i = xe(
450
- (e) => $e({
449
+ }, Ui = 18, Ki = ke(
450
+ (e) => We({
451
451
  drawingButton: {
452
- width: e.spacing(zi)
452
+ width: e.spacing(Ui)
453
453
  },
454
454
  fullWidth: {
455
455
  width: "100%",
456
456
  marginTop: "36px"
457
457
  }
458
458
  })
459
- ), Wi = (e) => {
460
- const n = $i(), [t, i] = ve.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: d, onReset: u } = e, m = (w) => {
461
- i(w.currentTarget);
459
+ ), ji = (e) => {
460
+ const n = Ki(), [t, i] = ve.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: d, onReset: u } = e, h = (C) => {
461
+ i(C.currentTarget);
462
462
  }, E = () => {
463
463
  i(null);
464
464
  };
465
- return o ? /* @__PURE__ */ l(tt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Ie, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ N(ae, { position: "relative", children: [
466
- /* @__PURE__ */ l(tt, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Ie, { className: n.drawingButton, raised: !0, onClick: m, children: "Draw AOI" }) }),
465
+ return o ? /* @__PURE__ */ l(tt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Ae, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ N(ae, { position: "relative", children: [
466
+ /* @__PURE__ */ l(tt, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Ae, { className: n.drawingButton, raised: !0, onClick: h, children: "Draw AOI" }) }),
467
467
  /* @__PURE__ */ N(
468
- wn,
468
+ Sn,
469
469
  {
470
470
  className: n.fullWidth,
471
471
  open: Boolean(t),
472
472
  onClose: E,
473
473
  children: [
474
474
  /* @__PURE__ */ l(
475
- Ke,
475
+ je,
476
476
  {
477
477
  onClick: () => {
478
478
  d(se.POLYGON), E();
@@ -481,7 +481,7 @@ const rs = (e) => {
481
481
  }
482
482
  ),
483
483
  /* @__PURE__ */ l(
484
- Ke,
484
+ je,
485
485
  {
486
486
  onClick: () => {
487
487
  d(se.BOX), E();
@@ -490,7 +490,7 @@ const rs = (e) => {
490
490
  }
491
491
  ),
492
492
  /* @__PURE__ */ l(
493
- Ke,
493
+ je,
494
494
  {
495
495
  onClick: () => {
496
496
  u(), E();
@@ -503,107 +503,107 @@ const rs = (e) => {
503
503
  )
504
504
  ] });
505
505
  };
506
- var ue = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(ue || {});
507
- const rt = 5, ot = 2, jt = Ae(null), Ui = jt.Provider, yt = 35, vt = 32, ji = 10, Ki = (e) => e !== void 0 && e !== ue.WGS84 ? Bn([yt, vt], ue.WGS84, e) : [yt, vt], qi = (e) => {
506
+ var he = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(he || {});
507
+ const st = 5, at = 2, Zt = Ie(null), qi = Zt.Provider, Et = 35, Ct = 32, Yi = 10, Xi = (e) => e !== void 0 && e !== he.WGS84 ? zn([Et, Ct], he.WGS84, e) : [Et, Ct], Zi = (e) => {
508
508
  switch (e) {
509
- case ue.WEB_MERCATOR:
510
- return (n) => pt(n, "Mercator: {y}m, {x}m", ot);
511
- case ue.WGS84:
512
- return (n) => pt(n, "WGS84: {y}°N {x}°E", rt);
509
+ case he.WEB_MERCATOR:
510
+ return (n) => ft(n, "Mercator: {y}m, {x}m", at);
511
+ case he.WGS84:
512
+ return (n) => ft(n, "WGS84: {y}°N {x}°E", st);
513
513
  default:
514
514
  return (n) => "";
515
515
  }
516
- }, ct = () => {
517
- const e = ke(jt);
516
+ }, ut = () => {
517
+ const e = xe(Zt);
518
518
  if (e === null)
519
519
  throw new Error("map context is null, please check the provider");
520
520
  return e;
521
- }, Yi = (e) => {
522
- const n = we(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = D(
523
- new On({
524
- view: new Rn({
525
- projection: o ?? ue.WGS84
521
+ }, Ji = (e) => {
522
+ const n = be(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = A(
523
+ new Hn({
524
+ view: new Gn({
525
+ projection: o ?? he.WGS84
526
526
  }),
527
- controls: Nn()
527
+ controls: Vn()
528
528
  })
529
529
  );
530
- k(() => {
531
- r.getView().setCenter(e.center ?? Ki(e.projection));
532
- }, [r, e.center, e.projection]), k(() => {
533
- r.getView().setZoom(e.zoom ?? ji);
530
+ I(() => {
531
+ r.getView().setCenter(e.center ?? Xi(e.projection));
532
+ }, [r, e.center, e.projection]), I(() => {
533
+ r.getView().setZoom(e.zoom ?? Yi);
534
534
  }, [r, e.zoom, e.projection]);
535
- const d = (u, m) => {
536
- m.getControls().forEach((w) => {
537
- w instanceof u && m.removeControl(w);
535
+ const d = (u, h) => {
536
+ h.getControls().forEach((C) => {
537
+ C instanceof u && h.removeControl(C);
538
538
  });
539
539
  };
540
- return k(() => {
541
- r.setTarget(n.current), t !== void 0 && t ? r.addControl(new gt()) : d(gt, r);
542
- }, [r, t]), k(() => {
540
+ return I(() => {
541
+ r.setTarget(n.current), t !== void 0 && t ? r.addControl(new yt()) : d(yt, r);
542
+ }, [r, t]), I(() => {
543
543
  i !== void 0 && i ? (d(qe, r), r.addControl(
544
544
  new qe({
545
- coordinateFormat: qi(o ?? ue.WGS84),
546
- projection: o ?? ue.WGS84,
545
+ coordinateFormat: Zi(o ?? he.WGS84),
546
+ projection: o ?? he.WGS84,
547
547
  undefinedHTML: "&nbsp;"
548
548
  })
549
549
  )) : d(qe, r);
550
- }, [r, i, o]), /* @__PURE__ */ N(Ui, { value: r, children: [
550
+ }, [r, i, o]), /* @__PURE__ */ N(qi, { value: r, children: [
551
551
  /* @__PURE__ */ l("div", { className: "map", ref: n }),
552
552
  e.children
553
553
  ] });
554
- }, Kt = Ae(null), Xi = Kt.Provider, Zi = () => {
555
- const e = ke(Kt);
554
+ }, Jt = Ie(null), Qi = Jt.Provider, er = () => {
555
+ const e = xe(Jt);
556
556
  if (e === null)
557
557
  throw new Error("tile layer context is null, please check the provider");
558
558
  return e;
559
- }, Ji = ({ options: e, children: n }) => {
560
- const t = ct(), [i] = D(new Fn(e));
561
- return k(() => (t.addLayer(i), () => {
559
+ }, tr = ({ options: e, children: n }) => {
560
+ const t = ut(), [i] = A(new $n(e));
561
+ return I(() => (t.addLayer(i), () => {
562
562
  t.removeLayer(i);
563
- }), [t, i]), /* @__PURE__ */ l(Xi, { value: i, children: n });
564
- }, qt = Ae(null), Qi = qt.Provider, er = () => {
565
- const e = ke(qt);
563
+ }), [t, i]), /* @__PURE__ */ l(Qi, { value: i, children: n });
564
+ }, Qt = Ie(null), nr = Qt.Provider, ir = () => {
565
+ const e = xe(Qt);
566
566
  if (e === null)
567
567
  throw new Error("vector layer context is null, please check the provider");
568
568
  return e;
569
- }, tr = ({ children: e }) => {
570
- const n = ct(), [t] = D(new Hn());
571
- return k(() => (n.addLayer(t), () => {
569
+ }, rr = ({ children: e }) => {
570
+ const n = ut(), [t] = A(new Wn());
571
+ return I(() => (n.addLayer(t), () => {
572
572
  n.removeLayer(t);
573
- }), [n, t]), /* @__PURE__ */ l(Qi, { value: t, children: e });
574
- }, Yt = Ae(null), nr = Yt.Provider, ir = () => {
575
- const e = ke(Yt);
573
+ }), [n, t]), /* @__PURE__ */ l(nr, { value: t, children: e });
574
+ }, en = Ie(null), or = en.Provider, sr = () => {
575
+ const e = xe(en);
576
576
  if (e === null)
577
577
  throw new Error("vector source context is null, please check the provider");
578
578
  return e;
579
- }, rr = ({ children: e }) => {
580
- const n = er(), [t] = D(new Gn());
581
- return k(() => {
579
+ }, ar = ({ children: e }) => {
580
+ const n = ir(), [t] = A(new Un());
581
+ return I(() => {
582
582
  n.setSource(t);
583
- }, [t, n]), /* @__PURE__ */ l(nr, { value: t, children: e });
584
- }, or = ({ geometry: e }) => {
585
- const n = ir();
586
- return k(() => {
587
- const i = new Ft().readFeature(e);
583
+ }, [t, n]), /* @__PURE__ */ l(or, { value: t, children: e });
584
+ }, lr = ({ geometry: e }) => {
585
+ const n = sr();
586
+ return I(() => {
587
+ const i = new Vt().readFeature(e);
588
588
  return n.addFeature(i), () => {
589
589
  n.removeFeature(i);
590
590
  };
591
591
  }, [e, n]), null;
592
- }, sr = (e) => {
593
- const n = Zi();
594
- return k(() => {
595
- n.setSource(new Vn());
592
+ }, cr = (e) => {
593
+ const n = er();
594
+ return I(() => {
595
+ n.setSource(new Kn());
596
596
  }, [n]), null;
597
- }, ar = ({ drawType: e, onPolygonSelected: n }) => {
598
- const t = ct();
599
- return k(() => {
597
+ }, dr = ({ drawType: e, onPolygonSelected: n }) => {
598
+ const t = ut();
599
+ return I(() => {
600
600
  const i = {
601
601
  type: "Circle"
602
602
  /* CIRCLE */
603
603
  };
604
604
  switch (e) {
605
605
  case se.BOX:
606
- i.geometryFunction = $n();
606
+ i.geometryFunction = qn();
607
607
  break;
608
608
  case se.POLYGON:
609
609
  i.type = "Polygon";
@@ -611,30 +611,30 @@ const rt = 5, ot = 2, jt = Ae(null), Ui = jt.Provider, yt = 35, vt = 32, ji = 10
611
611
  default:
612
612
  return;
613
613
  }
614
- const o = new zn(i);
614
+ const o = new jn(i);
615
615
  t.addInteraction(o);
616
616
  const r = (d) => {
617
- const m = new Ft().writeGeometryObject(d.feature.getGeometry());
618
- n == null || n(m);
617
+ const h = new Vt().writeGeometryObject(d.feature.getGeometry());
618
+ n == null || n(h);
619
619
  };
620
620
  return o.on("drawend", r), () => {
621
621
  o.un("drawend", r), t.removeInteraction(o);
622
622
  };
623
623
  }, [n, e, t]), null;
624
624
  };
625
- const lr = (e) => {
625
+ const ur = (e) => {
626
626
  const n = (t) => {
627
- const i = xn(t);
627
+ const i = Fn(t);
628
628
  e.onPolygonSelection(i);
629
629
  };
630
- return /* @__PURE__ */ N(Yi, { allowFullScreen: !0, showMousePosition: !0, children: [
631
- /* @__PURE__ */ l(Ji, { children: /* @__PURE__ */ l(sr, {}) }),
632
- e.selectionPolygon && /* @__PURE__ */ l(tr, { children: /* @__PURE__ */ l(rr, { children: /* @__PURE__ */ l(or, { geometry: e.selectionPolygon }) }) }),
630
+ return /* @__PURE__ */ N(Ji, { allowFullScreen: !0, showMousePosition: !0, children: [
631
+ /* @__PURE__ */ l(tr, { children: /* @__PURE__ */ l(cr, {}) }),
632
+ e.selectionPolygon && /* @__PURE__ */ l(rr, { children: /* @__PURE__ */ l(ar, { children: /* @__PURE__ */ l(lr, { geometry: e.selectionPolygon }) }) }),
633
633
  e.children,
634
- e.drawType !== void 0 && /* @__PURE__ */ l(ar, { drawType: e.drawType, onPolygonSelected: n })
634
+ e.drawType !== void 0 && /* @__PURE__ */ l(dr, { drawType: e.drawType, onPolygonSelected: n })
635
635
  ] });
636
- }, Xe = 1.5, cr = 80, dr = xe(
637
- (e) => $e({
636
+ }, Xe = 1.5, hr = 80, mr = ke(
637
+ (e) => We({
638
638
  map: {
639
639
  height: "100%",
640
640
  width: "100%",
@@ -648,7 +648,7 @@ const lr = (e) => {
648
648
  },
649
649
  contentContainer: {
650
650
  marginTop: e.spacing(Xe),
651
- width: e.spacing(cr)
651
+ width: e.spacing(hr)
652
652
  },
653
653
  filtersContainer: {
654
654
  display: "flex",
@@ -658,9 +658,9 @@ const lr = (e) => {
658
658
  marginLeft: e.spacing(1)
659
659
  }
660
660
  })
661
- ), os = (e) => {
662
- var m;
663
- const [n, t] = D(), [i, o] = D(), r = dr(), d = (E) => {
661
+ ), cs = (e) => {
662
+ var h;
663
+ const [n, t] = A(), [i, o] = A(), r = mr(), d = (E) => {
664
664
  o(E), t(void 0), e.handlePolygonSelected(E);
665
665
  }, u = () => {
666
666
  o(void 0), e.handlePolygonReset();
@@ -669,7 +669,7 @@ const lr = (e) => {
669
669
  /* @__PURE__ */ N("div", { className: `${r.absolute}`, children: [
670
670
  /* @__PURE__ */ N(et, { className: r.filtersContainer, children: [
671
671
  /* @__PURE__ */ l(
672
- Wi,
672
+ ji,
673
673
  {
674
674
  onCancelDraw: () => t(void 0),
675
675
  onReset: u,
@@ -677,27 +677,27 @@ const lr = (e) => {
677
677
  isSelectionEnabled: n !== void 0
678
678
  }
679
679
  ),
680
- (m = e.filters) == null ? void 0 : m.map((E, w) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: E }, w))
680
+ (h = e.filters) == null ? void 0 : h.map((E, C) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: E }, C))
681
681
  ] }),
682
682
  /* @__PURE__ */ l(et, { color: "red", className: `${r.contentContainer}`, children: e.children })
683
683
  ] }),
684
- /* @__PURE__ */ l(lr, { children: e.mapContent, onPolygonSelection: d, drawType: n, selectionPolygon: i })
684
+ /* @__PURE__ */ l(ur, { children: e.mapContent, onPolygonSelection: d, drawType: n, selectionPolygon: i })
685
685
  ] });
686
686
  };
687
- function ur(e) {
688
- const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, d = (u) => (m) => {
689
- o(m, u);
687
+ function pr(e) {
688
+ const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, d = (u) => (h) => {
689
+ o(h, u);
690
690
  };
691
- return /* @__PURE__ */ l(Wn, { children: /* @__PURE__ */ N(Fe, { children: [
692
- r && /* @__PURE__ */ l(Le, {}),
691
+ return /* @__PURE__ */ l(Yn, { children: /* @__PURE__ */ N(He, { children: [
692
+ r && /* @__PURE__ */ l(Me, {}),
693
693
  n.map((u) => /* @__PURE__ */ l(
694
- Le,
694
+ Me,
695
695
  {
696
696
  align: u.numeric ? "right" : "left",
697
697
  padding: u.disablePadding ? "none" : "default",
698
698
  sortDirection: i === u.id ? t : !1,
699
699
  children: /* @__PURE__ */ l(
700
- hn,
700
+ yn,
701
701
  {
702
702
  active: i === u.id,
703
703
  direction: i === u.id ? t : "asc",
@@ -710,178 +710,178 @@ function ur(e) {
710
710
  ))
711
711
  ] }) });
712
712
  }
713
- const hr = Ht(
714
- /* @__PURE__ */ At.createElement("path", {
713
+ const gr = zt(
714
+ /* @__PURE__ */ Ot.createElement("path", {
715
715
  d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
716
716
  }),
717
717
  "KeyboardArrowDown"
718
- ), mr = Ht(
719
- /* @__PURE__ */ At.createElement("path", {
718
+ ), fr = zt(
719
+ /* @__PURE__ */ Ot.createElement("path", {
720
720
  d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
721
721
  }),
722
722
  "KeyboardArrowUp"
723
723
  );
724
- function pr(e) {
725
- const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: d, collapsedElement: u } = e, [m, E] = D(!1), w = n.length;
726
- return /* @__PURE__ */ N(ie, { children: [
727
- /* @__PURE__ */ N(Fe, { hover: !0, selected: t, onClick: () => {
724
+ function yr(e) {
725
+ const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: d, collapsedElement: u } = e, [h, E] = A(!1), C = n.length;
726
+ return /* @__PURE__ */ N(te, { children: [
727
+ /* @__PURE__ */ N(He, { hover: !0, selected: t, onClick: () => {
728
728
  o == null || o(r);
729
729
  }, children: [
730
- d && /* @__PURE__ */ l(Le, { padding: "checkbox", children: /* @__PURE__ */ l(
731
- mn,
730
+ d && /* @__PURE__ */ l(Me, { padding: "checkbox", children: /* @__PURE__ */ l(
731
+ vn,
732
732
  {
733
733
  "aria-label": "expand row",
734
734
  size: "small",
735
- onClick: (T) => {
736
- T.stopPropagation(), E(!m);
735
+ onClick: (b) => {
736
+ b.stopPropagation(), E(!h);
737
737
  },
738
- children: m ? /* @__PURE__ */ l(mr, {}) : /* @__PURE__ */ l(hr, {})
738
+ children: h ? /* @__PURE__ */ l(fr, {}) : /* @__PURE__ */ l(gr, {})
739
739
  }
740
740
  ) }),
741
- n.map((T) => /* @__PURE__ */ l(
742
- Le,
741
+ n.map((b) => /* @__PURE__ */ l(
742
+ Me,
743
743
  {
744
- align: T.numeric ? "right" : "left",
745
- padding: T.disablePadding ? "none" : "default",
746
- children: T.transform ? T.transform(i[T.id]) : i[T.id]
744
+ align: b.numeric ? "right" : "left",
745
+ padding: b.disablePadding ? "none" : "default",
746
+ children: b.transform ? b.transform(i[b.id]) : i[b.id]
747
747
  },
748
- T.id + r.toString()
748
+ b.id + r.toString()
749
749
  ))
750
750
  ] }),
751
- d && /* @__PURE__ */ l(Fe, { children: /* @__PURE__ */ l(Le, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: w + 1, children: /* @__PURE__ */ l(pn, { in: m, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
751
+ d && /* @__PURE__ */ l(He, { children: /* @__PURE__ */ l(Me, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: C + 1, children: /* @__PURE__ */ l(En, { in: h, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
752
752
  ] });
753
753
  }
754
- function ss(e) {
755
- const [n, t] = D(""), [i, o] = D("asc"), {
754
+ function ds(e) {
755
+ const [n, t] = A(""), [i, o] = A("asc"), {
756
756
  cellsMetadata: r,
757
757
  items: d,
758
758
  onRequestSort: u,
759
- onRowSelected: m,
759
+ onRowSelected: h,
760
760
  isCollapseable: E,
761
- collapsedElement: w,
762
- isDense: P,
763
- page: T,
764
- rowsPerPage: I,
765
- count: G,
766
- handleChangePage: q,
767
- handleChangeRowsPerPage: K
761
+ collapsedElement: C,
762
+ isDense: L,
763
+ page: b,
764
+ rowsPerPage: P,
765
+ count: B,
766
+ handleChangePage: $,
767
+ handleChangeRowsPerPage: q
768
768
  } = e;
769
- return /* @__PURE__ */ N(gn, { component: et, children: [
770
- /* @__PURE__ */ N(fn, { size: P ? "small" : "medium", children: [
769
+ return /* @__PURE__ */ N(Cn, { component: et, children: [
770
+ /* @__PURE__ */ N(wn, { size: L ? "small" : "medium", children: [
771
771
  /* @__PURE__ */ l(
772
- ur,
772
+ pr,
773
773
  {
774
774
  headCells: r,
775
- onRequestSort: (Y, U) => {
776
- const A = n === U && i === "asc";
777
- o(A ? "desc" : "asc"), t(U), u(U, A ? "desc" : "asc");
775
+ onRequestSort: (Y, K) => {
776
+ const x = n === K && i === "asc";
777
+ o(x ? "desc" : "asc"), t(K), u(K, x ? "desc" : "asc");
778
778
  },
779
779
  order: i,
780
780
  orderBy: n,
781
781
  isCollapseable: E
782
782
  }
783
783
  ),
784
- /* @__PURE__ */ N(yn, { children: [
785
- d.map((Y, U) => /* @__PURE__ */ l(
786
- pr,
784
+ /* @__PURE__ */ N(bn, { children: [
785
+ d.map((Y, K) => /* @__PURE__ */ l(
786
+ yr,
787
787
  {
788
788
  item: Y,
789
- rowIndex: U,
789
+ rowIndex: K,
790
790
  isCollapseable: E,
791
791
  cellsMetadata: r,
792
- collapsedElement: w,
792
+ collapsedElement: C,
793
793
  isRowSelected: !1,
794
- onRowSelected: m
794
+ onRowSelected: h
795
795
  },
796
- U
796
+ K
797
797
  )),
798
- (d.length === 0 || I > d.length) && /* @__PURE__ */ l(
799
- Fe,
798
+ (d.length === 0 || P > d.length) && /* @__PURE__ */ l(
799
+ He,
800
800
  {
801
801
  style: {
802
- height: (P ? 33 : 53) * (I - d.length)
802
+ height: (L ? 33 : 53) * (P - d.length)
803
803
  },
804
- children: /* @__PURE__ */ l(Le, { colSpan: E ? r.length + 1 : r.length, children: d.length === 0 && /* @__PURE__ */ l(vn, { align: "center", children: "No results :(" }) })
804
+ children: /* @__PURE__ */ l(Me, { colSpan: E ? r.length + 1 : r.length, children: d.length === 0 && /* @__PURE__ */ l(Tn, { align: "center", children: "No results :(" }) })
805
805
  }
806
806
  )
807
807
  ] })
808
808
  ] }),
809
809
  /* @__PURE__ */ l(
810
- En,
810
+ _n,
811
811
  {
812
- rowsPerPage: I,
812
+ rowsPerPage: P,
813
813
  rowsPerPageOptions: [5, 10],
814
814
  component: "div",
815
- count: G,
816
- page: T,
817
- onPageChange: q,
818
- onRowsPerPageChange: K
815
+ count: B,
816
+ page: b,
817
+ onPageChange: $,
818
+ onRowsPerPageChange: q
819
819
  }
820
820
  )
821
821
  ] });
822
822
  }
823
- const as = (e) => {
823
+ const us = (e) => {
824
824
  const { children: n, ...t } = e;
825
- return /* @__PURE__ */ l(Un, { ...t, children: n });
826
- }, ls = (e) => {
825
+ return /* @__PURE__ */ l(Xn, { ...t, children: n });
826
+ }, hs = (e) => {
827
827
  const { children: n, ...t } = e;
828
- return /* @__PURE__ */ l(jn, { ...t, children: n });
829
- }, Et = (e) => e * Math.PI / 180, Ne = (e) => e * (180 / Math.PI), gr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(Et(85.362 / 2)) / Math.sin(Et(85.362 / 2)));
830
- const fr = (e) => {
831
- const n = he(), t = we(null), [i, o] = D({ x: 0, y: 0 });
832
- return k(() => {
828
+ return /* @__PURE__ */ l(Zn, { ...t, children: n });
829
+ }, wt = (e) => e * Math.PI / 180, Be = (e) => e * (180 / Math.PI), vr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(wt(85.362 / 2)) / Math.sin(wt(85.362 / 2)));
830
+ const Er = (e) => {
831
+ const n = le(), t = be(null), [i, o] = A({ x: 0, y: 0 });
832
+ return I(() => {
833
833
  n.screenSpaceEventHandler.setInputAction((r) => {
834
834
  r != null && r.endPosition && o({ ...r.endPosition });
835
- }, ii.MOUSE_MOVE);
836
- }, [t, n]), k(() => {
835
+ }, li.MOUSE_MOVE);
836
+ }, [t, n]), I(() => {
837
837
  const r = n.scene.globe.ellipsoid, d = n.camera.pickEllipsoid(new pe(i.x, i.y), r);
838
838
  if (d) {
839
839
  const u = r.cartesianToCartographic(d);
840
840
  if (t.current) {
841
- let m = "";
841
+ let h = "";
842
842
  switch (e.projection) {
843
- case ue.WEB_MERCATOR: {
844
- const w = new ri(r).project(u);
845
- m = `Mercator: ${w.y.toFixed(ot)}m, ${w.x.toFixed(
846
- ot
843
+ case he.WEB_MERCATOR: {
844
+ const C = new ci(r).project(u);
845
+ h = `Mercator: ${C.y.toFixed(at)}m, ${C.x.toFixed(
846
+ at
847
847
  )}m`, t.current.style.width = "220px";
848
848
  break;
849
849
  }
850
- case ue.WGS84: {
851
- const E = le.toDegrees(u.longitude).toFixed(rt);
852
- m = `WGS84: ${le.toDegrees(u.latitude).toFixed(rt)}°N ${E}°E`, t.current.style.width = "200px";
850
+ case he.WGS84: {
851
+ const E = ce.toDegrees(u.longitude).toFixed(st);
852
+ h = `WGS84: ${ce.toDegrees(u.latitude).toFixed(st)}°N ${E}°E`, t.current.style.width = "200px";
853
853
  break;
854
854
  }
855
855
  }
856
- t.current.innerHTML = m;
856
+ t.current.innerHTML = h;
857
857
  }
858
858
  }
859
859
  }, [i, t, n, e.projection]), /* @__PURE__ */ l("div", { className: "trackerPosition", ref: t });
860
- }, Xt = (e, n, t) => {
860
+ }, tn = (e, n, t) => {
861
861
  let i;
862
- if (e.scene.mode !== Ce.SCENE2D)
863
- i = e.scene.pickPosition(new Me(n, t));
862
+ if (e.scene.mode !== we.SCENE2D)
863
+ i = e.scene.pickPosition(new Ee(n, t));
864
864
  else {
865
865
  const o = e.scene.globe.ellipsoid;
866
- i = e.camera.pickEllipsoid(new Me(n, t), o);
866
+ i = e.camera.pickEllipsoid(new Ee(n, t), o);
867
867
  }
868
- return We.fromCartesian(i);
869
- }, yr = (e, n, t) => {
870
- const i = Xt(e, n, t);
868
+ return Oe.fromCartesian(i);
869
+ }, Cr = (e, n, t) => {
870
+ const i = tn(e, n, t);
871
871
  return {
872
872
  type: "Feature",
873
873
  properties: {},
874
874
  geometry: {
875
875
  type: "Point",
876
- coordinates: [le.toDegrees(i.longitude), le.toDegrees(i.latitude)]
876
+ coordinates: [ce.toDegrees(i.longitude), ce.toDegrees(i.latitude)]
877
877
  }
878
878
  };
879
- }, vr = (e, n, t) => {
879
+ }, wr = (e, n, t) => {
880
880
  try {
881
- const i = Xt(e, n, t);
881
+ const i = tn(e, n, t);
882
882
  return {
883
- longitude: le.toDegrees(i.longitude),
884
- latitude: le.toDegrees(i.latitude)
883
+ longitude: ce.toDegrees(i.longitude),
884
+ latitude: ce.toDegrees(i.latitude)
885
885
  };
886
886
  } catch {
887
887
  return;
@@ -920,51 +920,51 @@ const Ze = [
920
920
  2e7,
921
921
  3e7,
922
922
  5e7
923
- ], Er = (e, n, t, i) => {
923
+ ], br = (e, n, t, i) => {
924
924
  const o = ee(i, "METERS_UNIT") ?? "m", r = ee(i, "KILOMETERS_UNIT") ?? "km", d = {
925
925
  barWidth: void 0,
926
926
  distanceLabel: void 0,
927
927
  lastLegendUpdate: n.lastLegendUpdate
928
- }, u = new si(), m = new Date().getTime();
929
- if (m < d.lastLegendUpdate + 250)
928
+ }, u = new ui(), h = new Date().getTime();
929
+ if (h < d.lastLegendUpdate + 250)
930
930
  return;
931
- d.lastLegendUpdate = m;
932
- const E = e.scene.canvas.clientWidth, w = e.scene.canvas.clientHeight, P = e.scene.camera.getPickRay(new Me(E / 2 | 0, w - 1)), T = e.scene.camera.getPickRay(new Me(1 + E / 2 | 0, w - 1)), I = e.scene.globe, G = I.pick(P, e.scene), q = I.pick(T, e.scene);
933
- if (!G || !q)
931
+ d.lastLegendUpdate = h;
932
+ const E = e.scene.canvas.clientWidth, C = e.scene.canvas.clientHeight, L = e.scene.camera.getPickRay(new Ee(E / 2 | 0, C - 1)), b = e.scene.camera.getPickRay(new Ee(1 + E / 2 | 0, C - 1)), P = e.scene.globe, B = P.pick(L, e.scene), $ = P.pick(b, e.scene);
933
+ if (!B || !$)
934
934
  return;
935
- const K = I.ellipsoid.cartesianToCartographic(G), F = I.ellipsoid.cartesianToCartographic(q);
936
- u.setEndPoints(K, F);
937
- const Y = u.surfaceDistance, U = 100;
938
- let A;
939
- for (let $ = Ze.length - 1; !Ge(A) && $ >= 0; --$)
940
- Ze[$] / Y < U && (A = Ze[$]);
941
- if (Ge(A)) {
942
- let $ = "";
943
- A >= 1e3 ? $ = `${(A / 1e3).toString()} ${r}` : $ = `${A.toString()} ${o}`, d.barWidth = A / Y | 0, d.distanceLabel = $;
935
+ const q = P.ellipsoid.cartesianToCartographic(B), H = P.ellipsoid.cartesianToCartographic($);
936
+ u.setEndPoints(q, H);
937
+ const Y = u.surfaceDistance, K = 100;
938
+ let x;
939
+ for (let W = Ze.length - 1; !Ve(x) && W >= 0; --W)
940
+ Ze[W] / Y < K && (x = Ze[W]);
941
+ if (Ve(x)) {
942
+ let W = "";
943
+ x >= 1e3 ? W = `${(x / 1e3).toString()} ${r}` : W = `${x.toString()} ${o}`, d.barWidth = x / Y | 0, d.distanceLabel = W;
944
944
  }
945
945
  t(d);
946
- }, Cr = (e) => {
947
- const n = he(), [t, i] = D({
946
+ }, Tr = (e) => {
947
+ const n = le(), [t, i] = A({
948
948
  barWidth: void 0,
949
949
  distanceLabel: void 0,
950
950
  lastLegendUpdate: -1
951
951
  });
952
- k(() => {
953
- const r = (m) => {
954
- Er(n, t, i, e.locale);
955
- }, d = new oi(), u = (m) => {
952
+ I(() => {
953
+ const r = (h) => {
954
+ br(n, t, i, e.locale);
955
+ }, d = new di(), u = (h) => {
956
956
  n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), d.removeAll());
957
957
  };
958
958
  return d.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
959
959
  try {
960
960
  ee(n, "_cesiumWidget") != null && n.camera.moveEnd.removeEventListener(r);
961
- } catch (m) {
962
- console.log('CESIUM camera "moveEnd" remove listener failed', m);
961
+ } catch (h) {
962
+ console.log('CESIUM camera "moveEnd" remove listener failed', h);
963
963
  }
964
964
  };
965
965
  }, [n, e.locale, t]);
966
966
  const o = (r) => 5 + (125 - r) / 2;
967
- return /* @__PURE__ */ l("div", { className: "scalePosition", children: Ge(t.barWidth) && /* @__PURE__ */ N(ie, { children: [
967
+ return /* @__PURE__ */ l("div", { className: "scalePosition", children: Ve(t.barWidth) && /* @__PURE__ */ N(te, { children: [
968
968
  /* @__PURE__ */ l("div", { className: "distance-legend-label", children: /* @__PURE__ */ l("bdi", { children: t.distanceLabel }) }),
969
969
  /* @__PURE__ */ l(
970
970
  "div",
@@ -979,29 +979,29 @@ const Ze = [
979
979
  )
980
980
  ] }) });
981
981
  }, oe = {
982
- MORPHING: Ce.MORPHING,
983
- COLUMBUS_VIEW: Ce.COLUMBUS_VIEW,
984
- SCENE2D: Ce.SCENE2D,
985
- SCENE3D: Ce.SCENE3D
982
+ MORPHING: we.MORPHING,
983
+ COLUMBUS_VIEW: we.COLUMBUS_VIEW,
984
+ SCENE2D: we.SCENE2D,
985
+ SCENE3D: we.SCENE3D
986
986
  };
987
- const Ct = (e, n) => {
987
+ const bt = (e, n) => {
988
988
  const i = ee(n.scene.globe, "_surface.tileProvider"), o = i._quadtree, r = n.canvas.height, d = ee(n.camera.frustum, "sseDenominator") ?? 1;
989
989
  for (let u = 0; u <= 19; u++)
990
990
  if (i.getLevelMaximumGeometricError(u) * r / (e * d) < o.maximumScreenSpaceError)
991
991
  return u;
992
992
  return null;
993
- }, wr = (e, n) => {
993
+ }, _r = (e, n) => {
994
994
  e = e || 10;
995
995
  const t = [];
996
996
  let i = 1e5, o = 0;
997
997
  for (let r = 1e8; r > i; r = r - i) {
998
- const d = Ct(r, n);
998
+ const d = bt(r, n);
999
999
  if (d === null)
1000
1000
  break;
1001
1001
  if (d !== o) {
1002
- let u = r, m = r + i;
1003
- for (; m - u > e; )
1004
- r = u + (m - u) / 2, Ct(r, n) === d ? u = r : m = r;
1002
+ let u = r, h = r + i;
1003
+ for (; h - u > e; )
1004
+ r = u + (h - u) / 2, bt(r, n) === d ? u = r : h = r;
1005
1005
  t.push({
1006
1006
  level: d,
1007
1007
  height: Math.round(r)
@@ -1009,28 +1009,28 @@ const Ct = (e, n) => {
1009
1009
  }
1010
1010
  }
1011
1011
  return t;
1012
- }, br = (e) => {
1013
- const n = he(), [t, i] = D(1), o = wr(1, n);
1014
- return k(() => {
1012
+ }, Lr = (e) => {
1013
+ const n = le(), [t, i] = A(1), o = _r(1, n);
1014
+ return I(() => {
1015
1015
  const r = () => {
1016
1016
  const d = n.camera, u = 0.5;
1017
- let m = 0;
1017
+ let h = 0;
1018
1018
  switch (n.scene.mode) {
1019
1019
  case oe.SCENE3D:
1020
- m = n.scene.mapProjection.ellipsoid.cartesianToCartographic(d.positionWC).height;
1020
+ h = n.scene.mapProjection.ellipsoid.cartesianToCartographic(d.positionWC).height;
1021
1021
  break;
1022
1022
  case oe.SCENE2D:
1023
- m = (d.frustum.right - d.frustum.left) * u;
1023
+ h = (d.frustum.right - d.frustum.left) * u;
1024
1024
  break;
1025
1025
  case oe.COLUMBUS_VIEW:
1026
- m = d.position.z;
1026
+ h = d.position.z;
1027
1027
  break;
1028
1028
  default:
1029
- m = 0;
1029
+ h = 0;
1030
1030
  break;
1031
1031
  }
1032
1032
  if (o.length > 0) {
1033
- const E = o.reduce((w, P) => Math.abs(P.height - m) < Math.abs(w.height - m) ? P : w);
1033
+ const E = o.reduce((C, L) => Math.abs(L.height - h) < Math.abs(C.height - h) ? L : C);
1034
1034
  i(E.level);
1035
1035
  }
1036
1036
  };
@@ -1046,11 +1046,11 @@ const Ct = (e, n) => {
1046
1046
  /* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: ee(e.locale, "ZOOM_LABEL") ?? "zoom" })
1047
1047
  ] });
1048
1048
  };
1049
- const Tr = -1, _r = (e) => {
1050
- const n = he(), [t, i] = D(), { sceneModes: o } = e, r = (d) => o.findIndex((u) => u === d) > Tr;
1051
- return k(() => {
1049
+ const Sr = -1, Mr = (e) => {
1050
+ const n = le(), [t, i] = A(), { sceneModes: o } = e, r = (d) => o.findIndex((u) => u === d) > Sr;
1051
+ return I(() => {
1052
1052
  i(n.scene.mode);
1053
- }, []), /* @__PURE__ */ N(ie, { children: [
1053
+ }, []), /* @__PURE__ */ N(te, { children: [
1054
1054
  r(oe.SCENE3D) && /* @__PURE__ */ l(
1055
1055
  Pe,
1056
1056
  {
@@ -1080,31 +1080,31 @@ const Tr = -1, _r = (e) => {
1080
1080
  )
1081
1081
  ] });
1082
1082
  };
1083
- const Sr = xe(
1084
- (e) => $e({
1083
+ const Pr = ke(
1084
+ (e) => We({
1085
1085
  mapContainer: {
1086
1086
  width: "60px",
1087
1087
  height: "60px",
1088
1088
  border: `${e.palette.background.paper} 2px solid`
1089
1089
  }
1090
1090
  })
1091
- ), Lr = (e) => {
1092
- const n = he(), { baseMaps: t } = e, [i, o] = D(" "), [r, d] = D(), u = Sr();
1093
- k(() => {
1094
- const E = t == null ? void 0 : t.maps.find((w) => w.isCurrent);
1091
+ ), Dr = (e) => {
1092
+ const n = le(), { baseMaps: t } = e, [i, o] = A(" "), [r, d] = A(), u = Pr();
1093
+ I(() => {
1094
+ const E = t == null ? void 0 : t.maps.find((C) => C.isCurrent);
1095
1095
  E && (d(E), o(E.title !== void 0 ? E.title : " "));
1096
1096
  }, [t]);
1097
- const m = (E) => {
1098
- var w, P;
1097
+ const h = (E) => {
1098
+ var C, L;
1099
1099
  if (t) {
1100
- (w = n.layersManager) == null || w.removeBaseMapLayers();
1101
- const T = t.maps.find((I) => I.id === E);
1102
- T && ((P = n.layersManager) == null || P.setBaseMapLayers(T), d(T), t.maps.forEach((I) => {
1103
- I.isCurrent = T === I;
1100
+ (C = n.layersManager) == null || C.removeBaseMapLayers();
1101
+ const b = t.maps.find((P) => P.id === E);
1102
+ b && ((L = n.layersManager) == null || L.setBaseMapLayers(b), d(b), t.maps.forEach((P) => {
1103
+ P.isCurrent = b === P;
1104
1104
  }));
1105
1105
  }
1106
1106
  };
1107
- return /* @__PURE__ */ N(ie, { children: [
1107
+ return /* @__PURE__ */ N(te, { children: [
1108
1108
  /* @__PURE__ */ l("label", { className: "mapLabel", children: i }),
1109
1109
  /* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((E) => /* @__PURE__ */ l("li", { className: `mapContainer ${u.mapContainer} ${E === r ? "mapContainerSelected" : ""}`, children: /* @__PURE__ */ l(
1110
1110
  "img",
@@ -1119,24 +1119,24 @@ const Sr = xe(
1119
1119
  o((r == null ? void 0 : r.title) !== void 0 ? r.title : " ");
1120
1120
  },
1121
1121
  onClick: () => {
1122
- m(E.id);
1122
+ h(E.id);
1123
1123
  }
1124
1124
  }
1125
1125
  ) }, E.id)) })
1126
1126
  ] });
1127
1127
  };
1128
- const Je = "ic_settings_24px", Pr = (e) => {
1129
- const [n, t] = D(!1), { sceneModes: i, baseMaps: o, locale: r } = e, d = we(null), u = ee(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", m = ee(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", E = ee(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1130
- return k(() => {
1131
- const w = (P) => {
1132
- var G;
1133
- const T = P.target, I = ee(d, "current");
1134
- I && !I.contains(T) && T.id !== Je && ((G = T.parentElement) == null ? void 0 : G.id) !== Je && (document.removeEventListener("click", w, !1), t(!1));
1128
+ const Je = "ic_settings_24px", Ar = (e) => {
1129
+ const [n, t] = A(!1), { sceneModes: i, baseMaps: o, locale: r } = e, d = be(null), u = ee(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", h = ee(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", E = ee(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1130
+ return I(() => {
1131
+ const C = (L) => {
1132
+ var B;
1133
+ const b = L.target, P = ee(d, "current");
1134
+ P && !P.contains(b) && b.id !== Je && ((B = b.parentElement) == null ? void 0 : B.id) !== Je && (document.removeEventListener("click", C, !1), t(!1));
1135
1135
  };
1136
- return document.addEventListener("click", w, !1), () => {
1137
- document.removeEventListener("click", w, !1);
1136
+ return document.addEventListener("click", C, !1), () => {
1137
+ document.removeEventListener("click", C, !1);
1138
1138
  };
1139
- }), /* @__PURE__ */ N(ie, { children: [
1139
+ }), /* @__PURE__ */ N(te, { children: [
1140
1140
  /* @__PURE__ */ l(
1141
1141
  Pe,
1142
1142
  {
@@ -1147,20 +1147,20 @@ const Je = "ic_settings_24px", Pr = (e) => {
1147
1147
  }
1148
1148
  ),
1149
1149
  n && /* @__PURE__ */ l("div", { id: "dialog-portal-example", className: "settingsDialogPortal", ref: d, children: /* @__PURE__ */ N(
1150
- bn,
1150
+ Mn,
1151
1151
  {
1152
1152
  open: n,
1153
1153
  onClosed: () => {
1154
1154
  t(!1);
1155
1155
  },
1156
1156
  children: [
1157
- /* @__PURE__ */ l(Tn, { children: u }),
1158
- /* @__PURE__ */ N(_n, { children: [
1159
- /* @__PURE__ */ l("h4", { className: "sectionLabel", children: m }),
1160
- /* @__PURE__ */ l(ae, { className: "mapScenesContainer", children: /* @__PURE__ */ l(_r, { sceneModes: i }) }),
1161
- /* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(ie, { children: [
1157
+ /* @__PURE__ */ l(Pn, { children: u }),
1158
+ /* @__PURE__ */ N(Dn, { children: [
1159
+ /* @__PURE__ */ l("h4", { className: "sectionLabel", children: h }),
1160
+ /* @__PURE__ */ l(ae, { className: "mapScenesContainer", children: /* @__PURE__ */ l(Mr, { sceneModes: i }) }),
1161
+ /* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(te, { children: [
1162
1162
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: E }),
1163
- /* @__PURE__ */ l(Lr, { baseMaps: o })
1163
+ /* @__PURE__ */ l(Dr, { baseMaps: o })
1164
1164
  ] }) })
1165
1165
  ] })
1166
1166
  ]
@@ -1168,10 +1168,10 @@ const Je = "ic_settings_24px", Pr = (e) => {
1168
1168
  ) })
1169
1169
  ] });
1170
1170
  };
1171
- const Mr = /* @__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: [
1171
+ const Ir = /* @__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: [
1172
1172
  /* @__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" }),
1173
1173
  /* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
1174
- ] }) }), Dr = ({ onClick: e }) => /* @__PURE__ */ l(ae, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(Pe, { icon: Mr, className: "mapLegendIcon" }) }), Ir = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1174
+ ] }) }), xr = ({ onClick: e }) => /* @__PURE__ */ l(ae, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(Pe, { icon: Ir, className: "mapLegendIcon" }) }), kr = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1175
1175
  const r = me(() => {
1176
1176
  window.open(e, "_blank");
1177
1177
  }, [e]);
@@ -1190,75 +1190,75 @@ const Mr = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1190
1190
  /* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
1191
1191
  /* @__PURE__ */ l(ae, { className: "legendActionsContainer", children: u() })
1192
1192
  ] });
1193
- }, Ar = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1194
- const o = me(() => /* @__PURE__ */ l(ae, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = me(() => e.length ? e.map((d, u) => /* @__PURE__ */ l(Ir, { legend: d, docText: n, imgText: t }, `${d.layer}_${u}`)) : o(), [e]);
1193
+ }, Or = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1194
+ const o = me(() => /* @__PURE__ */ l(ae, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = me(() => e.length ? e.map((d, u) => /* @__PURE__ */ l(kr, { legend: d, docText: n, imgText: t }, `${d.layer}_${u}`)) : o(), [e]);
1195
1195
  return /* @__PURE__ */ l(ae, { className: "mapLegendsList", children: r() });
1196
- }, kr = ({
1196
+ }, Rr = ({
1197
1197
  isOpen: e,
1198
1198
  toggleSidebar: n,
1199
1199
  title: t = "Map Legends",
1200
1200
  noLegendsText: i = "No legends to display...",
1201
1201
  actionsTexts: o = { docText: "Docs", imgText: "View Image" },
1202
1202
  legends: r = []
1203
- }) => e ? /* @__PURE__ */ N(Sn, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1204
- /* @__PURE__ */ l(Ln, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(Pn, { className: "sidebarTitle", children: t }) }),
1205
- /* @__PURE__ */ N(Mn, { className: "sidebarContent", children: [
1203
+ }) => e ? /* @__PURE__ */ N(An, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1204
+ /* @__PURE__ */ l(In, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(xn, { className: "sidebarTitle", children: t }) }),
1205
+ /* @__PURE__ */ N(kn, { className: "sidebarContent", children: [
1206
1206
  /* @__PURE__ */ l(Pe, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1207
- /* @__PURE__ */ l(Ar, { noLegendsText: i, legends: r, actionsTexts: o })
1207
+ /* @__PURE__ */ l(Or, { noLegendsText: i, legends: r, actionsTexts: o })
1208
1208
  ] })
1209
- ] }) : null, de = document.createElement("canvas"), re = de.getContext("2d"), wt = (e) => {
1209
+ ] }) : null, ue = document.createElement("canvas"), re = ue.getContext("2d"), Tt = (e) => {
1210
1210
  const i = (e == null ? void 0 : e.data) ?? [];
1211
1211
  for (let o = 3; o < i.length; o += 4)
1212
1212
  if (i[o] < 255)
1213
1213
  return !0;
1214
1214
  return !1;
1215
- }, xr = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1215
+ }, Nr = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1216
1216
  try {
1217
- re == null || re.clearRect(0, 0, de.width, de.height);
1217
+ re == null || re.clearRect(0, 0, ue.width, ue.height);
1218
1218
  let o;
1219
1219
  if (e instanceof HTMLImageElement)
1220
1220
  o = e;
1221
1221
  else if (e instanceof ImageBitmap) {
1222
- de.width = e.width, de.height = e.height, re == null || re.drawImage(e, 0, 0);
1223
- const r = re == null ? void 0 : re.getImageData(0, 0, de.width, de.height), d = wt(r);
1222
+ ue.width = e.width, ue.height = e.height, re == null || re.drawImage(e, 0, 0);
1223
+ const r = re == null ? void 0 : re.getImageData(0, 0, ue.width, ue.height), d = Tt(r);
1224
1224
  d && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(d);
1225
1225
  return;
1226
1226
  } else
1227
1227
  o = new Image(), o.crossOrigin = "anonymous", o.src = e;
1228
1228
  o.onload = () => {
1229
- de.width = o.width, de.height = o.height, re == null || re.drawImage(o, 0, 0);
1230
- const r = re == null ? void 0 : re.getImageData(0, 0, de.width, de.height);
1231
- wt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
1229
+ ue.width = o.width, ue.height = o.height, re == null || re.drawImage(o, 0, 0);
1230
+ const r = re == null ? void 0 : re.getImageData(0, 0, ue.width, ue.height);
1231
+ Tt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
1232
1232
  };
1233
1233
  } catch (o) {
1234
1234
  console.error("Could not determine image transparency. Error => ", o), i(o);
1235
1235
  }
1236
- })), Be = (e, n) => {
1237
- const { west: t, east: i, north: o, south: r } = e, { west: d, east: u, north: m, south: E } = n;
1238
- return t >= d && i <= u && o <= m && r >= E;
1239
- }, Ue = 3, Ve = "hasTransparency";
1240
- function dt(e, n, t, i, o) {
1236
+ })), Fe = (e, n) => {
1237
+ const { west: t, east: i, north: o, south: r } = e, { west: d, east: u, north: h, south: E } = n;
1238
+ return t >= d && i <= u && o <= h && r >= E;
1239
+ }, Ue = 3, ze = "hasTransparency";
1240
+ function ht(e, n, t, i, o) {
1241
1241
  return setTimeout(() => {
1242
1242
  var u;
1243
1243
  const r = (u = this.layerListInstance.find(
1244
1244
  /* eslint-disable */
1245
- (m) => {
1246
- var E, w;
1247
- return ((E = m._imageryProvider._resource) == null ? void 0 : E._url) === ((w = this._resource) == null ? void 0 : w._url);
1245
+ (h) => {
1246
+ var E, C;
1247
+ return ((E = h._imageryProvider._resource) == null ? void 0 : E._url) === ((C = this._resource) == null ? void 0 : C._url);
1248
1248
  }
1249
1249
  /* eslint-enable */
1250
- )) == null ? void 0 : u.meta, d = ee(r, Ve) === !0;
1251
- this.tileTransparencyCheckedCounter < Ue && !d && xr(o == null ? void 0 : o.url, this).then((m) => {
1250
+ )) == null ? void 0 : u.meta, d = ee(r, ze) === !0;
1251
+ this.tileTransparencyCheckedCounter < Ue && !d && Nr(o == null ? void 0 : o.url, this).then((h) => {
1252
1252
  var E;
1253
1253
  (E = this.mapViewer.layersManager) == null || E.addMetaToLayer(
1254
- { [Ve]: m },
1254
+ { [ze]: h },
1255
1255
  /* eslint-disable */
1256
- (w) => w._imageryProvider._resource._url === this._resource._url
1256
+ (C) => C._imageryProvider._resource._url === this._resource._url
1257
1257
  );
1258
1258
  });
1259
1259
  }, 0), e(n, t, i, o);
1260
1260
  }
1261
- class Zt extends st {
1261
+ class nn extends lt {
1262
1262
  constructor(t, i) {
1263
1263
  var o;
1264
1264
  super(t);
@@ -1269,10 +1269,10 @@ class Zt extends st {
1269
1269
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1270
1270
  }
1271
1271
  requestImage(t, i, o, r) {
1272
- return dt.call(this, super.requestImage.bind(this), t, i, o, r);
1272
+ return ht.call(this, super.requestImage.bind(this), t, i, o, r);
1273
1273
  }
1274
1274
  }
1275
- class Jt extends at {
1275
+ class rn extends ct {
1276
1276
  constructor(t, i) {
1277
1277
  var o;
1278
1278
  super(t);
@@ -1283,10 +1283,10 @@ class Jt extends at {
1283
1283
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1284
1284
  }
1285
1285
  requestImage(t, i, o, r) {
1286
- return dt.call(this, super.requestImage.bind(this), t, i, o, r);
1286
+ return ht.call(this, super.requestImage.bind(this), t, i, o, r);
1287
1287
  }
1288
1288
  }
1289
- class Qt extends lt {
1289
+ class on extends dt {
1290
1290
  constructor(t, i) {
1291
1291
  var o;
1292
1292
  super(t);
@@ -1297,11 +1297,11 @@ class Qt extends lt {
1297
1297
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1298
1298
  }
1299
1299
  requestImage(t, i, o, r) {
1300
- return dt.call(this, super.requestImage.bind(this), t, i, o, r);
1300
+ return ht.call(this, super.requestImage.bind(this), t, i, o, r);
1301
1301
  }
1302
1302
  }
1303
- const Or = 1, Rr = -1, bt = "TRANSPARENT_BASE_LAYER";
1304
- class Nr {
1303
+ const Br = 1, Fr = -1, _t = "TRANSPARENT_BASE_LAYER";
1304
+ class Hr {
1305
1305
  constructor(n, t, i, o) {
1306
1306
  Z(this, "mapViewer");
1307
1307
  Z(this, "legendsList");
@@ -1309,9 +1309,9 @@ class Nr {
1309
1309
  Z(this, "layers");
1310
1310
  Z(this, "legendsExtractor");
1311
1311
  Z(this, "layerManagerFootprintMetaFieldPath");
1312
- this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new ai(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
1312
+ this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new hi(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
1313
1313
  const d = Object.keys(r);
1314
- d.length === 1 && d[0] === Ve && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
1314
+ d.length === 1 && d[0] === ze && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
1315
1315
  }), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
1316
1316
  this.setLegends(), this.markRelevantLayersForExtent(), this.hideNonRelevantLayers();
1317
1317
  }), this.mapViewer.imageryLayers.layerMoved.addEventListener(() => {
@@ -1336,23 +1336,23 @@ class Nr {
1336
1336
  setBaseMapLayers(n) {
1337
1337
  n.baseRasteLayers.sort((i, o) => i.zIndex - o.zIndex).forEach((i, o) => {
1338
1338
  this.addRasterLayer(i, o, n.id);
1339
- }), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(bt), this.addTransparentImageryProvider());
1339
+ }), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(_t), this.addTransparentImageryProvider());
1340
1340
  }
1341
1341
  addRasterLayer(n, t, i) {
1342
1342
  let o;
1343
1343
  switch (n.type) {
1344
1344
  case "XYZ_LAYER": {
1345
- const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new Zt(r, this.mapViewer) : new st(r);
1345
+ const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new nn(r, this.mapViewer) : new lt(r);
1346
1346
  o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
1347
1347
  break;
1348
1348
  }
1349
1349
  case "WMS_LAYER": {
1350
- const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new Jt(r, this.mapViewer) : new at(r);
1350
+ const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new rn(r, this.mapViewer) : new ct(r);
1351
1351
  o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
1352
1352
  break;
1353
1353
  }
1354
1354
  case "WMTS_LAYER": {
1355
- const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new Qt(r, this.mapViewer) : new lt(r);
1355
+ const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new on(r, this.mapViewer) : new dt(r);
1356
1356
  o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
1357
1357
  break;
1358
1358
  }
@@ -1424,24 +1424,24 @@ class Nr {
1424
1424
  }
1425
1425
  findLayerByPOI(n, t, i = !0) {
1426
1426
  if (this.layerManagerFootprintMetaFieldPath) {
1427
- const o = yr(this.mapViewer, n, t);
1427
+ const o = Cr(this.mapViewer, n, t);
1428
1428
  return this.layers.filter((u) => !ee(u.meta, "parentBasetMapId")).filter((u) => {
1429
- const m = ee(u.meta, this.layerManagerFootprintMetaFieldPath);
1430
- return m !== void 0 ? Li(o.geometry, {
1429
+ const h = ee(u.meta, this.layerManagerFootprintMetaFieldPath);
1430
+ return h !== void 0 ? Di(o.geometry, {
1431
1431
  type: "Feature",
1432
1432
  properties: {},
1433
- geometry: m
1433
+ geometry: h
1434
1434
  }) && (i ? u.show : !0) : (console.warn("[LayerManager] [findLayerByPOI] CesiumImageryLayer has no defined footprint", u.meta), !1);
1435
- }).sort((u, m) => {
1436
- var E, w;
1437
- return ((E = m.meta) == null ? void 0 : E.zIndex) - ((w = u.meta) == null ? void 0 : w.zIndex);
1435
+ }).sort((u, h) => {
1436
+ var E, C;
1437
+ return ((E = h.meta) == null ? void 0 : E.zIndex) - ((C = u.meta) == null ? void 0 : C.zIndex);
1438
1438
  });
1439
1439
  } else
1440
1440
  return console.warn("[LayerManager] [findLayerByPOI]layerManagerFootprintMetaFieldPath is not defined"), [];
1441
1441
  }
1442
1442
  addTransparentImageryProvider() {
1443
1443
  const n = this.mapViewer.imageryLayers.addImageryProvider(
1444
- new li({
1444
+ new mi({
1445
1445
  url: "./assets/img/transparent-tile.png",
1446
1446
  /* eslint-disable @typescript-eslint/no-magic-numbers */
1447
1447
  rectangle: new Se(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
@@ -1450,7 +1450,7 @@ class Nr {
1450
1450
  0
1451
1451
  );
1452
1452
  n.meta = {
1453
- id: bt,
1453
+ id: _t,
1454
1454
  skipRelevancyCheck: !0,
1455
1455
  parentBasetMapId: "TRANSPARENT_LAYER"
1456
1456
  };
@@ -1465,12 +1465,12 @@ class Nr {
1465
1465
  return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
1466
1466
  }
1467
1467
  updateLayersOrder(n, t, i) {
1468
- const o = t > i ? Or : Rr, r = t < i ? t : i, d = t < i ? i : t;
1468
+ const o = t > i ? Br : Fr, r = t < i ? t : i, d = t < i ? i : t;
1469
1469
  this.layers.forEach((u) => {
1470
1470
  var E;
1471
1471
  if (!ee(u.meta, "parentBasetMapId")) {
1472
- const w = (E = u.meta) == null ? void 0 : E.zIndex;
1473
- u.meta.zIndex = w >= r && w <= d && w !== t ? w + o : w === t ? i : w;
1472
+ const C = (E = u.meta) == null ? void 0 : E.zIndex;
1473
+ u.meta.zIndex = C >= r && C <= d && C !== t ? C + o : C === t ? i : C;
1474
1474
  }
1475
1475
  });
1476
1476
  }
@@ -1484,17 +1484,17 @@ class Nr {
1484
1484
  try {
1485
1485
  const i = this.mapViewer.camera.computeViewRectangle();
1486
1486
  for (let o = this.layers.length - 1; o >= 0; o--) {
1487
- const r = this.layers[o], d = !nt(i) && !nt(r.rectangle) && Se.intersection(i, r.rectangle);
1487
+ const r = this.layers[o], d = !rt(i) && !rt(r.rectangle) && Se.intersection(i, r.rectangle);
1488
1488
  for (let u = this.layers.length - 1; u >= o; u--) {
1489
1489
  if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
1490
1490
  r.meta = { ...r.meta, relevantToExtent: !0 };
1491
1491
  continue;
1492
1492
  }
1493
- const m = this.layers[u], E = ((t = m.meta) == null ? void 0 : t[Ve]) === !0;
1494
- if (r !== m)
1493
+ const h = this.layers[u], E = ((t = h.meta) == null ? void 0 : t[ze]) === !0;
1494
+ if (r !== h)
1495
1495
  if (d instanceof Se) {
1496
- if (Be(i, r.rectangle))
1497
- if (Be(i, m.rectangle) && !E) {
1496
+ if (Fe(i, r.rectangle))
1497
+ if (Fe(i, h.rectangle) && !E) {
1498
1498
  r.meta = {
1499
1499
  ...r.meta ?? {},
1500
1500
  relevantToExtent: !1
@@ -1505,11 +1505,11 @@ class Nr {
1505
1505
  ...r.meta ?? {},
1506
1506
  relevantToExtent: !0
1507
1507
  };
1508
- if (Be(i, m.rectangle) && !E) {
1508
+ if (Fe(i, h.rectangle) && !E) {
1509
1509
  r.meta = { ...r.meta ?? {}, relevantToExtent: !1 };
1510
1510
  break;
1511
1511
  }
1512
- if (Be(r.rectangle, m.rectangle)) {
1512
+ if (Fe(r.rectangle, h.rectangle)) {
1513
1513
  if (r.meta = {
1514
1514
  ...r.meta ?? {},
1515
1515
  relevantToExtent: E
@@ -1531,8 +1531,8 @@ class Nr {
1531
1531
  }
1532
1532
  }
1533
1533
  }
1534
- const Tt = 212, _t = 260, Br = 0;
1535
- class cs extends ci {
1534
+ const Lt = 212, St = 260, Gr = 0;
1535
+ class ms extends pi {
1536
1536
  constructor(t, i) {
1537
1537
  super(t, i);
1538
1538
  Z(this, "layersManager");
@@ -1545,14 +1545,14 @@ class cs extends ci {
1545
1545
  this.useOptimizedTileRequests = t;
1546
1546
  }
1547
1547
  }
1548
- const en = Ae(null), Fr = en.Provider, he = () => {
1549
- const e = ke(en);
1548
+ const sn = Ie(null), Vr = sn.Provider, le = () => {
1549
+ const e = xe(sn);
1550
1550
  if (e === null)
1551
1551
  throw new Error("map context is null, please check the provider");
1552
1552
  return e;
1553
- }, ds = (e) => {
1554
- var M, W, X, R, z, Q, ne, ge;
1555
- const n = we(null), [t, i] = D(), [o, r] = D(), [d, u] = D(), [m, E] = D(), [w, P] = D(), [T, I] = D(), [G, q] = D(!1), [K, F] = D(), Y = we(), [U, A] = D(), [$, O] = D([]), [V, te] = D(), [s, a] = D(!1), y = we(), [c, f] = D(void 0), [h, v] = D(!1), [g, C] = D(), S = {
1553
+ }, ps = (e) => {
1554
+ var D, U, X, R, z, Q, ie, ge;
1555
+ const n = be(null), [t, i] = A(), [o, r] = A(), [d, u] = A(), [h, E] = A(), [C, L] = A(), [b, P] = A(), [B, $] = A(!1), [q, H] = A(), Y = be(), [K, x] = A(), [W, O] = A([]), [V, ne] = A(), [s, a] = A(!1), y = be(), [c, f] = A(void 0), [m, v] = A(!1), [g, w] = A(), S = {
1556
1556
  fullscreenButton: !0,
1557
1557
  timeline: !1,
1558
1558
  animation: !1,
@@ -1561,165 +1561,166 @@ const en = Ae(null), Fr = en.Provider, he = () => {
1561
1561
  navigationHelpButton: !1,
1562
1562
  homeButton: !1,
1563
1563
  sceneModePicker: !1,
1564
+ imageryProvider: !1,
1564
1565
  ...e
1565
- }, _ = (B, x, j, fe, be) => {
1566
- const ye = t.container, Oe = ye.clientWidth, Re = ye.clientHeight, De = fe + be;
1566
+ }, _ = (F, k, j, fe, Te) => {
1567
+ const ye = t.container, Re = ye.clientWidth, Ne = ye.clientHeight, De = fe + Te;
1567
1568
  return {
1568
- left: `${Oe - B < j ? B - (j - (Oe - B)) : B}px`,
1569
- top: `${Re - x < De ? x - (De - (Re - x)) : x}px`
1569
+ left: `${Re - F < j ? F - (j - (Re - F)) : F}px`,
1570
+ top: `${Ne - k < De ? k - (De - (Ne - k)) : k}px`
1570
1571
  };
1571
- }, b = me((B) => {
1572
+ }, T = me((F) => {
1572
1573
  if (n.current !== null) {
1573
- const x = n.current.cesiumElement, j = { x: B.offsetX, y: B.offsetY };
1574
- a(!1), f(j), C(vr(x, j.x, j.y)), a(!0), y.current = B;
1574
+ const k = n.current.cesiumElement, j = { x: F.offsetX, y: F.offsetY };
1575
+ a(!1), f(j), w(wr(k, j.x, j.y)), a(!0), y.current = F;
1575
1576
  }
1576
1577
  }, [n]);
1577
- k(() => {
1578
- var B;
1578
+ I(() => {
1579
+ var F;
1579
1580
  if (n.current !== null) {
1580
- const x = n.current.cesiumElement;
1581
- e.imageryContextMenu && (x.scene.canvas.removeEventListener("contextmenu", b), x.scene.canvas.addEventListener("contextmenu", b));
1581
+ const k = n.current.cesiumElement;
1582
+ e.imageryContextMenu && (k.scene.canvas.removeEventListener("contextmenu", T), k.scene.canvas.addEventListener("contextmenu", T));
1582
1583
  }
1583
- i((B = n.current) == null ? void 0 : B.cesiumElement);
1584
- }, [n, e.imageryContextMenu]), k(() => {
1585
- var B;
1586
- t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new Nr(
1584
+ i((F = n.current) == null ? void 0 : F.cesiumElement);
1585
+ }, [n, e.imageryContextMenu]), I(() => {
1586
+ var F;
1587
+ t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new Hr(
1587
1588
  t,
1588
- (B = e.legends) == null ? void 0 : B.mapLegendsExtractor,
1589
+ (F = e.legends) == null ? void 0 : F.mapLegendsExtractor,
1589
1590
  () => {
1590
- var x;
1591
- O((x = t.layersManager) == null ? void 0 : x.legendsList);
1591
+ var k;
1592
+ O((k = t.layersManager) == null ? void 0 : k.legendsList);
1592
1593
  },
1593
1594
  e.layerManagerFootprintMetaFieldPath
1594
1595
  ));
1595
- }, [t]), k(() => {
1596
+ }, [t]), I(() => {
1596
1597
  t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1);
1597
- }, [e.useOptimizedTileRequests, t]), k(() => {
1598
- A(e.sceneModes ?? [oe.SCENE2D, oe.SCENE3D, oe.COLUMBUS_VIEW]);
1599
- }, [e.sceneModes]), k(() => {
1600
- var x, j;
1601
- te(e.baseMaps);
1602
- const B = (x = e.baseMaps) == null ? void 0 : x.maps.find((fe) => fe.isCurrent);
1603
- B && t && ((j = t.layersManager) == null || j.setBaseMapLayers(B));
1604
- }, [e.baseMaps, t]), k(() => {
1605
- r(e.projection ?? ue.WGS84);
1606
- }, [e.projection]), k(() => {
1607
- F(e.locale);
1608
- }, [e.locale]), k(() => {
1598
+ }, [e.useOptimizedTileRequests, t]), I(() => {
1599
+ x(e.sceneModes ?? [oe.SCENE2D, oe.SCENE3D, oe.COLUMBUS_VIEW]);
1600
+ }, [e.sceneModes]), I(() => {
1601
+ var k, j;
1602
+ ne(e.baseMaps);
1603
+ const F = (k = e.baseMaps) == null ? void 0 : k.maps.find((fe) => fe.isCurrent);
1604
+ F && t && ((j = t.layersManager) == null || j.setBaseMapLayers(F));
1605
+ }, [e.baseMaps, t]), I(() => {
1606
+ r(e.projection ?? he.WGS84);
1607
+ }, [e.projection]), I(() => {
1608
+ H(e.locale);
1609
+ }, [e.locale]), I(() => {
1609
1610
  u(e.showMousePosition ?? !0);
1610
- }, [e.showMousePosition]), k(() => {
1611
+ }, [e.showMousePosition]), I(() => {
1611
1612
  E(e.showZoomLevel ?? !0);
1612
- }, [e.showZoomLevel]), k(() => {
1613
- P(e.showScale ?? !0);
1614
- }, [e.showScale]), k(() => {
1615
- I(e.showLoadingProgress ?? !0);
1616
- }, [e.showLoadingProgress]), k(() => {
1617
- const B = () => {
1613
+ }, [e.showZoomLevel]), I(() => {
1614
+ L(e.showScale ?? !0);
1615
+ }, [e.showScale]), I(() => {
1616
+ P(e.showLoadingProgress ?? !0);
1617
+ }, [e.showLoadingProgress]), I(() => {
1618
+ const F = () => {
1618
1619
  if (t === void 0)
1619
1620
  return {
1620
1621
  longitude: 0,
1621
1622
  latitude: 0,
1622
1623
  height: 0
1623
1624
  };
1624
- const x = () => {
1625
+ const k = () => {
1625
1626
  const j = t.camera.positionCartographic;
1626
1627
  return {
1627
- longitude: Ne(j.longitude),
1628
- latitude: Ne(j.latitude),
1628
+ longitude: Be(j.longitude),
1629
+ latitude: Be(j.latitude),
1629
1630
  height: j.height
1630
1631
  };
1631
1632
  };
1632
- if (t.scene.mode === Ce.SCENE3D) {
1633
- const j = new Me(
1633
+ if (t.scene.mode === we.SCENE3D) {
1634
+ const j = new Ee(
1634
1635
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1635
1636
  t.container.clientWidth / 2,
1636
1637
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1637
1638
  t.container.clientHeight / 2
1638
- ), fe = t.scene.camera.getPickRay(j), be = t.scene.globe.pick(fe, t.scene);
1639
- if (!be)
1639
+ ), fe = t.scene.camera.getPickRay(j), Te = t.scene.globe.pick(fe, t.scene);
1640
+ if (!Te)
1640
1641
  return {
1641
1642
  longitude: 0,
1642
1643
  latitude: 0,
1643
1644
  height: 0
1644
1645
  };
1645
- const ye = t.scene.globe.ellipsoid.cartesianToCartographic(be);
1646
+ const ye = t.scene.globe.ellipsoid.cartesianToCartographic(Te);
1646
1647
  return ye !== void 0 ? {
1647
- longitude: Ne(ye.longitude),
1648
- latitude: Ne(ye.latitude),
1648
+ longitude: Be(ye.longitude),
1649
+ latitude: Be(ye.latitude),
1649
1650
  height: t.scene.camera.positionCartographic.height
1650
- } : x();
1651
+ } : k();
1651
1652
  } else
1652
- return x();
1653
+ return k();
1653
1654
  };
1654
1655
  t && (t.camera.moveEnd.addEventListener(() => {
1655
- if (t.scene.mode !== Ce.MORPHING) {
1656
- const x = t.camera, j = {
1657
- position: B(),
1658
- direction: x.direction.clone(),
1659
- up: x.up.clone(),
1660
- right: x.right.clone(),
1661
- transform: x.transform.clone(),
1662
- frustum: x.frustum.clone()
1656
+ if (t.scene.mode !== we.MORPHING) {
1657
+ const k = t.camera, j = {
1658
+ position: F(),
1659
+ direction: k.direction.clone(),
1660
+ up: k.up.clone(),
1661
+ right: k.right.clone(),
1662
+ transform: k.transform.clone(),
1663
+ frustum: k.frustum.clone()
1663
1664
  };
1664
1665
  Y.current = j;
1665
1666
  }
1666
- }), T && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
1667
- t.scene.globe.tilesLoaded === !0 ? q(!1) : q(!0);
1667
+ }), b && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
1668
+ t.scene.globe.tilesLoaded === !0 ? $(!1) : $(!0);
1668
1669
  }));
1669
- }, [t]), k(() => {
1670
- const B = () => {
1670
+ }, [t]), I(() => {
1671
+ const F = () => {
1671
1672
  if (t && Y.current) {
1672
- const x = Y.current;
1673
+ const k = Y.current;
1673
1674
  t.camera.flyTo({
1674
- destination: pe.fromDegrees(x.position.longitude, x.position.latitude, x.position.height),
1675
+ destination: pe.fromDegrees(k.position.longitude, k.position.latitude, k.position.height),
1675
1676
  duration: 0
1676
1677
  });
1677
1678
  }
1678
1679
  };
1679
- return t && t.scene.morphComplete.addEventListener(B), () => {
1680
+ return t && t.scene.morphComplete.addEventListener(F), () => {
1680
1681
  if (t)
1681
1682
  try {
1682
- t.scene.morphComplete.removeEventListener(B);
1683
+ t.scene.morphComplete.removeEventListener(F);
1683
1684
  } catch {
1684
1685
  console.error("morphCompleteHandler event not cleaned");
1685
1686
  }
1686
1687
  };
1687
- }, [t]), k(() => {
1688
- const B = e.zoom, x = e.center;
1689
- t && Ge(B) && Si(x) && t.camera.flyTo({
1690
- destination: pe.fromDegrees(x[0], x[1], gr(B)),
1688
+ }, [t]), I(() => {
1689
+ const F = e.zoom, k = e.center;
1690
+ t && Ve(F) && Pi(k) && t.camera.flyTo({
1691
+ destination: pe.fromDegrees(k[0], k[1], vr(F)),
1691
1692
  duration: 0
1692
1693
  });
1693
1694
  }, [e.zoom, e.center, t]);
1694
- const L = me(() => t && Kn(
1695
- /* @__PURE__ */ N(ie, { children: [
1696
- T === !0 ? G && /* @__PURE__ */ l(Dn, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }) : /* @__PURE__ */ l(ie, {}),
1695
+ const M = me(() => t && Jn(
1696
+ /* @__PURE__ */ N(te, { children: [
1697
+ b === !0 ? B && /* @__PURE__ */ l(On, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }) : /* @__PURE__ */ l(te, {}),
1697
1698
  /* @__PURE__ */ N(ae, { className: "sideToolsContainer", children: [
1698
- /* @__PURE__ */ l(Pr, { sceneModes: U, baseMaps: V, locale: K }),
1699
- /* @__PURE__ */ l(Dr, { onClick: () => v(!h) })
1699
+ /* @__PURE__ */ l(Ar, { sceneModes: K, baseMaps: V, locale: q }),
1700
+ /* @__PURE__ */ l(xr, { onClick: () => v(!m) })
1700
1701
  ] }),
1701
1702
  /* @__PURE__ */ N(ae, { className: "toolsContainer", children: [
1702
- d === !0 ? /* @__PURE__ */ l(fr, { projection: o }) : /* @__PURE__ */ l(ie, {}),
1703
- m === !0 ? /* @__PURE__ */ l(br, { locale: K }) : /* @__PURE__ */ l(ie, {}),
1704
- w === !0 ? /* @__PURE__ */ l(Cr, { locale: K }) : /* @__PURE__ */ l(ie, {})
1703
+ d === !0 ? /* @__PURE__ */ l(Er, { projection: o }) : /* @__PURE__ */ l(te, {}),
1704
+ h === !0 ? /* @__PURE__ */ l(Lr, { locale: q }) : /* @__PURE__ */ l(te, {}),
1705
+ C === !0 ? /* @__PURE__ */ l(Tr, { locale: q }) : /* @__PURE__ */ l(te, {})
1705
1706
  ] })
1706
1707
  ] }),
1707
1708
  document.querySelector(".cesium-viewer")
1708
- ), [V, K, t, o, U, d, w, h, G]);
1709
- return /* @__PURE__ */ l(qn, { className: "viewer", full: !0, ref: n, ...S, children: /* @__PURE__ */ N(Fr, { value: t, children: [
1709
+ ), [V, q, t, o, K, d, C, m, B]);
1710
+ return /* @__PURE__ */ l(Qn, { className: "viewer", full: !0, ref: n, ...S, children: /* @__PURE__ */ N(Vr, { value: t, children: [
1710
1711
  /* @__PURE__ */ l(
1711
- kr,
1712
+ Rr,
1712
1713
  {
1713
- title: (M = e.legends) == null ? void 0 : M.title,
1714
- isOpen: h,
1715
- toggleSidebar: () => v(!h),
1716
- noLegendsText: (W = e.legends) == null ? void 0 : W.emptyText,
1717
- legends: ((X = e.legends) == null ? void 0 : X.legendsList) ?? $,
1714
+ title: (D = e.legends) == null ? void 0 : D.title,
1715
+ isOpen: m,
1716
+ toggleSidebar: () => v(!m),
1717
+ noLegendsText: (U = e.legends) == null ? void 0 : U.emptyText,
1718
+ legends: ((X = e.legends) == null ? void 0 : X.legendsList) ?? W,
1718
1719
  actionsTexts: (R = e.legends) == null ? void 0 : R.actionsTexts
1719
1720
  }
1720
1721
  ),
1721
1722
  e.children,
1722
- L(),
1723
+ M(),
1723
1724
  e.imageryContextMenu && s && c && g && ve.cloneElement(e.imageryContextMenu, {
1724
1725
  data: (z = t == null ? void 0 : t.layersManager) == null ? void 0 : z.findLayerByPOI(c.x, c.y, !1),
1725
1726
  position: {
@@ -1730,13 +1731,13 @@ const en = Ae(null), Fr = en.Provider, he = () => {
1730
1731
  style: _(
1731
1732
  c.x,
1732
1733
  c.y,
1733
- ((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ?? _t,
1734
- ((ne = e.imageryContextMenuSize) == null ? void 0 : ne.height) ?? Tt,
1735
- ((ge = e.imageryContextMenuSize) == null ? void 0 : ge.dynamicHeightIncrement) ?? Br
1734
+ ((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ?? St,
1735
+ ((ie = e.imageryContextMenuSize) == null ? void 0 : ie.height) ?? Lt,
1736
+ ((ge = e.imageryContextMenuSize) == null ? void 0 : ge.dynamicHeightIncrement) ?? Gr
1736
1737
  ),
1737
1738
  size: e.imageryContextMenuSize ?? {
1738
- height: Tt,
1739
- width: _t
1739
+ height: Lt,
1740
+ width: St
1740
1741
  },
1741
1742
  handleClose: () => {
1742
1743
  a(!s);
@@ -1744,66 +1745,66 @@ const en = Ae(null), Fr = en.Provider, he = () => {
1744
1745
  contextEvt: y.current
1745
1746
  })
1746
1747
  ] }) });
1747
- }, Hr = 0, us = (e) => {
1748
- const n = he();
1748
+ }, zr = 0, gs = (e) => {
1749
+ const n = le();
1749
1750
  return /* @__PURE__ */ l(
1750
- Yn,
1751
+ ei,
1751
1752
  {
1752
1753
  ...e,
1753
1754
  onReady: (t) => {
1754
1755
  e.isZoomTo === !0 && n.zoomTo(t);
1755
1756
  const i = n.scene;
1756
1757
  i.globe.depthTestAgainstTerrain = !0;
1757
- const o = We.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? Hr;
1758
+ const o = Oe.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? zr;
1758
1759
  if (r) {
1759
- const d = pe.fromRadians(o.longitude, o.latitude, o.height), u = pe.fromRadians(o.longitude, o.latitude, o.height + r), m = pe.subtract(u, d, new pe());
1760
- t.modelMatrix = di.fromTranslation(m);
1760
+ const d = pe.fromRadians(o.longitude, o.latitude, o.height), u = pe.fromRadians(o.longitude, o.latitude, o.height + r), h = pe.subtract(u, d, new pe());
1761
+ t.modelMatrix = gi.fromTranslation(h);
1761
1762
  }
1762
1763
  }
1763
1764
  }
1764
1765
  );
1765
- }, St = 180, Lt = 1e-3, Pt = -1, Mt = (e) => Math.abs(e) / e, Dt = (e) => {
1766
- Math.abs(e[0]) === St && Math.abs(e[1]) === St / 2 && (e[0] += Pt * Mt(e[0]) * Lt, e[1] += Pt * Mt(e[1]) * Lt);
1767
- }, It = (e) => {
1766
+ }, Mt = 180, Pt = 1e-3, Dt = -1, At = (e) => Math.abs(e) / e, It = (e) => {
1767
+ Math.abs(e[0]) === Mt && (e[0] += Dt * At(e[0]) * Pt), Math.abs(e[1]) === Mt / 2 && (e[1] += Dt * At(e[1]) * Pt);
1768
+ }, xt = (e) => {
1768
1769
  switch (e.type) {
1769
1770
  case "LineString":
1770
1771
  e.coordinates.forEach((n) => {
1771
- Dt(n);
1772
+ It(n);
1772
1773
  });
1773
1774
  break;
1774
1775
  case "Polygon":
1775
1776
  e.coordinates.forEach((n) => {
1776
1777
  n.forEach((t) => {
1777
- Dt(t);
1778
+ It(t);
1778
1779
  });
1779
1780
  });
1780
1781
  break;
1781
1782
  }
1782
- }, hs = (e) => {
1783
+ }, fs = (e) => {
1783
1784
  const { data: n, ...t } = e;
1784
1785
  return n && (typeof n.features < "u" ? n.features.forEach((i) => {
1785
- It(i.geometry);
1786
- }) : It(n)), /* @__PURE__ */ l(Xn, { data: n, ...t });
1787
- }, je = (e) => {
1788
- const { meta: n, ...t } = e, i = he();
1789
- return on(() => {
1786
+ xt(i.geometry);
1787
+ }) : xt(n)), /* @__PURE__ */ l(ti, { data: n, ...t });
1788
+ }, Ke = (e) => {
1789
+ const { meta: n, ...t } = e, i = le();
1790
+ return dn(() => {
1790
1791
  var o;
1791
1792
  (o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
1792
- }, [n, i]), /* @__PURE__ */ l(Zn, { ...t });
1793
- }, ms = (e) => {
1794
- const { options: n, ...t } = e, i = he(), o = i.shouldOptimizedTileRequests ? new Jt(n, i) : new at(n);
1795
- return /* @__PURE__ */ l(je, { ...t, imageryProvider: o });
1796
- }, ps = (e) => {
1797
- const { options: n, ...t } = e, i = he(), o = i.shouldOptimizedTileRequests ? new Qt(n, i) : new lt(n);
1798
- return /* @__PURE__ */ l(je, { ...t, imageryProvider: o });
1799
- }, gs = (e) => {
1800
- const { options: n, ...t } = e, i = he(), o = i.shouldOptimizedTileRequests ? new Zt(n, i) : new st(n);
1801
- return /* @__PURE__ */ l(je, { ...t, imageryProvider: o });
1802
- }, fs = (e) => {
1793
+ }, [n, i]), /* @__PURE__ */ l(ni, { ...t });
1794
+ }, ys = (e) => {
1795
+ const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new rn(n, i) : new ct(n);
1796
+ return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
1797
+ }, vs = (e) => {
1798
+ const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new on(n, i) : new dt(n);
1799
+ return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
1800
+ }, Es = (e) => {
1801
+ const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new nn(n, i) : new lt(n);
1802
+ return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
1803
+ }, Cs = (e) => {
1803
1804
  const { options: n, ...t } = e;
1804
- return /* @__PURE__ */ l(je, { ...t, imageryProvider: new ui(n) });
1805
- }, Gr = (e) => /* @__PURE__ */ l(Jn, { ...e }), ys = (e) => /* @__PURE__ */ l(Gt, { ...e }), Vr = (e) => /* @__PURE__ */ l(Gt, { ...e }), zr = (e) => /* @__PURE__ */ l(Qn, { ...e }), $r = (e) => /* @__PURE__ */ l(ei, { ...e }), Wr = (e) => /* @__PURE__ */ l(ti, { ...e }), Ur = (e) => /* @__PURE__ */ l(ni, { ...e });
1806
- var Ee = function() {
1805
+ return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: new fi(n) });
1806
+ }, $r = (e) => /* @__PURE__ */ l(ii, { ...e }), ws = (e) => /* @__PURE__ */ l($t, { ...e }), Wr = (e) => /* @__PURE__ */ l($t, { ...e }), Ur = (e) => /* @__PURE__ */ l(ri, { ...e }), Kr = (e) => /* @__PURE__ */ l(oi, { ...e }), jr = (e) => /* @__PURE__ */ l(si, { ...e }), qr = (e) => /* @__PURE__ */ l(ai, { ...e });
1807
+ var Ce = function() {
1807
1808
  var e = p.Ellipsoid.WGS84, n, t = p.Material.fromType(p.Material.ColorType);
1808
1809
  function i(s, a = new p.Color(1, 1, 0, 0.5), y = new p.Color(1, 1, 1, 1)) {
1809
1810
  this._scene = s.scene, t.uniforms.color = a, n = y, this._tooltip = {
@@ -1815,27 +1816,27 @@ var Ee = function() {
1815
1816
  }
1816
1817
  i.prototype.initialiseHandlers = function() {
1817
1818
  var s = this._scene, a = this, y = new p.ScreenSpaceEventHandler(s.canvas);
1818
- function c(h, v) {
1819
+ function c(m, v) {
1819
1820
  if (a._handlersMuted != !0) {
1820
1821
  var g = s.pick(v);
1821
- g && g.primitive && g.primitive[h] && g.primitive[h](v);
1822
+ g && g.primitive && g.primitive[m] && g.primitive[m](v);
1822
1823
  }
1823
1824
  }
1824
- y.setInputAction(function(h) {
1825
- c("leftClick", h.position);
1826
- }, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(h) {
1827
- c("leftDoubleClick", h.position);
1825
+ y.setInputAction(function(m) {
1826
+ c("leftClick", m.position);
1827
+ }, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(m) {
1828
+ c("leftDoubleClick", m.position);
1828
1829
  }, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
1829
1830
  var f;
1830
- y.setInputAction(function(h) {
1831
+ y.setInputAction(function(m) {
1831
1832
  if (a._handlersMuted != !0) {
1832
- var v = s.pick(h.endPosition);
1833
- f && (!v || f != v.primitive) && (!(f.isDestroyed && f.isDestroyed()) && f.mouseOut(h.endPosition), f = null), v && v.primitive && (v = v.primitive, v.mouseOut && (f = v), v.mouseMove && v.mouseMove(h.endPosition));
1833
+ var v = s.pick(m.endPosition);
1834
+ f && (!v || f != v.primitive) && (!(f.isDestroyed && f.isDestroyed()) && f.mouseOut(m.endPosition), f = null), v && v.primitive && (v = v.primitive, v.mouseOut && (f = v), v.mouseMove && v.mouseMove(m.endPosition));
1834
1835
  }
1835
- }, p.ScreenSpaceEventType.MOUSE_MOVE), y.setInputAction(function(h) {
1836
- c("leftUp", h.position);
1837
- }, p.ScreenSpaceEventType.LEFT_UP), y.setInputAction(function(h) {
1838
- c("leftDown", h.position);
1836
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), y.setInputAction(function(m) {
1837
+ c("leftUp", m.position);
1838
+ }, p.ScreenSpaceEventType.LEFT_UP), y.setInputAction(function(m) {
1839
+ c("leftDown", m.position);
1839
1840
  }, p.ScreenSpaceEventType.LEFT_DOWN);
1840
1841
  }, i.prototype.setListener = function(s, a, y) {
1841
1842
  s[a] = y;
@@ -1876,9 +1877,9 @@ var Ee = function() {
1876
1877
  }),
1877
1878
  material: t,
1878
1879
  granularity: Math.PI / 180
1879
- }), d = O(o, {}), u = O(o, {}), m = O(o, {}), E = O(r, {
1880
+ }), d = O(o, {}), u = O(o, {}), h = O(o, {}), E = O(r, {
1880
1881
  rotation: 0
1881
- }), w = O(o, {
1882
+ }), C = O(o, {
1882
1883
  width: 5,
1883
1884
  geodesic: !0,
1884
1885
  granularity: 1e4,
@@ -1886,11 +1887,11 @@ var Ee = function() {
1886
1887
  aboveGround: !1
1887
1888
  }),
1888
1889
  material: t
1889
- }), P = function() {
1890
+ }), L = function() {
1890
1891
  function s() {
1891
1892
  }
1892
1893
  return s.prototype.initialiseOptions = function(a) {
1893
- $(this, a), this._ellipsoid = void 0, this._granularity = void 0, this._height = void 0, this._textureRotationAngle = void 0, this._id = void 0, this._createPrimitive = !0, this._primitive = void 0, this._outlinePolygon = void 0;
1894
+ W(this, a), this._ellipsoid = void 0, this._granularity = void 0, this._height = void 0, this._textureRotationAngle = void 0, this._id = void 0, this._createPrimitive = !0, this._primitive = void 0, this._outlinePolygon = void 0;
1894
1895
  }, s.prototype.setAttribute = function(a, y) {
1895
1896
  this[a] = y, this._createPrimitive = !0;
1896
1897
  }, s.prototype.getAttribute = function(a) {
@@ -1935,8 +1936,8 @@ var Ee = function() {
1935
1936
  })
1936
1937
  }));
1937
1938
  }
1938
- var h = this._primitive;
1939
- h.appearance.material = this.material, h.debugShowBoundingVolume = this.debugShowBoundingVolume, h.update(a, y, c), this._outlinePolygon && this._outlinePolygon.update(a, y, c);
1939
+ var m = this._primitive;
1940
+ m.appearance.material = this.material, m.debugShowBoundingVolume = this.debugShowBoundingVolume, m.update(a, y, c), this._outlinePolygon && this._outlinePolygon.update(a, y, c);
1940
1941
  }
1941
1942
  }, s.prototype.isDestroyed = function() {
1942
1943
  return !1;
@@ -1952,7 +1953,7 @@ var Ee = function() {
1952
1953
  throw new p.DeveloperError("Extent is required");
1953
1954
  a = O(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
1954
1955
  }
1955
- return s.prototype = new P(), s.prototype.setExtent = function(a) {
1956
+ return s.prototype = new L(), s.prototype.setExtent = function(a) {
1956
1957
  this.setAttribute("extent", a);
1957
1958
  }, s.prototype.getExtent = function() {
1958
1959
  return this.getAttribute("extent");
@@ -1975,7 +1976,7 @@ var Ee = function() {
1975
1976
  function s(a) {
1976
1977
  a = O(a, r), this.initialiseOptions(a), this.isPolygon = !0;
1977
1978
  }
1978
- return s.prototype = new P(), s.prototype.setPositions = function(a) {
1979
+ return s.prototype = new L(), s.prototype.setPositions = function(a) {
1979
1980
  this.setAttribute("positions", a);
1980
1981
  }, s.prototype.getPositions = function() {
1981
1982
  return this.getAttribute("positions");
@@ -2000,7 +2001,7 @@ var Ee = function() {
2000
2001
  throw new p.DeveloperError("Center and radius are required");
2001
2002
  a = O(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
2002
2003
  }
2003
- return s.prototype = new P(), s.prototype.setCenter = function(a) {
2004
+ return s.prototype = new L(), s.prototype.setCenter = function(a) {
2004
2005
  this.setAttribute("center", a);
2005
2006
  }, s.prototype.setRadius = function(a) {
2006
2007
  this.setAttribute("radius", Math.max(0.1, a));
@@ -2031,7 +2032,7 @@ var Ee = function() {
2031
2032
  throw new p.DeveloperError("Center and semi major and semi minor axis are required");
2032
2033
  a = O(a, E), this.initialiseOptions(a);
2033
2034
  }
2034
- return s.prototype = new P(), s.prototype.setCenter = function(a) {
2035
+ return s.prototype = new L(), s.prototype.setCenter = function(a) {
2035
2036
  this.setAttribute("center", a);
2036
2037
  }, s.prototype.setSemiMajorAxis = function(a) {
2037
2038
  a < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", a);
@@ -2070,9 +2071,9 @@ var Ee = function() {
2070
2071
  }, s;
2071
2072
  }(), i.PolylinePrimitive = function() {
2072
2073
  function s(a) {
2073
- a = O(a, w), this.initialiseOptions(a);
2074
+ a = O(a, C), this.initialiseOptions(a);
2074
2075
  }
2075
- return s.prototype = new P(), s.prototype.setPositions = function(a) {
2076
+ return s.prototype = new L(), s.prototype.setPositions = function(a) {
2076
2077
  this.setAttribute("positions", a);
2077
2078
  }, s.prototype.setWidth = function(a) {
2078
2079
  this.setAttribute("width", a);
@@ -2095,15 +2096,15 @@ var Ee = function() {
2095
2096
  });
2096
2097
  }, s;
2097
2098
  }();
2098
- var T = {
2099
+ var b = {
2099
2100
  iconUrl: "./assets/img/dragIcon.png",
2100
2101
  shiftX: 0,
2101
2102
  shiftY: 0
2102
- }, I = {
2103
+ }, P = {
2103
2104
  iconUrl: "./assets/img/dragIcon.png",
2104
2105
  shiftX: 0,
2105
2106
  shiftY: 0
2106
- }, G = {
2107
+ }, B = {
2107
2108
  iconUrl: "./assets/img/dragIconLight.png",
2108
2109
  shiftX: 0,
2109
2110
  shiftY: 0
@@ -2112,7 +2113,7 @@ var Ee = function() {
2112
2113
  var c = new i.BillboardGroup(this, a);
2113
2114
  return c.addBillboards(s, y), c;
2114
2115
  }, i.BillboardGroup = function(s, a) {
2115
- this._drawHelper = s, this._scene = s._scene, this._options = O(a, T);
2116
+ this._drawHelper = s, this._scene = s._scene, this._options = O(a, b);
2116
2117
  var y = new p.BillboardCollection();
2117
2118
  this._scene.primitives.add(y), this._billboards = y, this._orderedBillboards = [];
2118
2119
  }, i.BillboardGroup.prototype.createBillboard = function(s, a) {
@@ -2128,33 +2129,33 @@ var Ee = function() {
2128
2129
  color: n
2129
2130
  });
2130
2131
  if (a) {
2131
- let h = function(g) {
2132
+ let m = function(g) {
2132
2133
  f.enableRotate = g;
2133
2134
  }, v = function() {
2134
- for (var g = 0, C = c._orderedBillboards.length; g < C && c._orderedBillboards[g] != y; ++g)
2135
+ for (var g = 0, w = c._orderedBillboards.length; g < w && c._orderedBillboards[g] != y; ++g)
2135
2136
  ;
2136
2137
  return g;
2137
2138
  };
2138
2139
  var c = this, f = this._scene.screenSpaceCameraController;
2139
2140
  if (a.dragHandlers) {
2140
2141
  var c = this;
2141
- V(y, "leftDown", function(C) {
2142
- function S(L) {
2143
- y.position = L;
2144
- for (var M = 0, W = c._orderedBillboards.length; M < W && c._orderedBillboards[M] != y; ++M)
2142
+ V(y, "leftDown", function(w) {
2143
+ function S(M) {
2144
+ y.position = M;
2145
+ for (var D = 0, U = c._orderedBillboards.length; D < U && c._orderedBillboards[D] != y; ++D)
2145
2146
  ;
2146
- a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(), L);
2147
+ a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(), M);
2147
2148
  }
2148
- function _(L) {
2149
- b.destroy(), h(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(v(), L);
2149
+ function _(M) {
2150
+ T.destroy(), m(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(v(), M);
2150
2151
  }
2151
- var b = new p.ScreenSpaceEventHandler(c._scene.canvas);
2152
- b.setInputAction(function(L) {
2153
- var M = c._scene.camera.pickEllipsoid(L.endPosition, e);
2154
- M ? S(M) : _(M);
2155
- }, p.ScreenSpaceEventType.MOUSE_MOVE), b.setInputAction(function(L) {
2156
- _(c._scene.camera.pickEllipsoid(L.position, e));
2157
- }, p.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(v(), c._scene.camera.pickEllipsoid(C, e));
2152
+ var T = new p.ScreenSpaceEventHandler(c._scene.canvas);
2153
+ T.setInputAction(function(M) {
2154
+ var D = c._scene.camera.pickEllipsoid(M.endPosition, e);
2155
+ D ? S(D) : _(D);
2156
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), T.setInputAction(function(M) {
2157
+ _(c._scene.camera.pickEllipsoid(M.position, e));
2158
+ }, p.ScreenSpaceEventType.LEFT_UP), m(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(v(), c._scene.camera.pickEllipsoid(w, e));
2158
2159
  });
2159
2160
  }
2160
2161
  a.onDoubleClick && V(y, "leftDoubleClick", function(g) {
@@ -2189,69 +2190,69 @@ var Ee = function() {
2189
2190
  }, i.BillboardGroup.prototype.setOnTop = function() {
2190
2191
  this._scene.primitives.raiseToTop(this._billboards);
2191
2192
  }, i.prototype.startDrawingMarker = function(a) {
2192
- var a = O(a, T);
2193
+ var a = O(a, b);
2193
2194
  this.startDrawing(function() {
2194
- h.remove(), v.destroy(), f.setVisible(!1);
2195
+ m.remove(), v.destroy(), f.setVisible(!1);
2195
2196
  });
2196
2197
  var y = this, c = this._scene;
2197
2198
  c.primitives;
2198
- var f = this._tooltip, h = new i.BillboardGroup(this, a), v = new p.ScreenSpaceEventHandler(c.canvas);
2199
+ var f = this._tooltip, m = new i.BillboardGroup(this, a), v = new p.ScreenSpaceEventHandler(c.canvas);
2199
2200
  v.setInputAction(function(g) {
2200
2201
  if (g.position != null) {
2201
- var C = c.camera.pickEllipsoid(g.position, e);
2202
- C && (h.addBillboard(C), y.stopDrawing(), a.callback(C));
2202
+ var w = c.camera.pickEllipsoid(g.position, e);
2203
+ w && (m.addBillboard(w), y.stopDrawing(), a.callback(w));
2203
2204
  }
2204
2205
  }, p.ScreenSpaceEventType.LEFT_CLICK), v.setInputAction(function(g) {
2205
- var C = g.endPosition;
2206
- if (C != null) {
2207
- var S = c.camera.pickEllipsoid(C, e);
2206
+ var w = g.endPosition;
2207
+ if (w != null) {
2208
+ var S = c.camera.pickEllipsoid(w, e);
2208
2209
  S ? f.showAt(
2209
- C,
2210
- "<p>Click to add your marker. Position is: </p>" + U(e.cartesianToCartographic(S))
2211
- ) : f.showAt(C, "<p>Click on the globe to add your marker.</p>");
2210
+ w,
2211
+ "<p>Click to add your marker. Position is: </p>" + K(e.cartesianToCartographic(S))
2212
+ ) : f.showAt(w, "<p>Click on the globe to add your marker.</p>");
2212
2213
  }
2213
2214
  }, p.ScreenSpaceEventType.MOUSE_MOVE);
2214
2215
  }, i.prototype.startDrawingPolygon = function(a) {
2215
2216
  var a = O(a, r);
2216
2217
  this.startDrawingPolyshape(!0, a);
2217
2218
  }, i.prototype.startDrawingPolyline = function(a) {
2218
- var a = O(a, w);
2219
+ var a = O(a, C);
2219
2220
  this.startDrawingPolyshape(!1, a);
2220
2221
  }, i.prototype.startDrawingPolyshape = function(s, a) {
2221
2222
  this.startDrawing(function() {
2222
- f.remove(g), S.remove(), _.destroy(), h.setVisible(!1), F(c);
2223
+ f.remove(g), S.remove(), _.destroy(), m.setVisible(!1), H(c);
2223
2224
  });
2224
- var y = this, c = this._scene, f = c.primitives, h = this._tooltip, v = s ? 3 : 2, g;
2225
- s ? g = new Ee.PolygonPrimitive(a) : g = new Ee.PolylinePrimitive(a), g.asynchronous = !1, f.add(g);
2226
- var C = [], S = new i.BillboardGroup(this, T), _ = new p.ScreenSpaceEventHandler(c.canvas);
2227
- K(c), _.setInputAction(function(b) {
2228
- if (b.position != null) {
2229
- var L = c.camera.pickEllipsoid(b.position, e);
2230
- L && (C.length == 0 && (C.push(L.clone()), S.addBillboard(C[0])), C.length >= v && (g.positions = C, g._createPrimitive = !0), C.push(L), S.addBillboard(L));
2225
+ var y = this, c = this._scene, f = c.primitives, m = this._tooltip, v = s ? 3 : 2, g;
2226
+ s ? g = new Ce.PolygonPrimitive(a) : g = new Ce.PolylinePrimitive(a), g.asynchronous = !1, f.add(g);
2227
+ var w = [], S = new i.BillboardGroup(this, b), _ = new p.ScreenSpaceEventHandler(c.canvas);
2228
+ q(c), _.setInputAction(function(T) {
2229
+ if (T.position != null) {
2230
+ var M = c.camera.pickEllipsoid(T.position, e);
2231
+ M && (w.length == 0 && (w.push(M.clone()), S.addBillboard(w[0])), w.length >= v && (g.positions = w, g._createPrimitive = !0), w.push(M), S.addBillboard(M));
2231
2232
  }
2232
- }, p.ScreenSpaceEventType.LEFT_CLICK), _.setInputAction(function(b) {
2233
- var L = b.endPosition;
2234
- if (L != null)
2235
- if (C.length == 0)
2236
- h.showAt(L, "<p>Click to add first point</p>");
2233
+ }, p.ScreenSpaceEventType.LEFT_CLICK), _.setInputAction(function(T) {
2234
+ var M = T.endPosition;
2235
+ if (M != null)
2236
+ if (w.length == 0)
2237
+ m.showAt(M, "<p>Click to add first point</p>");
2237
2238
  else {
2238
- var M = c.camera.pickEllipsoid(L, e);
2239
- M && (C.pop(), M.y += 1 + Math.random(), C.push(M), C.length >= v && (g.positions = C, g._createPrimitive = !0), S.getBillboard(C.length - 1).position = M, h.showAt(
2240
- L,
2241
- "<p>Click to add new point (" + C.length + ")</p>" + (C.length > v ? "<p>Double click to finish drawing</p>" : "")
2239
+ var D = c.camera.pickEllipsoid(M, e);
2240
+ D && (w.pop(), D.y += 1 + Math.random(), w.push(D), w.length >= v && (g.positions = w, g._createPrimitive = !0), S.getBillboard(w.length - 1).position = D, m.showAt(
2241
+ M,
2242
+ "<p>Click to add new point (" + w.length + ")</p>" + (w.length > v ? "<p>Double click to finish drawing</p>" : "")
2242
2243
  ));
2243
2244
  }
2244
- }, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(b) {
2245
- var L = b.position;
2246
- if (L != null) {
2247
- if (C.length < v + 2)
2245
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(T) {
2246
+ var M = T.position;
2247
+ if (M != null) {
2248
+ if (w.length < v + 2)
2248
2249
  return;
2249
- var M = c.camera.pickEllipsoid(L, e);
2250
- M && (F(c), y.stopDrawing(), typeof a.callback == "function" && (C.length - 1, a.callback(C)));
2250
+ var D = c.camera.pickEllipsoid(M, e);
2251
+ D && (H(c), y.stopDrawing(), typeof a.callback == "function" && (w.length - 1, a.callback(w)));
2251
2252
  }
2252
2253
  }, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2253
2254
  };
2254
- function q(s) {
2255
+ function $(s) {
2255
2256
  return e.cartographicArrayToCartesianArray([
2256
2257
  p.Rectangle.northwest(s),
2257
2258
  p.Rectangle.northeast(s),
@@ -2259,58 +2260,58 @@ var Ee = function() {
2259
2260
  p.Rectangle.southwest(s)
2260
2261
  ]);
2261
2262
  }
2262
- function K(s) {
2263
+ function q(s) {
2263
2264
  s && (s.canvas.style.cursor = "crosshair");
2264
2265
  }
2265
- function F(s) {
2266
+ function H(s) {
2266
2267
  s && (s.canvas.style.cursor = "");
2267
2268
  }
2268
2269
  i.prototype.startDrawingExtent = function(a) {
2269
2270
  var a = O(a, r);
2270
2271
  this.startDrawing(function() {
2271
- g != null && f.remove(g), C != null && C.remove(), S.destroy(), h.setVisible(!1), F(c);
2272
+ g != null && f.remove(g), w != null && w.remove(), S.destroy(), m.setVisible(!1), H(c);
2272
2273
  });
2273
- var y = this, c = this._scene, f = this._scene.primitives, h = this._tooltip, v = null, g = null, C = null, S = new p.ScreenSpaceEventHandler(c.canvas);
2274
- K(c);
2275
- function _(b) {
2276
- g == null && (g = new Ee.ExtentPrimitive({
2277
- extent: b,
2274
+ var y = this, c = this._scene, f = this._scene.primitives, m = this._tooltip, v = null, g = null, w = null, S = new p.ScreenSpaceEventHandler(c.canvas);
2275
+ q(c);
2276
+ function _(T) {
2277
+ g == null && (g = new Ce.ExtentPrimitive({
2278
+ extent: T,
2278
2279
  material: a.material
2279
- }), g.asynchronous = !1, f.add(g)), g.setExtent(b);
2280
- var L = q(b);
2281
- C == null ? (C = new i.BillboardGroup(y, T), C.addBillboards(L)) : C.updateBillboardsPositions(L);
2280
+ }), g.asynchronous = !1, f.add(g)), g.setExtent(T);
2281
+ var M = $(T);
2282
+ w == null ? (w = new i.BillboardGroup(y, b), w.addBillboards(M)) : w.updateBillboardsPositions(M);
2282
2283
  }
2283
- S.setInputAction(function(b) {
2284
- if (b.position != null) {
2285
- var L = c.camera.pickEllipsoid(b.position, e);
2286
- if (L)
2284
+ S.setInputAction(function(T) {
2285
+ if (T.position != null) {
2286
+ var M = c.camera.pickEllipsoid(T.position, e);
2287
+ if (M)
2287
2288
  if (g == null) {
2288
- v = e.cartesianToCartographic(L);
2289
- var M = Y(v, v);
2290
- _(M);
2289
+ v = e.cartesianToCartographic(M);
2290
+ var D = Y(v, v);
2291
+ _(D);
2291
2292
  } else
2292
- y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(L)));
2293
+ y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(M)));
2293
2294
  }
2294
- }, p.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(b) {
2295
- var L = b.endPosition;
2296
- if (L != null)
2295
+ }, p.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(T) {
2296
+ var M = T.endPosition;
2297
+ if (M != null)
2297
2298
  if (g == null)
2298
- h.showAt(L, "<p>Click to start drawing rectangle</p>");
2299
+ m.showAt(M, "<p>Click to start drawing rectangle</p>");
2299
2300
  else {
2300
- var M = c.camera.pickEllipsoid(L, e);
2301
- if (M) {
2302
- var W = Y(v, e.cartesianToCartographic(M));
2303
- _(W), h.showAt(L, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
2301
+ var D = c.camera.pickEllipsoid(M, e);
2302
+ if (D) {
2303
+ var U = Y(v, e.cartesianToCartographic(D));
2304
+ _(U), m.showAt(M, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
2304
2305
  }
2305
2306
  }
2306
2307
  }, p.ScreenSpaceEventType.MOUSE_MOVE);
2307
2308
  }, i.prototype.startDrawingCircle = function(a) {
2308
2309
  var a = O(a, r);
2309
2310
  this.startDrawing(function() {
2310
- v != null && f.remove(v), g.remove(), C.destroy(), h.setVisible(!1);
2311
+ v != null && f.remove(v), g.remove(), w.destroy(), m.setVisible(!1);
2311
2312
  });
2312
- var y = this, c = this._scene, f = this._scene.primitives, h = this._tooltip, v = null, g = null, C = new p.ScreenSpaceEventHandler(c.canvas);
2313
- C.setInputAction(function(S) {
2313
+ var y = this, c = this._scene, f = this._scene.primitives, m = this._tooltip, v = null, g = null, w = new p.ScreenSpaceEventHandler(c.canvas);
2314
+ w.setInputAction(function(S) {
2314
2315
  if (S.position != null) {
2315
2316
  var _ = c.camera.pickEllipsoid(S.position, e);
2316
2317
  _ && (v == null ? (v = new i.CirclePrimitive({
@@ -2318,16 +2319,16 @@ var Ee = function() {
2318
2319
  radius: 0,
2319
2320
  asynchronous: !1,
2320
2321
  material: a.material
2321
- }), f.add(v), g = new i.BillboardGroup(y, T), g.addBillboards([_])) : (typeof a.callback == "function" && a.callback(v.getCenter(), v.getRadius()), y.stopDrawing()));
2322
+ }), f.add(v), g = new i.BillboardGroup(y, b), g.addBillboards([_])) : (typeof a.callback == "function" && a.callback(v.getCenter(), v.getRadius()), y.stopDrawing()));
2322
2323
  }
2323
- }, p.ScreenSpaceEventType.LEFT_DOWN), C.setInputAction(function(S) {
2324
+ }, p.ScreenSpaceEventType.LEFT_DOWN), w.setInputAction(function(S) {
2324
2325
  var _ = S.endPosition;
2325
2326
  if (_ != null)
2326
2327
  if (v == null)
2327
- h.showAt(_, "<p>Click to start drawing the circle</p>");
2328
+ m.showAt(_, "<p>Click to start drawing the circle</p>");
2328
2329
  else {
2329
- var b = c.camera.pickEllipsoid(_, e);
2330
- b && (v.setRadius(p.Cartesian3.distance(v.getCenter(), b)), g.updateBillboardsPositions(b), h.showAt(_, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
2330
+ var T = c.camera.pickEllipsoid(_, e);
2331
+ T && (v.setRadius(p.Cartesian3.distance(v.getCenter(), T)), g.updateBillboardsPositions(T), m.showAt(_, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
2331
2332
  }
2332
2333
  }, p.ScreenSpaceEventType.MOUSE_MOVE);
2333
2334
  }, i.prototype.enhancePrimitives = function() {
@@ -2337,24 +2338,24 @@ var Ee = function() {
2337
2338
  return;
2338
2339
  this._editable = !0;
2339
2340
  var c = this, f = this;
2340
- function h(v) {
2341
+ function m(v) {
2341
2342
  s._scene.screenSpaceCameraController.enableRotate = v;
2342
2343
  }
2343
2344
  V(c, "leftDown", function(v) {
2344
2345
  function g(_) {
2345
2346
  c.position = _, f.executeListeners({ name: "drag", positions: _ });
2346
2347
  }
2347
- function C(_) {
2348
- S.destroy(), h(!0), f.executeListeners({ name: "dragEnd", positions: _ });
2348
+ function w(_) {
2349
+ S.destroy(), m(!0), f.executeListeners({ name: "dragEnd", positions: _ });
2349
2350
  }
2350
2351
  var S = new p.ScreenSpaceEventHandler(s._scene.canvas);
2351
2352
  S.setInputAction(function(_) {
2352
- var b = s._scene.camera.pickEllipsoid(_.endPosition, e);
2353
- b ? g(b) : C(b);
2353
+ var T = s._scene.camera.pickEllipsoid(_.endPosition, e);
2354
+ T ? g(T) : w(T);
2354
2355
  }, p.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(_) {
2355
- C(s._scene.camera.pickEllipsoid(_.position, e));
2356
- }, p.ScreenSpaceEventType.LEFT_UP), h(!1);
2357
- }), te(c);
2356
+ w(s._scene.camera.pickEllipsoid(_.position, e));
2357
+ }, p.ScreenSpaceEventType.LEFT_UP), m(!1);
2358
+ }), ne(c);
2358
2359
  };
2359
2360
  function a(c) {
2360
2361
  s._scene, !(this._highlighted && this._highlighted == c) && this._editMode !== !0 && (this._highlighted = c, c ? (s.setHighlighted(this), this._strokeColor = this.strokeColor, this.setStrokeStyle(p.Color.fromCssColorString("white"), this.strokeWidth)) : this._strokeColor ? this.setStrokeStyle(this._strokeColor, this.strokeWidth) : this.setStrokeStyle(void 0, void 0));
@@ -2363,18 +2364,18 @@ var Ee = function() {
2363
2364
  if (this._editMode != c)
2364
2365
  if (s.disableAllHighlights(), c) {
2365
2366
  s.setEdited(this);
2366
- var f = s._scene, h = this;
2367
+ var f = s._scene, m = this;
2367
2368
  if (this._markers == null) {
2368
- let M = function(R, z) {
2369
+ let D = function(R, z) {
2369
2370
  var Q = R - 1 < 0 ? z.length - 1 : R - 1;
2370
2371
  Q < g.countBillboards() && (g.getBillboard(Q).position = X(Q)), Q = R, Q < g.countBillboards() && (g.getBillboard(Q).position = X(Q));
2371
- }, W = function() {
2372
- h.executeListeners({
2372
+ }, U = function() {
2373
+ m.executeListeners({
2373
2374
  name: "onEdited",
2374
- positions: h.positions
2375
+ positions: m.positions
2375
2376
  });
2376
2377
  }, X = function(R) {
2377
- var z = h.positions;
2378
+ var z = m.positions;
2378
2379
  return e.cartographicToCartesian(
2379
2380
  new p.EllipsoidGeodesic(
2380
2381
  e.cartesianToCartographic(z[R]),
@@ -2382,93 +2383,93 @@ var Ee = function() {
2382
2383
  ).interpolateUsingFraction(0.5)
2383
2384
  );
2384
2385
  };
2385
- var v = new i.BillboardGroup(s, I), g = new i.BillboardGroup(s, G), C = {
2386
+ var v = new i.BillboardGroup(s, P), g = new i.BillboardGroup(s, B), w = {
2386
2387
  dragHandlers: {
2387
2388
  onDrag: function(R, z) {
2388
- h.positions[R] = z, M(R, h.positions), h._createPrimitive = !0;
2389
+ m.positions[R] = z, D(R, m.positions), m._createPrimitive = !0;
2389
2390
  },
2390
2391
  onDragEnd: function(R, z) {
2391
- h._createPrimitive = !0, W();
2392
+ m._createPrimitive = !0, U();
2392
2393
  }
2393
2394
  },
2394
2395
  onDoubleClick: function(R) {
2395
- h.positions.length < 4 || (h.positions.splice(R, 1), h._createPrimitive = !0, v.removeBillboard(R), g.removeBillboard(R), M(R, h.positions), W());
2396
+ m.positions.length < 4 || (m.positions.splice(R, 1), m._createPrimitive = !0, v.removeBillboard(R), g.removeBillboard(R), D(R, m.positions), U());
2396
2397
  },
2397
2398
  tooltip: function() {
2398
- if (h.positions.length > 3)
2399
+ if (m.positions.length > 3)
2399
2400
  return "Double click to remove this point";
2400
2401
  }
2401
2402
  };
2402
- v.addBillboards(h.positions, C), this._markers = v;
2403
- for (var S = [], _ = 0, b = h.positions.length + (this.isPolygon ? 0 : -1); _ < b; _++)
2403
+ v.addBillboards(m.positions, w), this._markers = v;
2404
+ for (var S = [], _ = 0, T = m.positions.length + (this.isPolygon ? 0 : -1); _ < T; _++)
2404
2405
  S.push(X(_));
2405
- var L = {
2406
+ var M = {
2406
2407
  dragHandlers: {
2407
2408
  onDragStart: function(R, z) {
2408
- this.index = R + 1, h.positions.splice(this.index, 0, z), h._createPrimitive = !0;
2409
+ this.index = R + 1, m.positions.splice(this.index, 0, z), m._createPrimitive = !0;
2409
2410
  },
2410
2411
  onDrag: function(R, z) {
2411
- h.positions[this.index] = z, h._createPrimitive = !0;
2412
+ m.positions[this.index] = z, m._createPrimitive = !0;
2412
2413
  },
2413
2414
  onDragEnd: function(R, z) {
2414
- v.insertBillboard(this.index, z, C), g.getBillboard(this.index - 1).position = X(this.index - 1), g.insertBillboard(this.index, X(this.index), L), h._createPrimitive = !0, W();
2415
+ v.insertBillboard(this.index, z, w), g.getBillboard(this.index - 1).position = X(this.index - 1), g.insertBillboard(this.index, X(this.index), M), m._createPrimitive = !0, U();
2415
2416
  }
2416
2417
  },
2417
2418
  tooltip: function() {
2418
2419
  return "Drag to create a new point";
2419
2420
  }
2420
2421
  };
2421
- g.addBillboards(S, L), this._editMarkers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(R) {
2422
+ g.addBillboards(S, M), this._editMarkers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(R) {
2422
2423
  var z = f.pick(R.position);
2423
- z && z.primitive || h.setEditMode(!1);
2424
+ z && z.primitive || m.setEditMode(!1);
2424
2425
  }, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop(), g.setOnTop();
2425
2426
  }
2426
2427
  this._editMode = !0;
2427
2428
  } else
2428
2429
  this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2429
2430
  }
2430
- Ee.PolylinePrimitive.prototype.setEditable = function() {
2431
+ Ce.PolylinePrimitive.prototype.setEditable = function() {
2431
2432
  if (!this.setEditMode) {
2432
2433
  var c = this;
2433
2434
  c.isPolygon = !1, c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = y;
2434
2435
  var f = this.width;
2435
- c.setHighlighted = function(h) {
2436
- this._editMode !== !0 && (h ? (s.setHighlighted(this), this.setWidth(f * 2)) : this.setWidth(f));
2436
+ c.setHighlighted = function(m) {
2437
+ this._editMode !== !0 && (m ? (s.setHighlighted(this), this.setWidth(f * 2)) : this.setWidth(f));
2437
2438
  }, c.getExtent = function() {
2438
2439
  return p.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
2439
- }, te(c), c.setEditMode(!1);
2440
+ }, ne(c), c.setEditMode(!1);
2440
2441
  }
2441
- }, Ee.PolygonPrimitive.prototype.setEditable = function() {
2442
+ }, Ce.PolygonPrimitive.prototype.setEditable = function() {
2442
2443
  var c = this;
2443
- c.asynchronous = !1, s._scene, s.registerEditableShape(c), c.setEditMode = y, c.setHighlighted = a, te(c), c.setEditMode(!1);
2444
- }, Ee.ExtentPrimitive.prototype.setEditable = function() {
2444
+ c.asynchronous = !1, s._scene, s.registerEditableShape(c), c.setEditMode = y, c.setHighlighted = a, ne(c), c.setEditMode(!1);
2445
+ }, Ce.ExtentPrimitive.prototype.setEditable = function() {
2445
2446
  if (!this.setEditMode) {
2446
2447
  var c = this, f = s._scene;
2447
- s.registerEditableShape(c), c.asynchronous = !1, c.setEditMode = function(h) {
2448
- if (this._editMode != h)
2449
- if (s.disableAllHighlights(), h) {
2448
+ s.registerEditableShape(c), c.asynchronous = !1, c.setEditMode = function(m) {
2449
+ if (this._editMode != m)
2450
+ if (s.disableAllHighlights(), m) {
2450
2451
  if (s.setEdited(this), this._markers == null) {
2451
- let C = function() {
2452
+ let w = function() {
2452
2453
  c.executeListeners({
2453
2454
  name: "onEdited",
2454
2455
  extent: c.extent
2455
2456
  });
2456
2457
  };
2457
- var v = new i.BillboardGroup(s, I), g = {
2458
+ var v = new i.BillboardGroup(s, P), g = {
2458
2459
  dragHandlers: {
2459
2460
  onDrag: function(S, _) {
2460
- var b = v.getBillboard((S + 2) % 4).position;
2461
- c.setExtent(Y(e.cartesianToCartographic(b), e.cartesianToCartographic(_))), v.updateBillboardsPositions(q(c.extent));
2461
+ var T = v.getBillboard((S + 2) % 4).position;
2462
+ c.setExtent(Y(e.cartesianToCartographic(T), e.cartesianToCartographic(_))), v.updateBillboardsPositions($(c.extent));
2462
2463
  },
2463
2464
  onDragEnd: function(S, _) {
2464
- C();
2465
+ w();
2465
2466
  }
2466
2467
  },
2467
2468
  tooltip: function() {
2468
2469
  return "Drag to change the corners of this extent";
2469
2470
  }
2470
2471
  };
2471
- v.addBillboards(q(c.extent), g), this._markers = v, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(S) {
2472
+ v.addBillboards($(c.extent), g), this._markers = v, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(S) {
2472
2473
  var _ = f.pick(S.position);
2473
2474
  _ && !_.isDestroyed() && _.primitive || c.setEditMode(!1);
2474
2475
  }, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop();
@@ -2476,14 +2477,14 @@ var Ee = function() {
2476
2477
  this._editMode = !0;
2477
2478
  } else
2478
2479
  this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2479
- }, c.setHighlighted = a, te(c), c.setEditMode(!1);
2480
+ }, c.setHighlighted = a, ne(c), c.setEditMode(!1);
2480
2481
  }
2481
2482
  }, i.EllipsePrimitive.prototype.setEditable = function() {
2482
2483
  if (!this.setEditMode) {
2483
2484
  var c = this, f = s._scene;
2484
- c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(h) {
2485
- if (this._editMode != h)
2486
- if (s.disableAllHighlights(), h) {
2485
+ c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(m) {
2486
+ if (this._editMode != m)
2487
+ if (s.disableAllHighlights(), m) {
2487
2488
  s.setEdited(this);
2488
2489
  var v = this;
2489
2490
  if (this._markers == null) {
@@ -2505,13 +2506,13 @@ var Ee = function() {
2505
2506
  rotation: 0
2506
2507
  });
2507
2508
  };
2508
- var g = new i.BillboardGroup(s, I), C = {
2509
+ var g = new i.BillboardGroup(s, P), w = {
2509
2510
  dragHandlers: {
2510
- onDrag: function(b, L) {
2511
- var M = p.Cartesian3.distance(c.getCenter(), L);
2512
- b % 2 == 0 ? c.setSemiMajorAxis(M) : c.setSemiMinorAxis(M), g.updateBillboardsPositions(S());
2511
+ onDrag: function(T, M) {
2512
+ var D = p.Cartesian3.distance(c.getCenter(), M);
2513
+ T % 2 == 0 ? c.setSemiMajorAxis(D) : c.setSemiMinorAxis(D), g.updateBillboardsPositions(S());
2513
2514
  },
2514
- onDragEnd: function(b, L) {
2515
+ onDragEnd: function(T, M) {
2515
2516
  _();
2516
2517
  }
2517
2518
  },
@@ -2519,15 +2520,15 @@ var Ee = function() {
2519
2520
  return "Drag to change the excentricity and radius";
2520
2521
  }
2521
2522
  };
2522
- g.addBillboards(S(), C), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(b) {
2523
- var L = f.pick(b.position);
2524
- L && L.primitive || v.setEditMode(!1);
2523
+ g.addBillboards(S(), w), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(T) {
2524
+ var M = f.pick(T.position);
2525
+ M && M.primitive || v.setEditMode(!1);
2525
2526
  }, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
2526
2527
  }
2527
2528
  this._editMode = !0;
2528
2529
  } else
2529
2530
  this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2530
- }, c.setHighlighted = a, te(c), c.setEditMode(!1);
2531
+ }, c.setHighlighted = a, ne(c), c.setEditMode(!1);
2531
2532
  }
2532
2533
  }, i.CirclePrimitive.prototype.getCircleCartesianCoordinates = function(c) {
2533
2534
  for (var f = p.CircleOutlineGeometry.createGeometry(
@@ -2537,15 +2538,15 @@ var Ee = function() {
2537
2538
  radius: this.getRadius(),
2538
2539
  granularity: c
2539
2540
  })
2540
- ), h = 0, v, g = []; h < f.attributes.position.values.length; h += 3)
2541
- v = f.attributes.position.values, g.push(new p.Cartesian3(v[h], v[h + 1], v[h + 2]));
2541
+ ), m = 0, v, g = []; m < f.attributes.position.values.length; m += 3)
2542
+ v = f.attributes.position.values, g.push(new p.Cartesian3(v[m], v[m + 1], v[m + 2]));
2542
2543
  return g;
2543
2544
  }, i.CirclePrimitive.prototype.setEditable = function() {
2544
2545
  if (!this.setEditMode) {
2545
2546
  var c = this, f = s._scene;
2546
- c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(h) {
2547
- if (this._editMode != h)
2548
- if (s.disableAllHighlights(), h) {
2547
+ c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(m) {
2548
+ if (this._editMode != m)
2549
+ if (s.disableAllHighlights(), m) {
2549
2550
  s.setEdited(this);
2550
2551
  var v = this;
2551
2552
  if (this._markers == null) {
@@ -2558,12 +2559,12 @@ var Ee = function() {
2558
2559
  radius: c.getRadius()
2559
2560
  });
2560
2561
  };
2561
- var g = new i.BillboardGroup(s, I), C = {
2562
+ var g = new i.BillboardGroup(s, P), w = {
2562
2563
  dragHandlers: {
2563
- onDrag: function(b, L) {
2564
- c.setRadius(p.Cartesian3.distance(c.getCenter(), L)), g.updateBillboardsPositions(S());
2564
+ onDrag: function(T, M) {
2565
+ c.setRadius(p.Cartesian3.distance(c.getCenter(), M)), g.updateBillboardsPositions(S());
2565
2566
  },
2566
- onDragEnd: function(b, L) {
2567
+ onDragEnd: function(T, M) {
2567
2568
  _();
2568
2569
  }
2569
2570
  },
@@ -2571,15 +2572,15 @@ var Ee = function() {
2571
2572
  return "Drag to change the radius";
2572
2573
  }
2573
2574
  };
2574
- g.addBillboards(S(), C), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(b) {
2575
- var L = f.pick(b.position);
2576
- L && L.primitive || v.setEditMode(!1);
2575
+ g.addBillboards(S(), w), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(T) {
2576
+ var M = f.pick(T.position);
2577
+ M && M.primitive || v.setEditMode(!1);
2577
2578
  }, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
2578
2579
  }
2579
2580
  this._editMode = !0;
2580
2581
  } else
2581
2582
  this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2582
- }, c.setHighlighted = a, te(c), c.setEditMode(!1);
2583
+ }, c.setHighlighted = a, ne(c), c.setEditMode(!1);
2583
2584
  }
2584
2585
  };
2585
2586
  }, i.DrawHelperWidget = function() {
@@ -2593,21 +2594,21 @@ var Ee = function() {
2593
2594
  circleIcon: "./assets/img/glyphicons_095_vector_path_circle.png",
2594
2595
  extentIcon: "./assets/img/glyphicons_094_vector_path_square.png",
2595
2596
  clearIcon: "./assets/img/glyphicons_067_cleaning.png",
2596
- polylineDrawingOptions: w,
2597
+ polylineDrawingOptions: C,
2597
2598
  polygonDrawingOptions: d,
2598
2599
  extentDrawingOptions: u,
2599
- circleDrawingOptions: m
2600
+ circleDrawingOptions: h
2600
2601
  };
2601
- $(y, c);
2602
- var f = this, h = document.createElement("DIV");
2603
- h.className = "toolbar", y.container.appendChild(h);
2604
- function v(S, _, b, L) {
2605
- var M = document.createElement("DIV");
2606
- M.className = "button", M.title = b, h.appendChild(M), M.onclick = L;
2607
- var W = document.createElement("SPAN");
2608
- M.appendChild(W);
2602
+ W(y, c);
2603
+ var f = this, m = document.createElement("DIV");
2604
+ m.className = "toolbar", y.container.appendChild(m);
2605
+ function v(S, _, T, M) {
2606
+ var D = document.createElement("DIV");
2607
+ D.className = "button", D.title = T, m.appendChild(D), D.onclick = M;
2608
+ var U = document.createElement("SPAN");
2609
+ D.appendChild(U);
2609
2610
  var X = document.createElement("IMG");
2610
- return X.src = _, W.appendChild(X), M;
2611
+ return X.src = _, U.appendChild(X), D;
2611
2612
  }
2612
2613
  var g = a._scene;
2613
2614
  v("marker", y.markerIcon, "Click to start drawing a 2D marker", function() {
@@ -2654,10 +2655,10 @@ var Ee = function() {
2654
2655
  }
2655
2656
  });
2656
2657
  });
2657
- var C = document.createElement("DIV");
2658
- C.className = "divider", h.appendChild(C), v("clear", y.clearIcon, "Remove all primitives", function() {
2658
+ var w = document.createElement("DIV");
2659
+ w.className = "divider", m.appendChild(w), v("clear", y.clearIcon, "Remove all primitives", function() {
2659
2660
  g.primitives.removeAll();
2660
- }), te(this);
2661
+ }), ne(this);
2661
2662
  }
2662
2663
  return s;
2663
2664
  }(), i.prototype.addToolbar = function(s, a) {
@@ -2669,35 +2670,35 @@ var Ee = function() {
2669
2670
  var c = p.Math.EPSILON7;
2670
2671
  return y.east - y.west < c && (y.east += c * 2), y.north - y.south < c && (y.north += c * 2), y;
2671
2672
  }
2672
- function U(s, a) {
2673
+ function K(s, a) {
2673
2674
  return s.longitude.toFixed(a || 3) + ", " + s.latitude.toFixed(a || 3);
2674
2675
  }
2675
- function A(s, a) {
2676
+ function x(s, a) {
2676
2677
  if (s == null || typeof s != "object" || s.constructor != Object && s.constructor != Array)
2677
2678
  return s;
2678
2679
  if (s.constructor == Date || s.constructor == RegExp || s.constructor == Function || s.constructor == String || s.constructor == Number || s.constructor == Boolean)
2679
2680
  return new s.constructor(s);
2680
2681
  a = a || new s.constructor();
2681
2682
  for (var y in s)
2682
- a[y] = typeof a[y] > "u" ? A(s[y], null) : a[y];
2683
+ a[y] = typeof a[y] > "u" ? x(s[y], null) : a[y];
2683
2684
  return a;
2684
2685
  }
2685
- function $(s, a) {
2686
+ function W(s, a) {
2686
2687
  s = s || {};
2687
2688
  var y;
2688
2689
  for (y in a)
2689
- s[y] === void 0 && (s[y] = A(a[y]));
2690
+ s[y] === void 0 && (s[y] = x(a[y]));
2690
2691
  }
2691
2692
  function O(s, a) {
2692
- var y = A(s), c;
2693
+ var y = x(s), c;
2693
2694
  for (c in a)
2694
- y[c] === void 0 && (y[c] = A(a[c]));
2695
+ y[c] === void 0 && (y[c] = x(a[c]));
2695
2696
  return y;
2696
2697
  }
2697
2698
  function V(s, a, y) {
2698
2699
  s[a] = y;
2699
2700
  }
2700
- function te(s) {
2701
+ function ne(s) {
2701
2702
  s._listeners = {}, s.addListener = function(a, y) {
2702
2703
  return this._listeners[a] = this._listeners[a] || [], this._listeners[a].push(y), this._listeners[a].length;
2703
2704
  }, s.executeListeners = function(a, y) {
@@ -2710,17 +2711,17 @@ var Ee = function() {
2710
2711
  }
2711
2712
  return i;
2712
2713
  }();
2713
- const jr = 2, Kr = (e, n) => {
2714
+ const Yr = 2, Xr = (e, n) => {
2714
2715
  switch (e) {
2715
2716
  case se.BOX: {
2716
- if (n.features.length !== jr)
2717
+ if (n.features.length !== Yr)
2717
2718
  throw new Error(`${e} must have 2 points`);
2718
- const t = ft(n.features, (o) => {
2719
+ const t = vt(n.features, (o) => {
2719
2720
  var r;
2720
- return ((r = o.properties) == null ? void 0 : r.type) === it.BOTTOM_LEFT;
2721
- }), i = ft(n.features, (o) => {
2721
+ return ((r = o.properties) == null ? void 0 : r.type) === ot.BOTTOM_LEFT;
2722
+ }), i = vt(n.features, (o) => {
2722
2723
  var r;
2723
- return ((r = o.properties) == null ? void 0 : r.type) === it.TOP_RIGHT;
2724
+ return ((r = o.properties) == null ? void 0 : r.type) === ot.TOP_RIGHT;
2724
2725
  });
2725
2726
  if (i && t) {
2726
2727
  if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
@@ -2737,10 +2738,10 @@ const jr = 2, Kr = (e, n) => {
2737
2738
  default:
2738
2739
  throw new Error(`${e} type geoJSON still not supported`);
2739
2740
  }
2740
- }, qr = (e) => {
2741
+ }, Zr = (e) => {
2741
2742
  const n = e.map((t) => {
2742
- const i = We.fromCartesian(t);
2743
- return [le.toDegrees(i.longitude), le.toDegrees(i.latitude)];
2743
+ const i = Oe.fromCartesian(t);
2744
+ return [ce.toDegrees(i.longitude), ce.toDegrees(i.latitude)];
2744
2745
  });
2745
2746
  return n.push(n[0]), {
2746
2747
  type: "Feature",
@@ -2750,51 +2751,51 @@ const jr = 2, Kr = (e, n) => {
2750
2751
  coordinates: [n]
2751
2752
  }
2752
2753
  };
2753
- }, Yr = (e) => {
2754
- const n = Vt.lineString([
2755
- [le.toDegrees(e.west), le.toDegrees(e.south)],
2756
- [le.toDegrees(e.east), le.toDegrees(e.north)]
2754
+ }, Jr = (e) => {
2755
+ const n = Kt.lineString([
2756
+ [ce.toDegrees(e.west), ce.toDegrees(e.south)],
2757
+ [ce.toDegrees(e.east), ce.toDegrees(e.north)]
2757
2758
  ]);
2758
- return $t(zt(n));
2759
- }, Xr = (e) => {
2760
- const n = Vt.lineString([
2759
+ return qt(jt(n));
2760
+ }, Qr = (e) => {
2761
+ const n = Kt.lineString([
2761
2762
  [e.west, e.south],
2762
2763
  [e.east, e.north]
2763
2764
  ]);
2764
- return $t(zt(n)).geometry.coordinates[0].map((i) => pe.fromRadiansArray(i)[0]);
2765
+ return qt(jt(n)).geometry.coordinates[0].map((i) => pe.fromRadiansArray(i)[0]);
2765
2766
  };
2766
- class vs extends hi {
2767
+ class bs extends nt {
2767
2768
  }
2768
- const Es = (e) => {
2769
- const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u = he(), [m, E] = D();
2770
- k(() => {
2769
+ const Ts = (e) => {
2770
+ const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u = le(), [h, E] = A();
2771
+ I(() => {
2771
2772
  E(
2772
2773
  // eslint-disable-next-line
2773
- new Ee(u, t, i)
2774
+ new Ce(u, t, i)
2774
2775
  );
2775
- }, []), k(() => {
2776
- if (m) {
2777
- const P = m;
2776
+ }, []), I(() => {
2777
+ if (h) {
2778
+ const L = h;
2778
2779
  if (n.drawing)
2779
2780
  switch (n.type) {
2780
2781
  case se.POLYGON:
2781
- u.scene.globe.depthTestAgainstTerrain = !1, P.startDrawingPolygon({
2782
- callback: (T) => {
2782
+ u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingPolygon({
2783
+ callback: (b) => {
2783
2784
  n.handler({
2784
- primitive: T,
2785
+ primitive: b,
2785
2786
  type: se.POLYGON,
2786
- geojson: qr(T)
2787
+ geojson: Zr(b)
2787
2788
  });
2788
2789
  }
2789
2790
  });
2790
2791
  break;
2791
2792
  case se.BOX:
2792
- u.scene.globe.depthTestAgainstTerrain = !1, P.startDrawingExtent({
2793
- callback: (T) => {
2793
+ u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingExtent({
2794
+ callback: (b) => {
2794
2795
  n.handler({
2795
- primitive: T,
2796
+ primitive: b,
2796
2797
  type: se.BOX,
2797
- geojson: Yr(T)
2798
+ geojson: Jr(b)
2798
2799
  });
2799
2800
  }
2800
2801
  });
@@ -2803,78 +2804,162 @@ const Es = (e) => {
2803
2804
  throw new Error(`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`);
2804
2805
  }
2805
2806
  else
2806
- P.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
2807
+ L.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
2807
2808
  }
2808
- }, [n, m]);
2809
- const w = (P) => {
2809
+ }, [n, h]);
2810
+ const C = (L) => {
2810
2811
  try {
2811
- let T = P.coordinates !== void 0 ? P.coordinates : Kr(P.type, P.geojson);
2812
+ let b = L.coordinates !== void 0 ? L.coordinates : Xr(L.type, L.geojson);
2812
2813
  if (r !== !0)
2813
- switch (P.type) {
2814
+ switch (L.type) {
2814
2815
  case se.BOX:
2815
- return /* @__PURE__ */ l($r, { coordinates: T, material: o ?? t });
2816
+ return /* @__PURE__ */ l(Kr, { coordinates: b, material: o ?? t });
2816
2817
  case se.POLYGON:
2817
- return /* @__PURE__ */ l(zr, { hierarchy: new mi(T), material: o ?? t });
2818
+ return /* @__PURE__ */ l(Ur, { hierarchy: new yi(b), material: o ?? t });
2818
2819
  default:
2819
- return /* @__PURE__ */ l(ie, {});
2820
+ return /* @__PURE__ */ l(te, {});
2820
2821
  }
2821
2822
  else {
2822
- switch (P.type) {
2823
+ switch (L.type) {
2823
2824
  case se.BOX:
2824
- T = Xr(T);
2825
+ b = Qr(b);
2825
2826
  break;
2826
2827
  case se.POLYGON:
2827
- T = [...T, T[0]];
2828
+ b = [...b, b[0]];
2828
2829
  break;
2829
2830
  default:
2830
- return /* @__PURE__ */ l(ie, {});
2831
+ return /* @__PURE__ */ l(te, {});
2831
2832
  }
2832
- return /* @__PURE__ */ l(Ur, { clampToGround: !0, positions: T, width: d ?? 1, material: o ?? t });
2833
+ return /* @__PURE__ */ l(qr, { clampToGround: !0, positions: b, width: d ?? 1, material: o ?? t });
2833
2834
  }
2834
- } catch (T) {
2835
- return console.error(T), /* @__PURE__ */ l(ie, {});
2835
+ } catch (b) {
2836
+ return console.error(b), /* @__PURE__ */ l(te, {});
2836
2837
  }
2837
2838
  };
2838
- return /* @__PURE__ */ l(Wr, { ...e, children: e.drawings.map((P, T) => /* @__PURE__ */ N(Gr, { name: P.name, children: [
2839
- /* @__PURE__ */ N(Vr, { children: [
2839
+ return /* @__PURE__ */ l(jr, { ...e, children: e.drawings.map((L, b) => /* @__PURE__ */ N($r, { name: L.name, children: [
2840
+ /* @__PURE__ */ N(Wr, { children: [
2840
2841
  /* @__PURE__ */ N("h1", { children: [
2841
2842
  "Drawed Entity ",
2842
- P.name
2843
+ L.name
2843
2844
  ] }),
2844
2845
  /* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
2845
2846
  ] }),
2846
- w(P)
2847
- ] }, P.id)) });
2847
+ C(L)
2848
+ ] }, L.id)) });
2848
2849
  };
2849
- class Cs extends pi {
2850
+ class _s extends vi {
2850
2851
  }
2851
- class ws extends gi {
2852
+ class Ls extends Ei {
2852
2853
  }
2853
- class bs extends fi {
2854
+ class Ss extends Ci {
2854
2855
  }
2855
- class Ts extends Me {
2856
+ class Ms extends Ee {
2856
2857
  }
2857
- class _s extends pe {
2858
+ class Ps extends pe {
2858
2859
  }
2859
- class Ss extends We {
2860
+ class Ds extends Oe {
2860
2861
  }
2861
- class Ls extends yi {
2862
+ class As extends wi {
2862
2863
  }
2863
- class Ps extends vi {
2864
+ class Is extends Wt {
2864
2865
  }
2865
- class Ms extends Ei {
2866
+ class xs extends bi {
2866
2867
  }
2867
- class Ds extends Se {
2868
+ class ks extends Se {
2868
2869
  }
2869
- class Is extends Ci {
2870
+ class Os extends Ti {
2870
2871
  }
2871
- class As extends wi {
2872
+ class Rs extends _i {
2872
2873
  }
2873
- class ks extends bi {
2874
+ class Ns extends Li {
2874
2875
  }
2875
- const xs = Ti, Os = _i;
2876
- const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo = (e) => {
2877
- const [n, t] = D(e.defaultValue ?? ""), [i, o] = D(!1), [r, d] = D({
2876
+ const Bs = it, Fs = Ut, Hs = (e) => {
2877
+ const n = le();
2878
+ return I(() => {
2879
+ n.extend(Si);
2880
+ }, [n]), /* @__PURE__ */ l(te, {});
2881
+ }, eo = -25, kt = 2, Gs = (e) => {
2882
+ const n = le(), t = (r, d = ",") => r.slice(r.indexOf(`
2883
+ `) + 1).split(`
2884
+ `).map((E) => {
2885
+ const C = E.split(d);
2886
+ return {
2887
+ cartographic: Oe.fromDegrees(parseFloat(C[0]), parseFloat(C[1])),
2888
+ cartesian: new Ee(parseFloat(C[0]), parseFloat(C[1]))
2889
+ };
2890
+ }), i = (r) => {
2891
+ var u;
2892
+ r.preventDefault(), r.persist();
2893
+ const d = new FileReader();
2894
+ d.onload = (h) => {
2895
+ var b;
2896
+ const E = (b = h.target) == null ? void 0 : b.result, C = t(E), L = Wt.WGS84;
2897
+ console.log(`Loaded CSV content:
2898
+ `, E), Mi(
2899
+ n.terrainProvider,
2900
+ C.map((P) => P.cartographic)
2901
+ ).then(
2902
+ (P) => {
2903
+ console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((B, $) => {
2904
+ n.entities.add({
2905
+ name: ($ + kt).toString(),
2906
+ position: L.cartographicToCartesian(B),
2907
+ billboard: {
2908
+ verticalOrigin: it.BOTTOM,
2909
+ scale: 0.7,
2910
+ image: "assets/img/map-marker.gif"
2911
+ },
2912
+ label: {
2913
+ text: ($ + kt).toString(),
2914
+ font: "14pt monospace",
2915
+ fillColor: nt.BLACK,
2916
+ style: Ut.FILL_AND_OUTLINE,
2917
+ outlineWidth: 4,
2918
+ outlineColor: nt.BLACK,
2919
+ verticalOrigin: it.BOTTOM,
2920
+ pixelOffset: new Ee(0, eo)
2921
+ },
2922
+ description: `
2923
+ Long: ${C[$].cartesian.x} </br>
2924
+ Lat: ${C[$].cartesian.y} </br>
2925
+ Height(m): <span style="font-weight: 500">${B.height}</span>
2926
+ `
2927
+ });
2928
+ }), n.entities.resumeEvents(), r.target.files !== null && (o(`terranian_heights_${r.target.files[0].name}`, C), r.target.value = ""), console.log("Pinned point count is ", n.entities.values.length);
2929
+ },
2930
+ (P) => {
2931
+ console.error("ERROR while sampleTerrainMostDetailed:", P);
2932
+ }
2933
+ );
2934
+ }, (u = r.target.files) != null && u[0] && d.readAsText(r.target.files[0]);
2935
+ }, o = (r, d) => {
2936
+ const u = (b) => {
2937
+ let P = "";
2938
+ return P += b.cartesian.x.toString() + ",", P += b.cartesian.y.toString() + ",", P += b.cartographic.height.toString(), P + `
2939
+ `;
2940
+ };
2941
+ let h = `long,lat,height
2942
+ `;
2943
+ d.forEach((b) => {
2944
+ h += u(b);
2945
+ });
2946
+ const E = new Blob([h], { type: "text/csv;charset=utf-8;" }), C = document.createElement("a"), L = URL.createObjectURL(E);
2947
+ C.setAttribute("href", L), C.setAttribute("download", r), C.style.visibility = "hidden", document.body.appendChild(C), C.click(), document.body.removeChild(C);
2948
+ };
2949
+ return /* @__PURE__ */ l(te, { children: /* @__PURE__ */ l(
2950
+ "input",
2951
+ {
2952
+ type: "file",
2953
+ id: "csvFile",
2954
+ accept: ".csv",
2955
+ onChange: (r) => {
2956
+ i(r);
2957
+ }
2958
+ }
2959
+ ) });
2960
+ };
2961
+ const to = 38, no = 40, io = 13, ro = 14, oo = 27, so = 9, ao = 10, lo = 100, co = (e) => {
2962
+ const [n, t] = A(e.defaultValue ?? ""), [i, o] = A(!1), [r, d] = A({
2878
2963
  helperVisible: !1,
2879
2964
  left: 0,
2880
2965
  right: 0,
@@ -2887,242 +2972,242 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
2887
2972
  value: "",
2888
2973
  caret: 0,
2889
2974
  width: "unset"
2890
- }), u = we(null);
2891
- k(() => (window.addEventListener("resize", G), () => {
2975
+ }), u = be(null);
2976
+ I(() => (window.addEventListener("resize", B), () => {
2892
2977
  try {
2893
- window.removeEventListener("resize", G);
2978
+ window.removeEventListener("resize", B);
2894
2979
  } catch (f) {
2895
2980
  console.log('WINDOW "resize" remove listener failed', f);
2896
2981
  }
2897
- }), []), k(() => {
2982
+ }), []), I(() => {
2898
2983
  typeof e.value < "u" && t(e.value), typeof e.defaultValue < "u" && t(e.defaultValue);
2899
- }, [e.value, e.defaultValue]), k(() => {
2900
- const { options: f } = e, { caret: h } = r;
2901
- Y(n, h, f);
2984
+ }, [e.value, e.defaultValue]), I(() => {
2985
+ const { options: f } = e, { caret: m } = r;
2986
+ Y(n, m, f);
2902
2987
  }, [e]);
2903
- const m = (f, h, v) => {
2904
- const { trigger: g, matchAny: C, regex: S } = e, _ = new RegExp(S);
2905
- let b = g;
2906
- Array.isArray(b) || (b = new Array(g)), b.sort();
2907
- const L = {};
2908
- Array.isArray(v) && b.forEach((X) => {
2909
- L[X] = v;
2988
+ const h = (f, m, v) => {
2989
+ const { trigger: g, matchAny: w, regex: S } = e, _ = new RegExp(S);
2990
+ let T = g;
2991
+ Array.isArray(T) || (T = new Array(g)), T.sort();
2992
+ const M = {};
2993
+ Array.isArray(v) && T.forEach((X) => {
2994
+ M[X] = v;
2910
2995
  });
2911
- const M = E(b, _);
2912
- let W = {};
2913
- for (let X = 0; X < M.length; X++) {
2914
- const { triggerStr: R, triggerMatch: z, triggerLength: Q } = M[X];
2915
- for (let ne = h - 1; ne >= 0; --ne) {
2916
- const B = f.substring(ne, h).match(_);
2917
- let x = -1;
2996
+ const D = E(T, _);
2997
+ let U = {};
2998
+ for (let X = 0; X < D.length; X++) {
2999
+ const { triggerStr: R, triggerMatch: z, triggerLength: Q } = D[X];
3000
+ for (let ie = m - 1; ie >= 0; --ie) {
3001
+ const F = f.substring(ie, m).match(_);
3002
+ let k = -1;
2918
3003
  if (Q > 0) {
2919
- const j = z ? ne : ne - Q + 1;
2920
- if (j < 0 || (w(R, f, j) && (x = j + Q), !B && x < 0))
3004
+ const j = z ? ie : ie - Q + 1;
3005
+ if (j < 0 || (C(R, f, j) && (k = j + Q), !F && k < 0))
2921
3006
  break;
2922
3007
  } else {
2923
- if (B && ne > 0)
3008
+ if (F && ie > 0)
2924
3009
  continue;
2925
- if (x = ne === 0 && B ? 0 : ne + 1, h - x === 0)
3010
+ if (k = ie === 0 && F ? 0 : ie + 1, m - k === 0)
2926
3011
  break;
2927
3012
  }
2928
- if (x >= 0) {
2929
- const j = L[R];
3013
+ if (k >= 0) {
3014
+ const j = M[R];
2930
3015
  if (!Array.isArray(j))
2931
3016
  continue;
2932
- const fe = f.substring(x, h), be = j.filter((Re) => {
2933
- const De = Re.toLowerCase().indexOf(fe.toLowerCase());
2934
- return De !== -1 && (C || De === 0);
2935
- }), ye = R, Oe = fe.length;
2936
- W = {
2937
- ...W,
3017
+ const fe = f.substring(k, m), Te = j.filter((Ne) => {
3018
+ const De = Ne.toLowerCase().indexOf(fe.toLowerCase());
3019
+ return De !== -1 && (w || De === 0);
3020
+ }), ye = R, Re = fe.length;
3021
+ U = {
3022
+ ...U,
2938
3023
  trigger: ye,
2939
- matchStart: x,
2940
- matchLength: Oe,
2941
- options: be
3024
+ matchStart: k,
3025
+ matchLength: Re,
3026
+ options: Te
2942
3027
  };
2943
3028
  }
2944
3029
  }
2945
3030
  }
2946
- return W;
2947
- }, E = (f, h) => f.map((g) => ({
3031
+ return U;
3032
+ }, E = (f, m) => f.map((g) => ({
2948
3033
  triggerStr: g,
2949
- triggerMatch: g.match(h),
3034
+ triggerMatch: g.match(m),
2950
3035
  triggerLength: g.length
2951
- })), w = (f, h, v) => !f || !f.length || h.substr(v, f.length) === f, P = (f) => {
2952
- const { onChange: h, options: v, spaceRemovers: g, spacer: C, value: S } = e, _ = n, b = f.target.value, L = Mi(T(f.target)).end;
2953
- if (b.length || F({
3036
+ })), C = (f, m, v) => !f || !f.length || m.substr(v, f.length) === f, L = (f) => {
3037
+ const { onChange: m, options: v, spaceRemovers: g, spacer: w, value: S } = e, _ = n, T = f.target.value, M = Ii(b(f.target)).end;
3038
+ if (T.length || H({
2954
3039
  ...r,
2955
3040
  helperVisible: !1
2956
- }), t(b), F({
3041
+ }), t(T), H({
2957
3042
  ...r,
2958
- caret: L,
3043
+ caret: M,
2959
3044
  value: f.target.value
2960
- }), !b.length || !L)
2961
- return h(f.target.value);
2962
- if (i && g.length && b.length > 2 && C.length) {
2963
- for (let M = 0; M < Math.max(_.length, b.length); ++M)
2964
- if (_[M] !== b[M]) {
2965
- if (M >= 2 && b[M - 1] === C && g.indexOf(b[M - 2]) === -1 && g.indexOf(b[M]) !== -1 && !nt(m(b.substring(0, M - 2), L - 3, v))) {
2966
- const W = `${b.slice(0, M - 1)}${b.slice(M, M + 1)}${b.slice(M - 1, M)}${b.slice(M + 1)}`;
2967
- return K(M + 1), u.current !== null && (u.current.value = W), S || F({
3045
+ }), !T.length || !M)
3046
+ return m(f.target.value);
3047
+ if (i && g.length && T.length > 2 && w.length) {
3048
+ for (let D = 0; D < Math.max(_.length, T.length); ++D)
3049
+ if (_[D] !== T[D]) {
3050
+ if (D >= 2 && T[D - 1] === w && g.indexOf(T[D - 2]) === -1 && g.indexOf(T[D]) !== -1 && !rt(h(T.substring(0, D - 2), M - 3, v))) {
3051
+ const U = `${T.slice(0, D - 1)}${T.slice(D, D + 1)}${T.slice(D - 1, D)}${T.slice(D + 1)}`;
3052
+ return q(D + 1), u.current !== null && (u.current.value = U), S || H({
2968
3053
  ...r,
2969
- value: W
2970
- }), h(W);
3054
+ value: U
3055
+ }), m(U);
2971
3056
  }
2972
3057
  break;
2973
3058
  }
2974
3059
  o(!1);
2975
3060
  }
2976
- return Y(b, L, v), h(f.target.value);
2977
- }, T = (f) => {
3061
+ return Y(T, M, v), m(f.target.value);
3062
+ }, b = (f) => {
2978
3063
  if (f !== void 0)
2979
3064
  if (f.children.length > 0) {
2980
- const h = f.getElementsByTagName("textarea");
2981
- if (h.length > 0)
2982
- return h[0];
3065
+ const m = f.getElementsByTagName("textarea");
3066
+ if (m.length > 0)
3067
+ return m[0];
2983
3068
  const v = f.getElementsByTagName("input");
2984
3069
  if (v.length > 0)
2985
3070
  return v[0];
2986
3071
  } else
2987
3072
  return f;
2988
- }, I = (f) => {
2989
- const { helperVisible: h, options: v, selection: g } = r, { onKeyDown: C, passThroughEnter: S } = e;
2990
- if (h)
3073
+ }, P = (f) => {
3074
+ const { helperVisible: m, options: v, selection: g } = r, { onKeyDown: w, passThroughEnter: S } = e;
3075
+ if (m)
2991
3076
  switch (f.keyCode) {
2992
- case to:
2993
- f.preventDefault(), U();
3077
+ case oo:
3078
+ f.preventDefault(), K();
2994
3079
  break;
2995
- case Zr:
2996
- f.preventDefault(), F({
3080
+ case to:
3081
+ f.preventDefault(), H({
2997
3082
  ...r,
2998
3083
  selection: (v.length + g - 1) % v.length
2999
3084
  });
3000
3085
  break;
3001
- case Jr:
3002
- f.preventDefault(), F({
3086
+ case no:
3087
+ f.preventDefault(), H({
3003
3088
  ...r,
3004
3089
  selection: (g + 1) % v.length
3005
3090
  });
3006
3091
  break;
3007
- case eo:
3008
- case Qr:
3009
- S || f.preventDefault(), q(g);
3092
+ case ro:
3093
+ case io:
3094
+ S || f.preventDefault(), $(g);
3010
3095
  break;
3011
- case no:
3012
- q(g);
3096
+ case so:
3097
+ $(g);
3013
3098
  break;
3014
3099
  default:
3015
- C(f);
3100
+ w(f);
3016
3101
  break;
3017
3102
  }
3018
3103
  else
3019
- C(f);
3020
- }, G = () => {
3021
- F({
3104
+ w(f);
3105
+ }, B = () => {
3106
+ H({
3022
3107
  ...r,
3023
3108
  helperVisible: !1
3024
3109
  });
3110
+ }, $ = (f) => {
3111
+ const { spacer: m, onSelect: v, changeOnSelect: g } = e, { matchStart: w, matchLength: S, options: _, trigger: T } = r, M = _[f], D = n, U = D.substring(0, w - T.length), X = D.substring(w + S), R = { target: u.current }, z = g(T, M);
3112
+ R.target !== null && (R.target.value = `${U}${z}${m}${X}`), L(R), R.target !== null && v(R.target.value), K(), q(U.length + z.length + 1), o(!0);
3025
3113
  }, q = (f) => {
3026
- const { spacer: h, onSelect: v, changeOnSelect: g } = e, { matchStart: C, matchLength: S, options: _, trigger: b } = r, L = _[f], M = n, W = M.substring(0, C - b.length), X = M.substring(C + S), R = { target: u.current }, z = g(b, L);
3027
- R.target !== null && (R.target.value = `${W}${z}${h}${X}`), P(R), R.target !== null && v(R.target.value), U(), K(W.length + z.length + 1), o(!0);
3028
- }, K = (f) => {
3029
- F({
3114
+ H({
3030
3115
  ...r,
3031
3116
  caret: f
3032
3117
  });
3033
- const h = T(u.current);
3034
- Di(h, f);
3035
- }, F = (f) => {
3118
+ const m = b(u.current);
3119
+ xi(m, f);
3120
+ }, H = (f) => {
3036
3121
  setTimeout(() => {
3037
3122
  d({
3038
3123
  ...f
3039
3124
  });
3040
3125
  }, 0);
3041
- }, Y = (f, h, v) => {
3126
+ }, Y = (f, m, v) => {
3042
3127
  const g = u.current;
3043
3128
  if (u.current === null)
3044
3129
  return;
3045
- const C = T(g);
3046
- if (C === void 0)
3130
+ const w = b(g);
3131
+ if (w === void 0)
3047
3132
  return;
3048
- const S = g.getBoundingClientRect(), _ = m(f, h, v);
3049
- if (Object.keys(_).length > 0 && C !== null) {
3050
- const b = Pi(C, h), L = C.getBoundingClientRect(), { minChars: M, onRequestOptions: W, requestOnlyIfNoOptions: X, mode: R } = e;
3051
- let z, Q, ne, ge = "unset";
3052
- R === "assist" ? (z = g === C ? b.top + C.offsetTop : b.top + S.top, Q = Math.min(b.left + C.offsetLeft - io, C.offsetLeft + L.width - ro)) : (z = S.top + g.offsetHeight, Q = g.offsetLeft, ne = g.offsetLeft - g.offsetWidth, ge = `${S.width}px`), _.matchLength >= M && (_.options.length > 1 || _.options.length === 1 && _.options[0].length !== _.matchLength) ? F({
3133
+ const S = g.getBoundingClientRect(), _ = h(f, m, v);
3134
+ if (Object.keys(_).length > 0 && w !== null) {
3135
+ const T = Ai(w, m), M = w.getBoundingClientRect(), { minChars: D, onRequestOptions: U, requestOnlyIfNoOptions: X, mode: R } = e;
3136
+ let z, Q, ie, ge = "unset";
3137
+ R === "assist" ? (z = g === w ? T.top + w.offsetTop : T.top + S.top, Q = Math.min(T.left + w.offsetLeft - ao, w.offsetLeft + M.width - lo)) : (z = S.top + g.offsetHeight, Q = g.offsetLeft, ie = g.offsetLeft - g.offsetWidth, ge = `${S.width}px`), _.matchLength >= D && (_.options.length > 1 || _.options.length === 1 && _.options[0].length !== _.matchLength) ? H({
3053
3138
  ...r,
3054
3139
  value: f,
3055
3140
  helperVisible: !0,
3056
3141
  top: z,
3057
3142
  left: Q,
3058
- right: ne,
3143
+ right: ie,
3059
3144
  width: ge,
3060
3145
  ..._
3061
- }) : ((!X || !_.options.length) && W(f.substr(_.matchStart, _.matchLength)), U());
3146
+ }) : ((!X || !_.options.length) && U(f.substr(_.matchStart, _.matchLength)), K());
3062
3147
  } else
3063
- U();
3064
- }, U = () => {
3148
+ K();
3149
+ }, K = () => {
3065
3150
  setTimeout(() => {
3066
- F({
3151
+ H({
3067
3152
  ...r,
3068
3153
  helperVisible: !1,
3069
3154
  selection: 0
3070
3155
  });
3071
3156
  }, 100);
3072
- }, A = () => {
3073
- const { helperVisible: f, left: h, right: v, matchStart: g, matchLength: C, options: S, selection: _, top: b, value: L, width: M } = r;
3157
+ }, x = () => {
3158
+ const { helperVisible: f, left: m, right: v, matchStart: g, matchLength: w, options: S, selection: _, top: T, value: M, width: D } = r;
3074
3159
  if (!f)
3075
3160
  return null;
3076
- const { maxOptions: W, offsetX: X, offsetY: R, direction: z } = e;
3161
+ const { maxOptions: U, offsetX: X, offsetY: R, direction: z } = e;
3077
3162
  if (S.length === 0)
3078
3163
  return null;
3079
3164
  if (_ >= S.length)
3080
- return F({
3165
+ return H({
3081
3166
  ...r,
3082
3167
  selection: 0
3083
3168
  }), null;
3084
- const Q = W === 0 ? S.length : W, ne = S.slice(0, Q).map((B, x) => {
3085
- const j = B.toLowerCase().indexOf(L.substr(g, C).toLowerCase());
3169
+ const Q = U === 0 ? S.length : U, ie = S.slice(0, Q).map((F, k) => {
3170
+ const j = F.toLowerCase().indexOf(M.substr(g, w).toLowerCase());
3086
3171
  return /* @__PURE__ */ N(
3087
3172
  "li",
3088
3173
  {
3089
- className: x === _ ? "active" : void 0,
3174
+ className: k === _ ? "active" : void 0,
3090
3175
  onClick: () => {
3091
- q(x);
3176
+ $(k);
3092
3177
  },
3093
3178
  onMouseEnter: () => {
3094
- F({
3179
+ H({
3095
3180
  ...r,
3096
- selection: x
3181
+ selection: k
3097
3182
  });
3098
3183
  },
3099
3184
  children: [
3100
- B.slice(0, j),
3101
- /* @__PURE__ */ l("strong", { children: B.substr(j, C) }),
3102
- B.slice(j + C)
3185
+ F.slice(0, j),
3186
+ /* @__PURE__ */ l("strong", { children: F.substr(j, w) }),
3187
+ F.slice(j + w)
3103
3188
  ]
3104
3189
  },
3105
- B
3190
+ F
3106
3191
  );
3107
- }), ge = z === "ltr" ? { left: h + X } : { right: v + X };
3108
- return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ge, top: b + R, width: M }, children: ne });
3109
- }, { Component: $, ComponentProps: O, defaultValue: V, disabled: te, onBlur: s, value: a, ...y } = e, c = Object.assign({}, y);
3192
+ }), ge = z === "ltr" ? { left: m + X } : { right: v + X };
3193
+ return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ge, top: T + R, width: D }, children: ie });
3194
+ }, { Component: W, ComponentProps: O, defaultValue: V, disabled: ne, onBlur: s, value: a, ...y } = e, c = Object.assign({}, y);
3110
3195
  return Object.keys(e).forEach((f) => {
3111
3196
  delete c[f];
3112
- }), /* @__PURE__ */ N(ie, { children: [
3113
- ve.cloneElement($, {
3114
- disabled: te,
3197
+ }), /* @__PURE__ */ N(te, { children: [
3198
+ ve.cloneElement(W, {
3199
+ disabled: ne,
3115
3200
  onBlur: s,
3116
- onChange: P,
3117
- onKeyDown: I,
3201
+ onChange: L,
3202
+ onKeyDown: P,
3118
3203
  ref: u,
3119
3204
  value: n,
3120
3205
  ...c,
3121
3206
  ...O
3122
3207
  }),
3123
- A()
3208
+ x()
3124
3209
  ] });
3125
- }, so = {
3210
+ }, uo = {
3126
3211
  Component: /* @__PURE__ */ l("textarea", {}),
3127
3212
  ComponentProps: {},
3128
3213
  defaultValue: void 0,
@@ -3153,9 +3238,9 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3153
3238
  passThroughEnter: !1,
3154
3239
  mode: "assist",
3155
3240
  direction: "ltr"
3156
- }, Rs = (e) => {
3241
+ }, Vs = (e) => {
3157
3242
  let n = {
3158
- ...so,
3243
+ ...uo,
3159
3244
  ...e
3160
3245
  };
3161
3246
  return e.mode === "autocomplete" && (n = {
@@ -3163,10 +3248,10 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3163
3248
  trigger: "",
3164
3249
  regex: ".",
3165
3250
  spacer: ""
3166
- }), /* @__PURE__ */ l(oo, { ...n });
3167
- }, ut = {
3251
+ }), /* @__PURE__ */ l(co, { ...n });
3252
+ }, mt = {
3168
3253
  formatFileModDate: (e, n) => {
3169
- const t = Wt.getModDate(n);
3254
+ const t = Yt.getModDate(n);
3170
3255
  return t ? e.formatDate(t, {
3171
3256
  dateStyle: "short",
3172
3257
  timeStyle: "short"
@@ -3175,18 +3260,18 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3175
3260
  formatFileSize: (e, n) => {
3176
3261
  if (!n || typeof n.size != "number")
3177
3262
  return null;
3178
- const t = n.size, i = xi(t, {
3263
+ const t = n.size, i = Ni(t, {
3179
3264
  bits: !1,
3180
3265
  output: "object"
3181
3266
  });
3182
3267
  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()}`;
3183
3268
  }
3184
- }, ao = {
3185
- locale: ce.EN,
3186
- formatters: { ...ut }
3187
- }, lo = {
3188
- locale: ce.RU,
3189
- formatters: { ...ut },
3269
+ }, ho = {
3270
+ locale: de.EN,
3271
+ formatters: { ...mt }
3272
+ }, mo = {
3273
+ locale: de.RU,
3274
+ formatters: { ...mt },
3190
3275
  messages: {
3191
3276
  "chonky.toolbar.searchPlaceholder": "Поиск",
3192
3277
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -3209,24 +3294,24 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3209
3294
  // Actions
3210
3295
  ["chonky.actionGroups.Actions"]: "Действия",
3211
3296
  ["chonky.actionGroups.Options"]: "Опции",
3212
- [`chonky.actions.${H.OpenParentFolder.id}.button.name`]: "Открыть родительскую папку",
3213
- [`chonky.actions.${H.CreateFolder.id}.button.name`]: "Новая папка",
3214
- [`chonky.actions.${H.CreateFolder.id}.button.tooltip`]: "Создать новую папку",
3215
- [`chonky.actions.${H.DeleteFiles.id}.button.name`]: "Удалить файлы",
3216
- [`chonky.actions.${H.OpenSelection.id}.button.name`]: "Открыть выделение",
3217
- [`chonky.actions.${H.SelectAllFiles.id}.button.name`]: "Выделить все",
3218
- [`chonky.actions.${H.ClearSelection.id}.button.name`]: "Сбросить выделение",
3219
- [`chonky.actions.${H.EnableListView.id}.button.name`]: "Показать список",
3220
- [`chonky.actions.${H.EnableGridView.id}.button.name`]: "Показать иконки",
3221
- [`chonky.actions.${H.SortFilesByName.id}.button.name`]: "Сорт. по имени",
3222
- [`chonky.actions.${H.SortFilesBySize.id}.button.name`]: "Сорт. по размеру",
3223
- [`chonky.actions.${H.SortFilesByDate.id}.button.name`]: "Сорт. по дате",
3224
- [`chonky.actions.${H.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
3225
- [`chonky.actions.${H.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
3297
+ [`chonky.actions.${G.OpenParentFolder.id}.button.name`]: "Открыть родительскую папку",
3298
+ [`chonky.actions.${G.CreateFolder.id}.button.name`]: "Новая папка",
3299
+ [`chonky.actions.${G.CreateFolder.id}.button.tooltip`]: "Создать новую папку",
3300
+ [`chonky.actions.${G.DeleteFiles.id}.button.name`]: "Удалить файлы",
3301
+ [`chonky.actions.${G.OpenSelection.id}.button.name`]: "Открыть выделение",
3302
+ [`chonky.actions.${G.SelectAllFiles.id}.button.name`]: "Выделить все",
3303
+ [`chonky.actions.${G.ClearSelection.id}.button.name`]: "Сбросить выделение",
3304
+ [`chonky.actions.${G.EnableListView.id}.button.name`]: "Показать список",
3305
+ [`chonky.actions.${G.EnableGridView.id}.button.name`]: "Показать иконки",
3306
+ [`chonky.actions.${G.SortFilesByName.id}.button.name`]: "Сорт. по имени",
3307
+ [`chonky.actions.${G.SortFilesBySize.id}.button.name`]: "Сорт. по размеру",
3308
+ [`chonky.actions.${G.SortFilesByDate.id}.button.name`]: "Сорт. по дате",
3309
+ [`chonky.actions.${G.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
3310
+ [`chonky.actions.${G.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
3226
3311
  }
3227
- }, co = {
3228
- locale: ce.HE,
3229
- formatters: { ...ut },
3312
+ }, po = {
3313
+ locale: de.HE,
3314
+ formatters: { ...mt },
3230
3315
  messages: {
3231
3316
  "chonky.toolbar.searchPlaceholder": "חיפוש",
3232
3317
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -3248,52 +3333,52 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3248
3333
  // Actions
3249
3334
  ["chonky.actionGroups.Actions"]: "פעולות",
3250
3335
  ["chonky.actionGroups.Options"]: "אפשרויות",
3251
- [`chonky.actions.${H.OpenParentFolder.id}.button.name`]: "פתח סיפריית אב",
3252
- [`chonky.actions.${H.CreateFolder.id}.button.name`]: "סיפרייה חדשה",
3253
- [`chonky.actions.${H.CreateFolder.id}.button.tooltip`]: "צור סיפרייה חדשה",
3254
- [`chonky.actions.${H.DeleteFiles.id}.button.name`]: "מחק",
3255
- [`chonky.actions.${H.OpenSelection.id}.button.name`]: "פתח את הבחירה",
3256
- [`chonky.actions.${H.SelectAllFiles.id}.button.name`]: "בחר הכל",
3257
- [`chonky.actions.${H.ClearSelection.id}.button.name`]: "אפס את הבחירה",
3258
- [`chonky.actions.${H.EnableListView.id}.button.name`]: "תצוגת רשימה",
3259
- [`chonky.actions.${H.EnableGridView.id}.button.name`]: "תצוגת גריד",
3260
- [`chonky.actions.${H.SortFilesByName.id}.button.name`]: "מיון לפי שם",
3261
- [`chonky.actions.${H.SortFilesBySize.id}.button.name`]: "מיון לפי גודל",
3262
- [`chonky.actions.${H.SortFilesByDate.id}.button.name`]: "מיון לפי תאריך",
3263
- [`chonky.actions.${H.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
3264
- [`chonky.actions.${H.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
3336
+ [`chonky.actions.${G.OpenParentFolder.id}.button.name`]: "פתח סיפריית אב",
3337
+ [`chonky.actions.${G.CreateFolder.id}.button.name`]: "סיפרייה חדשה",
3338
+ [`chonky.actions.${G.CreateFolder.id}.button.tooltip`]: "צור סיפרייה חדשה",
3339
+ [`chonky.actions.${G.DeleteFiles.id}.button.name`]: "מחק",
3340
+ [`chonky.actions.${G.OpenSelection.id}.button.name`]: "פתח את הבחירה",
3341
+ [`chonky.actions.${G.SelectAllFiles.id}.button.name`]: "בחר הכל",
3342
+ [`chonky.actions.${G.ClearSelection.id}.button.name`]: "אפס את הבחירה",
3343
+ [`chonky.actions.${G.EnableListView.id}.button.name`]: "תצוגת רשימה",
3344
+ [`chonky.actions.${G.EnableGridView.id}.button.name`]: "תצוגת גריד",
3345
+ [`chonky.actions.${G.SortFilesByName.id}.button.name`]: "מיון לפי שם",
3346
+ [`chonky.actions.${G.SortFilesBySize.id}.button.name`]: "מיון לפי גודל",
3347
+ [`chonky.actions.${G.SortFilesByDate.id}.button.name`]: "מיון לפי תאריך",
3348
+ [`chonky.actions.${G.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
3349
+ [`chonky.actions.${G.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
3265
3350
  }
3266
- }, uo = {
3267
- [ce.EN]: ao,
3268
- [ce.RU]: lo,
3269
- [ce.HE]: co
3351
+ }, go = {
3352
+ [de.EN]: ho,
3353
+ [de.RU]: mo,
3354
+ [de.HE]: po
3270
3355
  };
3271
- class Ns extends Wt {
3356
+ class zs extends Yt {
3272
3357
  }
3273
- const Bs = H, ho = {
3274
- listView: H.EnableListView.id,
3275
- gridView: H.EnableGridView.id
3358
+ const $s = G, fo = {
3359
+ listView: G.EnableListView.id,
3360
+ gridView: G.EnableGridView.id
3276
3361
  };
3277
- Ii({ iconComponent: ki });
3278
- const Fs = ve.memo(
3362
+ ki({ iconComponent: Ri });
3363
+ const Ws = ve.memo(
3279
3364
  ve.forwardRef(
3280
3365
  ({
3281
3366
  theme: e,
3282
3367
  styles: n = { height: "100%", minWidth: "600px" },
3283
- defaultView: t = ho.listView,
3368
+ defaultView: t = fo.listView,
3284
3369
  readOnlyMode: i = !1,
3285
3370
  locale: o,
3286
3371
  files: r,
3287
3372
  folderChain: d,
3288
3373
  onFileAction: u,
3289
- ...m
3374
+ ...h
3290
3375
  }, E) => {
3291
- const w = me(
3376
+ const C = me(
3292
3377
  (V) => null,
3293
3378
  // file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
3294
3379
  []
3295
3380
  );
3296
- xe({
3381
+ ke({
3297
3382
  "@global": {
3298
3383
  ".chonky-dropdownList": {
3299
3384
  backgroundColor: `${e == null ? void 0 : e.surface} !important`
@@ -3303,21 +3388,21 @@ const Fs = ve.memo(
3303
3388
  }
3304
3389
  }
3305
3390
  })();
3306
- const P = (V) => V.replace(/([A-Z])/g, (te) => "-" + te.toLowerCase()), T = ze(() => e !== void 0 ? Object.keys(e).reduce((te, s) => {
3391
+ const L = (V) => V.replace(/([A-Z])/g, (ne) => "-" + ne.toLowerCase()), b = $e(() => e !== void 0 ? Object.keys(e).reduce((ne, s) => {
3307
3392
  const a = e[s];
3308
- return s = s.startsWith("--") ? s : `--fp-theme-${P(s)}`, te[s] = a, te;
3309
- }, {}) : {}, [e]), [I, G] = D(!1), [q, K] = D(), [F, Y] = D(!1), [U, A] = D(), [$, O] = D();
3310
- return k(() => {
3311
- e && G(!0), K(t), i ? Y(!0) : A([H.CreateFolder, H.DeleteFiles]), o !== void 0 && O(uo[o]);
3393
+ return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, ne[s] = a, ne;
3394
+ }, {}) : {}, [e]), [P, B] = A(!1), [$, q] = A(), [H, Y] = A(!1), [K, x] = A(), [W, O] = A();
3395
+ return I(() => {
3396
+ e && B(!0), q(t), i ? Y(!0) : x([G.CreateFolder, G.DeleteFiles]), o !== void 0 && O(go[o]);
3312
3397
  }, [e, t, i, o]), /* @__PURE__ */ l(
3313
3398
  ae,
3314
3399
  {
3315
3400
  style: {
3316
3401
  ...n,
3317
- ...T
3402
+ ...b
3318
3403
  },
3319
3404
  children: /* @__PURE__ */ l(
3320
- Ai,
3405
+ Oi,
3321
3406
  {
3322
3407
  ref: E,
3323
3408
  files: r ?? [],
@@ -3325,13 +3410,13 @@ const Fs = ve.memo(
3325
3410
  onFileAction: (V) => {
3326
3411
  typeof u == "function" && u(V);
3327
3412
  },
3328
- thumbnailGenerator: w,
3329
- defaultFileViewActionId: q,
3330
- disableDragAndDrop: F,
3331
- fileActions: U,
3332
- darkMode: I,
3333
- i18n: $,
3334
- ...m
3413
+ thumbnailGenerator: C,
3414
+ defaultFileViewActionId: $,
3415
+ disableDragAndDrop: H,
3416
+ fileActions: K,
3417
+ darkMode: P,
3418
+ i18n: W,
3419
+ ...h
3335
3420
  }
3336
3421
  )
3337
3422
  }
@@ -3340,67 +3425,76 @@ const Fs = ve.memo(
3340
3425
  )
3341
3426
  );
3342
3427
  export {
3343
- Rs as Autocomplete,
3344
- it as BboxCorner,
3428
+ Vs as Autocomplete,
3429
+ ot as BboxCorner,
3345
3430
  ae as Box,
3346
- ot as COORDINATES_MERCATOR_FRACTION_DIGITS,
3347
- rt as COORDINATES_WGS_FRACTION_DIGITS,
3348
- us as Cesium3DTileset,
3349
- Ls as CesiumBoundingSphere,
3350
- Ts as CesiumCartesian2,
3351
- _s as CesiumCartesian3,
3352
- Ss as CesiumCartographic,
3353
- ks as CesiumCesiumTerrainProvider,
3354
- vs as CesiumColor,
3355
- bs as CesiumConstantPositionProperty,
3356
- ws as CesiumConstantProperty,
3357
- Wr as CesiumCustomDataSource,
3358
- Es as CesiumDrawingsDataSource,
3359
- Ps as CesiumEllipsoid,
3360
- As as CesiumEllipsoidTerrainProvider,
3361
- Gr as CesiumEntity,
3362
- ys as CesiumEntityDescription,
3363
- Vr as CesiumEntityStaticDescription,
3364
- Ms as CesiumGeographicTilingScheme,
3365
- hs as CesiumGeojsonLayer,
3366
- je as CesiumImageryLayer,
3367
- Os as CesiumLabelStyle,
3368
- ds as CesiumMap,
3369
- $s as CesiumMath,
3370
- fs as CesiumOSMLayer,
3371
- zr as CesiumPolygonGraphics,
3372
- Cs as CesiumPolylineDashMaterialProperty,
3373
- Ds as CesiumRectangle,
3374
- $r as CesiumRectangleGraphics,
3375
- Is as CesiumResource,
3431
+ at as COORDINATES_MERCATOR_FRACTION_DIGITS,
3432
+ st as COORDINATES_WGS_FRACTION_DIGITS,
3433
+ gs as Cesium3DTileset,
3434
+ As as CesiumBoundingSphere,
3435
+ Ms as CesiumCartesian2,
3436
+ Ps as CesiumCartesian3,
3437
+ Ds as CesiumCartographic,
3438
+ Ns as CesiumCesiumTerrainProvider,
3439
+ bs as CesiumColor,
3440
+ Ss as CesiumConstantPositionProperty,
3441
+ Ls as CesiumConstantProperty,
3442
+ jr as CesiumCustomDataSource,
3443
+ Ts as CesiumDrawingsDataSource,
3444
+ Is as CesiumEllipsoid,
3445
+ Rs as CesiumEllipsoidTerrainProvider,
3446
+ $r as CesiumEntity,
3447
+ ws as CesiumEntityDescription,
3448
+ Wr as CesiumEntityStaticDescription,
3449
+ xs as CesiumGeographicTilingScheme,
3450
+ fs as CesiumGeojsonLayer,
3451
+ Ke as CesiumImageryLayer,
3452
+ Fs as CesiumLabelStyle,
3453
+ ps as CesiumMap,
3454
+ Ys as CesiumMath,
3455
+ Cs as CesiumOSMLayer,
3456
+ Ur as CesiumPolygonGraphics,
3457
+ _s as CesiumPolylineDashMaterialProperty,
3458
+ ks as CesiumRectangle,
3459
+ Kr as CesiumRectangleGraphics,
3460
+ Os as CesiumResource,
3376
3461
  oe as CesiumSceneMode,
3377
- xs as CesiumVerticalOrigin,
3378
- cs as CesiumViewer,
3379
- ms as CesiumWMSLayer,
3380
- ps as CesiumWMTSLayer,
3381
- gs as CesiumXYZLayer,
3382
- as as CssBaseline,
3383
- is as DateRangePicker,
3384
- rs as DateTimePicker,
3385
- Fi as DateTimeRangePicker,
3386
- ts as DateTimeRangePickerFormControl,
3462
+ Bs as CesiumVerticalOrigin,
3463
+ ms as CesiumViewer,
3464
+ ys as CesiumWMSLayer,
3465
+ vs as CesiumWMTSLayer,
3466
+ Es as CesiumXYZLayer,
3467
+ Er as CoordinatesTrackerTool,
3468
+ us as CssBaseline,
3469
+ as as DateRangePicker,
3470
+ ls as DateTimePicker,
3471
+ Vi as DateTimeRangePicker,
3472
+ os as DateTimeRangePickerFormControl,
3473
+ Ce as DrawHelper,
3387
3474
  se as DrawType,
3388
- Ns as FileHelper,
3389
- Fs as FilePicker,
3390
- Bs as FilePickerActions,
3391
- ho as FilePickerViewObj,
3392
- os as MapFilterContainer,
3393
- Hi as Popover,
3394
- ue as Proj,
3395
- ls as ScopedCssBaseline,
3396
- ss as SmartTable,
3397
- ce as SupportedLocales,
3398
- ns as TimeRangeInput,
3399
- Ws as cesiumSampleTerrainMostDetailed,
3400
- ut as defaultFormatters,
3475
+ zs as FileHelper,
3476
+ Ws as FilePicker,
3477
+ $s as FilePickerActions,
3478
+ fo as FilePickerViewObj,
3479
+ Hs as InspectorTool,
3480
+ cs as MapFilterContainer,
3481
+ zi as Popover,
3482
+ he as Proj,
3483
+ Tr as ScaleTrackerTool,
3484
+ hs as ScopedCssBaseline,
3485
+ ds as SmartTable,
3486
+ de as SupportedLocales,
3487
+ Gs as TerrainianHeightTool,
3488
+ ss as TimeRangeInput,
3489
+ Lr as ZoomLevelTrackerTool,
3490
+ Xs as cesiumSampleTerrainMostDetailed,
3491
+ mt as defaultFormatters,
3401
3492
  Ye as isDateRange,
3402
- Oi as mapMcToMuiTheme,
3403
- he as useCesiumMap,
3404
- Ut as useMappedMuiTheme,
3405
- Vs as useMediaQuery
3493
+ Bi as mapMcToMuiTheme,
3494
+ Zr as polygonToGeoJSON,
3495
+ Jr as rectangleToGeoJSON,
3496
+ Qr as rectangleToPositions,
3497
+ le as useCesiumMap,
3498
+ Xt as useMappedMuiTheme,
3499
+ js as useMediaQuery
3406
3500
  };