@map-colonies/react-components 4.1.3 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  var tn = Object.defineProperty;
3
3
  var nn = (e, n, t) => n in e ? tn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
4
4
  var Z = (e, n, t) => (nn(e, typeof n != "symbol" ? n + "" : n, t), t);
5
- import { jsx as l, jsxs as B, Fragment as oe } from "react/jsx-runtime";
5
+ import { jsx as l, jsxs as B, Fragment as ie } from "react/jsx-runtime";
6
6
  import * as Pt from "react";
7
7
  import fe, { useState as A, useEffect as O, useMemo as Fe, forwardRef as rn, createContext as Pe, useRef as Ee, useContext as De, useCallback as pe, useLayoutEffect as on } from "react";
8
8
  import { isValid as Ce, isBefore as sn, format as ct, endOfDay as an, isSameDay as dt } from "date-fns";
@@ -34,7 +34,7 @@ import Wn from "@material-ui/core/CssBaseline";
34
34
  import Un from "@material-ui/core/ScopedCssBaseline";
35
35
  import { createPortal as jn } from "react-dom";
36
36
  import { Viewer as Kn, Cesium3DTileset as qn, GeoJsonDataSource as Yn, ImageryLayer as Xn, Entity as Zn, EntityDescription as Bt, PolygonGraphics as Jn, RectangleGraphics as Qn, CustomDataSource as ei, PolylineGraphics as ti } from "resium";
37
- import * as m from "cesium";
37
+ import * as p from "cesium";
38
38
  import { ScreenSpaceEventType as ni, Cartesian3 as ge, Math as le, WebMercatorProjection as ii, EventHelper as ri, EllipsoidGeodesic as oi, Cartesian2 as Se, SceneMode as ve, Cartographic as Ge, UrlTemplateImageryProvider as nt, WebMapServiceImageryProvider as it, WebMapTileServiceImageryProvider as rt, Event as si, SingleTileImageryProvider as ai, Rectangle as be, Viewer as li, Matrix4 as ci, OpenStreetMapImageryProvider as di, Color as ui, PolygonHierarchy as hi, PolylineDashMaterialProperty as mi, ConstantProperty as pi, ConstantPositionProperty as gi, BoundingSphere as fi, Ellipsoid as yi, GeographicTilingScheme as vi, Resource as Ei, EllipsoidTerrainProvider as Ci, CesiumTerrainProvider as wi, VerticalOrigin as bi, LabelStyle as Ti } from "cesium";
39
39
  import { Math as Vs, sampleTerrainMostDetailed as zs } from "cesium";
40
40
  import { get as Q, isNumber as Ne, isEmpty as Je, isArray as _i, find as mt } from "lodash";
@@ -47,7 +47,7 @@ import Mi, { setCaretPosition as Pi } from "get-input-selection";
47
47
  import { ChonkyActions as G, FileHelper as Vt, setChonkyDefaults as Di, FullFileBrowser as Ii } from "chonky";
48
48
  import { ChonkyIconFA as Ai } from "chonky-icon-fontawesome";
49
49
  import ki from "filesize";
50
- var re = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(re || {}), ce = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(ce || {}), Qe = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(Qe || {});
50
+ var oe = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(oe || {}), ce = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(ce || {}), Qe = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(Qe || {});
51
51
  const J = {
52
52
  // eslint-disable-next-line @typescript-eslint/naming-convention
53
53
  DATE_PICKER: {
@@ -118,7 +118,7 @@ const Oi = 2, Ri = 0.5, Ni = Ie(
118
118
  })
119
119
  ), Bi = (e) => {
120
120
  var U, x, $, R;
121
- const n = Ni(), t = Ot(), i = zt(t), [o, r] = A(null), [d, u] = A(null), [p, E] = A(J.DATE_RANGE_PICKER.dateFormat), b = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, M = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, _ = ((U = e.local) == null ? void 0 : U.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, k = ((x = e.local) == null ? void 0 : x.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, H = (($ = e.local) == null ? void 0 : $.setText) ?? J.DATE_RANGE_PICKER.local.setText, K = (((R = e.local) == null ? void 0 : R.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === ce.HE ? Dt : It;
121
+ const n = Ni(), t = Ot(), i = zt(t), [o, r] = A(null), [d, u] = A(null), [m, E] = A(J.DATE_RANGE_PICKER.dateFormat), w = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, M = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, T = ((U = e.local) == null ? void 0 : U.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, k = ((x = e.local) == null ? void 0 : x.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, H = (($ = e.local) == null ? void 0 : $.setText) ?? J.DATE_RANGE_PICKER.local.setText, K = (((R = e.local) == null ? void 0 : R.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === ce.HE ? Dt : It;
122
122
  O(() => {
123
123
  r(e.from ?? null);
124
124
  }, [e.from]), O(() => {
@@ -139,18 +139,18 @@ const Oi = 2, Ri = 0.5, Ni = Ie(
139
139
  {
140
140
  className: `${n.container} drpContainer`,
141
141
  display: "flex",
142
- flexDirection: b,
143
- width: b === "column" ? e.contentWidth : "unset",
142
+ flexDirection: w,
143
+ width: w === "column" ? e.contentWidth : "unset",
144
144
  children: /* @__PURE__ */ B(At, { utils: kt, locale: K, children: [
145
145
  /* @__PURE__ */ l(
146
146
  Ye,
147
147
  {
148
148
  variant: "inline",
149
- placeholder: _,
149
+ placeholder: T,
150
150
  onChange: (V) => r(V),
151
151
  value: o,
152
152
  disableFuture: M,
153
- format: p,
153
+ format: m,
154
154
  maxDate: e.maxDate,
155
155
  minDate: e.minDate
156
156
  }
@@ -164,7 +164,7 @@ const Oi = 2, Ri = 0.5, Ni = Ie(
164
164
  onChange: (V) => u(V),
165
165
  value: d,
166
166
  disableFuture: M,
167
- format: p,
167
+ format: m,
168
168
  maxDate: e.maxDate,
169
169
  minDate: e.minDate
170
170
  }
@@ -188,13 +188,13 @@ const Oi = 2, Ri = 0.5, Ni = Ie(
188
188
  };
189
189
  const Qo = (e) => {
190
190
  var x, $;
191
- const [n, t] = A(null), [i, o] = A(null), [r, d] = A(J.DATE_RANGE_PICKER.dateFormat), [u, p] = fe.useState(null), E = (R) => {
192
- p(R.currentTarget);
193
- }, b = (R) => {
194
- R.currentTarget.tagName === "I" ? p(R.currentTarget.previousElementSibling) : p(R.currentTarget);
191
+ const [n, t] = A(null), [i, o] = A(null), [r, d] = A(J.DATE_RANGE_PICKER.dateFormat), [u, m] = fe.useState(null), E = (R) => {
192
+ m(R.currentTarget);
193
+ }, w = (R) => {
194
+ R.currentTarget.tagName === "I" ? m(R.currentTarget.previousElementSibling) : m(R.currentTarget);
195
195
  }, M = () => {
196
- p(null);
197
- }, _ = Boolean(u), k = e.controlsLayout ?? "column";
196
+ m(null);
197
+ }, T = Boolean(u), k = e.controlsLayout ?? "column";
198
198
  O(() => {
199
199
  t(e.from ?? null);
200
200
  }, [e.from]), O(() => {
@@ -203,7 +203,7 @@ const Qo = (e) => {
203
203
  d(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
204
204
  }, [e.dateFormat]);
205
205
  const H = ((x = e.local) == null ? void 0 : x.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, j = (($ = 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 = Fe(() => `${n ? ct(n, r) : H} - ${i ? ct(i, r) : j}`, [n, i, r, H, j]);
206
- return /* @__PURE__ */ B(oe, { children: [
206
+ return /* @__PURE__ */ B(ie, { children: [
207
207
  K ? /* @__PURE__ */ l(Me, { style: { width: e.width }, raised: !0, onClick: E, className: "drpOpener", children: U }) : /* @__PURE__ */ l(
208
208
  Re,
209
209
  {
@@ -211,15 +211,15 @@ const Qo = (e) => {
211
211
  readOnly: !0,
212
212
  style: { width: e.width },
213
213
  value: U,
214
- onClick: b,
214
+ onClick: w,
215
215
  trailingIcon: {
216
216
  icon: "date_range",
217
217
  tabIndex: 0,
218
- onClick: b
218
+ onClick: w
219
219
  }
220
220
  }
221
221
  ),
222
- /* @__PURE__ */ l(Fi, { open: _, anchorEl: u, onClose: M, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
222
+ /* @__PURE__ */ l(Fi, { open: T, anchorEl: u, onClose: M, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
223
223
  Bi,
224
224
  {
225
225
  controlsLayout: k,
@@ -248,21 +248,21 @@ const Qo = (e) => {
248
248
  endTimeLabel: r = "",
249
249
  endTimeWrapperClassName: d = "",
250
250
  timeRangeInputsWrapperClassName: u = "",
251
- startTimeInputClassName: p = "",
251
+ startTimeInputClassName: m = "",
252
252
  startTimeLabel: E = "",
253
- startTimeWrapperClassName: b = ""
253
+ startTimeWrapperClassName: w = ""
254
254
  }) => /* @__PURE__ */ B("div", { className: `timeRangeWrapper ${u}`, children: [
255
- /* @__PURE__ */ l("div", { className: `startTimeWrapper ${b}`, children: /* @__PURE__ */ l(
255
+ /* @__PURE__ */ l("div", { className: `startTimeWrapper ${w}`, children: /* @__PURE__ */ l(
256
256
  Re,
257
257
  {
258
258
  label: E,
259
259
  disabled: n === null,
260
- className: `timeRangeInput ${p}`,
260
+ className: `timeRangeInput ${m}`,
261
261
  name: "start-time",
262
262
  type: "time",
263
263
  value: we(n).format("HH:mm"),
264
264
  onChange: (M) => {
265
- const _ = we(n), k = we(M.currentTarget.value, "HH:mm"), H = _.set({
265
+ const T = we(n), k = we(M.currentTarget.value, "HH:mm"), H = T.set({
266
266
  hours: k.get("hours"),
267
267
  minutes: k.get("minutes")
268
268
  });
@@ -280,7 +280,7 @@ const Qo = (e) => {
280
280
  type: "time",
281
281
  value: we(e).format("HH:mm"),
282
282
  onChange: (M) => {
283
- const _ = we(e), k = we(M.currentTarget.value, "HH:mm"), H = _.set({
283
+ const T = we(e), k = we(M.currentTarget.value, "HH:mm"), H = T.set({
284
284
  hours: k.get("hours"),
285
285
  minutes: k.get("minutes")
286
286
  });
@@ -306,30 +306,30 @@ const Qo = (e) => {
306
306
  }, setEndDate: n = () => {
307
307
  }, shortcuts: t, dateRange: i, onShortcut: o }) => {
308
308
  const [r, d] = A(), u = Fe(
309
- () => t.map((p) => p instanceof Function ? p() : p),
309
+ () => t.map((m) => m instanceof Function ? m() : m),
310
310
  [t]
311
311
  );
312
312
  return O(() => {
313
- for (const p of u) {
314
- const E = i.startDate && i.endDate && dt(p.startDate, i.startDate) && dt(p.endDate, i.endDate);
315
- r ? p.id === r && (E || d(void 0)) : E && d(p.id);
313
+ for (const m of u) {
314
+ const E = i.startDate && i.endDate && dt(m.startDate, i.startDate) && dt(m.endDate, i.endDate);
315
+ r ? m.id === r && (E || d(void 0)) : E && d(m.id);
316
316
  }
317
- }, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((p, E) => {
318
- const b = () => {
319
- e(p.startDate), n(p.endDate);
317
+ }, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((m, E) => {
318
+ const w = () => {
319
+ e(m.startDate), n(m.endDate);
320
320
  };
321
321
  return /* @__PURE__ */ l(
322
322
  Me,
323
323
  {
324
324
  type: "button",
325
- className: `shortcut ${r === p.id ? "selected" : ""}`,
325
+ className: `shortcut ${r === m.id ? "selected" : ""}`,
326
326
  onClick: (M) => {
327
- b(), o == null || o({ startDate: p.startDate, endDate: p.endDate });
327
+ w(), o == null || o({ startDate: m.startDate, endDate: m.endDate });
328
328
  },
329
329
  outlined: !0,
330
- children: p.label
330
+ children: m.label
331
331
  },
332
- p.id + E
332
+ m.id + E
333
333
  );
334
334
  }) });
335
335
  }, ts = fe.forwardRef((e, n) => {
@@ -349,26 +349,26 @@ const Qo = (e) => {
349
349
  selectsRange: r,
350
350
  onChange: d,
351
351
  inputName: u,
352
- showMonthYearDropdown: p,
352
+ showMonthYearDropdown: m,
353
353
  // withTimeRange,
354
354
  withShortcuts: E,
355
- locale: b = "en"
356
- } = e, [M, _] = A(null), [k, H] = A(null), [j, K] = A(!1), F = r ? { startDate: M, endDate: k } : M;
355
+ locale: w = "en"
356
+ } = e, [M, T] = A(null), [k, H] = A(null), [j, K] = A(!1), F = r ? { startDate: M, endDate: k } : M;
357
357
  O(() => {
358
- b === "he" && In("he", An);
359
- }, [b]), O(() => {
358
+ w === "he" && In("he", An);
359
+ }, [w]), O(() => {
360
360
  var x, $;
361
- ((x = e.startDate) == null ? void 0 : x.toString()) !== (M == null ? void 0 : M.toString()) && _(e.startDate), (($ = e.endDate) == null ? void 0 : $.toString()) !== (k == null ? void 0 : k.toString()) && H(e.endDate);
361
+ ((x = e.startDate) == null ? void 0 : x.toString()) !== (M == null ? void 0 : M.toString()) && T(e.startDate), (($ = e.endDate) == null ? void 0 : $.toString()) !== (k == null ? void 0 : k.toString()) && H(e.endDate);
362
362
  }, [e.startDate, e.endDate, M, k]);
363
363
  const Y = Fe(() => {
364
- let x = "pickerContainer" + (b === "he" ? " pickerContainer-rtl" : "");
364
+ let x = "pickerContainer" + (w === "he" ? " pickerContainer-rtl" : "");
365
365
  return E && r && (x += " pickerContainer-withShortcuts"), x;
366
- }, [b, E, r]), U = p ? {
366
+ }, [w, E, r]), U = m ? {
367
367
  showMonthDropdown: !0,
368
368
  showYearDropdown: !0,
369
369
  dropdownMode: "select"
370
370
  } : {};
371
- return /* @__PURE__ */ l("div", { className: Y, style: { direction: b === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
371
+ return /* @__PURE__ */ l("div", { className: Y, style: { direction: w === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
372
372
  Dn,
373
373
  {
374
374
  ...e,
@@ -386,9 +386,9 @@ const Qo = (e) => {
386
386
  onChange: (x, $) => {
387
387
  if (Array.isArray(x)) {
388
388
  const [R, V] = x;
389
- _(R), H(V), d == null || d({ startDate: R, endDate: V && an(V) }, $);
389
+ T(R), H(V), d == null || d({ startDate: R, endDate: V && an(V) }, $);
390
390
  } else
391
- _(x), d == null || d(x, $);
391
+ T(x), d == null || d(x, $);
392
392
  },
393
393
  customInput: /* @__PURE__ */ l(Hi, { name: u, onInputClick: () => {
394
394
  K(!0);
@@ -397,7 +397,7 @@ const Qo = (e) => {
397
397
  timeInputLabel: "",
398
398
  customTimeInput: E && Ue(F) && /* @__PURE__ */ l(Gi, { onShortcut: (x) => {
399
399
  d == null || d(x), K(!1);
400
- }, shortcuts: E, setEndDate: H, setStartDate: _, dateRange: F }),
400
+ }, shortcuts: E, setEndDate: H, setStartDate: T, dateRange: F }),
401
401
  showMonthYearDropdown: void 0,
402
402
  ...U
403
403
  }
@@ -408,19 +408,19 @@ const ns = (e) => {
408
408
  format: r = J.DATE_PICKER.dateFormat,
409
409
  variant: d = J.DATE_PICKER.variant,
410
410
  disableFuture: u = J.DATE_PICKER.disableFuture,
411
- local: p,
411
+ local: m,
412
412
  onChange: E,
413
- showTime: b = J.DATE_PICKER.showTime,
413
+ showTime: w = J.DATE_PICKER.showTime,
414
414
  value: M,
415
- ..._
416
- } = e, { placeHolderText: k = J.DATE_PICKER.local.placeHolderText, calendarLocale: H } = p ?? {
415
+ ...T
416
+ } = e, { placeHolderText: k = J.DATE_PICKER.local.placeHolderText, calendarLocale: H } = m ?? {
417
417
  placeHolderText: J.DATE_PICKER.local.placeHolderText,
418
418
  calendarLocale: ce.EN
419
419
  }, j = H === ce.HE ? Dt : It, K = (F) => {
420
420
  o(F), E(F);
421
421
  };
422
422
  return /* @__PURE__ */ l(xt, { theme: t, children: /* @__PURE__ */ B(At, { utils: kt, locale: j, children: [
423
- b && /* @__PURE__ */ l(
423
+ w && /* @__PURE__ */ l(
424
424
  Ye,
425
425
  {
426
426
  variant: d,
@@ -429,10 +429,10 @@ const ns = (e) => {
429
429
  value: i,
430
430
  disableFuture: u,
431
431
  format: r,
432
- ..._
432
+ ...T
433
433
  }
434
434
  ),
435
- !b && /* @__PURE__ */ l(
435
+ !w && /* @__PURE__ */ l(
436
436
  ln,
437
437
  {
438
438
  variant: d,
@@ -441,7 +441,7 @@ const ns = (e) => {
441
441
  value: i,
442
442
  disableFuture: u,
443
443
  format: r,
444
- ..._
444
+ ...T
445
445
  }
446
446
  )
447
447
  ] }) });
@@ -456,13 +456,13 @@ const ns = (e) => {
456
456
  }
457
457
  })
458
458
  ), $i = (e) => {
459
- const n = zi(), [t, i] = fe.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: d, onReset: u } = e, p = (b) => {
460
- i(b.currentTarget);
459
+ const n = zi(), [t, i] = fe.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: d, onReset: u } = e, m = (w) => {
460
+ i(w.currentTarget);
461
461
  }, E = () => {
462
462
  i(null);
463
463
  };
464
464
  return o ? /* @__PURE__ */ l(Ze, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Me, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ B(ae, { position: "relative", children: [
465
- /* @__PURE__ */ l(Ze, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Me, { className: n.drawingButton, raised: !0, onClick: p, children: "Draw AOI" }) }),
465
+ /* @__PURE__ */ l(Ze, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Me, { className: n.drawingButton, raised: !0, onClick: m, children: "Draw AOI" }) }),
466
466
  /* @__PURE__ */ B(
467
467
  wn,
468
468
  {
@@ -474,7 +474,7 @@ const ns = (e) => {
474
474
  $e,
475
475
  {
476
476
  onClick: () => {
477
- d(re.POLYGON), E();
477
+ d(oe.POLYGON), E();
478
478
  },
479
479
  children: "Polygon"
480
480
  }
@@ -483,7 +483,7 @@ const ns = (e) => {
483
483
  $e,
484
484
  {
485
485
  onClick: () => {
486
- d(re.BOX), E();
486
+ d(oe.BOX), E();
487
487
  },
488
488
  children: "Box"
489
489
  }
@@ -531,9 +531,9 @@ const et = 5, tt = 2, $t = Pe(null), Wi = $t.Provider, pt = 35, gt = 32, Ui = 10
531
531
  }, [r, e.center, e.projection]), O(() => {
532
532
  r.getView().setZoom(e.zoom ?? Ui);
533
533
  }, [r, e.zoom, e.projection]);
534
- const d = (u, p) => {
535
- p.getControls().forEach((b) => {
536
- b instanceof u && p.removeControl(b);
534
+ const d = (u, m) => {
535
+ m.getControls().forEach((w) => {
536
+ w instanceof u && m.removeControl(w);
537
537
  });
538
538
  };
539
539
  return O(() => {
@@ -601,10 +601,10 @@ const et = 5, tt = 2, $t = Pe(null), Wi = $t.Provider, pt = 35, gt = 32, Ui = 10
601
601
  /* CIRCLE */
602
602
  };
603
603
  switch (e) {
604
- case re.BOX:
604
+ case oe.BOX:
605
605
  i.geometryFunction = zn();
606
606
  break;
607
- case re.POLYGON:
607
+ case oe.POLYGON:
608
608
  i.type = "Polygon";
609
609
  break;
610
610
  default:
@@ -613,8 +613,8 @@ const et = 5, tt = 2, $t = Pe(null), Wi = $t.Provider, pt = 35, gt = 32, Ui = 10
613
613
  const o = new Vn(i);
614
614
  t.addInteraction(o);
615
615
  const r = (d) => {
616
- const p = new Rt().writeGeometryObject(d.feature.getGeometry());
617
- n == null || n(p);
616
+ const m = new Rt().writeGeometryObject(d.feature.getGeometry());
617
+ n == null || n(m);
618
618
  };
619
619
  return o.on("drawend", r), () => {
620
620
  o.un("drawend", r), t.removeInteraction(o);
@@ -658,7 +658,7 @@ const ar = (e) => {
658
658
  }
659
659
  })
660
660
  ), is = (e) => {
661
- var p;
661
+ var m;
662
662
  const [n, t] = A(), [i, o] = A(), r = cr(), d = (E) => {
663
663
  o(E), t(void 0), e.handlePolygonSelected(E);
664
664
  }, u = () => {
@@ -676,7 +676,7 @@ const ar = (e) => {
676
676
  isSelectionEnabled: n !== void 0
677
677
  }
678
678
  ),
679
- (p = e.filters) == null ? void 0 : p.map((E, b) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: E }, b))
679
+ (m = e.filters) == null ? void 0 : m.map((E, w) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: E }, w))
680
680
  ] }),
681
681
  /* @__PURE__ */ l(Xe, { color: "red", className: `${r.contentContainer}`, children: e.children })
682
682
  ] }),
@@ -684,8 +684,8 @@ const ar = (e) => {
684
684
  ] });
685
685
  };
686
686
  function dr(e) {
687
- const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, d = (u) => (p) => {
688
- o(p, u);
687
+ const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, d = (u) => (m) => {
688
+ o(m, u);
689
689
  };
690
690
  return /* @__PURE__ */ l($n, { children: /* @__PURE__ */ B(Oe, { children: [
691
691
  r && /* @__PURE__ */ l(Te, {}),
@@ -721,8 +721,8 @@ const ur = Nt(
721
721
  "KeyboardArrowUp"
722
722
  );
723
723
  function mr(e) {
724
- const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: d, collapsedElement: u } = e, [p, E] = A(!1), b = n.length;
725
- return /* @__PURE__ */ B(oe, { children: [
724
+ const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: d, collapsedElement: u } = e, [m, E] = A(!1), w = n.length;
725
+ return /* @__PURE__ */ B(ie, { children: [
726
726
  /* @__PURE__ */ B(Oe, { hover: !0, selected: t, onClick: () => {
727
727
  o == null || o(r);
728
728
  }, children: [
@@ -731,23 +731,23 @@ function mr(e) {
731
731
  {
732
732
  "aria-label": "expand row",
733
733
  size: "small",
734
- onClick: (_) => {
735
- _.stopPropagation(), E(!p);
734
+ onClick: (T) => {
735
+ T.stopPropagation(), E(!m);
736
736
  },
737
- children: p ? /* @__PURE__ */ l(hr, {}) : /* @__PURE__ */ l(ur, {})
737
+ children: m ? /* @__PURE__ */ l(hr, {}) : /* @__PURE__ */ l(ur, {})
738
738
  }
739
739
  ) }),
740
- n.map((_) => /* @__PURE__ */ l(
740
+ n.map((T) => /* @__PURE__ */ l(
741
741
  Te,
742
742
  {
743
- align: _.numeric ? "right" : "left",
744
- padding: _.disablePadding ? "none" : "default",
745
- children: _.transform ? _.transform(i[_.id]) : i[_.id]
743
+ align: T.numeric ? "right" : "left",
744
+ padding: T.disablePadding ? "none" : "default",
745
+ children: T.transform ? T.transform(i[T.id]) : i[T.id]
746
746
  },
747
- _.id + r.toString()
747
+ T.id + r.toString()
748
748
  ))
749
749
  ] }),
750
- d && /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l(Te, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: b + 1, children: /* @__PURE__ */ l(pn, { in: p, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
750
+ d && /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l(Te, { 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
751
  ] });
752
752
  }
753
753
  function rs(e) {
@@ -755,11 +755,11 @@ function rs(e) {
755
755
  cellsMetadata: r,
756
756
  items: d,
757
757
  onRequestSort: u,
758
- onRowSelected: p,
758
+ onRowSelected: m,
759
759
  isCollapseable: E,
760
- collapsedElement: b,
760
+ collapsedElement: w,
761
761
  isDense: M,
762
- page: _,
762
+ page: T,
763
763
  rowsPerPage: k,
764
764
  count: H,
765
765
  handleChangePage: j,
@@ -788,9 +788,9 @@ function rs(e) {
788
788
  rowIndex: U,
789
789
  isCollapseable: E,
790
790
  cellsMetadata: r,
791
- collapsedElement: b,
791
+ collapsedElement: w,
792
792
  isRowSelected: !1,
793
- onRowSelected: p
793
+ onRowSelected: m
794
794
  },
795
795
  U
796
796
  )),
@@ -812,7 +812,7 @@ function rs(e) {
812
812
  rowsPerPageOptions: [5, 10],
813
813
  component: "div",
814
814
  count: H,
815
- page: _,
815
+ page: T,
816
816
  onPageChange: j,
817
817
  onRowsPerPageChange: K
818
818
  }
@@ -837,22 +837,22 @@ const gr = (e) => {
837
837
  if (d) {
838
838
  const u = r.cartesianToCartographic(d);
839
839
  if (t.current) {
840
- let p = "";
840
+ let m = "";
841
841
  switch (e.projection) {
842
842
  case he.WEB_MERCATOR: {
843
- const b = new ii(r).project(u);
844
- p = `Mercator: ${b.y.toFixed(tt)}m, ${b.x.toFixed(
843
+ const w = new ii(r).project(u);
844
+ m = `Mercator: ${w.y.toFixed(tt)}m, ${w.x.toFixed(
845
845
  tt
846
846
  )}m`, t.current.style.width = "220px";
847
847
  break;
848
848
  }
849
849
  case he.WGS84: {
850
850
  const E = le.toDegrees(u.longitude).toFixed(et);
851
- p = `WGS84: ${le.toDegrees(u.latitude).toFixed(et)}°N ${E}°E`, t.current.style.width = "200px";
851
+ m = `WGS84: ${le.toDegrees(u.latitude).toFixed(et)}°N ${E}°E`, t.current.style.width = "200px";
852
852
  break;
853
853
  }
854
854
  }
855
- t.current.innerHTML = p;
855
+ t.current.innerHTML = m;
856
856
  }
857
857
  }
858
858
  }, [i, t, n, e.projection]), /* @__PURE__ */ l("div", { className: "trackerPosition", ref: t });
@@ -895,11 +895,11 @@ const Ke = [
895
895
  barWidth: void 0,
896
896
  distanceLabel: void 0,
897
897
  lastLegendUpdate: n.lastLegendUpdate
898
- }, u = new oi(), p = new Date().getTime();
899
- if (p < d.lastLegendUpdate + 250)
898
+ }, u = new oi(), m = new Date().getTime();
899
+ if (m < d.lastLegendUpdate + 250)
900
900
  return;
901
- d.lastLegendUpdate = p;
902
- const E = e.scene.canvas.clientWidth, b = e.scene.canvas.clientHeight, M = e.scene.camera.getPickRay(new Se(E / 2 | 0, b - 1)), _ = e.scene.camera.getPickRay(new Se(1 + E / 2 | 0, b - 1)), k = e.scene.globe, H = k.pick(M, e.scene), j = k.pick(_, e.scene);
901
+ d.lastLegendUpdate = m;
902
+ const E = e.scene.canvas.clientWidth, w = e.scene.canvas.clientHeight, M = e.scene.camera.getPickRay(new Se(E / 2 | 0, w - 1)), T = e.scene.camera.getPickRay(new Se(1 + E / 2 | 0, w - 1)), k = e.scene.globe, H = k.pick(M, e.scene), j = k.pick(T, e.scene);
903
903
  if (!H || !j)
904
904
  return;
905
905
  const K = k.ellipsoid.cartesianToCartographic(H), F = k.ellipsoid.cartesianToCartographic(j);
@@ -920,21 +920,21 @@ const Ke = [
920
920
  lastLegendUpdate: -1
921
921
  });
922
922
  O(() => {
923
- const r = (p) => {
923
+ const r = (m) => {
924
924
  fr(n, t, i, e.locale);
925
- }, d = new ri(), u = (p) => {
925
+ }, d = new ri(), u = (m) => {
926
926
  n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), d.removeAll());
927
927
  };
928
928
  return d.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
929
929
  try {
930
930
  Q(n, "_cesiumWidget") != null && n.camera.moveEnd.removeEventListener(r);
931
- } catch (p) {
932
- console.log('CESIUM camera "moveEnd" remove listener failed', p);
931
+ } catch (m) {
932
+ console.log('CESIUM camera "moveEnd" remove listener failed', m);
933
933
  }
934
934
  };
935
935
  }, [n, e.locale, t]);
936
936
  const o = (r) => 5 + (125 - r) / 2;
937
- return /* @__PURE__ */ l("div", { className: "scalePosition", children: Ne(t.barWidth) && /* @__PURE__ */ B(oe, { children: [
937
+ return /* @__PURE__ */ l("div", { className: "scalePosition", children: Ne(t.barWidth) && /* @__PURE__ */ B(ie, { children: [
938
938
  /* @__PURE__ */ l("div", { className: "distance-legend-label", children: t.distanceLabel }),
939
939
  /* @__PURE__ */ l(
940
940
  "div",
@@ -969,9 +969,9 @@ const yt = (e, n) => {
969
969
  if (d === null)
970
970
  break;
971
971
  if (d !== o) {
972
- let u = r, p = r + i;
973
- for (; p - u > e; )
974
- r = u + (p - u) / 2, yt(r, n) === d ? u = r : p = r;
972
+ let u = r, m = r + i;
973
+ for (; m - u > e; )
974
+ r = u + (m - u) / 2, yt(r, n) === d ? u = r : m = r;
975
975
  t.push({
976
976
  level: d,
977
977
  height: Math.round(r)
@@ -984,23 +984,23 @@ const yt = (e, n) => {
984
984
  return O(() => {
985
985
  const r = () => {
986
986
  const d = n.camera, u = 0.5;
987
- let p = 0;
987
+ let m = 0;
988
988
  switch (n.scene.mode) {
989
989
  case ne.SCENE3D:
990
- p = n.scene.mapProjection.ellipsoid.cartesianToCartographic(d.positionWC).height;
990
+ m = n.scene.mapProjection.ellipsoid.cartesianToCartographic(d.positionWC).height;
991
991
  break;
992
992
  case ne.SCENE2D:
993
- p = (d.frustum.right - d.frustum.left) * u;
993
+ m = (d.frustum.right - d.frustum.left) * u;
994
994
  break;
995
995
  case ne.COLUMBUS_VIEW:
996
- p = d.position.z;
996
+ m = d.position.z;
997
997
  break;
998
998
  default:
999
- p = 0;
999
+ m = 0;
1000
1000
  break;
1001
1001
  }
1002
1002
  if (o.length > 0) {
1003
- const E = o.reduce((b, M) => Math.abs(M.height - p) < Math.abs(b.height - p) ? M : b);
1003
+ const E = o.reduce((w, M) => Math.abs(M.height - m) < Math.abs(w.height - m) ? M : w);
1004
1004
  i(E.level);
1005
1005
  }
1006
1006
  };
@@ -1020,7 +1020,7 @@ const Cr = -1, wr = (e) => {
1020
1020
  const n = me(), [t, i] = A(), { sceneModes: o } = e, r = (d) => o.findIndex((u) => u === d) > Cr;
1021
1021
  return O(() => {
1022
1022
  i(n.scene.mode);
1023
- }, []), /* @__PURE__ */ B(oe, { children: [
1023
+ }, []), /* @__PURE__ */ B(ie, { children: [
1024
1024
  r(ne.SCENE3D) && /* @__PURE__ */ l(
1025
1025
  _e,
1026
1026
  {
@@ -1061,20 +1061,20 @@ const br = Ie(
1061
1061
  ), Tr = (e) => {
1062
1062
  const n = me(), { baseMaps: t } = e, [i, o] = A(" "), [r, d] = A(), u = br();
1063
1063
  O(() => {
1064
- const E = t == null ? void 0 : t.maps.find((b) => b.isCurrent);
1064
+ const E = t == null ? void 0 : t.maps.find((w) => w.isCurrent);
1065
1065
  E && (d(E), o(E.title !== void 0 ? E.title : " "));
1066
1066
  }, [t]);
1067
- const p = (E) => {
1068
- var b, M;
1067
+ const m = (E) => {
1068
+ var w, M;
1069
1069
  if (t) {
1070
- (b = n.layersManager) == null || b.removeBaseMapLayers();
1071
- const _ = t.maps.find((k) => k.id === E);
1072
- _ && ((M = n.layersManager) == null || M.setBaseMapLayers(_), d(_), t.maps.forEach((k) => {
1073
- k.isCurrent = _ === k;
1070
+ (w = n.layersManager) == null || w.removeBaseMapLayers();
1071
+ const T = t.maps.find((k) => k.id === E);
1072
+ T && ((M = n.layersManager) == null || M.setBaseMapLayers(T), d(T), t.maps.forEach((k) => {
1073
+ k.isCurrent = T === k;
1074
1074
  }));
1075
1075
  }
1076
1076
  };
1077
- return /* @__PURE__ */ B(oe, { children: [
1077
+ return /* @__PURE__ */ B(ie, { children: [
1078
1078
  /* @__PURE__ */ l("label", { className: "mapLabel", children: i }),
1079
1079
  /* @__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(
1080
1080
  "img",
@@ -1089,24 +1089,24 @@ const br = Ie(
1089
1089
  o((r == null ? void 0 : r.title) !== void 0 ? r.title : " ");
1090
1090
  },
1091
1091
  onClick: () => {
1092
- p(E.id);
1092
+ m(E.id);
1093
1093
  }
1094
1094
  }
1095
1095
  ) }, E.id)) })
1096
1096
  ] });
1097
1097
  };
1098
1098
  const qe = "ic_settings_24px", _r = (e) => {
1099
- const [n, t] = A(!1), { sceneModes: i, baseMaps: o, locale: r } = e, d = Ee(null), u = Q(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", p = Q(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", E = Q(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1099
+ const [n, t] = A(!1), { sceneModes: i, baseMaps: o, locale: r } = e, d = Ee(null), u = Q(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", m = Q(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", E = Q(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1100
1100
  return O(() => {
1101
- const b = (M) => {
1101
+ const w = (M) => {
1102
1102
  var H;
1103
- const _ = M.target, k = Q(d, "current");
1104
- k && !k.contains(_) && _.id !== qe && ((H = _.parentElement) == null ? void 0 : H.id) !== qe && (document.removeEventListener("click", b, !1), t(!1));
1103
+ const T = M.target, k = Q(d, "current");
1104
+ k && !k.contains(T) && T.id !== qe && ((H = T.parentElement) == null ? void 0 : H.id) !== qe && (document.removeEventListener("click", w, !1), t(!1));
1105
1105
  };
1106
- return document.addEventListener("click", b, !1), () => {
1107
- document.removeEventListener("click", b, !1);
1106
+ return document.addEventListener("click", w, !1), () => {
1107
+ document.removeEventListener("click", w, !1);
1108
1108
  };
1109
- }), /* @__PURE__ */ B(oe, { children: [
1109
+ }), /* @__PURE__ */ B(ie, { children: [
1110
1110
  /* @__PURE__ */ l(
1111
1111
  _e,
1112
1112
  {
@@ -1126,9 +1126,9 @@ const qe = "ic_settings_24px", _r = (e) => {
1126
1126
  children: [
1127
1127
  /* @__PURE__ */ l(Tn, { children: u }),
1128
1128
  /* @__PURE__ */ B(_n, { children: [
1129
- /* @__PURE__ */ l("h4", { className: "sectionLabel", children: p }),
1129
+ /* @__PURE__ */ l("h4", { className: "sectionLabel", children: m }),
1130
1130
  /* @__PURE__ */ l(ae, { className: "mapScenesContainer", children: /* @__PURE__ */ l(wr, { sceneModes: i }) }),
1131
- /* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: o && /* @__PURE__ */ B(oe, { children: [
1131
+ /* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: o && /* @__PURE__ */ B(ie, { children: [
1132
1132
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: E }),
1133
1133
  /* @__PURE__ */ l(Tr, { baseMaps: o })
1134
1134
  ] }) })
@@ -1233,26 +1233,26 @@ const Sr = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1233
1233
  console.error("Could not determine image transparency. Error => ", o), i(o);
1234
1234
  }
1235
1235
  })), xe = (e, n) => {
1236
- const { west: t, east: i, north: o, south: r } = e, { west: d, east: u, north: p, south: E } = n;
1237
- return t >= d && i <= u && o <= p && r >= E;
1236
+ const { west: t, east: i, north: o, south: r } = e, { west: d, east: u, north: m, south: E } = n;
1237
+ return t >= d && i <= u && o <= m && r >= E;
1238
1238
  }, Ve = 3, Be = "hasTransparency";
1239
1239
  function st(e, n, t, i, o) {
1240
1240
  return setTimeout(() => {
1241
1241
  var u;
1242
1242
  const r = (u = this.layerListInstance.find(
1243
1243
  /* eslint-disable */
1244
- (p) => {
1245
- var E, b;
1246
- return ((E = p._imageryProvider._resource) == null ? void 0 : E._url) === ((b = this._resource) == null ? void 0 : b._url);
1244
+ (m) => {
1245
+ var E, w;
1246
+ return ((E = m._imageryProvider._resource) == null ? void 0 : E._url) === ((w = this._resource) == null ? void 0 : w._url);
1247
1247
  }
1248
1248
  /* eslint-enable */
1249
1249
  )) == null ? void 0 : u.meta, d = Q(r, Be) === !0;
1250
- this.tileTransparencyCheckedCounter < Ve && !d && kr(o == null ? void 0 : o.url, this).then((p) => {
1250
+ this.tileTransparencyCheckedCounter < Ve && !d && kr(o == null ? void 0 : o.url, this).then((m) => {
1251
1251
  var E;
1252
1252
  (E = this.mapViewer.layersManager) == null || E.addMetaToLayer(
1253
- { [Be]: p },
1253
+ { [Be]: m },
1254
1254
  /* eslint-disable */
1255
- (b) => b._imageryProvider._resource._url === this._resource._url
1255
+ (w) => w._imageryProvider._resource._url === this._resource._url
1256
1256
  );
1257
1257
  });
1258
1258
  }, 0), e(n, t, i, o);
@@ -1421,19 +1421,19 @@ class Rr {
1421
1421
  let i;
1422
1422
  return t && (i = (o = this.mapViewer.imageryLayers.pickImageryLayers(t, this.mapViewer.scene)) == null ? void 0 : o.filter((r) => !Q(r.meta, "parentBasetMapId"))), i;
1423
1423
  }
1424
- findLayerByPOI(n, t) {
1424
+ findLayerByPOI(n, t, i = !0) {
1425
1425
  if (this.layerManagerFootprintMetaFieldPath) {
1426
- const i = Ir(this.mapViewer, n, t);
1427
- return this.layers.filter((d) => !Q(d.meta, "parentBasetMapId")).filter((d) => {
1428
- const u = Q(d.meta, this.layerManagerFootprintMetaFieldPath);
1429
- return u !== void 0 ? Si(i.geometry, {
1426
+ const o = Ir(this.mapViewer, n, t);
1427
+ return this.layers.filter((u) => !Q(u.meta, "parentBasetMapId")).filter((u) => {
1428
+ const m = Q(u.meta, this.layerManagerFootprintMetaFieldPath);
1429
+ return m !== void 0 ? Si(o.geometry, {
1430
1430
  type: "Feature",
1431
1431
  properties: {},
1432
- geometry: u
1433
- }) && d.show : (console.warn("[LayerManager] [findLayerByPOI] CesiumImageryLayer has no defined footprint", d.meta), !1);
1434
- }).sort((d, u) => {
1435
- var p, E;
1436
- return ((p = u.meta) == null ? void 0 : p.zIndex) - ((E = d.meta) == null ? void 0 : E.zIndex);
1432
+ geometry: m
1433
+ }) && (i ? u.show : !0) : (console.warn("[LayerManager] [findLayerByPOI] CesiumImageryLayer has no defined footprint", u.meta), !1);
1434
+ }).sort((u, m) => {
1435
+ var E, w;
1436
+ return ((E = m.meta) == null ? void 0 : E.zIndex) - ((w = u.meta) == null ? void 0 : w.zIndex);
1437
1437
  });
1438
1438
  } else
1439
1439
  return console.warn("[LayerManager] [findLayerByPOI]layerManagerFootprintMetaFieldPath is not defined"), [];
@@ -1468,8 +1468,8 @@ class Rr {
1468
1468
  this.layers.forEach((u) => {
1469
1469
  var E;
1470
1470
  if (!Q(u.meta, "parentBasetMapId")) {
1471
- const b = (E = u.meta) == null ? void 0 : E.zIndex;
1472
- u.meta.zIndex = b >= r && b <= d && b !== t ? b + o : b === t ? i : b;
1471
+ const w = (E = u.meta) == null ? void 0 : E.zIndex;
1472
+ u.meta.zIndex = w >= r && w <= d && w !== t ? w + o : w === t ? i : w;
1473
1473
  }
1474
1474
  });
1475
1475
  }
@@ -1489,11 +1489,11 @@ class Rr {
1489
1489
  r.meta = { ...r.meta, relevantToExtent: !0 };
1490
1490
  continue;
1491
1491
  }
1492
- const p = this.layers[u], E = ((t = p.meta) == null ? void 0 : t[Be]) === !0;
1493
- if (r !== p)
1492
+ const m = this.layers[u], E = ((t = m.meta) == null ? void 0 : t[Be]) === !0;
1493
+ if (r !== m)
1494
1494
  if (d instanceof be) {
1495
1495
  if (xe(i, r.rectangle))
1496
- if (xe(i, p.rectangle) && !E) {
1496
+ if (xe(i, m.rectangle) && !E) {
1497
1497
  r.meta = {
1498
1498
  ...r.meta ?? {},
1499
1499
  relevantToExtent: !1
@@ -1504,11 +1504,11 @@ class Rr {
1504
1504
  ...r.meta ?? {},
1505
1505
  relevantToExtent: !0
1506
1506
  };
1507
- if (xe(i, p.rectangle) && !E) {
1507
+ if (xe(i, m.rectangle) && !E) {
1508
1508
  r.meta = { ...r.meta ?? {}, relevantToExtent: !1 };
1509
1509
  break;
1510
1510
  }
1511
- if (xe(r.rectangle, p.rectangle)) {
1511
+ if (xe(r.rectangle, m.rectangle)) {
1512
1512
  if (r.meta = {
1513
1513
  ...r.meta ?? {},
1514
1514
  relevantToExtent: E
@@ -1550,8 +1550,8 @@ const Zt = Pe(null), Br = Zt.Provider, me = () => {
1550
1550
  throw new Error("map context is null, please check the provider");
1551
1551
  return e;
1552
1552
  }, ls = (e) => {
1553
- var S, T, w, L, P, W, q, N;
1554
- const n = Ee(null), [t, i] = A(), [o, r] = A(), [d, u] = A(), [p, E] = A(), [b, M] = A(), [_, k] = A(), H = Ee(), [j, K] = A(), [F, Y] = A([]), [U, x] = A(), [$, R] = A(!1), V = Ee(), [X, s] = A(void 0), [a, y] = A(!1), [c, f] = A(), h = {
1553
+ var S, _, b, L, P, W, q, N;
1554
+ const n = Ee(null), [t, i] = A(), [o, r] = A(), [d, u] = A(), [m, E] = A(), [w, M] = A(), [T, k] = A(), H = Ee(), [j, K] = A(), [F, Y] = A([]), [U, x] = A(), [$, R] = A(!1), V = Ee(), [X, s] = A(void 0), [a, y] = A(!1), [c, f] = A(), h = {
1555
1555
  fullscreenButton: !0,
1556
1556
  timeline: !1,
1557
1557
  animation: !1,
@@ -1561,8 +1561,8 @@ const Zt = Pe(null), Br = Zt.Provider, me = () => {
1561
1561
  homeButton: !1,
1562
1562
  sceneModePicker: !1,
1563
1563
  ...e
1564
- }, v = (D, I, z, de, ie) => {
1565
- const ee = t.container, se = ee.clientWidth, Le = ee.clientHeight, Ae = de + ie;
1564
+ }, v = (D, I, z, de, re) => {
1565
+ const ee = t.container, se = ee.clientWidth, Le = ee.clientHeight, Ae = de + re;
1566
1566
  return {
1567
1567
  left: `${se - D < z ? D - (z - (se - D)) : D}px`,
1568
1568
  top: `${Le - I < Ae ? I - (Ae - (Le - I)) : I}px`
@@ -1632,14 +1632,14 @@ const Zt = Pe(null), Br = Zt.Provider, me = () => {
1632
1632
  t.container.clientWidth / 2,
1633
1633
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1634
1634
  t.container.clientHeight / 2
1635
- ), de = t.scene.camera.getPickRay(z), ie = t.scene.globe.pick(de, t.scene);
1636
- if (!ie)
1635
+ ), de = t.scene.camera.getPickRay(z), re = t.scene.globe.pick(de, t.scene);
1636
+ if (!re)
1637
1637
  return {
1638
1638
  longitude: 0,
1639
1639
  latitude: 0,
1640
1640
  height: 0
1641
1641
  };
1642
- const ee = t.scene.globe.ellipsoid.cartesianToCartographic(ie);
1642
+ const ee = t.scene.globe.ellipsoid.cartesianToCartographic(re);
1643
1643
  return ee !== void 0 ? {
1644
1644
  longitude: ke(ee.longitude),
1645
1645
  latitude: ke(ee.latitude),
@@ -1687,19 +1687,19 @@ const Zt = Pe(null), Br = Zt.Provider, me = () => {
1687
1687
  });
1688
1688
  }, [e.zoom, e.center, t]);
1689
1689
  const C = pe(() => t && jn(
1690
- /* @__PURE__ */ B(oe, { children: [
1690
+ /* @__PURE__ */ B(ie, { children: [
1691
1691
  /* @__PURE__ */ B(ae, { className: "sideToolsContainer", children: [
1692
- /* @__PURE__ */ l(_r, { sceneModes: j, baseMaps: U, locale: _ }),
1692
+ /* @__PURE__ */ l(_r, { sceneModes: j, baseMaps: U, locale: T }),
1693
1693
  /* @__PURE__ */ l(Lr, { onClick: () => y(!a) })
1694
1694
  ] }),
1695
1695
  /* @__PURE__ */ B(ae, { className: "toolsContainer", children: [
1696
- d === !0 ? /* @__PURE__ */ l(gr, { projection: o }) : /* @__PURE__ */ l(oe, {}),
1697
- p === !0 ? /* @__PURE__ */ l(Er, { locale: _ }) : /* @__PURE__ */ l(oe, {}),
1698
- b === !0 ? /* @__PURE__ */ l(yr, { locale: _ }) : /* @__PURE__ */ l(oe, {})
1696
+ d === !0 ? /* @__PURE__ */ l(gr, { projection: o }) : /* @__PURE__ */ l(ie, {}),
1697
+ m === !0 ? /* @__PURE__ */ l(Er, { locale: T }) : /* @__PURE__ */ l(ie, {}),
1698
+ w === !0 ? /* @__PURE__ */ l(yr, { locale: T }) : /* @__PURE__ */ l(ie, {})
1699
1699
  ] })
1700
1700
  ] }),
1701
1701
  document.querySelector(".cesium-viewer")
1702
- ), [U, _, t, o, j, d, b, a]);
1702
+ ), [U, T, t, o, j, d, w, a]);
1703
1703
  return /* @__PURE__ */ l(Kn, { className: "viewer", full: !0, ref: n, ...h, children: /* @__PURE__ */ B(Br, { value: t, children: [
1704
1704
  /* @__PURE__ */ l(
1705
1705
  Dr,
@@ -1707,15 +1707,15 @@ const Zt = Pe(null), Br = Zt.Provider, me = () => {
1707
1707
  title: (S = e.legends) == null ? void 0 : S.title,
1708
1708
  isOpen: a,
1709
1709
  toggleSidebar: () => y(!a),
1710
- noLegendsText: (T = e.legends) == null ? void 0 : T.emptyText,
1711
- legends: ((w = e.legends) == null ? void 0 : w.legendsList) ?? F,
1710
+ noLegendsText: (_ = e.legends) == null ? void 0 : _.emptyText,
1711
+ legends: ((b = e.legends) == null ? void 0 : b.legendsList) ?? F,
1712
1712
  actionsTexts: (L = e.legends) == null ? void 0 : L.actionsTexts
1713
1713
  }
1714
1714
  ),
1715
1715
  e.children,
1716
1716
  C(),
1717
1717
  e.imageryContextMenu && $ && X && c && fe.cloneElement(e.imageryContextMenu, {
1718
- data: (P = t == null ? void 0 : t.layersManager) == null ? void 0 : P.findLayerByPOI(X.x, X.y),
1718
+ data: (P = t == null ? void 0 : t.layersManager) == null ? void 0 : P.findLayerByPOI(X.x, X.y, !1),
1719
1719
  position: {
1720
1720
  x: X.x,
1721
1721
  y: X.y
@@ -1750,8 +1750,8 @@ const Zt = Pe(null), Br = Zt.Provider, me = () => {
1750
1750
  i.globe.depthTestAgainstTerrain = !0;
1751
1751
  const o = Ge.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? Fr;
1752
1752
  if (r) {
1753
- const d = ge.fromRadians(o.longitude, o.latitude, o.height), u = ge.fromRadians(o.longitude, o.latitude, o.height + r), p = ge.subtract(u, d, new ge());
1754
- t.modelMatrix = ci.fromTranslation(p);
1753
+ const d = ge.fromRadians(o.longitude, o.latitude, o.height), u = ge.fromRadians(o.longitude, o.latitude, o.height + r), m = ge.subtract(u, d, new ge());
1754
+ t.modelMatrix = ci.fromTranslation(m);
1755
1755
  }
1756
1756
  }
1757
1757
  }
@@ -1798,8 +1798,8 @@ const Zt = Pe(null), Br = Zt.Provider, me = () => {
1798
1798
  return /* @__PURE__ */ l(ze, { ...t, imageryProvider: new di(n) });
1799
1799
  }, Hr = (e) => /* @__PURE__ */ l(Zn, { ...e }), gs = (e) => /* @__PURE__ */ l(Bt, { ...e }), Gr = (e) => /* @__PURE__ */ l(Bt, { ...e }), Vr = (e) => /* @__PURE__ */ l(Jn, { ...e }), zr = (e) => /* @__PURE__ */ l(Qn, { ...e }), $r = (e) => /* @__PURE__ */ l(ei, { ...e }), Wr = (e) => /* @__PURE__ */ l(ti, { ...e });
1800
1800
  var ye = function() {
1801
- var e = m.Ellipsoid.WGS84, n, t = m.Material.fromType(m.Material.ColorType);
1802
- function i(s, a = new m.Color(1, 1, 0, 0.5), y = new m.Color(1, 1, 1, 1)) {
1801
+ var e = p.Ellipsoid.WGS84, n, t = p.Material.fromType(p.Material.ColorType);
1802
+ function i(s, a = new p.Color(1, 1, 0, 0.5), y = new p.Color(1, 1, 1, 1)) {
1803
1803
  this._scene = s.scene, t.uniforms.color = a, n = y, this._tooltip = {
1804
1804
  setVisible: () => {
1805
1805
  },
@@ -1808,7 +1808,7 @@ var ye = function() {
1808
1808
  }, this._surfaces = [], this.initialiseHandlers(), this.enhancePrimitives();
1809
1809
  }
1810
1810
  i.prototype.initialiseHandlers = function() {
1811
- var s = this._scene, a = this, y = new m.ScreenSpaceEventHandler(s.canvas);
1811
+ var s = this._scene, a = this, y = new p.ScreenSpaceEventHandler(s.canvas);
1812
1812
  function c(h, v) {
1813
1813
  if (a._handlersMuted != !0) {
1814
1814
  var g = s.pick(v);
@@ -1817,20 +1817,20 @@ var ye = function() {
1817
1817
  }
1818
1818
  y.setInputAction(function(h) {
1819
1819
  c("leftClick", h.position);
1820
- }, m.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(h) {
1820
+ }, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(h) {
1821
1821
  c("leftDoubleClick", h.position);
1822
- }, m.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
1822
+ }, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
1823
1823
  var f;
1824
1824
  y.setInputAction(function(h) {
1825
1825
  if (a._handlersMuted != !0) {
1826
1826
  var v = s.pick(h.endPosition);
1827
1827
  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));
1828
1828
  }
1829
- }, m.ScreenSpaceEventType.MOUSE_MOVE), y.setInputAction(function(h) {
1829
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), y.setInputAction(function(h) {
1830
1830
  c("leftUp", h.position);
1831
- }, m.ScreenSpaceEventType.LEFT_UP), y.setInputAction(function(h) {
1831
+ }, p.ScreenSpaceEventType.LEFT_UP), y.setInputAction(function(h) {
1832
1832
  c("leftDown", h.position);
1833
- }, m.ScreenSpaceEventType.LEFT_DOWN);
1833
+ }, p.ScreenSpaceEventType.LEFT_DOWN);
1834
1834
  }, i.prototype.setListener = function(s, a, y) {
1835
1835
  s[a] = y;
1836
1836
  }, i.prototype.muteHandlers = function(s) {
@@ -1858,25 +1858,25 @@ var ye = function() {
1858
1858
  this._editedSurface && !this._editedSurface.isDestroyed() && this._editedSurface.setEditMode(!1), this._editedSurface = s;
1859
1859
  };
1860
1860
  var o = {
1861
- ellipsoid: m.Ellipsoid.WGS84,
1861
+ ellipsoid: p.Ellipsoid.WGS84,
1862
1862
  textureRotationAngle: 0,
1863
1863
  height: 0,
1864
1864
  asynchronous: !0,
1865
1865
  show: !0,
1866
1866
  debugShowBoundingVolume: !1
1867
1867
  }, r = R(o, {
1868
- appearance: new m.EllipsoidSurfaceAppearance({
1868
+ appearance: new p.EllipsoidSurfaceAppearance({
1869
1869
  aboveGround: !1
1870
1870
  }),
1871
1871
  material: t,
1872
1872
  granularity: Math.PI / 180
1873
- }), d = R(o, {}), u = R(o, {}), p = R(o, {}), E = R(r, {
1873
+ }), d = R(o, {}), u = R(o, {}), m = R(o, {}), E = R(r, {
1874
1874
  rotation: 0
1875
- }), b = R(o, {
1875
+ }), w = R(o, {
1876
1876
  width: 5,
1877
1877
  geodesic: !0,
1878
1878
  granularity: 1e4,
1879
- appearance: new m.PolylineMaterialAppearance({
1879
+ appearance: new p.PolylineMaterialAppearance({
1880
1880
  aboveGround: !1
1881
1881
  }),
1882
1882
  material: t
@@ -1890,33 +1890,33 @@ var ye = function() {
1890
1890
  }, s.prototype.getAttribute = function(a) {
1891
1891
  return this[a];
1892
1892
  }, s.prototype.update = function(a, y, c) {
1893
- if (!m.defined(this.ellipsoid))
1894
- throw new m.DeveloperError("this.ellipsoid must be defined.");
1895
- if (!m.defined(this.appearance))
1896
- throw new m.DeveloperError("this.material must be defined.");
1893
+ if (!p.defined(this.ellipsoid))
1894
+ throw new p.DeveloperError("this.ellipsoid must be defined.");
1895
+ if (!p.defined(this.appearance))
1896
+ throw new p.DeveloperError("this.material must be defined.");
1897
1897
  if (this.granularity < 0)
1898
- throw new m.DeveloperError("this.granularity and scene2D/scene3D overrides must be greater than zero.");
1899
- if (this.show && !(!this._createPrimitive && !m.defined(this._primitive))) {
1898
+ throw new p.DeveloperError("this.granularity and scene2D/scene3D overrides must be greater than zero.");
1899
+ if (this.show && !(!this._createPrimitive && !p.defined(this._primitive))) {
1900
1900
  if (this._createPrimitive || this._ellipsoid !== this.ellipsoid || this._granularity !== this.granularity || this._height !== this.height || this._textureRotationAngle !== this.textureRotationAngle || this._id !== this.id) {
1901
1901
  var f = this.getGeometry();
1902
1902
  if (!f)
1903
1903
  return;
1904
- this._createPrimitive = !1, this._ellipsoid = this.ellipsoid, this._granularity = this.granularity, this._height = this.height, this._textureRotationAngle = this.textureRotationAngle, this._id = this.id, this._primitive = this._primitive && this._primitive.destroy(), this._primitive = new m.Primitive({
1905
- geometryInstances: new m.GeometryInstance({
1904
+ this._createPrimitive = !1, this._ellipsoid = this.ellipsoid, this._granularity = this.granularity, this._height = this.height, this._textureRotationAngle = this.textureRotationAngle, this._id = this.id, this._primitive = this._primitive && this._primitive.destroy(), this._primitive = new p.Primitive({
1905
+ geometryInstances: new p.GeometryInstance({
1906
1906
  geometry: f,
1907
1907
  id: this.id,
1908
1908
  pickPrimitive: this
1909
1909
  }),
1910
1910
  appearance: this.appearance,
1911
1911
  asynchronous: this.asynchronous
1912
- }), this._outlinePolygon = this._outlinePolygon && this._outlinePolygon.destroy(), this.strokeColor && this.getOutlineGeometry && (this._outlinePolygon = new m.Primitive({
1913
- geometryInstances: new m.GeometryInstance({
1912
+ }), this._outlinePolygon = this._outlinePolygon && this._outlinePolygon.destroy(), this.strokeColor && this.getOutlineGeometry && (this._outlinePolygon = new p.Primitive({
1913
+ geometryInstances: new p.GeometryInstance({
1914
1914
  geometry: this.getOutlineGeometry(),
1915
1915
  attributes: {
1916
- color: m.ColorGeometryInstanceAttribute.fromColor(this.strokeColor)
1916
+ color: p.ColorGeometryInstanceAttribute.fromColor(this.strokeColor)
1917
1917
  }
1918
1918
  }),
1919
- appearance: new m.PerInstanceColorAppearance({
1919
+ appearance: new p.PerInstanceColorAppearance({
1920
1920
  flat: !0,
1921
1921
  renderState: {
1922
1922
  depthTest: {
@@ -1935,15 +1935,15 @@ var ye = function() {
1935
1935
  }, s.prototype.isDestroyed = function() {
1936
1936
  return !1;
1937
1937
  }, s.prototype.destroy = function() {
1938
- return this._primitive = this._primitive && this._primitive.destroy(), m.destroyObject(this);
1938
+ return this._primitive = this._primitive && this._primitive.destroy(), p.destroyObject(this);
1939
1939
  }, s.prototype.setStrokeStyle = function(a, y) {
1940
1940
  (!this.strokeColor || !this.strokeColor.equals(a) || this.strokeWidth != y) && (this._createPrimitive = !0, this.strokeColor = a, this.strokeWidth = y);
1941
1941
  }, s;
1942
1942
  }();
1943
1943
  i.ExtentPrimitive = function() {
1944
1944
  function s(a) {
1945
- if (!m.defined(a.extent))
1946
- throw new m.DeveloperError("Extent is required");
1945
+ if (!p.defined(a.extent))
1946
+ throw new p.DeveloperError("Extent is required");
1947
1947
  a = R(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
1948
1948
  }
1949
1949
  return s.prototype = new M(), s.prototype.setExtent = function(a) {
@@ -1951,17 +1951,17 @@ var ye = function() {
1951
1951
  }, s.prototype.getExtent = function() {
1952
1952
  return this.getAttribute("extent");
1953
1953
  }, s.prototype.getGeometry = function() {
1954
- if (m.defined(this.extent))
1955
- return new m.RectangleGeometry({
1954
+ if (p.defined(this.extent))
1955
+ return new p.RectangleGeometry({
1956
1956
  rectangle: this.extent,
1957
1957
  height: this.height,
1958
- vertexFormat: m.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
1958
+ vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
1959
1959
  stRotation: this.textureRotationAngle,
1960
1960
  ellipsoid: this.ellipsoid,
1961
1961
  granularity: this.granularity
1962
1962
  });
1963
1963
  }, s.prototype.getOutlineGeometry = function() {
1964
- return new m.RectangleOutlineGeometry({
1964
+ return new p.RectangleOutlineGeometry({
1965
1965
  rectangle: this.extent
1966
1966
  });
1967
1967
  }, s;
@@ -1974,24 +1974,24 @@ var ye = function() {
1974
1974
  }, s.prototype.getPositions = function() {
1975
1975
  return this.getAttribute("positions");
1976
1976
  }, s.prototype.getGeometry = function() {
1977
- if (!(!m.defined(this.positions) || this.positions.length < 3))
1978
- return m.PolygonGeometry.fromPositions({
1977
+ if (!(!p.defined(this.positions) || this.positions.length < 3))
1978
+ return p.PolygonGeometry.fromPositions({
1979
1979
  positions: this.positions,
1980
1980
  height: this.height,
1981
- vertexFormat: m.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
1981
+ vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
1982
1982
  stRotation: this.textureRotationAngle,
1983
1983
  ellipsoid: this.ellipsoid,
1984
1984
  granularity: this.granularity
1985
1985
  });
1986
1986
  }, s.prototype.getOutlineGeometry = function() {
1987
- return m.PolygonOutlineGeometry.fromPositions({
1987
+ return p.PolygonOutlineGeometry.fromPositions({
1988
1988
  positions: this.getPositions()
1989
1989
  });
1990
1990
  }, s;
1991
1991
  }(), i.CirclePrimitive = function() {
1992
1992
  function s(a) {
1993
- if (!(m.defined(a.center) && m.defined(a.radius)))
1994
- throw new m.DeveloperError("Center and radius are required");
1993
+ if (!(p.defined(a.center) && p.defined(a.radius)))
1994
+ throw new p.DeveloperError("Center and radius are required");
1995
1995
  a = R(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
1996
1996
  }
1997
1997
  return s.prototype = new M(), s.prototype.setCenter = function(a) {
@@ -2003,26 +2003,26 @@ var ye = function() {
2003
2003
  }, s.prototype.getRadius = function() {
2004
2004
  return this.getAttribute("radius");
2005
2005
  }, s.prototype.getGeometry = function() {
2006
- if (m.defined(this.center) && m.defined(this.radius))
2007
- return new m.CircleGeometry({
2006
+ if (p.defined(this.center) && p.defined(this.radius))
2007
+ return new p.CircleGeometry({
2008
2008
  center: this.center,
2009
2009
  radius: this.radius,
2010
2010
  height: this.height,
2011
- vertexFormat: m.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2011
+ vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2012
2012
  stRotation: this.textureRotationAngle,
2013
2013
  ellipsoid: this.ellipsoid,
2014
2014
  granularity: this.granularity
2015
2015
  });
2016
2016
  }, s.prototype.getOutlineGeometry = function() {
2017
- return new m.CircleOutlineGeometry({
2017
+ return new p.CircleOutlineGeometry({
2018
2018
  center: this.getCenter(),
2019
2019
  radius: this.getRadius()
2020
2020
  });
2021
2021
  }, s;
2022
2022
  }(), i.EllipsePrimitive = function() {
2023
2023
  function s(a) {
2024
- if (!(m.defined(a.center) && m.defined(a.semiMajorAxis) && m.defined(a.semiMinorAxis)))
2025
- throw new m.DeveloperError("Center and semi major and semi minor axis are required");
2024
+ if (!(p.defined(a.center) && p.defined(a.semiMajorAxis) && p.defined(a.semiMinorAxis)))
2025
+ throw new p.DeveloperError("Center and semi major and semi minor axis are required");
2026
2026
  a = R(a, E), this.initialiseOptions(a);
2027
2027
  }
2028
2028
  return s.prototype = new M(), s.prototype.setCenter = function(a) {
@@ -2042,20 +2042,20 @@ var ye = function() {
2042
2042
  }, s.prototype.getRotation = function() {
2043
2043
  return this.getAttribute("rotation");
2044
2044
  }, s.prototype.getGeometry = function() {
2045
- if (m.defined(this.center) && m.defined(this.semiMajorAxis) && m.defined(this.semiMinorAxis))
2046
- return new m.EllipseGeometry({
2045
+ if (p.defined(this.center) && p.defined(this.semiMajorAxis) && p.defined(this.semiMinorAxis))
2046
+ return new p.EllipseGeometry({
2047
2047
  ellipsoid: this.ellipsoid,
2048
2048
  center: this.center,
2049
2049
  semiMajorAxis: this.semiMajorAxis,
2050
2050
  semiMinorAxis: this.semiMinorAxis,
2051
2051
  rotation: this.rotation,
2052
2052
  height: this.height,
2053
- vertexFormat: m.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2053
+ vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2054
2054
  stRotation: this.textureRotationAngle,
2055
2055
  granularity: this.granularity
2056
2056
  });
2057
2057
  }, s.prototype.getOutlineGeometry = function() {
2058
- return new m.EllipseOutlineGeometry({
2058
+ return new p.EllipseOutlineGeometry({
2059
2059
  center: this.getCenter(),
2060
2060
  semiMajorAxis: this.getSemiMajorAxis(),
2061
2061
  semiMinorAxis: this.getSemiMinorAxis(),
@@ -2064,7 +2064,7 @@ var ye = function() {
2064
2064
  }, s;
2065
2065
  }(), i.PolylinePrimitive = function() {
2066
2066
  function s(a) {
2067
- a = R(a, b), this.initialiseOptions(a);
2067
+ a = R(a, w), this.initialiseOptions(a);
2068
2068
  }
2069
2069
  return s.prototype = new M(), s.prototype.setPositions = function(a) {
2070
2070
  this.setAttribute("positions", a);
@@ -2079,17 +2079,17 @@ var ye = function() {
2079
2079
  }, s.prototype.getGeodesic = function(a) {
2080
2080
  return this.getAttribute("geodesic");
2081
2081
  }, s.prototype.getGeometry = function() {
2082
- if (!(!m.defined(this.positions) || this.positions.length < 2))
2083
- return new m.PolylineGeometry({
2082
+ if (!(!p.defined(this.positions) || this.positions.length < 2))
2083
+ return new p.PolylineGeometry({
2084
2084
  positions: this.positions,
2085
2085
  height: this.height,
2086
2086
  width: this.width < 1 ? 1 : this.width,
2087
- vertexFormat: m.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2087
+ vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
2088
2088
  ellipsoid: this.ellipsoid
2089
2089
  });
2090
2090
  }, s;
2091
2091
  }();
2092
- var _ = {
2092
+ var T = {
2093
2093
  iconUrl: "./assets/img/dragIcon.png",
2094
2094
  shiftX: 0,
2095
2095
  shiftY: 0
@@ -2106,17 +2106,17 @@ var ye = function() {
2106
2106
  var c = new i.BillboardGroup(this, a);
2107
2107
  return c.addBillboards(s, y), c;
2108
2108
  }, i.BillboardGroup = function(s, a) {
2109
- this._drawHelper = s, this._scene = s._scene, this._options = R(a, _);
2110
- var y = new m.BillboardCollection();
2109
+ this._drawHelper = s, this._scene = s._scene, this._options = R(a, T);
2110
+ var y = new p.BillboardCollection();
2111
2111
  this._scene.primitives.add(y), this._billboards = y, this._orderedBillboards = [];
2112
2112
  }, i.BillboardGroup.prototype.createBillboard = function(s, a) {
2113
2113
  var y = this._billboards.add({
2114
2114
  show: !0,
2115
2115
  position: s,
2116
- pixelOffset: new m.Cartesian2(this._options.shiftX, this._options.shiftY),
2117
- eyeOffset: new m.Cartesian3(0, 0, 0),
2118
- horizontalOrigin: m.HorizontalOrigin.CENTER,
2119
- verticalOrigin: m.VerticalOrigin.CENTER,
2116
+ pixelOffset: new p.Cartesian2(this._options.shiftX, this._options.shiftY),
2117
+ eyeOffset: new p.Cartesian3(0, 0, 0),
2118
+ horizontalOrigin: p.HorizontalOrigin.CENTER,
2119
+ verticalOrigin: p.VerticalOrigin.CENTER,
2120
2120
  scale: 1,
2121
2121
  image: this._options.iconUrl,
2122
2122
  color: n
@@ -2139,16 +2139,16 @@ var ye = function() {
2139
2139
  ;
2140
2140
  a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(), L);
2141
2141
  }
2142
- function T(L) {
2143
- w.destroy(), h(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(v(), L);
2142
+ function _(L) {
2143
+ b.destroy(), h(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(v(), L);
2144
2144
  }
2145
- var w = new m.ScreenSpaceEventHandler(c._scene.canvas);
2146
- w.setInputAction(function(L) {
2145
+ var b = new p.ScreenSpaceEventHandler(c._scene.canvas);
2146
+ b.setInputAction(function(L) {
2147
2147
  var P = c._scene.camera.pickEllipsoid(L.endPosition, e);
2148
- P ? S(P) : T(P);
2149
- }, m.ScreenSpaceEventType.MOUSE_MOVE), w.setInputAction(function(L) {
2150
- T(c._scene.camera.pickEllipsoid(L.position, e));
2151
- }, m.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(v(), c._scene.camera.pickEllipsoid(C, e));
2148
+ P ? S(P) : _(P);
2149
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), b.setInputAction(function(L) {
2150
+ _(c._scene.camera.pickEllipsoid(L.position, e));
2151
+ }, p.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(v(), c._scene.camera.pickEllipsoid(C, e));
2152
2152
  });
2153
2153
  }
2154
2154
  a.onDoubleClick && V(y, "leftDoubleClick", function(g) {
@@ -2183,19 +2183,19 @@ var ye = function() {
2183
2183
  }, i.BillboardGroup.prototype.setOnTop = function() {
2184
2184
  this._scene.primitives.raiseToTop(this._billboards);
2185
2185
  }, i.prototype.startDrawingMarker = function(a) {
2186
- var a = R(a, _);
2186
+ var a = R(a, T);
2187
2187
  this.startDrawing(function() {
2188
2188
  h.remove(), v.destroy(), f.setVisible(!1);
2189
2189
  });
2190
2190
  var y = this, c = this._scene;
2191
2191
  c.primitives;
2192
- var f = this._tooltip, h = new i.BillboardGroup(this, a), v = new m.ScreenSpaceEventHandler(c.canvas);
2192
+ var f = this._tooltip, h = new i.BillboardGroup(this, a), v = new p.ScreenSpaceEventHandler(c.canvas);
2193
2193
  v.setInputAction(function(g) {
2194
2194
  if (g.position != null) {
2195
2195
  var C = c.camera.pickEllipsoid(g.position, e);
2196
2196
  C && (h.addBillboard(C), y.stopDrawing(), a.callback(C));
2197
2197
  }
2198
- }, m.ScreenSpaceEventType.LEFT_CLICK), v.setInputAction(function(g) {
2198
+ }, p.ScreenSpaceEventType.LEFT_CLICK), v.setInputAction(function(g) {
2199
2199
  var C = g.endPosition;
2200
2200
  if (C != null) {
2201
2201
  var S = c.camera.pickEllipsoid(C, e);
@@ -2204,27 +2204,27 @@ var ye = function() {
2204
2204
  "<p>Click to add your marker. Position is: </p>" + U(e.cartesianToCartographic(S))
2205
2205
  ) : f.showAt(C, "<p>Click on the globe to add your marker.</p>");
2206
2206
  }
2207
- }, m.ScreenSpaceEventType.MOUSE_MOVE);
2207
+ }, p.ScreenSpaceEventType.MOUSE_MOVE);
2208
2208
  }, i.prototype.startDrawingPolygon = function(a) {
2209
2209
  var a = R(a, r);
2210
2210
  this.startDrawingPolyshape(!0, a);
2211
2211
  }, i.prototype.startDrawingPolyline = function(a) {
2212
- var a = R(a, b);
2212
+ var a = R(a, w);
2213
2213
  this.startDrawingPolyshape(!1, a);
2214
2214
  }, i.prototype.startDrawingPolyshape = function(s, a) {
2215
2215
  this.startDrawing(function() {
2216
- f.remove(g), S.remove(), T.destroy(), h.setVisible(!1), F(c);
2216
+ f.remove(g), S.remove(), _.destroy(), h.setVisible(!1), F(c);
2217
2217
  });
2218
2218
  var y = this, c = this._scene, f = c.primitives, h = this._tooltip, v = s ? 3 : 2, g;
2219
2219
  s ? g = new ye.PolygonPrimitive(a) : g = new ye.PolylinePrimitive(a), g.asynchronous = !1, f.add(g);
2220
- var C = [], S = new i.BillboardGroup(this, _), T = new m.ScreenSpaceEventHandler(c.canvas);
2221
- K(c), T.setInputAction(function(w) {
2222
- if (w.position != null) {
2223
- var L = c.camera.pickEllipsoid(w.position, e);
2220
+ var C = [], S = new i.BillboardGroup(this, T), _ = new p.ScreenSpaceEventHandler(c.canvas);
2221
+ K(c), _.setInputAction(function(b) {
2222
+ if (b.position != null) {
2223
+ var L = c.camera.pickEllipsoid(b.position, e);
2224
2224
  L && (C.length == 0 && (C.push(L.clone()), S.addBillboard(C[0])), C.length >= v && (g.positions = C, g._createPrimitive = !0), C.push(L), S.addBillboard(L));
2225
2225
  }
2226
- }, m.ScreenSpaceEventType.LEFT_CLICK), T.setInputAction(function(w) {
2227
- var L = w.endPosition;
2226
+ }, p.ScreenSpaceEventType.LEFT_CLICK), _.setInputAction(function(b) {
2227
+ var L = b.endPosition;
2228
2228
  if (L != null)
2229
2229
  if (C.length == 0)
2230
2230
  h.showAt(L, "<p>Click to add first point</p>");
@@ -2235,22 +2235,22 @@ var ye = function() {
2235
2235
  "<p>Click to add new point (" + C.length + ")</p>" + (C.length > v ? "<p>Double click to finish drawing</p>" : "")
2236
2236
  ));
2237
2237
  }
2238
- }, m.ScreenSpaceEventType.MOUSE_MOVE), T.setInputAction(function(w) {
2239
- var L = w.position;
2238
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(b) {
2239
+ var L = b.position;
2240
2240
  if (L != null) {
2241
2241
  if (C.length < v + 2)
2242
2242
  return;
2243
2243
  var P = c.camera.pickEllipsoid(L, e);
2244
2244
  P && (F(c), y.stopDrawing(), typeof a.callback == "function" && (C.length - 1, a.callback(C)));
2245
2245
  }
2246
- }, m.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2246
+ }, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2247
2247
  };
2248
2248
  function j(s) {
2249
2249
  return e.cartographicArrayToCartesianArray([
2250
- m.Rectangle.northwest(s),
2251
- m.Rectangle.northeast(s),
2252
- m.Rectangle.southeast(s),
2253
- m.Rectangle.southwest(s)
2250
+ p.Rectangle.northwest(s),
2251
+ p.Rectangle.northeast(s),
2252
+ p.Rectangle.southeast(s),
2253
+ p.Rectangle.southwest(s)
2254
2254
  ]);
2255
2255
  }
2256
2256
  function K(s) {
@@ -2264,29 +2264,29 @@ var ye = function() {
2264
2264
  this.startDrawing(function() {
2265
2265
  g != null && f.remove(g), C != null && C.remove(), S.destroy(), h.setVisible(!1), F(c);
2266
2266
  });
2267
- var y = this, c = this._scene, f = this._scene.primitives, h = this._tooltip, v = null, g = null, C = null, S = new m.ScreenSpaceEventHandler(c.canvas);
2267
+ 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);
2268
2268
  K(c);
2269
- function T(w) {
2269
+ function _(b) {
2270
2270
  g == null && (g = new ye.ExtentPrimitive({
2271
- extent: w,
2271
+ extent: b,
2272
2272
  material: a.material
2273
- }), g.asynchronous = !1, f.add(g)), g.setExtent(w);
2274
- var L = j(w);
2275
- C == null ? (C = new i.BillboardGroup(y, _), C.addBillboards(L)) : C.updateBillboardsPositions(L);
2273
+ }), g.asynchronous = !1, f.add(g)), g.setExtent(b);
2274
+ var L = j(b);
2275
+ C == null ? (C = new i.BillboardGroup(y, T), C.addBillboards(L)) : C.updateBillboardsPositions(L);
2276
2276
  }
2277
- S.setInputAction(function(w) {
2278
- if (w.position != null) {
2279
- var L = c.camera.pickEllipsoid(w.position, e);
2277
+ S.setInputAction(function(b) {
2278
+ if (b.position != null) {
2279
+ var L = c.camera.pickEllipsoid(b.position, e);
2280
2280
  if (L)
2281
2281
  if (g == null) {
2282
2282
  v = e.cartesianToCartographic(L);
2283
2283
  var P = Y(v, v);
2284
- T(P);
2284
+ _(P);
2285
2285
  } else
2286
2286
  y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(L)));
2287
2287
  }
2288
- }, m.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(w) {
2289
- var L = w.endPosition;
2288
+ }, p.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(b) {
2289
+ var L = b.endPosition;
2290
2290
  if (L != null)
2291
2291
  if (g == null)
2292
2292
  h.showAt(L, "<p>Click to start drawing rectangle</p>");
@@ -2294,39 +2294,39 @@ var ye = function() {
2294
2294
  var P = c.camera.pickEllipsoid(L, e);
2295
2295
  if (P) {
2296
2296
  var W = Y(v, e.cartesianToCartographic(P));
2297
- T(W), h.showAt(L, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
2297
+ _(W), h.showAt(L, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
2298
2298
  }
2299
2299
  }
2300
- }, m.ScreenSpaceEventType.MOUSE_MOVE);
2300
+ }, p.ScreenSpaceEventType.MOUSE_MOVE);
2301
2301
  }, i.prototype.startDrawingCircle = function(a) {
2302
2302
  var a = R(a, r);
2303
2303
  this.startDrawing(function() {
2304
2304
  v != null && f.remove(v), g.remove(), C.destroy(), h.setVisible(!1);
2305
2305
  });
2306
- var y = this, c = this._scene, f = this._scene.primitives, h = this._tooltip, v = null, g = null, C = new m.ScreenSpaceEventHandler(c.canvas);
2306
+ var y = this, c = this._scene, f = this._scene.primitives, h = this._tooltip, v = null, g = null, C = new p.ScreenSpaceEventHandler(c.canvas);
2307
2307
  C.setInputAction(function(S) {
2308
2308
  if (S.position != null) {
2309
- var T = c.camera.pickEllipsoid(S.position, e);
2310
- T && (v == null ? (v = new i.CirclePrimitive({
2311
- center: T,
2309
+ var _ = c.camera.pickEllipsoid(S.position, e);
2310
+ _ && (v == null ? (v = new i.CirclePrimitive({
2311
+ center: _,
2312
2312
  radius: 0,
2313
2313
  asynchronous: !1,
2314
2314
  material: a.material
2315
- }), f.add(v), g = new i.BillboardGroup(y, _), g.addBillboards([T])) : (typeof a.callback == "function" && a.callback(v.getCenter(), v.getRadius()), y.stopDrawing()));
2315
+ }), f.add(v), g = new i.BillboardGroup(y, T), g.addBillboards([_])) : (typeof a.callback == "function" && a.callback(v.getCenter(), v.getRadius()), y.stopDrawing()));
2316
2316
  }
2317
- }, m.ScreenSpaceEventType.LEFT_DOWN), C.setInputAction(function(S) {
2318
- var T = S.endPosition;
2319
- if (T != null)
2317
+ }, p.ScreenSpaceEventType.LEFT_DOWN), C.setInputAction(function(S) {
2318
+ var _ = S.endPosition;
2319
+ if (_ != null)
2320
2320
  if (v == null)
2321
- h.showAt(T, "<p>Click to start drawing the circle</p>");
2321
+ h.showAt(_, "<p>Click to start drawing the circle</p>");
2322
2322
  else {
2323
- var w = c.camera.pickEllipsoid(T, e);
2324
- w && (v.setRadius(m.Cartesian3.distance(v.getCenter(), w)), g.updateBillboardsPositions(w), h.showAt(T, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
2323
+ var b = c.camera.pickEllipsoid(_, e);
2324
+ 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>"));
2325
2325
  }
2326
- }, m.ScreenSpaceEventType.MOUSE_MOVE);
2326
+ }, p.ScreenSpaceEventType.MOUSE_MOVE);
2327
2327
  }, i.prototype.enhancePrimitives = function() {
2328
2328
  var s = this;
2329
- m.Billboard.prototype.setEditable = function() {
2329
+ p.Billboard.prototype.setEditable = function() {
2330
2330
  if (this._editable)
2331
2331
  return;
2332
2332
  this._editable = !0;
@@ -2335,23 +2335,23 @@ var ye = function() {
2335
2335
  s._scene.screenSpaceCameraController.enableRotate = v;
2336
2336
  }
2337
2337
  V(c, "leftDown", function(v) {
2338
- function g(T) {
2339
- c.position = T, f.executeListeners({ name: "drag", positions: T });
2338
+ function g(_) {
2339
+ c.position = _, f.executeListeners({ name: "drag", positions: _ });
2340
2340
  }
2341
- function C(T) {
2342
- S.destroy(), h(!0), f.executeListeners({ name: "dragEnd", positions: T });
2341
+ function C(_) {
2342
+ S.destroy(), h(!0), f.executeListeners({ name: "dragEnd", positions: _ });
2343
2343
  }
2344
- var S = new m.ScreenSpaceEventHandler(s._scene.canvas);
2345
- S.setInputAction(function(T) {
2346
- var w = s._scene.camera.pickEllipsoid(T.endPosition, e);
2347
- w ? g(w) : C(w);
2348
- }, m.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(T) {
2349
- C(s._scene.camera.pickEllipsoid(T.position, e));
2350
- }, m.ScreenSpaceEventType.LEFT_UP), h(!1);
2344
+ var S = new p.ScreenSpaceEventHandler(s._scene.canvas);
2345
+ S.setInputAction(function(_) {
2346
+ var b = s._scene.camera.pickEllipsoid(_.endPosition, e);
2347
+ b ? g(b) : C(b);
2348
+ }, p.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(_) {
2349
+ C(s._scene.camera.pickEllipsoid(_.position, e));
2350
+ }, p.ScreenSpaceEventType.LEFT_UP), h(!1);
2351
2351
  }), X(c);
2352
2352
  };
2353
2353
  function a(c) {
2354
- s._scene, !(this._highlighted && this._highlighted == c) && this._editMode !== !0 && (this._highlighted = c, c ? (s.setHighlighted(this), this._strokeColor = this.strokeColor, this.setStrokeStyle(m.Color.fromCssColorString("white"), this.strokeWidth)) : this._strokeColor ? this.setStrokeStyle(this._strokeColor, this.strokeWidth) : this.setStrokeStyle(void 0, void 0));
2354
+ 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));
2355
2355
  }
2356
2356
  function y(c) {
2357
2357
  if (this._editMode != c)
@@ -2370,7 +2370,7 @@ var ye = function() {
2370
2370
  }, q = function(N) {
2371
2371
  var D = h.positions;
2372
2372
  return e.cartographicToCartesian(
2373
- new m.EllipsoidGeodesic(
2373
+ new p.EllipsoidGeodesic(
2374
2374
  e.cartesianToCartographic(D[N]),
2375
2375
  e.cartesianToCartographic(D[N < D.length - 1 ? N + 1 : 0])
2376
2376
  ).interpolateUsingFraction(0.5)
@@ -2394,8 +2394,8 @@ var ye = function() {
2394
2394
  }
2395
2395
  };
2396
2396
  v.addBillboards(h.positions, C), this._markers = v;
2397
- for (var S = [], T = 0, w = h.positions.length + (this.isPolygon ? 0 : -1); T < w; T++)
2398
- S.push(q(T));
2397
+ for (var S = [], _ = 0, b = h.positions.length + (this.isPolygon ? 0 : -1); _ < b; _++)
2398
+ S.push(q(_));
2399
2399
  var L = {
2400
2400
  dragHandlers: {
2401
2401
  onDragStart: function(N, D) {
@@ -2412,10 +2412,10 @@ var ye = function() {
2412
2412
  return "Drag to create a new point";
2413
2413
  }
2414
2414
  };
2415
- g.addBillboards(S, L), this._editMarkers = g, this._globeClickhandler = new m.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(N) {
2415
+ g.addBillboards(S, L), this._editMarkers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(N) {
2416
2416
  var D = f.pick(N.position);
2417
2417
  D && D.primitive || h.setEditMode(!1);
2418
- }, m.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop(), g.setOnTop();
2418
+ }, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop(), g.setOnTop();
2419
2419
  }
2420
2420
  this._editMode = !0;
2421
2421
  } else
@@ -2429,7 +2429,7 @@ var ye = function() {
2429
2429
  c.setHighlighted = function(h) {
2430
2430
  this._editMode !== !0 && (h ? (s.setHighlighted(this), this.setWidth(f * 2)) : this.setWidth(f));
2431
2431
  }, c.getExtent = function() {
2432
- return m.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
2432
+ return p.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
2433
2433
  }, X(c), c.setEditMode(!1);
2434
2434
  }
2435
2435
  }, ye.PolygonPrimitive.prototype.setEditable = function() {
@@ -2450,11 +2450,11 @@ var ye = function() {
2450
2450
  };
2451
2451
  var v = new i.BillboardGroup(s, k), g = {
2452
2452
  dragHandlers: {
2453
- onDrag: function(S, T) {
2454
- var w = v.getBillboard((S + 2) % 4).position;
2455
- c.setExtent(Y(e.cartesianToCartographic(w), e.cartesianToCartographic(T))), v.updateBillboardsPositions(j(c.extent));
2453
+ onDrag: function(S, _) {
2454
+ var b = v.getBillboard((S + 2) % 4).position;
2455
+ c.setExtent(Y(e.cartesianToCartographic(b), e.cartesianToCartographic(_))), v.updateBillboardsPositions(j(c.extent));
2456
2456
  },
2457
- onDragEnd: function(S, T) {
2457
+ onDragEnd: function(S, _) {
2458
2458
  C();
2459
2459
  }
2460
2460
  },
@@ -2462,10 +2462,10 @@ var ye = function() {
2462
2462
  return "Drag to change the corners of this extent";
2463
2463
  }
2464
2464
  };
2465
- v.addBillboards(j(c.extent), g), this._markers = v, this._globeClickhandler = new m.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(S) {
2466
- var T = f.pick(S.position);
2467
- T && !T.isDestroyed() && T.primitive || c.setEditMode(!1);
2468
- }, m.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop();
2465
+ v.addBillboards(j(c.extent), g), this._markers = v, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(S) {
2466
+ var _ = f.pick(S.position);
2467
+ _ && !_.isDestroyed() && _.primitive || c.setEditMode(!1);
2468
+ }, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop();
2469
2469
  }
2470
2470
  this._editMode = !0;
2471
2471
  } else
@@ -2482,7 +2482,7 @@ var ye = function() {
2482
2482
  var v = this;
2483
2483
  if (this._markers == null) {
2484
2484
  let S = function() {
2485
- return m.EllipseOutlineGeometry(
2485
+ return p.EllipseOutlineGeometry(
2486
2486
  e,
2487
2487
  c.getCenter(),
2488
2488
  c.getSemiMajorAxis(),
@@ -2490,7 +2490,7 @@ var ye = function() {
2490
2490
  c.getRotation() + Math.PI / 2,
2491
2491
  Math.PI / 2
2492
2492
  ).splice(0, 4);
2493
- }, T = function() {
2493
+ }, _ = function() {
2494
2494
  c.executeListeners({
2495
2495
  name: "onEdited",
2496
2496
  center: c.getCenter(),
@@ -2501,22 +2501,22 @@ var ye = function() {
2501
2501
  };
2502
2502
  var g = new i.BillboardGroup(s, k), C = {
2503
2503
  dragHandlers: {
2504
- onDrag: function(w, L) {
2505
- var P = m.Cartesian3.distance(c.getCenter(), L);
2506
- w % 2 == 0 ? c.setSemiMajorAxis(P) : c.setSemiMinorAxis(P), g.updateBillboardsPositions(S());
2504
+ onDrag: function(b, L) {
2505
+ var P = p.Cartesian3.distance(c.getCenter(), L);
2506
+ b % 2 == 0 ? c.setSemiMajorAxis(P) : c.setSemiMinorAxis(P), g.updateBillboardsPositions(S());
2507
2507
  },
2508
- onDragEnd: function(w, L) {
2509
- T();
2508
+ onDragEnd: function(b, L) {
2509
+ _();
2510
2510
  }
2511
2511
  },
2512
2512
  tooltip: function() {
2513
2513
  return "Drag to change the excentricity and radius";
2514
2514
  }
2515
2515
  };
2516
- g.addBillboards(S(), C), this._markers = g, this._globeClickhandler = new m.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(w) {
2517
- var L = f.pick(w.position);
2516
+ g.addBillboards(S(), C), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(b) {
2517
+ var L = f.pick(b.position);
2518
2518
  L && L.primitive || v.setEditMode(!1);
2519
- }, m.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
2519
+ }, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
2520
2520
  }
2521
2521
  this._editMode = !0;
2522
2522
  } else
@@ -2524,15 +2524,15 @@ var ye = function() {
2524
2524
  }, c.setHighlighted = a, X(c), c.setEditMode(!1);
2525
2525
  }
2526
2526
  }, i.CirclePrimitive.prototype.getCircleCartesianCoordinates = function(c) {
2527
- for (var f = m.CircleOutlineGeometry.createGeometry(
2528
- new m.CircleOutlineGeometry({
2527
+ for (var f = p.CircleOutlineGeometry.createGeometry(
2528
+ new p.CircleOutlineGeometry({
2529
2529
  ellipsoid: e,
2530
2530
  center: this.getCenter(),
2531
2531
  radius: this.getRadius(),
2532
2532
  granularity: c
2533
2533
  })
2534
2534
  ), h = 0, v, g = []; h < f.attributes.position.values.length; h += 3)
2535
- v = f.attributes.position.values, g.push(new m.Cartesian3(v[h], v[h + 1], v[h + 2]));
2535
+ v = f.attributes.position.values, g.push(new p.Cartesian3(v[h], v[h + 1], v[h + 2]));
2536
2536
  return g;
2537
2537
  }, i.CirclePrimitive.prototype.setEditable = function() {
2538
2538
  if (!this.setEditMode) {
@@ -2544,8 +2544,8 @@ var ye = function() {
2544
2544
  var v = this;
2545
2545
  if (this._markers == null) {
2546
2546
  let S = function() {
2547
- return v.getCircleCartesianCoordinates(m.Math.PI_OVER_TWO);
2548
- }, T = function() {
2547
+ return v.getCircleCartesianCoordinates(p.Math.PI_OVER_TWO);
2548
+ }, _ = function() {
2549
2549
  c.executeListeners({
2550
2550
  name: "onEdited",
2551
2551
  center: c.getCenter(),
@@ -2554,21 +2554,21 @@ var ye = function() {
2554
2554
  };
2555
2555
  var g = new i.BillboardGroup(s, k), C = {
2556
2556
  dragHandlers: {
2557
- onDrag: function(w, L) {
2558
- c.setRadius(m.Cartesian3.distance(c.getCenter(), L)), g.updateBillboardsPositions(S());
2557
+ onDrag: function(b, L) {
2558
+ c.setRadius(p.Cartesian3.distance(c.getCenter(), L)), g.updateBillboardsPositions(S());
2559
2559
  },
2560
- onDragEnd: function(w, L) {
2561
- T();
2560
+ onDragEnd: function(b, L) {
2561
+ _();
2562
2562
  }
2563
2563
  },
2564
2564
  tooltip: function() {
2565
2565
  return "Drag to change the radius";
2566
2566
  }
2567
2567
  };
2568
- g.addBillboards(S(), C), this._markers = g, this._globeClickhandler = new m.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(w) {
2569
- var L = f.pick(w.position);
2568
+ g.addBillboards(S(), C), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(b) {
2569
+ var L = f.pick(b.position);
2570
2570
  L && L.primitive || v.setEditMode(!1);
2571
- }, m.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
2571
+ }, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
2572
2572
  }
2573
2573
  this._editMode = !0;
2574
2574
  } else
@@ -2578,8 +2578,8 @@ var ye = function() {
2578
2578
  };
2579
2579
  }, i.DrawHelperWidget = function() {
2580
2580
  function s(a, y) {
2581
- if (!m.defined(y.container))
2582
- throw new m.DeveloperError("Container is required");
2581
+ if (!p.defined(y.container))
2582
+ throw new p.DeveloperError("Container is required");
2583
2583
  var c = {
2584
2584
  markerIcon: "./assets/img/glyphicons_242_google_maps.png",
2585
2585
  polylineIcon: "./assets/img/glyphicons_097_vector_path_line.png",
@@ -2587,21 +2587,21 @@ var ye = function() {
2587
2587
  circleIcon: "./assets/img/glyphicons_095_vector_path_circle.png",
2588
2588
  extentIcon: "./assets/img/glyphicons_094_vector_path_square.png",
2589
2589
  clearIcon: "./assets/img/glyphicons_067_cleaning.png",
2590
- polylineDrawingOptions: b,
2590
+ polylineDrawingOptions: w,
2591
2591
  polygonDrawingOptions: d,
2592
2592
  extentDrawingOptions: u,
2593
- circleDrawingOptions: p
2593
+ circleDrawingOptions: m
2594
2594
  };
2595
2595
  $(y, c);
2596
2596
  var f = this, h = document.createElement("DIV");
2597
2597
  h.className = "toolbar", y.container.appendChild(h);
2598
- function v(S, T, w, L) {
2598
+ function v(S, _, b, L) {
2599
2599
  var P = document.createElement("DIV");
2600
- P.className = "button", P.title = w, h.appendChild(P), P.onclick = L;
2600
+ P.className = "button", P.title = b, h.appendChild(P), P.onclick = L;
2601
2601
  var W = document.createElement("SPAN");
2602
2602
  P.appendChild(W);
2603
2603
  var q = document.createElement("IMG");
2604
- return q.src = T, W.appendChild(q), P;
2604
+ return q.src = _, W.appendChild(q), P;
2605
2605
  }
2606
2606
  var g = a._scene;
2607
2607
  v("marker", y.markerIcon, "Click to start drawing a 2D marker", function() {
@@ -2639,11 +2639,11 @@ var ye = function() {
2639
2639
  });
2640
2640
  }), v("circle", y.circleIcon, "Click to start drawing a Circle", function() {
2641
2641
  a.startDrawingCircle({
2642
- callback: function(S, T) {
2642
+ callback: function(S, _) {
2643
2643
  f.executeListeners({
2644
2644
  name: "circleCreated",
2645
2645
  center: S,
2646
- radius: T
2646
+ radius: _
2647
2647
  });
2648
2648
  }
2649
2649
  });
@@ -2658,9 +2658,9 @@ var ye = function() {
2658
2658
  return a = R(a, { container: s }), new i.DrawHelperWidget(this, a);
2659
2659
  };
2660
2660
  function Y(s, a) {
2661
- var y = new m.Rectangle();
2661
+ var y = new p.Rectangle();
2662
2662
  y.west = Math.min(s.longitude, a.longitude), y.east = Math.max(s.longitude, a.longitude), y.south = Math.min(s.latitude, a.latitude), y.north = Math.max(s.latitude, a.latitude);
2663
- var c = m.Math.EPSILON7;
2663
+ var c = p.Math.EPSILON7;
2664
2664
  return y.east - y.west < c && (y.east += c * 2), y.north - y.south < c && (y.north += c * 2), y;
2665
2665
  }
2666
2666
  function U(s, a) {
@@ -2706,7 +2706,7 @@ var ye = function() {
2706
2706
  }();
2707
2707
  const Ur = 2, jr = (e, n) => {
2708
2708
  switch (e) {
2709
- case re.BOX: {
2709
+ case oe.BOX: {
2710
2710
  if (n.features.length !== Ur)
2711
2711
  throw new Error(`${e} must have 2 points`);
2712
2712
  const t = mt(n.features, (o) => {
@@ -2760,35 +2760,35 @@ const Ur = 2, jr = (e, n) => {
2760
2760
  class fs extends ui {
2761
2761
  }
2762
2762
  const ys = (e) => {
2763
- const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u = me(), [p, E] = A();
2763
+ const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u = me(), [m, E] = A();
2764
2764
  O(() => {
2765
2765
  E(
2766
2766
  // eslint-disable-next-line
2767
2767
  new ye(u, t, i)
2768
2768
  );
2769
2769
  }, []), O(() => {
2770
- if (p) {
2771
- const M = p;
2770
+ if (m) {
2771
+ const M = m;
2772
2772
  if (n.drawing)
2773
2773
  switch (n.type) {
2774
- case re.POLYGON:
2774
+ case oe.POLYGON:
2775
2775
  u.scene.globe.depthTestAgainstTerrain = !1, M.startDrawingPolygon({
2776
- callback: (_) => {
2776
+ callback: (T) => {
2777
2777
  n.handler({
2778
- primitive: _,
2779
- type: re.POLYGON,
2780
- geojson: Kr(_)
2778
+ primitive: T,
2779
+ type: oe.POLYGON,
2780
+ geojson: Kr(T)
2781
2781
  });
2782
2782
  }
2783
2783
  });
2784
2784
  break;
2785
- case re.BOX:
2785
+ case oe.BOX:
2786
2786
  u.scene.globe.depthTestAgainstTerrain = !1, M.startDrawingExtent({
2787
- callback: (_) => {
2787
+ callback: (T) => {
2788
2788
  n.handler({
2789
- primitive: _,
2790
- type: re.BOX,
2791
- geojson: qr(_)
2789
+ primitive: T,
2790
+ type: oe.BOX,
2791
+ geojson: qr(T)
2792
2792
  });
2793
2793
  }
2794
2794
  });
@@ -2799,33 +2799,37 @@ const ys = (e) => {
2799
2799
  else
2800
2800
  M.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
2801
2801
  }
2802
- }, [n, p]);
2803
- const b = (M) => {
2804
- let _ = M.coordinates !== void 0 ? M.coordinates : jr(M.type, M.geojson);
2805
- if (r !== !0)
2806
- switch (M.type) {
2807
- case re.BOX:
2808
- return /* @__PURE__ */ l(zr, { coordinates: _, material: o ?? t });
2809
- case re.POLYGON:
2810
- return /* @__PURE__ */ l(Vr, { hierarchy: new hi(_), material: o ?? t });
2811
- default:
2812
- return /* @__PURE__ */ l(oe, {});
2813
- }
2814
- else {
2815
- switch (M.type) {
2816
- case re.BOX:
2817
- _ = Yr(_);
2818
- break;
2819
- case re.POLYGON:
2820
- _ = [..._, _[0]];
2821
- break;
2822
- default:
2823
- return /* @__PURE__ */ l(oe, {});
2802
+ }, [n, m]);
2803
+ const w = (M) => {
2804
+ try {
2805
+ let T = M.coordinates !== void 0 ? M.coordinates : jr(M.type, M.geojson);
2806
+ if (r !== !0)
2807
+ switch (M.type) {
2808
+ case oe.BOX:
2809
+ return /* @__PURE__ */ l(zr, { coordinates: T, material: o ?? t });
2810
+ case oe.POLYGON:
2811
+ return /* @__PURE__ */ l(Vr, { hierarchy: new hi(T), material: o ?? t });
2812
+ default:
2813
+ return /* @__PURE__ */ l(ie, {});
2814
+ }
2815
+ else {
2816
+ switch (M.type) {
2817
+ case oe.BOX:
2818
+ T = Yr(T);
2819
+ break;
2820
+ case oe.POLYGON:
2821
+ T = [...T, T[0]];
2822
+ break;
2823
+ default:
2824
+ return /* @__PURE__ */ l(ie, {});
2825
+ }
2826
+ return /* @__PURE__ */ l(Wr, { positions: T, width: d ?? 1, material: o ?? t });
2824
2827
  }
2825
- return /* @__PURE__ */ l(Wr, { positions: _, width: d ?? 1, material: o ?? t });
2828
+ } catch (T) {
2829
+ return console.error(T), /* @__PURE__ */ l(ie, {});
2826
2830
  }
2827
2831
  };
2828
- return /* @__PURE__ */ l($r, { ...e, children: e.drawings.map((M, _) => /* @__PURE__ */ B(Hr, { name: M.name, children: [
2832
+ return /* @__PURE__ */ l($r, { ...e, children: e.drawings.map((M, T) => /* @__PURE__ */ B(Hr, { name: M.name, children: [
2829
2833
  /* @__PURE__ */ B(Gr, { children: [
2830
2834
  /* @__PURE__ */ B("h1", { children: [
2831
2835
  "Drawed Entity ",
@@ -2833,7 +2837,7 @@ const ys = (e) => {
2833
2837
  ] }),
2834
2838
  /* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
2835
2839
  ] }),
2836
- b(M)
2840
+ w(M)
2837
2841
  ] }, M.id)) });
2838
2842
  };
2839
2843
  class vs extends mi {
@@ -2890,29 +2894,29 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
2890
2894
  const { options: f } = e, { caret: h } = r;
2891
2895
  Y(n, h, f);
2892
2896
  }, [e]);
2893
- const p = (f, h, v) => {
2894
- const { trigger: g, matchAny: C, regex: S } = e, T = new RegExp(S);
2895
- let w = g;
2896
- Array.isArray(w) || (w = new Array(g)), w.sort();
2897
+ const m = (f, h, v) => {
2898
+ const { trigger: g, matchAny: C, regex: S } = e, _ = new RegExp(S);
2899
+ let b = g;
2900
+ Array.isArray(b) || (b = new Array(g)), b.sort();
2897
2901
  const L = {};
2898
- Array.isArray(v) && w.forEach((q) => {
2902
+ Array.isArray(v) && b.forEach((q) => {
2899
2903
  L[q] = v;
2900
2904
  });
2901
- const P = E(w, T);
2905
+ const P = E(b, _);
2902
2906
  let W = {};
2903
2907
  for (let q = 0; q < P.length; q++) {
2904
2908
  const { triggerStr: N, triggerMatch: D, triggerLength: I } = P[q];
2905
2909
  for (let z = h - 1; z >= 0; --z) {
2906
- const ie = f.substring(z, h).match(T);
2910
+ const re = f.substring(z, h).match(_);
2907
2911
  let ee = -1;
2908
2912
  if (I > 0) {
2909
2913
  const se = D ? z : z - I + 1;
2910
- if (se < 0 || (b(N, f, se) && (ee = se + I), !ie && ee < 0))
2914
+ if (se < 0 || (w(N, f, se) && (ee = se + I), !re && ee < 0))
2911
2915
  break;
2912
2916
  } else {
2913
- if (ie && z > 0)
2917
+ if (re && z > 0)
2914
2918
  continue;
2915
- if (ee = z === 0 && ie ? 0 : z + 1, h - ee === 0)
2919
+ if (ee = z === 0 && re ? 0 : z + 1, h - ee === 0)
2916
2920
  break;
2917
2921
  }
2918
2922
  if (ee >= 0) {
@@ -2938,22 +2942,22 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
2938
2942
  triggerStr: g,
2939
2943
  triggerMatch: g.match(h),
2940
2944
  triggerLength: g.length
2941
- })), b = (f, h, v) => !f || !f.length || h.substr(v, f.length) === f, M = (f) => {
2942
- const { onChange: h, options: v, spaceRemovers: g, spacer: C, value: S } = e, T = n, w = f.target.value, L = Mi(_(f.target)).end;
2943
- if (w.length || F({
2945
+ })), w = (f, h, v) => !f || !f.length || h.substr(v, f.length) === f, M = (f) => {
2946
+ const { onChange: h, options: v, spaceRemovers: g, spacer: C, value: S } = e, _ = n, b = f.target.value, L = Mi(T(f.target)).end;
2947
+ if (b.length || F({
2944
2948
  ...r,
2945
2949
  helperVisible: !1
2946
- }), t(w), F({
2950
+ }), t(b), F({
2947
2951
  ...r,
2948
2952
  caret: L,
2949
2953
  value: f.target.value
2950
- }), !w.length || !L)
2954
+ }), !b.length || !L)
2951
2955
  return h(f.target.value);
2952
- if (i && g.length && w.length > 2 && C.length) {
2953
- for (let P = 0; P < Math.max(T.length, w.length); ++P)
2954
- if (T[P] !== w[P]) {
2955
- if (P >= 2 && w[P - 1] === C && g.indexOf(w[P - 2]) === -1 && g.indexOf(w[P]) !== -1 && !Je(p(w.substring(0, P - 2), L - 3, v))) {
2956
- const W = `${w.slice(0, P - 1)}${w.slice(P, P + 1)}${w.slice(P - 1, P)}${w.slice(P + 1)}`;
2956
+ if (i && g.length && b.length > 2 && C.length) {
2957
+ for (let P = 0; P < Math.max(_.length, b.length); ++P)
2958
+ if (_[P] !== b[P]) {
2959
+ if (P >= 2 && b[P - 1] === C && g.indexOf(b[P - 2]) === -1 && g.indexOf(b[P]) !== -1 && !Je(m(b.substring(0, P - 2), L - 3, v))) {
2960
+ const W = `${b.slice(0, P - 1)}${b.slice(P, P + 1)}${b.slice(P - 1, P)}${b.slice(P + 1)}`;
2957
2961
  return K(P + 1), u.current !== null && (u.current.value = W), S || F({
2958
2962
  ...r,
2959
2963
  value: W
@@ -2963,8 +2967,8 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
2963
2967
  }
2964
2968
  o(!1);
2965
2969
  }
2966
- return Y(w, L, v), h(f.target.value);
2967
- }, _ = (f) => {
2970
+ return Y(b, L, v), h(f.target.value);
2971
+ }, T = (f) => {
2968
2972
  if (f !== void 0)
2969
2973
  if (f.children.length > 0) {
2970
2974
  const h = f.getElementsByTagName("textarea");
@@ -3013,14 +3017,14 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
3013
3017
  helperVisible: !1
3014
3018
  });
3015
3019
  }, j = (f) => {
3016
- const { spacer: h, onSelect: v, changeOnSelect: g } = e, { matchStart: C, matchLength: S, options: T, trigger: w } = r, L = T[f], P = n, W = P.substring(0, C - w.length), q = P.substring(C + S), N = { target: u.current }, D = g(w, L);
3020
+ const { spacer: h, onSelect: v, changeOnSelect: g } = e, { matchStart: C, matchLength: S, options: _, trigger: b } = r, L = _[f], P = n, W = P.substring(0, C - b.length), q = P.substring(C + S), N = { target: u.current }, D = g(b, L);
3017
3021
  N.target !== null && (N.target.value = `${W}${D}${h}${q}`), M(N), N.target !== null && v(N.target.value), U(), K(W.length + D.length + 1), o(!0);
3018
3022
  }, K = (f) => {
3019
3023
  F({
3020
3024
  ...r,
3021
3025
  caret: f
3022
3026
  });
3023
- const h = _(u.current);
3027
+ const h = T(u.current);
3024
3028
  Pi(h, f);
3025
3029
  }, F = (f) => {
3026
3030
  setTimeout(() => {
@@ -3032,14 +3036,14 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
3032
3036
  const g = u.current;
3033
3037
  if (u.current === null)
3034
3038
  return;
3035
- const C = _(g);
3039
+ const C = T(g);
3036
3040
  if (C === void 0)
3037
3041
  return;
3038
- const S = g.getBoundingClientRect(), T = p(f, h, v);
3039
- if (Object.keys(T).length > 0 && C !== null) {
3040
- const w = Li(C, h), L = C.getBoundingClientRect(), { minChars: P, onRequestOptions: W, requestOnlyIfNoOptions: q, mode: N } = e;
3042
+ const S = g.getBoundingClientRect(), _ = m(f, h, v);
3043
+ if (Object.keys(_).length > 0 && C !== null) {
3044
+ const b = Li(C, h), L = C.getBoundingClientRect(), { minChars: P, onRequestOptions: W, requestOnlyIfNoOptions: q, mode: N } = e;
3041
3045
  let D, I, z, de = "unset";
3042
- N === "assist" ? (D = g === C ? w.top + C.offsetTop : w.top + S.top, I = Math.min(w.left + C.offsetLeft - no, C.offsetLeft + L.width - io)) : (D = S.top + g.offsetHeight, I = g.offsetLeft, z = g.offsetLeft - g.offsetWidth, de = `${S.width}px`), T.matchLength >= P && (T.options.length > 1 || T.options.length === 1 && T.options[0].length !== T.matchLength) ? F({
3046
+ N === "assist" ? (D = g === C ? b.top + C.offsetTop : b.top + S.top, I = Math.min(b.left + C.offsetLeft - no, C.offsetLeft + L.width - io)) : (D = S.top + g.offsetHeight, I = g.offsetLeft, z = g.offsetLeft - g.offsetWidth, de = `${S.width}px`), _.matchLength >= P && (_.options.length > 1 || _.options.length === 1 && _.options[0].length !== _.matchLength) ? F({
3043
3047
  ...r,
3044
3048
  value: f,
3045
3049
  helperVisible: !0,
@@ -3047,8 +3051,8 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
3047
3051
  left: I,
3048
3052
  right: z,
3049
3053
  width: de,
3050
- ...T
3051
- }) : ((!q || !T.options.length) && W(f.substr(T.matchStart, T.matchLength)), U());
3054
+ ..._
3055
+ }) : ((!q || !_.options.length) && W(f.substr(_.matchStart, _.matchLength)), U());
3052
3056
  } else
3053
3057
  U();
3054
3058
  }, U = () => {
@@ -3060,23 +3064,23 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
3060
3064
  });
3061
3065
  }, 100);
3062
3066
  }, x = () => {
3063
- const { helperVisible: f, left: h, right: v, matchStart: g, matchLength: C, options: S, selection: T, top: w, value: L, width: P } = r;
3067
+ const { helperVisible: f, left: h, right: v, matchStart: g, matchLength: C, options: S, selection: _, top: b, value: L, width: P } = r;
3064
3068
  if (!f)
3065
3069
  return null;
3066
3070
  const { maxOptions: W, offsetX: q, offsetY: N, direction: D } = e;
3067
3071
  if (S.length === 0)
3068
3072
  return null;
3069
- if (T >= S.length)
3073
+ if (_ >= S.length)
3070
3074
  return F({
3071
3075
  ...r,
3072
3076
  selection: 0
3073
3077
  }), null;
3074
- const I = W === 0 ? S.length : W, z = S.slice(0, I).map((ie, ee) => {
3075
- const se = ie.toLowerCase().indexOf(L.substr(g, C).toLowerCase());
3078
+ const I = W === 0 ? S.length : W, z = S.slice(0, I).map((re, ee) => {
3079
+ const se = re.toLowerCase().indexOf(L.substr(g, C).toLowerCase());
3076
3080
  return /* @__PURE__ */ B(
3077
3081
  "li",
3078
3082
  {
3079
- className: ee === T ? "active" : void 0,
3083
+ className: ee === _ ? "active" : void 0,
3080
3084
  onClick: () => {
3081
3085
  j(ee);
3082
3086
  },
@@ -3087,19 +3091,19 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
3087
3091
  });
3088
3092
  },
3089
3093
  children: [
3090
- ie.slice(0, se),
3091
- /* @__PURE__ */ l("strong", { children: ie.substr(se, C) }),
3092
- ie.slice(se + C)
3094
+ re.slice(0, se),
3095
+ /* @__PURE__ */ l("strong", { children: re.substr(se, C) }),
3096
+ re.slice(se + C)
3093
3097
  ]
3094
3098
  },
3095
- ie
3099
+ re
3096
3100
  );
3097
3101
  }), de = D === "ltr" ? { left: h + q } : { right: v + q };
3098
- return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...de, top: w + N, width: P }, children: z });
3102
+ return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...de, top: b + N, width: P }, children: z });
3099
3103
  }, { Component: $, ComponentProps: R, defaultValue: V, disabled: X, onBlur: s, value: a, ...y } = e, c = Object.assign({}, y);
3100
3104
  return Object.keys(e).forEach((f) => {
3101
3105
  delete c[f];
3102
- }), /* @__PURE__ */ B(oe, { children: [
3106
+ }), /* @__PURE__ */ B(ie, { children: [
3103
3107
  fe.cloneElement($, {
3104
3108
  disabled: X,
3105
3109
  onBlur: s,
@@ -3276,9 +3280,9 @@ const Ns = fe.memo(
3276
3280
  files: r,
3277
3281
  folderChain: d,
3278
3282
  onFileAction: u,
3279
- ...p
3283
+ ...m
3280
3284
  }, E) => {
3281
- const b = pe(
3285
+ const w = pe(
3282
3286
  (V) => null,
3283
3287
  // file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
3284
3288
  []
@@ -3293,7 +3297,7 @@ const Ns = fe.memo(
3293
3297
  }
3294
3298
  }
3295
3299
  })();
3296
- const M = (V) => V.replace(/([A-Z])/g, (X) => "-" + X.toLowerCase()), _ = Fe(() => e !== void 0 ? Object.keys(e).reduce((X, s) => {
3300
+ const M = (V) => V.replace(/([A-Z])/g, (X) => "-" + X.toLowerCase()), T = Fe(() => e !== void 0 ? Object.keys(e).reduce((X, s) => {
3297
3301
  const a = e[s];
3298
3302
  return s = s.startsWith("--") ? s : `--fp-theme-${M(s)}`, X[s] = a, X;
3299
3303
  }, {}) : {}, [e]), [k, H] = A(!1), [j, K] = A(), [F, Y] = A(!1), [U, x] = A(), [$, R] = A();
@@ -3304,7 +3308,7 @@ const Ns = fe.memo(
3304
3308
  {
3305
3309
  style: {
3306
3310
  ...n,
3307
- ..._
3311
+ ...T
3308
3312
  },
3309
3313
  children: /* @__PURE__ */ l(
3310
3314
  Ii,
@@ -3315,13 +3319,13 @@ const Ns = fe.memo(
3315
3319
  onFileAction: (V) => {
3316
3320
  typeof u == "function" && u(V);
3317
3321
  },
3318
- thumbnailGenerator: b,
3322
+ thumbnailGenerator: w,
3319
3323
  defaultFileViewActionId: j,
3320
3324
  disableDragAndDrop: F,
3321
3325
  fileActions: U,
3322
3326
  darkMode: k,
3323
3327
  i18n: $,
3324
- ...p
3328
+ ...m
3325
3329
  }
3326
3330
  )
3327
3331
  }
@@ -3374,7 +3378,7 @@ export {
3374
3378
  ns as DateTimePicker,
3375
3379
  Bi as DateTimeRangePicker,
3376
3380
  Qo as DateTimeRangePickerFormControl,
3377
- re as DrawType,
3381
+ oe as DrawType,
3378
3382
  Os as FileHelper,
3379
3383
  Ns as FilePicker,
3380
3384
  Rs as FilePickerActions,