@carto/ps-react-ui 4.2.5 → 4.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,142 +1,142 @@
1
- import { jsx as l, jsxs as L, Fragment as N } from "react/jsx-runtime";
2
- import { c as P } from "react/compiler-runtime";
3
- import { ArrowDropDown as Pe, MoreVertOutlined as ze, Close as Be, MyLocationOutlined as Ne, LocationDisabledOutlined as Fe, CropFreeOutlined as He, AddOutlined as Xe, RemoveOutlined as qe } from "@mui/icons-material";
4
- import { Tooltip as Ke, Chip as Ye, Paper as ye, IconButton as se, Menu as $e, Box as X, Divider as ae, MenuItem as ge, ListItemIcon as je, SvgIcon as _e, ListItemText as be, ToggleButton as ve, Typography as Y, ToggleButtonGroup as Ze, Button as we, alpha as Qe, Dialog as Je, DialogTitle as et, DialogContent as tt, FormControl as ot, RadioGroup as lt, FormControlLabel as nt, Radio as it, DialogActions as rt, CircularProgress as st, Grid as me, Skeleton as Se, Alert as at, ListItem as ct, List as dt, Drawer as ut, Popover as ht, useTheme as ft, useMediaQuery as pt } from "@mui/material";
5
- import { useState as ne, useMemo as Ce, useRef as Oe, useEffect as De, useLayoutEffect as mt } from "react";
6
- function gt(t) {
1
+ import { jsx as n, jsxs as E, Fragment as H } from "react/jsx-runtime";
2
+ import { c as Z } from "react/compiler-runtime";
3
+ import { ArrowDropDown as $e, MoreVertOutlined as Xe, Close as Be, MyLocationOutlined as qe, LocationDisabledOutlined as Ke, CropFreeOutlined as Ye, AddOutlined as Qe, RemoveOutlined as Je } from "@mui/icons-material";
4
+ import { Tooltip as et, Chip as tt, Paper as we, IconButton as re, Menu as je, Box as K, Divider as ae, MenuItem as ve, ListItemIcon as Ze, SvgIcon as De, ListItemText as ye, ToggleButton as xe, Typography as Q, ToggleButtonGroup as Ve, Button as Te, alpha as lt, DialogTitle as ot, FormControlLabel as nt, Radio as it, RadioGroup as st, FormControl as rt, DialogContent as at, DialogActions as ct, Dialog as dt, CircularProgress as ut, Grid as be, Skeleton as Ae, Alert as ft, ListItem as ht, List as pt, Drawer as mt, Popover as gt, useTheme as bt, useMediaQuery as vt } from "@mui/material";
5
+ import { useState as oe, useMemo as Ue, useRef as Ie, useEffect as We, useLayoutEffect as yt } from "react";
6
+ function xt(t) {
7
7
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
8
8
  }
9
- var Te, Ie;
10
- function bt() {
11
- if (Ie) return Te;
12
- Ie = 1;
9
+ var _e, Le;
10
+ function wt() {
11
+ if (Le) return _e;
12
+ Le = 1;
13
13
  var t = function(m) {
14
- return e(m) && !n(m);
14
+ return e(m) && !o(m);
15
15
  };
16
- function e(d) {
17
- return !!d && typeof d == "object";
16
+ function e(u) {
17
+ return !!u && typeof u == "object";
18
18
  }
19
- function n(d) {
20
- var m = Object.prototype.toString.call(d);
21
- return m === "[object RegExp]" || m === "[object Date]" || a(d);
19
+ function o(u) {
20
+ var m = Object.prototype.toString.call(u);
21
+ return m === "[object RegExp]" || m === "[object Date]" || r(u);
22
22
  }
23
- var o = typeof Symbol == "function" && Symbol.for, i = o ? Symbol.for("react.element") : 60103;
24
- function a(d) {
25
- return d.$$typeof === i;
23
+ var l = typeof Symbol == "function" && Symbol.for, i = l ? Symbol.for("react.element") : 60103;
24
+ function r(u) {
25
+ return u.$$typeof === i;
26
26
  }
27
- function r(d) {
28
- return Array.isArray(d) ? [] : {};
27
+ function s(u) {
28
+ return Array.isArray(u) ? [] : {};
29
29
  }
30
- function s(d, m) {
31
- return m.clone !== !1 && m.isMergeableObject(d) ? v(r(d), d, m) : d;
30
+ function a(u, m) {
31
+ return m.clone !== !1 && m.isMergeableObject(u) ? w(s(u), u, m) : u;
32
32
  }
33
- function c(d, m, g) {
34
- return d.concat(m).map(function(C) {
35
- return s(C, g);
33
+ function c(u, m, g) {
34
+ return u.concat(m).map(function(M) {
35
+ return a(M, g);
36
36
  });
37
37
  }
38
- function u(d, m) {
38
+ function d(u, m) {
39
39
  if (!m.customMerge)
40
- return v;
41
- var g = m.customMerge(d);
42
- return typeof g == "function" ? g : v;
40
+ return w;
41
+ var g = m.customMerge(u);
42
+ return typeof g == "function" ? g : w;
43
43
  }
44
- function h(d) {
45
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(m) {
46
- return Object.propertyIsEnumerable.call(d, m);
44
+ function f(u) {
45
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(m) {
46
+ return Object.propertyIsEnumerable.call(u, m);
47
47
  }) : [];
48
48
  }
49
- function p(d) {
50
- return Object.keys(d).concat(h(d));
49
+ function h(u) {
50
+ return Object.keys(u).concat(f(u));
51
51
  }
52
- function f(d, m) {
52
+ function p(u, m) {
53
53
  try {
54
- return m in d;
54
+ return m in u;
55
55
  } catch {
56
56
  return !1;
57
57
  }
58
58
  }
59
- function b(d, m) {
60
- return f(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
59
+ function y(u, m) {
60
+ return p(u, m) && !(Object.hasOwnProperty.call(u, m) && Object.propertyIsEnumerable.call(u, m));
61
61
  }
62
- function y(d, m, g) {
63
- var C = {};
64
- return g.isMergeableObject(d) && p(d).forEach(function(w) {
65
- C[w] = s(d[w], g);
66
- }), p(m).forEach(function(w) {
67
- b(d, w) || (f(d, w) && g.isMergeableObject(m[w]) ? C[w] = u(w, g)(d[w], m[w], g) : C[w] = s(m[w], g));
68
- }), C;
62
+ function x(u, m, g) {
63
+ var M = {};
64
+ return g.isMergeableObject(u) && h(u).forEach(function(v) {
65
+ M[v] = a(u[v], g);
66
+ }), h(m).forEach(function(v) {
67
+ y(u, v) || (p(u, v) && g.isMergeableObject(m[v]) ? M[v] = d(v, g)(u[v], m[v], g) : M[v] = a(m[v], g));
68
+ }), M;
69
69
  }
70
- function v(d, m, g) {
71
- g = g || {}, g.arrayMerge = g.arrayMerge || c, g.isMergeableObject = g.isMergeableObject || t, g.cloneUnlessOtherwiseSpecified = s;
72
- var C = Array.isArray(m), w = Array.isArray(d), O = C === w;
73
- return O ? C ? g.arrayMerge(d, m, g) : y(d, m, g) : s(m, g);
70
+ function w(u, m, g) {
71
+ g = g || {}, g.arrayMerge = g.arrayMerge || c, g.isMergeableObject = g.isMergeableObject || t, g.cloneUnlessOtherwiseSpecified = a;
72
+ var M = Array.isArray(m), v = Array.isArray(u), I = M === v;
73
+ return I ? M ? g.arrayMerge(u, m, g) : x(u, m, g) : a(m, g);
74
74
  }
75
- v.all = function(m, g) {
75
+ w.all = function(m, g) {
76
76
  if (!Array.isArray(m))
77
77
  throw new Error("first argument should be an array");
78
- return m.reduce(function(C, w) {
79
- return v(C, w, g);
78
+ return m.reduce(function(M, v) {
79
+ return w(M, v, g);
80
80
  }, {});
81
81
  };
82
- var x = v;
83
- return Te = x, Te;
82
+ var b = w;
83
+ return _e = b, _e;
84
84
  }
85
- var vt = bt();
86
- const xe = /* @__PURE__ */ gt(vt);
87
- let Ve = 500;
88
- function de(t) {
89
- const e = P(10);
90
- let n, o, i, a;
85
+ var Ct = wt();
86
+ const Ce = /* @__PURE__ */ xt(Ct);
87
+ let Ge = 500;
88
+ function fe(t) {
89
+ const e = Z(10);
90
+ let o, l, i, r;
91
91
  e[0] !== t ? ({
92
- children: n,
93
- title: a,
92
+ children: o,
93
+ title: r,
94
94
  enterNextDelay: i,
95
- ...o
96
- } = t, e[0] = t, e[1] = n, e[2] = o, e[3] = i, e[4] = a) : (n = e[1], o = e[2], i = e[3], a = e[4]);
97
- const r = i === void 0 ? Ve : i;
98
- let s;
99
- return e[5] !== n || e[6] !== r || e[7] !== o || e[8] !== a ? (s = /* @__PURE__ */ l(Ke, { title: a, enterNextDelay: r, ...o, children: n }), e[5] = n, e[6] = r, e[7] = o, e[8] = a, e[9] = s) : s = e[9], s;
95
+ ...l
96
+ } = t, e[0] = t, e[1] = o, e[2] = l, e[3] = i, e[4] = r) : (o = e[1], l = e[2], i = e[3], r = e[4]);
97
+ const s = i === void 0 ? Ge : i;
98
+ let a;
99
+ return e[5] !== o || e[6] !== s || e[7] !== l || e[8] !== r ? (a = /* @__PURE__ */ n(et, { title: r, enterNextDelay: s, ...l, children: o }), e[5] = o, e[6] = s, e[7] = l, e[8] = r, e[9] = a) : a = e[9], a;
100
100
  }
101
- function uo(t) {
102
- Ve = t;
101
+ function pl(t) {
102
+ Ge = t;
103
103
  }
104
- function yt(t) {
105
- const e = P(3);
106
- let n;
107
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.996 2.996 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342Zm-2.463-5.707 3.998 4a3.013 3.013 0 0 0-1.414 1.414l-4-3.999a3.014 3.014 0 0 0 1.31-1.214l.106-.201ZM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.993 2.993 0 0 0-2.002 0V6.83ZM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942ZM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm9.171.998a2.994 2.994 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342Z", fill: "currentColor" }), e[0] = n) : n = e[0];
104
+ function Mt(t) {
105
+ const e = Z(3);
108
106
  let o;
109
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
107
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.996 2.996 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342Zm-2.463-5.707 3.998 4a3.013 3.013 0 0 0-1.414 1.414l-4-3.999a3.014 3.014 0 0 0 1.31-1.214l.106-.201ZM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.993 2.993 0 0 0-2.002 0V6.83ZM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942ZM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm9.171.998a2.994 2.994 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342Z", fill: "currentColor" }), e[0] = o) : o = e[0];
108
+ let l;
109
+ return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
110
110
  }
111
- function xt(t) {
112
- const e = P(3);
113
- let n;
114
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.993 2.993 0 0 0-.17.974l-.001.052.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2h10.342ZM2.998 6.828a2.995 2.995 0 0 0 2.002 0V17.17a2.993 2.993 0 0 0-2.002 0V6.83Zm16.001 0a2.995 2.995 0 0 0 2 0V17.17a2.993 2.993 0 0 0-2 0V6.829ZM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm13.171.998a2.991 2.991 0 0 0-.17.976L17 4.026l.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2H17.17Z", fill: "currentColor" }), e[0] = n) : n = e[0];
111
+ function St(t) {
112
+ const e = Z(3);
115
113
  let o;
116
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
114
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.993 2.993 0 0 0-.17.974l-.001.052.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2h10.342ZM2.998 6.828a2.995 2.995 0 0 0 2.002 0V17.17a2.993 2.993 0 0 0-2.002 0V6.83Zm16.001 0a2.995 2.995 0 0 0 2 0V17.17a2.993 2.993 0 0 0-2 0V6.829ZM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm13.171.998a2.991 2.991 0 0 0-.17.976L17 4.026l.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2H17.17Z", fill: "currentColor" }), e[0] = o) : o = e[0];
115
+ let l;
116
+ return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
117
117
  }
118
- function wt(t) {
119
- const e = P(3);
120
- let n;
121
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = n) : n = e[0];
118
+ function Tt(t) {
119
+ const e = Z(3);
122
120
  let o;
123
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
121
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = o) : o = e[0];
122
+ let l;
123
+ return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
124
124
  }
125
- function Ct(t) {
126
- const e = P(3);
127
- let n;
128
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.668c-.012.438-.033.86-.062 1.266l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.988-1.122l-.472-.375c-.401-.319-.64-.473-.888-.566a4.938 4.938 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.112 9.112 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.098.237.05.433.103c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.133-7-7-7a1 1 0 1 1 0-2ZM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = n) : n = e[0];
125
+ function At(t) {
126
+ const e = Z(3);
129
127
  let o;
130
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
128
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.668c-.012.438-.033.86-.062 1.266l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.988-1.122l-.472-.375c-.401-.319-.64-.473-.888-.566a4.938 4.938 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.112 9.112 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.098.237.05.433.103c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.133-7-7-7a1 1 0 1 1 0-2ZM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = o) : o = e[0];
129
+ let l;
130
+ return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
131
131
  }
132
- function Mt(t) {
133
- const e = P(3);
134
- let n;
135
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.786-2.87a1 1 0 0 0-.121-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14ZM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903Z", fill: "currentColor" }), e[0] = n) : n = e[0];
132
+ function _t(t) {
133
+ const e = Z(3);
136
134
  let o;
137
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
135
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.786-2.87a1 1 0 0 0-.121-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14ZM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903Z", fill: "currentColor" }), e[0] = o) : o = e[0];
136
+ let l;
137
+ return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
138
138
  }
139
- const K = {
139
+ const Y = {
140
140
  action: {
141
141
  tooltip: {
142
142
  active: "Click on the map to draw your spatial filter",
@@ -172,23 +172,23 @@ const K = {
172
172
  },
173
173
  deleteAll: "Remove all"
174
174
  }
175
- }, ho = {
175
+ }, ml = {
176
176
  polygon: {
177
- icon: yt
177
+ icon: Mt
178
178
  },
179
179
  rectangle: {
180
- icon: xt
180
+ icon: St
181
181
  },
182
182
  circle: {
183
- icon: wt
183
+ icon: Tt
184
184
  },
185
185
  lasso: {
186
- icon: Ct
186
+ icon: At
187
187
  },
188
188
  edit: {
189
- icon: Mt
189
+ icon: _t
190
190
  }
191
- }, J = {
191
+ }, te = {
192
192
  container: {
193
193
  display: "flex",
194
194
  flexDirection: "row",
@@ -352,195 +352,195 @@ const K = {
352
352
  }
353
353
  }
354
354
  };
355
- function Ue(t) {
356
- const e = P(18), {
357
- chipProps: n,
358
- value: o,
355
+ function ze(t) {
356
+ const e = Z(18), {
357
+ chipProps: o,
358
+ value: l,
359
359
  labels: i,
360
- onChipToggle: a,
361
- onDelete: r
362
- } = t, s = o.visible ? "active" : "inactive", c = i?.tooltip?.[s] ?? K.chip.tooltip[s], u = n?.TooltipProps;
363
- let h;
364
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = {
365
- ...J.chip.chip
366
- }, e[0] = h) : h = e[0];
367
- const p = o.visible ? "secondary" : "default";
360
+ onChipToggle: r,
361
+ onDelete: s
362
+ } = t, a = l.visible ? "active" : "inactive", c = i?.tooltip?.[a] ?? Y.chip.tooltip[a], d = o?.TooltipProps;
368
363
  let f;
369
- e[1] !== r || e[2] !== o.id ? (f = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = f) : f = e[3];
364
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (f = {
365
+ ...te.chip.chip
366
+ }, e[0] = f) : f = e[0];
367
+ const h = l.visible ? "secondary" : "default";
368
+ let p;
369
+ e[1] !== s || e[2] !== l.id ? (p = () => s(l.id), e[1] = s, e[2] = l.id, e[3] = p) : p = e[3];
370
+ let y;
371
+ e[4] !== r || e[5] !== l.id || e[6] !== l.visible ? (y = () => r(l.id, !l.visible), e[4] = r, e[5] = l.id, e[6] = l.visible, e[7] = y) : y = e[7];
372
+ const x = o?.ChipsProps;
373
+ let w;
374
+ e[8] !== h || e[9] !== p || e[10] !== y || e[11] !== x || e[12] !== l.label ? (w = /* @__PURE__ */ n(tt, { sx: f, color: h, size: "small", onDelete: p, label: l.label, onClick: y, ...x }), e[8] = h, e[9] = p, e[10] = y, e[11] = x, e[12] = l.label, e[13] = w) : w = e[13];
370
375
  let b;
371
- e[4] !== a || e[5] !== o.id || e[6] !== o.visible ? (b = () => a(o.id, !o.visible), e[4] = a, e[5] = o.id, e[6] = o.visible, e[7] = b) : b = e[7];
372
- const y = n?.ChipsProps;
373
- let v;
374
- e[8] !== p || e[9] !== f || e[10] !== b || e[11] !== y || e[12] !== o.label ? (v = /* @__PURE__ */ l(Ye, { sx: h, color: p, size: "small", onDelete: f, label: o.label, onClick: b, ...y }), e[8] = p, e[9] = f, e[10] = b, e[11] = y, e[12] = o.label, e[13] = v) : v = e[13];
375
- let x;
376
- return e[14] !== c || e[15] !== u || e[16] !== v ? (x = /* @__PURE__ */ l(de, { title: c, placement: "bottom", ...u, children: v }), e[14] = c, e[15] = u, e[16] = v, e[17] = x) : x = e[17], x;
376
+ return e[14] !== c || e[15] !== d || e[16] !== w ? (b = /* @__PURE__ */ n(fe, { title: c, placement: "bottom", ...d, children: w }), e[14] = c, e[15] = d, e[16] = w, e[17] = b) : b = e[17], b;
377
377
  }
378
- function ce(t) {
379
- const e = P(44), {
380
- enabled: n,
381
- values: o,
378
+ function ue(t) {
379
+ const e = Z(44), {
380
+ enabled: o,
381
+ values: l,
382
382
  actionProps: i,
383
- chipProps: a,
384
- labels: r,
385
- modes: s,
383
+ chipProps: r,
384
+ labels: s,
385
+ modes: a,
386
386
  modesMapping: c,
387
- modeSelected: u,
388
- PaperProps: h,
389
- onActionToggle: p,
390
- onChipToggle: f,
391
- onDelete: b,
392
- onChangeMode: y,
393
- onAllChipToggle: v,
394
- onAllDelete: x,
395
- ChipsSlot: d,
387
+ modeSelected: d,
388
+ PaperProps: f,
389
+ onActionToggle: h,
390
+ onChipToggle: p,
391
+ onDelete: y,
392
+ onChangeMode: x,
393
+ onAllChipToggle: w,
394
+ onAllDelete: b,
395
+ ChipsSlot: u,
396
396
  ActionSlot: m,
397
397
  SecondaryActionsSlot: g,
398
- OptionsSlot: C
398
+ OptionsSlot: M
399
399
  } = t;
400
- let w;
401
- e[0] !== o ? (w = o === void 0 ? [] : o, e[0] = o, e[1] = w) : w = e[1];
402
- const O = w;
403
- let T;
404
- e[2] !== h ? (T = h === void 0 ? {} : h, e[2] = h, e[3] = T) : T = e[3];
405
- let D, A;
406
- e[4] !== T ? ({
407
- sx: A,
408
- ...D
409
- } = T, e[4] = T, e[5] = D, e[6] = A) : (D = e[5], A = e[6]);
410
- const _ = d === void 0 ? ce.Chips : d, I = m === void 0 ? ce.Action : m, S = g === void 0 ? ce.SecondaryActions : g, M = C === void 0 ? ce.Options : C;
411
- let R;
412
- e[7] !== D || e[8] !== i || e[9] !== a || e[10] !== n || e[11] !== r || e[12] !== u || e[13] !== s || e[14] !== c || e[15] !== p || e[16] !== v || e[17] !== x || e[18] !== y || e[19] !== f || e[20] !== b || e[21] !== O ? (R = {
413
- enabled: n,
414
- values: O,
400
+ let v;
401
+ e[0] !== l ? (v = l === void 0 ? [] : l, e[0] = l, e[1] = v) : v = e[1];
402
+ const I = v;
403
+ let A;
404
+ e[2] !== f ? (A = f === void 0 ? {} : f, e[2] = f, e[3] = A) : A = e[3];
405
+ let C, _;
406
+ e[4] !== A ? ({
407
+ sx: _,
408
+ ...C
409
+ } = A, e[4] = A, e[5] = C, e[6] = _) : (C = e[5], _ = e[6]);
410
+ const T = u === void 0 ? ue.Chips : u, S = m === void 0 ? ue.Action : m, D = g === void 0 ? ue.SecondaryActions : g, O = M === void 0 ? ue.Options : M;
411
+ let V;
412
+ e[7] !== C || e[8] !== i || e[9] !== r || e[10] !== o || e[11] !== s || e[12] !== d || e[13] !== a || e[14] !== c || e[15] !== h || e[16] !== w || e[17] !== b || e[18] !== x || e[19] !== p || e[20] !== y || e[21] !== I ? (V = {
413
+ enabled: o,
414
+ values: I,
415
415
  actionProps: i,
416
- chipProps: a,
417
- labels: r,
418
- modes: s,
416
+ chipProps: r,
417
+ labels: s,
418
+ modes: a,
419
419
  modesMapping: c,
420
- modeSelected: u,
421
- PaperProps: D,
422
- onActionToggle: p,
423
- onChipToggle: f,
424
- onDelete: b,
425
- onChangeMode: y,
426
- onAllChipToggle: v,
427
- onAllDelete: x
428
- }, e[7] = D, e[8] = i, e[9] = a, e[10] = n, e[11] = r, e[12] = u, e[13] = s, e[14] = c, e[15] = p, e[16] = v, e[17] = x, e[18] = y, e[19] = f, e[20] = b, e[21] = O, e[22] = R) : R = e[22];
429
- const k = R;
430
- let E;
431
- e[23] !== A ? (E = {
432
- ...J.container,
433
- ...A
434
- }, e[23] = A, e[24] = E) : E = e[24];
420
+ modeSelected: d,
421
+ PaperProps: C,
422
+ onActionToggle: h,
423
+ onChipToggle: p,
424
+ onDelete: y,
425
+ onChangeMode: x,
426
+ onAllChipToggle: w,
427
+ onAllDelete: b
428
+ }, e[7] = C, e[8] = i, e[9] = r, e[10] = o, e[11] = s, e[12] = d, e[13] = a, e[14] = c, e[15] = h, e[16] = w, e[17] = b, e[18] = x, e[19] = p, e[20] = y, e[21] = I, e[22] = V) : V = e[22];
429
+ const L = V;
430
+ let P;
431
+ e[23] !== _ ? (P = {
432
+ ...te.container,
433
+ ..._
434
+ }, e[23] = _, e[24] = P) : P = e[24];
435
+ let R;
436
+ e[25] !== S || e[26] !== L ? (R = !!S && /* @__PURE__ */ n(S, { ...L }), e[25] = S, e[26] = L, e[27] = R) : R = e[27];
435
437
  let j;
436
- e[25] !== I || e[26] !== k ? (j = !!I && /* @__PURE__ */ l(I, { ...k }), e[25] = I, e[26] = k, e[27] = j) : j = e[27];
438
+ e[28] !== O || e[29] !== L ? (j = !!O && /* @__PURE__ */ n(Ne, { children: (W) => /* @__PURE__ */ n(O, { ...L, ...W }) }), e[28] = O, e[29] = L, e[30] = j) : j = e[30];
437
439
  let $;
438
- e[28] !== M || e[29] !== k ? ($ = !!M && /* @__PURE__ */ l(We, { children: (z) => /* @__PURE__ */ l(M, { ...k, ...z }) }), e[28] = M, e[29] = k, e[30] = $) : $ = e[30];
440
+ e[31] !== T || e[32] !== L ? ($ = !!T && /* @__PURE__ */ n(T, { ...L }), e[31] = T, e[32] = L, e[33] = $) : $ = e[33];
441
+ let k;
442
+ e[34] !== D || e[35] !== L ? (k = !!D && /* @__PURE__ */ n(D, { ...L }), e[34] = D, e[35] = L, e[36] = k) : k = e[36];
439
443
  let B;
440
- e[31] !== _ || e[32] !== k ? (B = !!_ && /* @__PURE__ */ l(_, { ...k }), e[31] = _, e[32] = k, e[33] = B) : B = e[33];
441
- let V;
442
- e[34] !== S || e[35] !== k ? (V = !!S && /* @__PURE__ */ l(S, { ...k }), e[34] = S, e[35] = k, e[36] = V) : V = e[36];
443
- let Z;
444
- return e[37] !== D || e[38] !== E || e[39] !== j || e[40] !== $ || e[41] !== B || e[42] !== V ? (Z = /* @__PURE__ */ L(ye, { sx: E, ...D, children: [
444
+ return e[37] !== C || e[38] !== P || e[39] !== R || e[40] !== j || e[41] !== $ || e[42] !== k ? (B = /* @__PURE__ */ E(we, { sx: P, ...C, children: [
445
+ R,
445
446
  j,
446
447
  $,
447
- B,
448
- V
449
- ] }), e[37] = D, e[38] = E, e[39] = j, e[40] = $, e[41] = B, e[42] = V, e[43] = Z) : Z = e[43], Z;
448
+ k
449
+ ] }), e[37] = C, e[38] = P, e[39] = R, e[40] = j, e[41] = $, e[42] = k, e[43] = B) : B = e[43], B;
450
450
  }
451
- function St(t) {
452
- const e = P(12), {
453
- actionProps: n,
454
- labels: o,
451
+ function Ot(t) {
452
+ const e = Z(12), {
453
+ actionProps: o,
454
+ labels: l,
455
455
  enabled: i,
456
- children: a,
457
- onActionToggle: r
458
- } = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? K.action.tooltip[s], u = n?.TooltipProps;
456
+ children: r,
457
+ onActionToggle: s
458
+ } = t, a = i ? "active" : "inactive", c = l?.tooltip?.[a] ?? Y.action.tooltip[a], d = o?.TooltipProps;
459
+ let f;
460
+ e[0] !== i || e[1] !== s ? (f = () => s(!i), e[0] = i, e[1] = s, e[2] = f) : f = e[2];
459
461
  let h;
460
- e[0] !== i || e[1] !== r ? (h = () => r(!i), e[0] = i, e[1] = r, e[2] = h) : h = e[2];
462
+ e[3] !== c || e[4] !== r || e[5] !== i || e[6] !== f ? (h = /* @__PURE__ */ n(xe, { value: "toggle", sx: te.actions.icon, onClick: f, "aria-label": c, selected: i, children: r }), e[3] = c, e[4] = r, e[5] = i, e[6] = f, e[7] = h) : h = e[7];
461
463
  let p;
462
- e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== h ? (p = /* @__PURE__ */ l(ve, { value: "toggle", sx: J.actions.icon, onClick: h, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = h, e[7] = p) : p = e[7];
463
- let f;
464
- return e[8] !== c || e[9] !== u || e[10] !== p ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: p }), e[8] = c, e[9] = u, e[10] = p, e[11] = f) : f = e[11], f;
464
+ return e[8] !== c || e[9] !== d || e[10] !== h ? (p = /* @__PURE__ */ n(fe, { title: c, placement: "right", ...d, children: h }), e[8] = c, e[9] = d, e[10] = h, e[11] = p) : p = e[11], p;
465
465
  }
466
- function We({
466
+ function Ne({
467
467
  TriggerProps: {
468
- Icon: t = /* @__PURE__ */ l(Pe, {}),
468
+ Icon: t = /* @__PURE__ */ n($e, {}),
469
469
  sx: e
470
470
  } = {},
471
- MenuProps: n,
472
- children: o
471
+ MenuProps: o,
472
+ children: l
473
473
  }) {
474
- const [i, a] = ne(null), r = !!i, s = (u) => {
475
- a(u.currentTarget);
474
+ const [i, r] = oe(null), s = !!i, a = (d) => {
475
+ r(d.currentTarget);
476
476
  }, c = () => {
477
- a(null);
477
+ r(null);
478
478
  };
479
- return /* @__PURE__ */ L(N, { children: [
480
- /* @__PURE__ */ l(se, { sx: {
481
- ...J.options.icon,
479
+ return /* @__PURE__ */ E(H, { children: [
480
+ /* @__PURE__ */ n(re, { sx: {
481
+ ...te.options.icon,
482
482
  ...e
483
- }, onClick: s, children: t }),
484
- /* @__PURE__ */ l($e, { id: "lasso-menu", anchorEl: i, open: r, onClose: c, MenuListProps: {
483
+ }, onClick: a, children: t }),
484
+ /* @__PURE__ */ n(je, { id: "lasso-menu", anchorEl: i, open: s, onClose: c, MenuListProps: {
485
485
  "aria-labelledby": "lasso-button",
486
- sx: J.options.menu
487
- }, ...n, children: /* @__PURE__ */ l("div", { children: o({
486
+ sx: te.options.menu
487
+ }, ...o, children: /* @__PURE__ */ n("div", { children: l({
488
488
  onClose: c
489
489
  }) }) })
490
490
  ] });
491
491
  }
492
- function Tt(t) {
493
- const e = P(5), {
494
- data: n,
495
- labels: o,
492
+ function Dt(t) {
493
+ const e = Z(5), {
494
+ data: o,
495
+ labels: l,
496
496
  children: i
497
497
  } = t;
498
- if (n.length <= 1)
498
+ if (o.length <= 1)
499
499
  return null;
500
- const a = o?.mode?.title ?? K.options.mode.title;
501
- let r;
502
- e[0] !== a ? (r = /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: J.options.title, children: a }), e[0] = a, e[1] = r) : r = e[1];
500
+ const r = l?.mode?.title ?? Y.options.mode.title;
503
501
  let s;
504
- return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ L(N, { children: [
505
- r,
502
+ e[0] !== r ? (s = /* @__PURE__ */ n(Q, { variant: "subtitle2", color: "text.secondary", sx: te.options.title, children: r }), e[0] = r, e[1] = s) : s = e[1];
503
+ let a;
504
+ return e[2] !== i || e[3] !== s ? (a = /* @__PURE__ */ E(H, { children: [
505
+ s,
506
506
  i
507
- ] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
507
+ ] }), e[2] = i, e[3] = s, e[4] = a) : a = e[4], a;
508
508
  }
509
- function Le({
509
+ function Pe({
510
510
  data: t,
511
511
  modeSelected: e,
512
- labels: n,
513
- onChangeMode: o,
512
+ labels: o,
513
+ onChangeMode: l,
514
514
  onClose: i
515
515
  }) {
516
- const a = (r, s) => {
517
- r.preventDefault(), o?.(s), i();
516
+ const r = (s, a) => {
517
+ s.preventDefault(), l?.(a), i();
518
518
  };
519
- return t.map((r) => {
520
- const c = (n?.mode?.options ?? K.options.mode.options)[r.value];
521
- return /* @__PURE__ */ L(ge, { disabled: !!r.disabled, onClick: (u) => a(u, r.value), selected: r.value === e, children: [
522
- /* @__PURE__ */ l(je, { sx: J.options.icons, children: /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(r.icon, {}) }) }),
523
- /* @__PURE__ */ l(be, { children: c })
524
- ] }, r.value);
519
+ return t.map((s) => {
520
+ const c = (o?.mode?.options ?? Y.options.mode.options)[s.value];
521
+ return /* @__PURE__ */ E(ve, { disabled: !!s.disabled, onClick: (d) => r(d, s.value), selected: s.value === e, children: [
522
+ /* @__PURE__ */ n(Ze, { sx: te.options.icons, children: /* @__PURE__ */ n(De, { children: /* @__PURE__ */ n(s.icon, {}) }) }),
523
+ /* @__PURE__ */ n(ye, { children: c })
524
+ ] }, s.value);
525
525
  });
526
526
  }
527
- function At(t) {
528
- const e = P(8), {
529
- values: n,
530
- labels: o,
527
+ function It(t) {
528
+ const e = Z(8), {
529
+ values: o,
530
+ labels: l,
531
531
  onAllChipToggle: i,
532
- onAllDelete: a
532
+ onAllDelete: r
533
533
  } = t;
534
- if (!n?.length || n.length <= 1)
534
+ if (!o?.length || o.length <= 1)
535
535
  return null;
536
- const s = n?.some(_t) ? o?.actions?.toggleAll?.active ?? K.actions.toggleAll.active : o?.actions?.toggleAll?.inactive ?? K.actions.toggleAll.inactive, c = o?.actions?.deleteAll ?? K.actions.deleteAll;
537
- let u;
538
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(ae, { orientation: "vertical", flexItem: !0 }), e[0] = u) : u = e[0];
539
- let h, p;
540
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (h = {
541
- Icon: /* @__PURE__ */ l(ze, {}),
542
- sx: J.options.more
543
- }, p = {
536
+ const a = o?.some(Lt) ? l?.actions?.toggleAll?.active ?? Y.actions.toggleAll.active : l?.actions?.toggleAll?.inactive ?? Y.actions.toggleAll.inactive, c = l?.actions?.deleteAll ?? Y.actions.deleteAll;
537
+ let d;
538
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ n(ae, { orientation: "vertical", flexItem: !0 }), e[0] = d) : d = e[0];
539
+ let f, h;
540
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (f = {
541
+ Icon: /* @__PURE__ */ n(Xe, {}),
542
+ sx: te.options.more
543
+ }, h = {
544
544
  anchorOrigin: {
545
545
  vertical: "bottom",
546
546
  horizontal: "right"
@@ -549,212 +549,255 @@ function At(t) {
549
549
  vertical: "top",
550
550
  horizontal: "right"
551
551
  }
552
- }, e[1] = h, e[2] = p) : (h = e[1], p = e[2]);
553
- let f;
554
- return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (f = /* @__PURE__ */ L(N, { children: [
555
- u,
556
- /* @__PURE__ */ l(We, { TriggerProps: h, MenuProps: p, children: (b) => /* @__PURE__ */ L(N, { children: [
557
- /* @__PURE__ */ l(ge, { color: "inherit", onClick: () => {
558
- i?.(), b.onClose();
559
- }, children: s }),
560
- /* @__PURE__ */ l(ae, {}),
561
- /* @__PURE__ */ l(ge, { color: "error", onClick: () => {
562
- a?.(), b.onClose();
563
- }, children: /* @__PURE__ */ l(Y, { variant: "body2", color: "error", children: c }) })
552
+ }, e[1] = f, e[2] = h) : (f = e[1], h = e[2]);
553
+ let p;
554
+ return e[3] !== c || e[4] !== i || e[5] !== r || e[6] !== a ? (p = /* @__PURE__ */ E(H, { children: [
555
+ d,
556
+ /* @__PURE__ */ n(Ne, { TriggerProps: f, MenuProps: h, children: (y) => /* @__PURE__ */ E(H, { children: [
557
+ /* @__PURE__ */ n(ve, { color: "inherit", onClick: () => {
558
+ i?.(), y.onClose();
559
+ }, children: a }),
560
+ /* @__PURE__ */ n(ae, {}),
561
+ /* @__PURE__ */ n(ve, { color: "error", onClick: () => {
562
+ r?.(), y.onClose();
563
+ }, children: /* @__PURE__ */ n(Q, { variant: "body2", color: "error", children: c }) })
564
564
  ] }) })
565
- ] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] = f) : f = e[7], f;
565
+ ] }), e[3] = c, e[4] = i, e[5] = r, e[6] = a, e[7] = p) : p = e[7], p;
566
566
  }
567
- function _t(t) {
567
+ function Lt(t) {
568
568
  return t.visible;
569
569
  }
570
- ce.Action = function({
570
+ ue.Action = function({
571
571
  modes: e,
572
- modesMapping: n,
573
- modeSelected: o,
572
+ modesMapping: o,
573
+ modeSelected: l,
574
574
  actionProps: i,
575
- enabled: a,
576
- labels: r,
577
- onActionToggle: s
575
+ enabled: r,
576
+ labels: s,
577
+ onActionToggle: a
578
578
  }) {
579
- const c = Ce(() => xe(e ?? {}, n ?? {}), [e, n]), u = (b) => s?.(b), p = (o ? o in (e ?? {}) : !1) ? o : Object.keys(c)[0], f = c[p];
580
- return /* @__PURE__ */ l(St, { actionProps: i, labels: r?.action, enabled: a ?? !1, onActionToggle: u, children: f?.icon && /* @__PURE__ */ l(f.icon, {}) });
579
+ const c = Ue(() => Ce(e ?? {}, o ?? {}), [e, o]), d = (y) => a?.(y), h = (l ? l in (e ?? {}) : !1) ? l : Object.keys(c)[0], p = c[h];
580
+ return /* @__PURE__ */ n(Ot, { actionProps: i, labels: s?.action, enabled: r ?? !1, onActionToggle: d, children: p?.icon && /* @__PURE__ */ n(p.icon, {}) });
581
581
  };
582
- ce.Chips = function({
582
+ ue.Chips = function({
583
583
  values: e,
584
- labels: n,
585
- chipProps: o,
584
+ labels: o,
585
+ chipProps: l,
586
586
  onDelete: i,
587
- onChipToggle: a,
588
- onActionToggle: r
587
+ onChipToggle: r,
588
+ onActionToggle: s
589
589
  }) {
590
- const s = (c) => (r?.(!1), i?.(c));
591
- return !!e?.length && /* @__PURE__ */ l(X, { sx: J.chip.container, children: e?.map((c) => /* @__PURE__ */ l(Ue, { value: c, labels: n?.chip, chipProps: o, onDelete: s, onChipToggle: (u, h) => a?.(u, h) }, c.id)) });
590
+ const a = (c) => (s?.(!1), i?.(c));
591
+ return !!e?.length && /* @__PURE__ */ n(K, { sx: te.chip.container, children: e?.map((c) => /* @__PURE__ */ n(ze, { value: c, labels: o?.chip, chipProps: l, onDelete: a, onChipToggle: (d, f) => r?.(d, f) }, c.id)) });
592
592
  };
593
- ce.SecondaryActions = At;
594
- ce.Options = function({
593
+ ue.SecondaryActions = It;
594
+ ue.Options = function({
595
595
  values: e,
596
- modes: n,
597
- modesMapping: o,
596
+ modes: o,
597
+ modesMapping: l,
598
598
  modeSelected: i,
599
- labels: a,
600
- onChangeMode: r,
601
- ...s
599
+ labels: r,
600
+ onChangeMode: s,
601
+ ...a
602
602
  }) {
603
- const c = Ce(() => xe(n ?? {}, o ?? {}), [n, o]), {
604
- edit: u,
605
- ...h
606
- } = c, f = (i ? i in (n ?? {}) : !1) ? i : Object.keys(c)[0], b = Object.values(h), y = (v) => r?.(v);
607
- return /* @__PURE__ */ L(N, { children: [
608
- /* @__PURE__ */ l(Tt, { data: b, labels: a?.options, children: /* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: b, modeSelected: f, onChangeMode: y }) }),
609
- !!u && /* @__PURE__ */ L(N, { children: [
610
- /* @__PURE__ */ l(ae, {}),
611
- /* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: [{
612
- ...u,
603
+ const c = Ue(() => Ce(o ?? {}, l ?? {}), [o, l]), {
604
+ edit: d,
605
+ ...f
606
+ } = c, p = (i ? i in (o ?? {}) : !1) ? i : Object.keys(c)[0], y = Object.values(f), x = (w) => s?.(w);
607
+ return /* @__PURE__ */ E(H, { children: [
608
+ /* @__PURE__ */ n(Dt, { data: y, labels: r?.options, children: /* @__PURE__ */ n(Pe, { ...a, labels: r?.options, data: y, modeSelected: p, onChangeMode: x }) }),
609
+ !!d && /* @__PURE__ */ E(H, { children: [
610
+ /* @__PURE__ */ n(ae, {}),
611
+ /* @__PURE__ */ n(Pe, { ...a, labels: r?.options, data: [{
612
+ ...d,
613
613
  disabled: !e?.length
614
- }], modeSelected: f, onChangeMode: y })
614
+ }], modeSelected: p, onChangeMode: x })
615
615
  ] })
616
616
  ] });
617
617
  };
618
- function fo({
619
- enabled: t,
620
- values: e = [],
621
- chipProps: n,
622
- labels: o,
623
- modes: i,
624
- modesMapping: a,
625
- modeSelected: r,
626
- BoxProps: {
627
- sx: s,
628
- ...c
629
- } = {},
630
- onChipToggle: u,
631
- onDelete: h,
632
- onChangeMode: p,
633
- onAllChipToggle: f,
634
- onAllDelete: b
635
- }) {
636
- const y = Ce(() => xe(i, a), [i, a]), {
637
- edit: v,
638
- ...x
639
- } = y, d = (T) => h(T), m = (T, D) => {
640
- T.preventDefault(), p?.(D);
641
- }, C = (r ?? "") in i ? r : Object.keys(y)[0], w = t ? y[C] : null, O = Object.values(x);
642
- return /* @__PURE__ */ L(X, { sx: {
643
- ...J.container,
644
- ...s
645
- }, ...c, className: "inline", children: [
646
- /* @__PURE__ */ l(Ot, { data: O, labels: o?.options, children: /* @__PURE__ */ L(Ze, { value: w?.value, exclusive: !0, className: "inline", sx: J.options.menu, onChange: m, children: [
647
- /* @__PURE__ */ l(ke, { labels: o?.options, data: O }),
648
- !!v && /* @__PURE__ */ L(N, { children: [
649
- /* @__PURE__ */ l(ae, { orientation: "vertical" }),
650
- /* @__PURE__ */ l(ke, { labels: o?.options, data: [{
651
- ...v,
652
- disabled: !e.length
653
- }] })
654
- ] })
655
- ] }) }),
656
- /* @__PURE__ */ l(ae, { flexItem: !0 }),
657
- /* @__PURE__ */ l(Dt, { hasValues: !!e.length, labels: o?.noData }),
658
- !!e.length && /* @__PURE__ */ l(X, { sx: J.chip.container, className: "inline", children: e.map((T) => /* @__PURE__ */ l(Ue, { value: T, labels: o?.chip, chipProps: n, onDelete: d, onChipToggle: u }, T.id)) }),
659
- /* @__PURE__ */ l(It, { values: e, labels: o?.actions, onAllChipToggle: f, onAllDelete: b })
660
- ] });
618
+ function gl(t) {
619
+ const e = Z(59), {
620
+ enabled: o,
621
+ values: l,
622
+ chipProps: i,
623
+ labels: r,
624
+ modes: s,
625
+ modesMapping: a,
626
+ modeSelected: c,
627
+ BoxProps: d,
628
+ onChipToggle: f,
629
+ onDelete: h,
630
+ onChangeMode: p,
631
+ onAllChipToggle: y,
632
+ onAllDelete: x
633
+ } = t;
634
+ let w;
635
+ e[0] !== l ? (w = l === void 0 ? [] : l, e[0] = l, e[1] = w) : w = e[1];
636
+ const b = w;
637
+ let u;
638
+ e[2] !== d ? (u = d === void 0 ? {} : d, e[2] = d, e[3] = u) : u = e[3];
639
+ let m, g;
640
+ e[4] !== u ? ({
641
+ sx: g,
642
+ ...m
643
+ } = u, e[4] = u, e[5] = m, e[6] = g) : (m = e[5], g = e[6]);
644
+ let M;
645
+ e[7] !== s || e[8] !== a ? (M = Ce(s, a), e[7] = s, e[8] = a, e[9] = M) : M = e[9];
646
+ const v = M;
647
+ let I, A;
648
+ e[10] !== v ? ({
649
+ edit: A,
650
+ ...I
651
+ } = v, e[10] = v, e[11] = I, e[12] = A) : (I = e[11], A = e[12]);
652
+ let C;
653
+ e[13] !== h ? (C = (J) => h(J), e[13] = h, e[14] = C) : C = e[14];
654
+ const _ = C;
655
+ let T;
656
+ e[15] !== p ? (T = (J, ce) => {
657
+ J.preventDefault(), p?.(ce);
658
+ }, e[15] = p, e[16] = T) : T = e[16];
659
+ const S = T, O = (c ?? "") in s ? c : Object.keys(v)[0], V = o ? v[O] : null;
660
+ let L;
661
+ e[17] !== I ? (L = Object.values(I), e[17] = I, e[18] = L) : L = e[18];
662
+ const P = L;
663
+ let R;
664
+ e[19] !== g ? (R = {
665
+ ...te.container,
666
+ ...g
667
+ }, e[19] = g, e[20] = R) : R = e[20];
668
+ const j = r?.options, $ = V?.value, k = r?.options;
669
+ let B;
670
+ e[21] !== P || e[22] !== k ? (B = /* @__PURE__ */ n(Re, { labels: k, data: P }), e[21] = P, e[22] = k, e[23] = B) : B = e[23];
671
+ let W;
672
+ e[24] !== A || e[25] !== r?.options || e[26] !== b.length ? (W = !!A && /* @__PURE__ */ E(H, { children: [
673
+ /* @__PURE__ */ n(ae, { orientation: "vertical" }),
674
+ /* @__PURE__ */ n(Re, { labels: r?.options, data: [{
675
+ ...A,
676
+ disabled: !b.length
677
+ }] })
678
+ ] }), e[24] = A, e[25] = r?.options, e[26] = b.length, e[27] = W) : W = e[27];
679
+ let z;
680
+ e[28] !== S || e[29] !== $ || e[30] !== B || e[31] !== W ? (z = /* @__PURE__ */ E(Ve, { value: $, exclusive: !0, className: "inline", sx: te.options.menu, onChange: S, children: [
681
+ B,
682
+ W
683
+ ] }), e[28] = S, e[29] = $, e[30] = B, e[31] = W, e[32] = z) : z = e[32];
684
+ let G;
685
+ e[33] !== P || e[34] !== j || e[35] !== z ? (G = /* @__PURE__ */ n(Pt, { data: P, labels: j, children: z }), e[33] = P, e[34] = j, e[35] = z, e[36] = G) : G = e[36];
686
+ let N;
687
+ e[37] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ n(ae, { flexItem: !0 }), e[37] = N) : N = e[37];
688
+ const F = !!b.length, U = r?.noData;
689
+ let X;
690
+ e[38] !== F || e[39] !== U ? (X = /* @__PURE__ */ n(Rt, { hasValues: F, labels: U }), e[38] = F, e[39] = U, e[40] = X) : X = e[40];
691
+ let q;
692
+ e[41] !== i || e[42] !== _ || e[43] !== r?.chip || e[44] !== f || e[45] !== b ? (q = !!b.length && /* @__PURE__ */ n(K, { sx: te.chip.container, className: "inline", children: b.map((J) => /* @__PURE__ */ n(ze, { value: J, labels: r?.chip, chipProps: i, onDelete: _, onChipToggle: f }, J.id)) }), e[41] = i, e[42] = _, e[43] = r?.chip, e[44] = f, e[45] = b, e[46] = q) : q = e[46];
693
+ const ne = r?.actions;
694
+ let le;
695
+ e[47] !== y || e[48] !== x || e[49] !== ne || e[50] !== b ? (le = /* @__PURE__ */ n(kt, { values: b, labels: ne, onAllChipToggle: y, onAllDelete: x }), e[47] = y, e[48] = x, e[49] = ne, e[50] = b, e[51] = le) : le = e[51];
696
+ let ie;
697
+ return e[52] !== m || e[53] !== G || e[54] !== X || e[55] !== q || e[56] !== le || e[57] !== R ? (ie = /* @__PURE__ */ E(K, { sx: R, ...m, className: "inline", children: [
698
+ G,
699
+ N,
700
+ X,
701
+ q,
702
+ le
703
+ ] }), e[52] = m, e[53] = G, e[54] = X, e[55] = q, e[56] = le, e[57] = R, e[58] = ie) : ie = e[58], ie;
661
704
  }
662
- function Ot(t) {
663
- const e = P(5), {
664
- data: n,
665
- labels: o,
705
+ function Pt(t) {
706
+ const e = Z(5), {
707
+ data: o,
708
+ labels: l,
666
709
  children: i
667
710
  } = t;
668
- if (n.length <= 1)
711
+ if (o.length <= 1)
669
712
  return null;
670
- const a = o?.mode?.title ?? K.options.mode.title;
671
- let r;
672
- e[0] !== a ? (r = /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: J.options.title, className: "inline", children: a }), e[0] = a, e[1] = r) : r = e[1];
713
+ const r = l?.mode?.title ?? Y.options.mode.title;
673
714
  let s;
674
- return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ L(N, { children: [
675
- r,
715
+ e[0] !== r ? (s = /* @__PURE__ */ n(Q, { variant: "subtitle2", color: "text.secondary", sx: te.options.title, className: "inline", children: r }), e[0] = r, e[1] = s) : s = e[1];
716
+ let a;
717
+ return e[2] !== i || e[3] !== s ? (a = /* @__PURE__ */ E(H, { children: [
718
+ s,
676
719
  i
677
- ] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
720
+ ] }), e[2] = i, e[3] = s, e[4] = a) : a = e[4], a;
678
721
  }
679
- function ke({
722
+ function Re({
680
723
  data: t,
681
724
  labels: e
682
725
  }) {
683
- return t.map((n) => {
684
- const i = (e?.mode?.options ?? K.options.mode.options)[n.value];
685
- return /* @__PURE__ */ l(de, { title: i, placement: "bottom", children: /* @__PURE__ */ l(ve, { disabled: !!n.disabled, value: n.value, "aria-label": n.value, children: /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(n.icon, {}) }) }) }, n.value);
726
+ return t.map((o) => {
727
+ const i = (e?.mode?.options ?? Y.options.mode.options)[o.value];
728
+ return /* @__PURE__ */ n(fe, { title: i, placement: "bottom", children: /* @__PURE__ */ n(xe, { disabled: !!o.disabled, value: o.value, "aria-label": o.value, children: /* @__PURE__ */ n(De, { children: /* @__PURE__ */ n(o.icon, {}) }) }) }, o.value);
686
729
  });
687
730
  }
688
- function Dt(t) {
689
- const e = P(7), {
690
- hasValues: n,
691
- labels: o
731
+ function Rt(t) {
732
+ const e = Z(7), {
733
+ hasValues: o,
734
+ labels: l
692
735
  } = t;
693
- if (n)
736
+ if (o)
694
737
  return null;
695
- const i = o?.title ?? K.noData.title, a = o?.description ?? K.noData.description;
696
- let r;
697
- e[0] !== i ? (r = /* @__PURE__ */ l(Y, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
738
+ const i = l?.title ?? Y.noData.title, r = l?.description ?? Y.noData.description;
698
739
  let s;
699
- e[2] !== a ? (s = /* @__PURE__ */ l(Y, { variant: "body2", color: "textSecondary", children: a }), e[2] = a, e[3] = s) : s = e[3];
740
+ e[0] !== i ? (s = /* @__PURE__ */ n(Q, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = s) : s = e[1];
741
+ let a;
742
+ e[2] !== r ? (a = /* @__PURE__ */ n(Q, { variant: "body2", color: "textSecondary", children: r }), e[2] = r, e[3] = a) : a = e[3];
700
743
  let c;
701
- return e[4] !== r || e[5] !== s ? (c = /* @__PURE__ */ L(N, { children: [
702
- r,
703
- s
704
- ] }), e[4] = r, e[5] = s, e[6] = c) : c = e[6], c;
744
+ return e[4] !== s || e[5] !== a ? (c = /* @__PURE__ */ E(H, { children: [
745
+ s,
746
+ a
747
+ ] }), e[4] = s, e[5] = a, e[6] = c) : c = e[6], c;
705
748
  }
706
- function It(t) {
707
- const e = P(13), {
708
- values: n,
709
- labels: o,
749
+ function kt(t) {
750
+ const e = Z(13), {
751
+ values: o,
752
+ labels: l,
710
753
  onAllChipToggle: i,
711
- onAllDelete: a
754
+ onAllDelete: r
712
755
  } = t;
713
- if (n.length <= 1)
756
+ if (o.length <= 1)
714
757
  return null;
715
- const s = n.some(Lt) ? o?.toggleAll?.active ?? K.actions.toggleAll.active : o?.toggleAll?.inactive ?? K.actions.toggleAll.inactive, c = o?.deleteAll ?? K.actions.deleteAll;
716
- let u;
717
- e[0] !== i ? (u = () => i(), e[0] = i, e[1] = u) : u = e[1];
758
+ const a = o.some(Et) ? l?.toggleAll?.active ?? Y.actions.toggleAll.active : l?.toggleAll?.inactive ?? Y.actions.toggleAll.inactive, c = l?.deleteAll ?? Y.actions.deleteAll;
759
+ let d;
760
+ e[0] !== i ? (d = () => i(), e[0] = i, e[1] = d) : d = e[1];
761
+ let f;
762
+ e[2] !== d || e[3] !== a ? (f = /* @__PURE__ */ n(Te, { color: "inherit", onClick: d, children: a }), e[2] = d, e[3] = a, e[4] = f) : f = e[4];
718
763
  let h;
719
- e[2] !== u || e[3] !== s ? (h = /* @__PURE__ */ l(we, { color: "inherit", onClick: u, children: s }), e[2] = u, e[3] = s, e[4] = h) : h = e[4];
764
+ e[5] !== r ? (h = () => r(), e[5] = r, e[6] = h) : h = e[6];
720
765
  let p;
721
- e[5] !== a ? (p = () => a(), e[5] = a, e[6] = p) : p = e[6];
722
- let f;
723
- e[7] !== c || e[8] !== p ? (f = /* @__PURE__ */ l(we, { color: "error", onClick: p, children: c }), e[7] = c, e[8] = p, e[9] = f) : f = e[9];
724
- let b;
725
- return e[10] !== h || e[11] !== f ? (b = /* @__PURE__ */ L(X, { children: [
726
- h,
727
- f
728
- ] }), e[10] = h, e[11] = f, e[12] = b) : b = e[12], b;
766
+ e[7] !== c || e[8] !== h ? (p = /* @__PURE__ */ n(Te, { color: "error", onClick: h, children: c }), e[7] = c, e[8] = h, e[9] = p) : p = e[9];
767
+ let y;
768
+ return e[10] !== f || e[11] !== p ? (y = /* @__PURE__ */ E(K, { children: [
769
+ f,
770
+ p
771
+ ] }), e[10] = f, e[11] = p, e[12] = y) : y = e[12], y;
729
772
  }
730
- function Lt(t) {
773
+ function Et(t) {
731
774
  return t.visible;
732
775
  }
733
- function kt(t) {
734
- const e = P(3);
735
- let n;
736
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", d: "M3 13.5c-.413 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 1.5 12V6c0-.412.147-.766.44-1.06.294-.293.647-.44 1.06-.44h12c.412 0 .766.147 1.06.44.293.294.44.647.44 1.06v6c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3ZM3 12h12V6h-2.25v3h-1.5V6h-1.5v3h-1.5V6h-1.5v3h-1.5V6H3v6Z" }), e[0] = n) : n = e[0];
776
+ function $t(t) {
777
+ const e = Z(3);
737
778
  let o;
738
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
779
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("path", { fill: "currentColor", d: "M3 13.5c-.413 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 1.5 12V6c0-.412.147-.766.44-1.06.294-.293.647-.44 1.06-.44h12c.412 0 .766.147 1.06.44.293.294.44.647.44 1.06v6c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3ZM3 12h12V6h-2.25v3h-1.5V6h-1.5v3h-1.5V6h-1.5v3h-1.5V6H3v6Z" }), e[0] = o) : o = e[0];
780
+ let l;
781
+ return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
739
782
  }
740
- function Rt(t) {
741
- const e = P(3);
742
- let n;
743
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 1.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3Zm0 4.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z", clipRule: "evenodd" }), e[0] = n) : n = e[0];
783
+ function Bt(t) {
784
+ const e = Z(3);
744
785
  let o;
745
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
786
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 1.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3Zm0 4.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z", clipRule: "evenodd" }), e[0] = o) : o = e[0];
787
+ let l;
788
+ return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
746
789
  }
747
- function Et(t) {
748
- const e = P(4);
749
- let n, o;
750
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), o = /* @__PURE__ */ l("path", { fill: "#2C3032", fillRule: "evenodd", d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z", clipRule: "evenodd" }), e[0] = n, e[1] = o) : (n = e[0], o = e[1]);
790
+ function jt(t) {
791
+ const e = Z(4);
792
+ let o, l;
793
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), l = /* @__PURE__ */ n("path", { fill: "#2C3032", fillRule: "evenodd", d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z", clipRule: "evenodd" }), e[0] = o, e[1] = l) : (o = e[0], l = e[1]);
751
794
  let i;
752
- return e[2] !== t ? (i = /* @__PURE__ */ L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
753
- n,
754
- o
795
+ return e[2] !== t ? (i = /* @__PURE__ */ E("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
796
+ o,
797
+ l
755
798
  ] }), e[2] = t, e[3] = i) : i = e[3], i;
756
799
  }
757
- const re = {
800
+ const se = {
758
801
  action: {
759
802
  tooltip: {
760
803
  active: "Click on the map to start measuring",
@@ -806,7 +849,7 @@ const re = {
806
849
  }
807
850
  }
808
851
  }
809
- }, Pt = {
852
+ }, Zt = {
810
853
  "m-km": {
811
854
  short: "m-km"
812
855
  },
@@ -834,17 +877,17 @@ const re = {
834
877
  feet: {
835
878
  short: "ft"
836
879
  }
837
- }, Bt = {
880
+ }, Vt = {
838
881
  distance: {
839
- icon: /* @__PURE__ */ l(kt, {})
882
+ icon: /* @__PURE__ */ n($t, {})
840
883
  },
841
884
  buffer: {
842
- icon: /* @__PURE__ */ l(Rt, {})
885
+ icon: /* @__PURE__ */ n(Bt, {})
843
886
  },
844
887
  area: {
845
- icon: /* @__PURE__ */ l(Et, {})
888
+ icon: /* @__PURE__ */ n(jt, {})
846
889
  }
847
- }, Q = {
890
+ }, ee = {
848
891
  container: {
849
892
  display: "flex",
850
893
  flexDirection: "row",
@@ -909,7 +952,7 @@ const re = {
909
952
  }) => t.primary.main,
910
953
  backgroundColor: ({
911
954
  palette: t
912
- }) => Qe(t.primary.main, 0.08)
955
+ }) => lt(t.primary.main, 0.08)
913
956
  },
914
957
  modal: {
915
958
  toggle: {
@@ -976,276 +1019,313 @@ const re = {
976
1019
  }
977
1020
  }
978
1021
  };
979
- function po(t) {
980
- const e = P(46), {
981
- enabled: n,
982
- actionProps: o,
1022
+ function bl(t) {
1023
+ const e = Z(46), {
1024
+ enabled: o,
1025
+ actionProps: l,
983
1026
  labels: i,
984
- modes: a,
985
- modesMapping: r,
986
- unitsMapping: s,
1027
+ modes: r,
1028
+ modesMapping: s,
1029
+ unitsMapping: a,
987
1030
  modeSelected: c,
988
- PaperProps: u,
989
- units: h,
990
- unitSelected: p,
991
- onActionToggle: f,
992
- onChangeMode: b,
993
- onChangeUnit: y
994
- } = t, v = i === void 0 ? re : i, x = r === void 0 ? Bt : r, d = s === void 0 ? Pt : s;
1031
+ PaperProps: d,
1032
+ units: f,
1033
+ unitSelected: h,
1034
+ onActionToggle: p,
1035
+ onChangeMode: y,
1036
+ onChangeUnit: x
1037
+ } = t, w = i === void 0 ? se : i, b = s === void 0 ? Vt : s, u = a === void 0 ? Zt : a;
995
1038
  let m;
996
- e[0] !== u ? (m = u === void 0 ? {} : u, e[0] = u, e[1] = m) : m = e[1];
997
- let g, C;
1039
+ e[0] !== d ? (m = d === void 0 ? {} : d, e[0] = d, e[1] = m) : m = e[1];
1040
+ let g, M;
998
1041
  e[2] !== m ? ({
999
- sx: C,
1042
+ sx: M,
1000
1043
  ...g
1001
- } = m, e[2] = m, e[3] = g, e[4] = C) : (g = e[3], C = e[4]);
1002
- let w;
1003
- e[5] !== f ? (w = (W) => f(!!W), e[5] = f, e[6] = w) : w = e[6];
1004
- const O = w;
1005
- let T, D;
1006
- e[7] !== a || e[8] !== x ? (D = xe(a, x), e[7] = a, e[8] = x, e[9] = D) : D = e[9], T = D;
1007
- const A = T, _ = (c ?? "") in A;
1008
- let I;
1009
- e[10] !== A || e[11] !== _ || e[12] !== c ? (I = _ ? c : Object.keys(A)[0], e[10] = A, e[11] = _, e[12] = c, e[13] = I) : I = e[13];
1010
- const S = I, M = A[S];
1044
+ } = m, e[2] = m, e[3] = g, e[4] = M) : (g = e[3], M = e[4]);
1045
+ let v;
1046
+ e[5] !== p ? (v = (U) => p(!!U), e[5] = p, e[6] = v) : v = e[6];
1047
+ const I = v;
1048
+ let A;
1049
+ e[7] !== r || e[8] !== b ? (A = Ce(r, b), e[7] = r, e[8] = b, e[9] = A) : A = e[9];
1050
+ const C = A, _ = (c ?? "") in C;
1051
+ let T;
1052
+ e[10] !== C || e[11] !== _ || e[12] !== c ? (T = _ ? c : Object.keys(C)[0], e[10] = C, e[11] = _, e[12] = c, e[13] = T) : T = e[13];
1053
+ const S = T, D = C[S], O = f[S];
1054
+ let V;
1055
+ e[14] !== S || e[15] !== O || e[16] !== f ? (V = Object.keys(f).length >= 1 ? f : {
1056
+ [S]: O.slice(0, 1)
1057
+ }, e[14] = S, e[15] = O, e[16] = f, e[17] = V) : V = e[17];
1058
+ const P = V[S];
1011
1059
  let R;
1012
- const k = h[S];
1013
- let E;
1014
- e[14] !== S || e[15] !== k || e[16] !== h ? (E = Object.keys(h).length >= 1 ? h : {
1015
- [S]: k.slice(0, 1)
1016
- }, e[14] = S, e[15] = k, e[16] = h, e[17] = E) : E = e[17];
1017
- const $ = E[S];
1018
- let B;
1019
- if (e[18] !== $ || e[19] !== d) {
1020
- let W;
1021
- e[21] !== d ? (W = (te) => ({
1022
- ...te,
1023
- ...d[te.value]
1024
- }), e[21] = d, e[22] = W) : W = e[22], B = $.map(W), e[18] = $, e[19] = d, e[20] = B;
1060
+ if (e[18] !== P || e[19] !== u) {
1061
+ let U;
1062
+ e[21] !== u ? (U = (X) => ({
1063
+ ...X,
1064
+ ...u[X.value]
1065
+ }), e[21] = u, e[22] = U) : U = e[22], R = P.map(U), e[18] = P, e[19] = u, e[20] = R;
1025
1066
  } else
1026
- B = e[20];
1027
- R = B;
1028
- const V = R;
1029
- let Z;
1030
- e[23] !== C ? (Z = {
1031
- ...Q.container,
1032
- ...C
1033
- }, e[23] = C, e[24] = Z) : Z = e[24];
1034
- const z = v?.action, ee = M?.icon;
1067
+ R = e[20];
1068
+ const j = R;
1069
+ let $;
1070
+ e[23] !== M ? ($ = {
1071
+ ...ee.container,
1072
+ ...M
1073
+ }, e[23] = M, e[24] = $) : $ = e[24];
1074
+ const k = w?.action, B = D?.icon;
1075
+ let W;
1076
+ e[25] !== l || e[26] !== o || e[27] !== I || e[28] !== k || e[29] !== B ? (W = /* @__PURE__ */ n(Ut, { actionProps: l, labels: k, enabled: o, onActionToggle: I, children: B }), e[25] = l, e[26] = o, e[27] = I, e[28] = k, e[29] = B, e[30] = W) : W = e[30];
1077
+ const z = w?.options;
1078
+ let G;
1079
+ e[31] !== j || e[32] !== C || e[33] !== S || e[34] !== y || e[35] !== x || e[36] !== z || e[37] !== h ? (G = /* @__PURE__ */ n(Wt, { labels: z, modes: C, modeSelected: S, units: j, unitSelected: h, onChangeMode: y, onChangeUnit: x }), e[31] = j, e[32] = C, e[33] = S, e[34] = y, e[35] = x, e[36] = z, e[37] = h, e[38] = G) : G = e[38];
1080
+ let N;
1081
+ e[39] !== W || e[40] !== G ? (N = /* @__PURE__ */ E(K, { children: [
1082
+ W,
1083
+ G
1084
+ ] }), e[39] = W, e[40] = G, e[41] = N) : N = e[41];
1035
1085
  let F;
1036
- e[25] !== o || e[26] !== n || e[27] !== O || e[28] !== z || e[29] !== ee ? (F = /* @__PURE__ */ l($t, { actionProps: o, labels: z, enabled: n, onActionToggle: O, children: ee }), e[25] = o, e[26] = n, e[27] = O, e[28] = z, e[29] = ee, e[30] = F) : F = e[30];
1037
- const ie = v?.options;
1038
- let U;
1039
- e[31] !== V || e[32] !== A || e[33] !== S || e[34] !== b || e[35] !== y || e[36] !== ie || e[37] !== p ? (U = /* @__PURE__ */ l(jt, { labels: ie, modes: A, modeSelected: S, units: V, unitSelected: p, onChangeMode: b, onChangeUnit: y }), e[31] = V, e[32] = A, e[33] = S, e[34] = b, e[35] = y, e[36] = ie, e[37] = p, e[38] = U) : U = e[38];
1040
- let H;
1041
- e[39] !== F || e[40] !== U ? (H = /* @__PURE__ */ L(X, { children: [
1042
- F,
1043
- U
1044
- ] }), e[39] = F, e[40] = U, e[41] = H) : H = e[41];
1045
- let q;
1046
- return e[42] !== g || e[43] !== Z || e[44] !== H ? (q = /* @__PURE__ */ l(ye, { sx: Z, ...g, children: H }), e[42] = g, e[43] = Z, e[44] = H, e[45] = q) : q = e[45], q;
1086
+ return e[42] !== g || e[43] !== $ || e[44] !== N ? (F = /* @__PURE__ */ n(we, { sx: $, ...g, children: N }), e[42] = g, e[43] = $, e[44] = N, e[45] = F) : F = e[45], F;
1047
1087
  }
1048
- function $t(t) {
1049
- const e = P(12), {
1050
- actionProps: n,
1051
- labels: o,
1088
+ function Ut(t) {
1089
+ const e = Z(12), {
1090
+ actionProps: o,
1091
+ labels: l,
1052
1092
  enabled: i,
1053
- children: a,
1054
- onActionToggle: r
1055
- } = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? re.action.tooltip[s], u = n?.TooltipProps;
1093
+ children: r,
1094
+ onActionToggle: s
1095
+ } = t, a = i ? "active" : "inactive", c = l?.tooltip?.[a] ?? se.action.tooltip[a], d = o?.TooltipProps;
1096
+ let f;
1097
+ e[0] !== i || e[1] !== s ? (f = () => s(!i), e[0] = i, e[1] = s, e[2] = f) : f = e[2];
1056
1098
  let h;
1057
- e[0] !== i || e[1] !== r ? (h = () => r(!i), e[0] = i, e[1] = r, e[2] = h) : h = e[2];
1099
+ e[3] !== c || e[4] !== r || e[5] !== i || e[6] !== f ? (h = /* @__PURE__ */ n(xe, { value: "toggle", sx: ee.actions.icon, onClick: f, "aria-label": c, selected: i, children: r }), e[3] = c, e[4] = r, e[5] = i, e[6] = f, e[7] = h) : h = e[7];
1058
1100
  let p;
1059
- e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== h ? (p = /* @__PURE__ */ l(ve, { value: "toggle", sx: Q.actions.icon, onClick: h, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = h, e[7] = p) : p = e[7];
1060
- let f;
1061
- return e[8] !== c || e[9] !== u || e[10] !== p ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: p }), e[8] = c, e[9] = u, e[10] = p, e[11] = f) : f = e[11], f;
1101
+ return e[8] !== c || e[9] !== d || e[10] !== h ? (p = /* @__PURE__ */ n(fe, { title: c, placement: "right", ...d, children: h }), e[8] = c, e[9] = d, e[10] = h, e[11] = p) : p = e[11], p;
1062
1102
  }
1063
- function jt(t) {
1064
- const e = P(68), {
1065
- modes: n,
1066
- modeSelected: o,
1103
+ function Wt(t) {
1104
+ const e = Z(41), {
1105
+ modes: o,
1106
+ modeSelected: l,
1067
1107
  units: i,
1068
- unitSelected: a,
1069
- labels: r,
1070
- onChangeMode: s,
1108
+ unitSelected: r,
1109
+ labels: s,
1110
+ onChangeMode: a,
1071
1111
  onChangeUnit: c
1072
- } = t, [u, h] = ne(null), [p, f] = ne(!1);
1073
- let b, y, v, x, d, m, g, C, w, O, T, D, A, _, I, S;
1074
- if (e[0] !== u || e[1] !== r?.mode?.options || e[2] !== r?.mode?.title || e[3] !== r?.units?.title || e[4] !== o || e[5] !== n || e[6] !== s || e[7] !== c || e[8] !== a || e[9] !== i) {
1075
- A = Symbol.for("react.early_return_sentinel");
1076
- e: {
1077
- const $ = Object.values(n);
1078
- let B;
1079
- if (e[26] !== i ? (B = Object.values(i), e[26] = i, e[27] = B) : B = e[27], S = B, !($.length > 1 || S.length > 1)) {
1080
- A = null;
1081
- break e;
1082
- }
1083
- const Z = !!u;
1084
- let z;
1085
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (z = (G) => {
1086
- h(G.currentTarget);
1087
- }, e[28] = z) : z = e[28];
1088
- const ee = z;
1089
- let F;
1090
- e[29] === Symbol.for("react.memo_cache_sentinel") ? (F = () => {
1091
- h(null);
1092
- }, e[29] = F) : F = e[29];
1093
- const ie = F;
1094
- let U;
1095
- e[30] !== s ? (U = (G, le) => {
1096
- G.preventDefault(), s(le.value), ie();
1097
- }, e[30] = s, e[31] = U) : U = e[31];
1098
- const H = U;
1099
- let q;
1100
- e[32] === Symbol.for("react.memo_cache_sentinel") ? (q = () => {
1101
- f(!0);
1102
- }, e[32] = q) : q = e[32], v = q;
1103
- let W;
1104
- e[33] === Symbol.for("react.memo_cache_sentinel") ? (W = () => {
1105
- f(!1);
1106
- }, e[33] = W) : W = e[33], x = W;
1107
- let te;
1108
- e[34] !== c ? (te = (G) => {
1109
- x(), c(G);
1110
- }, e[34] = c, e[35] = te) : te = e[35], y = te;
1111
- const pe = r?.mode?.title ?? re.options.mode.title;
1112
- I = r?.units?.title ?? re.options.units.title, d = $.length > 1 && S.length > 1;
1113
- let oe;
1114
- e[36] !== a || e[37] !== i ? (oe = i.find((G) => G.value === a) ?? i[0], e[36] = a, e[37] = i, e[38] = oe) : oe = e[38], _ = oe, e[39] === Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ l(se, { sx: Q.options.icon, onClick: ee, children: /* @__PURE__ */ l(Pe, {}) }), e[39] = D) : D = e[39], b = $e, g = "measurement-menu", C = u, w = Z, O = ie, e[40] === Symbol.for("react.memo_cache_sentinel") ? (T = {
1115
- "aria-labelledby": "basic-button",
1116
- sx: Q.options.menu
1117
- }, e[40] = T) : T = e[40], m = $.length > 1 && /* @__PURE__ */ L(N, { children: [
1118
- /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: Q.options.title, children: pe }),
1119
- $.map((G) => {
1120
- const he = (r?.mode?.options ?? re.options.mode.options)[G.value];
1121
- return /* @__PURE__ */ L(ge, { onClick: (Me) => H(Me, G), selected: G.value === o, children: [
1122
- /* @__PURE__ */ l(je, { sx: Q.options.icons, children: /* @__PURE__ */ l(_e, { children: G.icon }) }),
1123
- /* @__PURE__ */ l(be, { children: he })
1124
- ] }, G.value);
1125
- })
1126
- ] });
1127
- }
1128
- e[0] = u, e[1] = r?.mode?.options, e[2] = r?.mode?.title, e[3] = r?.units?.title, e[4] = o, e[5] = n, e[6] = s, e[7] = c, e[8] = a, e[9] = i, e[10] = b, e[11] = y, e[12] = v, e[13] = x, e[14] = d, e[15] = m, e[16] = g, e[17] = C, e[18] = w, e[19] = O, e[20] = T, e[21] = D, e[22] = A, e[23] = _, e[24] = I, e[25] = S;
1129
- } else
1130
- b = e[10], y = e[11], v = e[12], x = e[13], d = e[14], m = e[15], g = e[16], C = e[17], w = e[18], O = e[19], T = e[20], D = e[21], A = e[22], _ = e[23], I = e[24], S = e[25];
1131
- if (A !== Symbol.for("react.early_return_sentinel"))
1132
- return A;
1133
- let M;
1134
- e[41] !== d ? (M = d && /* @__PURE__ */ l(ae, {}), e[41] = d, e[42] = M) : M = e[42];
1135
- let R;
1136
- e[43] !== y || e[44] !== v || e[45] !== x || e[46] !== r || e[47] !== p || e[48] !== _ || e[49] !== I || e[50] !== i || e[51] !== S.length ? (R = S.length > 1 && /* @__PURE__ */ L(N, { children: [
1137
- /* @__PURE__ */ L(ge, { onClick: v, children: [
1138
- /* @__PURE__ */ l(be, { children: I }),
1139
- /* @__PURE__ */ l(Y, { variant: "caption", fontWeight: 500, sx: Q.options.tag, children: _.short })
1140
- ] }),
1141
- /* @__PURE__ */ l(Zt, { open: p, labels: r, units: i, unitSelectedValue: _, onClose: x, onSubmit: y })
1142
- ] }), e[43] = y, e[44] = v, e[45] = x, e[46] = r, e[47] = p, e[48] = _, e[49] = I, e[50] = i, e[51] = S.length, e[52] = R) : R = e[52];
1143
- let k;
1144
- e[53] !== m || e[54] !== R || e[55] !== M ? (k = /* @__PURE__ */ L("div", { children: [
1145
- m,
1146
- M,
1147
- R
1148
- ] }), e[53] = m, e[54] = R, e[55] = M, e[56] = k) : k = e[56];
1149
- let E;
1150
- e[57] !== b || e[58] !== k || e[59] !== g || e[60] !== C || e[61] !== w || e[62] !== O || e[63] !== T ? (E = /* @__PURE__ */ l(b, { id: g, anchorEl: C, open: w, onClose: O, MenuListProps: T, children: k }), e[57] = b, e[58] = k, e[59] = g, e[60] = C, e[61] = w, e[62] = O, e[63] = T, e[64] = E) : E = e[64];
1112
+ } = t, [d, f] = oe(null), [h, p] = oe(!1);
1113
+ let y;
1114
+ e[0] !== o ? (y = Object.values(o), e[0] = o, e[1] = y) : y = e[1];
1115
+ const x = y;
1116
+ let w;
1117
+ e[2] !== i ? (w = Object.values(i), e[2] = i, e[3] = w) : w = e[3];
1118
+ const b = w;
1119
+ if (!(x.length > 1 || b.length > 1))
1120
+ return null;
1121
+ const m = !!d;
1122
+ let g;
1123
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (g = (U) => {
1124
+ f(U.currentTarget);
1125
+ }, e[4] = g) : g = e[4];
1126
+ const M = g;
1127
+ let v;
1128
+ e[5] === Symbol.for("react.memo_cache_sentinel") ? (v = () => {
1129
+ f(null);
1130
+ }, e[5] = v) : v = e[5];
1131
+ const I = v;
1132
+ let A;
1133
+ e[6] !== a ? (A = (U, X) => {
1134
+ U.preventDefault(), a(X.value), I();
1135
+ }, e[6] = a, e[7] = A) : A = e[7];
1136
+ const C = A;
1137
+ let _;
1138
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (_ = () => {
1139
+ p(!0);
1140
+ }, e[8] = _) : _ = e[8];
1141
+ const T = _;
1142
+ let S;
1143
+ e[9] === Symbol.for("react.memo_cache_sentinel") ? (S = () => {
1144
+ p(!1);
1145
+ }, e[9] = S) : S = e[9];
1146
+ const D = S;
1147
+ let O;
1148
+ e[10] !== c ? (O = (U) => {
1149
+ D(), c(U);
1150
+ }, e[10] = c, e[11] = O) : O = e[11];
1151
+ const V = O, L = s?.mode?.title ?? se.options.mode.title, P = s?.units?.title ?? se.options.units.title, R = x.length > 1 && b.length > 1;
1151
1152
  let j;
1152
- return e[65] !== E || e[66] !== D ? (j = /* @__PURE__ */ L(N, { children: [
1153
- D,
1154
- E
1155
- ] }), e[65] = E, e[66] = D, e[67] = j) : j = e[67], j;
1153
+ e[12] !== r || e[13] !== i ? (j = i.find((U) => U.value === r) ?? i[0], e[12] = r, e[13] = i, e[14] = j) : j = e[14];
1154
+ const $ = j;
1155
+ let k;
1156
+ e[15] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ n(re, { sx: ee.options.icon, onClick: M, children: /* @__PURE__ */ n($e, {}) }), e[15] = k) : k = e[15];
1157
+ let B;
1158
+ e[16] === Symbol.for("react.memo_cache_sentinel") ? (B = {
1159
+ "aria-labelledby": "basic-button",
1160
+ sx: ee.options.menu
1161
+ }, e[16] = B) : B = e[16];
1162
+ let W;
1163
+ e[17] !== C || e[18] !== s?.mode?.options || e[19] !== l || e[20] !== L || e[21] !== x ? (W = x.length > 1 && /* @__PURE__ */ E(H, { children: [
1164
+ /* @__PURE__ */ n(Q, { variant: "subtitle2", color: "text.secondary", sx: ee.options.title, children: L }),
1165
+ x.map((U) => {
1166
+ const q = (s?.mode?.options ?? se.options.mode.options)[U.value];
1167
+ return /* @__PURE__ */ E(ve, { onClick: (ne) => C(ne, U), selected: U.value === l, children: [
1168
+ /* @__PURE__ */ n(Ze, { sx: ee.options.icons, children: /* @__PURE__ */ n(De, { children: U.icon }) }),
1169
+ /* @__PURE__ */ n(ye, { children: q })
1170
+ ] }, U.value);
1171
+ })
1172
+ ] }), e[17] = C, e[18] = s?.mode?.options, e[19] = l, e[20] = L, e[21] = x, e[22] = W) : W = e[22];
1173
+ let z;
1174
+ e[23] !== R ? (z = R && /* @__PURE__ */ n(ae, {}), e[23] = R, e[24] = z) : z = e[24];
1175
+ let G;
1176
+ e[25] !== V || e[26] !== s || e[27] !== h || e[28] !== $ || e[29] !== P || e[30] !== i || e[31] !== b.length ? (G = b.length > 1 && /* @__PURE__ */ E(H, { children: [
1177
+ /* @__PURE__ */ E(ve, { onClick: T, children: [
1178
+ /* @__PURE__ */ n(ye, { children: P }),
1179
+ /* @__PURE__ */ n(Q, { variant: "caption", fontWeight: 500, sx: ee.options.tag, children: $.short })
1180
+ ] }),
1181
+ /* @__PURE__ */ n(Gt, { open: h, labels: s, units: i, unitSelectedValue: $, onClose: D, onSubmit: V })
1182
+ ] }), e[25] = V, e[26] = s, e[27] = h, e[28] = $, e[29] = P, e[30] = i, e[31] = b.length, e[32] = G) : G = e[32];
1183
+ let N;
1184
+ e[33] !== W || e[34] !== z || e[35] !== G ? (N = /* @__PURE__ */ E("div", { children: [
1185
+ W,
1186
+ z,
1187
+ G
1188
+ ] }), e[33] = W, e[34] = z, e[35] = G, e[36] = N) : N = e[36];
1189
+ let F;
1190
+ return e[37] !== d || e[38] !== m || e[39] !== N ? (F = /* @__PURE__ */ E(H, { children: [
1191
+ k,
1192
+ /* @__PURE__ */ n(je, { id: "measurement-menu", anchorEl: d, open: m, onClose: I, MenuListProps: B, children: N })
1193
+ ] }), e[37] = d, e[38] = m, e[39] = N, e[40] = F) : F = e[40], F;
1156
1194
  }
1157
- function Zt({
1158
- open: t,
1159
- labels: e,
1160
- units: n,
1161
- unitSelectedValue: o,
1162
- onClose: i,
1163
- onSubmit: a
1164
- }) {
1165
- const [r, s] = ne("metric"), c = Ce(() => n.filter((x) => x.system === r), [r, n]), u = (x, d) => {
1166
- s(d);
1167
- }, h = e?.units?.modal?.options ?? re.options.units.modal.options, p = h[r].options, f = e?.units?.modal?.title ?? re.options.units.modal.title, b = e?.units?.modal?.subtitle ?? re.options.units.modal.subtitle, y = e?.units?.modal?.apply ?? re.options.units.modal.apply, v = o.system === r ? o : c[0];
1168
- return /* @__PURE__ */ L(Je, { open: t, component: X, onClose: i, maxWidth: "xs", PaperProps: {
1195
+ function Gt(t) {
1196
+ const e = Z(48), {
1197
+ open: o,
1198
+ labels: l,
1199
+ units: i,
1200
+ unitSelectedValue: r,
1201
+ onClose: s,
1202
+ onSubmit: a
1203
+ } = t, [c, d] = oe("metric");
1204
+ let f;
1205
+ if (e[0] !== c || e[1] !== i) {
1206
+ let k;
1207
+ e[3] !== c ? (k = (B) => B.system === c, e[3] = c, e[4] = k) : k = e[4], f = i.filter(k), e[0] = c, e[1] = i, e[2] = f;
1208
+ } else
1209
+ f = e[2];
1210
+ const h = f;
1211
+ let p;
1212
+ e[5] === Symbol.for("react.memo_cache_sentinel") ? (p = (k, B) => {
1213
+ d(B);
1214
+ }, e[5] = p) : p = e[5];
1215
+ const y = p, x = l?.units?.modal?.options ?? se.options.units.modal.options, w = x[c].options, b = l?.units?.modal?.title ?? se.options.units.modal.title, u = l?.units?.modal?.subtitle ?? se.options.units.modal.subtitle, m = l?.units?.modal?.apply ?? se.options.units.modal.apply, g = r.system === c ? r : h[0];
1216
+ let M;
1217
+ e[6] !== a ? (M = {
1169
1218
  component: "form",
1170
- onSubmit: (x) => {
1171
- x.preventDefault();
1172
- const d = new FormData(x.currentTarget);
1173
- a(d.get("unit-value"));
1219
+ onSubmit: (k) => {
1220
+ k.preventDefault();
1221
+ const B = new FormData(k.currentTarget);
1222
+ a(B.get("unit-value"));
1174
1223
  }
1175
- }, children: [
1176
- /* @__PURE__ */ L(et, { sx: Q.options.modal.title, children: [
1177
- f,
1178
- /* @__PURE__ */ l(se, { onClick: i, children: /* @__PURE__ */ l(Be, {}) })
1179
- ] }),
1180
- /* @__PURE__ */ L(tt, { sx: Q.options.modal.content, children: [
1181
- /* @__PURE__ */ l(Y, { sx: Q.options.modal.subtitle, children: b }),
1182
- /* @__PURE__ */ L(Ze, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: u, "aria-label": "system", sx: Q.options.modal.toggle, children: [
1183
- /* @__PURE__ */ l(ve, { value: "metric", children: h.metric.title }),
1184
- /* @__PURE__ */ l(ve, { value: "imperial", children: h.imperial.title })
1185
- ] }),
1186
- /* @__PURE__ */ l(ot, { children: /* @__PURE__ */ l(lt, { "aria-labelledby": "unit-value", defaultValue: v?.value, name: "unit-value", sx: Q.options.modal.optionsGroup, children: c.map((x) => {
1187
- const d = p[x.value];
1188
- return /* @__PURE__ */ l(nt, { value: x.value, control: /* @__PURE__ */ l(it, {}), label: d }, x.value);
1189
- }) }) }, v?.value)
1190
- ] }),
1191
- /* @__PURE__ */ l(rt, { sx: Q.options.modal.actions, children: /* @__PURE__ */ l(we, { variant: "contained", type: "submit", children: y }) })
1192
- ] });
1224
+ }, e[6] = a, e[7] = M) : M = e[7];
1225
+ let v;
1226
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ n(Be, {}), e[8] = v) : v = e[8];
1227
+ let I;
1228
+ e[9] !== s ? (I = /* @__PURE__ */ n(re, { onClick: s, children: v }), e[9] = s, e[10] = I) : I = e[10];
1229
+ let A;
1230
+ e[11] !== b || e[12] !== I ? (A = /* @__PURE__ */ E(ot, { sx: ee.options.modal.title, children: [
1231
+ b,
1232
+ I
1233
+ ] }), e[11] = b, e[12] = I, e[13] = A) : A = e[13];
1234
+ let C;
1235
+ e[14] !== u ? (C = /* @__PURE__ */ n(Q, { sx: ee.options.modal.subtitle, children: u }), e[14] = u, e[15] = C) : C = e[15];
1236
+ let _;
1237
+ e[16] !== x.metric.title ? (_ = /* @__PURE__ */ n(xe, { value: "metric", children: x.metric.title }), e[16] = x.metric.title, e[17] = _) : _ = e[17];
1238
+ let T;
1239
+ e[18] !== x.imperial.title ? (T = /* @__PURE__ */ n(xe, { value: "imperial", children: x.imperial.title }), e[18] = x.imperial.title, e[19] = T) : T = e[19];
1240
+ let S;
1241
+ e[20] !== c || e[21] !== _ || e[22] !== T ? (S = /* @__PURE__ */ E(Ve, { color: "primary", value: c, exclusive: !0, fullWidth: !0, onChange: y, "aria-label": "system", sx: ee.options.modal.toggle, children: [
1242
+ _,
1243
+ T
1244
+ ] }), e[20] = c, e[21] = _, e[22] = T, e[23] = S) : S = e[23];
1245
+ const D = g?.value, O = g?.value;
1246
+ let V;
1247
+ if (e[24] !== h || e[25] !== w) {
1248
+ let k;
1249
+ e[27] !== w ? (k = (B) => {
1250
+ const W = w[B.value];
1251
+ return /* @__PURE__ */ n(nt, { value: B.value, control: /* @__PURE__ */ n(it, {}), label: W }, B.value);
1252
+ }, e[27] = w, e[28] = k) : k = e[28], V = h.map(k), e[24] = h, e[25] = w, e[26] = V;
1253
+ } else
1254
+ V = e[26];
1255
+ let L;
1256
+ e[29] !== O || e[30] !== V ? (L = /* @__PURE__ */ n(st, { "aria-labelledby": "unit-value", defaultValue: O, name: "unit-value", sx: ee.options.modal.optionsGroup, children: V }), e[29] = O, e[30] = V, e[31] = L) : L = e[31];
1257
+ let P;
1258
+ e[32] !== D || e[33] !== L ? (P = /* @__PURE__ */ n(rt, { children: L }, D), e[32] = D, e[33] = L, e[34] = P) : P = e[34];
1259
+ let R;
1260
+ e[35] !== S || e[36] !== P || e[37] !== C ? (R = /* @__PURE__ */ E(at, { sx: ee.options.modal.content, children: [
1261
+ C,
1262
+ S,
1263
+ P
1264
+ ] }), e[35] = S, e[36] = P, e[37] = C, e[38] = R) : R = e[38];
1265
+ let j;
1266
+ e[39] !== m ? (j = /* @__PURE__ */ n(ct, { sx: ee.options.modal.actions, children: /* @__PURE__ */ n(Te, { variant: "contained", type: "submit", children: m }) }), e[39] = m, e[40] = j) : j = e[40];
1267
+ let $;
1268
+ return e[41] !== s || e[42] !== o || e[43] !== R || e[44] !== j || e[45] !== M || e[46] !== A ? ($ = /* @__PURE__ */ E(dt, { open: o, component: K, onClose: s, maxWidth: "xs", PaperProps: M, children: [
1269
+ A,
1270
+ R,
1271
+ j
1272
+ ] }), e[41] = s, e[42] = o, e[43] = R, e[44] = j, e[45] = M, e[46] = A, e[47] = $) : $ = e[47], $;
1193
1273
  }
1194
- const Vt = {
1274
+ const zt = {
1195
1275
  enabled: "Show your current location",
1196
1276
  disabled: "Location unavailable"
1197
- }, Ut = "geolocation";
1198
- function mo(t) {
1199
- const e = P(25), {
1200
- disabled: n,
1201
- labels: o,
1277
+ }, Nt = "geolocation";
1278
+ function vl(t) {
1279
+ const e = Z(25), {
1280
+ disabled: o,
1281
+ labels: l,
1202
1282
  PaperProps: i,
1203
- TooltipProps: a,
1204
- watch: r,
1205
- onChange: s,
1283
+ TooltipProps: r,
1284
+ watch: s,
1285
+ onChange: a,
1206
1286
  onError: c
1207
- } = t, u = Oe(null), h = "geolocation" in navigator, [p, f] = ne(h);
1208
- let b, y;
1209
- e[0] !== c ? (b = () => (h && navigator.permissions.query({
1287
+ } = t, d = Ie(null), f = "geolocation" in navigator, [h, p] = oe(f);
1288
+ let y, x;
1289
+ e[0] !== c ? (y = () => (f && navigator.permissions.query({
1210
1290
  name: "geolocation"
1211
- }).then((M) => {
1212
- f(M.state === "granted"), M.onchange = () => {
1213
- f(M.state === "granted");
1291
+ }).then((O) => {
1292
+ p(O.state === "granted"), O.onchange = () => {
1293
+ p(O.state === "granted");
1214
1294
  };
1215
- }).catch((M) => {
1216
- f(!1), c?.(M);
1295
+ }).catch((O) => {
1296
+ p(!1), c?.(O);
1217
1297
  }), () => {
1218
- u.current && navigator.geolocation.clearWatch(u.current);
1219
- }), y = [h, c], e[0] = c, e[1] = b, e[2] = y) : (b = e[1], y = e[2]), De(b, y);
1220
- let v;
1221
- e[3] !== s ? (v = (M) => {
1222
- s(M.coords);
1223
- }, e[3] = s, e[4] = v) : v = e[4];
1224
- const x = v;
1225
- let d;
1226
- e[5] !== c ? (d = (M) => {
1227
- f(!1), c?.(M);
1228
- }, e[5] = c, e[6] = d) : d = e[6];
1229
- const m = d;
1298
+ d.current && navigator.geolocation.clearWatch(d.current);
1299
+ }), x = [f, c], e[0] = c, e[1] = y, e[2] = x) : (y = e[1], x = e[2]), We(y, x);
1300
+ let w;
1301
+ e[3] !== a ? (w = (O) => {
1302
+ a(O.coords);
1303
+ }, e[3] = a, e[4] = w) : w = e[4];
1304
+ const b = w;
1305
+ let u;
1306
+ e[5] !== c ? (u = (O) => {
1307
+ p(!1), c?.(O);
1308
+ }, e[5] = c, e[6] = u) : u = e[6];
1309
+ const m = u;
1230
1310
  let g;
1231
- e[7] !== m || e[8] !== x || e[9] !== r ? (g = () => {
1232
- if (u.current && navigator.geolocation.clearWatch(u.current), r) {
1233
- u.current = navigator.geolocation.watchPosition(x, m);
1311
+ e[7] !== m || e[8] !== b || e[9] !== s ? (g = () => {
1312
+ if (d.current && navigator.geolocation.clearWatch(d.current), s) {
1313
+ d.current = navigator.geolocation.watchPosition(b, m);
1234
1314
  return;
1235
1315
  }
1236
- navigator.geolocation.getCurrentPosition(x, m);
1237
- }, e[7] = m, e[8] = x, e[9] = r, e[10] = g) : g = e[10];
1238
- const C = g, O = (o?.tooltip ?? Vt)[p ? "enabled" : "disabled"], T = o?.ariaLabel ?? Ut, D = !h || n;
1239
- let A;
1240
- e[11] !== p ? (A = p ? /* @__PURE__ */ l(Ne, {}) : /* @__PURE__ */ l(Fe, {}), e[11] = p, e[12] = A) : A = e[12];
1316
+ navigator.geolocation.getCurrentPosition(b, m);
1317
+ }, e[7] = m, e[8] = b, e[9] = s, e[10] = g) : g = e[10];
1318
+ const M = g, I = (l?.tooltip ?? zt)[h ? "enabled" : "disabled"], A = l?.ariaLabel ?? Nt, C = !f || o;
1241
1319
  let _;
1242
- e[13] !== C || e[14] !== T || e[15] !== D || e[16] !== A ? (_ = /* @__PURE__ */ l(se, { onClick: C, "aria-label": T, disabled: D, children: A }), e[13] = C, e[14] = T, e[15] = D, e[16] = A, e[17] = _) : _ = e[17];
1243
- let I;
1244
- e[18] !== a || e[19] !== _ || e[20] !== O ? (I = /* @__PURE__ */ l(de, { arrow: !0, placement: "right", title: O, ...a, children: _ }), e[18] = a, e[19] = _, e[20] = O, e[21] = I) : I = e[21];
1320
+ e[11] !== h ? (_ = h ? /* @__PURE__ */ n(qe, {}) : /* @__PURE__ */ n(Ke, {}), e[11] = h, e[12] = _) : _ = e[12];
1321
+ let T;
1322
+ e[13] !== M || e[14] !== A || e[15] !== C || e[16] !== _ ? (T = /* @__PURE__ */ n(re, { onClick: M, "aria-label": A, disabled: C, children: _ }), e[13] = M, e[14] = A, e[15] = C, e[16] = _, e[17] = T) : T = e[17];
1245
1323
  let S;
1246
- return e[22] !== i || e[23] !== I ? (S = /* @__PURE__ */ l(ye, { ...i, children: I }), e[22] = i, e[23] = I, e[24] = S) : S = e[24], S;
1324
+ e[18] !== r || e[19] !== T || e[20] !== I ? (S = /* @__PURE__ */ n(fe, { arrow: !0, placement: "right", title: I, ...r, children: T }), e[18] = r, e[19] = T, e[20] = I, e[21] = S) : S = e[21];
1325
+ let D;
1326
+ return e[22] !== i || e[23] !== S ? (D = /* @__PURE__ */ n(we, { ...i, children: S }), e[22] = i, e[23] = S, e[24] = D) : D = e[24], D;
1247
1327
  }
1248
- const Ae = {
1328
+ const Oe = {
1249
1329
  zoom: {
1250
1330
  position: "relative",
1251
1331
  height: ({
@@ -1277,172 +1357,172 @@ const Ae = {
1277
1357
  position: "absolute"
1278
1358
  }
1279
1359
  };
1280
- function go(t) {
1281
- const e = P(40), {
1282
- zoom: n,
1283
- disabled: o,
1360
+ function yl(t) {
1361
+ const e = Z(40), {
1362
+ zoom: o,
1363
+ disabled: l,
1284
1364
  direction: i,
1285
- reverse: a,
1286
- isLoading: r,
1287
- maxZoom: s,
1365
+ reverse: r,
1366
+ isLoading: s,
1367
+ maxZoom: a,
1288
1368
  minZoom: c,
1289
- PaperProps: u,
1290
- ResetViewProps: h,
1291
- showZoom: p,
1292
- onChange: f,
1293
- onReset: b
1294
- } = t, y = i === void 0 ? "vertical" : i, v = a === void 0 ? !1 : a, x = s === void 0 ? 24 : s, d = c === void 0 ? 0 : c;
1369
+ PaperProps: d,
1370
+ ResetViewProps: f,
1371
+ showZoom: h,
1372
+ onChange: p,
1373
+ onReset: y
1374
+ } = t, x = i === void 0 ? "vertical" : i, w = r === void 0 ? !1 : r, b = a === void 0 ? 24 : a, u = c === void 0 ? 0 : c;
1295
1375
  let m;
1296
- e[0] !== h ? (m = h === void 0 ? {
1297
- Icon: He
1298
- } : h, e[0] = h, e[1] = m) : m = e[1];
1299
- const g = m, C = p === void 0 ? !0 : p;
1300
- let w;
1301
- e[2] !== x || e[3] !== f || e[4] !== n ? (w = () => {
1302
- const Z = Math.min(x, n + 1);
1303
- f(Z);
1304
- }, e[2] = x, e[3] = f, e[4] = n, e[5] = w) : w = e[5];
1305
- const O = w;
1306
- let T;
1307
- e[6] !== d || e[7] !== f || e[8] !== n ? (T = () => {
1308
- const Z = Math.max(d, n - 1);
1309
- f(Z);
1310
- }, e[6] = d, e[7] = f, e[8] = n, e[9] = T) : T = e[9];
1311
- const D = T, A = Math.floor(n), _ = y === "vertical" ? "horizontal" : "vertical";
1312
- let I = y === "vertical" ? "column" : "row";
1313
- v && (I = I + "-reverse");
1314
- let S;
1315
- e[10] !== I ? (S = {
1316
- ...Ae.paper,
1317
- flexDirection: I
1318
- }, e[10] = I, e[11] = S) : S = e[11];
1319
- let M;
1320
- e[12] !== g || e[13] !== o || e[14] !== _ || e[15] !== b ? (M = b && /* @__PURE__ */ L(N, { children: [
1321
- /* @__PURE__ */ l(se, { onClick: b, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(g.Icon, {}) }),
1322
- /* @__PURE__ */ l(ae, { orientation: _, flexItem: !0 })
1323
- ] }), e[12] = g, e[13] = o, e[14] = _, e[15] = b, e[16] = M) : M = e[16];
1376
+ e[0] !== f ? (m = f === void 0 ? {
1377
+ Icon: Ye
1378
+ } : f, e[0] = f, e[1] = m) : m = e[1];
1379
+ const g = m, M = h === void 0 ? !0 : h;
1380
+ let v;
1381
+ e[2] !== b || e[3] !== p || e[4] !== o ? (v = () => {
1382
+ const B = Math.min(b, o + 1);
1383
+ p(B);
1384
+ }, e[2] = b, e[3] = p, e[4] = o, e[5] = v) : v = e[5];
1385
+ const I = v;
1386
+ let A;
1387
+ e[6] !== u || e[7] !== p || e[8] !== o ? (A = () => {
1388
+ const B = Math.max(u, o - 1);
1389
+ p(B);
1390
+ }, e[6] = u, e[7] = p, e[8] = o, e[9] = A) : A = e[9];
1391
+ const C = A, _ = Math.floor(o), T = x === "vertical" ? "horizontal" : "vertical";
1392
+ let S = x === "vertical" ? "column" : "row";
1393
+ w && (S = S + "-reverse");
1394
+ let D;
1395
+ e[10] !== S ? (D = {
1396
+ ...Oe.paper,
1397
+ flexDirection: S
1398
+ }, e[10] = S, e[11] = D) : D = e[11];
1399
+ let O;
1400
+ e[12] !== g || e[13] !== l || e[14] !== T || e[15] !== y ? (O = y && /* @__PURE__ */ E(H, { children: [
1401
+ /* @__PURE__ */ n(re, { onClick: y, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ n(g.Icon, {}) }),
1402
+ /* @__PURE__ */ n(ae, { orientation: T, flexItem: !0 })
1403
+ ] }), e[12] = g, e[13] = l, e[14] = T, e[15] = y, e[16] = O) : O = e[16];
1404
+ let V;
1405
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ n(Qe, {}), e[17] = V) : V = e[17];
1406
+ let L;
1407
+ e[18] !== l || e[19] !== I ? (L = /* @__PURE__ */ n(re, { onClick: I, "aria-label": "Increase zoom", disabled: l, children: V }), e[18] = l, e[19] = I, e[20] = L) : L = e[20];
1408
+ let P;
1409
+ e[21] !== T ? (P = /* @__PURE__ */ n(ae, { orientation: T, flexItem: !0 }), e[21] = T, e[22] = P) : P = e[22];
1324
1410
  let R;
1325
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ l(Xe, {}), e[17] = R) : R = e[17];
1326
- let k;
1327
- e[18] !== o || e[19] !== O ? (k = /* @__PURE__ */ l(se, { onClick: O, "aria-label": "Increase zoom", disabled: o, children: R }), e[18] = o, e[19] = O, e[20] = k) : k = e[20];
1328
- let E;
1329
- e[21] !== _ ? (E = /* @__PURE__ */ l(ae, { orientation: _, flexItem: !0 }), e[21] = _, e[22] = E) : E = e[22];
1330
- let j;
1331
- e[23] !== A || e[24] !== _ || e[25] !== r || e[26] !== C ? (j = C && /* @__PURE__ */ L(N, { children: [
1332
- /* @__PURE__ */ L(X, { sx: Ae.zoom, children: [
1333
- /* @__PURE__ */ l(Y, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: A }),
1334
- r && /* @__PURE__ */ l(st, { sx: Ae.circularProgress, variant: "indeterminate", size: 24 })
1411
+ e[23] !== _ || e[24] !== T || e[25] !== s || e[26] !== M ? (R = M && /* @__PURE__ */ E(H, { children: [
1412
+ /* @__PURE__ */ E(K, { sx: Oe.zoom, children: [
1413
+ /* @__PURE__ */ n(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: _ }),
1414
+ s && /* @__PURE__ */ n(ut, { sx: Oe.circularProgress, variant: "indeterminate", size: 24 })
1335
1415
  ] }),
1336
- /* @__PURE__ */ l(ae, { orientation: _, flexItem: !0 })
1337
- ] }), e[23] = A, e[24] = _, e[25] = r, e[26] = C, e[27] = j) : j = e[27];
1416
+ /* @__PURE__ */ n(ae, { orientation: T, flexItem: !0 })
1417
+ ] }), e[23] = _, e[24] = T, e[25] = s, e[26] = M, e[27] = R) : R = e[27];
1418
+ let j;
1419
+ e[28] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ n(Je, {}), e[28] = j) : j = e[28];
1338
1420
  let $;
1339
- e[28] === Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ l(qe, {}), e[28] = $) : $ = e[28];
1340
- let B;
1341
- e[29] !== D || e[30] !== o ? (B = /* @__PURE__ */ l(se, { onClick: D, "aria-label": "Decrease zoom", disabled: o, children: $ }), e[29] = D, e[30] = o, e[31] = B) : B = e[31];
1342
- let V;
1343
- return e[32] !== u || e[33] !== S || e[34] !== M || e[35] !== k || e[36] !== E || e[37] !== j || e[38] !== B ? (V = /* @__PURE__ */ L(ye, { sx: S, ...u, children: [
1344
- M,
1345
- k,
1346
- E,
1347
- j,
1348
- B
1349
- ] }), e[32] = u, e[33] = S, e[34] = M, e[35] = k, e[36] = E, e[37] = j, e[38] = B, e[39] = V) : V = e[39], V;
1421
+ e[29] !== C || e[30] !== l ? ($ = /* @__PURE__ */ n(re, { onClick: C, "aria-label": "Decrease zoom", disabled: l, children: j }), e[29] = C, e[30] = l, e[31] = $) : $ = e[31];
1422
+ let k;
1423
+ return e[32] !== d || e[33] !== D || e[34] !== O || e[35] !== L || e[36] !== P || e[37] !== R || e[38] !== $ ? (k = /* @__PURE__ */ E(we, { sx: D, ...d, children: [
1424
+ O,
1425
+ L,
1426
+ P,
1427
+ R,
1428
+ $
1429
+ ] }), e[32] = d, e[33] = D, e[34] = O, e[35] = L, e[36] = P, e[37] = R, e[38] = $, e[39] = k) : k = e[39], k;
1350
1430
  }
1351
- function Wt(t) {
1352
- const e = P(4), {
1353
- length: n
1354
- } = t, o = n === void 0 ? 5 : n;
1431
+ function Ft(t) {
1432
+ const e = Z(4), {
1433
+ length: o
1434
+ } = t, l = o === void 0 ? 5 : o;
1355
1435
  let i;
1356
- e[0] !== o ? (i = new Array(o).fill(null).map(Gt), e[0] = o, e[1] = i) : i = e[1];
1357
- let a;
1358
- return e[2] !== i ? (a = /* @__PURE__ */ l(X, { "aria-label": "List Data skeleton", children: i }), e[2] = i, e[3] = a) : a = e[3], a;
1436
+ e[0] !== l ? (i = new Array(l).fill(null).map(Ht), e[0] = l, e[1] = i) : i = e[1];
1437
+ let r;
1438
+ return e[2] !== i ? (r = /* @__PURE__ */ n(K, { "aria-label": "List Data skeleton", children: i }), e[2] = i, e[3] = r) : r = e[3], r;
1359
1439
  }
1360
- function Gt(t, e) {
1361
- return /* @__PURE__ */ L(me, { container: !0, spacing: 1, children: [
1362
- /* @__PURE__ */ L(me, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1363
- /* @__PURE__ */ l(Se, { width: Ht(e) ? 72 : 48, height: 20 }),
1364
- /* @__PURE__ */ l(Se, { width: 48, height: 8 })
1440
+ function Ht(t, e) {
1441
+ return /* @__PURE__ */ E(be, { container: !0, spacing: 1, children: [
1442
+ /* @__PURE__ */ E(be, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1443
+ /* @__PURE__ */ n(Ae, { width: Yt(e) ? 72 : 48, height: 20 }),
1444
+ /* @__PURE__ */ n(Ae, { width: 48, height: 8 })
1365
1445
  ] }),
1366
- /* @__PURE__ */ l(Se, { sx: {
1367
- height: Ft,
1368
- marginTop: Nt,
1369
- marginBottom: zt,
1446
+ /* @__PURE__ */ n(Ae, { sx: {
1447
+ height: Kt,
1448
+ marginTop: qt,
1449
+ marginBottom: Xt,
1370
1450
  width: "100%"
1371
1451
  } })
1372
1452
  ] }, e);
1373
1453
  }
1374
- function zt(t) {
1454
+ function Xt(t) {
1375
1455
  const {
1376
1456
  spacing: e
1377
1457
  } = t;
1378
1458
  return e(1.75);
1379
1459
  }
1380
- function Nt(t) {
1460
+ function qt(t) {
1381
1461
  const {
1382
1462
  spacing: e
1383
1463
  } = t;
1384
1464
  return e(1.25);
1385
1465
  }
1386
- function Ft(t) {
1466
+ function Kt(t) {
1387
1467
  const {
1388
1468
  spacing: e
1389
1469
  } = t;
1390
1470
  return e(0.5);
1391
1471
  }
1392
- function Ht(t) {
1472
+ function Yt(t) {
1393
1473
  return t % 2 === 1;
1394
1474
  }
1395
- function Xt(t) {
1396
- const e = P(13), {
1397
- title: n,
1398
- body: o,
1475
+ function Qt(t) {
1476
+ const e = Z(13), {
1477
+ title: o,
1478
+ body: l,
1399
1479
  severity: i
1400
- } = t, a = n === void 0 ? "No data available" : n, r = o === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : o;
1480
+ } = t, r = o === void 0 ? "No data available" : o, s = l === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : l;
1401
1481
  if (i) {
1482
+ let f;
1483
+ e[0] !== s ? (f = /* @__PURE__ */ n(ke, { children: s }), e[0] = s, e[1] = f) : f = e[1];
1402
1484
  let h;
1403
- e[0] !== r ? (h = /* @__PURE__ */ l(Re, { children: r }), e[0] = r, e[1] = h) : h = e[1];
1404
- let p;
1405
- return e[2] !== i || e[3] !== h || e[4] !== a ? (p = /* @__PURE__ */ l(at, { title: a, severity: i, children: h }), e[2] = i, e[3] = h, e[4] = a, e[5] = p) : p = e[5], p;
1485
+ return e[2] !== i || e[3] !== f || e[4] !== r ? (h = /* @__PURE__ */ n(ft, { title: r, severity: i, children: f }), e[2] = i, e[3] = f, e[4] = r, e[5] = h) : h = e[5], h;
1406
1486
  }
1407
- let s;
1408
- e[6] !== a ? (s = a && /* @__PURE__ */ l(Y, { variant: "body2", children: a }), e[6] = a, e[7] = s) : s = e[7];
1487
+ let a;
1488
+ e[6] !== r ? (a = r && /* @__PURE__ */ n(Q, { variant: "body2", children: r }), e[6] = r, e[7] = a) : a = e[7];
1409
1489
  let c;
1410
- e[8] !== r ? (c = /* @__PURE__ */ l(Re, { color: "textSecondary", children: r }), e[8] = r, e[9] = c) : c = e[9];
1411
- let u;
1412
- return e[10] !== s || e[11] !== c ? (u = /* @__PURE__ */ L(X, { children: [
1413
- s,
1490
+ e[8] !== s ? (c = /* @__PURE__ */ n(ke, { color: "textSecondary", children: s }), e[8] = s, e[9] = c) : c = e[9];
1491
+ let d;
1492
+ return e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ E(K, { children: [
1493
+ a,
1414
1494
  c
1415
- ] }), e[10] = s, e[11] = c, e[12] = u) : u = e[12], u;
1495
+ ] }), e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
1416
1496
  }
1417
- function Re(t) {
1418
- const e = P(5), {
1419
- color: n,
1420
- children: o
1497
+ function ke(t) {
1498
+ const e = Z(5), {
1499
+ color: o,
1500
+ children: l
1421
1501
  } = t;
1422
- if (o) {
1423
- const a = n ?? "inherit";
1424
- let r;
1425
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
1426
- fontWeight: "normal"
1427
- }, e[0] = r) : r = e[0];
1502
+ if (l) {
1503
+ const r = o ?? "inherit";
1428
1504
  let s;
1429
- return e[1] !== o || e[2] !== a ? (s = /* @__PURE__ */ l(X, { mt: 0.5, children: /* @__PURE__ */ l(Y, { component: "div", variant: "caption", color: a, style: r, children: o }) }), e[1] = o, e[2] = a, e[3] = s) : s = e[3], s;
1505
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = {
1506
+ fontWeight: "normal"
1507
+ }, e[0] = s) : s = e[0];
1508
+ let a;
1509
+ return e[1] !== l || e[2] !== r ? (a = /* @__PURE__ */ n(K, { mt: 0.5, children: /* @__PURE__ */ n(Q, { component: "div", variant: "caption", color: r, style: s, children: l }) }), e[1] = l, e[2] = r, e[3] = a) : a = e[3], a;
1430
1510
  }
1431
1511
  let i;
1432
- return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(X, { mt: -1 }), e[4] = i) : i = e[4], i;
1512
+ return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ n(K, { mt: -1 }), e[4] = i) : i = e[4], i;
1433
1513
  }
1434
- function qt(t) {
1435
- const e = P(4), [n, o] = ne(!1), [i, a] = ne(!1);
1436
- let r, s;
1437
- return e[0] !== i || e[1] !== t ? (r = () => {
1438
- t && !i && (o(!0), a(!0)), t || o(!1);
1439
- }, s = [t, i], e[0] = i, e[1] = t, e[2] = r, e[3] = s) : (r = e[2], s = e[3]), De(r, s), n;
1514
+ function Jt(t) {
1515
+ const e = Z(2);
1516
+ let o;
1517
+ e[0] !== t ? (o = () => t ? 1 : 0, e[0] = t, e[1] = o) : o = e[1];
1518
+ const [l, i] = oe(o);
1519
+ return t && l === 0 && i(1), !t && l === 1 && i(2), l === 1;
1440
1520
  }
1441
1521
  const Ee = {
1442
1522
  overflow: "hidden",
1443
1523
  textOverflow: "ellipsis",
1444
1524
  whiteSpace: "nowrap"
1445
- }, fe = {
1525
+ }, ge = {
1446
1526
  label: {
1447
1527
  "& .MuiListItemText-primary": {
1448
1528
  ...Ee
@@ -1477,95 +1557,106 @@ const Ee = {
1477
1557
  pointerEvents: "none"
1478
1558
  }
1479
1559
  };
1480
- function Kt({
1481
- title: t,
1482
- dependencies: e = [],
1483
- timeout: n = 500,
1484
- TooltipProps: o,
1485
- children: i
1486
- }) {
1487
- const a = Oe(null), [r, s] = ne(!1);
1488
- return mt(() => {
1489
- const c = setTimeout(() => {
1490
- if (a.current) {
1491
- const u = a.current.scrollWidth > a.current.clientWidth || a.current.scrollHeight > a.current.clientHeight;
1492
- s(u);
1560
+ function el(t) {
1561
+ const e = Z(13), {
1562
+ title: o,
1563
+ dependencies: l,
1564
+ timeout: i,
1565
+ TooltipProps: r,
1566
+ children: s
1567
+ } = t;
1568
+ let a;
1569
+ e[0] !== l ? (a = l === void 0 ? [] : l, e[0] = l, e[1] = a) : a = e[1];
1570
+ const c = a, d = i === void 0 ? 500 : i, f = Ie(null), [h, p] = oe(!1);
1571
+ let y;
1572
+ e[2] !== d ? (y = () => {
1573
+ const m = setTimeout(() => {
1574
+ if (f.current) {
1575
+ const g = f.current.scrollWidth > f.current.clientWidth || f.current.scrollHeight > f.current.clientHeight;
1576
+ p(g);
1493
1577
  }
1494
- }, n);
1495
- return () => clearTimeout(c);
1496
- }, [e, n]), /* @__PURE__ */ l(de, { title: r && t, ...o, children: i({
1497
- ref: a
1498
- }) });
1578
+ }, d);
1579
+ return () => clearTimeout(m);
1580
+ }, e[2] = d, e[3] = y) : y = e[3];
1581
+ let x;
1582
+ e[4] !== c || e[5] !== d ? (x = [c, d], e[4] = c, e[5] = d, e[6] = x) : x = e[6], yt(y, x);
1583
+ const w = h && o;
1584
+ let b;
1585
+ e[7] !== s ? (b = s({
1586
+ ref: f
1587
+ }), e[7] = s, e[8] = b) : b = e[8];
1588
+ let u;
1589
+ return e[9] !== r || e[10] !== w || e[11] !== b ? (u = /* @__PURE__ */ n(fe, { title: w, ...r, children: b }), e[9] = r, e[10] = w, e[11] = b, e[12] = u) : u = e[12], u;
1499
1590
  }
1500
- const Yt = {
1591
+ const tl = {
1501
1592
  showMore: "Show More",
1502
1593
  showLess: "Show Less"
1503
1594
  };
1504
- function bo(t) {
1505
- const e = P(34), {
1506
- data: n,
1507
- isLoading: o,
1595
+ function xl(t) {
1596
+ const e = Z(34), {
1597
+ data: o,
1598
+ isLoading: l,
1508
1599
  maxItems: i,
1509
- labels: a,
1510
- showDivider: r,
1511
- selectedItemId: s,
1600
+ labels: r,
1601
+ showDivider: s,
1602
+ selectedItemId: a,
1512
1603
  tooltipProps: c,
1513
- onExpand: u,
1514
- onItemClick: h
1604
+ onExpand: d,
1605
+ onItemClick: f
1515
1606
  } = t;
1516
- let p;
1517
- e[0] !== n ? (p = n === void 0 ? [] : n, e[0] = n, e[1] = p) : p = e[1];
1518
- const f = p, b = o === void 0 ? !1 : o, y = i === void 0 ? 5 : i, v = a === void 0 ? Yt : a, x = r === void 0 ? !0 : r, [d, m] = ne(!1), g = qt(b);
1519
- let C, w;
1520
- e[2] !== f || e[3] !== y || e[4] !== d ? (w = d ? f : f.slice(0, y), e[2] = f, e[3] = y, e[4] = d, e[5] = w) : w = e[5], C = w;
1521
- const O = C;
1522
- let T;
1523
- e[6] !== u || e[7] !== d ? (T = () => {
1524
- m(!d), u?.(d);
1525
- }, e[6] = u, e[7] = d, e[8] = T) : T = e[8];
1526
- const D = T;
1607
+ let h;
1608
+ e[0] !== o ? (h = o === void 0 ? [] : o, e[0] = o, e[1] = h) : h = e[1];
1609
+ const p = h, y = l === void 0 ? !1 : l, x = i === void 0 ? 5 : i, w = r === void 0 ? tl : r, b = s === void 0 ? !0 : s, [u, m] = oe(!1), g = Jt(y);
1610
+ let M;
1611
+ e[2] !== p || e[3] !== x || e[4] !== u ? (M = u ? p : p.slice(0, x), e[2] = p, e[3] = x, e[4] = u, e[5] = M) : M = e[5];
1612
+ const v = M;
1613
+ let I;
1614
+ e[6] !== d || e[7] !== u ? (I = () => {
1615
+ m(!u), d?.(u);
1616
+ }, e[6] = d, e[7] = u, e[8] = I) : I = e[8];
1617
+ const A = I;
1527
1618
  if (g) {
1528
- let M;
1529
- return e[9] !== y ? (M = /* @__PURE__ */ l(Wt, { length: y }), e[9] = y, e[10] = M) : M = e[10], M;
1619
+ let D;
1620
+ return e[9] !== x ? (D = /* @__PURE__ */ n(Ft, { length: x }), e[9] = x, e[10] = D) : D = e[10], D;
1530
1621
  }
1531
- if (O.length === 0) {
1532
- let M;
1533
- return e[11] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ l(Xt, {}), e[11] = M) : M = e[11], M;
1622
+ if (v.length === 0) {
1623
+ let D;
1624
+ return e[11] === Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ n(Qt, {}), e[11] = D) : D = e[11], D;
1534
1625
  }
1535
- let A;
1536
- if (e[12] !== O || e[13] !== h || e[14] !== s || e[15] !== x || e[16] !== c) {
1537
- let M;
1538
- e[18] !== h || e[19] !== s || e[20] !== x || e[21] !== c ? (M = (R, k) => /* @__PURE__ */ l(Kt, { followCursor: !1, placement: "top", arrow: !0, title: R.tooltipTitle, enterDelay: 10, ...c, children: (E) => {
1626
+ let C;
1627
+ if (e[12] !== v || e[13] !== f || e[14] !== a || e[15] !== b || e[16] !== c) {
1628
+ let D;
1629
+ e[18] !== f || e[19] !== a || e[20] !== b || e[21] !== c ? (D = (O, V) => /* @__PURE__ */ n(el, { followCursor: !1, placement: "top", arrow: !0, title: O.tooltipTitle, enterDelay: 10, ...c, children: (L) => {
1539
1630
  const {
1540
- ref: j
1541
- } = E;
1542
- return /* @__PURE__ */ l(ct, { ref: j, role: "listitem", sx: {
1543
- ...x && fe.showDivider,
1544
- ...h && fe.clickable,
1545
- ...s === R.id && fe.selected,
1546
- ...R.disabled && fe.disabled
1631
+ ref: P
1632
+ } = L;
1633
+ return /* @__PURE__ */ n(ht, { ref: P, role: "listitem", sx: {
1634
+ ...b && ge.showDivider,
1635
+ ...f && ge.clickable,
1636
+ ...a === O.id && ge.selected,
1637
+ ...O.disabled && ge.disabled
1547
1638
  }, onClick: () => {
1548
- R.disabled || h?.(R);
1549
- }, children: /* @__PURE__ */ L(me, { container: !0, alignItems: "center", children: [
1550
- /* @__PURE__ */ l(me, { item: !0, xs: 8, children: /* @__PURE__ */ l(be, { primary: R.label, sx: fe.label }) }),
1551
- /* @__PURE__ */ l(me, { item: !0, xs: 4, children: /* @__PURE__ */ l(be, { primary: R.value, sx: fe.value }) })
1639
+ O.disabled || f?.(O);
1640
+ }, children: /* @__PURE__ */ E(be, { container: !0, alignItems: "center", children: [
1641
+ /* @__PURE__ */ n(be, { item: !0, xs: 8, children: /* @__PURE__ */ n(ye, { primary: O.label, sx: ge.label }) }),
1642
+ /* @__PURE__ */ n(be, { item: !0, xs: 4, children: /* @__PURE__ */ n(ye, { primary: O.value, sx: ge.value }) })
1552
1643
  ] }) });
1553
- } }, `list-item-${k}`), e[18] = h, e[19] = s, e[20] = x, e[21] = c, e[22] = M) : M = e[22], A = O.map(M), e[12] = O, e[13] = h, e[14] = s, e[15] = x, e[16] = c, e[17] = A;
1644
+ } }, `list-item-${V}`), e[18] = f, e[19] = a, e[20] = b, e[21] = c, e[22] = D) : D = e[22], C = v.map(D), e[12] = v, e[13] = f, e[14] = a, e[15] = b, e[16] = c, e[17] = C;
1554
1645
  } else
1555
- A = e[17];
1646
+ C = e[17];
1556
1647
  let _;
1557
- e[23] !== A ? (_ = /* @__PURE__ */ l(dt, { id: "expandable-list", role: "list", children: A }), e[23] = A, e[24] = _) : _ = e[24];
1558
- let I;
1559
- e[25] !== f.length || e[26] !== D || e[27] !== v || e[28] !== y || e[29] !== d ? (I = f.length > y && /* @__PURE__ */ l(X, { my: 2, children: /* @__PURE__ */ l(we, { onClick: D, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? v.showLess : v.showMore }) }), e[25] = f.length, e[26] = D, e[27] = v, e[28] = y, e[29] = d, e[30] = I) : I = e[30];
1648
+ e[23] !== C ? (_ = /* @__PURE__ */ n(pt, { id: "expandable-list", role: "list", children: C }), e[23] = C, e[24] = _) : _ = e[24];
1649
+ let T;
1650
+ e[25] !== p.length || e[26] !== A || e[27] !== w || e[28] !== x || e[29] !== u ? (T = p.length > x && /* @__PURE__ */ n(K, { my: 2, children: /* @__PURE__ */ n(Te, { onClick: A, variant: "text", color: "primary", "aria-expanded": u, "aria-controls": "expandable-list", children: u ? w.showLess : w.showMore }) }), e[25] = p.length, e[26] = A, e[27] = w, e[28] = x, e[29] = u, e[30] = T) : T = e[30];
1560
1651
  let S;
1561
- return e[31] !== _ || e[32] !== I ? (S = /* @__PURE__ */ L(N, { children: [
1652
+ return e[31] !== _ || e[32] !== T ? (S = /* @__PURE__ */ E(H, { children: [
1562
1653
  _,
1563
- I
1564
- ] }), e[31] = _, e[32] = I, e[33] = S) : S = e[33], S;
1654
+ T
1655
+ ] }), e[31] = _, e[32] = T, e[33] = S) : S = e[33], S;
1565
1656
  }
1566
- const Qt = 288, ue = {
1657
+ const ll = 288, he = {
1567
1658
  root: {
1568
- width: Qt,
1659
+ width: ll,
1569
1660
  overflow: "auto"
1570
1661
  },
1571
1662
  toggle: {
@@ -1611,7 +1702,6 @@ const Qt = 288, ue = {
1611
1702
  display: "flex",
1612
1703
  flexDirection: "row",
1613
1704
  flexWrap: "wrap",
1614
- justifyContent: "space-between",
1615
1705
  alignItems: "center",
1616
1706
  gap: ({
1617
1707
  spacing: t
@@ -1665,7 +1755,7 @@ const Qt = 288, ue = {
1665
1755
  }) => t.primary.main
1666
1756
  }
1667
1757
  }
1668
- }, Jt = {
1758
+ }, ol = {
1669
1759
  toggle: {
1670
1760
  title: "Toggle basemaps controls"
1671
1761
  },
@@ -1676,211 +1766,224 @@ const Qt = 288, ue = {
1676
1766
  }
1677
1767
  }
1678
1768
  };
1679
- function eo(t) {
1680
- const e = P(6), {
1681
- isMobile: n,
1682
- labels: o,
1769
+ function nl(t) {
1770
+ const e = Z(6), {
1771
+ isMobile: o,
1772
+ labels: l,
1683
1773
  onChangeCollapsed: i
1684
- } = t, a = n === void 0 ? !1 : n;
1685
- let r;
1686
- e[0] !== a || e[1] !== o || e[2] !== i ? (r = a && /* @__PURE__ */ L(N, { children: [
1687
- /* @__PURE__ */ l(Y, { variant: "caption", flexGrow: 1, children: o.title }),
1688
- /* @__PURE__ */ l(de, { title: o.actions.close, children: /* @__PURE__ */ l(se, { size: "small", onClick: i, "aria-label": o.actions.close, children: /* @__PURE__ */ l(Be, {}) }) })
1689
- ] }), e[0] = a, e[1] = o, e[2] = i, e[3] = r) : r = e[3];
1774
+ } = t, r = o === void 0 ? !1 : o;
1690
1775
  let s;
1691
- return e[4] !== r ? (s = /* @__PURE__ */ l(X, { sx: ue.header, children: r }), e[4] = r, e[5] = s) : s = e[5], s;
1776
+ e[0] !== r || e[1] !== l || e[2] !== i ? (s = r && /* @__PURE__ */ E(H, { children: [
1777
+ /* @__PURE__ */ n(Q, { variant: "caption", flexGrow: 1, children: l.title }),
1778
+ /* @__PURE__ */ n(fe, { title: l.actions.close, children: /* @__PURE__ */ n(re, { size: "small", onClick: i, "aria-label": l.actions.close, children: /* @__PURE__ */ n(Be, {}) }) })
1779
+ ] }), e[0] = r, e[1] = l, e[2] = i, e[3] = s) : s = e[3];
1780
+ let a;
1781
+ return e[4] !== s ? (a = /* @__PURE__ */ n(K, { sx: he.header, children: s }), e[4] = s, e[5] = a) : a = e[5], a;
1692
1782
  }
1693
- function to(t) {
1694
- const e = P(5), {
1695
- title: n,
1696
- children: o,
1783
+ function il(t) {
1784
+ const e = Z(5), {
1785
+ title: o,
1786
+ children: l,
1697
1787
  collapsed: i
1698
1788
  } = t;
1699
1789
  if (i === void 0 ? !1 : i)
1700
- return o;
1701
- let r;
1702
- e[0] !== n ? (r = /* @__PURE__ */ l(Y, { variant: "caption", color: "textSecondary", sx: ue.groupWrapper.content, children: n }), e[0] = n, e[1] = r) : r = e[1];
1790
+ return l;
1703
1791
  let s;
1704
- return e[2] !== o || e[3] !== r ? (s = /* @__PURE__ */ L(N, { children: [
1705
- r,
1706
- o
1707
- ] }), e[2] = o, e[3] = r, e[4] = s) : s = e[4], s;
1792
+ e[0] !== o ? (s = /* @__PURE__ */ n(Q, { variant: "caption", color: "textSecondary", sx: he.groupWrapper.content, children: o }), e[0] = o, e[1] = s) : s = e[1];
1793
+ let a;
1794
+ return e[2] !== l || e[3] !== s ? (a = /* @__PURE__ */ E(H, { children: [
1795
+ s,
1796
+ l
1797
+ ] }), e[2] = l, e[3] = s, e[4] = a) : a = e[4], a;
1708
1798
  }
1709
- function oo(t) {
1710
- const e = P(9), {
1711
- values: n,
1712
- selected: o,
1799
+ function sl(t) {
1800
+ const e = Z(9), {
1801
+ values: o,
1802
+ selected: l,
1713
1803
  onChange: i
1714
1804
  } = t;
1715
- let a;
1716
- if (e[0] !== i || e[1] !== o || e[2] !== n) {
1717
- let s;
1718
- e[4] !== i || e[5] !== o ? (s = (c) => {
1719
- const u = c.id === o;
1720
- return /* @__PURE__ */ L(X, { sx: ue.item.container, component: "button", "aria-label": c.label, onClick: () => i(c.id), children: [
1721
- /* @__PURE__ */ l("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": u }),
1722
- /* @__PURE__ */ l(Y, { variant: "caption", sx: {
1723
- ...u && ue.item.selected
1805
+ let r;
1806
+ if (e[0] !== i || e[1] !== l || e[2] !== o) {
1807
+ let a;
1808
+ e[4] !== i || e[5] !== l ? (a = (c) => {
1809
+ const d = c.id === l;
1810
+ return /* @__PURE__ */ E(K, { sx: he.item.container, component: "button", "aria-label": c.label, onClick: () => i(c.id), children: [
1811
+ /* @__PURE__ */ n("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": d }),
1812
+ /* @__PURE__ */ n(Q, { variant: "caption", sx: {
1813
+ ...d && he.item.selected
1724
1814
  }, children: c.label })
1725
1815
  ] }, c.id);
1726
- }, e[4] = i, e[5] = o, e[6] = s) : s = e[6], a = n.map(s), e[0] = i, e[1] = o, e[2] = n, e[3] = a;
1816
+ }, e[4] = i, e[5] = l, e[6] = a) : a = e[6], r = o.map(a), e[0] = i, e[1] = l, e[2] = o, e[3] = r;
1727
1817
  } else
1728
- a = e[3];
1729
- let r;
1730
- return e[7] !== a ? (r = /* @__PURE__ */ l(X, { sx: ue.group, children: a }), e[7] = a, e[8] = r) : r = e[8], r;
1818
+ r = e[3];
1819
+ let s;
1820
+ return e[7] !== r ? (s = /* @__PURE__ */ n(K, { sx: he.group, children: r }), e[7] = r, e[8] = s) : s = e[8], s;
1731
1821
  }
1732
- function lo(t) {
1733
- const e = P(21), {
1734
- ref: n,
1735
- children: o,
1822
+ function rl(t) {
1823
+ const e = Z(21), {
1824
+ ref: o,
1825
+ children: l,
1736
1826
  collapsed: i,
1737
- isMobile: a,
1738
- position: r,
1739
- sx: s,
1827
+ isMobile: r,
1828
+ position: s,
1829
+ sx: a,
1740
1830
  slotProps: c,
1741
- onChangeCollapsed: u
1831
+ onChangeCollapsed: d
1742
1832
  } = t;
1743
- if (a === void 0 ? !1 : a) {
1744
- const C = !i;
1745
- let w;
1746
- return e[0] !== o || e[1] !== u || e[2] !== C ? (w = /* @__PURE__ */ l(ut, { anchor: "bottom", open: C, onClose: u, children: o }), e[0] = o, e[1] = u, e[2] = C, e[3] = w) : w = e[3], w;
1833
+ if (r === void 0 ? !1 : r) {
1834
+ const M = !i;
1835
+ let v;
1836
+ return e[0] !== l || e[1] !== d || e[2] !== M ? (v = /* @__PURE__ */ n(mt, { anchor: "bottom", open: M, onClose: d, children: l }), e[0] = l, e[1] = d, e[2] = M, e[3] = v) : v = e[3], v;
1747
1837
  }
1748
- const p = !i;
1749
- let f;
1750
- e[4] !== u ? (f = () => u(!0), e[4] = u, e[5] = f) : f = e[5];
1751
- const b = r.startsWith("bottom") ? "bottom" : "top", y = r.endsWith("right") ? "left" : "right";
1752
- let v;
1753
- e[6] !== b || e[7] !== y ? (v = {
1754
- vertical: b,
1755
- horizontal: y
1756
- }, e[6] = b, e[7] = y, e[8] = v) : v = e[8];
1757
- const x = r.startsWith("bottom") ? "bottom" : "top", d = r.endsWith("right") ? "right" : "left";
1838
+ const h = !i;
1839
+ let p;
1840
+ e[4] !== d ? (p = () => d(!0), e[4] = d, e[5] = p) : p = e[5];
1841
+ const y = s.startsWith("bottom") ? "bottom" : "top", x = s.endsWith("right") ? "left" : "right";
1842
+ let w;
1843
+ e[6] !== y || e[7] !== x ? (w = {
1844
+ vertical: y,
1845
+ horizontal: x
1846
+ }, e[6] = y, e[7] = x, e[8] = w) : w = e[8];
1847
+ const b = s.startsWith("bottom") ? "bottom" : "top", u = s.endsWith("right") ? "right" : "left";
1758
1848
  let m;
1759
- e[9] !== x || e[10] !== d ? (m = {
1760
- vertical: x,
1761
- horizontal: d
1762
- }, e[9] = x, e[10] = d, e[11] = m) : m = e[11];
1849
+ e[9] !== b || e[10] !== u ? (m = {
1850
+ vertical: b,
1851
+ horizontal: u
1852
+ }, e[9] = b, e[10] = u, e[11] = m) : m = e[11];
1763
1853
  let g;
1764
- return e[12] !== o || e[13] !== n || e[14] !== c || e[15] !== s || e[16] !== p || e[17] !== f || e[18] !== v || e[19] !== m ? (g = /* @__PURE__ */ l(ht, { sx: s, anchorEl: n, open: p, onClose: f, anchorOrigin: v, transformOrigin: m, slotProps: c, children: o }), e[12] = o, e[13] = n, e[14] = c, e[15] = s, e[16] = p, e[17] = f, e[18] = v, e[19] = m, e[20] = g) : g = e[20], g;
1854
+ return e[12] !== l || e[13] !== o || e[14] !== c || e[15] !== a || e[16] !== h || e[17] !== p || e[18] !== w || e[19] !== m ? (g = /* @__PURE__ */ n(gt, { sx: a, anchorEl: o, open: h, onClose: p, anchorOrigin: w, transformOrigin: m, slotProps: c, children: l }), e[12] = l, e[13] = o, e[14] = c, e[15] = a, e[16] = h, e[17] = p, e[18] = w, e[19] = m, e[20] = g) : g = e[20], g;
1765
1855
  }
1766
- function vo(t) {
1767
- const e = P(52), {
1768
- options: n,
1769
- labels: o,
1856
+ function wl(t) {
1857
+ const e = Z(56), {
1858
+ options: o,
1859
+ labels: l,
1770
1860
  position: i,
1771
- selected: a,
1772
- onChange: r,
1773
- TooltipProps: s
1861
+ selected: r,
1862
+ onChange: s,
1863
+ TooltipProps: a
1774
1864
  } = t;
1775
1865
  let c;
1776
- e[0] !== n ? (c = n === void 0 ? [] : n, e[0] = n, e[1] = c) : c = e[1];
1777
- const u = c, h = i === void 0 ? "bottom-right" : i, p = a === void 0 ? null : a, [f, b] = ne(null), y = Oe(null), [v, x] = ne(null), d = ft();
1778
- let m;
1779
- e[2] !== d.breakpoints ? (m = d.breakpoints.down("sm"), e[2] = d.breakpoints, e[3] = m) : m = e[3];
1780
- const g = pt(m);
1781
- let C;
1782
- e[4] !== o ? (C = o ?? {}, e[4] = o, e[5] = C) : C = e[5];
1783
- let w;
1784
- e[6] !== C ? (w = xe(Jt, C), e[6] = C, e[7] = w) : w = e[7];
1785
- const O = w, T = !f;
1786
- let D;
1787
- if (e[8] !== u || e[9] !== p) {
1788
- let le;
1789
- e[11] !== p ? (le = (he) => he.id === p, e[11] = p, e[12] = le) : le = e[12], D = u.find(le), e[8] = u, e[9] = p, e[10] = D;
1866
+ e[0] !== o ? (c = o === void 0 ? [] : o, e[0] = o, e[1] = c) : c = e[1];
1867
+ const d = c, f = i === void 0 ? "bottom-right" : i, h = r === void 0 ? null : r, [p, y] = oe(null), [x, w] = oe(!1), b = Ie(null), [u, m] = oe(null), g = bt();
1868
+ let M;
1869
+ e[2] !== g.breakpoints ? (M = g.breakpoints.down("sm"), e[2] = g.breakpoints, e[3] = M) : M = e[3];
1870
+ const v = vt(M);
1871
+ let I;
1872
+ e[4] !== l ? (I = l ?? {}, e[4] = l, e[5] = I) : I = e[5];
1873
+ let A;
1874
+ e[6] !== I ? (A = Ce(ol, I), e[6] = I, e[7] = A) : A = e[7];
1875
+ const C = A;
1876
+ let _;
1877
+ if (e[8] !== d || e[9] !== h) {
1878
+ let de;
1879
+ e[11] !== h ? (de = (Se) => Se.id === h, e[11] = h, e[12] = de) : de = e[12], _ = d.find(de), e[8] = d, e[9] = h, e[10] = _;
1790
1880
  } else
1791
- D = e[10];
1792
- const A = D, _ = Object.groupBy(u, no), I = Object.keys(_).length;
1793
- let S, M;
1794
- e[13] !== v ? (M = () => {
1795
- if (y.current && clearTimeout(y.current), !!v)
1796
- return y.current = setTimeout(() => {
1797
- b(null);
1798
- }, v), () => {
1799
- y.current && clearTimeout(y.current);
1881
+ _ = e[10];
1882
+ const T = _;
1883
+ let S;
1884
+ e[13] !== d ? (S = Object.groupBy(d, al), e[13] = d, e[14] = S) : S = e[14];
1885
+ const D = S;
1886
+ let O;
1887
+ e[15] !== D ? (O = Object.keys(D), e[15] = D, e[16] = O) : O = e[16];
1888
+ const V = O.length;
1889
+ let L;
1890
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (L = () => {
1891
+ y(null), w(!1);
1892
+ }, e[17] = L) : L = e[17];
1893
+ const P = L;
1894
+ let R, j;
1895
+ e[18] !== u ? (R = () => {
1896
+ if (b.current && clearTimeout(b.current), !!u)
1897
+ return b.current = setTimeout(() => {
1898
+ P();
1899
+ }, u), () => {
1900
+ b.current && clearTimeout(b.current);
1800
1901
  };
1801
- }, S = [v], e[13] = v, e[14] = S, e[15] = M) : (S = e[14], M = e[15]), De(M, S);
1802
- let R;
1803
- e[16] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
1804
- x(null);
1805
- }, e[16] = R) : R = e[16];
1806
- const k = R;
1807
- let E;
1808
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
1809
- x(400);
1810
- }, e[17] = E) : E = e[17];
1811
- const j = E, $ = ye;
1902
+ }, j = [u], e[18] = u, e[19] = R, e[20] = j) : (R = e[19], j = e[20]), We(R, j);
1903
+ let $;
1904
+ e[21] === Symbol.for("react.memo_cache_sentinel") ? ($ = () => {
1905
+ m(null);
1906
+ }, e[21] = $) : $ = e[21];
1907
+ const k = $;
1812
1908
  let B;
1813
- e[18] === Symbol.for("react.memo_cache_sentinel") ? (B = (le) => {
1814
- b(le.currentTarget);
1815
- }, e[18] = B) : B = e[18];
1816
- const V = A?.icon, Z = A?.label ?? "Basemap";
1909
+ e[22] === Symbol.for("react.memo_cache_sentinel") ? (B = () => {
1910
+ m(400);
1911
+ }, e[22] = B) : B = e[22];
1912
+ const W = B;
1817
1913
  let z;
1818
- e[19] !== V || e[20] !== Z ? (z = /* @__PURE__ */ l(se, { sx: ue.toggle, onClick: B, children: /* @__PURE__ */ l("img", { src: V, alt: Z }) }), e[19] = V, e[20] = Z, e[21] = z) : z = e[21];
1819
- let ee;
1820
- e[22] !== s || e[23] !== O.toggle.title || e[24] !== z ? (ee = /* @__PURE__ */ l(de, { title: O.toggle.title, placement: "right", ...s, children: z }), e[22] = s, e[23] = O.toggle.title, e[24] = z, e[25] = ee) : ee = e[25];
1821
- const F = lo, ie = `translate3d(${h.endsWith("right") ? "-8px" : "8px"}, ${h.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1914
+ e[23] === Symbol.for("react.memo_cache_sentinel") ? (z = (de) => {
1915
+ y(de.currentTarget), w(!0);
1916
+ }, e[23] = z) : z = e[23];
1917
+ const G = T?.icon, N = T?.label ?? "Basemap";
1918
+ let F;
1919
+ e[24] !== G || e[25] !== N ? (F = /* @__PURE__ */ n(re, { sx: he.toggle, onClick: z, children: /* @__PURE__ */ n("img", { src: G, alt: N }) }), e[24] = G, e[25] = N, e[26] = F) : F = e[26];
1822
1920
  let U;
1823
- e[26] !== ie ? (U = {
1921
+ e[27] !== a || e[28] !== C.toggle.title || e[29] !== F ? (U = /* @__PURE__ */ n(fe, { title: C.toggle.title, placement: "right", ...a, children: F }), e[27] = a, e[28] = C.toggle.title, e[29] = F, e[30] = U) : U = e[30];
1922
+ const X = `translate3d(${f.endsWith("right") ? "-8px" : "8px"}, ${f.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1923
+ let q;
1924
+ e[31] !== X ? (q = {
1824
1925
  paper: {
1825
1926
  sx: {
1826
- ...ue.root,
1827
- transform: ie
1927
+ ...he.root,
1928
+ transform: X
1828
1929
  },
1829
1930
  onMouseOver: k,
1830
- onMouseLeave: j
1931
+ onMouseLeave: W
1831
1932
  }
1832
- }, e[26] = ie, e[27] = U) : U = e[27];
1833
- let H;
1834
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (H = () => b(null), e[28] = H) : H = e[28];
1835
- let q;
1836
- e[29] === Symbol.for("react.memo_cache_sentinel") ? (q = () => b(null), e[29] = q) : q = e[29];
1837
- let W;
1838
- e[30] !== g || e[31] !== O.header ? (W = /* @__PURE__ */ l(eo, { isMobile: g, labels: O.header, onChangeCollapsed: q }), e[30] = g, e[31] = O.header, e[32] = W) : W = e[32];
1839
- let te;
1840
- e[33] !== I || e[34] !== O.header || e[35] !== r || e[36] !== p ? (te = (le) => {
1841
- const [he, Me] = le;
1842
- return /* @__PURE__ */ l(to, { title: he + " " + O.header.title, collapsed: I < 2, children: /* @__PURE__ */ l(oo, { values: Me, selected: p, onChange: (Ge) => {
1843
- b(null), r(Ge);
1844
- } }) }, he);
1845
- }, e[33] = I, e[34] = O.header, e[35] = r, e[36] = p, e[37] = te) : te = e[37];
1846
- const pe = Object.entries(_).map(te);
1847
- let oe;
1848
- e[38] !== F || e[39] !== T || e[40] !== g || e[41] !== h || e[42] !== U || e[43] !== H || e[44] !== W || e[45] !== pe || e[46] !== f ? (oe = /* @__PURE__ */ L(F, { ref: f, slotProps: U, collapsed: T, position: h, isMobile: g, onChangeCollapsed: H, children: [
1849
- W,
1933
+ }, e[31] = X, e[32] = q) : q = e[32];
1934
+ const ne = !x;
1935
+ let le;
1936
+ e[33] === Symbol.for("react.memo_cache_sentinel") ? (le = () => P(), e[33] = le) : le = e[33];
1937
+ let ie;
1938
+ e[34] === Symbol.for("react.memo_cache_sentinel") ? (ie = () => P(), e[34] = ie) : ie = e[34];
1939
+ let J;
1940
+ e[35] !== v || e[36] !== C.header ? (J = /* @__PURE__ */ n(nl, { isMobile: v, labels: C.header, onChangeCollapsed: ie }), e[35] = v, e[36] = C.header, e[37] = J) : J = e[37];
1941
+ let ce;
1942
+ e[38] !== D ? (ce = Object.entries(D), e[38] = D, e[39] = ce) : ce = e[39];
1943
+ let pe;
1944
+ e[40] !== V || e[41] !== C.header || e[42] !== s || e[43] !== h || e[44] !== ce ? (pe = ce.map((de) => {
1945
+ const [Se, Fe] = de;
1946
+ return /* @__PURE__ */ n(il, { title: Se + " " + C.header.title, collapsed: V < 2, children: /* @__PURE__ */ n(sl, { values: Fe, selected: h, onChange: (He) => {
1947
+ P(), s(He);
1948
+ } }) }, Se);
1949
+ }), e[40] = V, e[41] = C.header, e[42] = s, e[43] = h, e[44] = ce, e[45] = pe) : pe = e[45];
1950
+ let me;
1951
+ e[46] !== v || e[47] !== f || e[48] !== q || e[49] !== ne || e[50] !== J || e[51] !== pe ? (me = /* @__PURE__ */ E(rl, { ref: p, slotProps: q, collapsed: ne, position: f, isMobile: v, onChangeCollapsed: le, children: [
1952
+ J,
1850
1953
  pe
1851
- ] }), e[38] = F, e[39] = T, e[40] = g, e[41] = h, e[42] = U, e[43] = H, e[44] = W, e[45] = pe, e[46] = f, e[47] = oe) : oe = e[47];
1852
- let G;
1853
- return e[48] !== $ || e[49] !== ee || e[50] !== oe ? (G = /* @__PURE__ */ L($, { children: [
1854
- ee,
1855
- oe
1856
- ] }), e[48] = $, e[49] = ee, e[50] = oe, e[51] = G) : G = e[51], G;
1954
+ ] }), e[46] = v, e[47] = f, e[48] = q, e[49] = ne, e[50] = J, e[51] = pe, e[52] = me) : me = e[52];
1955
+ let Me;
1956
+ return e[53] !== U || e[54] !== me ? (Me = /* @__PURE__ */ E(we, { children: [
1957
+ U,
1958
+ me
1959
+ ] }), e[53] = U, e[54] = me, e[55] = Me) : Me = e[55], Me;
1857
1960
  }
1858
- function no(t) {
1961
+ function al(t) {
1859
1962
  return t.group ?? "default";
1860
1963
  }
1861
1964
  export {
1862
- Et as AreaIcon,
1863
- vo as BasemapsUI,
1864
- Rt as BufferIcon,
1865
- ho as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1866
- re as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1867
- Bt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1868
- Pt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1869
- wt as DrawCircleIcon,
1870
- Ct as DrawLassoIcon,
1871
- yt as DrawPolygonIcon,
1872
- xt as DrawSquareIcon,
1873
- mo as GeolocationControls,
1874
- K as LASSO_TOOLS_LABELS,
1875
- fo as LassoToolsInlineUI,
1876
- ce as LassoToolsUI,
1877
- bo as ListDataUI,
1878
- po as MeasurementToolsUI,
1879
- kt as RulerIcon,
1880
- Mt as SelectToolIcon,
1881
- Kt as SmartTooltip,
1882
- de as Tooltip,
1883
- go as ZoomControlsUI,
1884
- uo as setTooltipEnterDelay
1965
+ jt as AreaIcon,
1966
+ wl as BasemapsUI,
1967
+ Bt as BufferIcon,
1968
+ ml as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1969
+ se as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1970
+ Vt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1971
+ Zt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1972
+ Tt as DrawCircleIcon,
1973
+ At as DrawLassoIcon,
1974
+ Mt as DrawPolygonIcon,
1975
+ St as DrawSquareIcon,
1976
+ vl as GeolocationControls,
1977
+ Y as LASSO_TOOLS_LABELS,
1978
+ gl as LassoToolsInlineUI,
1979
+ ue as LassoToolsUI,
1980
+ xl as ListDataUI,
1981
+ bl as MeasurementToolsUI,
1982
+ $t as RulerIcon,
1983
+ _t as SelectToolIcon,
1984
+ el as SmartTooltip,
1985
+ fe as Tooltip,
1986
+ yl as ZoomControlsUI,
1987
+ pl as setTooltipEnterDelay
1885
1988
  };
1886
1989
  //# sourceMappingURL=components.js.map