vue3-google-map 0.26.0 → 0.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".mapdiv[data-v-c63ff230]{width:100%;height:100%}.advanced-marker-wrapper{display:none}.mapdiv .advanced-marker-wrapper{display:inline-block}.custom-control-wrapper[data-v-ab9120cd]{display:none}.mapdiv .custom-control-wrapper[data-v-ab9120cd]{display:inline-block}.info-window-wrapper[data-v-d182c1f9]{display:none}.mapdiv .info-window-wrapper[data-v-d182c1f9]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")),document.head.appendChild(a)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
2
- var pt = Object.defineProperty;
3
- var ft = (t, e, r) => e in t ? pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
4
- var se = (t, e, r) => (ft(t, typeof e != "symbol" ? e + "" : e, r), r);
5
- import { defineComponent as T, ref as _, provide as U, watch as S, onMounted as tt, onBeforeUnmount as B, markRaw as A, toRef as R, openBlock as F, createElementBlock as V, createElementVNode as ce, renderSlot as z, normalizeProps as mt, guardReactiveProps as ht, computed as W, Comment as we, inject as C, Fragment as gt, mergeProps as ke, createCommentVNode as be } from "vue";
6
- const D = Symbol("map"), Z = Symbol("api"), Ce = Symbol("marker"), Oe = Symbol("markerCluster"), de = Symbol("CustomMarker"), rt = Symbol("mapTilesLoaded"), H = [
1
+ (function(){var e;"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,a.appendChild(document.createTextNode(".mapdiv[data-v-4e398d5a]{width:100%;height:100%}.advanced-marker-wrapper{display:none}.mapdiv .advanced-marker-wrapper{display:inline-block}.custom-control-wrapper[data-v-ab9120cd]{display:none}.mapdiv .custom-control-wrapper[data-v-ab9120cd]{display:inline-block}.info-window-wrapper[data-v-4d4142cf]{display:none}.mapdiv .info-window-wrapper[data-v-4d4142cf]{display:inline-block}.custom-marker-wrapper[data-v-574a274a]{display:none}.mapdiv .custom-marker-wrapper[data-v-574a274a]{display:inline-block}")),document.head.appendChild(a)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
2
+ var ht = Object.defineProperty;
3
+ var gt = (t, e, r) => e in t ? ht(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
4
+ var ae = (t, e, r) => (gt(t, typeof e != "symbol" ? e + "" : e, r), r);
5
+ import { defineComponent as T, ref as _, provide as U, watch as S, onMounted as nt, onBeforeUnmount as B, markRaw as A, toRef as R, openBlock as F, createElementBlock as V, createElementVNode as pe, renderSlot as z, normalizeProps as vt, guardReactiveProps as yt, computed as W, Comment as ke, inject as b, Fragment as _t, mergeProps as we, createCommentVNode as Ce } from "vue";
6
+ const D = Symbol("map"), Z = Symbol("api"), be = Symbol("marker"), Oe = Symbol("markerCluster"), fe = Symbol("CustomMarker"), st = Symbol("mapTilesLoaded"), H = [
7
7
  "click",
8
8
  "dblclick",
9
9
  "drag",
@@ -16,50 +16,50 @@ const D = Symbol("map"), Z = Symbol("api"), Ce = Symbol("marker"), Oe = Symbol("
16
16
  "mouseup",
17
17
  "rightclick"
18
18
  ];
19
- function vt(t, e) {
19
+ function Et(t, e) {
20
20
  t.src = e;
21
21
  }
22
- const yt = (t) => {
22
+ const kt = (t) => {
23
23
  var e, r, n, s = "The Google Maps JavaScript API", o = "google", i = "importLibrary", l = "__ib__", a = document, c = window, p = c[o] || (c[o] = {}), u = p.maps || (p.maps = {}), f = /* @__PURE__ */ new Set(), m = new URLSearchParams(), h = () => e || (e = new Promise(async (d, g) => {
24
24
  var v;
25
25
  await (r = a.createElement("script")), m.set("libraries", [...f] + "");
26
26
  for (n in t)
27
27
  m.set(n.replace(/[A-Z]/g, (y) => "_" + y[0].toLowerCase()), t[n]);
28
- m.set("callback", o + ".maps." + l), vt(r, "https://maps.googleapis.com/maps/api/js?" + m), u[l] = d, r.onerror = () => e = g(Error(s + " could not load.")), r.nonce = ((v = a.querySelector("script[nonce]")) == null ? void 0 : v.nonce) || "", a.head.append(r);
28
+ m.set("callback", o + ".maps." + l), Et(r, "https://maps.googleapis.com/maps/api/js?" + m), u[l] = d, r.onerror = () => e = g(Error(s + " could not load.")), r.nonce = ((v = a.querySelector("script[nonce]")) == null ? void 0 : v.nonce) || "", a.head.append(r);
29
29
  }));
30
30
  u[i] ? console.warn(s + " only loads once. Ignoring:", t) : u[i] = (d, ...g) => f.add(d) && h().then(() => u[i](d, ...g));
31
- }, _t = (t) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(t)}) will be ignored.`, Et = (t) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(t)}) will be ignored.`, wt = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", kt = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", Me = process.env.NODE_ENV !== "production" ? (t) => {
31
+ }, wt = (t) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(t)}) will be ignored.`, Ct = (t) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(t)}) will be ignored.`, bt = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", Ot = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", Me = process.env.NODE_ENV !== "production" ? (t) => {
32
32
  console.warn(`[@googlemaps/js-api-loader] ${t}`);
33
33
  } : () => {
34
- }, bt = process.env.NODE_ENV !== "production" ? (t) => {
34
+ }, Mt = process.env.NODE_ENV !== "production" ? (t) => {
35
35
  console.info(`[@googlemaps/js-api-loader] ${t}`);
36
36
  } : () => {
37
37
  };
38
38
  let ye = !1;
39
- function Ct(t) {
39
+ function St(t) {
40
40
  if (ye) {
41
- Me(_t(t));
41
+ Me(wt(t));
42
42
  return;
43
43
  }
44
- Mt(t), ye = !0;
44
+ Pt(t), ye = !0;
45
45
  }
46
- async function Ot(t) {
46
+ async function Tt(t) {
47
47
  var e, r;
48
- if (ye || Me(wt), !((r = (e = window == null ? void 0 : window.google) == null ? void 0 : e.maps) != null && r.importLibrary))
48
+ if (ye || Me(bt), !((r = (e = window == null ? void 0 : window.google) == null ? void 0 : e.maps) != null && r.importLibrary))
49
49
  throw new Error("google.maps.importLibrary is not installed.");
50
50
  return await google.maps.importLibrary(t);
51
51
  }
52
- function Mt(t) {
52
+ function Pt(t) {
53
53
  var r, n;
54
54
  const e = !!((n = (r = window.google) == null ? void 0 : r.maps) != null && n.importLibrary);
55
- e ? bt(Et(t)) : process.env.NODE_ENV !== "production" && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && Me(kt), e || yt(t);
55
+ e ? Mt(Ct(t)) : process.env.NODE_ENV !== "production" && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && Me(Ot), e || kt(t);
56
56
  }
57
- function St(t) {
57
+ function At(t) {
58
58
  return class extends t.OverlayView {
59
59
  constructor(n) {
60
60
  super();
61
- se(this, "element");
62
- se(this, "opts");
61
+ ae(this, "element");
62
+ ae(this, "opts");
63
63
  const { element: s, ...o } = n;
64
64
  this.element = s, this.opts = o, this.opts.map && this.setMap(this.opts.map);
65
65
  }
@@ -150,7 +150,7 @@ const qe = [
150
150
  "tilesloaded",
151
151
  "tilt_changed",
152
152
  "zoom_changed"
153
- ], Tt = T({
153
+ ], qt = T({
154
154
  props: {
155
155
  apiPromise: {
156
156
  type: Promise
@@ -356,10 +356,10 @@ const qe = [
356
356
  required: !1
357
357
  }
358
358
  },
359
- emits: qe,
359
+ emits: [...qe],
360
360
  setup(t, { emit: e }) {
361
361
  const r = _(), n = _(!1), s = _(), o = _(), i = _(!1);
362
- U(D, s), U(Z, o), U(rt, i);
362
+ U(D, s), U(Z, o), U(st, i);
363
363
  const l = () => {
364
364
  const u = { ...t };
365
365
  Object.keys(u).forEach((d) => {
@@ -390,12 +390,12 @@ const qe = [
390
390
  { immediate: !0 }
391
391
  ), c = () => {
392
392
  const { apiKey: u, region: f, version: m, language: h, libraries: d } = t;
393
- Ct({ key: u, region: f, v: m, language: h, libraries: d });
393
+ St({ key: u, region: f, v: m, language: h, libraries: d });
394
394
  }, p = (u) => {
395
395
  const f = u ? u.maps : google.maps;
396
396
  o.value = A(f), s.value = A(new f.Map(r.value, l()));
397
- const m = St(o.value);
398
- o.value[de] = m, qe.forEach((d) => {
397
+ const m = At(o.value);
398
+ o.value[fe] = m, qe.forEach((d) => {
399
399
  var g;
400
400
  (g = s.value) == null || g.addListener(d, (v) => e(d, v));
401
401
  }), n.value = !0;
@@ -405,21 +405,21 @@ const qe = [
405
405
  S(
406
406
  [() => t.center, () => t.zoom, ...h],
407
407
  ([d, g], [v, y]) => {
408
- var k, M, L;
409
- const { center: w, zoom: P, ...O } = l();
410
- (k = s.value) == null || k.setOptions(O), g !== void 0 && g !== y && ((M = s.value) == null || M.setZoom(g));
408
+ var w, M, L;
409
+ const { center: k, zoom: P, ...O } = l();
410
+ (w = s.value) == null || w.setOptions(O), g !== void 0 && g !== y && ((M = s.value) == null || M.setZoom(g));
411
411
  const E = !v || d.lng !== v.lng || d.lat !== v.lat;
412
412
  d && E && ((L = s.value) == null || L.panTo(d));
413
413
  }
414
414
  );
415
415
  };
416
- return tt(() => {
416
+ return nt(() => {
417
417
  if (t.apiPromise && t.apiPromise instanceof Promise)
418
418
  t.apiPromise.then(p);
419
419
  else {
420
420
  Ae || (c(), Ae = !0);
421
421
  const u = t.libraries && t.libraries.length > 0 ? t.libraries : ["maps", "marker"];
422
- Promise.all(u.map((f) => Ot(f))).then(() => p());
422
+ Promise.all(u.map((f) => Tt(f))).then(() => p());
423
423
  }
424
424
  }), B(() => {
425
425
  var u;
@@ -432,21 +432,21 @@ const re = (t, e) => {
432
432
  for (const [n, s] of e)
433
433
  r[n] = s;
434
434
  return r;
435
- }, Pt = {
435
+ }, Lt = {
436
436
  ref: "mapRef",
437
437
  class: "mapdiv"
438
438
  };
439
- function At(t, e, r, n, s, o) {
439
+ function xt(t, e, r, n, s, o) {
440
440
  return F(), V("div", null, [
441
- ce("div", Pt, null, 512),
442
- z(t.$slots, "default", mt(ht({ ready: t.ready, map: t.map, api: t.api, mapTilesLoaded: t.mapTilesLoaded })), void 0, !0)
441
+ pe("div", Lt, null, 512),
442
+ z(t.$slots, "default", vt(yt({ ready: t.ready, map: t.map, api: t.api, mapTilesLoaded: t.mapTilesLoaded })), void 0, !0)
443
443
  ]);
444
444
  }
445
- const bn = /* @__PURE__ */ re(Tt, [["render", At], ["__scopeId", "data-v-c63ff230"]]);
446
- function qt(t) {
445
+ const Sn = /* @__PURE__ */ re(qt, [["render", xt], ["__scopeId", "data-v-4e398d5a"]]);
446
+ function jt(t) {
447
447
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
448
448
  }
449
- var Lt = function t(e, r) {
449
+ var It = function t(e, r) {
450
450
  if (e === r)
451
451
  return !0;
452
452
  if (e && r && typeof e == "object" && typeof r == "object") {
@@ -481,7 +481,7 @@ var Lt = function t(e, r) {
481
481
  }
482
482
  return e !== e && r !== r;
483
483
  };
484
- const ee = /* @__PURE__ */ qt(Lt), Le = ["click", "drag", "dragend", "dragstart", "gmp-click"], xt = T({
484
+ const ee = /* @__PURE__ */ jt(It), Le = "click", ot = "gmp-click", xe = ["drag", "dragend", "dragstart", ot], Rt = T({
485
485
  name: "AdvancedMarker",
486
486
  props: {
487
487
  options: {
@@ -493,32 +493,34 @@ const ee = /* @__PURE__ */ qt(Lt), Le = ["click", "drag", "dragend", "dragstart"
493
493
  required: !1
494
494
  }
495
495
  },
496
- emits: Le,
496
+ emits: [...xe, Le],
497
497
  setup(t, { emit: e, expose: r, slots: n }) {
498
498
  const s = _(), o = W(() => {
499
499
  var m;
500
- return (m = n.content) == null ? void 0 : m.call(n).some((h) => h.type !== we);
501
- }), i = R(t, "options"), l = R(t, "pinOptions"), a = _(), c = C(D, _()), p = C(Z, _()), u = C(Oe, _()), f = W(
500
+ return (m = n.content) == null ? void 0 : m.call(n).some((h) => h.type !== ke);
501
+ }), i = R(t, "options"), l = R(t, "pinOptions"), a = _(), c = b(D, _()), p = b(Z, _()), u = b(Oe, _()), f = W(
502
502
  () => !!(u.value && p.value && a.value instanceof google.maps.marker.AdvancedMarkerElement)
503
503
  );
504
504
  return S(
505
505
  [c, i, l, s],
506
506
  async (m, [h, d, g, v]) => {
507
- var k, M, L;
508
- const y = !ee(i.value, d) || !ee(l.value, g), w = s.value !== v, P = y || w || c.value !== h;
507
+ var w, M, L;
508
+ const y = !ee(i.value, d) || !ee(l.value, g), k = s.value !== v, P = y || k || c.value !== h;
509
509
  if (!c.value || !p.value || !P || o.value && !s.value)
510
510
  return;
511
511
  const { AdvancedMarkerElement: O, PinElement: E } = p.value.marker;
512
512
  if (a.value) {
513
- const { map: pe, content: ne, ...fe } = i.value;
513
+ const { map: ne, content: se, ...oe } = i.value;
514
514
  Object.assign(a.value, {
515
- content: o.value ? s.value : l.value ? new E(l.value).element : ne,
516
- ...fe
517
- }), f.value && ((k = u.value) == null || k.removeMarker(a.value), (M = u.value) == null || M.addMarker(a.value));
515
+ content: o.value ? s.value : l.value ? new E(l.value) : se,
516
+ ...oe
517
+ }), f.value && ((w = u.value) == null || w.removeMarker(a.value), (M = u.value) == null || M.addMarker(a.value));
518
518
  } else
519
- o.value ? i.value.content = s.value : l.value && (i.value.content = new E(l.value).element), a.value = A(new O(i.value)), f.value ? (L = u.value) == null || L.addMarker(a.value) : a.value.map = c.value, Le.forEach((pe) => {
520
- var ne;
521
- (ne = a.value) == null || ne.addListener(pe, (fe) => e(pe, fe));
519
+ o.value ? i.value.content = s.value : l.value && (i.value.content = new E(l.value)), a.value = A(new O(i.value)), f.value ? (L = u.value) == null || L.addMarker(a.value) : a.value.map = c.value, xe.forEach((ne) => {
520
+ var se;
521
+ (se = a.value) == null || se.addListener(ne, (oe) => {
522
+ e(ne, oe), ne === ot && e(Le, oe);
523
+ });
522
524
  });
523
525
  },
524
526
  {
@@ -529,26 +531,26 @@ const ee = /* @__PURE__ */ qt(Lt), Le = ["click", "drag", "dragend", "dragstart"
529
531
  ), B(() => {
530
532
  var m, h;
531
533
  a.value && ((m = p.value) == null || m.event.clearInstanceListeners(a.value), f.value ? (h = u.value) == null || h.removeMarker(a.value) : a.value.map = null);
532
- }), U(Ce, a), r({ marker: a }), { hasCustomSlotContent: o, markerRef: s };
534
+ }), U(be, a), r({ marker: a }), { hasCustomSlotContent: o, markerRef: s };
533
535
  }
534
536
  });
535
- const jt = {
537
+ const Nt = {
536
538
  key: 0,
537
539
  class: "advanced-marker-wrapper"
538
540
  };
539
- function It(t, e, r, n, s, o) {
540
- return F(), V(gt, null, [
541
- t.hasCustomSlotContent ? (F(), V("div", jt, [
542
- ce("div", ke({ ref: "markerRef" }, t.$attrs), [
541
+ function $t(t, e, r, n, s, o) {
542
+ return F(), V(_t, null, [
543
+ t.hasCustomSlotContent ? (F(), V("div", Nt, [
544
+ pe("div", we({ ref: "markerRef" }, t.$attrs), [
543
545
  z(t.$slots, "content")
544
546
  ], 16)
545
- ])) : be("", !0),
547
+ ])) : Ce("", !0),
546
548
  z(t.$slots, "default")
547
549
  ], 64);
548
550
  }
549
- const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker", je = (t) => t === de, K = (t, e, r, n) => {
550
- const s = _(), o = C(D, _()), i = C(Z, _()), l = C(Oe, _()), a = W(
551
- () => !!(l.value && i.value && (s.value instanceof i.value.Marker || s.value instanceof i.value[de]))
551
+ const Tn = /* @__PURE__ */ re(Rt, [["render", $t]]), je = (t) => t === "Marker", Ie = (t) => t === fe, K = (t, e, r, n) => {
552
+ const s = _(), o = b(D, _()), i = b(Z, _()), l = b(Oe, _()), a = W(
553
+ () => !!(l.value && i.value && (s.value instanceof i.value.Marker || s.value instanceof i.value[fe]))
552
554
  );
553
555
  return S(
554
556
  [o, r],
@@ -559,11 +561,11 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
559
561
  if (s.value)
560
562
  s.value.setOptions(r.value), a.value && ((m = l.value) == null || m.removeMarker(s.value), (h = l.value) == null || h.addMarker(s.value));
561
563
  else {
562
- if (xe(t))
564
+ if (je(t))
563
565
  s.value = A(
564
566
  new i.value[t](r.value)
565
567
  );
566
- else if (je(t)) {
568
+ else if (Ie(t)) {
567
569
  const g = r.value;
568
570
  g.element && (s.value = A(new i.value[t](g)));
569
571
  } else
@@ -573,7 +575,7 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
573
575
  map: o.value
574
576
  })
575
577
  );
576
- s.value && (a.value ? (d = l.value) == null || d.addMarker(s.value) : (xe(t) || je(t)) && s.value.setMap(o.value)), e.forEach((g) => {
578
+ s.value && (a.value ? (d = l.value) == null || d.addMarker(s.value) : (je(t) || Ie(t)) && s.value.setMap(o.value)), e.forEach((g) => {
577
579
  var v;
578
580
  (v = s.value) == null || v.addListener(g, (y) => n(g, y));
579
581
  });
@@ -587,7 +589,7 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
587
589
  var c, p;
588
590
  s.value && ((c = i.value) == null || c.event.clearInstanceListeners(s.value), a.value ? (p = l.value) == null || p.removeMarker(s.value) : s.value.setMap(null));
589
591
  }), s;
590
- }, Ie = [
592
+ }, Re = [
591
593
  "animation_changed",
592
594
  "click",
593
595
  "dblclick",
@@ -610,7 +612,7 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
610
612
  "shape_changed",
611
613
  "title_changed",
612
614
  "visible_changed"
613
- ], On = T({
615
+ ], Pn = T({
614
616
  name: "Marker",
615
617
  props: {
616
618
  options: {
@@ -618,15 +620,15 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
618
620
  required: !0
619
621
  }
620
622
  },
621
- emits: Ie,
623
+ emits: [...Re],
622
624
  setup(t, { emit: e, expose: r, slots: n }) {
623
- const s = R(t, "options"), o = K("Marker", Ie, s, e);
624
- return U(Ce, o), r({ marker: o }), () => {
625
+ const s = R(t, "options"), o = K("Marker", Re, s, e);
626
+ return U(be, o), r({ marker: o }), () => {
625
627
  var i;
626
628
  return (i = n.default) == null ? void 0 : i.call(n);
627
629
  };
628
630
  }
629
- }), Mn = T({
631
+ }), An = T({
630
632
  name: "Polyline",
631
633
  props: {
632
634
  options: {
@@ -634,13 +636,13 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
634
636
  required: !0
635
637
  }
636
638
  },
637
- emits: H,
639
+ emits: [...H],
638
640
  setup(t, { emit: e }) {
639
641
  const r = R(t, "options");
640
642
  return { polyline: K("Polyline", H, r, e) };
641
643
  },
642
644
  render: () => null
643
- }), Sn = T({
645
+ }), qn = T({
644
646
  name: "Polygon",
645
647
  props: {
646
648
  options: {
@@ -648,13 +650,13 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
648
650
  required: !0
649
651
  }
650
652
  },
651
- emits: H,
653
+ emits: [...H],
652
654
  setup(t, { emit: e }) {
653
655
  const r = R(t, "options");
654
656
  return { polygon: K("Polygon", H, r, e) };
655
657
  },
656
658
  render: () => null
657
- }), Re = H.concat(["bounds_changed"]), Tn = T({
659
+ }), Ne = [...H, "bounds_changed"], Ln = T({
658
660
  name: "Rectangle",
659
661
  props: {
660
662
  options: {
@@ -662,13 +664,13 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
662
664
  required: !0
663
665
  }
664
666
  },
665
- emits: Re,
667
+ emits: [...Ne],
666
668
  setup(t, { emit: e }) {
667
669
  const r = R(t, "options");
668
- return { rectangle: K("Rectangle", Re, r, e) };
670
+ return { rectangle: K("Rectangle", Ne, r, e) };
669
671
  },
670
672
  render: () => null
671
- }), $e = H.concat(["center_changed", "radius_changed"]), Pn = T({
673
+ }), $e = [...H, "center_changed", "radius_changed"], xn = T({
672
674
  name: "Circle",
673
675
  props: {
674
676
  options: {
@@ -676,13 +678,13 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
676
678
  required: !0
677
679
  }
678
680
  },
679
- emits: $e,
681
+ emits: [...$e],
680
682
  setup(t, { emit: e }) {
681
683
  const r = R(t, "options");
682
684
  return { circle: K("Circle", $e, r, e) };
683
685
  },
684
686
  render: () => null
685
- }), Rt = T({
687
+ }), Bt = T({
686
688
  props: {
687
689
  position: {
688
690
  type: String,
@@ -695,7 +697,7 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
695
697
  },
696
698
  emits: ["content:loaded"],
697
699
  setup(t, { emit: e }) {
698
- const r = _(null), n = C(D, _()), s = C(Z, _()), o = C(rt, _(!1)), i = S(
700
+ const r = _(null), n = b(D, _()), s = b(Z, _()), o = b(st, _(!1)), i = S(
699
701
  [o, s, r],
700
702
  ([c, p, u]) => {
701
703
  p && c && u && (l(t.position), e("content:loaded"), setTimeout(i, 0));
@@ -728,23 +730,27 @@ const Cn = /* @__PURE__ */ re(xt, [["render", It]]), xe = (t) => t === "Marker",
728
730
  ), { controlRef: r };
729
731
  }
730
732
  });
731
- const $t = {
733
+ const Dt = {
732
734
  ref: "controlRef",
733
735
  class: "custom-control-wrapper"
734
736
  };
735
- function Nt(t, e, r, n, s, o) {
736
- return F(), V("div", $t, [
737
+ function Zt(t, e, r, n, s, o) {
738
+ return F(), V("div", Dt, [
737
739
  z(t.$slots, "default", {}, void 0, !0)
738
740
  ], 512);
739
741
  }
740
- const An = /* @__PURE__ */ re(Rt, [["render", Nt], ["__scopeId", "data-v-ab9120cd"]]), Ne = [
742
+ const jn = /* @__PURE__ */ re(Bt, [["render", Zt], ["__scopeId", "data-v-ab9120cd"]]);
743
+ function Be(t) {
744
+ return t instanceof google.maps.marker.AdvancedMarkerElement ? "gmp-click" : "click";
745
+ }
746
+ const De = [
741
747
  "closeclick",
742
748
  "content_changed",
743
749
  "domready",
744
750
  "position_changed",
745
751
  "visible",
746
752
  "zindex_changed"
747
- ], Bt = T({
753
+ ], Gt = T({
748
754
  inheritAttrs: !1,
749
755
  props: {
750
756
  options: {
@@ -755,13 +761,13 @@ const An = /* @__PURE__ */ re(Rt, [["render", Nt], ["__scopeId", "data-v-ab9120c
755
761
  type: Boolean
756
762
  }
757
763
  },
758
- emits: [...Ne, "update:modelValue"],
764
+ emits: [...De, "update:modelValue"],
759
765
  setup(t, { slots: e, emit: r, expose: n }) {
760
- const s = _(), o = _(), i = C(D, _()), l = C(Z, _()), a = C(Ce, _());
766
+ const s = _(), o = _(), i = b(D, _()), l = b(Z, _()), a = b(be, _());
761
767
  let c, p = t.modelValue;
762
768
  const u = W(() => {
763
769
  var d;
764
- return (d = e.default) == null ? void 0 : d.call(e).some((g) => g.type !== we);
770
+ return (d = e.default) == null ? void 0 : d.call(e).some((g) => g.type !== ke);
765
771
  }), f = (d) => {
766
772
  p = d, r("update:modelValue", d);
767
773
  }, m = (d) => {
@@ -769,13 +775,13 @@ const An = /* @__PURE__ */ re(Rt, [["render", Nt], ["__scopeId", "data-v-ab9120c
769
775
  }, h = () => {
770
776
  s.value && (s.value.close(), f(!1));
771
777
  };
772
- return tt(() => {
778
+ return nt(() => {
773
779
  S(
774
780
  [i, () => t.options],
775
781
  ([d, g], [v, y]) => {
776
782
  var P;
777
- const w = !ee(g, y) || i.value !== v;
778
- i.value && l.value && w && (s.value ? (s.value.setOptions({
783
+ const k = !ee(g, y) || i.value !== v;
784
+ i.value && l.value && k && (s.value ? (s.value.setOptions({
779
785
  ...g,
780
786
  content: u.value ? o.value : g.content
781
787
  }), a.value || m()) : (s.value = A(
@@ -783,9 +789,9 @@ const An = /* @__PURE__ */ re(Rt, [["render", Nt], ["__scopeId", "data-v-ab9120c
783
789
  ...g,
784
790
  content: u.value ? o.value : g.content
785
791
  })
786
- ), a.value && (c = a.value.addListener("click", () => m())), (!a.value || p) && m(), Ne.forEach((O) => {
792
+ ), a.value && (c = a.value.addListener(Be(a.value), () => m())), (!a.value || p) && m(), De.forEach((O) => {
787
793
  var E;
788
- (E = s.value) == null || E.addListener(O, (k) => r(O, k));
794
+ (E = s.value) == null || E.addListener(O, (w) => r(O, w));
789
795
  }), (P = s.value) == null || P.addListener("closeclick", () => f(!1))));
790
796
  },
791
797
  {
@@ -795,7 +801,7 @@ const An = /* @__PURE__ */ re(Rt, [["render", Nt], ["__scopeId", "data-v-ab9120c
795
801
  ), S(
796
802
  a,
797
803
  (d, g) => {
798
- !s.value || d === g || (c && (c.remove(), c = void 0), d && (c = d.addListener("click", () => m())));
804
+ !s.value || d === g || (c && (c.remove(), c = void 0), d && (c = d.addListener(Be(d), () => m())));
799
805
  },
800
806
  {
801
807
  flush: "post"
@@ -812,25 +818,25 @@ const An = /* @__PURE__ */ re(Rt, [["render", Nt], ["__scopeId", "data-v-ab9120c
812
818
  }), n({ infoWindow: s, open: m, close: h }), { infoWindow: s, infoWindowRef: o, hasSlotContent: u, open: m, close: h };
813
819
  }
814
820
  });
815
- const Dt = {
821
+ const Ut = {
816
822
  key: 0,
817
823
  class: "info-window-wrapper"
818
824
  };
819
- function Zt(t, e, r, n, s, o) {
820
- return t.hasSlotContent ? (F(), V("div", Dt, [
821
- ce("div", ke({ ref: "infoWindowRef" }, t.$attrs), [
825
+ function Ft(t, e, r, n, s, o) {
826
+ return t.hasSlotContent ? (F(), V("div", Ut, [
827
+ pe("div", we({ ref: "infoWindowRef" }, t.$attrs), [
822
828
  z(t.$slots, "default", {}, void 0, !0)
823
829
  ], 16)
824
- ])) : be("", !0);
830
+ ])) : Ce("", !0);
825
831
  }
826
- const qn = /* @__PURE__ */ re(Bt, [["render", Zt], ["__scopeId", "data-v-d182c1f9"]]);
827
- var Gt = Object.getOwnPropertyNames, Ut = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty;
828
- function Be(t, e) {
832
+ const In = /* @__PURE__ */ re(Gt, [["render", Ft], ["__scopeId", "data-v-4d4142cf"]]);
833
+ var Vt = Object.getOwnPropertyNames, zt = Object.getOwnPropertySymbols, Wt = Object.prototype.hasOwnProperty;
834
+ function Ze(t, e) {
829
835
  return function(n, s, o) {
830
836
  return t(n, s, o) && e(n, s, o);
831
837
  };
832
838
  }
833
- function oe(t) {
839
+ function ie(t) {
834
840
  return function(r, n, s) {
835
841
  if (!r || !n || typeof r != "object" || typeof n != "object")
836
842
  return t(r, n, s);
@@ -842,17 +848,17 @@ function oe(t) {
842
848
  return o.delete(r), o.delete(n), a;
843
849
  };
844
850
  }
845
- function De(t) {
846
- return Gt(t).concat(Ut(t));
851
+ function Ge(t) {
852
+ return Vt(t).concat(zt(t));
847
853
  }
848
- var Vt = Object.hasOwn || function(t, e) {
849
- return Ft.call(t, e);
854
+ var Ht = Object.hasOwn || function(t, e) {
855
+ return Wt.call(t, e);
850
856
  };
851
857
  function G(t, e) {
852
858
  return t === e || !t && !e && t !== t && e !== e;
853
859
  }
854
- var zt = "__v", Wt = "__o", Ht = "_owner", Ze = Object.getOwnPropertyDescriptor, Ge = Object.keys;
855
- function Kt(t, e, r) {
860
+ var Kt = "__v", Xt = "__o", Yt = "_owner", Ue = Object.getOwnPropertyDescriptor, Fe = Object.keys;
861
+ function Jt(t, e, r) {
856
862
  var n = t.length;
857
863
  if (e.length !== n)
858
864
  return !1;
@@ -861,16 +867,16 @@ function Kt(t, e, r) {
861
867
  return !1;
862
868
  return !0;
863
869
  }
864
- function Xt(t, e) {
870
+ function Qt(t, e) {
865
871
  return G(t.getTime(), e.getTime());
866
872
  }
867
- function Yt(t, e) {
873
+ function er(t, e) {
868
874
  return t.name === e.name && t.message === e.message && t.cause === e.cause && t.stack === e.stack;
869
875
  }
870
- function Jt(t, e) {
876
+ function tr(t, e) {
871
877
  return t === e;
872
878
  }
873
- function Ue(t, e, r) {
879
+ function Ve(t, e, r) {
874
880
  var n = t.size;
875
881
  if (n !== e.size)
876
882
  return !1;
@@ -895,32 +901,32 @@ function Ue(t, e, r) {
895
901
  }
896
902
  return !0;
897
903
  }
898
- var Qt = G;
899
- function er(t, e, r) {
900
- var n = Ge(t), s = n.length;
901
- if (Ge(e).length !== s)
904
+ var rr = G;
905
+ function nr(t, e, r) {
906
+ var n = Fe(t), s = n.length;
907
+ if (Fe(e).length !== s)
902
908
  return !1;
903
909
  for (; s-- > 0; )
904
- if (!nt(t, e, r, n[s]))
910
+ if (!at(t, e, r, n[s]))
905
911
  return !1;
906
912
  return !0;
907
913
  }
908
914
  function X(t, e, r) {
909
- var n = De(t), s = n.length;
910
- if (De(e).length !== s)
915
+ var n = Ge(t), s = n.length;
916
+ if (Ge(e).length !== s)
911
917
  return !1;
912
918
  for (var o, i, l; s-- > 0; )
913
- if (o = n[s], !nt(t, e, r, o) || (i = Ze(t, o), l = Ze(e, o), (i || l) && (!i || !l || i.configurable !== l.configurable || i.enumerable !== l.enumerable || i.writable !== l.writable)))
919
+ if (o = n[s], !at(t, e, r, o) || (i = Ue(t, o), l = Ue(e, o), (i || l) && (!i || !l || i.configurable !== l.configurable || i.enumerable !== l.enumerable || i.writable !== l.writable)))
914
920
  return !1;
915
921
  return !0;
916
922
  }
917
- function tr(t, e) {
923
+ function sr(t, e) {
918
924
  return G(t.valueOf(), e.valueOf());
919
925
  }
920
- function rr(t, e) {
926
+ function or(t, e) {
921
927
  return t.source === e.source && t.flags === e.flags;
922
928
  }
923
- function Fe(t, e, r) {
929
+ function ze(t, e, r) {
924
930
  var n = t.size;
925
931
  if (n !== e.size)
926
932
  return !1;
@@ -939,7 +945,7 @@ function Fe(t, e, r) {
939
945
  }
940
946
  return !0;
941
947
  }
942
- function nr(t, e) {
948
+ function ar(t, e) {
943
949
  var r = t.length;
944
950
  if (e.length !== r)
945
951
  return !1;
@@ -948,14 +954,14 @@ function nr(t, e) {
948
954
  return !1;
949
955
  return !0;
950
956
  }
951
- function sr(t, e) {
957
+ function ir(t, e) {
952
958
  return t.hostname === e.hostname && t.pathname === e.pathname && t.protocol === e.protocol && t.port === e.port && t.hash === e.hash && t.username === e.username && t.password === e.password;
953
959
  }
954
- function nt(t, e, r, n) {
955
- return (n === Ht || n === Wt || n === zt) && (t.$$typeof || e.$$typeof) ? !0 : Vt(e, n) && r.equals(t[n], e[n], n, n, t, e, r);
960
+ function at(t, e, r, n) {
961
+ return (n === Yt || n === Xt || n === Kt) && (t.$$typeof || e.$$typeof) ? !0 : Ht(e, n) && r.equals(t[n], e[n], n, n, t, e, r);
956
962
  }
957
- var or = "[object Arguments]", ar = "[object Boolean]", ir = "[object Date]", lr = "[object Error]", ur = "[object Map]", cr = "[object Number]", dr = "[object Object]", pr = "[object RegExp]", fr = "[object Set]", mr = "[object String]", hr = "[object URL]", gr = Array.isArray, Ve = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, ze = Object.assign, vr = Object.prototype.toString.call.bind(Object.prototype.toString);
958
- function yr(t) {
963
+ var lr = "[object Arguments]", ur = "[object Boolean]", cr = "[object Date]", dr = "[object Error]", pr = "[object Map]", fr = "[object Number]", mr = "[object Object]", hr = "[object RegExp]", gr = "[object Set]", vr = "[object String]", yr = "[object URL]", _r = Array.isArray, We = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, He = Object.assign, Er = Object.prototype.toString.call.bind(Object.prototype.toString);
964
+ function kr(t) {
959
965
  var e = t.areArraysEqual, r = t.areDatesEqual, n = t.areErrorsEqual, s = t.areFunctionsEqual, o = t.areMapsEqual, i = t.areNumbersEqual, l = t.areObjectsEqual, a = t.arePrimitiveWrappersEqual, c = t.areRegExpsEqual, p = t.areSetsEqual, u = t.areTypedArraysEqual, f = t.areUrlsEqual;
960
966
  return function(h, d, g) {
961
967
  if (h === d)
@@ -972,9 +978,9 @@ function yr(t) {
972
978
  return !1;
973
979
  if (y === Object)
974
980
  return l(h, d, g);
975
- if (gr(h))
981
+ if (_r(h))
976
982
  return e(h, d, g);
977
- if (Ve != null && Ve(h))
983
+ if (We != null && We(h))
978
984
  return u(h, d, g);
979
985
  if (y === Date)
980
986
  return r(h, d, g);
@@ -984,28 +990,28 @@ function yr(t) {
984
990
  return o(h, d, g);
985
991
  if (y === Set)
986
992
  return p(h, d, g);
987
- var w = vr(h);
988
- return w === ir ? r(h, d, g) : w === pr ? c(h, d, g) : w === ur ? o(h, d, g) : w === fr ? p(h, d, g) : w === dr ? typeof h.then != "function" && typeof d.then != "function" && l(h, d, g) : w === hr ? f(h, d, g) : w === lr ? n(h, d, g) : w === or ? l(h, d, g) : w === ar || w === cr || w === mr ? a(h, d, g) : !1;
993
+ var k = Er(h);
994
+ return k === cr ? r(h, d, g) : k === hr ? c(h, d, g) : k === pr ? o(h, d, g) : k === gr ? p(h, d, g) : k === mr ? typeof h.then != "function" && typeof d.then != "function" && l(h, d, g) : k === yr ? f(h, d, g) : k === dr ? n(h, d, g) : k === lr ? l(h, d, g) : k === ur || k === fr || k === vr ? a(h, d, g) : !1;
989
995
  };
990
996
  }
991
- function _r(t) {
997
+ function wr(t) {
992
998
  var e = t.circular, r = t.createCustomConfig, n = t.strict, s = {
993
- areArraysEqual: n ? X : Kt,
994
- areDatesEqual: Xt,
995
- areErrorsEqual: Yt,
996
- areFunctionsEqual: Jt,
997
- areMapsEqual: n ? Be(Ue, X) : Ue,
998
- areNumbersEqual: Qt,
999
- areObjectsEqual: n ? X : er,
1000
- arePrimitiveWrappersEqual: tr,
1001
- areRegExpsEqual: rr,
1002
- areSetsEqual: n ? Be(Fe, X) : Fe,
1003
- areTypedArraysEqual: n ? X : nr,
1004
- areUrlsEqual: sr
999
+ areArraysEqual: n ? X : Jt,
1000
+ areDatesEqual: Qt,
1001
+ areErrorsEqual: er,
1002
+ areFunctionsEqual: tr,
1003
+ areMapsEqual: n ? Ze(Ve, X) : Ve,
1004
+ areNumbersEqual: rr,
1005
+ areObjectsEqual: n ? X : nr,
1006
+ arePrimitiveWrappersEqual: sr,
1007
+ areRegExpsEqual: or,
1008
+ areSetsEqual: n ? Ze(ze, X) : ze,
1009
+ areTypedArraysEqual: n ? X : ar,
1010
+ areUrlsEqual: ir
1005
1011
  };
1006
- if (r && (s = ze({}, s, r(s))), e) {
1007
- var o = oe(s.areArraysEqual), i = oe(s.areMapsEqual), l = oe(s.areObjectsEqual), a = oe(s.areSetsEqual);
1008
- s = ze({}, s, {
1012
+ if (r && (s = He({}, s, r(s))), e) {
1013
+ var o = ie(s.areArraysEqual), i = ie(s.areMapsEqual), l = ie(s.areObjectsEqual), a = ie(s.areSetsEqual);
1014
+ s = He({}, s, {
1009
1015
  areArraysEqual: o,
1010
1016
  areMapsEqual: i,
1011
1017
  areObjectsEqual: l,
@@ -1014,12 +1020,12 @@ function _r(t) {
1014
1020
  }
1015
1021
  return s;
1016
1022
  }
1017
- function Er(t) {
1023
+ function Cr(t) {
1018
1024
  return function(e, r, n, s, o, i, l) {
1019
1025
  return t(e, r, l);
1020
1026
  };
1021
1027
  }
1022
- function wr(t) {
1028
+ function br(t) {
1023
1029
  var e = t.circular, r = t.comparator, n = t.createState, s = t.equals, o = t.strict;
1024
1030
  if (n)
1025
1031
  return function(a, c) {
@@ -1050,43 +1056,43 @@ function wr(t) {
1050
1056
  return r(a, c, i);
1051
1057
  };
1052
1058
  }
1053
- var le = $();
1054
- $({ strict: !0 });
1055
- $({ circular: !0 });
1056
- $({
1059
+ var ce = N();
1060
+ N({ strict: !0 });
1061
+ N({ circular: !0 });
1062
+ N({
1057
1063
  circular: !0,
1058
1064
  strict: !0
1059
1065
  });
1060
- $({
1066
+ N({
1061
1067
  createInternalComparator: function() {
1062
1068
  return G;
1063
1069
  }
1064
1070
  });
1065
- $({
1071
+ N({
1066
1072
  strict: !0,
1067
1073
  createInternalComparator: function() {
1068
1074
  return G;
1069
1075
  }
1070
1076
  });
1071
- $({
1077
+ N({
1072
1078
  circular: !0,
1073
1079
  createInternalComparator: function() {
1074
1080
  return G;
1075
1081
  }
1076
1082
  });
1077
- $({
1083
+ N({
1078
1084
  circular: !0,
1079
1085
  createInternalComparator: function() {
1080
1086
  return G;
1081
1087
  },
1082
1088
  strict: !0
1083
1089
  });
1084
- function $(t) {
1090
+ function N(t) {
1085
1091
  t === void 0 && (t = {});
1086
- var e = t.circular, r = e === void 0 ? !1 : e, n = t.createInternalComparator, s = t.createState, o = t.strict, i = o === void 0 ? !1 : o, l = _r(t), a = yr(l), c = n ? n(a) : Er(a);
1087
- return wr({ circular: r, comparator: a, createState: s, equals: c, strict: i });
1092
+ var e = t.circular, r = e === void 0 ? !1 : e, n = t.createInternalComparator, s = t.createState, o = t.strict, i = o === void 0 ? !1 : o, l = wr(t), a = kr(l), c = n ? n(a) : Cr(a);
1093
+ return br({ circular: r, comparator: a, createState: s, equals: c, strict: i });
1088
1094
  }
1089
- const We = [
1095
+ const Ke = [
1090
1096
  Int8Array,
1091
1097
  Uint8Array,
1092
1098
  Uint8ClampedArray,
@@ -1111,7 +1117,7 @@ class Se {
1111
1117
  const s = n >> 4;
1112
1118
  if (s !== me)
1113
1119
  throw new Error(`Got v${s} data when expected v${me}.`);
1114
- const o = We[n & 15];
1120
+ const o = Ke[n & 15];
1115
1121
  if (!o)
1116
1122
  throw new Error("Unrecognized array type.");
1117
1123
  const [i] = new Uint16Array(e, 2, 1), [l] = new Uint32Array(e, 4, 1);
@@ -1128,7 +1134,7 @@ class Se {
1128
1134
  if (isNaN(e) || e < 0)
1129
1135
  throw new Error(`Unpexpected numItems value: ${e}.`);
1130
1136
  this.numItems = +e, this.nodeSize = Math.min(Math.max(+r, 2), 65535), this.ArrayType = n, this.IndexArrayType = e < 65536 ? Uint16Array : Uint32Array;
1131
- const o = We.indexOf(this.ArrayType), i = e * 2 * this.ArrayType.BYTES_PER_ELEMENT, l = e * this.IndexArrayType.BYTES_PER_ELEMENT, a = (8 - l % 8) % 8;
1137
+ const o = Ke.indexOf(this.ArrayType), i = e * 2 * this.ArrayType.BYTES_PER_ELEMENT, l = e * this.IndexArrayType.BYTES_PER_ELEMENT, a = (8 - l % 8) % 8;
1132
1138
  if (o < 0)
1133
1139
  throw new Error(`Unexpected typed array class: ${n}.`);
1134
1140
  s && s instanceof ArrayBuffer ? (this.data = s, this.ids = new this.IndexArrayType(this.data, Y, e), this.coords = new this.ArrayType(this.data, Y + l + a, e * 2), this._pos = e * 2, this._finished = !0) : (this.data = new ArrayBuffer(Y + i + l + a), this.ids = new this.IndexArrayType(this.data, Y, e), this.coords = new this.ArrayType(this.data, Y + l + a, e * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (me << 4) + o]), new Uint16Array(this.data, 2, 1)[0] = r, new Uint32Array(this.data, 4, 1)[0] = e);
@@ -1193,11 +1199,11 @@ class Se {
1193
1199
  const p = l.pop() || 0, u = l.pop() || 0, f = l.pop() || 0;
1194
1200
  if (u - f <= i) {
1195
1201
  for (let g = f; g <= u; g++)
1196
- He(o[2 * g], o[2 * g + 1], e, r) <= c && a.push(s[g]);
1202
+ Xe(o[2 * g], o[2 * g + 1], e, r) <= c && a.push(s[g]);
1197
1203
  continue;
1198
1204
  }
1199
1205
  const m = f + u >> 1, h = o[2 * m], d = o[2 * m + 1];
1200
- He(h, d, e, r) <= c && a.push(s[m]), (p === 0 ? e - n <= h : r - n <= d) && (l.push(f), l.push(m - 1), l.push(1 - p)), (p === 0 ? e + n >= h : r + n >= d) && (l.push(m + 1), l.push(u), l.push(1 - p));
1206
+ Xe(h, d, e, r) <= c && a.push(s[m]), (p === 0 ? e - n <= h : r - n <= d) && (l.push(f), l.push(m - 1), l.push(1 - p)), (p === 0 ? e + n >= h : r + n >= d) && (l.push(m + 1), l.push(u), l.push(1 - p));
1201
1207
  }
1202
1208
  return a;
1203
1209
  }
@@ -1206,13 +1212,13 @@ function _e(t, e, r, n, s, o) {
1206
1212
  if (s - n <= r)
1207
1213
  return;
1208
1214
  const i = n + s >> 1;
1209
- st(t, e, i, n, s, o), _e(t, e, r, n, i - 1, 1 - o), _e(t, e, r, i + 1, s, 1 - o);
1215
+ it(t, e, i, n, s, o), _e(t, e, r, n, i - 1, 1 - o), _e(t, e, r, i + 1, s, 1 - o);
1210
1216
  }
1211
- function st(t, e, r, n, s, o) {
1217
+ function it(t, e, r, n, s, o) {
1212
1218
  for (; s > n; ) {
1213
1219
  if (s - n > 600) {
1214
1220
  const c = s - n + 1, p = r - n + 1, u = Math.log(c), f = 0.5 * Math.exp(2 * u / 3), m = 0.5 * Math.sqrt(u * f * (c - f) / c) * (p - c / 2 < 0 ? -1 : 1), h = Math.max(n, Math.floor(r - p * f / c + m)), d = Math.min(s, Math.floor(r + (c - p) * f / c + m));
1215
- st(t, e, r, h, d, o);
1221
+ it(t, e, r, h, d, o);
1216
1222
  }
1217
1223
  const i = e[2 * r + o];
1218
1224
  let l = n, a = s;
@@ -1232,11 +1238,11 @@ function he(t, e, r) {
1232
1238
  const n = t[e];
1233
1239
  t[e] = t[r], t[r] = n;
1234
1240
  }
1235
- function He(t, e, r, n) {
1241
+ function Xe(t, e, r, n) {
1236
1242
  const s = t - r, o = e - n;
1237
1243
  return s * s + o * o;
1238
1244
  }
1239
- const kr = {
1245
+ const Or = {
1240
1246
  minZoom: 0,
1241
1247
  // min zoom to generate clusters on
1242
1248
  maxZoom: 16,
@@ -1259,10 +1265,10 @@ const kr = {
1259
1265
  // properties to use for individual points when running the reducer
1260
1266
  map: (t) => t
1261
1267
  // props => ({sum: props.my_value})
1262
- }, Ke = Math.fround || ((t) => (e) => (t[0] = +e, t[0]))(new Float32Array(1)), N = 2, j = 3, ge = 4, x = 5, ot = 6;
1263
- class at {
1268
+ }, Ye = Math.fround || ((t) => (e) => (t[0] = +e, t[0]))(new Float32Array(1)), $ = 2, j = 3, ge = 4, x = 5, lt = 6;
1269
+ class ut {
1264
1270
  constructor(e) {
1265
- this.options = Object.assign(Object.create(kr), e), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
1271
+ this.options = Object.assign(Object.create(Or), e), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
1266
1272
  }
1267
1273
  load(e) {
1268
1274
  const { log: r, minZoom: n, maxZoom: s } = this.options;
@@ -1274,7 +1280,7 @@ class at {
1274
1280
  const c = e[a];
1275
1281
  if (!c.geometry)
1276
1282
  continue;
1277
- const [p, u] = c.geometry.coordinates, f = Ke(ae(p)), m = Ke(ie(u));
1283
+ const [p, u] = c.geometry.coordinates, f = Ye(le(p)), m = Ye(ue(u));
1278
1284
  i.push(
1279
1285
  f,
1280
1286
  m,
@@ -1308,10 +1314,10 @@ class at {
1308
1314
  const u = this.getClusters([n, s, 180, i], r), f = this.getClusters([-180, s, o, i], r);
1309
1315
  return u.concat(f);
1310
1316
  }
1311
- const l = this.trees[this._limitZoom(r)], a = l.range(ae(n), ie(i), ae(o), ie(s)), c = l.data, p = [];
1317
+ const l = this.trees[this._limitZoom(r)], a = l.range(le(n), ue(i), le(o), ue(s)), c = l.data, p = [];
1312
1318
  for (const u of a) {
1313
1319
  const f = this.stride * u;
1314
- p.push(c[f + x] > 1 ? Xe(c, f, this.clusterProps) : this.points[c[f + j]]);
1320
+ p.push(c[f + x] > 1 ? Je(c, f, this.clusterProps) : this.points[c[f + j]]);
1315
1321
  }
1316
1322
  return p;
1317
1323
  }
@@ -1325,7 +1331,7 @@ class at {
1325
1331
  const l = this.options.radius / (this.options.extent * Math.pow(2, n - 1)), a = i[r * this.stride], c = i[r * this.stride + 1], p = o.within(a, c, l), u = [];
1326
1332
  for (const f of p) {
1327
1333
  const m = f * this.stride;
1328
- i[m + ge] === e && u.push(i[m + x] > 1 ? Xe(i, m, this.clusterProps) : this.points[i[m + j]]);
1334
+ i[m + ge] === e && u.push(i[m + x] > 1 ? Je(i, m, this.clusterProps) : this.points[i[m + j]]);
1329
1335
  }
1330
1336
  if (u.length === 0)
1331
1337
  throw new Error(s);
@@ -1393,12 +1399,12 @@ class at {
1393
1399
  const a = l * this.stride, c = r[a + x] > 1;
1394
1400
  let p, u, f;
1395
1401
  if (c)
1396
- p = it(r, a, this.clusterProps), u = r[a], f = r[a + 1];
1402
+ p = ct(r, a, this.clusterProps), u = r[a], f = r[a + 1];
1397
1403
  else {
1398
1404
  const d = this.points[r[a + j]];
1399
1405
  p = d.properties;
1400
1406
  const [g, v] = d.geometry.coordinates;
1401
- u = ae(g), f = ie(v);
1407
+ u = le(g), f = ue(v);
1402
1408
  }
1403
1409
  const m = {
1404
1410
  type: 1,
@@ -1418,25 +1424,25 @@ class at {
1418
1424
  _cluster(e, r) {
1419
1425
  const { radius: n, extent: s, reduce: o, minPoints: i } = this.options, l = n / (s * Math.pow(2, r)), a = e.data, c = [], p = this.stride;
1420
1426
  for (let u = 0; u < a.length; u += p) {
1421
- if (a[u + N] <= r)
1427
+ if (a[u + $] <= r)
1422
1428
  continue;
1423
- a[u + N] = r;
1429
+ a[u + $] = r;
1424
1430
  const f = a[u], m = a[u + 1], h = e.within(a[u], a[u + 1], l), d = a[u + x];
1425
1431
  let g = d;
1426
1432
  for (const v of h) {
1427
1433
  const y = v * p;
1428
- a[y + N] > r && (g += a[y + x]);
1434
+ a[y + $] > r && (g += a[y + x]);
1429
1435
  }
1430
1436
  if (g > d && g >= i) {
1431
- let v = f * d, y = m * d, w, P = -1;
1437
+ let v = f * d, y = m * d, k, P = -1;
1432
1438
  const O = ((u / p | 0) << 5) + (r + 1) + this.points.length;
1433
1439
  for (const E of h) {
1434
- const k = E * p;
1435
- if (a[k + N] <= r)
1440
+ const w = E * p;
1441
+ if (a[w + $] <= r)
1436
1442
  continue;
1437
- a[k + N] = r;
1438
- const M = a[k + x];
1439
- v += a[k] * M, y += a[k + 1] * M, a[k + ge] = O, o && (w || (w = this._map(a, u, !0), P = this.clusterProps.length, this.clusterProps.push(w)), o(w, this._map(a, k)));
1443
+ a[w + $] = r;
1444
+ const M = a[w + x];
1445
+ v += a[w] * M, y += a[w + 1] * M, a[w + ge] = O, o && (k || (k = this._map(a, u, !0), P = this.clusterProps.length, this.clusterProps.push(k)), o(k, this._map(a, w)));
1440
1446
  }
1441
1447
  a[u + ge] = O, c.push(v / g, y / g, 1 / 0, O, -1, g), o && c.push(P);
1442
1448
  } else {
@@ -1445,10 +1451,10 @@ class at {
1445
1451
  if (g > 1)
1446
1452
  for (const v of h) {
1447
1453
  const y = v * p;
1448
- if (!(a[y + N] <= r)) {
1449
- a[y + N] = r;
1450
- for (let w = 0; w < p; w++)
1451
- c.push(a[y + w]);
1454
+ if (!(a[y + $] <= r)) {
1455
+ a[y + $] = r;
1456
+ for (let k = 0; k < p; k++)
1457
+ c.push(a[y + k]);
1452
1458
  }
1453
1459
  }
1454
1460
  }
@@ -1465,26 +1471,26 @@ class at {
1465
1471
  }
1466
1472
  _map(e, r, n) {
1467
1473
  if (e[r + x] > 1) {
1468
- const i = this.clusterProps[e[r + ot]];
1474
+ const i = this.clusterProps[e[r + lt]];
1469
1475
  return n ? Object.assign({}, i) : i;
1470
1476
  }
1471
1477
  const s = this.points[e[r + j]].properties, o = this.options.map(s);
1472
1478
  return n && o === s ? Object.assign({}, o) : o;
1473
1479
  }
1474
1480
  }
1475
- function Xe(t, e, r) {
1481
+ function Je(t, e, r) {
1476
1482
  return {
1477
1483
  type: "Feature",
1478
1484
  id: t[e + j],
1479
- properties: it(t, e, r),
1485
+ properties: ct(t, e, r),
1480
1486
  geometry: {
1481
1487
  type: "Point",
1482
- coordinates: [br(t[e]), Cr(t[e + 1])]
1488
+ coordinates: [Mr(t[e]), Sr(t[e + 1])]
1483
1489
  }
1484
1490
  };
1485
1491
  }
1486
- function it(t, e, r) {
1487
- const n = t[e + x], s = n >= 1e4 ? `${Math.round(n / 1e3)}k` : n >= 1e3 ? `${Math.round(n / 100) / 10}k` : n, o = t[e + ot], i = o === -1 ? {} : Object.assign({}, r[o]);
1492
+ function ct(t, e, r) {
1493
+ const n = t[e + x], s = n >= 1e4 ? `${Math.round(n / 1e3)}k` : n >= 1e3 ? `${Math.round(n / 100) / 10}k` : n, o = t[e + lt], i = o === -1 ? {} : Object.assign({}, r[o]);
1488
1494
  return Object.assign(i, {
1489
1495
  cluster: !0,
1490
1496
  cluster_id: t[e + j],
@@ -1492,17 +1498,17 @@ function it(t, e, r) {
1492
1498
  point_count_abbreviated: s
1493
1499
  });
1494
1500
  }
1495
- function ae(t) {
1501
+ function le(t) {
1496
1502
  return t / 360 + 0.5;
1497
1503
  }
1498
- function ie(t) {
1504
+ function ue(t) {
1499
1505
  const e = Math.sin(t * Math.PI / 180), r = 0.5 - 0.25 * Math.log((1 + e) / (1 - e)) / Math.PI;
1500
1506
  return r < 0 ? 0 : r > 1 ? 1 : r;
1501
1507
  }
1502
- function br(t) {
1508
+ function Mr(t) {
1503
1509
  return (t - 0.5) * 360;
1504
1510
  }
1505
- function Cr(t) {
1511
+ function Sr(t) {
1506
1512
  const e = (180 - t * 360) * Math.PI / 180;
1507
1513
  return 360 * Math.atan(Math.exp(e)) / Math.PI - 90;
1508
1514
  }
@@ -1515,7 +1521,7 @@ function Te(t, e) {
1515
1521
  e.indexOf(n[s]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[s]) && (r[n[s]] = t[n[s]]);
1516
1522
  return r;
1517
1523
  }
1518
- class b {
1524
+ class C {
1519
1525
  static isAdvancedMarkerAvailable(e) {
1520
1526
  return google.maps.marker && e.getMapCapabilities().isAdvancedMarkersAvailable === !0;
1521
1527
  }
@@ -1550,7 +1556,7 @@ class te {
1550
1556
  return;
1551
1557
  const e = new google.maps.LatLngBounds(this._position, this._position);
1552
1558
  for (const r of this.markers)
1553
- e.extend(b.getPosition(r));
1559
+ e.extend(C.getPosition(r));
1554
1560
  return e;
1555
1561
  }
1556
1562
  get position() {
@@ -1560,7 +1566,7 @@ class te {
1560
1566
  * Get the count of **visible** markers.
1561
1567
  */
1562
1568
  get count() {
1563
- return this.markers.filter((e) => b.getVisible(e)).length;
1569
+ return this.markers.filter((e) => C.getVisible(e)).length;
1564
1570
  }
1565
1571
  /**
1566
1572
  * Add a marker to the cluster.
@@ -1572,32 +1578,32 @@ class te {
1572
1578
  * Cleanup references and remove marker from map.
1573
1579
  */
1574
1580
  delete() {
1575
- this.marker && (b.setMap(this.marker, null), this.marker = void 0), this.markers.length = 0;
1581
+ this.marker && (C.setMap(this.marker, null), this.marker = void 0), this.markers.length = 0;
1576
1582
  }
1577
1583
  }
1578
1584
  function q(t, e = "assertion failed") {
1579
1585
  if (t == null)
1580
1586
  throw Error(e);
1581
1587
  }
1582
- const Or = (t, e, r, n) => {
1588
+ const Tr = (t, e, r, n) => {
1583
1589
  const s = t.getBounds();
1584
1590
  q(s);
1585
- const o = lt(s, e, n);
1586
- return r.filter((i) => o.contains(b.getPosition(i)));
1587
- }, lt = (t, e, r) => {
1588
- const { northEast: n, southWest: s } = Sr(t, e), o = Tr({ northEast: n, southWest: s }, r);
1589
- return Pr(o, e);
1590
- }, Mr = (t, e, r) => {
1591
- const n = lt(t, e, r), s = n.getNorthEast(), o = n.getSouthWest();
1591
+ const o = dt(s, e, n);
1592
+ return r.filter((i) => o.contains(C.getPosition(i)));
1593
+ }, dt = (t, e, r) => {
1594
+ const { northEast: n, southWest: s } = Ar(t, e), o = qr({ northEast: n, southWest: s }, r);
1595
+ return Lr(o, e);
1596
+ }, Pr = (t, e, r) => {
1597
+ const n = dt(t, e, r), s = n.getNorthEast(), o = n.getSouthWest();
1592
1598
  return [o.lng(), o.lat(), s.lng(), s.lat()];
1593
- }, Sr = (t, e) => {
1599
+ }, Ar = (t, e) => {
1594
1600
  const r = e.fromLatLngToDivPixel(t.getNorthEast()), n = e.fromLatLngToDivPixel(t.getSouthWest());
1595
1601
  return q(r), q(n), { northEast: r, southWest: n };
1596
- }, Tr = ({ northEast: t, southWest: e }, r) => (t.x += r, t.y -= r, e.x -= r, e.y += r, { northEast: t, southWest: e }), Pr = ({ northEast: t, southWest: e }, r) => {
1602
+ }, qr = ({ northEast: t, southWest: e }, r) => (t.x += r, t.y -= r, e.x -= r, e.y += r, { northEast: t, southWest: e }), Lr = ({ northEast: t, southWest: e }, r) => {
1597
1603
  const n = r.fromDivPixelToLatLng(e), s = r.fromDivPixelToLatLng(t);
1598
1604
  return new google.maps.LatLngBounds(n, s);
1599
1605
  };
1600
- class ut {
1606
+ class pt {
1601
1607
  constructor({ maxZoom: e = 16 }) {
1602
1608
  this.maxZoom = e;
1603
1609
  }
@@ -1614,10 +1620,10 @@ class ut {
1614
1620
  * ```
1615
1621
  */
1616
1622
  noop({ markers: e }) {
1617
- return qr(e);
1623
+ return jr(e);
1618
1624
  }
1619
1625
  }
1620
- class Ar extends ut {
1626
+ class xr extends pt {
1621
1627
  constructor(e) {
1622
1628
  var { viewportPadding: r = 60 } = e, n = Te(e, ["viewportPadding"]);
1623
1629
  super(n), this.viewportPadding = 60, this.viewportPadding = r;
@@ -1631,30 +1637,30 @@ class Ar extends ut {
1631
1637
  changed: !1
1632
1638
  } : {
1633
1639
  clusters: this.cluster({
1634
- markers: Or(r, n, e, this.viewportPadding),
1640
+ markers: Tr(r, n, e, this.viewportPadding),
1635
1641
  map: r,
1636
1642
  mapCanvasProjection: n
1637
1643
  })
1638
1644
  };
1639
1645
  }
1640
1646
  }
1641
- const qr = (t) => t.map((r) => new te({
1642
- position: b.getPosition(r),
1647
+ const jr = (t) => t.map((r) => new te({
1648
+ position: C.getPosition(r),
1643
1649
  markers: [r]
1644
1650
  }));
1645
- class Lr extends ut {
1651
+ class Ir extends pt {
1646
1652
  constructor(e) {
1647
1653
  var { maxZoom: r, radius: n = 60 } = e, s = Te(e, ["maxZoom", "radius"]);
1648
- super({ maxZoom: r }), this.markers = [], this.clusters = [], this.state = { zoom: -1 }, this.superCluster = new at(Object.assign({ maxZoom: this.maxZoom, radius: n }, s));
1654
+ super({ maxZoom: r }), this.markers = [], this.clusters = [], this.state = { zoom: -1 }, this.superCluster = new ut(Object.assign({ maxZoom: this.maxZoom, radius: n }, s));
1649
1655
  }
1650
1656
  calculate(e) {
1651
1657
  let r = !1, n = e.map.getZoom();
1652
1658
  q(n), n = Math.round(n);
1653
1659
  const s = { zoom: n };
1654
- if (!le(e.markers, this.markers)) {
1660
+ if (!ce(e.markers, this.markers)) {
1655
1661
  r = !0, this.markers = [...e.markers];
1656
1662
  const o = this.markers.map((i) => {
1657
- const l = b.getPosition(i);
1663
+ const l = C.getPosition(i);
1658
1664
  return {
1659
1665
  type: "Feature",
1660
1666
  geometry: { type: "Point", coordinates: [l.lng(), l.lat()] },
@@ -1663,7 +1669,7 @@ class Lr extends ut {
1663
1669
  });
1664
1670
  this.superCluster.load(o);
1665
1671
  }
1666
- return r || (this.state.zoom <= this.maxZoom || s.zoom <= this.maxZoom) && (r = !le(this.state, s)), this.state = s, e.markers.length === 0 ? (this.clusters = [], { clusters: this.clusters, changed: r }) : (r && (this.clusters = this.cluster(e)), { clusters: this.clusters, changed: r });
1672
+ return r || (this.state.zoom <= this.maxZoom || s.zoom <= this.maxZoom) && (r = !ce(this.state, s)), this.state = s, e.markers.length === 0 ? (this.clusters = [], { clusters: this.clusters, changed: r }) : (r && (this.clusters = this.cluster(e)), { clusters: this.clusters, changed: r });
1667
1673
  }
1668
1674
  cluster({ map: e }) {
1669
1675
  const r = e.getZoom();
@@ -1678,22 +1684,22 @@ class Lr extends ut {
1678
1684
  const s = n.marker;
1679
1685
  return new te({
1680
1686
  markers: [s],
1681
- position: b.getPosition(s)
1687
+ position: C.getPosition(s)
1682
1688
  });
1683
1689
  }
1684
1690
  }
1685
- class xr extends Ar {
1691
+ class Rr extends xr {
1686
1692
  constructor(e) {
1687
1693
  var { maxZoom: r, radius: n = 60, viewportPadding: s = 60 } = e, o = Te(e, ["maxZoom", "radius", "viewportPadding"]);
1688
- super({ maxZoom: r, viewportPadding: s }), this.markers = [], this.clusters = [], this.superCluster = new at(Object.assign({ maxZoom: this.maxZoom, radius: n }, o)), this.state = { zoom: -1, view: [0, 0, 0, 0] };
1694
+ super({ maxZoom: r, viewportPadding: s }), this.markers = [], this.clusters = [], this.superCluster = new ut(Object.assign({ maxZoom: this.maxZoom, radius: n }, o)), this.state = { zoom: -1, view: [0, 0, 0, 0] };
1689
1695
  }
1690
1696
  calculate(e) {
1691
1697
  const r = this.getViewportState(e);
1692
- let n = !le(this.state, r);
1693
- if (!le(e.markers, this.markers)) {
1698
+ let n = !ce(this.state, r);
1699
+ if (!ce(e.markers, this.markers)) {
1694
1700
  n = !0, this.markers = [...e.markers];
1695
1701
  const s = this.markers.map((o) => {
1696
- const i = b.getPosition(o);
1702
+ const i = C.getPosition(o);
1697
1703
  return {
1698
1704
  type: "Feature",
1699
1705
  geometry: {
@@ -1720,18 +1726,18 @@ class xr extends Ar {
1720
1726
  const s = n.marker;
1721
1727
  return new te({
1722
1728
  markers: [s],
1723
- position: b.getPosition(s)
1729
+ position: C.getPosition(s)
1724
1730
  });
1725
1731
  }
1726
1732
  getViewportState(e) {
1727
1733
  const r = e.map.getZoom(), n = e.map.getBounds();
1728
1734
  return q(r), q(n), {
1729
1735
  zoom: Math.round(r),
1730
- view: Mr(n, e.mapCanvasProjection, this.viewportPadding)
1736
+ view: Pr(n, e.mapCanvasProjection, this.viewportPadding)
1731
1737
  };
1732
1738
  }
1733
1739
  }
1734
- class jr {
1740
+ class Nr {
1735
1741
  constructor(e, r) {
1736
1742
  this.markers = { sum: e.length };
1737
1743
  const n = r.map((o) => o.count), s = n.reduce((o, i) => o + i, 0);
@@ -1746,7 +1752,7 @@ class jr {
1746
1752
  };
1747
1753
  }
1748
1754
  }
1749
- class Ir {
1755
+ class $r {
1750
1756
  /**
1751
1757
  * The default render function for the library used by {@link MarkerClusterer}.
1752
1758
  *
@@ -1792,7 +1798,7 @@ class Ir {
1792
1798
  <circle cx="120" cy="120" opacity=".2" r="110" />
1793
1799
  <text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>
1794
1800
  </svg>`, l = `Cluster of ${e} markers`, a = Number(google.maps.Marker.MAX_ZINDEX) + e;
1795
- if (b.isAdvancedMarkerAvailable(s)) {
1801
+ if (C.isAdvancedMarkerAvailable(s)) {
1796
1802
  const u = new DOMParser().parseFromString(i, "image/svg+xml").documentElement;
1797
1803
  u.setAttribute("transform", "translate(0 25)");
1798
1804
  const f = {
@@ -1816,24 +1822,24 @@ class Ir {
1816
1822
  return new google.maps.Marker(c);
1817
1823
  }
1818
1824
  }
1819
- function Rr(t, e) {
1825
+ function Br(t, e) {
1820
1826
  for (let r in e.prototype)
1821
1827
  t.prototype[r] = e.prototype[r];
1822
1828
  }
1823
1829
  class Pe {
1824
1830
  constructor() {
1825
- Rr(Pe, google.maps.OverlayView);
1831
+ Br(Pe, google.maps.OverlayView);
1826
1832
  }
1827
1833
  }
1828
1834
  var I;
1829
1835
  (function(t) {
1830
1836
  t.CLUSTERING_BEGIN = "clusteringbegin", t.CLUSTERING_END = "clusteringend", t.CLUSTER_CLICK = "click", t.GMP_CLICK = "gmp-click";
1831
1837
  })(I || (I = {}));
1832
- const $r = (t, e, r) => {
1838
+ const Dr = (t, e, r) => {
1833
1839
  e.bounds && r.fitBounds(e.bounds);
1834
1840
  };
1835
- class Nr extends Pe {
1836
- constructor({ map: e, markers: r = [], algorithmOptions: n = {}, algorithm: s = new Lr(n), renderer: o = new Ir(), onClusterClick: i = $r }) {
1841
+ class Zr extends Pe {
1842
+ constructor({ map: e, markers: r = [], algorithmOptions: n = {}, algorithm: s = new Ir(n), renderer: o = new $r(), onClusterClick: i = Dr }) {
1837
1843
  super(), this.map = null, this.idleListener = null, this.markers = [...r], this.clusters = [], this.algorithm = s, this.renderer = o, this.onClusterClick = i, e && this.setMap(e);
1838
1844
  }
1839
1845
  addMarker(e, r) {
@@ -1846,7 +1852,7 @@ class Nr extends Pe {
1846
1852
  }
1847
1853
  removeMarker(e, r) {
1848
1854
  const n = this.markers.indexOf(e);
1849
- return n === -1 ? !1 : (b.setMap(e, null), this.markers.splice(n, 1), r || this.render(), !0);
1855
+ return n === -1 ? !1 : (C.setMap(e, null), this.markers.splice(n, 1), r || this.render(), !0);
1850
1856
  }
1851
1857
  removeMarkers(e, r) {
1852
1858
  let n = !1;
@@ -1875,8 +1881,8 @@ class Nr extends Pe {
1875
1881
  i.markers.length == 1 && s.add(i.markers[0]);
1876
1882
  const o = [];
1877
1883
  for (const i of this.clusters)
1878
- i.marker != null && (i.markers.length == 1 ? s.has(i.marker) || b.setMap(i.marker, null) : o.push(i.marker));
1879
- this.clusters = r, this.renderClusters(), requestAnimationFrame(() => o.forEach((i) => b.setMap(i, null)));
1884
+ i.marker != null && (i.markers.length == 1 ? s.has(i.marker) || C.setMap(i.marker, null) : o.push(i.marker));
1885
+ this.clusters = r, this.renderClusters(), requestAnimationFrame(() => o.forEach((i) => C.setMap(i, null)));
1880
1886
  }
1881
1887
  google.maps.event.trigger(this, I.CLUSTERING_END, this);
1882
1888
  }
@@ -1889,15 +1895,15 @@ class Nr extends Pe {
1889
1895
  this.idleListener && google.maps.event.removeListener(this.idleListener), this.reset();
1890
1896
  }
1891
1897
  reset() {
1892
- this.markers.forEach((e) => b.setMap(e, null)), this.clusters.forEach((e) => e.delete()), this.clusters = [];
1898
+ this.markers.forEach((e) => C.setMap(e, null)), this.clusters.forEach((e) => e.delete()), this.clusters = [];
1893
1899
  }
1894
1900
  renderClusters() {
1895
- const e = new jr(this.markers, this.clusters), r = this.getMap();
1901
+ const e = new Nr(this.markers, this.clusters), r = this.getMap();
1896
1902
  this.clusters.forEach((n) => {
1897
1903
  if (n.markers.length === 1)
1898
1904
  n.marker = n.markers[0];
1899
- else if (n.marker = this.renderer.render(n, e, r), n.markers.forEach((s) => b.setMap(s, null)), this.onClusterClick) {
1900
- const s = b.isAdvancedMarker(n.marker) ? I.GMP_CLICK : I.CLUSTER_CLICK;
1905
+ else if (n.marker = this.renderer.render(n, e, r), n.markers.forEach((s) => C.setMap(s, null)), this.onClusterClick) {
1906
+ const s = C.isAdvancedMarker(n.marker) ? I.GMP_CLICK : I.CLUSTER_CLICK;
1901
1907
  n.marker.addListener(
1902
1908
  s,
1903
1909
  /* istanbul ignore next */
@@ -1906,7 +1912,7 @@ class Nr extends Pe {
1906
1912
  }
1907
1913
  );
1908
1914
  }
1909
- b.setMap(n.marker, r);
1915
+ C.setMap(n.marker, r);
1910
1916
  });
1911
1917
  }
1912
1918
  }
@@ -1914,88 +1920,88 @@ function Ee(t) {
1914
1920
  var e = typeof t;
1915
1921
  return t != null && (e == "object" || e == "function");
1916
1922
  }
1917
- var Br = typeof global == "object" && global && global.Object === Object && global;
1918
- const Dr = Br;
1919
- var Zr = typeof self == "object" && self && self.Object === Object && self, Gr = Dr || Zr || Function("return this")();
1920
- const ct = Gr;
1921
- var Ur = function() {
1922
- return ct.Date.now();
1923
+ var Gr = typeof global == "object" && global && global.Object === Object && global;
1924
+ const Ur = Gr;
1925
+ var Fr = typeof self == "object" && self && self.Object === Object && self, Vr = Ur || Fr || Function("return this")();
1926
+ const ft = Vr;
1927
+ var zr = function() {
1928
+ return ft.Date.now();
1923
1929
  };
1924
- const ve = Ur;
1925
- var Fr = /\s/;
1926
- function Vr(t) {
1927
- for (var e = t.length; e-- && Fr.test(t.charAt(e)); )
1930
+ const ve = zr;
1931
+ var Wr = /\s/;
1932
+ function Hr(t) {
1933
+ for (var e = t.length; e-- && Wr.test(t.charAt(e)); )
1928
1934
  ;
1929
1935
  return e;
1930
1936
  }
1931
- var zr = /^\s+/;
1932
- function Wr(t) {
1933
- return t && t.slice(0, Vr(t) + 1).replace(zr, "");
1937
+ var Kr = /^\s+/;
1938
+ function Xr(t) {
1939
+ return t && t.slice(0, Hr(t) + 1).replace(Kr, "");
1934
1940
  }
1935
- var Hr = ct.Symbol;
1936
- const ue = Hr;
1937
- var dt = Object.prototype, Kr = dt.hasOwnProperty, Xr = dt.toString, Q = ue ? ue.toStringTag : void 0;
1938
- function Yr(t) {
1939
- var e = Kr.call(t, Q), r = t[Q];
1941
+ var Yr = ft.Symbol;
1942
+ const de = Yr;
1943
+ var mt = Object.prototype, Jr = mt.hasOwnProperty, Qr = mt.toString, Q = de ? de.toStringTag : void 0;
1944
+ function en(t) {
1945
+ var e = Jr.call(t, Q), r = t[Q];
1940
1946
  try {
1941
1947
  t[Q] = void 0;
1942
1948
  var n = !0;
1943
1949
  } catch {
1944
1950
  }
1945
- var s = Xr.call(t);
1951
+ var s = Qr.call(t);
1946
1952
  return n && (e ? t[Q] = r : delete t[Q]), s;
1947
1953
  }
1948
- var Jr = Object.prototype, Qr = Jr.toString;
1949
- function en(t) {
1950
- return Qr.call(t);
1951
- }
1952
- var tn = "[object Null]", rn = "[object Undefined]", Ye = ue ? ue.toStringTag : void 0;
1954
+ var tn = Object.prototype, rn = tn.toString;
1953
1955
  function nn(t) {
1954
- return t == null ? t === void 0 ? rn : tn : Ye && Ye in Object(t) ? Yr(t) : en(t);
1956
+ return rn.call(t);
1957
+ }
1958
+ var sn = "[object Null]", on = "[object Undefined]", Qe = de ? de.toStringTag : void 0;
1959
+ function an(t) {
1960
+ return t == null ? t === void 0 ? on : sn : Qe && Qe in Object(t) ? en(t) : nn(t);
1955
1961
  }
1956
- function sn(t) {
1962
+ function ln(t) {
1957
1963
  return t != null && typeof t == "object";
1958
1964
  }
1959
- var on = "[object Symbol]";
1960
- function an(t) {
1961
- return typeof t == "symbol" || sn(t) && nn(t) == on;
1965
+ var un = "[object Symbol]";
1966
+ function cn(t) {
1967
+ return typeof t == "symbol" || ln(t) && an(t) == un;
1962
1968
  }
1963
- var Je = 0 / 0, ln = /^[-+]0x[0-9a-f]+$/i, un = /^0b[01]+$/i, cn = /^0o[0-7]+$/i, dn = parseInt;
1964
- function Qe(t) {
1969
+ var et = 0 / 0, dn = /^[-+]0x[0-9a-f]+$/i, pn = /^0b[01]+$/i, fn = /^0o[0-7]+$/i, mn = parseInt;
1970
+ function tt(t) {
1965
1971
  if (typeof t == "number")
1966
1972
  return t;
1967
- if (an(t))
1968
- return Je;
1973
+ if (cn(t))
1974
+ return et;
1969
1975
  if (Ee(t)) {
1970
1976
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
1971
1977
  t = Ee(e) ? e + "" : e;
1972
1978
  }
1973
1979
  if (typeof t != "string")
1974
1980
  return t === 0 ? t : +t;
1975
- t = Wr(t);
1976
- var r = un.test(t);
1977
- return r || cn.test(t) ? dn(t.slice(2), r ? 2 : 8) : ln.test(t) ? Je : +t;
1981
+ t = Xr(t);
1982
+ var r = pn.test(t);
1983
+ return r || fn.test(t) ? mn(t.slice(2), r ? 2 : 8) : dn.test(t) ? et : +t;
1978
1984
  }
1979
- var pn = "Expected a function", fn = Math.max, mn = Math.min;
1980
- function hn(t, e, r) {
1985
+ var hn = "Expected a function", gn = Math.max, vn = Math.min;
1986
+ function yn(t, e, r) {
1981
1987
  var n, s, o, i, l, a, c = 0, p = !1, u = !1, f = !0;
1982
1988
  if (typeof t != "function")
1983
- throw new TypeError(pn);
1984
- e = Qe(e) || 0, Ee(r) && (p = !!r.leading, u = "maxWait" in r, o = u ? fn(Qe(r.maxWait) || 0, e) : o, f = "trailing" in r ? !!r.trailing : f);
1989
+ throw new TypeError(hn);
1990
+ e = tt(e) || 0, Ee(r) && (p = !!r.leading, u = "maxWait" in r, o = u ? gn(tt(r.maxWait) || 0, e) : o, f = "trailing" in r ? !!r.trailing : f);
1985
1991
  function m(E) {
1986
- var k = n, M = s;
1987
- return n = s = void 0, c = E, i = t.apply(M, k), i;
1992
+ var w = n, M = s;
1993
+ return n = s = void 0, c = E, i = t.apply(M, w), i;
1988
1994
  }
1989
1995
  function h(E) {
1990
1996
  return c = E, l = setTimeout(v, e), p ? m(E) : i;
1991
1997
  }
1992
1998
  function d(E) {
1993
- var k = E - a, M = E - c, L = e - k;
1994
- return u ? mn(L, o - M) : L;
1999
+ var w = E - a, M = E - c, L = e - w;
2000
+ return u ? vn(L, o - M) : L;
1995
2001
  }
1996
2002
  function g(E) {
1997
- var k = E - a, M = E - c;
1998
- return a === void 0 || k >= e || k < 0 || u && M >= o;
2003
+ var w = E - a, M = E - c;
2004
+ return a === void 0 || w >= e || w < 0 || u && M >= o;
1999
2005
  }
2000
2006
  function v() {
2001
2007
  var E = ve();
@@ -2006,15 +2012,15 @@ function hn(t, e, r) {
2006
2012
  function y(E) {
2007
2013
  return l = void 0, f && n ? m(E) : (n = s = void 0, i);
2008
2014
  }
2009
- function w() {
2015
+ function k() {
2010
2016
  l !== void 0 && clearTimeout(l), c = 0, n = a = s = l = void 0;
2011
2017
  }
2012
2018
  function P() {
2013
2019
  return l === void 0 ? i : y(ve());
2014
2020
  }
2015
2021
  function O() {
2016
- var E = ve(), k = g(E);
2017
- if (n = arguments, s = this, a = E, k) {
2022
+ var E = ve(), w = g(E);
2023
+ if (n = arguments, s = this, a = E, w) {
2018
2024
  if (l === void 0)
2019
2025
  return h(a);
2020
2026
  if (u)
@@ -2022,13 +2028,13 @@ function hn(t, e, r) {
2022
2028
  }
2023
2029
  return l === void 0 && (l = setTimeout(v, e)), i;
2024
2030
  }
2025
- return O.cancel = w, O.flush = P, O;
2031
+ return O.cancel = k, O.flush = P, O;
2026
2032
  }
2027
- class gn extends Nr {
2033
+ class _n extends Zr {
2028
2034
  constructor(r, n = 10) {
2029
2035
  super(r);
2030
- se(this, "debouncedRender");
2031
- this.debouncedRender = hn(
2036
+ ae(this, "debouncedRender");
2037
+ this.debouncedRender = yn(
2032
2038
  () => {
2033
2039
  super.render();
2034
2040
  },
@@ -2061,7 +2067,12 @@ class gn extends Nr {
2061
2067
  this.debouncedRender.cancel();
2062
2068
  }
2063
2069
  }
2064
- const et = Object.values(I), Ln = T({
2070
+ class En extends Rr {
2071
+ calculate(e) {
2072
+ return e.markers.length === 0 ? { clusters: [], changed: !0 } : super.calculate(e);
2073
+ }
2074
+ }
2075
+ const rt = Object.values(I), Rn = T({
2065
2076
  name: "MarkerCluster",
2066
2077
  props: {
2067
2078
  options: {
@@ -2073,24 +2084,24 @@ const et = Object.values(I), Ln = T({
2073
2084
  default: 10
2074
2085
  }
2075
2086
  },
2076
- emits: et,
2087
+ emits: rt,
2077
2088
  setup(t, { emit: e, expose: r, slots: n }) {
2078
- const s = _(), o = C(D, _()), i = C(Z, _());
2089
+ const s = _(), o = b(D, _()), i = b(Z, _());
2079
2090
  return U(Oe, s), S(
2080
2091
  o,
2081
2092
  () => {
2082
2093
  o.value && (s.value = A(
2083
- new gn(
2094
+ new _n(
2084
2095
  {
2085
2096
  map: o.value,
2086
2097
  // Better perf than the default `SuperClusterAlgorithm`. See:
2087
2098
  // https://github.com/googlemaps/js-markerclusterer/pull/640
2088
- algorithm: new xr(t.options.algorithmOptions ?? {}),
2099
+ algorithm: new En(t.options.algorithmOptions ?? {}),
2089
2100
  ...t.options
2090
2101
  },
2091
2102
  t.renderDebounceDelay
2092
2103
  )
2093
- ), et.forEach((l) => {
2104
+ ), rt.forEach((l) => {
2094
2105
  var a;
2095
2106
  (a = s.value) == null || a.addListener(l, (c) => e(l, c));
2096
2107
  }));
@@ -2106,7 +2117,7 @@ const et = Object.values(I), Ln = T({
2106
2117
  return (l = n.default) == null ? void 0 : l.call(n);
2107
2118
  };
2108
2119
  }
2109
- }), vn = T({
2120
+ }), kn = T({
2110
2121
  inheritAttrs: !1,
2111
2122
  props: {
2112
2123
  options: {
@@ -2117,31 +2128,31 @@ const et = Object.values(I), Ln = T({
2117
2128
  setup(t, { slots: e, emit: r, expose: n }) {
2118
2129
  const s = _(), o = W(() => {
2119
2130
  var a;
2120
- return (a = e.default) == null ? void 0 : a.call(e).some((c) => c.type !== we);
2131
+ return (a = e.default) == null ? void 0 : a.call(e).some((c) => c.type !== ke);
2121
2132
  }), i = W(() => ({
2122
2133
  ...t.options,
2123
2134
  element: s.value
2124
- })), l = K(de, [], i, r);
2135
+ })), l = K(fe, [], i, r);
2125
2136
  return n({
2126
2137
  customMarker: l
2127
2138
  }), { customMarkerRef: s, customMarker: l, hasSlotContent: o };
2128
2139
  }
2129
2140
  });
2130
- const yn = {
2141
+ const wn = {
2131
2142
  key: 0,
2132
2143
  class: "custom-marker-wrapper"
2133
2144
  };
2134
- function _n(t, e, r, n, s, o) {
2135
- return t.hasSlotContent ? (F(), V("div", yn, [
2136
- ce("div", ke({
2145
+ function Cn(t, e, r, n, s, o) {
2146
+ return t.hasSlotContent ? (F(), V("div", wn, [
2147
+ pe("div", we({
2137
2148
  ref: "customMarkerRef",
2138
2149
  style: { cursor: t.$attrs.onClick ? "pointer" : void 0 }
2139
2150
  }, t.$attrs), [
2140
2151
  z(t.$slots, "default", {}, void 0, !0)
2141
2152
  ], 16)
2142
- ])) : be("", !0);
2153
+ ])) : Ce("", !0);
2143
2154
  }
2144
- const xn = /* @__PURE__ */ re(vn, [["render", _n], ["__scopeId", "data-v-2d2d343a"]]), jn = T({
2155
+ const Nn = /* @__PURE__ */ re(kn, [["render", Cn], ["__scopeId", "data-v-574a274a"]]), $n = T({
2145
2156
  name: "HeatmapLayer",
2146
2157
  props: {
2147
2158
  options: {
@@ -2150,7 +2161,7 @@ const xn = /* @__PURE__ */ re(vn, [["render", _n], ["__scopeId", "data-v-2d2d343
2150
2161
  }
2151
2162
  },
2152
2163
  setup(t) {
2153
- const e = _(), r = C(D, _()), n = C(Z, _());
2164
+ const e = _(), r = b(D, _()), n = b(Z, _());
2154
2165
  return S(
2155
2166
  [r, () => t.options],
2156
2167
  ([s, o], [i, l]) => {
@@ -2181,19 +2192,19 @@ const xn = /* @__PURE__ */ re(vn, [["render", _n], ["__scopeId", "data-v-2d2d343
2181
2192
  render: () => null
2182
2193
  });
2183
2194
  export {
2184
- Cn as AdvancedMarker,
2185
- Pn as Circle,
2186
- An as CustomControl,
2187
- xn as CustomMarker,
2188
- bn as GoogleMap,
2189
- jn as HeatmapLayer,
2190
- qn as InfoWindow,
2191
- On as Marker,
2192
- Ln as MarkerCluster,
2193
- Sn as Polygon,
2194
- Mn as Polyline,
2195
- Tn as Rectangle,
2195
+ Tn as AdvancedMarker,
2196
+ xn as Circle,
2197
+ jn as CustomControl,
2198
+ Nn as CustomMarker,
2199
+ Sn as GoogleMap,
2200
+ $n as HeatmapLayer,
2201
+ In as InfoWindow,
2202
+ Pn as Marker,
2203
+ Rn as MarkerCluster,
2204
+ qn as Polygon,
2205
+ An as Polyline,
2206
+ Ln as Rectangle,
2196
2207
  Z as apiSymbol,
2197
2208
  D as mapSymbol,
2198
- rt as mapTilesLoadedSymbol
2209
+ st as mapTilesLoadedSymbol
2199
2210
  };