@carto/ps-react-maps 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
1
- import tt, { createContext as Q, useContext as ee, useCallback as M, useReducer as rt, useRef as se, useMemo as Qt, useEffect as nt } from "react";
1
+ import nt, { createContext as ee, useContext as te, useCallback as O, useReducer as at, useRef as ce, useMemo as Qt, useEffect as ot } from "react";
2
2
  import { EventManager as er } from "mjolnir.js";
3
3
  import { EditableGeoJsonLayer as tr, MeasureDistanceMode as rr } from "@deck.gl-community/editable-layers";
4
4
  import nr from "convert-units";
5
5
  var ar = /* @__PURE__ */ ((t) => (t.Roadmap = "roadmap", t.Satellite = "satellite", t.Hybrid = "hybrid", t))(ar || {}), or = /* @__PURE__ */ ((t) => (t.DarkMatter = "dark-matter", t.Positron = "positron", t.Voyager = "voyager", t))(or || {});
6
- const he = {
6
+ const be = {
7
7
  positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
8
8
  voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
9
9
  "dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
10
10
  };
11
- var at = /* @__PURE__ */ ((t) => (t.Maplibre = "maplibre", t.GoogleMaps = "google-maps", t))(at || {});
12
- const Ee = {
11
+ var it = /* @__PURE__ */ ((t) => (t.Maplibre = "maplibre", t.GoogleMaps = "google-maps", t))(it || {});
12
+ const Se = {
13
13
  positron: {
14
- url: he.positron,
14
+ url: be.positron,
15
15
  type: "maplibre"
16
16
  /* Maplibre */
17
17
  },
18
18
  voyager: {
19
- url: he.voyager,
19
+ url: be.voyager,
20
20
  type: "maplibre"
21
21
  /* Maplibre */
22
22
  },
23
23
  "dark-matter": {
24
- url: he[
24
+ url: be[
25
25
  "dark-matter"
26
26
  /* DarkMatter */
27
27
  ],
@@ -40,9 +40,9 @@ const Ee = {
40
40
  type: "google-maps"
41
41
  /* GoogleMaps */
42
42
  }
43
- }, z = () => {
43
+ }, K = () => {
44
44
  throw new Error("You forgot to wrap your component in <MapProvider>.");
45
- }, Z = {
45
+ }, X = {
46
46
  state: {
47
47
  maps: {}
48
48
  // sync: false,
@@ -52,18 +52,18 @@ const Ee = {
52
52
  },
53
53
  actions: {
54
54
  // toggleSync: stub,
55
- setViewState: z,
56
- setBasemap: z,
57
- setResize: z,
58
- setZoom: z,
59
- setLoaded: z
55
+ setViewState: K,
56
+ setBasemap: K,
57
+ setResize: K,
58
+ setZoom: K,
59
+ setLoaded: K
60
60
  }
61
- }, ot = Q(
62
- Z.state
63
- ), it = Q(Z.references), st = Q(
64
- Z.actions
61
+ }, st = ee(
62
+ X.state
63
+ ), ct = ee(X.references), ut = ee(
64
+ X.actions
65
65
  );
66
- var F = /* @__PURE__ */ ((t) => (t.SetViewState = "SetViewState", t.SetBasemap = "SetBasemap", t.SetResize = "SetResize", t.SetZoom = "SetZoom", t.SetLoaded = "SetLoaded", t))(F || {});
66
+ var k = /* @__PURE__ */ ((t) => (t.SetViewState = "SetViewState", t.SetBasemap = "SetBasemap", t.SetResize = "SetResize", t.SetZoom = "SetZoom", t.SetLoaded = "SetLoaded", t))(k || {});
67
67
  function ir(t, { type: r, payload: a }) {
68
68
  return {
69
69
  SetViewState: () => {
@@ -88,11 +88,11 @@ function ir(t, { type: r, payload: a }) {
88
88
  };
89
89
  },
90
90
  SetBasemap: () => {
91
- const { id: o, basemap: l } = a, f = { ...t.maps }, { basemap: y } = f[o], c = Ee[y]?.type, E = Ee[l]?.type, p = c === E;
91
+ const { id: o, basemap: l } = a, f = { ...t.maps }, { basemap: y } = f[o], c = Se[y]?.type, m = Se[l]?.type, E = c === m;
92
92
  return f[o] = {
93
93
  ...t.maps[o],
94
94
  basemap: l,
95
- isLoaded: p
95
+ isLoaded: E
96
96
  }, {
97
97
  ...t,
98
98
  maps: f
@@ -123,18 +123,18 @@ function ir(t, { type: r, payload: a }) {
123
123
  }
124
124
  }[r]?.() ?? t;
125
125
  }
126
- function Se(t) {
127
- return ee(ot).maps[t];
126
+ function Te(t) {
127
+ return te(st).maps[t];
128
128
  }
129
- function Re(t) {
130
- const r = ee(it), { instanceRef: a, overlayRef: s } = r.current[t], o = M(() => {
131
- const E = a?.current;
132
- return E?.deck || E?._deck;
133
- }, [a]), l = M(() => s?.current, [s]), f = M(() => o()?._getViewState(), [o]), y = M(
134
- (E) => o()?.getViewports(E),
129
+ function Pe(t) {
130
+ const r = te(ct), { instanceRef: a, overlayRef: s } = r.current[t], o = O(() => {
131
+ const m = a?.current;
132
+ return m?.deck || m?._deck;
133
+ }, [a]), l = O(() => s?.current, [s]), f = O(() => o()?._getViewState(), [o]), y = O(
134
+ (m) => o()?.getViewports(m),
135
135
  [o]
136
- ), c = M(
137
- (E = 0, p) => y(p)?.[E],
136
+ ), c = O(
137
+ (m = 0, E) => y(E)?.[m],
138
138
  [y]
139
139
  );
140
140
  return {
@@ -148,7 +148,7 @@ function Re(t) {
148
148
  };
149
149
  }
150
150
  function sr(t) {
151
- const { setBasemap: r, setResize: a, setViewState: s, setZoom: o, setLoaded: l } = ee(st), { getViewport: f } = Re(t);
151
+ const { setBasemap: r, setResize: a, setViewState: s, setZoom: o, setLoaded: l } = te(ut), { getViewport: f } = Pe(t);
152
152
  return {
153
153
  setBasemap: (c) => r(c, t),
154
154
  setResize: (c) => a(c, t),
@@ -156,22 +156,22 @@ function sr(t) {
156
156
  setZoom: (c) => o(c, t),
157
157
  setLoaded: (c) => l(c, t),
158
158
  fitBounds: (c, {
159
- boundsOptions: E,
160
- viewStateOptions: p
159
+ boundsOptions: m,
160
+ viewStateOptions: E
161
161
  } = {}) => {
162
- const b = f(), { latitude: O, longitude: v, zoom: h } = b.fitBounds(
162
+ const _ = f(), { latitude: b, longitude: v, zoom: h } = _.fitBounds(
163
163
  c,
164
- E
164
+ m
165
165
  );
166
- s({ ...p, latitude: O, longitude: v, zoom: h }, t);
166
+ s({ ...E, latitude: b, longitude: v, zoom: h }, t);
167
167
  }
168
168
  };
169
169
  }
170
170
  function Jr(t) {
171
- return Se(t);
171
+ return Te(t);
172
172
  }
173
173
  function Zr(t) {
174
- return Re(t);
174
+ return Pe(t);
175
175
  }
176
176
  function Xr(t) {
177
177
  return sr(t);
@@ -179,7 +179,7 @@ function Xr(t) {
179
179
  function cr(t) {
180
180
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
181
181
  }
182
- var be = { exports: {} }, K = {};
182
+ var _e = { exports: {} }, G = {};
183
183
  /**
184
184
  * @license React
185
185
  * react-jsx-runtime.production.min.js
@@ -189,25 +189,25 @@ var be = { exports: {} }, K = {};
189
189
  * This source code is licensed under the MIT license found in the
190
190
  * LICENSE file in the root directory of this source tree.
191
191
  */
192
- var Ge;
192
+ var Ze;
193
193
  function ur() {
194
- if (Ge)
195
- return K;
196
- Ge = 1;
197
- var t = tt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
198
- function f(y, c, E) {
199
- var p, b = {}, O = null, v = null;
200
- E !== void 0 && (O = "" + E), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (v = c.ref);
201
- for (p in c)
202
- s.call(c, p) && !l.hasOwnProperty(p) && (b[p] = c[p]);
194
+ if (Ze)
195
+ return G;
196
+ Ze = 1;
197
+ var t = nt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
198
+ function f(y, c, m) {
199
+ var E, _ = {}, b = null, v = null;
200
+ m !== void 0 && (b = "" + m), c.key !== void 0 && (b = "" + c.key), c.ref !== void 0 && (v = c.ref);
201
+ for (E in c)
202
+ s.call(c, E) && !l.hasOwnProperty(E) && (_[E] = c[E]);
203
203
  if (y && y.defaultProps)
204
- for (p in c = y.defaultProps, c)
205
- b[p] === void 0 && (b[p] = c[p]);
206
- return { $$typeof: r, type: y, key: O, ref: v, props: b, _owner: o.current };
204
+ for (E in c = y.defaultProps, c)
205
+ _[E] === void 0 && (_[E] = c[E]);
206
+ return { $$typeof: r, type: y, key: b, ref: v, props: _, _owner: o.current };
207
207
  }
208
- return K.Fragment = a, K.jsx = f, K.jsxs = f, K;
208
+ return G.Fragment = a, G.jsx = f, G.jsxs = f, G;
209
209
  }
210
- var q = {};
210
+ var J = {};
211
211
  /**
212
212
  * @license React
213
213
  * react-jsx-runtime.development.js
@@ -217,57 +217,57 @@ var q = {};
217
217
  * This source code is licensed under the MIT license found in the
218
218
  * LICENSE file in the root directory of this source tree.
219
219
  */
220
- var Je;
220
+ var Xe;
221
221
  function lr() {
222
- return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
223
- var t = tt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), y = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), h = Symbol.iterator, x = "@@iterator";
224
- function k(e) {
222
+ return Xe || (Xe = 1, process.env.NODE_ENV !== "production" && function() {
223
+ var t = nt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), y = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), h = Symbol.iterator, A = "@@iterator";
224
+ function U(e) {
225
225
  if (e === null || typeof e != "object")
226
226
  return null;
227
- var n = h && e[h] || e[x];
227
+ var n = h && e[h] || e[A];
228
228
  return typeof n == "function" ? n : null;
229
229
  }
230
- var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
231
- function R(e) {
230
+ var j = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
231
+ function P(e) {
232
232
  {
233
233
  for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), u = 1; u < n; u++)
234
234
  i[u - 1] = arguments[u];
235
- te("error", e, i);
235
+ le("error", e, i);
236
236
  }
237
237
  }
238
- function te(e, n, i) {
238
+ function le(e, n, i) {
239
239
  {
240
- var u = D.ReactDebugCurrentFrame, g = u.getStackAddendum();
240
+ var u = j.ReactDebugCurrentFrame, g = u.getStackAddendum();
241
241
  g !== "" && (n += "%s", i = i.concat([g]));
242
- var _ = i.map(function(m) {
243
- return String(m);
242
+ var S = i.map(function(p) {
243
+ return String(p);
244
244
  });
245
- _.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, _);
245
+ S.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, S);
246
246
  }
247
247
  }
248
- var Et = !1, bt = !1, _t = !1, St = !1, Rt = !1, Me;
248
+ var W = !1, re = !1, St = !1, _t = !1, Rt = !1, Me;
249
249
  Me = Symbol.for("react.module.reference");
250
250
  function Tt(e) {
251
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === l || Rt || e === o || e === E || e === p || St || e === v || Et || bt || _t || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === b || e.$$typeof === f || e.$$typeof === y || e.$$typeof === c || // This needs to include all possible module reference object
251
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === l || Rt || e === o || e === m || e === E || _t || e === v || W || re || St || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === _ || e.$$typeof === f || e.$$typeof === y || e.$$typeof === c || // This needs to include all possible module reference object
252
252
  // types supported by any Flight configuration anywhere since
253
253
  // we don't know which Flight build this will end up being used
254
254
  // with.
255
255
  e.$$typeof === Me || e.getModuleId !== void 0));
256
256
  }
257
- function Mt(e, n, i) {
257
+ function Pt(e, n, i) {
258
258
  var u = e.displayName;
259
259
  if (u)
260
260
  return u;
261
261
  var g = n.displayName || n.name || "";
262
262
  return g !== "" ? i + "(" + g + ")" : i;
263
263
  }
264
- function Oe(e) {
264
+ function Ce(e) {
265
265
  return e.displayName || "Context";
266
266
  }
267
- function A(e) {
267
+ function D(e) {
268
268
  if (e == null)
269
269
  return null;
270
- if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
270
+ if (typeof e.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
271
271
  return e.displayName || e.name || null;
272
272
  if (typeof e == "string")
273
273
  return e;
@@ -280,28 +280,28 @@ function lr() {
280
280
  return "Profiler";
281
281
  case o:
282
282
  return "StrictMode";
283
- case E:
283
+ case m:
284
284
  return "Suspense";
285
- case p:
285
+ case E:
286
286
  return "SuspenseList";
287
287
  }
288
288
  if (typeof e == "object")
289
289
  switch (e.$$typeof) {
290
290
  case y:
291
291
  var n = e;
292
- return Oe(n) + ".Consumer";
292
+ return Ce(n) + ".Consumer";
293
293
  case f:
294
294
  var i = e;
295
- return Oe(i._context) + ".Provider";
295
+ return Ce(i._context) + ".Provider";
296
296
  case c:
297
- return Mt(e, e.render, "ForwardRef");
298
- case b:
297
+ return Pt(e, e.render, "ForwardRef");
298
+ case _:
299
299
  var u = e.displayName || null;
300
- return u !== null ? u : A(e.type) || "Memo";
301
- case O: {
302
- var g = e, _ = g._payload, m = g._init;
300
+ return u !== null ? u : D(e.type) || "Memo";
301
+ case b: {
302
+ var g = e, S = g._payload, p = g._init;
303
303
  try {
304
- return A(m(_));
304
+ return D(p(S));
305
305
  } catch {
306
306
  return null;
307
307
  }
@@ -309,18 +309,18 @@ function lr() {
309
309
  }
310
310
  return null;
311
311
  }
312
- var I = Object.assign, B = 0, Pe, Ce, we, je, xe, Ae, De;
313
- function ke() {
312
+ var L = Object.assign, H = 0, we, je, xe, Ae, De, ke, Fe;
313
+ function Le() {
314
314
  }
315
- ke.__reactDisabledLog = !0;
315
+ Le.__reactDisabledLog = !0;
316
316
  function Ot() {
317
317
  {
318
- if (B === 0) {
319
- Pe = console.log, Ce = console.info, we = console.warn, je = console.error, xe = console.group, Ae = console.groupCollapsed, De = console.groupEnd;
318
+ if (H === 0) {
319
+ we = console.log, je = console.info, xe = console.warn, Ae = console.error, De = console.group, ke = console.groupCollapsed, Fe = console.groupEnd;
320
320
  var e = {
321
321
  configurable: !0,
322
322
  enumerable: !0,
323
- value: ke,
323
+ value: Le,
324
324
  writable: !0
325
325
  };
326
326
  Object.defineProperties(console, {
@@ -333,100 +333,100 @@ function lr() {
333
333
  groupEnd: e
334
334
  });
335
335
  }
336
- B++;
336
+ H++;
337
337
  }
338
338
  }
339
- function Pt() {
339
+ function Mt() {
340
340
  {
341
- if (B--, B === 0) {
341
+ if (H--, H === 0) {
342
342
  var e = {
343
343
  configurable: !0,
344
344
  enumerable: !0,
345
345
  writable: !0
346
346
  };
347
347
  Object.defineProperties(console, {
348
- log: I({}, e, {
349
- value: Pe
350
- }),
351
- info: I({}, e, {
352
- value: Ce
353
- }),
354
- warn: I({}, e, {
348
+ log: L({}, e, {
355
349
  value: we
356
350
  }),
357
- error: I({}, e, {
351
+ info: L({}, e, {
358
352
  value: je
359
353
  }),
360
- group: I({}, e, {
354
+ warn: L({}, e, {
361
355
  value: xe
362
356
  }),
363
- groupCollapsed: I({}, e, {
357
+ error: L({}, e, {
364
358
  value: Ae
365
359
  }),
366
- groupEnd: I({}, e, {
360
+ group: L({}, e, {
367
361
  value: De
362
+ }),
363
+ groupCollapsed: L({}, e, {
364
+ value: ke
365
+ }),
366
+ groupEnd: L({}, e, {
367
+ value: Fe
368
368
  })
369
369
  });
370
370
  }
371
- B < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
371
+ H < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
372
372
  }
373
373
  }
374
- var ue = D.ReactCurrentDispatcher, le;
375
- function re(e, n, i) {
374
+ var fe = j.ReactCurrentDispatcher, de;
375
+ function ne(e, n, i) {
376
376
  {
377
- if (le === void 0)
377
+ if (de === void 0)
378
378
  try {
379
379
  throw Error();
380
380
  } catch (g) {
381
381
  var u = g.stack.trim().match(/\n( *(at )?)/);
382
- le = u && u[1] || "";
382
+ de = u && u[1] || "";
383
383
  }
384
384
  return `
385
- ` + le + e;
385
+ ` + de + e;
386
386
  }
387
387
  }
388
- var fe = !1, ne;
388
+ var pe = !1, ae;
389
389
  {
390
390
  var Ct = typeof WeakMap == "function" ? WeakMap : Map;
391
- ne = new Ct();
391
+ ae = new Ct();
392
392
  }
393
- function Fe(e, n) {
394
- if (!e || fe)
393
+ function Ie(e, n) {
394
+ if (!e || pe)
395
395
  return "";
396
396
  {
397
- var i = ne.get(e);
397
+ var i = ae.get(e);
398
398
  if (i !== void 0)
399
399
  return i;
400
400
  }
401
401
  var u;
402
- fe = !0;
402
+ pe = !0;
403
403
  var g = Error.prepareStackTrace;
404
404
  Error.prepareStackTrace = void 0;
405
- var _;
406
- _ = ue.current, ue.current = null, Ot();
405
+ var S;
406
+ S = fe.current, fe.current = null, Ot();
407
407
  try {
408
408
  if (n) {
409
- var m = function() {
409
+ var p = function() {
410
410
  throw Error();
411
411
  };
412
- if (Object.defineProperty(m.prototype, "props", {
412
+ if (Object.defineProperty(p.prototype, "props", {
413
413
  set: function() {
414
414
  throw Error();
415
415
  }
416
416
  }), typeof Reflect == "object" && Reflect.construct) {
417
417
  try {
418
- Reflect.construct(m, []);
418
+ Reflect.construct(p, []);
419
419
  } catch (w) {
420
420
  u = w;
421
421
  }
422
- Reflect.construct(e, [], m);
422
+ Reflect.construct(e, [], p);
423
423
  } else {
424
424
  try {
425
- m.call();
425
+ p.call();
426
426
  } catch (w) {
427
427
  u = w;
428
428
  }
429
- e.call(m.prototype);
429
+ e.call(p.prototype);
430
430
  }
431
431
  } else {
432
432
  try {
@@ -439,93 +439,93 @@ function lr() {
439
439
  } catch (w) {
440
440
  if (w && u && typeof w.stack == "string") {
441
441
  for (var d = w.stack.split(`
442
- `), P = u.stack.split(`
443
- `), S = d.length - 1, T = P.length - 1; S >= 1 && T >= 0 && d[S] !== P[T]; )
442
+ `), M = u.stack.split(`
443
+ `), R = d.length - 1, T = M.length - 1; R >= 1 && T >= 0 && d[R] !== M[T]; )
444
444
  T--;
445
- for (; S >= 1 && T >= 0; S--, T--)
446
- if (d[S] !== P[T]) {
447
- if (S !== 1 || T !== 1)
445
+ for (; R >= 1 && T >= 0; R--, T--)
446
+ if (d[R] !== M[T]) {
447
+ if (R !== 1 || T !== 1)
448
448
  do
449
- if (S--, T--, T < 0 || d[S] !== P[T]) {
450
- var j = `
451
- ` + d[S].replace(" at new ", " at ");
452
- return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, j), j;
449
+ if (R--, T--, T < 0 || d[R] !== M[T]) {
450
+ var x = `
451
+ ` + d[R].replace(" at new ", " at ");
452
+ return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && ae.set(e, x), x;
453
453
  }
454
- while (S >= 1 && T >= 0);
454
+ while (R >= 1 && T >= 0);
455
455
  break;
456
456
  }
457
457
  }
458
458
  } finally {
459
- fe = !1, ue.current = _, Pt(), Error.prepareStackTrace = g;
459
+ pe = !1, fe.current = S, Mt(), Error.prepareStackTrace = g;
460
460
  }
461
- var V = e ? e.displayName || e.name : "", N = V ? re(V) : "";
462
- return typeof e == "function" && ne.set(e, N), N;
461
+ var $ = e ? e.displayName || e.name : "", I = $ ? ne($) : "";
462
+ return typeof e == "function" && ae.set(e, I), I;
463
463
  }
464
464
  function wt(e, n, i) {
465
- return Fe(e, !1);
465
+ return Ie(e, !1);
466
466
  }
467
467
  function jt(e) {
468
468
  var n = e.prototype;
469
469
  return !!(n && n.isReactComponent);
470
470
  }
471
- function ae(e, n, i) {
471
+ function oe(e, n, i) {
472
472
  if (e == null)
473
473
  return "";
474
474
  if (typeof e == "function")
475
- return Fe(e, jt(e));
475
+ return Ie(e, jt(e));
476
476
  if (typeof e == "string")
477
- return re(e);
477
+ return ne(e);
478
478
  switch (e) {
479
+ case m:
480
+ return ne("Suspense");
479
481
  case E:
480
- return re("Suspense");
481
- case p:
482
- return re("SuspenseList");
482
+ return ne("SuspenseList");
483
483
  }
484
484
  if (typeof e == "object")
485
485
  switch (e.$$typeof) {
486
486
  case c:
487
487
  return wt(e.render);
488
- case b:
489
- return ae(e.type, n, i);
490
- case O: {
491
- var u = e, g = u._payload, _ = u._init;
488
+ case _:
489
+ return oe(e.type, n, i);
490
+ case b: {
491
+ var u = e, g = u._payload, S = u._init;
492
492
  try {
493
- return ae(_(g), n, i);
493
+ return oe(S(g), n, i);
494
494
  } catch {
495
495
  }
496
496
  }
497
497
  }
498
498
  return "";
499
499
  }
500
- var W = Object.prototype.hasOwnProperty, Le = {}, Ie = D.ReactDebugCurrentFrame;
501
- function oe(e) {
500
+ var z = Object.prototype.hasOwnProperty, Ne = {}, Ue = j.ReactDebugCurrentFrame;
501
+ function ie(e) {
502
502
  if (e) {
503
- var n = e._owner, i = ae(e.type, e._source, n ? n.type : null);
504
- Ie.setExtraStackFrame(i);
503
+ var n = e._owner, i = oe(e.type, e._source, n ? n.type : null);
504
+ Ue.setExtraStackFrame(i);
505
505
  } else
506
- Ie.setExtraStackFrame(null);
506
+ Ue.setExtraStackFrame(null);
507
507
  }
508
508
  function xt(e, n, i, u, g) {
509
509
  {
510
- var _ = Function.call.bind(W);
511
- for (var m in e)
512
- if (_(e, m)) {
510
+ var S = Function.call.bind(z);
511
+ for (var p in e)
512
+ if (S(e, p)) {
513
513
  var d = void 0;
514
514
  try {
515
- if (typeof e[m] != "function") {
516
- var P = Error((u || "React class") + ": " + i + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
517
- throw P.name = "Invariant Violation", P;
515
+ if (typeof e[p] != "function") {
516
+ var M = Error((u || "React class") + ": " + i + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
517
+ throw M.name = "Invariant Violation", M;
518
518
  }
519
- d = e[m](n, m, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
520
- } catch (S) {
521
- d = S;
519
+ d = e[p](n, p, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
520
+ } catch (R) {
521
+ d = R;
522
522
  }
523
- d && !(d instanceof Error) && (oe(g), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, m, typeof d), oe(null)), d instanceof Error && !(d.message in Le) && (Le[d.message] = !0, oe(g), R("Failed %s type: %s", i, d.message), oe(null));
523
+ d && !(d instanceof Error) && (ie(g), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, p, typeof d), ie(null)), d instanceof Error && !(d.message in Ne) && (Ne[d.message] = !0, ie(g), P("Failed %s type: %s", i, d.message), ie(null));
524
524
  }
525
525
  }
526
526
  }
527
527
  var At = Array.isArray;
528
- function de(e) {
528
+ function me(e) {
529
529
  return At(e);
530
530
  }
531
531
  function Dt(e) {
@@ -536,27 +536,27 @@ function lr() {
536
536
  }
537
537
  function kt(e) {
538
538
  try {
539
- return Ne(e), !1;
539
+ return Ve(e), !1;
540
540
  } catch {
541
541
  return !0;
542
542
  }
543
543
  }
544
- function Ne(e) {
544
+ function Ve(e) {
545
545
  return "" + e;
546
546
  }
547
- function Ue(e) {
547
+ function $e(e) {
548
548
  if (kt(e))
549
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Dt(e)), Ne(e);
549
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Dt(e)), Ve(e);
550
550
  }
551
- var H = D.ReactCurrentOwner, Ft = {
551
+ var q = j.ReactCurrentOwner, Ft = {
552
552
  key: !0,
553
553
  ref: !0,
554
554
  __self: !0,
555
555
  __source: !0
556
- }, Ve, $e, me;
557
- me = {};
556
+ }, Ye, Be, ve;
557
+ ve = {};
558
558
  function Lt(e) {
559
- if (W.call(e, "ref")) {
559
+ if (z.call(e, "ref")) {
560
560
  var n = Object.getOwnPropertyDescriptor(e, "ref").get;
561
561
  if (n && n.isReactWarning)
562
562
  return !1;
@@ -564,7 +564,7 @@ function lr() {
564
564
  return e.ref !== void 0;
565
565
  }
566
566
  function It(e) {
567
- if (W.call(e, "key")) {
567
+ if (z.call(e, "key")) {
568
568
  var n = Object.getOwnPropertyDescriptor(e, "key").get;
569
569
  if (n && n.isReactWarning)
570
570
  return !1;
@@ -572,15 +572,15 @@ function lr() {
572
572
  return e.key !== void 0;
573
573
  }
574
574
  function Nt(e, n) {
575
- if (typeof e.ref == "string" && H.current && n && H.current.stateNode !== n) {
576
- var i = A(H.current.type);
577
- me[i] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(H.current.type), e.ref), me[i] = !0);
575
+ if (typeof e.ref == "string" && q.current && n && q.current.stateNode !== n) {
576
+ var i = D(q.current.type);
577
+ ve[i] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(q.current.type), e.ref), ve[i] = !0);
578
578
  }
579
579
  }
580
580
  function Ut(e, n) {
581
581
  {
582
582
  var i = function() {
583
- Ve || (Ve = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
583
+ Ye || (Ye = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
584
584
  };
585
585
  i.isReactWarning = !0, Object.defineProperty(e, "key", {
586
586
  get: i,
@@ -591,7 +591,7 @@ function lr() {
591
591
  function Vt(e, n) {
592
592
  {
593
593
  var i = function() {
594
- $e || ($e = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
594
+ Be || (Be = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
595
595
  };
596
596
  i.isReactWarning = !0, Object.defineProperty(e, "ref", {
597
597
  get: i,
@@ -599,7 +599,7 @@ function lr() {
599
599
  });
600
600
  }
601
601
  }
602
- var $t = function(e, n, i, u, g, _, m) {
602
+ var $t = function(e, n, i, u, g, S, p) {
603
603
  var d = {
604
604
  // This tag allows us to uniquely identify this as a React Element
605
605
  $$typeof: r,
@@ -607,9 +607,9 @@ function lr() {
607
607
  type: e,
608
608
  key: n,
609
609
  ref: i,
610
- props: m,
610
+ props: p,
611
611
  // Record the component responsible for creating this element.
612
- _owner: _
612
+ _owner: S
613
613
  };
614
614
  return d._store = {}, Object.defineProperty(d._store, "validated", {
615
615
  configurable: !1,
@@ -630,39 +630,39 @@ function lr() {
630
630
  };
631
631
  function Yt(e, n, i, u, g) {
632
632
  {
633
- var _, m = {}, d = null, P = null;
634
- i !== void 0 && (Ue(i), d = "" + i), It(n) && (Ue(n.key), d = "" + n.key), Lt(n) && (P = n.ref, Nt(n, g));
635
- for (_ in n)
636
- W.call(n, _) && !Ft.hasOwnProperty(_) && (m[_] = n[_]);
633
+ var S, p = {}, d = null, M = null;
634
+ i !== void 0 && ($e(i), d = "" + i), It(n) && ($e(n.key), d = "" + n.key), Lt(n) && (M = n.ref, Nt(n, g));
635
+ for (S in n)
636
+ z.call(n, S) && !Ft.hasOwnProperty(S) && (p[S] = n[S]);
637
637
  if (e && e.defaultProps) {
638
- var S = e.defaultProps;
639
- for (_ in S)
640
- m[_] === void 0 && (m[_] = S[_]);
638
+ var R = e.defaultProps;
639
+ for (S in R)
640
+ p[S] === void 0 && (p[S] = R[S]);
641
641
  }
642
- if (d || P) {
642
+ if (d || M) {
643
643
  var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
644
- d && Ut(m, T), P && Vt(m, T);
644
+ d && Ut(p, T), M && Vt(p, T);
645
645
  }
646
- return $t(e, d, P, g, u, H.current, m);
646
+ return $t(e, d, M, g, u, q.current, p);
647
647
  }
648
648
  }
649
- var pe = D.ReactCurrentOwner, Ye = D.ReactDebugCurrentFrame;
650
- function U(e) {
649
+ var ge = j.ReactCurrentOwner, We = j.ReactDebugCurrentFrame;
650
+ function V(e) {
651
651
  if (e) {
652
- var n = e._owner, i = ae(e.type, e._source, n ? n.type : null);
653
- Ye.setExtraStackFrame(i);
652
+ var n = e._owner, i = oe(e.type, e._source, n ? n.type : null);
653
+ We.setExtraStackFrame(i);
654
654
  } else
655
- Ye.setExtraStackFrame(null);
655
+ We.setExtraStackFrame(null);
656
656
  }
657
- var ve;
658
- ve = !1;
659
- function ge(e) {
657
+ var ye;
658
+ ye = !1;
659
+ function he(e) {
660
660
  return typeof e == "object" && e !== null && e.$$typeof === r;
661
661
  }
662
- function Be() {
662
+ function He() {
663
663
  {
664
- if (pe.current) {
665
- var e = A(pe.current.type);
664
+ if (ge.current) {
665
+ var e = D(ge.current.type);
666
666
  if (e)
667
667
  return `
668
668
 
@@ -674,10 +674,10 @@ Check the render method of \`` + e + "`.";
674
674
  function Bt(e) {
675
675
  return "";
676
676
  }
677
- var We = {};
677
+ var ze = {};
678
678
  function Wt(e) {
679
679
  {
680
- var n = Be();
680
+ var n = He();
681
681
  if (!n) {
682
682
  var i = typeof e == "string" ? e : e.displayName || e.name;
683
683
  i && (n = `
@@ -687,35 +687,35 @@ Check the top-level render call using <` + i + ">.");
687
687
  return n;
688
688
  }
689
689
  }
690
- function He(e, n) {
690
+ function qe(e, n) {
691
691
  {
692
692
  if (!e._store || e._store.validated || e.key != null)
693
693
  return;
694
694
  e._store.validated = !0;
695
695
  var i = Wt(n);
696
- if (We[i])
696
+ if (ze[i])
697
697
  return;
698
- We[i] = !0;
698
+ ze[i] = !0;
699
699
  var u = "";
700
- e && e._owner && e._owner !== pe.current && (u = " It was passed a child from " + A(e._owner.type) + "."), U(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), U(null);
700
+ e && e._owner && e._owner !== ge.current && (u = " It was passed a child from " + D(e._owner.type) + "."), V(e), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), V(null);
701
701
  }
702
702
  }
703
- function ze(e, n) {
703
+ function Ke(e, n) {
704
704
  {
705
705
  if (typeof e != "object")
706
706
  return;
707
- if (de(e))
707
+ if (me(e))
708
708
  for (var i = 0; i < e.length; i++) {
709
709
  var u = e[i];
710
- ge(u) && He(u, n);
710
+ he(u) && qe(u, n);
711
711
  }
712
- else if (ge(e))
712
+ else if (he(e))
713
713
  e._store && (e._store.validated = !0);
714
714
  else if (e) {
715
- var g = k(e);
715
+ var g = U(e);
716
716
  if (typeof g == "function" && g !== e.entries)
717
- for (var _ = g.call(e), m; !(m = _.next()).done; )
718
- ge(m.value) && He(m.value, n);
717
+ for (var S = g.call(e), p; !(p = S.next()).done; )
718
+ he(p.value) && qe(p.value, n);
719
719
  }
720
720
  }
721
721
  }
@@ -729,19 +729,19 @@ Check the top-level render call using <` + i + ">.");
729
729
  i = n.propTypes;
730
730
  else if (typeof n == "object" && (n.$$typeof === c || // Note: Memo only checks outer props here.
731
731
  // Inner props are checked in the reconciler.
732
- n.$$typeof === b))
732
+ n.$$typeof === _))
733
733
  i = n.propTypes;
734
734
  else
735
735
  return;
736
736
  if (i) {
737
- var u = A(n);
737
+ var u = D(n);
738
738
  xt(i, e.props, "prop", u, e);
739
- } else if (n.PropTypes !== void 0 && !ve) {
740
- ve = !0;
741
- var g = A(n);
742
- R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
739
+ } else if (n.PropTypes !== void 0 && !ye) {
740
+ ye = !0;
741
+ var g = D(n);
742
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
743
743
  }
744
- typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
744
+ typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
745
745
  }
746
746
  }
747
747
  function zt(e) {
@@ -749,82 +749,82 @@ Check the top-level render call using <` + i + ">.");
749
749
  for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
750
750
  var u = n[i];
751
751
  if (u !== "children" && u !== "key") {
752
- U(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), U(null);
752
+ V(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), V(null);
753
753
  break;
754
754
  }
755
755
  }
756
- e.ref !== null && (U(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
756
+ e.ref !== null && (V(e), P("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
757
757
  }
758
758
  }
759
- var Ke = {};
760
- function qe(e, n, i, u, g, _) {
759
+ var Ge = {};
760
+ function Je(e, n, i, u, g, S) {
761
761
  {
762
- var m = Tt(e);
763
- if (!m) {
762
+ var p = Tt(e);
763
+ if (!p) {
764
764
  var d = "";
765
765
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
766
- var P = Bt();
767
- P ? d += P : d += Be();
768
- var S;
769
- e === null ? S = "null" : de(e) ? S = "array" : e !== void 0 && e.$$typeof === r ? (S = "<" + (A(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, d);
766
+ var M = Bt();
767
+ M ? d += M : d += He();
768
+ var R;
769
+ e === null ? R = "null" : me(e) ? R = "array" : e !== void 0 && e.$$typeof === r ? (R = "<" + (D(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, d);
770
770
  }
771
- var T = Yt(e, n, i, g, _);
771
+ var T = Yt(e, n, i, g, S);
772
772
  if (T == null)
773
773
  return T;
774
- if (m) {
775
- var j = n.children;
776
- if (j !== void 0)
774
+ if (p) {
775
+ var x = n.children;
776
+ if (x !== void 0)
777
777
  if (u)
778
- if (de(j)) {
779
- for (var V = 0; V < j.length; V++)
780
- ze(j[V], e);
781
- Object.freeze && Object.freeze(j);
778
+ if (me(x)) {
779
+ for (var $ = 0; $ < x.length; $++)
780
+ Ke(x[$], e);
781
+ Object.freeze && Object.freeze(x);
782
782
  } else
783
- R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
783
+ P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
784
784
  else
785
- ze(j, e);
785
+ Ke(x, e);
786
786
  }
787
- if (W.call(n, "key")) {
788
- var N = A(e), w = Object.keys(n).filter(function(Xt) {
787
+ if (z.call(n, "key")) {
788
+ var I = D(e), w = Object.keys(n).filter(function(Xt) {
789
789
  return Xt !== "key";
790
- }), ye = w.length > 0 ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}";
791
- if (!Ke[N + ye]) {
790
+ }), Ee = w.length > 0 ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}";
791
+ if (!Ge[I + Ee]) {
792
792
  var Zt = w.length > 0 ? "{" + w.join(": ..., ") + ": ...}" : "{}";
793
- R(`A props object containing a "key" prop is being spread into JSX:
793
+ P(`A props object containing a "key" prop is being spread into JSX:
794
794
  let props = %s;
795
795
  <%s {...props} />
796
796
  React keys must be passed directly to JSX without using spread:
797
797
  let props = %s;
798
- <%s key={someKey} {...props} />`, ye, N, Zt, N), Ke[N + ye] = !0;
798
+ <%s key={someKey} {...props} />`, Ee, I, Zt, I), Ge[I + Ee] = !0;
799
799
  }
800
800
  }
801
801
  return e === s ? zt(T) : Ht(T), T;
802
802
  }
803
803
  }
804
- function Kt(e, n, i) {
805
- return qe(e, n, i, !0);
806
- }
807
804
  function qt(e, n, i) {
808
- return qe(e, n, i, !1);
805
+ return Je(e, n, i, !0);
809
806
  }
810
- var Gt = qt, Jt = Kt;
811
- q.Fragment = s, q.jsx = Gt, q.jsxs = Jt;
812
- }()), q;
807
+ function Kt(e, n, i) {
808
+ return Je(e, n, i, !1);
809
+ }
810
+ var Gt = Kt, Jt = qt;
811
+ J.Fragment = s, J.jsx = Gt, J.jsxs = Jt;
812
+ }()), J;
813
813
  }
814
- process.env.NODE_ENV === "production" ? be.exports = ur() : be.exports = lr();
815
- var J = be.exports;
814
+ process.env.NODE_ENV === "production" ? _e.exports = ur() : _e.exports = lr();
815
+ var Z = _e.exports;
816
816
  function Qr({
817
817
  children: t,
818
818
  maps: r,
819
819
  externalSync: a
820
820
  }) {
821
- const [s, o] = rt(ir, {
822
- ...Z.state,
821
+ const [s, o] = at(ir, {
822
+ ...X.state,
823
823
  maps: r.reduce((v, h) => (v[h.id] = {
824
824
  ...h,
825
825
  isLoaded: !1
826
- }, v), Z.state.maps)
827
- }), l = se(
826
+ }, v), X.state.maps)
827
+ }), l = ce(
828
828
  r.reduce((v, h) => (v[h.id] = {
829
829
  instanceRef: {
830
830
  current: null
@@ -833,41 +833,41 @@ function Qr({
833
833
  current: null
834
834
  }
835
835
  }, v), {})
836
- ), f = M(
837
- (v, h, x) => {
836
+ ), f = O(
837
+ (v, h, A) => {
838
838
  r[0].id === v && a?.({
839
839
  type: h,
840
- payload: x
840
+ payload: A
841
841
  });
842
842
  },
843
843
  [a, r]
844
- ), y = M(
844
+ ), y = O(
845
845
  (v, h) => {
846
846
  o({
847
- type: F.SetViewState,
847
+ type: k.SetViewState,
848
848
  payload: {
849
849
  id: h,
850
850
  viewState: v
851
851
  }
852
- }), f(h, F.SetViewState, v);
852
+ }), f(h, k.SetViewState, v);
853
853
  },
854
854
  [o, f]
855
- ), c = M(
856
- ({ height: v, width: h }, x) => {
855
+ ), c = O(
856
+ ({ height: v, width: h }, A) => {
857
857
  o({
858
- type: F.SetResize,
858
+ type: k.SetResize,
859
859
  payload: {
860
- id: x,
860
+ id: A,
861
861
  height: v,
862
862
  width: h
863
863
  }
864
- }), f(x, F.SetResize, { height: v, width: h });
864
+ }), f(A, k.SetResize, { height: v, width: h });
865
865
  },
866
866
  [o, f]
867
- ), E = M(
867
+ ), m = O(
868
868
  (v, h) => {
869
869
  o({
870
- type: F.SetBasemap,
870
+ type: k.SetBasemap,
871
871
  payload: {
872
872
  id: h,
873
873
  basemap: v
@@ -875,10 +875,10 @@ function Qr({
875
875
  });
876
876
  },
877
877
  [o]
878
- ), p = M(
878
+ ), E = O(
879
879
  (v, h) => {
880
880
  o({
881
- type: F.SetZoom,
881
+ type: k.SetZoom,
882
882
  payload: {
883
883
  id: h,
884
884
  zoom: v
@@ -886,10 +886,10 @@ function Qr({
886
886
  });
887
887
  },
888
888
  [o]
889
- ), b = M(
889
+ ), _ = O(
890
890
  (v, h) => {
891
891
  o({
892
- type: F.SetLoaded,
892
+ type: k.SetLoaded,
893
893
  payload: {
894
894
  id: h,
895
895
  value: v
@@ -897,16 +897,16 @@ function Qr({
897
897
  });
898
898
  },
899
899
  [o]
900
- ), O = se({
900
+ ), b = ce({
901
901
  setViewState: y,
902
- setBasemap: E,
902
+ setBasemap: m,
903
903
  setResize: c,
904
- setZoom: p,
905
- setLoaded: b
904
+ setZoom: E,
905
+ setLoaded: _
906
906
  });
907
- return /* @__PURE__ */ J.jsx(st.Provider, { value: O.current, children: /* @__PURE__ */ J.jsx(it.Provider, { value: l, children: /* @__PURE__ */ J.jsx(ot.Provider, { value: s, children: t }) }) });
907
+ return /* @__PURE__ */ Z.jsx(ut.Provider, { value: b.current, children: /* @__PURE__ */ Z.jsx(ct.Provider, { value: l, children: /* @__PURE__ */ Z.jsx(st.Provider, { value: s, children: t }) }) });
908
908
  }
909
- const ct = {
909
+ const lt = {
910
910
  NUMBER: {
911
911
  style: "decimal",
912
912
  maximumFractionDigits: 1,
@@ -928,27 +928,27 @@ const ct = {
928
928
  day: "2-digit"
929
929
  }
930
930
  };
931
- function ut(t, r, a) {
931
+ function ft(t, r, a) {
932
932
  return Intl.NumberFormat(r, a).format(t);
933
933
  }
934
- function lt(t, r, a = {}) {
935
- return ut(t, r, { ...ct.NUMBER, ...a });
934
+ function dt(t, r, a = {}) {
935
+ return ft(t, r, { ...lt.NUMBER, ...a });
936
936
  }
937
937
  function fr(t, r, a = {}) {
938
- return ut(t, r, { ...ct.CURRENCY, ...a });
938
+ return ft(t, r, { ...lt.CURRENCY, ...a });
939
939
  }
940
- var L = /* @__PURE__ */ ((t) => (t.CURRENCY = "CURRENCY", t.DEFAULT = "DEFAULT", t.NUMBER = "NUMBER", t))(L || {});
941
- const Ze = {
942
- [L.CURRENCY]: {
943
- type: L.CURRENCY,
940
+ var F = /* @__PURE__ */ ((t) => (t.CURRENCY = "CURRENCY", t.DEFAULT = "DEFAULT", t.NUMBER = "NUMBER", t))(F || {});
941
+ const Qe = {
942
+ [F.CURRENCY]: {
943
+ type: F.CURRENCY,
944
944
  format: (t, r) => fr(t, r)
945
945
  },
946
- [L.NUMBER]: {
947
- type: L.NUMBER,
948
- format: (t, r) => lt(t, r)
946
+ [F.NUMBER]: {
947
+ type: F.NUMBER,
948
+ format: (t, r) => dt(t, r)
949
949
  },
950
- [L.DEFAULT]: {
951
- type: L.DEFAULT,
950
+ [F.DEFAULT]: {
951
+ type: F.DEFAULT,
952
952
  format: (t) => t.toLocaleString()
953
953
  }
954
954
  };
@@ -960,23 +960,23 @@ function en({
960
960
  showColumnName: o = !0,
961
961
  title: l,
962
962
  getColumnName: f = gr,
963
- getFieldHtml: y = mr,
963
+ getFieldHtml: y = pr,
964
964
  getTitle: c = dr,
965
- getValue: E = pr
965
+ getValue: m = mr
966
966
  }) {
967
- const p = l ? c(l) : "", O = a.reduce((v, h) => {
968
- const x = r[h], k = t[h], D = E(k, s, x), R = o ? f(h) : "";
969
- return v + y(R, D);
967
+ const E = l ? c(l) : "", b = a.reduce((v, h) => {
968
+ const A = r[h], U = t[h], j = m(U, s, A), P = o ? f(h) : "";
969
+ return v + y(P, j);
970
970
  }, "");
971
- return p + O;
971
+ return E + b;
972
972
  }
973
973
  function dr(t) {
974
974
  return `<h3 style="margin: 0"><strong>${t}</strong></h3></br>`;
975
975
  }
976
- function mr(t, r) {
976
+ function pr(t, r) {
977
977
  return `${t}${r}</br>`;
978
978
  }
979
- function pr(t, r, a) {
979
+ function mr(t, r, a) {
980
980
  try {
981
981
  return vr(a)(t, r);
982
982
  } catch {
@@ -984,19 +984,19 @@ function pr(t, r, a) {
984
984
  }
985
985
  }
986
986
  function vr(t) {
987
- return typeof t == "function" ? t : (t && Ze[t] || Ze[L.DEFAULT]).format;
987
+ return typeof t == "function" ? t : (t && Qe[t] || Qe[F.DEFAULT]).format;
988
988
  }
989
989
  function gr(t) {
990
990
  return `<strong>${t}</strong>: `;
991
991
  }
992
992
  function yr(t) {
993
- return Ee[t]?.type;
993
+ return Se[t]?.type;
994
994
  }
995
995
  function hr(t) {
996
- return yr(t) === at.GoogleMaps;
996
+ return yr(t) === it.GoogleMaps;
997
997
  }
998
998
  function Er({ mapId: t }) {
999
- const { isLoaded: r, basemap: a } = Se(t), { getOverlayInstance: s } = Re(t);
999
+ const { isLoaded: r, basemap: a } = Te(t), { getOverlayInstance: s } = Pe(t);
1000
1000
  return Qt(() => {
1001
1001
  if (!r || !hr(a))
1002
1002
  return null;
@@ -1004,15 +1004,15 @@ function Er({ mapId: t }) {
1004
1004
  return new er(l, {});
1005
1005
  }, [r, s, a]);
1006
1006
  }
1007
- var C = /* @__PURE__ */ ((t) => (t.milimeter = "milimeter", t.centimeter = "centimeter", t.meter = "meter", t.kilometer = "kilometer", t.mile = "mile", t.feet = "feet", t))(C || {}), ft = /* @__PURE__ */ ((t) => (t.meters = "meters", t.kilometer = "kilometers", t.mile = "miles", t))(ft || {}), ce = /* @__PURE__ */ ((t) => (t.AddPosition = "addPosition", t.Finish = "finish", t))(ce || {});
1008
- const Xe = [
1007
+ var C = /* @__PURE__ */ ((t) => (t.milimeter = "milimeter", t.centimeter = "centimeter", t.meter = "meter", t.kilometer = "kilometer", t.mile = "mile", t.feet = "feet", t))(C || {}), pt = /* @__PURE__ */ ((t) => (t.meters = "meters", t.kilometer = "kilometers", t.mile = "miles", t))(pt || {}), ue = /* @__PURE__ */ ((t) => (t.AddPosition = "addPosition", t.Finish = "finish", t))(ue || {});
1008
+ const et = [
1009
1009
  "anyclick",
1010
1010
  "pointermove",
1011
1011
  "panstart",
1012
1012
  "panmove",
1013
1013
  "panend",
1014
1014
  "keyup"
1015
- ], br = "mapMeasureLayer", _r = {
1015
+ ], br = "mapMeasureLayer", Sr = {
1016
1016
  id: br,
1017
1017
  pickable: !1,
1018
1018
  billboard: !1,
@@ -1038,17 +1038,17 @@ const Xe = [
1038
1038
  getLineWidth: 2
1039
1039
  }
1040
1040
  }
1041
- }, _e = {
1041
+ }, Re = {
1042
1042
  editing: [71, 219, 153, 255],
1043
1043
  finished: [49, 153, 107, 255]
1044
- }, Sr = {
1044
+ }, _r = {
1045
1045
  styles: {
1046
1046
  colors: {
1047
- editing: _e.editing,
1048
- finished: _e.finished
1047
+ editing: Re.editing,
1048
+ finished: Re.finished
1049
1049
  }
1050
1050
  }
1051
- }, Qe = {
1051
+ }, tt = {
1052
1052
  [C.kilometer]: "km",
1053
1053
  [C.centimeter]: "cm",
1054
1054
  [C.milimeter]: "mm",
@@ -1070,7 +1070,7 @@ class Tr extends tr {
1070
1070
  }
1071
1071
  _addEventHandlers() {
1072
1072
  const r = this._getEventManager(), { eventHandler: a } = this.state._editableLayerState;
1073
- for (const s of Xe)
1073
+ for (const s of et)
1074
1074
  r.on(s, a, {
1075
1075
  // give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
1076
1076
  priority: 100
@@ -1078,7 +1078,7 @@ class Tr extends tr {
1078
1078
  }
1079
1079
  _removeEventHandlers(r = void 0) {
1080
1080
  const a = r || this._getEventManager(), { eventHandler: s } = this.state._editableLayerState;
1081
- for (const o of Xe)
1081
+ for (const o of et)
1082
1082
  a.off(o, s);
1083
1083
  }
1084
1084
  _getEventManager() {
@@ -1086,15 +1086,16 @@ class Tr extends tr {
1086
1086
  this.context.deck.eventManager;
1087
1087
  }
1088
1088
  }
1089
- class Mr extends rr {
1089
+ class Pr extends rr {
1090
1090
  handleClick(r, a) {
1091
1091
  super.handleClick(r, a), a.onEdit({
1092
1092
  // data is the same
1093
1093
  updatedData: a.data,
1094
- editType: ce.AddPosition,
1094
+ editType: ue.AddPosition,
1095
1095
  editContext: {
1096
1096
  distance: this._currentDistance,
1097
- finished: this._isMeasuringSessionFinished
1097
+ finished: this._isMeasuringSessionFinished,
1098
+ positions: this._clickSequence
1098
1099
  }
1099
1100
  });
1100
1101
  }
@@ -1108,7 +1109,7 @@ class Mr extends rr {
1108
1109
  case "Escape":
1109
1110
  this._isMeasuringSessionFinished = !0, o === 1 && (this.resetClickSequence(), this._currentTooltips = []), a.onUpdateCursor("cell"), a.onEdit({
1110
1111
  updatedData: a.data,
1111
- editType: ce.Finish,
1112
+ editType: ue.Finish,
1112
1113
  editContext: {
1113
1114
  finished: this._isMeasuringSessionFinished
1114
1115
  }
@@ -1118,9 +1119,9 @@ class Mr extends rr {
1118
1119
  }
1119
1120
  }
1120
1121
  var Or = function(r) {
1121
- return Pr(r) && !Cr(r);
1122
+ return Mr(r) && !Cr(r);
1122
1123
  };
1123
- function Pr(t) {
1124
+ function Mr(t) {
1124
1125
  return !!t && typeof t == "object";
1125
1126
  }
1126
1127
  function Cr(t) {
@@ -1134,29 +1135,29 @@ function xr(t) {
1134
1135
  function Ar(t) {
1135
1136
  return Array.isArray(t) ? [] : {};
1136
1137
  }
1137
- function X(t, r) {
1138
- return r.clone !== !1 && r.isMergeableObject(t) ? Y(Ar(t), t, r) : t;
1138
+ function Q(t, r) {
1139
+ return r.clone !== !1 && r.isMergeableObject(t) ? B(Ar(t), t, r) : t;
1139
1140
  }
1140
1141
  function Dr(t, r, a) {
1141
1142
  return t.concat(r).map(function(s) {
1142
- return X(s, a);
1143
+ return Q(s, a);
1143
1144
  });
1144
1145
  }
1145
1146
  function kr(t, r) {
1146
1147
  if (!r.customMerge)
1147
- return Y;
1148
+ return B;
1148
1149
  var a = r.customMerge(t);
1149
- return typeof a == "function" ? a : Y;
1150
+ return typeof a == "function" ? a : B;
1150
1151
  }
1151
1152
  function Fr(t) {
1152
1153
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
1153
1154
  return Object.propertyIsEnumerable.call(t, r);
1154
1155
  }) : [];
1155
1156
  }
1156
- function et(t) {
1157
+ function rt(t) {
1157
1158
  return Object.keys(t).concat(Fr(t));
1158
1159
  }
1159
- function dt(t, r) {
1160
+ function mt(t, r) {
1160
1161
  try {
1161
1162
  return r in t;
1162
1163
  } catch {
@@ -1164,57 +1165,59 @@ function dt(t, r) {
1164
1165
  }
1165
1166
  }
1166
1167
  function Lr(t, r) {
1167
- return dt(t, r) && !(Object.hasOwnProperty.call(t, r) && Object.propertyIsEnumerable.call(t, r));
1168
+ return mt(t, r) && !(Object.hasOwnProperty.call(t, r) && Object.propertyIsEnumerable.call(t, r));
1168
1169
  }
1169
1170
  function Ir(t, r, a) {
1170
1171
  var s = {};
1171
- return a.isMergeableObject(t) && et(t).forEach(function(o) {
1172
- s[o] = X(t[o], a);
1173
- }), et(r).forEach(function(o) {
1174
- Lr(t, o) || (dt(t, o) && a.isMergeableObject(r[o]) ? s[o] = kr(o, a)(t[o], r[o], a) : s[o] = X(r[o], a));
1172
+ return a.isMergeableObject(t) && rt(t).forEach(function(o) {
1173
+ s[o] = Q(t[o], a);
1174
+ }), rt(r).forEach(function(o) {
1175
+ Lr(t, o) || (mt(t, o) && a.isMergeableObject(r[o]) ? s[o] = kr(o, a)(t[o], r[o], a) : s[o] = Q(r[o], a));
1175
1176
  }), s;
1176
1177
  }
1177
- function Y(t, r, a) {
1178
- a = a || {}, a.arrayMerge = a.arrayMerge || Dr, a.isMergeableObject = a.isMergeableObject || Or, a.cloneUnlessOtherwiseSpecified = X;
1178
+ function B(t, r, a) {
1179
+ a = a || {}, a.arrayMerge = a.arrayMerge || Dr, a.isMergeableObject = a.isMergeableObject || Or, a.cloneUnlessOtherwiseSpecified = Q;
1179
1180
  var s = Array.isArray(r), o = Array.isArray(t), l = s === o;
1180
- return l ? s ? a.arrayMerge(t, r, a) : Ir(t, r, a) : X(r, a);
1181
+ return l ? s ? a.arrayMerge(t, r, a) : Ir(t, r, a) : Q(r, a);
1181
1182
  }
1182
- Y.all = function(r, a) {
1183
+ B.all = function(r, a) {
1183
1184
  if (!Array.isArray(r))
1184
1185
  throw new Error("first argument should be an array");
1185
1186
  return r.reduce(function(s, o) {
1186
- return Y(s, o, a);
1187
+ return B(s, o, a);
1187
1188
  }, {});
1188
1189
  };
1189
- var Nr = Y, Ur = Nr;
1190
- const ie = /* @__PURE__ */ cr(Ur), G = () => {
1190
+ var Nr = B, Ur = Nr;
1191
+ const se = /* @__PURE__ */ cr(Ur), Y = () => {
1191
1192
  throw new Error(
1192
1193
  "You forgot to wrap your component in <MeasurementToolsProvider>."
1193
1194
  );
1194
- }, Te = {
1195
+ }, Oe = {
1195
1196
  state: {
1196
1197
  enable: !1,
1197
1198
  finished: !0,
1198
1199
  distance: 0,
1199
1200
  locale: "en",
1200
- unit: C.kilometer
1201
+ unit: C.kilometer,
1202
+ positions: []
1201
1203
  },
1202
1204
  actions: {
1203
- setEnable: G,
1204
- setFinished: G,
1205
- setUnit: G,
1206
- setDistance: G,
1207
- setLocale: G
1205
+ setEnable: Y,
1206
+ setFinished: Y,
1207
+ setUnit: Y,
1208
+ setDistance: Y,
1209
+ setLocale: Y,
1210
+ setPositions: Y
1208
1211
  }
1209
- }, mt = Q(Te.state), pt = Q(Te.actions);
1210
- function vt() {
1211
- return ee(
1212
- mt
1212
+ }, vt = ee(Oe.state), gt = ee(Oe.actions);
1213
+ function yt() {
1214
+ return te(
1215
+ vt
1213
1216
  );
1214
1217
  }
1215
- function gt() {
1216
- return ee(
1217
- pt
1218
+ function ht() {
1219
+ return te(
1220
+ gt
1218
1221
  );
1219
1222
  }
1220
1223
  const Vr = {
@@ -1337,15 +1340,15 @@ const Vr = {
1337
1340
  }, Br = nr({
1338
1341
  length: Yr
1339
1342
  });
1340
- function yt(t, r) {
1341
- return Br(t).from(Qe[C.meter]).to(Qe[r]);
1343
+ function Et(t, r) {
1344
+ return Br(t).from(tt[C.meter]).to(tt[r]);
1342
1345
  }
1343
- function ht({
1346
+ function bt({
1344
1347
  meters: t,
1345
1348
  unit: r,
1346
1349
  locale: a
1347
1350
  }) {
1348
- return `${lt(yt(t, r), a, {
1351
+ return `${dt(Et(t, r), a, {
1349
1352
  style: "unit",
1350
1353
  unit: Rr[r],
1351
1354
  unitDisplay: "short"
@@ -1358,47 +1361,49 @@ function tn(t, {
1358
1361
  }
1359
1362
  function rn({
1360
1363
  mapId: t,
1361
- defaultProps: { styles: r = Sr.styles } = {},
1364
+ defaultProps: { styles: r = _r.styles } = {},
1362
1365
  layerProps: a = {}
1363
1366
  }) {
1364
- const { enable: s, unit: o, finished: l, locale: f } = vt(), { setDistance: y, setFinished: c } = gt(), { isLoaded: E } = Se(t), p = se(), b = Er({ mapId: t }), O = l ? r.colors?.finished : r.colors?.editing, v = M(
1365
- ({ editType: R, editContext: te }) => {
1366
- R === ce.AddPosition && y(te.distance), c(te.finished);
1367
+ const { enable: s, unit: o, finished: l, locale: f } = yt(), { setDistance: y, setFinished: c, setPositions: m } = ht(), { isLoaded: E } = Te(t), _ = ce(), b = Er({ mapId: t }), v = l ? r.colors?.finished : r.colors?.editing, h = O(
1368
+ ({ editType: le, editContext: W }) => {
1369
+ le === ue.AddPosition && y(W.distance), c(W.finished);
1370
+ const re = W.positions;
1371
+ re?.length && m(re);
1367
1372
  },
1368
- [y, c]
1373
+ [y, c, m]
1369
1374
  );
1370
- if (nt(() => {
1371
- s || (p.current = void 0);
1375
+ if (ot(() => {
1376
+ s || (_.current = void 0);
1372
1377
  }, [s]), !s || !E)
1373
1378
  return null;
1374
- const { pickable: h, onHover: x, ...k } = Wr(
1379
+ const { pickable: A, onHover: U, ...j } = Wr(
1375
1380
  a,
1376
1381
  f,
1377
1382
  o,
1378
- v,
1379
- O || _e.guide
1383
+ h,
1384
+ v || Re.guide
1380
1385
  );
1381
- return !p.current && !k.mode && (p.current = new Mr()), new Tr({
1382
- ...k,
1383
- pickable: h || !l,
1384
- onHover: l ? x : void 0,
1385
- mode: k?.mode || p.current,
1386
+ return !_.current && !j.mode && (_.current = new Pr()), new Tr({
1387
+ ...j,
1388
+ pickable: A || !l,
1389
+ onHover: l ? U : void 0,
1390
+ mode: j?.mode || _.current,
1386
1391
  eventManager: b
1387
1392
  });
1388
1393
  }
1389
1394
  function Wr(t, r, a, s, o) {
1390
- const l = ie(t, {
1395
+ const l = se(t, {
1391
1396
  modeConfig: {
1392
1397
  // We force distance due to conversion is addressed at feature getText level
1393
1398
  formatTooltip: (c) => c,
1394
1399
  turfOptions: {
1395
- units: ft.meters
1400
+ units: pt.meters
1396
1401
  }
1397
1402
  },
1398
1403
  onEdit: s,
1399
1404
  _subLayerProps: {
1400
1405
  tooltips: {
1401
- getText: (c) => ht({
1406
+ getText: (c) => bt({
1402
1407
  ...c,
1403
1408
  meters: c.text,
1404
1409
  locale: r,
@@ -1409,7 +1414,7 @@ function Wr(t, r, a, s, o) {
1409
1414
  }
1410
1415
  }
1411
1416
  }
1412
- }), f = ie(_r, {
1417
+ }), f = se(Sr, {
1413
1418
  _subLayerProps: {
1414
1419
  guides: {
1415
1420
  getLineColor: o,
@@ -1419,22 +1424,29 @@ function Wr(t, r, a, s, o) {
1419
1424
  getEditHandlePointColor: o,
1420
1425
  getEditHandlePointOutlineColor: o
1421
1426
  });
1422
- return ie(f, l);
1427
+ return se(f, l);
1423
1428
  }
1424
1429
  function nn({ children: t }) {
1425
- const { distance: r, enable: a, unit: s, locale: o } = vt(), { setDistance: l, setEnable: f } = gt(), y = yt(r, s), c = () => {
1426
- l(0), f(!a);
1430
+ const {
1431
+ distance: r,
1432
+ enable: a,
1433
+ unit: s,
1434
+ locale: o,
1435
+ positions: l
1436
+ } = yt(), { setDistance: f, setEnable: y } = ht(), c = Et(r, s), m = () => {
1437
+ f(0), y(!a);
1427
1438
  };
1428
1439
  return t({
1429
1440
  enable: a,
1430
1441
  meters: r,
1431
- text: ht({ meters: r, unit: s, locale: o }),
1432
- distance: y,
1442
+ text: bt({ meters: r, unit: s, locale: o }),
1443
+ distance: c,
1433
1444
  unit: s,
1434
- onToggleButton: c
1445
+ onToggleButton: m,
1446
+ positions: l
1435
1447
  });
1436
1448
  }
1437
- var $ = /* @__PURE__ */ ((t) => (t.SetEnable = "SET_ENABLE", t.SetFinished = "SET_FINISHED", t.SetDistance = "SET_DISTANCE", t.SetUnit = "SET_UNIT", t.SetLocale = "SET_LOCALE", t))($ || {});
1449
+ var N = /* @__PURE__ */ ((t) => (t.SetEnable = "SET_ENABLE", t.SetFinished = "SET_FINISHED", t.SetDistance = "SET_DISTANCE", t.SetUnit = "SET_UNIT", t.SetLocale = "SET_LOCALE", t.SetPositions = "SET_POSITIONS", t))(N || {});
1438
1450
  function Hr(t, { type: r, payload: a }) {
1439
1451
  return {
1440
1452
  SET_ENABLE: () => ({
@@ -1457,6 +1469,10 @@ function Hr(t, { type: r, payload: a }) {
1457
1469
  SET_LOCALE: () => ({
1458
1470
  ...t,
1459
1471
  locale: a
1472
+ }),
1473
+ SET_POSITIONS: () => ({
1474
+ ...t,
1475
+ positions: a
1460
1476
  })
1461
1477
  }[r]?.() ?? t;
1462
1478
  }
@@ -1465,89 +1481,95 @@ function an({
1465
1481
  defaultProps: r = {},
1466
1482
  locale: a
1467
1483
  }) {
1468
- const [s, o] = rt(
1484
+ const [s, o] = at(
1469
1485
  Hr,
1470
- ie(Te.state, r)
1471
- ), l = M(
1486
+ se(Oe.state, r)
1487
+ ), l = O(
1472
1488
  (b) => {
1473
- o({ type: $.SetLocale, payload: b });
1489
+ o({ type: N.SetLocale, payload: b });
1474
1490
  },
1475
1491
  [o]
1476
1492
  );
1477
- nt(() => {
1493
+ ot(() => {
1478
1494
  a && l(a);
1479
1495
  }, [a, l]);
1480
- const f = M(
1496
+ const f = O(
1497
+ (b) => {
1498
+ o({ type: N.SetEnable, payload: b });
1499
+ },
1500
+ [o]
1501
+ ), y = O(
1481
1502
  (b) => {
1482
- o({ type: $.SetEnable, payload: b });
1503
+ o({ type: N.SetFinished, payload: b });
1483
1504
  },
1484
1505
  [o]
1485
- ), y = M(
1506
+ ), c = O(
1486
1507
  (b) => {
1487
- o({ type: $.SetFinished, payload: b });
1508
+ o({ type: N.SetDistance, payload: b });
1488
1509
  },
1489
1510
  [o]
1490
- ), c = M(
1511
+ ), m = O(
1491
1512
  (b) => {
1492
- o({ type: $.SetDistance, payload: b });
1513
+ o({ type: N.SetUnit, payload: b });
1493
1514
  },
1494
1515
  [o]
1495
- ), E = M(
1516
+ ), E = O(
1496
1517
  (b) => {
1497
- o({ type: $.SetUnit, payload: b });
1518
+ o({ type: N.SetPositions, payload: b });
1498
1519
  },
1499
1520
  [o]
1500
- ), p = se({
1521
+ ), _ = ce({
1501
1522
  setEnable: f,
1502
1523
  setFinished: y,
1503
1524
  setDistance: c,
1504
- setUnit: E,
1505
- setLocale: l
1525
+ setUnit: m,
1526
+ setLocale: l,
1527
+ setPositions: E
1506
1528
  });
1507
- return /* @__PURE__ */ J.jsx(pt.Provider, { value: p.current, children: /* @__PURE__ */ J.jsx(mt.Provider, { value: s, children: t }) });
1529
+ return /* @__PURE__ */ Z.jsx(gt.Provider, { value: _.current, children: /* @__PURE__ */ Z.jsx(vt.Provider, { value: s, children: t }) });
1508
1530
  }
1509
1531
  export {
1510
- Qe as CONVERSIONS_UNITS,
1511
- he as CartoBasemapURL,
1532
+ tt as CONVERSIONS_UNITS,
1533
+ be as CartoBasemapURL,
1512
1534
  or as CartoBasemapsNames,
1513
1535
  Tr as CustomEditableGeojsonLayer,
1514
- Mr as CustomMeasureDistanceMode,
1515
- _e as DEFAULT_COLORS,
1516
- _r as DEFAULT_LAYER_PROPS,
1517
- Sr as DEFAULT_PROPS,
1518
- Xe as EVENT_MANAGER_EVENT_TYPES,
1519
- ce as EditType,
1520
- L as FormatterTypes,
1536
+ Pr as CustomMeasureDistanceMode,
1537
+ Re as DEFAULT_COLORS,
1538
+ Sr as DEFAULT_LAYER_PROPS,
1539
+ _r as DEFAULT_PROPS,
1540
+ et as EVENT_MANAGER_EVENT_TYPES,
1541
+ ue as EditType,
1542
+ F as FormatterTypes,
1521
1543
  ar as GMapsBasemap,
1522
1544
  Rr as INTL_UNITS,
1523
- Ee as MAPS_BASEMAP,
1545
+ Se as MAPS_BASEMAP,
1524
1546
  br as MAP_MEASURE_LAYER_ID,
1525
- F as MapActions,
1526
- st as MapActionsContext,
1527
- ot as MapContext,
1547
+ k as MapActions,
1548
+ ut as MapActionsContext,
1549
+ st as MapContext,
1528
1550
  nn as MapMeasurementTools,
1529
1551
  rn as MapMeasurementToolsLayer,
1530
1552
  an as MapMeasurementToolsProvider,
1531
1553
  C as MapMeasurementUnit,
1532
- ft as MapMeasurementUnitTurf,
1554
+ pt as MapMeasurementUnitTurf,
1533
1555
  Qr as MapProvider,
1534
- it as MapReferencesContext,
1535
- at as MapsTypes,
1536
- yt as convertMetersTo,
1556
+ ct as MapReferencesContext,
1557
+ it as MapsTypes,
1558
+ Et as convertMetersTo,
1537
1559
  tn as getDeckController,
1538
1560
  yr as getMapType,
1539
- ht as getTextLayerFormattedDistance,
1561
+ bt as getTextLayerFormattedDistance,
1540
1562
  hr as isGmaps,
1541
1563
  en as objectToHtml,
1542
1564
  ir as reducer,
1543
1565
  Er as useEventManager,
1544
- Se as useMap,
1566
+ Te as useMap,
1545
1567
  sr as useMapActions,
1546
1568
  Xr as useMapActionsByID,
1547
1569
  Jr as useMapByID,
1548
- vt as useMapMeasurementTools,
1549
- gt as useMapMeasurementToolsActions,
1550
- Re as useMapRefences,
1551
- Re as useMapReferences,
1570
+ yt as useMapMeasurementTools,
1571
+ ht as useMapMeasurementToolsActions,
1572
+ Pe as useMapRefences,
1573
+ Pe as useMapReferences,
1552
1574
  Zr as useMapReferencesByID
1553
1575
  };