@map-colonies/react-components 4.3.1 → 4.4.0

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,
@@ -1562,164 +1562,164 @@ const en = Ae(null), Fr = en.Provider, he = () => {
1562
1562
  homeButton: !1,
1563
1563
  sceneModePicker: !1,
1564
1564
  ...e
1565
- }, _ = (B, x, j, fe, be) => {
1566
- const ye = t.container, Oe = ye.clientWidth, Re = ye.clientHeight, De = fe + be;
1565
+ }, _ = (F, k, j, fe, Te) => {
1566
+ const ye = t.container, Re = ye.clientWidth, Ne = ye.clientHeight, De = fe + Te;
1567
1567
  return {
1568
- left: `${Oe - B < j ? B - (j - (Oe - B)) : B}px`,
1569
- top: `${Re - x < De ? x - (De - (Re - x)) : x}px`
1568
+ left: `${Re - F < j ? F - (j - (Re - F)) : F}px`,
1569
+ top: `${Ne - k < De ? k - (De - (Ne - k)) : k}px`
1570
1570
  };
1571
- }, b = me((B) => {
1571
+ }, T = me((F) => {
1572
1572
  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;
1573
+ const k = n.current.cesiumElement, j = { x: F.offsetX, y: F.offsetY };
1574
+ a(!1), f(j), w(wr(k, j.x, j.y)), a(!0), y.current = F;
1575
1575
  }
1576
1576
  }, [n]);
1577
- k(() => {
1578
- var B;
1577
+ I(() => {
1578
+ var F;
1579
1579
  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));
1580
+ const k = n.current.cesiumElement;
1581
+ e.imageryContextMenu && (k.scene.canvas.removeEventListener("contextmenu", T), k.scene.canvas.addEventListener("contextmenu", T));
1582
1582
  }
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(
1583
+ i((F = n.current) == null ? void 0 : F.cesiumElement);
1584
+ }, [n, e.imageryContextMenu]), I(() => {
1585
+ var F;
1586
+ t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new Hr(
1587
1587
  t,
1588
- (B = e.legends) == null ? void 0 : B.mapLegendsExtractor,
1588
+ (F = e.legends) == null ? void 0 : F.mapLegendsExtractor,
1589
1589
  () => {
1590
- var x;
1591
- O((x = t.layersManager) == null ? void 0 : x.legendsList);
1590
+ var k;
1591
+ O((k = t.layersManager) == null ? void 0 : k.legendsList);
1592
1592
  },
1593
1593
  e.layerManagerFootprintMetaFieldPath
1594
1594
  ));
1595
- }, [t]), k(() => {
1595
+ }, [t]), I(() => {
1596
1596
  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(() => {
1597
+ }, [e.useOptimizedTileRequests, t]), I(() => {
1598
+ x(e.sceneModes ?? [oe.SCENE2D, oe.SCENE3D, oe.COLUMBUS_VIEW]);
1599
+ }, [e.sceneModes]), I(() => {
1600
+ var k, j;
1601
+ ne(e.baseMaps);
1602
+ const F = (k = e.baseMaps) == null ? void 0 : k.maps.find((fe) => fe.isCurrent);
1603
+ F && t && ((j = t.layersManager) == null || j.setBaseMapLayers(F));
1604
+ }, [e.baseMaps, t]), I(() => {
1605
+ r(e.projection ?? he.WGS84);
1606
+ }, [e.projection]), I(() => {
1607
+ H(e.locale);
1608
+ }, [e.locale]), I(() => {
1609
1609
  u(e.showMousePosition ?? !0);
1610
- }, [e.showMousePosition]), k(() => {
1610
+ }, [e.showMousePosition]), I(() => {
1611
1611
  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 = () => {
1612
+ }, [e.showZoomLevel]), I(() => {
1613
+ L(e.showScale ?? !0);
1614
+ }, [e.showScale]), I(() => {
1615
+ P(e.showLoadingProgress ?? !0);
1616
+ }, [e.showLoadingProgress]), I(() => {
1617
+ const F = () => {
1618
1618
  if (t === void 0)
1619
1619
  return {
1620
1620
  longitude: 0,
1621
1621
  latitude: 0,
1622
1622
  height: 0
1623
1623
  };
1624
- const x = () => {
1624
+ const k = () => {
1625
1625
  const j = t.camera.positionCartographic;
1626
1626
  return {
1627
- longitude: Ne(j.longitude),
1628
- latitude: Ne(j.latitude),
1627
+ longitude: Be(j.longitude),
1628
+ latitude: Be(j.latitude),
1629
1629
  height: j.height
1630
1630
  };
1631
1631
  };
1632
- if (t.scene.mode === Ce.SCENE3D) {
1633
- const j = new Me(
1632
+ if (t.scene.mode === we.SCENE3D) {
1633
+ const j = new Ee(
1634
1634
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1635
1635
  t.container.clientWidth / 2,
1636
1636
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1637
1637
  t.container.clientHeight / 2
1638
- ), fe = t.scene.camera.getPickRay(j), be = t.scene.globe.pick(fe, t.scene);
1639
- if (!be)
1638
+ ), fe = t.scene.camera.getPickRay(j), Te = t.scene.globe.pick(fe, t.scene);
1639
+ if (!Te)
1640
1640
  return {
1641
1641
  longitude: 0,
1642
1642
  latitude: 0,
1643
1643
  height: 0
1644
1644
  };
1645
- const ye = t.scene.globe.ellipsoid.cartesianToCartographic(be);
1645
+ const ye = t.scene.globe.ellipsoid.cartesianToCartographic(Te);
1646
1646
  return ye !== void 0 ? {
1647
- longitude: Ne(ye.longitude),
1648
- latitude: Ne(ye.latitude),
1647
+ longitude: Be(ye.longitude),
1648
+ latitude: Be(ye.latitude),
1649
1649
  height: t.scene.camera.positionCartographic.height
1650
- } : x();
1650
+ } : k();
1651
1651
  } else
1652
- return x();
1652
+ return k();
1653
1653
  };
1654
1654
  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()
1655
+ if (t.scene.mode !== we.MORPHING) {
1656
+ const k = t.camera, j = {
1657
+ position: F(),
1658
+ direction: k.direction.clone(),
1659
+ up: k.up.clone(),
1660
+ right: k.right.clone(),
1661
+ transform: k.transform.clone(),
1662
+ frustum: k.frustum.clone()
1663
1663
  };
1664
1664
  Y.current = j;
1665
1665
  }
1666
- }), T && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
1667
- t.scene.globe.tilesLoaded === !0 ? q(!1) : q(!0);
1666
+ }), b && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
1667
+ t.scene.globe.tilesLoaded === !0 ? $(!1) : $(!0);
1668
1668
  }));
1669
- }, [t]), k(() => {
1670
- const B = () => {
1669
+ }, [t]), I(() => {
1670
+ const F = () => {
1671
1671
  if (t && Y.current) {
1672
- const x = Y.current;
1672
+ const k = Y.current;
1673
1673
  t.camera.flyTo({
1674
- destination: pe.fromDegrees(x.position.longitude, x.position.latitude, x.position.height),
1674
+ destination: pe.fromDegrees(k.position.longitude, k.position.latitude, k.position.height),
1675
1675
  duration: 0
1676
1676
  });
1677
1677
  }
1678
1678
  };
1679
- return t && t.scene.morphComplete.addEventListener(B), () => {
1679
+ return t && t.scene.morphComplete.addEventListener(F), () => {
1680
1680
  if (t)
1681
1681
  try {
1682
- t.scene.morphComplete.removeEventListener(B);
1682
+ t.scene.morphComplete.removeEventListener(F);
1683
1683
  } catch {
1684
1684
  console.error("morphCompleteHandler event not cleaned");
1685
1685
  }
1686
1686
  };
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)),
1687
+ }, [t]), I(() => {
1688
+ const F = e.zoom, k = e.center;
1689
+ t && Ve(F) && Pi(k) && t.camera.flyTo({
1690
+ destination: pe.fromDegrees(k[0], k[1], vr(F)),
1691
1691
  duration: 0
1692
1692
  });
1693
1693
  }, [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, {}),
1694
+ const M = me(() => t && Jn(
1695
+ /* @__PURE__ */ N(te, { children: [
1696
+ b === !0 ? B && /* @__PURE__ */ l(On, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }) : /* @__PURE__ */ l(te, {}),
1697
1697
  /* @__PURE__ */ N(ae, { className: "sideToolsContainer", children: [
1698
- /* @__PURE__ */ l(Pr, { sceneModes: U, baseMaps: V, locale: K }),
1699
- /* @__PURE__ */ l(Dr, { onClick: () => v(!h) })
1698
+ /* @__PURE__ */ l(Ar, { sceneModes: K, baseMaps: V, locale: q }),
1699
+ /* @__PURE__ */ l(xr, { onClick: () => v(!m) })
1700
1700
  ] }),
1701
1701
  /* @__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, {})
1702
+ d === !0 ? /* @__PURE__ */ l(Er, { projection: o }) : /* @__PURE__ */ l(te, {}),
1703
+ h === !0 ? /* @__PURE__ */ l(Lr, { locale: q }) : /* @__PURE__ */ l(te, {}),
1704
+ C === !0 ? /* @__PURE__ */ l(Tr, { locale: q }) : /* @__PURE__ */ l(te, {})
1705
1705
  ] })
1706
1706
  ] }),
1707
1707
  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: [
1708
+ ), [V, q, t, o, K, d, C, m, B]);
1709
+ return /* @__PURE__ */ l(Qn, { className: "viewer", full: !0, ref: n, ...S, children: /* @__PURE__ */ N(Vr, { value: t, children: [
1710
1710
  /* @__PURE__ */ l(
1711
- kr,
1711
+ Rr,
1712
1712
  {
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) ?? $,
1713
+ title: (D = e.legends) == null ? void 0 : D.title,
1714
+ isOpen: m,
1715
+ toggleSidebar: () => v(!m),
1716
+ noLegendsText: (U = e.legends) == null ? void 0 : U.emptyText,
1717
+ legends: ((X = e.legends) == null ? void 0 : X.legendsList) ?? W,
1718
1718
  actionsTexts: (R = e.legends) == null ? void 0 : R.actionsTexts
1719
1719
  }
1720
1720
  ),
1721
1721
  e.children,
1722
- L(),
1722
+ M(),
1723
1723
  e.imageryContextMenu && s && c && g && ve.cloneElement(e.imageryContextMenu, {
1724
1724
  data: (z = t == null ? void 0 : t.layersManager) == null ? void 0 : z.findLayerByPOI(c.x, c.y, !1),
1725
1725
  position: {
@@ -1730,13 +1730,13 @@ const en = Ae(null), Fr = en.Provider, he = () => {
1730
1730
  style: _(
1731
1731
  c.x,
1732
1732
  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
1733
+ ((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ?? St,
1734
+ ((ie = e.imageryContextMenuSize) == null ? void 0 : ie.height) ?? Lt,
1735
+ ((ge = e.imageryContextMenuSize) == null ? void 0 : ge.dynamicHeightIncrement) ?? Gr
1736
1736
  ),
1737
1737
  size: e.imageryContextMenuSize ?? {
1738
- height: Tt,
1739
- width: _t
1738
+ height: Lt,
1739
+ width: St
1740
1740
  },
1741
1741
  handleClose: () => {
1742
1742
  a(!s);
@@ -1744,66 +1744,66 @@ const en = Ae(null), Fr = en.Provider, he = () => {
1744
1744
  contextEvt: y.current
1745
1745
  })
1746
1746
  ] }) });
1747
- }, Hr = 0, us = (e) => {
1748
- const n = he();
1747
+ }, zr = 0, gs = (e) => {
1748
+ const n = le();
1749
1749
  return /* @__PURE__ */ l(
1750
- Yn,
1750
+ ei,
1751
1751
  {
1752
1752
  ...e,
1753
1753
  onReady: (t) => {
1754
1754
  e.isZoomTo === !0 && n.zoomTo(t);
1755
1755
  const i = n.scene;
1756
1756
  i.globe.depthTestAgainstTerrain = !0;
1757
- const o = We.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? Hr;
1757
+ const o = Oe.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? zr;
1758
1758
  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);
1759
+ 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());
1760
+ t.modelMatrix = gi.fromTranslation(h);
1761
1761
  }
1762
1762
  }
1763
1763
  }
1764
1764
  );
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) => {
1765
+ }, Mt = 180, Pt = 1e-3, Dt = -1, At = (e) => Math.abs(e) / e, It = (e) => {
1766
+ 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);
1767
+ }, xt = (e) => {
1768
1768
  switch (e.type) {
1769
1769
  case "LineString":
1770
1770
  e.coordinates.forEach((n) => {
1771
- Dt(n);
1771
+ It(n);
1772
1772
  });
1773
1773
  break;
1774
1774
  case "Polygon":
1775
1775
  e.coordinates.forEach((n) => {
1776
1776
  n.forEach((t) => {
1777
- Dt(t);
1777
+ It(t);
1778
1778
  });
1779
1779
  });
1780
1780
  break;
1781
1781
  }
1782
- }, hs = (e) => {
1782
+ }, fs = (e) => {
1783
1783
  const { data: n, ...t } = e;
1784
1784
  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(() => {
1785
+ xt(i.geometry);
1786
+ }) : xt(n)), /* @__PURE__ */ l(ti, { data: n, ...t });
1787
+ }, Ke = (e) => {
1788
+ const { meta: n, ...t } = e, i = le();
1789
+ return dn(() => {
1790
1790
  var o;
1791
1791
  (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) => {
1792
+ }, [n, i]), /* @__PURE__ */ l(ni, { ...t });
1793
+ }, ys = (e) => {
1794
+ const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new rn(n, i) : new ct(n);
1795
+ return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
1796
+ }, vs = (e) => {
1797
+ const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new on(n, i) : new dt(n);
1798
+ return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
1799
+ }, Es = (e) => {
1800
+ const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new nn(n, i) : new lt(n);
1801
+ return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
1802
+ }, Cs = (e) => {
1803
1803
  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() {
1804
+ return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: new fi(n) });
1805
+ }, $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 });
1806
+ var Ce = function() {
1807
1807
  var e = p.Ellipsoid.WGS84, n, t = p.Material.fromType(p.Material.ColorType);
1808
1808
  function i(s, a = new p.Color(1, 1, 0, 0.5), y = new p.Color(1, 1, 1, 1)) {
1809
1809
  this._scene = s.scene, t.uniforms.color = a, n = y, this._tooltip = {
@@ -1815,27 +1815,27 @@ var Ee = function() {
1815
1815
  }
1816
1816
  i.prototype.initialiseHandlers = function() {
1817
1817
  var s = this._scene, a = this, y = new p.ScreenSpaceEventHandler(s.canvas);
1818
- function c(h, v) {
1818
+ function c(m, v) {
1819
1819
  if (a._handlersMuted != !0) {
1820
1820
  var g = s.pick(v);
1821
- g && g.primitive && g.primitive[h] && g.primitive[h](v);
1821
+ g && g.primitive && g.primitive[m] && g.primitive[m](v);
1822
1822
  }
1823
1823
  }
1824
- y.setInputAction(function(h) {
1825
- c("leftClick", h.position);
1826
- }, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(h) {
1827
- c("leftDoubleClick", h.position);
1824
+ y.setInputAction(function(m) {
1825
+ c("leftClick", m.position);
1826
+ }, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(m) {
1827
+ c("leftDoubleClick", m.position);
1828
1828
  }, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
1829
1829
  var f;
1830
- y.setInputAction(function(h) {
1830
+ y.setInputAction(function(m) {
1831
1831
  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));
1832
+ var v = s.pick(m.endPosition);
1833
+ 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
1834
  }
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);
1835
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), y.setInputAction(function(m) {
1836
+ c("leftUp", m.position);
1837
+ }, p.ScreenSpaceEventType.LEFT_UP), y.setInputAction(function(m) {
1838
+ c("leftDown", m.position);
1839
1839
  }, p.ScreenSpaceEventType.LEFT_DOWN);
1840
1840
  }, i.prototype.setListener = function(s, a, y) {
1841
1841
  s[a] = y;
@@ -1876,9 +1876,9 @@ var Ee = function() {
1876
1876
  }),
1877
1877
  material: t,
1878
1878
  granularity: Math.PI / 180
1879
- }), d = O(o, {}), u = O(o, {}), m = O(o, {}), E = O(r, {
1879
+ }), d = O(o, {}), u = O(o, {}), h = O(o, {}), E = O(r, {
1880
1880
  rotation: 0
1881
- }), w = O(o, {
1881
+ }), C = O(o, {
1882
1882
  width: 5,
1883
1883
  geodesic: !0,
1884
1884
  granularity: 1e4,
@@ -1886,11 +1886,11 @@ var Ee = function() {
1886
1886
  aboveGround: !1
1887
1887
  }),
1888
1888
  material: t
1889
- }), P = function() {
1889
+ }), L = function() {
1890
1890
  function s() {
1891
1891
  }
1892
1892
  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;
1893
+ 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
1894
  }, s.prototype.setAttribute = function(a, y) {
1895
1895
  this[a] = y, this._createPrimitive = !0;
1896
1896
  }, s.prototype.getAttribute = function(a) {
@@ -1935,8 +1935,8 @@ var Ee = function() {
1935
1935
  })
1936
1936
  }));
1937
1937
  }
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);
1938
+ var m = this._primitive;
1939
+ m.appearance.material = this.material, m.debugShowBoundingVolume = this.debugShowBoundingVolume, m.update(a, y, c), this._outlinePolygon && this._outlinePolygon.update(a, y, c);
1940
1940
  }
1941
1941
  }, s.prototype.isDestroyed = function() {
1942
1942
  return !1;
@@ -1952,7 +1952,7 @@ var Ee = function() {
1952
1952
  throw new p.DeveloperError("Extent is required");
1953
1953
  a = O(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
1954
1954
  }
1955
- return s.prototype = new P(), s.prototype.setExtent = function(a) {
1955
+ return s.prototype = new L(), s.prototype.setExtent = function(a) {
1956
1956
  this.setAttribute("extent", a);
1957
1957
  }, s.prototype.getExtent = function() {
1958
1958
  return this.getAttribute("extent");
@@ -1975,7 +1975,7 @@ var Ee = function() {
1975
1975
  function s(a) {
1976
1976
  a = O(a, r), this.initialiseOptions(a), this.isPolygon = !0;
1977
1977
  }
1978
- return s.prototype = new P(), s.prototype.setPositions = function(a) {
1978
+ return s.prototype = new L(), s.prototype.setPositions = function(a) {
1979
1979
  this.setAttribute("positions", a);
1980
1980
  }, s.prototype.getPositions = function() {
1981
1981
  return this.getAttribute("positions");
@@ -2000,7 +2000,7 @@ var Ee = function() {
2000
2000
  throw new p.DeveloperError("Center and radius are required");
2001
2001
  a = O(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
2002
2002
  }
2003
- return s.prototype = new P(), s.prototype.setCenter = function(a) {
2003
+ return s.prototype = new L(), s.prototype.setCenter = function(a) {
2004
2004
  this.setAttribute("center", a);
2005
2005
  }, s.prototype.setRadius = function(a) {
2006
2006
  this.setAttribute("radius", Math.max(0.1, a));
@@ -2031,7 +2031,7 @@ var Ee = function() {
2031
2031
  throw new p.DeveloperError("Center and semi major and semi minor axis are required");
2032
2032
  a = O(a, E), this.initialiseOptions(a);
2033
2033
  }
2034
- return s.prototype = new P(), s.prototype.setCenter = function(a) {
2034
+ return s.prototype = new L(), s.prototype.setCenter = function(a) {
2035
2035
  this.setAttribute("center", a);
2036
2036
  }, s.prototype.setSemiMajorAxis = function(a) {
2037
2037
  a < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", a);
@@ -2070,9 +2070,9 @@ var Ee = function() {
2070
2070
  }, s;
2071
2071
  }(), i.PolylinePrimitive = function() {
2072
2072
  function s(a) {
2073
- a = O(a, w), this.initialiseOptions(a);
2073
+ a = O(a, C), this.initialiseOptions(a);
2074
2074
  }
2075
- return s.prototype = new P(), s.prototype.setPositions = function(a) {
2075
+ return s.prototype = new L(), s.prototype.setPositions = function(a) {
2076
2076
  this.setAttribute("positions", a);
2077
2077
  }, s.prototype.setWidth = function(a) {
2078
2078
  this.setAttribute("width", a);
@@ -2095,15 +2095,15 @@ var Ee = function() {
2095
2095
  });
2096
2096
  }, s;
2097
2097
  }();
2098
- var T = {
2098
+ var b = {
2099
2099
  iconUrl: "./assets/img/dragIcon.png",
2100
2100
  shiftX: 0,
2101
2101
  shiftY: 0
2102
- }, I = {
2102
+ }, P = {
2103
2103
  iconUrl: "./assets/img/dragIcon.png",
2104
2104
  shiftX: 0,
2105
2105
  shiftY: 0
2106
- }, G = {
2106
+ }, B = {
2107
2107
  iconUrl: "./assets/img/dragIconLight.png",
2108
2108
  shiftX: 0,
2109
2109
  shiftY: 0
@@ -2112,7 +2112,7 @@ var Ee = function() {
2112
2112
  var c = new i.BillboardGroup(this, a);
2113
2113
  return c.addBillboards(s, y), c;
2114
2114
  }, i.BillboardGroup = function(s, a) {
2115
- this._drawHelper = s, this._scene = s._scene, this._options = O(a, T);
2115
+ this._drawHelper = s, this._scene = s._scene, this._options = O(a, b);
2116
2116
  var y = new p.BillboardCollection();
2117
2117
  this._scene.primitives.add(y), this._billboards = y, this._orderedBillboards = [];
2118
2118
  }, i.BillboardGroup.prototype.createBillboard = function(s, a) {
@@ -2128,33 +2128,33 @@ var Ee = function() {
2128
2128
  color: n
2129
2129
  });
2130
2130
  if (a) {
2131
- let h = function(g) {
2131
+ let m = function(g) {
2132
2132
  f.enableRotate = g;
2133
2133
  }, v = function() {
2134
- for (var g = 0, C = c._orderedBillboards.length; g < C && c._orderedBillboards[g] != y; ++g)
2134
+ for (var g = 0, w = c._orderedBillboards.length; g < w && c._orderedBillboards[g] != y; ++g)
2135
2135
  ;
2136
2136
  return g;
2137
2137
  };
2138
2138
  var c = this, f = this._scene.screenSpaceCameraController;
2139
2139
  if (a.dragHandlers) {
2140
2140
  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)
2141
+ V(y, "leftDown", function(w) {
2142
+ function S(M) {
2143
+ y.position = M;
2144
+ for (var D = 0, U = c._orderedBillboards.length; D < U && c._orderedBillboards[D] != y; ++D)
2145
2145
  ;
2146
- a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(), L);
2146
+ a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(), M);
2147
2147
  }
2148
- function _(L) {
2149
- b.destroy(), h(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(v(), L);
2148
+ function _(M) {
2149
+ T.destroy(), m(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(v(), M);
2150
2150
  }
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));
2151
+ var T = new p.ScreenSpaceEventHandler(c._scene.canvas);
2152
+ T.setInputAction(function(M) {
2153
+ var D = c._scene.camera.pickEllipsoid(M.endPosition, e);
2154
+ D ? S(D) : _(D);
2155
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), T.setInputAction(function(M) {
2156
+ _(c._scene.camera.pickEllipsoid(M.position, e));
2157
+ }, p.ScreenSpaceEventType.LEFT_UP), m(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(v(), c._scene.camera.pickEllipsoid(w, e));
2158
2158
  });
2159
2159
  }
2160
2160
  a.onDoubleClick && V(y, "leftDoubleClick", function(g) {
@@ -2189,69 +2189,69 @@ var Ee = function() {
2189
2189
  }, i.BillboardGroup.prototype.setOnTop = function() {
2190
2190
  this._scene.primitives.raiseToTop(this._billboards);
2191
2191
  }, i.prototype.startDrawingMarker = function(a) {
2192
- var a = O(a, T);
2192
+ var a = O(a, b);
2193
2193
  this.startDrawing(function() {
2194
- h.remove(), v.destroy(), f.setVisible(!1);
2194
+ m.remove(), v.destroy(), f.setVisible(!1);
2195
2195
  });
2196
2196
  var y = this, c = this._scene;
2197
2197
  c.primitives;
2198
- var f = this._tooltip, h = new i.BillboardGroup(this, a), v = new p.ScreenSpaceEventHandler(c.canvas);
2198
+ var f = this._tooltip, m = new i.BillboardGroup(this, a), v = new p.ScreenSpaceEventHandler(c.canvas);
2199
2199
  v.setInputAction(function(g) {
2200
2200
  if (g.position != null) {
2201
- var C = c.camera.pickEllipsoid(g.position, e);
2202
- C && (h.addBillboard(C), y.stopDrawing(), a.callback(C));
2201
+ var w = c.camera.pickEllipsoid(g.position, e);
2202
+ w && (m.addBillboard(w), y.stopDrawing(), a.callback(w));
2203
2203
  }
2204
2204
  }, 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);
2205
+ var w = g.endPosition;
2206
+ if (w != null) {
2207
+ var S = c.camera.pickEllipsoid(w, e);
2208
2208
  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>");
2209
+ w,
2210
+ "<p>Click to add your marker. Position is: </p>" + K(e.cartesianToCartographic(S))
2211
+ ) : f.showAt(w, "<p>Click on the globe to add your marker.</p>");
2212
2212
  }
2213
2213
  }, p.ScreenSpaceEventType.MOUSE_MOVE);
2214
2214
  }, i.prototype.startDrawingPolygon = function(a) {
2215
2215
  var a = O(a, r);
2216
2216
  this.startDrawingPolyshape(!0, a);
2217
2217
  }, i.prototype.startDrawingPolyline = function(a) {
2218
- var a = O(a, w);
2218
+ var a = O(a, C);
2219
2219
  this.startDrawingPolyshape(!1, a);
2220
2220
  }, i.prototype.startDrawingPolyshape = function(s, a) {
2221
2221
  this.startDrawing(function() {
2222
- f.remove(g), S.remove(), _.destroy(), h.setVisible(!1), F(c);
2222
+ f.remove(g), S.remove(), _.destroy(), m.setVisible(!1), H(c);
2223
2223
  });
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));
2224
+ var y = this, c = this._scene, f = c.primitives, m = this._tooltip, v = s ? 3 : 2, g;
2225
+ s ? g = new Ce.PolygonPrimitive(a) : g = new Ce.PolylinePrimitive(a), g.asynchronous = !1, f.add(g);
2226
+ var w = [], S = new i.BillboardGroup(this, b), _ = new p.ScreenSpaceEventHandler(c.canvas);
2227
+ q(c), _.setInputAction(function(T) {
2228
+ if (T.position != null) {
2229
+ var M = c.camera.pickEllipsoid(T.position, e);
2230
+ 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
2231
  }
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>");
2232
+ }, p.ScreenSpaceEventType.LEFT_CLICK), _.setInputAction(function(T) {
2233
+ var M = T.endPosition;
2234
+ if (M != null)
2235
+ if (w.length == 0)
2236
+ m.showAt(M, "<p>Click to add first point</p>");
2237
2237
  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>" : "")
2238
+ var D = c.camera.pickEllipsoid(M, e);
2239
+ 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(
2240
+ M,
2241
+ "<p>Click to add new point (" + w.length + ")</p>" + (w.length > v ? "<p>Double click to finish drawing</p>" : "")
2242
2242
  ));
2243
2243
  }
2244
- }, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(b) {
2245
- var L = b.position;
2246
- if (L != null) {
2247
- if (C.length < v + 2)
2244
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(T) {
2245
+ var M = T.position;
2246
+ if (M != null) {
2247
+ if (w.length < v + 2)
2248
2248
  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)));
2249
+ var D = c.camera.pickEllipsoid(M, e);
2250
+ D && (H(c), y.stopDrawing(), typeof a.callback == "function" && (w.length - 1, a.callback(w)));
2251
2251
  }
2252
2252
  }, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2253
2253
  };
2254
- function q(s) {
2254
+ function $(s) {
2255
2255
  return e.cartographicArrayToCartesianArray([
2256
2256
  p.Rectangle.northwest(s),
2257
2257
  p.Rectangle.northeast(s),
@@ -2259,58 +2259,58 @@ var Ee = function() {
2259
2259
  p.Rectangle.southwest(s)
2260
2260
  ]);
2261
2261
  }
2262
- function K(s) {
2262
+ function q(s) {
2263
2263
  s && (s.canvas.style.cursor = "crosshair");
2264
2264
  }
2265
- function F(s) {
2265
+ function H(s) {
2266
2266
  s && (s.canvas.style.cursor = "");
2267
2267
  }
2268
2268
  i.prototype.startDrawingExtent = function(a) {
2269
2269
  var a = O(a, r);
2270
2270
  this.startDrawing(function() {
2271
- g != null && f.remove(g), C != null && C.remove(), S.destroy(), h.setVisible(!1), F(c);
2271
+ g != null && f.remove(g), w != null && w.remove(), S.destroy(), m.setVisible(!1), H(c);
2272
2272
  });
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,
2273
+ 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);
2274
+ q(c);
2275
+ function _(T) {
2276
+ g == null && (g = new Ce.ExtentPrimitive({
2277
+ extent: T,
2278
2278
  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);
2279
+ }), g.asynchronous = !1, f.add(g)), g.setExtent(T);
2280
+ var M = $(T);
2281
+ w == null ? (w = new i.BillboardGroup(y, b), w.addBillboards(M)) : w.updateBillboardsPositions(M);
2282
2282
  }
2283
- S.setInputAction(function(b) {
2284
- if (b.position != null) {
2285
- var L = c.camera.pickEllipsoid(b.position, e);
2286
- if (L)
2283
+ S.setInputAction(function(T) {
2284
+ if (T.position != null) {
2285
+ var M = c.camera.pickEllipsoid(T.position, e);
2286
+ if (M)
2287
2287
  if (g == null) {
2288
- v = e.cartesianToCartographic(L);
2289
- var M = Y(v, v);
2290
- _(M);
2288
+ v = e.cartesianToCartographic(M);
2289
+ var D = Y(v, v);
2290
+ _(D);
2291
2291
  } else
2292
- y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(L)));
2292
+ y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(M)));
2293
2293
  }
2294
- }, p.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(b) {
2295
- var L = b.endPosition;
2296
- if (L != null)
2294
+ }, p.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(T) {
2295
+ var M = T.endPosition;
2296
+ if (M != null)
2297
2297
  if (g == null)
2298
- h.showAt(L, "<p>Click to start drawing rectangle</p>");
2298
+ m.showAt(M, "<p>Click to start drawing rectangle</p>");
2299
2299
  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>");
2300
+ var D = c.camera.pickEllipsoid(M, e);
2301
+ if (D) {
2302
+ var U = Y(v, e.cartesianToCartographic(D));
2303
+ _(U), m.showAt(M, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
2304
2304
  }
2305
2305
  }
2306
2306
  }, p.ScreenSpaceEventType.MOUSE_MOVE);
2307
2307
  }, i.prototype.startDrawingCircle = function(a) {
2308
2308
  var a = O(a, r);
2309
2309
  this.startDrawing(function() {
2310
- v != null && f.remove(v), g.remove(), C.destroy(), h.setVisible(!1);
2310
+ v != null && f.remove(v), g.remove(), w.destroy(), m.setVisible(!1);
2311
2311
  });
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) {
2312
+ var y = this, c = this._scene, f = this._scene.primitives, m = this._tooltip, v = null, g = null, w = new p.ScreenSpaceEventHandler(c.canvas);
2313
+ w.setInputAction(function(S) {
2314
2314
  if (S.position != null) {
2315
2315
  var _ = c.camera.pickEllipsoid(S.position, e);
2316
2316
  _ && (v == null ? (v = new i.CirclePrimitive({
@@ -2318,16 +2318,16 @@ var Ee = function() {
2318
2318
  radius: 0,
2319
2319
  asynchronous: !1,
2320
2320
  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()));
2321
+ }), f.add(v), g = new i.BillboardGroup(y, b), g.addBillboards([_])) : (typeof a.callback == "function" && a.callback(v.getCenter(), v.getRadius()), y.stopDrawing()));
2322
2322
  }
2323
- }, p.ScreenSpaceEventType.LEFT_DOWN), C.setInputAction(function(S) {
2323
+ }, p.ScreenSpaceEventType.LEFT_DOWN), w.setInputAction(function(S) {
2324
2324
  var _ = S.endPosition;
2325
2325
  if (_ != null)
2326
2326
  if (v == null)
2327
- h.showAt(_, "<p>Click to start drawing the circle</p>");
2327
+ m.showAt(_, "<p>Click to start drawing the circle</p>");
2328
2328
  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>"));
2329
+ var T = c.camera.pickEllipsoid(_, e);
2330
+ 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
2331
  }
2332
2332
  }, p.ScreenSpaceEventType.MOUSE_MOVE);
2333
2333
  }, i.prototype.enhancePrimitives = function() {
@@ -2337,24 +2337,24 @@ var Ee = function() {
2337
2337
  return;
2338
2338
  this._editable = !0;
2339
2339
  var c = this, f = this;
2340
- function h(v) {
2340
+ function m(v) {
2341
2341
  s._scene.screenSpaceCameraController.enableRotate = v;
2342
2342
  }
2343
2343
  V(c, "leftDown", function(v) {
2344
2344
  function g(_) {
2345
2345
  c.position = _, f.executeListeners({ name: "drag", positions: _ });
2346
2346
  }
2347
- function C(_) {
2348
- S.destroy(), h(!0), f.executeListeners({ name: "dragEnd", positions: _ });
2347
+ function w(_) {
2348
+ S.destroy(), m(!0), f.executeListeners({ name: "dragEnd", positions: _ });
2349
2349
  }
2350
2350
  var S = new p.ScreenSpaceEventHandler(s._scene.canvas);
2351
2351
  S.setInputAction(function(_) {
2352
- var b = s._scene.camera.pickEllipsoid(_.endPosition, e);
2353
- b ? g(b) : C(b);
2352
+ var T = s._scene.camera.pickEllipsoid(_.endPosition, e);
2353
+ T ? g(T) : w(T);
2354
2354
  }, 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);
2355
+ w(s._scene.camera.pickEllipsoid(_.position, e));
2356
+ }, p.ScreenSpaceEventType.LEFT_UP), m(!1);
2357
+ }), ne(c);
2358
2358
  };
2359
2359
  function a(c) {
2360
2360
  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 +2363,18 @@ var Ee = function() {
2363
2363
  if (this._editMode != c)
2364
2364
  if (s.disableAllHighlights(), c) {
2365
2365
  s.setEdited(this);
2366
- var f = s._scene, h = this;
2366
+ var f = s._scene, m = this;
2367
2367
  if (this._markers == null) {
2368
- let M = function(R, z) {
2368
+ let D = function(R, z) {
2369
2369
  var Q = R - 1 < 0 ? z.length - 1 : R - 1;
2370
2370
  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({
2371
+ }, U = function() {
2372
+ m.executeListeners({
2373
2373
  name: "onEdited",
2374
- positions: h.positions
2374
+ positions: m.positions
2375
2375
  });
2376
2376
  }, X = function(R) {
2377
- var z = h.positions;
2377
+ var z = m.positions;
2378
2378
  return e.cartographicToCartesian(
2379
2379
  new p.EllipsoidGeodesic(
2380
2380
  e.cartesianToCartographic(z[R]),
@@ -2382,93 +2382,93 @@ var Ee = function() {
2382
2382
  ).interpolateUsingFraction(0.5)
2383
2383
  );
2384
2384
  };
2385
- var v = new i.BillboardGroup(s, I), g = new i.BillboardGroup(s, G), C = {
2385
+ var v = new i.BillboardGroup(s, P), g = new i.BillboardGroup(s, B), w = {
2386
2386
  dragHandlers: {
2387
2387
  onDrag: function(R, z) {
2388
- h.positions[R] = z, M(R, h.positions), h._createPrimitive = !0;
2388
+ m.positions[R] = z, D(R, m.positions), m._createPrimitive = !0;
2389
2389
  },
2390
2390
  onDragEnd: function(R, z) {
2391
- h._createPrimitive = !0, W();
2391
+ m._createPrimitive = !0, U();
2392
2392
  }
2393
2393
  },
2394
2394
  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());
2395
+ m.positions.length < 4 || (m.positions.splice(R, 1), m._createPrimitive = !0, v.removeBillboard(R), g.removeBillboard(R), D(R, m.positions), U());
2396
2396
  },
2397
2397
  tooltip: function() {
2398
- if (h.positions.length > 3)
2398
+ if (m.positions.length > 3)
2399
2399
  return "Double click to remove this point";
2400
2400
  }
2401
2401
  };
2402
- v.addBillboards(h.positions, C), this._markers = v;
2403
- for (var S = [], _ = 0, b = h.positions.length + (this.isPolygon ? 0 : -1); _ < b; _++)
2402
+ v.addBillboards(m.positions, w), this._markers = v;
2403
+ for (var S = [], _ = 0, T = m.positions.length + (this.isPolygon ? 0 : -1); _ < T; _++)
2404
2404
  S.push(X(_));
2405
- var L = {
2405
+ var M = {
2406
2406
  dragHandlers: {
2407
2407
  onDragStart: function(R, z) {
2408
- this.index = R + 1, h.positions.splice(this.index, 0, z), h._createPrimitive = !0;
2408
+ this.index = R + 1, m.positions.splice(this.index, 0, z), m._createPrimitive = !0;
2409
2409
  },
2410
2410
  onDrag: function(R, z) {
2411
- h.positions[this.index] = z, h._createPrimitive = !0;
2411
+ m.positions[this.index] = z, m._createPrimitive = !0;
2412
2412
  },
2413
2413
  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();
2414
+ 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
2415
  }
2416
2416
  },
2417
2417
  tooltip: function() {
2418
2418
  return "Drag to create a new point";
2419
2419
  }
2420
2420
  };
2421
- g.addBillboards(S, L), this._editMarkers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(R) {
2421
+ g.addBillboards(S, M), this._editMarkers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(R) {
2422
2422
  var z = f.pick(R.position);
2423
- z && z.primitive || h.setEditMode(!1);
2423
+ z && z.primitive || m.setEditMode(!1);
2424
2424
  }, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop(), g.setOnTop();
2425
2425
  }
2426
2426
  this._editMode = !0;
2427
2427
  } else
2428
2428
  this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2429
2429
  }
2430
- Ee.PolylinePrimitive.prototype.setEditable = function() {
2430
+ Ce.PolylinePrimitive.prototype.setEditable = function() {
2431
2431
  if (!this.setEditMode) {
2432
2432
  var c = this;
2433
2433
  c.isPolygon = !1, c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = y;
2434
2434
  var f = this.width;
2435
- c.setHighlighted = function(h) {
2436
- this._editMode !== !0 && (h ? (s.setHighlighted(this), this.setWidth(f * 2)) : this.setWidth(f));
2435
+ c.setHighlighted = function(m) {
2436
+ this._editMode !== !0 && (m ? (s.setHighlighted(this), this.setWidth(f * 2)) : this.setWidth(f));
2437
2437
  }, c.getExtent = function() {
2438
2438
  return p.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
2439
- }, te(c), c.setEditMode(!1);
2439
+ }, ne(c), c.setEditMode(!1);
2440
2440
  }
2441
- }, Ee.PolygonPrimitive.prototype.setEditable = function() {
2441
+ }, Ce.PolygonPrimitive.prototype.setEditable = function() {
2442
2442
  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() {
2443
+ c.asynchronous = !1, s._scene, s.registerEditableShape(c), c.setEditMode = y, c.setHighlighted = a, ne(c), c.setEditMode(!1);
2444
+ }, Ce.ExtentPrimitive.prototype.setEditable = function() {
2445
2445
  if (!this.setEditMode) {
2446
2446
  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) {
2447
+ s.registerEditableShape(c), c.asynchronous = !1, c.setEditMode = function(m) {
2448
+ if (this._editMode != m)
2449
+ if (s.disableAllHighlights(), m) {
2450
2450
  if (s.setEdited(this), this._markers == null) {
2451
- let C = function() {
2451
+ let w = function() {
2452
2452
  c.executeListeners({
2453
2453
  name: "onEdited",
2454
2454
  extent: c.extent
2455
2455
  });
2456
2456
  };
2457
- var v = new i.BillboardGroup(s, I), g = {
2457
+ var v = new i.BillboardGroup(s, P), g = {
2458
2458
  dragHandlers: {
2459
2459
  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));
2460
+ var T = v.getBillboard((S + 2) % 4).position;
2461
+ c.setExtent(Y(e.cartesianToCartographic(T), e.cartesianToCartographic(_))), v.updateBillboardsPositions($(c.extent));
2462
2462
  },
2463
2463
  onDragEnd: function(S, _) {
2464
- C();
2464
+ w();
2465
2465
  }
2466
2466
  },
2467
2467
  tooltip: function() {
2468
2468
  return "Drag to change the corners of this extent";
2469
2469
  }
2470
2470
  };
2471
- v.addBillboards(q(c.extent), g), this._markers = v, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(S) {
2471
+ v.addBillboards($(c.extent), g), this._markers = v, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(S) {
2472
2472
  var _ = f.pick(S.position);
2473
2473
  _ && !_.isDestroyed() && _.primitive || c.setEditMode(!1);
2474
2474
  }, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop();
@@ -2476,14 +2476,14 @@ var Ee = function() {
2476
2476
  this._editMode = !0;
2477
2477
  } else
2478
2478
  this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2479
- }, c.setHighlighted = a, te(c), c.setEditMode(!1);
2479
+ }, c.setHighlighted = a, ne(c), c.setEditMode(!1);
2480
2480
  }
2481
2481
  }, i.EllipsePrimitive.prototype.setEditable = function() {
2482
2482
  if (!this.setEditMode) {
2483
2483
  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) {
2484
+ c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(m) {
2485
+ if (this._editMode != m)
2486
+ if (s.disableAllHighlights(), m) {
2487
2487
  s.setEdited(this);
2488
2488
  var v = this;
2489
2489
  if (this._markers == null) {
@@ -2505,13 +2505,13 @@ var Ee = function() {
2505
2505
  rotation: 0
2506
2506
  });
2507
2507
  };
2508
- var g = new i.BillboardGroup(s, I), C = {
2508
+ var g = new i.BillboardGroup(s, P), w = {
2509
2509
  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());
2510
+ onDrag: function(T, M) {
2511
+ var D = p.Cartesian3.distance(c.getCenter(), M);
2512
+ T % 2 == 0 ? c.setSemiMajorAxis(D) : c.setSemiMinorAxis(D), g.updateBillboardsPositions(S());
2513
2513
  },
2514
- onDragEnd: function(b, L) {
2514
+ onDragEnd: function(T, M) {
2515
2515
  _();
2516
2516
  }
2517
2517
  },
@@ -2519,15 +2519,15 @@ var Ee = function() {
2519
2519
  return "Drag to change the excentricity and radius";
2520
2520
  }
2521
2521
  };
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);
2522
+ g.addBillboards(S(), w), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(T) {
2523
+ var M = f.pick(T.position);
2524
+ M && M.primitive || v.setEditMode(!1);
2525
2525
  }, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
2526
2526
  }
2527
2527
  this._editMode = !0;
2528
2528
  } else
2529
2529
  this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2530
- }, c.setHighlighted = a, te(c), c.setEditMode(!1);
2530
+ }, c.setHighlighted = a, ne(c), c.setEditMode(!1);
2531
2531
  }
2532
2532
  }, i.CirclePrimitive.prototype.getCircleCartesianCoordinates = function(c) {
2533
2533
  for (var f = p.CircleOutlineGeometry.createGeometry(
@@ -2537,15 +2537,15 @@ var Ee = function() {
2537
2537
  radius: this.getRadius(),
2538
2538
  granularity: c
2539
2539
  })
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]));
2540
+ ), m = 0, v, g = []; m < f.attributes.position.values.length; m += 3)
2541
+ v = f.attributes.position.values, g.push(new p.Cartesian3(v[m], v[m + 1], v[m + 2]));
2542
2542
  return g;
2543
2543
  }, i.CirclePrimitive.prototype.setEditable = function() {
2544
2544
  if (!this.setEditMode) {
2545
2545
  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) {
2546
+ c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(m) {
2547
+ if (this._editMode != m)
2548
+ if (s.disableAllHighlights(), m) {
2549
2549
  s.setEdited(this);
2550
2550
  var v = this;
2551
2551
  if (this._markers == null) {
@@ -2558,12 +2558,12 @@ var Ee = function() {
2558
2558
  radius: c.getRadius()
2559
2559
  });
2560
2560
  };
2561
- var g = new i.BillboardGroup(s, I), C = {
2561
+ var g = new i.BillboardGroup(s, P), w = {
2562
2562
  dragHandlers: {
2563
- onDrag: function(b, L) {
2564
- c.setRadius(p.Cartesian3.distance(c.getCenter(), L)), g.updateBillboardsPositions(S());
2563
+ onDrag: function(T, M) {
2564
+ c.setRadius(p.Cartesian3.distance(c.getCenter(), M)), g.updateBillboardsPositions(S());
2565
2565
  },
2566
- onDragEnd: function(b, L) {
2566
+ onDragEnd: function(T, M) {
2567
2567
  _();
2568
2568
  }
2569
2569
  },
@@ -2571,15 +2571,15 @@ var Ee = function() {
2571
2571
  return "Drag to change the radius";
2572
2572
  }
2573
2573
  };
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);
2574
+ g.addBillboards(S(), w), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(T) {
2575
+ var M = f.pick(T.position);
2576
+ M && M.primitive || v.setEditMode(!1);
2577
2577
  }, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
2578
2578
  }
2579
2579
  this._editMode = !0;
2580
2580
  } else
2581
2581
  this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2582
- }, c.setHighlighted = a, te(c), c.setEditMode(!1);
2582
+ }, c.setHighlighted = a, ne(c), c.setEditMode(!1);
2583
2583
  }
2584
2584
  };
2585
2585
  }, i.DrawHelperWidget = function() {
@@ -2593,21 +2593,21 @@ var Ee = function() {
2593
2593
  circleIcon: "./assets/img/glyphicons_095_vector_path_circle.png",
2594
2594
  extentIcon: "./assets/img/glyphicons_094_vector_path_square.png",
2595
2595
  clearIcon: "./assets/img/glyphicons_067_cleaning.png",
2596
- polylineDrawingOptions: w,
2596
+ polylineDrawingOptions: C,
2597
2597
  polygonDrawingOptions: d,
2598
2598
  extentDrawingOptions: u,
2599
- circleDrawingOptions: m
2599
+ circleDrawingOptions: h
2600
2600
  };
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);
2601
+ W(y, c);
2602
+ var f = this, m = document.createElement("DIV");
2603
+ m.className = "toolbar", y.container.appendChild(m);
2604
+ function v(S, _, T, M) {
2605
+ var D = document.createElement("DIV");
2606
+ D.className = "button", D.title = T, m.appendChild(D), D.onclick = M;
2607
+ var U = document.createElement("SPAN");
2608
+ D.appendChild(U);
2609
2609
  var X = document.createElement("IMG");
2610
- return X.src = _, W.appendChild(X), M;
2610
+ return X.src = _, U.appendChild(X), D;
2611
2611
  }
2612
2612
  var g = a._scene;
2613
2613
  v("marker", y.markerIcon, "Click to start drawing a 2D marker", function() {
@@ -2654,10 +2654,10 @@ var Ee = function() {
2654
2654
  }
2655
2655
  });
2656
2656
  });
2657
- var C = document.createElement("DIV");
2658
- C.className = "divider", h.appendChild(C), v("clear", y.clearIcon, "Remove all primitives", function() {
2657
+ var w = document.createElement("DIV");
2658
+ w.className = "divider", m.appendChild(w), v("clear", y.clearIcon, "Remove all primitives", function() {
2659
2659
  g.primitives.removeAll();
2660
- }), te(this);
2660
+ }), ne(this);
2661
2661
  }
2662
2662
  return s;
2663
2663
  }(), i.prototype.addToolbar = function(s, a) {
@@ -2669,35 +2669,35 @@ var Ee = function() {
2669
2669
  var c = p.Math.EPSILON7;
2670
2670
  return y.east - y.west < c && (y.east += c * 2), y.north - y.south < c && (y.north += c * 2), y;
2671
2671
  }
2672
- function U(s, a) {
2672
+ function K(s, a) {
2673
2673
  return s.longitude.toFixed(a || 3) + ", " + s.latitude.toFixed(a || 3);
2674
2674
  }
2675
- function A(s, a) {
2675
+ function x(s, a) {
2676
2676
  if (s == null || typeof s != "object" || s.constructor != Object && s.constructor != Array)
2677
2677
  return s;
2678
2678
  if (s.constructor == Date || s.constructor == RegExp || s.constructor == Function || s.constructor == String || s.constructor == Number || s.constructor == Boolean)
2679
2679
  return new s.constructor(s);
2680
2680
  a = a || new s.constructor();
2681
2681
  for (var y in s)
2682
- a[y] = typeof a[y] > "u" ? A(s[y], null) : a[y];
2682
+ a[y] = typeof a[y] > "u" ? x(s[y], null) : a[y];
2683
2683
  return a;
2684
2684
  }
2685
- function $(s, a) {
2685
+ function W(s, a) {
2686
2686
  s = s || {};
2687
2687
  var y;
2688
2688
  for (y in a)
2689
- s[y] === void 0 && (s[y] = A(a[y]));
2689
+ s[y] === void 0 && (s[y] = x(a[y]));
2690
2690
  }
2691
2691
  function O(s, a) {
2692
- var y = A(s), c;
2692
+ var y = x(s), c;
2693
2693
  for (c in a)
2694
- y[c] === void 0 && (y[c] = A(a[c]));
2694
+ y[c] === void 0 && (y[c] = x(a[c]));
2695
2695
  return y;
2696
2696
  }
2697
2697
  function V(s, a, y) {
2698
2698
  s[a] = y;
2699
2699
  }
2700
- function te(s) {
2700
+ function ne(s) {
2701
2701
  s._listeners = {}, s.addListener = function(a, y) {
2702
2702
  return this._listeners[a] = this._listeners[a] || [], this._listeners[a].push(y), this._listeners[a].length;
2703
2703
  }, s.executeListeners = function(a, y) {
@@ -2710,17 +2710,17 @@ var Ee = function() {
2710
2710
  }
2711
2711
  return i;
2712
2712
  }();
2713
- const jr = 2, Kr = (e, n) => {
2713
+ const Yr = 2, Xr = (e, n) => {
2714
2714
  switch (e) {
2715
2715
  case se.BOX: {
2716
- if (n.features.length !== jr)
2716
+ if (n.features.length !== Yr)
2717
2717
  throw new Error(`${e} must have 2 points`);
2718
- const t = ft(n.features, (o) => {
2718
+ const t = vt(n.features, (o) => {
2719
2719
  var r;
2720
- return ((r = o.properties) == null ? void 0 : r.type) === it.BOTTOM_LEFT;
2721
- }), i = ft(n.features, (o) => {
2720
+ return ((r = o.properties) == null ? void 0 : r.type) === ot.BOTTOM_LEFT;
2721
+ }), i = vt(n.features, (o) => {
2722
2722
  var r;
2723
- return ((r = o.properties) == null ? void 0 : r.type) === it.TOP_RIGHT;
2723
+ return ((r = o.properties) == null ? void 0 : r.type) === ot.TOP_RIGHT;
2724
2724
  });
2725
2725
  if (i && t) {
2726
2726
  if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
@@ -2737,10 +2737,10 @@ const jr = 2, Kr = (e, n) => {
2737
2737
  default:
2738
2738
  throw new Error(`${e} type geoJSON still not supported`);
2739
2739
  }
2740
- }, qr = (e) => {
2740
+ }, Zr = (e) => {
2741
2741
  const n = e.map((t) => {
2742
- const i = We.fromCartesian(t);
2743
- return [le.toDegrees(i.longitude), le.toDegrees(i.latitude)];
2742
+ const i = Oe.fromCartesian(t);
2743
+ return [ce.toDegrees(i.longitude), ce.toDegrees(i.latitude)];
2744
2744
  });
2745
2745
  return n.push(n[0]), {
2746
2746
  type: "Feature",
@@ -2750,51 +2750,51 @@ const jr = 2, Kr = (e, n) => {
2750
2750
  coordinates: [n]
2751
2751
  }
2752
2752
  };
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)]
2753
+ }, Jr = (e) => {
2754
+ const n = Kt.lineString([
2755
+ [ce.toDegrees(e.west), ce.toDegrees(e.south)],
2756
+ [ce.toDegrees(e.east), ce.toDegrees(e.north)]
2757
2757
  ]);
2758
- return $t(zt(n));
2759
- }, Xr = (e) => {
2760
- const n = Vt.lineString([
2758
+ return qt(jt(n));
2759
+ }, Qr = (e) => {
2760
+ const n = Kt.lineString([
2761
2761
  [e.west, e.south],
2762
2762
  [e.east, e.north]
2763
2763
  ]);
2764
- return $t(zt(n)).geometry.coordinates[0].map((i) => pe.fromRadiansArray(i)[0]);
2764
+ return qt(jt(n)).geometry.coordinates[0].map((i) => pe.fromRadiansArray(i)[0]);
2765
2765
  };
2766
- class vs extends hi {
2766
+ class bs extends nt {
2767
2767
  }
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(() => {
2768
+ const Ts = (e) => {
2769
+ const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u = le(), [h, E] = A();
2770
+ I(() => {
2771
2771
  E(
2772
2772
  // eslint-disable-next-line
2773
- new Ee(u, t, i)
2773
+ new Ce(u, t, i)
2774
2774
  );
2775
- }, []), k(() => {
2776
- if (m) {
2777
- const P = m;
2775
+ }, []), I(() => {
2776
+ if (h) {
2777
+ const L = h;
2778
2778
  if (n.drawing)
2779
2779
  switch (n.type) {
2780
2780
  case se.POLYGON:
2781
- u.scene.globe.depthTestAgainstTerrain = !1, P.startDrawingPolygon({
2782
- callback: (T) => {
2781
+ u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingPolygon({
2782
+ callback: (b) => {
2783
2783
  n.handler({
2784
- primitive: T,
2784
+ primitive: b,
2785
2785
  type: se.POLYGON,
2786
- geojson: qr(T)
2786
+ geojson: Zr(b)
2787
2787
  });
2788
2788
  }
2789
2789
  });
2790
2790
  break;
2791
2791
  case se.BOX:
2792
- u.scene.globe.depthTestAgainstTerrain = !1, P.startDrawingExtent({
2793
- callback: (T) => {
2792
+ u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingExtent({
2793
+ callback: (b) => {
2794
2794
  n.handler({
2795
- primitive: T,
2795
+ primitive: b,
2796
2796
  type: se.BOX,
2797
- geojson: Yr(T)
2797
+ geojson: Jr(b)
2798
2798
  });
2799
2799
  }
2800
2800
  });
@@ -2803,78 +2803,162 @@ const Es = (e) => {
2803
2803
  throw new Error(`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`);
2804
2804
  }
2805
2805
  else
2806
- P.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
2806
+ L.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
2807
2807
  }
2808
- }, [n, m]);
2809
- const w = (P) => {
2808
+ }, [n, h]);
2809
+ const C = (L) => {
2810
2810
  try {
2811
- let T = P.coordinates !== void 0 ? P.coordinates : Kr(P.type, P.geojson);
2811
+ let b = L.coordinates !== void 0 ? L.coordinates : Xr(L.type, L.geojson);
2812
2812
  if (r !== !0)
2813
- switch (P.type) {
2813
+ switch (L.type) {
2814
2814
  case se.BOX:
2815
- return /* @__PURE__ */ l($r, { coordinates: T, material: o ?? t });
2815
+ return /* @__PURE__ */ l(Kr, { coordinates: b, material: o ?? t });
2816
2816
  case se.POLYGON:
2817
- return /* @__PURE__ */ l(zr, { hierarchy: new mi(T), material: o ?? t });
2817
+ return /* @__PURE__ */ l(Ur, { hierarchy: new yi(b), material: o ?? t });
2818
2818
  default:
2819
- return /* @__PURE__ */ l(ie, {});
2819
+ return /* @__PURE__ */ l(te, {});
2820
2820
  }
2821
2821
  else {
2822
- switch (P.type) {
2822
+ switch (L.type) {
2823
2823
  case se.BOX:
2824
- T = Xr(T);
2824
+ b = Qr(b);
2825
2825
  break;
2826
2826
  case se.POLYGON:
2827
- T = [...T, T[0]];
2827
+ b = [...b, b[0]];
2828
2828
  break;
2829
2829
  default:
2830
- return /* @__PURE__ */ l(ie, {});
2830
+ return /* @__PURE__ */ l(te, {});
2831
2831
  }
2832
- return /* @__PURE__ */ l(Ur, { clampToGround: !0, positions: T, width: d ?? 1, material: o ?? t });
2832
+ return /* @__PURE__ */ l(qr, { clampToGround: !0, positions: b, width: d ?? 1, material: o ?? t });
2833
2833
  }
2834
- } catch (T) {
2835
- return console.error(T), /* @__PURE__ */ l(ie, {});
2834
+ } catch (b) {
2835
+ return console.error(b), /* @__PURE__ */ l(te, {});
2836
2836
  }
2837
2837
  };
2838
- return /* @__PURE__ */ l(Wr, { ...e, children: e.drawings.map((P, T) => /* @__PURE__ */ N(Gr, { name: P.name, children: [
2839
- /* @__PURE__ */ N(Vr, { children: [
2838
+ return /* @__PURE__ */ l(jr, { ...e, children: e.drawings.map((L, b) => /* @__PURE__ */ N($r, { name: L.name, children: [
2839
+ /* @__PURE__ */ N(Wr, { children: [
2840
2840
  /* @__PURE__ */ N("h1", { children: [
2841
2841
  "Drawed Entity ",
2842
- P.name
2842
+ L.name
2843
2843
  ] }),
2844
2844
  /* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
2845
2845
  ] }),
2846
- w(P)
2847
- ] }, P.id)) });
2846
+ C(L)
2847
+ ] }, L.id)) });
2848
2848
  };
2849
- class Cs extends pi {
2849
+ class _s extends vi {
2850
2850
  }
2851
- class ws extends gi {
2851
+ class Ls extends Ei {
2852
2852
  }
2853
- class bs extends fi {
2853
+ class Ss extends Ci {
2854
2854
  }
2855
- class Ts extends Me {
2855
+ class Ms extends Ee {
2856
2856
  }
2857
- class _s extends pe {
2857
+ class Ps extends pe {
2858
2858
  }
2859
- class Ss extends We {
2859
+ class Ds extends Oe {
2860
2860
  }
2861
- class Ls extends yi {
2861
+ class As extends wi {
2862
2862
  }
2863
- class Ps extends vi {
2863
+ class Is extends Wt {
2864
2864
  }
2865
- class Ms extends Ei {
2865
+ class xs extends bi {
2866
2866
  }
2867
- class Ds extends Se {
2867
+ class ks extends Se {
2868
2868
  }
2869
- class Is extends Ci {
2869
+ class Os extends Ti {
2870
2870
  }
2871
- class As extends wi {
2871
+ class Rs extends _i {
2872
2872
  }
2873
- class ks extends bi {
2873
+ class Ns extends Li {
2874
2874
  }
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({
2875
+ const Bs = it, Fs = Ut, Hs = (e) => {
2876
+ const n = le();
2877
+ return I(() => {
2878
+ n.extend(Si);
2879
+ }, [n]), /* @__PURE__ */ l(te, {});
2880
+ }, eo = -25, kt = 2, Gs = (e) => {
2881
+ const n = le(), t = (r, d = ",") => r.slice(r.indexOf(`
2882
+ `) + 1).split(`
2883
+ `).map((E) => {
2884
+ const C = E.split(d);
2885
+ return {
2886
+ cartographic: Oe.fromDegrees(parseFloat(C[0]), parseFloat(C[1])),
2887
+ cartesian: new Ee(parseFloat(C[0]), parseFloat(C[1]))
2888
+ };
2889
+ }), i = (r) => {
2890
+ var u;
2891
+ r.preventDefault(), r.persist();
2892
+ const d = new FileReader();
2893
+ d.onload = (h) => {
2894
+ var b;
2895
+ const E = (b = h.target) == null ? void 0 : b.result, C = t(E), L = Wt.WGS84;
2896
+ console.log(`Loaded CSV content:
2897
+ `, E), Mi(
2898
+ n.terrainProvider,
2899
+ C.map((P) => P.cartographic)
2900
+ ).then(
2901
+ (P) => {
2902
+ console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((B, $) => {
2903
+ n.entities.add({
2904
+ name: ($ + kt).toString(),
2905
+ position: L.cartographicToCartesian(B),
2906
+ billboard: {
2907
+ verticalOrigin: it.BOTTOM,
2908
+ scale: 0.7,
2909
+ image: "assets/img/map-marker.gif"
2910
+ },
2911
+ label: {
2912
+ text: ($ + kt).toString(),
2913
+ font: "14pt monospace",
2914
+ fillColor: nt.BLACK,
2915
+ style: Ut.FILL_AND_OUTLINE,
2916
+ outlineWidth: 4,
2917
+ outlineColor: nt.BLACK,
2918
+ verticalOrigin: it.BOTTOM,
2919
+ pixelOffset: new Ee(0, eo)
2920
+ },
2921
+ description: `
2922
+ Long: ${C[$].cartesian.x} </br>
2923
+ Lat: ${C[$].cartesian.y} </br>
2924
+ Height(m): <span style="font-weight: 500">${B.height}</span>
2925
+ `
2926
+ });
2927
+ }), 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);
2928
+ },
2929
+ (P) => {
2930
+ console.error("ERROR while sampleTerrainMostDetailed:", P);
2931
+ }
2932
+ );
2933
+ }, (u = r.target.files) != null && u[0] && d.readAsText(r.target.files[0]);
2934
+ }, o = (r, d) => {
2935
+ const u = (b) => {
2936
+ let P = "";
2937
+ return P += b.cartesian.x.toString() + ",", P += b.cartesian.y.toString() + ",", P += b.cartographic.height.toString(), P + `
2938
+ `;
2939
+ };
2940
+ let h = `long,lat,height
2941
+ `;
2942
+ d.forEach((b) => {
2943
+ h += u(b);
2944
+ });
2945
+ const E = new Blob([h], { type: "text/csv;charset=utf-8;" }), C = document.createElement("a"), L = URL.createObjectURL(E);
2946
+ C.setAttribute("href", L), C.setAttribute("download", r), C.style.visibility = "hidden", document.body.appendChild(C), C.click(), document.body.removeChild(C);
2947
+ };
2948
+ return /* @__PURE__ */ l(te, { children: /* @__PURE__ */ l(
2949
+ "input",
2950
+ {
2951
+ type: "file",
2952
+ id: "csvFile",
2953
+ accept: ".csv",
2954
+ onChange: (r) => {
2955
+ i(r);
2956
+ }
2957
+ }
2958
+ ) });
2959
+ };
2960
+ const to = 38, no = 40, io = 13, ro = 14, oo = 27, so = 9, ao = 10, lo = 100, co = (e) => {
2961
+ const [n, t] = A(e.defaultValue ?? ""), [i, o] = A(!1), [r, d] = A({
2878
2962
  helperVisible: !1,
2879
2963
  left: 0,
2880
2964
  right: 0,
@@ -2887,242 +2971,242 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
2887
2971
  value: "",
2888
2972
  caret: 0,
2889
2973
  width: "unset"
2890
- }), u = we(null);
2891
- k(() => (window.addEventListener("resize", G), () => {
2974
+ }), u = be(null);
2975
+ I(() => (window.addEventListener("resize", B), () => {
2892
2976
  try {
2893
- window.removeEventListener("resize", G);
2977
+ window.removeEventListener("resize", B);
2894
2978
  } catch (f) {
2895
2979
  console.log('WINDOW "resize" remove listener failed', f);
2896
2980
  }
2897
- }), []), k(() => {
2981
+ }), []), I(() => {
2898
2982
  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);
2983
+ }, [e.value, e.defaultValue]), I(() => {
2984
+ const { options: f } = e, { caret: m } = r;
2985
+ Y(n, m, f);
2902
2986
  }, [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;
2987
+ const h = (f, m, v) => {
2988
+ const { trigger: g, matchAny: w, regex: S } = e, _ = new RegExp(S);
2989
+ let T = g;
2990
+ Array.isArray(T) || (T = new Array(g)), T.sort();
2991
+ const M = {};
2992
+ Array.isArray(v) && T.forEach((X) => {
2993
+ M[X] = v;
2910
2994
  });
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;
2995
+ const D = E(T, _);
2996
+ let U = {};
2997
+ for (let X = 0; X < D.length; X++) {
2998
+ const { triggerStr: R, triggerMatch: z, triggerLength: Q } = D[X];
2999
+ for (let ie = m - 1; ie >= 0; --ie) {
3000
+ const F = f.substring(ie, m).match(_);
3001
+ let k = -1;
2918
3002
  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))
3003
+ const j = z ? ie : ie - Q + 1;
3004
+ if (j < 0 || (C(R, f, j) && (k = j + Q), !F && k < 0))
2921
3005
  break;
2922
3006
  } else {
2923
- if (B && ne > 0)
3007
+ if (F && ie > 0)
2924
3008
  continue;
2925
- if (x = ne === 0 && B ? 0 : ne + 1, h - x === 0)
3009
+ if (k = ie === 0 && F ? 0 : ie + 1, m - k === 0)
2926
3010
  break;
2927
3011
  }
2928
- if (x >= 0) {
2929
- const j = L[R];
3012
+ if (k >= 0) {
3013
+ const j = M[R];
2930
3014
  if (!Array.isArray(j))
2931
3015
  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,
3016
+ const fe = f.substring(k, m), Te = j.filter((Ne) => {
3017
+ const De = Ne.toLowerCase().indexOf(fe.toLowerCase());
3018
+ return De !== -1 && (w || De === 0);
3019
+ }), ye = R, Re = fe.length;
3020
+ U = {
3021
+ ...U,
2938
3022
  trigger: ye,
2939
- matchStart: x,
2940
- matchLength: Oe,
2941
- options: be
3023
+ matchStart: k,
3024
+ matchLength: Re,
3025
+ options: Te
2942
3026
  };
2943
3027
  }
2944
3028
  }
2945
3029
  }
2946
- return W;
2947
- }, E = (f, h) => f.map((g) => ({
3030
+ return U;
3031
+ }, E = (f, m) => f.map((g) => ({
2948
3032
  triggerStr: g,
2949
- triggerMatch: g.match(h),
3033
+ triggerMatch: g.match(m),
2950
3034
  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({
3035
+ })), C = (f, m, v) => !f || !f.length || m.substr(v, f.length) === f, L = (f) => {
3036
+ const { onChange: m, options: v, spaceRemovers: g, spacer: w, value: S } = e, _ = n, T = f.target.value, M = Ii(b(f.target)).end;
3037
+ if (T.length || H({
2954
3038
  ...r,
2955
3039
  helperVisible: !1
2956
- }), t(b), F({
3040
+ }), t(T), H({
2957
3041
  ...r,
2958
- caret: L,
3042
+ caret: M,
2959
3043
  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({
3044
+ }), !T.length || !M)
3045
+ return m(f.target.value);
3046
+ if (i && g.length && T.length > 2 && w.length) {
3047
+ for (let D = 0; D < Math.max(_.length, T.length); ++D)
3048
+ if (_[D] !== T[D]) {
3049
+ 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))) {
3050
+ const U = `${T.slice(0, D - 1)}${T.slice(D, D + 1)}${T.slice(D - 1, D)}${T.slice(D + 1)}`;
3051
+ return q(D + 1), u.current !== null && (u.current.value = U), S || H({
2968
3052
  ...r,
2969
- value: W
2970
- }), h(W);
3053
+ value: U
3054
+ }), m(U);
2971
3055
  }
2972
3056
  break;
2973
3057
  }
2974
3058
  o(!1);
2975
3059
  }
2976
- return Y(b, L, v), h(f.target.value);
2977
- }, T = (f) => {
3060
+ return Y(T, M, v), m(f.target.value);
3061
+ }, b = (f) => {
2978
3062
  if (f !== void 0)
2979
3063
  if (f.children.length > 0) {
2980
- const h = f.getElementsByTagName("textarea");
2981
- if (h.length > 0)
2982
- return h[0];
3064
+ const m = f.getElementsByTagName("textarea");
3065
+ if (m.length > 0)
3066
+ return m[0];
2983
3067
  const v = f.getElementsByTagName("input");
2984
3068
  if (v.length > 0)
2985
3069
  return v[0];
2986
3070
  } else
2987
3071
  return f;
2988
- }, I = (f) => {
2989
- const { helperVisible: h, options: v, selection: g } = r, { onKeyDown: C, passThroughEnter: S } = e;
2990
- if (h)
3072
+ }, P = (f) => {
3073
+ const { helperVisible: m, options: v, selection: g } = r, { onKeyDown: w, passThroughEnter: S } = e;
3074
+ if (m)
2991
3075
  switch (f.keyCode) {
2992
- case to:
2993
- f.preventDefault(), U();
3076
+ case oo:
3077
+ f.preventDefault(), K();
2994
3078
  break;
2995
- case Zr:
2996
- f.preventDefault(), F({
3079
+ case to:
3080
+ f.preventDefault(), H({
2997
3081
  ...r,
2998
3082
  selection: (v.length + g - 1) % v.length
2999
3083
  });
3000
3084
  break;
3001
- case Jr:
3002
- f.preventDefault(), F({
3085
+ case no:
3086
+ f.preventDefault(), H({
3003
3087
  ...r,
3004
3088
  selection: (g + 1) % v.length
3005
3089
  });
3006
3090
  break;
3007
- case eo:
3008
- case Qr:
3009
- S || f.preventDefault(), q(g);
3091
+ case ro:
3092
+ case io:
3093
+ S || f.preventDefault(), $(g);
3010
3094
  break;
3011
- case no:
3012
- q(g);
3095
+ case so:
3096
+ $(g);
3013
3097
  break;
3014
3098
  default:
3015
- C(f);
3099
+ w(f);
3016
3100
  break;
3017
3101
  }
3018
3102
  else
3019
- C(f);
3020
- }, G = () => {
3021
- F({
3103
+ w(f);
3104
+ }, B = () => {
3105
+ H({
3022
3106
  ...r,
3023
3107
  helperVisible: !1
3024
3108
  });
3109
+ }, $ = (f) => {
3110
+ 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);
3111
+ 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
3112
  }, 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({
3113
+ H({
3030
3114
  ...r,
3031
3115
  caret: f
3032
3116
  });
3033
- const h = T(u.current);
3034
- Di(h, f);
3035
- }, F = (f) => {
3117
+ const m = b(u.current);
3118
+ xi(m, f);
3119
+ }, H = (f) => {
3036
3120
  setTimeout(() => {
3037
3121
  d({
3038
3122
  ...f
3039
3123
  });
3040
3124
  }, 0);
3041
- }, Y = (f, h, v) => {
3125
+ }, Y = (f, m, v) => {
3042
3126
  const g = u.current;
3043
3127
  if (u.current === null)
3044
3128
  return;
3045
- const C = T(g);
3046
- if (C === void 0)
3129
+ const w = b(g);
3130
+ if (w === void 0)
3047
3131
  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({
3132
+ const S = g.getBoundingClientRect(), _ = h(f, m, v);
3133
+ if (Object.keys(_).length > 0 && w !== null) {
3134
+ const T = Ai(w, m), M = w.getBoundingClientRect(), { minChars: D, onRequestOptions: U, requestOnlyIfNoOptions: X, mode: R } = e;
3135
+ let z, Q, ie, ge = "unset";
3136
+ 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
3137
  ...r,
3054
3138
  value: f,
3055
3139
  helperVisible: !0,
3056
3140
  top: z,
3057
3141
  left: Q,
3058
- right: ne,
3142
+ right: ie,
3059
3143
  width: ge,
3060
3144
  ..._
3061
- }) : ((!X || !_.options.length) && W(f.substr(_.matchStart, _.matchLength)), U());
3145
+ }) : ((!X || !_.options.length) && U(f.substr(_.matchStart, _.matchLength)), K());
3062
3146
  } else
3063
- U();
3064
- }, U = () => {
3147
+ K();
3148
+ }, K = () => {
3065
3149
  setTimeout(() => {
3066
- F({
3150
+ H({
3067
3151
  ...r,
3068
3152
  helperVisible: !1,
3069
3153
  selection: 0
3070
3154
  });
3071
3155
  }, 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;
3156
+ }, x = () => {
3157
+ const { helperVisible: f, left: m, right: v, matchStart: g, matchLength: w, options: S, selection: _, top: T, value: M, width: D } = r;
3074
3158
  if (!f)
3075
3159
  return null;
3076
- const { maxOptions: W, offsetX: X, offsetY: R, direction: z } = e;
3160
+ const { maxOptions: U, offsetX: X, offsetY: R, direction: z } = e;
3077
3161
  if (S.length === 0)
3078
3162
  return null;
3079
3163
  if (_ >= S.length)
3080
- return F({
3164
+ return H({
3081
3165
  ...r,
3082
3166
  selection: 0
3083
3167
  }), 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());
3168
+ const Q = U === 0 ? S.length : U, ie = S.slice(0, Q).map((F, k) => {
3169
+ const j = F.toLowerCase().indexOf(M.substr(g, w).toLowerCase());
3086
3170
  return /* @__PURE__ */ N(
3087
3171
  "li",
3088
3172
  {
3089
- className: x === _ ? "active" : void 0,
3173
+ className: k === _ ? "active" : void 0,
3090
3174
  onClick: () => {
3091
- q(x);
3175
+ $(k);
3092
3176
  },
3093
3177
  onMouseEnter: () => {
3094
- F({
3178
+ H({
3095
3179
  ...r,
3096
- selection: x
3180
+ selection: k
3097
3181
  });
3098
3182
  },
3099
3183
  children: [
3100
- B.slice(0, j),
3101
- /* @__PURE__ */ l("strong", { children: B.substr(j, C) }),
3102
- B.slice(j + C)
3184
+ F.slice(0, j),
3185
+ /* @__PURE__ */ l("strong", { children: F.substr(j, w) }),
3186
+ F.slice(j + w)
3103
3187
  ]
3104
3188
  },
3105
- B
3189
+ F
3106
3190
  );
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);
3191
+ }), ge = z === "ltr" ? { left: m + X } : { right: v + X };
3192
+ return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ge, top: T + R, width: D }, children: ie });
3193
+ }, { Component: W, ComponentProps: O, defaultValue: V, disabled: ne, onBlur: s, value: a, ...y } = e, c = Object.assign({}, y);
3110
3194
  return Object.keys(e).forEach((f) => {
3111
3195
  delete c[f];
3112
- }), /* @__PURE__ */ N(ie, { children: [
3113
- ve.cloneElement($, {
3114
- disabled: te,
3196
+ }), /* @__PURE__ */ N(te, { children: [
3197
+ ve.cloneElement(W, {
3198
+ disabled: ne,
3115
3199
  onBlur: s,
3116
- onChange: P,
3117
- onKeyDown: I,
3200
+ onChange: L,
3201
+ onKeyDown: P,
3118
3202
  ref: u,
3119
3203
  value: n,
3120
3204
  ...c,
3121
3205
  ...O
3122
3206
  }),
3123
- A()
3207
+ x()
3124
3208
  ] });
3125
- }, so = {
3209
+ }, uo = {
3126
3210
  Component: /* @__PURE__ */ l("textarea", {}),
3127
3211
  ComponentProps: {},
3128
3212
  defaultValue: void 0,
@@ -3153,9 +3237,9 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3153
3237
  passThroughEnter: !1,
3154
3238
  mode: "assist",
3155
3239
  direction: "ltr"
3156
- }, Rs = (e) => {
3240
+ }, Vs = (e) => {
3157
3241
  let n = {
3158
- ...so,
3242
+ ...uo,
3159
3243
  ...e
3160
3244
  };
3161
3245
  return e.mode === "autocomplete" && (n = {
@@ -3163,10 +3247,10 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3163
3247
  trigger: "",
3164
3248
  regex: ".",
3165
3249
  spacer: ""
3166
- }), /* @__PURE__ */ l(oo, { ...n });
3167
- }, ut = {
3250
+ }), /* @__PURE__ */ l(co, { ...n });
3251
+ }, mt = {
3168
3252
  formatFileModDate: (e, n) => {
3169
- const t = Wt.getModDate(n);
3253
+ const t = Yt.getModDate(n);
3170
3254
  return t ? e.formatDate(t, {
3171
3255
  dateStyle: "short",
3172
3256
  timeStyle: "short"
@@ -3175,18 +3259,18 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3175
3259
  formatFileSize: (e, n) => {
3176
3260
  if (!n || typeof n.size != "number")
3177
3261
  return null;
3178
- const t = n.size, i = xi(t, {
3262
+ const t = n.size, i = Ni(t, {
3179
3263
  bits: !1,
3180
3264
  output: "object"
3181
3265
  });
3182
3266
  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
3267
  }
3184
- }, ao = {
3185
- locale: ce.EN,
3186
- formatters: { ...ut }
3187
- }, lo = {
3188
- locale: ce.RU,
3189
- formatters: { ...ut },
3268
+ }, ho = {
3269
+ locale: de.EN,
3270
+ formatters: { ...mt }
3271
+ }, mo = {
3272
+ locale: de.RU,
3273
+ formatters: { ...mt },
3190
3274
  messages: {
3191
3275
  "chonky.toolbar.searchPlaceholder": "Поиск",
3192
3276
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -3209,24 +3293,24 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3209
3293
  // Actions
3210
3294
  ["chonky.actionGroups.Actions"]: "Действия",
3211
3295
  ["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`]: "Папки в начале"
3296
+ [`chonky.actions.${G.OpenParentFolder.id}.button.name`]: "Открыть родительскую папку",
3297
+ [`chonky.actions.${G.CreateFolder.id}.button.name`]: "Новая папка",
3298
+ [`chonky.actions.${G.CreateFolder.id}.button.tooltip`]: "Создать новую папку",
3299
+ [`chonky.actions.${G.DeleteFiles.id}.button.name`]: "Удалить файлы",
3300
+ [`chonky.actions.${G.OpenSelection.id}.button.name`]: "Открыть выделение",
3301
+ [`chonky.actions.${G.SelectAllFiles.id}.button.name`]: "Выделить все",
3302
+ [`chonky.actions.${G.ClearSelection.id}.button.name`]: "Сбросить выделение",
3303
+ [`chonky.actions.${G.EnableListView.id}.button.name`]: "Показать список",
3304
+ [`chonky.actions.${G.EnableGridView.id}.button.name`]: "Показать иконки",
3305
+ [`chonky.actions.${G.SortFilesByName.id}.button.name`]: "Сорт. по имени",
3306
+ [`chonky.actions.${G.SortFilesBySize.id}.button.name`]: "Сорт. по размеру",
3307
+ [`chonky.actions.${G.SortFilesByDate.id}.button.name`]: "Сорт. по дате",
3308
+ [`chonky.actions.${G.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
3309
+ [`chonky.actions.${G.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
3226
3310
  }
3227
- }, co = {
3228
- locale: ce.HE,
3229
- formatters: { ...ut },
3311
+ }, po = {
3312
+ locale: de.HE,
3313
+ formatters: { ...mt },
3230
3314
  messages: {
3231
3315
  "chonky.toolbar.searchPlaceholder": "חיפוש",
3232
3316
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -3248,52 +3332,52 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
3248
3332
  // Actions
3249
3333
  ["chonky.actionGroups.Actions"]: "פעולות",
3250
3334
  ["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`]: "הצגת תיקיות בראש הרשימה"
3335
+ [`chonky.actions.${G.OpenParentFolder.id}.button.name`]: "פתח סיפריית אב",
3336
+ [`chonky.actions.${G.CreateFolder.id}.button.name`]: "סיפרייה חדשה",
3337
+ [`chonky.actions.${G.CreateFolder.id}.button.tooltip`]: "צור סיפרייה חדשה",
3338
+ [`chonky.actions.${G.DeleteFiles.id}.button.name`]: "מחק",
3339
+ [`chonky.actions.${G.OpenSelection.id}.button.name`]: "פתח את הבחירה",
3340
+ [`chonky.actions.${G.SelectAllFiles.id}.button.name`]: "בחר הכל",
3341
+ [`chonky.actions.${G.ClearSelection.id}.button.name`]: "אפס את הבחירה",
3342
+ [`chonky.actions.${G.EnableListView.id}.button.name`]: "תצוגת רשימה",
3343
+ [`chonky.actions.${G.EnableGridView.id}.button.name`]: "תצוגת גריד",
3344
+ [`chonky.actions.${G.SortFilesByName.id}.button.name`]: "מיון לפי שם",
3345
+ [`chonky.actions.${G.SortFilesBySize.id}.button.name`]: "מיון לפי גודל",
3346
+ [`chonky.actions.${G.SortFilesByDate.id}.button.name`]: "מיון לפי תאריך",
3347
+ [`chonky.actions.${G.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
3348
+ [`chonky.actions.${G.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
3265
3349
  }
3266
- }, uo = {
3267
- [ce.EN]: ao,
3268
- [ce.RU]: lo,
3269
- [ce.HE]: co
3350
+ }, go = {
3351
+ [de.EN]: ho,
3352
+ [de.RU]: mo,
3353
+ [de.HE]: po
3270
3354
  };
3271
- class Ns extends Wt {
3355
+ class zs extends Yt {
3272
3356
  }
3273
- const Bs = H, ho = {
3274
- listView: H.EnableListView.id,
3275
- gridView: H.EnableGridView.id
3357
+ const $s = G, fo = {
3358
+ listView: G.EnableListView.id,
3359
+ gridView: G.EnableGridView.id
3276
3360
  };
3277
- Ii({ iconComponent: ki });
3278
- const Fs = ve.memo(
3361
+ ki({ iconComponent: Ri });
3362
+ const Ws = ve.memo(
3279
3363
  ve.forwardRef(
3280
3364
  ({
3281
3365
  theme: e,
3282
3366
  styles: n = { height: "100%", minWidth: "600px" },
3283
- defaultView: t = ho.listView,
3367
+ defaultView: t = fo.listView,
3284
3368
  readOnlyMode: i = !1,
3285
3369
  locale: o,
3286
3370
  files: r,
3287
3371
  folderChain: d,
3288
3372
  onFileAction: u,
3289
- ...m
3373
+ ...h
3290
3374
  }, E) => {
3291
- const w = me(
3375
+ const C = me(
3292
3376
  (V) => null,
3293
3377
  // file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
3294
3378
  []
3295
3379
  );
3296
- xe({
3380
+ ke({
3297
3381
  "@global": {
3298
3382
  ".chonky-dropdownList": {
3299
3383
  backgroundColor: `${e == null ? void 0 : e.surface} !important`
@@ -3303,21 +3387,21 @@ const Fs = ve.memo(
3303
3387
  }
3304
3388
  }
3305
3389
  })();
3306
- const P = (V) => V.replace(/([A-Z])/g, (te) => "-" + te.toLowerCase()), T = ze(() => e !== void 0 ? Object.keys(e).reduce((te, s) => {
3390
+ const L = (V) => V.replace(/([A-Z])/g, (ne) => "-" + ne.toLowerCase()), b = $e(() => e !== void 0 ? Object.keys(e).reduce((ne, s) => {
3307
3391
  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]);
3392
+ return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, ne[s] = a, ne;
3393
+ }, {}) : {}, [e]), [P, B] = A(!1), [$, q] = A(), [H, Y] = A(!1), [K, x] = A(), [W, O] = A();
3394
+ return I(() => {
3395
+ e && B(!0), q(t), i ? Y(!0) : x([G.CreateFolder, G.DeleteFiles]), o !== void 0 && O(go[o]);
3312
3396
  }, [e, t, i, o]), /* @__PURE__ */ l(
3313
3397
  ae,
3314
3398
  {
3315
3399
  style: {
3316
3400
  ...n,
3317
- ...T
3401
+ ...b
3318
3402
  },
3319
3403
  children: /* @__PURE__ */ l(
3320
- Ai,
3404
+ Oi,
3321
3405
  {
3322
3406
  ref: E,
3323
3407
  files: r ?? [],
@@ -3325,13 +3409,13 @@ const Fs = ve.memo(
3325
3409
  onFileAction: (V) => {
3326
3410
  typeof u == "function" && u(V);
3327
3411
  },
3328
- thumbnailGenerator: w,
3329
- defaultFileViewActionId: q,
3330
- disableDragAndDrop: F,
3331
- fileActions: U,
3332
- darkMode: I,
3333
- i18n: $,
3334
- ...m
3412
+ thumbnailGenerator: C,
3413
+ defaultFileViewActionId: $,
3414
+ disableDragAndDrop: H,
3415
+ fileActions: K,
3416
+ darkMode: P,
3417
+ i18n: W,
3418
+ ...h
3335
3419
  }
3336
3420
  )
3337
3421
  }
@@ -3340,67 +3424,76 @@ const Fs = ve.memo(
3340
3424
  )
3341
3425
  );
3342
3426
  export {
3343
- Rs as Autocomplete,
3344
- it as BboxCorner,
3427
+ Vs as Autocomplete,
3428
+ ot as BboxCorner,
3345
3429
  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,
3430
+ at as COORDINATES_MERCATOR_FRACTION_DIGITS,
3431
+ st as COORDINATES_WGS_FRACTION_DIGITS,
3432
+ gs as Cesium3DTileset,
3433
+ As as CesiumBoundingSphere,
3434
+ Ms as CesiumCartesian2,
3435
+ Ps as CesiumCartesian3,
3436
+ Ds as CesiumCartographic,
3437
+ Ns as CesiumCesiumTerrainProvider,
3438
+ bs as CesiumColor,
3439
+ Ss as CesiumConstantPositionProperty,
3440
+ Ls as CesiumConstantProperty,
3441
+ jr as CesiumCustomDataSource,
3442
+ Ts as CesiumDrawingsDataSource,
3443
+ Is as CesiumEllipsoid,
3444
+ Rs as CesiumEllipsoidTerrainProvider,
3445
+ $r as CesiumEntity,
3446
+ ws as CesiumEntityDescription,
3447
+ Wr as CesiumEntityStaticDescription,
3448
+ xs as CesiumGeographicTilingScheme,
3449
+ fs as CesiumGeojsonLayer,
3450
+ Ke as CesiumImageryLayer,
3451
+ Fs as CesiumLabelStyle,
3452
+ ps as CesiumMap,
3453
+ Ys as CesiumMath,
3454
+ Cs as CesiumOSMLayer,
3455
+ Ur as CesiumPolygonGraphics,
3456
+ _s as CesiumPolylineDashMaterialProperty,
3457
+ ks as CesiumRectangle,
3458
+ Kr as CesiumRectangleGraphics,
3459
+ Os as CesiumResource,
3376
3460
  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,
3461
+ Bs as CesiumVerticalOrigin,
3462
+ ms as CesiumViewer,
3463
+ ys as CesiumWMSLayer,
3464
+ vs as CesiumWMTSLayer,
3465
+ Es as CesiumXYZLayer,
3466
+ Er as CoordinatesTrackerTool,
3467
+ us as CssBaseline,
3468
+ as as DateRangePicker,
3469
+ ls as DateTimePicker,
3470
+ Vi as DateTimeRangePicker,
3471
+ os as DateTimeRangePickerFormControl,
3472
+ Ce as DrawHelper,
3387
3473
  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,
3474
+ zs as FileHelper,
3475
+ Ws as FilePicker,
3476
+ $s as FilePickerActions,
3477
+ fo as FilePickerViewObj,
3478
+ Hs as InspectorTool,
3479
+ cs as MapFilterContainer,
3480
+ zi as Popover,
3481
+ he as Proj,
3482
+ Tr as ScaleTrackerTool,
3483
+ hs as ScopedCssBaseline,
3484
+ ds as SmartTable,
3485
+ de as SupportedLocales,
3486
+ Gs as TerrainianHeightTool,
3487
+ ss as TimeRangeInput,
3488
+ Lr as ZoomLevelTrackerTool,
3489
+ Xs as cesiumSampleTerrainMostDetailed,
3490
+ mt as defaultFormatters,
3401
3491
  Ye as isDateRange,
3402
- Oi as mapMcToMuiTheme,
3403
- he as useCesiumMap,
3404
- Ut as useMappedMuiTheme,
3405
- Vs as useMediaQuery
3492
+ Bi as mapMcToMuiTheme,
3493
+ Zr as polygonToGeoJSON,
3494
+ Jr as rectangleToGeoJSON,
3495
+ Qr as rectangleToPositions,
3496
+ le as useCesiumMap,
3497
+ Xt as useMappedMuiTheme,
3498
+ js as useMediaQuery
3406
3499
  };