tg-map-vue3 3.8.6 → 3.8.9

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/tg-map.js CHANGED
@@ -1,8 +1,8 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.baidu-info-box-container{transform:translateY(-11px);font-size:13px;font-weight:300;width:100vw;cursor:auto;-webkit-user-select:auto!important;user-select:auto!important}.baidu-info-box-container__border{position:absolute;padding:12px;background-color:#fff;box-shadow:0 2px 7px 1px #0000004d;border-radius:8px;transform:translate(-50%,-100%)}.baidu-info-box-container__inner{overflow:auto}.baidu-info-box-container__close{position:absolute;right:-6px;top:-6px;width:14px;height:14px;margin:8px;opacity:.6;cursor:pointer;-webkit-mask-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E);mask-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E);background-color:#000}.baidu-info-box-container__close:hover{opacity:1}.baidu-info-box-container:after{position:absolute;background-color:#fff;content:"";width:15px;height:15px;left:0;top:0;box-shadow:-2px 2px 2px #b2b2b266;transform:translate(-50%,-50%) rotate(-45deg)}.element-overlay{position:absolute}.tg-map{height:100%;position:relative}.tg-map__map{width:100%;height:100%}.tg-map__map--hide-logo-google .gm-style a[target=_blank]:has(>div>img){display:none!important}.tg-map__map--hide-logo-google .gm-style>div:last-child>div:last-child>div{display:none}.tg-map__map--hide-logo-baidu div.anchorBL>a[target=_blank]>img{display:none}.tg-map__map--hide-logo-baidu div.BMap_cpyCtrl{display:none}.tg-map-widget{position:absolute}.tg-map>.tg-custom-control{display:none}.tg-map .tg-element-overlay{display:none}.tg-map__map .tg-element-overlay{display:block}.tg-map .tg-info-box{display:none}.tg-map__map .tg-info-box{display:block}.tg-map .tg-label{display:none}.tg-map__map .tg-label{display:block}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.baidu-info-box-container{transform:translateY(-11px);font-size:13px;font-weight:300;width:100vw;cursor:auto;-webkit-user-select:auto!important;user-select:auto!important}.baidu-info-box-container__border{position:absolute;padding:12px;background-color:#fff;box-shadow:0 2px 7px 1px #0000004d;border-radius:8px;transform:translate(-50%,-100%)}.baidu-info-box-container__inner{overflow:auto}.baidu-info-box-container__close{position:absolute;right:-6px;top:-6px;width:14px;height:14px;margin:8px;opacity:.6;cursor:pointer;-webkit-mask-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E);mask-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E);background-color:#000}.baidu-info-box-container__close:hover{opacity:1}.baidu-info-box-container:after{position:absolute;background-color:#fff;content:"";width:15px;height:15px;left:0;top:0;box-shadow:-2px 2px 2px #b2b2b266;transform:translate(-50%,-50%) rotate(-45deg)}.gm-style-iw-c .gm-style-iw-chr{display:block}.gm-style-iw-c .gm-style-iw-chr .gm-style-iw-ch{padding-top:12px}.gm-style-iw-c .gm-style-iw-chr button.gm-ui-hover-effect{position:absolute!important;right:-6px;top:-6px;width:14px!important;height:14px!important;margin:8px!important}.gm-style-iw-c .gm-style-iw-chr button.gm-ui-hover-effect span{width:14px!important;height:14px!important;margin:0!important}.element-overlay{position:absolute}.tg-map{height:100%;position:relative}.tg-map__map{width:100%;height:100%}.tg-map__map--hide-logo-google .gm-style a[target=_blank]:has(>div>img){display:none!important}.tg-map__map--hide-logo-google .gm-style>div:last-child>div:last-child>div{display:none}.tg-map__map--hide-logo-baidu div.anchorBL>a[target=_blank]>img{display:none}.tg-map__map--hide-logo-baidu div.BMap_cpyCtrl{display:none}.tg-map-widget{position:absolute}.tg-map>.tg-custom-control{display:none}.tg-map .tg-element-overlay{display:none}.tg-map__map .tg-element-overlay{display:block}.tg-map .tg-info-box{display:none}.tg-map__map .tg-info-box{display:block}.tg-map .tg-label{display:none}.tg-map__map .tg-label{display:block}')),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  var Yr = Object.defineProperty;
3
3
  var qr = (i, t, e) => t in i ? Yr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
4
4
  var m = (i, t, e) => (qr(i, typeof t != "symbol" ? t + "" : t, e), e);
5
- import { createCommentVNode as ft, computed as fr, defineComponent as P, markRaw as Kr, watch as Ae, openBlock as he, createElementBlock as ce, mergeProps as He, createElementVNode as Xr, normalizeClass as st, renderSlot as K, normalizeStyle as Jr, getCurrentInstance as Qr, inject as ei, onMounted as ti, onBeforeUnmount as ri, toRaw as nt, withDirectives as ii, vShow as si } from "vue";
5
+ import { createCommentVNode as ft, computed as fr, defineComponent as P, markRaw as Kr, watch as Ae, openBlock as he, createElementBlock as ce, mergeProps as He, createElementVNode as Xr, normalizeClass as it, renderSlot as K, normalizeStyle as Jr, getCurrentInstance as Qr, inject as ei, onMounted as ti, onBeforeUnmount as ri, toRaw as st, withDirectives as ii, vShow as si } from "vue";
6
6
  function re(i, t, e) {
7
7
  Object.keys(i).forEach((r) => {
8
8
  r.startsWith("update:") || e != null && e.includes(r) || t.addEventListener(r, i[r]);
@@ -12,11 +12,11 @@ let ni = 1;
12
12
  function oi() {
13
13
  return ni++;
14
14
  }
15
- function qe(i, t) {
15
+ function Ye(i, t) {
16
16
  return t.__id__ || (t.__id__ = oi()), `${i}::${t.__id__}`;
17
17
  }
18
18
  var xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
- function ot(i) {
19
+ function nt(i) {
20
20
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
21
21
  }
22
22
  var vr = { exports: {} };
@@ -127,7 +127,7 @@ var vr = { exports: {} };
127
127
  });
128
128
  })(vr);
129
129
  var ai = vr.exports;
130
- const pe = /* @__PURE__ */ ot(ai);
130
+ const pe = /* @__PURE__ */ nt(ai);
131
131
  var fe;
132
132
  ((i) => {
133
133
  function t(c, o) {
@@ -194,15 +194,15 @@ function me(i, t) {
194
194
  function vt(i) {
195
195
  throw new Error(`Unexpected object: ${i}`);
196
196
  }
197
- function ln() {
197
+ function hn() {
198
198
  }
199
199
  function yt(i) {
200
200
  return i;
201
201
  }
202
- function hn(i, t) {
202
+ function cn(i, t) {
203
203
  return i instanceof t;
204
204
  }
205
- function cn(i, t) {
205
+ function dn(i, t) {
206
206
  if (i instanceof t)
207
207
  return i;
208
208
  }
@@ -222,7 +222,7 @@ function Et(i, t, e) {
222
222
  r = r.$parent;
223
223
  }
224
224
  }
225
- function dn(i) {
225
+ function un(i) {
226
226
  return i;
227
227
  }
228
228
  function B(i) {
@@ -231,15 +231,15 @@ function B(i) {
231
231
  function Pt(i) {
232
232
  throw new Error(`Unsupported: ${i}`);
233
233
  }
234
- function un(i) {
234
+ function pn(i) {
235
235
  throw new Error(`todo: ${i}`);
236
236
  }
237
- function pn(i) {
237
+ function gn(i) {
238
238
  return i;
239
239
  }
240
240
  function De(...i) {
241
241
  }
242
- function gn(i) {
242
+ function mn(i) {
243
243
  return i != null;
244
244
  }
245
245
  function li(i) {
@@ -249,8 +249,8 @@ function hi(i) {
249
249
  let t = null;
250
250
  return () => t ?? (t = i().catch((e) => (t = null, Promise.reject(e))));
251
251
  }
252
- var R = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(R || {});
253
- const Fe = "wgs84", D = class D {
252
+ var D = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(D || {});
253
+ const ut = "wgs84", R = class R {
254
254
  constructor(t, e, r) {
255
255
  this.lat = t, this.lng = e, this.coord = r;
256
256
  }
@@ -272,26 +272,23 @@ const Fe = "wgs84", D = class D {
272
272
  }
273
273
  /** @param coord Baidu Map的坐标一般都是bd09 */
274
274
  static fromBaidu(t, e) {
275
- return new D(t.lat, t.lng, e);
275
+ return new R(t.lat, t.lng, e);
276
276
  }
277
277
  /** @param coord Google Map的坐标依据地图类型不同是不一样的 */
278
278
  static fromGoogle(t, e) {
279
- return new D(t.lat(), t.lng(), e);
279
+ return new R(t.lat(), t.lng(), e);
280
280
  }
281
281
  static fromHere(t, e) {
282
- return new D(t.lat, t.lng, e);
282
+ return new R(t.lat, t.lng, e);
283
283
  }
284
284
  static fromLiteral(t) {
285
- return new D(t.lat, t.lng, t.coord || Fe);
285
+ return new R(t.lat, t.lng, t.coord || ut);
286
286
  }
287
- static fromPartialLiteral(t) {
288
- return new D((t == null ? void 0 : t.lat) ?? 0, (t == null ? void 0 : t.lng) ?? 0, (t == null ? void 0 : t.coord) || Fe);
287
+ static fromLngLat(t, e, r = ut) {
288
+ return new R(e, t, r);
289
289
  }
290
- static fromLngLat(t, e, r = Fe) {
291
- return new D(e, t, r);
292
- }
293
- static create(t, e, r = Fe) {
294
- return new D(t, e, r);
290
+ static create(t, e, r = ut) {
291
+ return new R(t, e, r);
295
292
  }
296
293
  /** 转换坐标到指定坐标系 */
297
294
  to(t) {
@@ -299,7 +296,7 @@ const Fe = "wgs84", D = class D {
299
296
  if (this.coord === e)
300
297
  return this;
301
298
  const [r, s] = this._convert(e);
302
- return new D(s, r, e);
299
+ return new R(s, r, e);
303
300
  }
304
301
  /**
305
302
  * TODO: normalize要不要默认设为true, 和google的行为保持一致?
@@ -309,7 +306,7 @@ const Fe = "wgs84", D = class D {
309
306
  */
310
307
  toBaidu(t, e = !1) {
311
308
  let r = this.lat, s = this.lng;
312
- return this.coord !== t && ([s, r] = this._convert(t)), e && ([s, r] = D._normalize(s, r)), new BMap.Point(s, r);
309
+ return this.coord !== t && ([s, r] = this._convert(t)), e && ([s, r] = R._normalize(s, r)), new BMap.Point(s, r);
313
310
  }
314
311
  /**
315
312
  * 转换成google的经纬度, 内部会自动进行标准化
@@ -348,8 +345,8 @@ const Fe = "wgs84", D = class D {
348
345
  * @see _normalize {@macro latlng_normalize}
349
346
  */
350
347
  normalize() {
351
- const [t, e] = D._normalize(this.lng, this.lat);
352
- return e === this.lat && t === this.lng ? this : new D(e, t, this.coord);
348
+ const [t, e] = R._normalize(this.lng, this.lat);
349
+ return e === this.lat && t === this.lng ? this : new R(e, t, this.coord);
353
350
  }
354
351
  equals(t) {
355
352
  return this === t ? !0 : this.lat === t.lat && this.lng === t.lng && this.coord === t.coord;
@@ -358,8 +355,8 @@ const Fe = "wgs84", D = class D {
358
355
  return JSON.stringify(this);
359
356
  }
360
357
  };
361
- m(D, "ZERO", D.create(0, 0));
362
- let O = D;
358
+ m(R, "ZERO", R.create(0, 0));
359
+ let O = R;
363
360
  const ne = class ne {
364
361
  /**
365
362
  * 不推荐直接创建LatLngBounds, sw和ne的大小关系可能没法保证, 推荐用LatLngBounds.Builder或者LatLngBounds.from等静态方法来创建
@@ -487,6 +484,23 @@ var te;
487
484
  }
488
485
  i.getCoordType = e;
489
486
  })(te || (te = {}));
487
+ function _r() {
488
+ BMap.OverlayV3 || (BMap.OverlayV3 = BMap.Overlay);
489
+ }
490
+ function ci() {
491
+ const i = window.$BAIDU$;
492
+ "kT" in i || Object.defineProperty(i, "kT", {
493
+ get: () => i._instances,
494
+ enumerable: !0,
495
+ configurable: !0
496
+ });
497
+ }
498
+ const or = {
499
+ /** {@link BMap.Point.equals} 无效, 故需要自己写一个 */
500
+ equals(i, t) {
501
+ return i.lat === t.lat && i.lng === t.lng;
502
+ }
503
+ };
490
504
  var bt;
491
505
  ((i) => {
492
506
  function t(e) {
@@ -494,19 +508,19 @@ var bt;
494
508
  }
495
509
  i.isScrollable = t;
496
510
  })(bt || (bt = {}));
497
- function _r(i, t, e) {
511
+ function br(i, t, e) {
498
512
  return i.addListener(t, e).remove;
499
513
  }
500
- function ci(i, t, e) {
514
+ function di(i, t, e) {
501
515
  return i.addEventListener(t, e), () => i.removeEventListener(t, e);
502
516
  }
503
- function di(i, t, e, r) {
517
+ function ui(i, t, e, r) {
504
518
  return i.addEventListener(t, e, r), () => i.removeEventListener(t, e, r);
505
519
  }
506
- function or(i, t, e) {
520
+ function ar(i, t, e) {
507
521
  return i.addEventListener(t, e), () => i.removeEventListener(t, e);
508
522
  }
509
- class br {
523
+ class Tr {
510
524
  constructor(t, e) {
511
525
  m(this, "eventMap", /* @__PURE__ */ new Map());
512
526
  m(this, "target", void 0);
@@ -516,9 +530,9 @@ class br {
516
530
  return this.target = t, this;
517
531
  }
518
532
  }
519
- class at {
533
+ class ot {
520
534
  constructor(t, e) {
521
- m(this, "eventHub", new Tr());
535
+ m(this, "eventHub", new Mr());
522
536
  this.delegate = t, this.options = e;
523
537
  }
524
538
  notify(t) {
@@ -545,14 +559,14 @@ class at {
545
559
  this.delegate.removeEventListener(t, e);
546
560
  }
547
561
  }
548
- const it = class it extends br {
562
+ const rt = class rt extends Tr {
549
563
  addEventListener(t, e) {
550
- const r = qe(t, e);
564
+ const r = Ye(t, e);
551
565
  if (this.eventMap.get(r)) {
552
566
  console.warn("listener已经添加过了", r, e);
553
567
  return;
554
568
  }
555
- const s = this.inner.addListener(it.EVENT_TYPE_MAP[t] || t, (n) => {
569
+ const s = this.inner.addListener(rt.EVENT_TYPE_MAP[t] || t, (n) => {
556
570
  const a = {
557
571
  type: t,
558
572
  target: this.target,
@@ -563,12 +577,12 @@ const it = class it extends br {
563
577
  this.eventMap.set(r, s);
564
578
  }
565
579
  removeEventListener(t, e) {
566
- const r = qe(t, e), s = this.eventMap.get(r);
580
+ const r = Ye(t, e), s = this.eventMap.get(r);
567
581
  s ? (s.remove(), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
568
582
  }
569
583
  };
570
584
  // 事件类型映射: tg => google
571
- m(it, "EVENT_TYPE_MAP", {
585
+ m(rt, "EVENT_TYPE_MAP", {
572
586
  "center-changed": "center_changed",
573
587
  "zoom-changed": "zoom_changed",
574
588
  "radius-changed": "radius_changed",
@@ -584,10 +598,10 @@ m(it, "EVENT_TYPE_MAP", {
584
598
  "map-mouseup": "mouseup",
585
599
  "map-dblclick": "dblclick"
586
600
  });
587
- let ye = it;
588
- const Ie = class Ie extends br {
601
+ let ye = rt;
602
+ const Ie = class Ie extends Tr {
589
603
  addEventListener(t, e) {
590
- const r = qe(t, e);
604
+ const r = Ye(t, e);
591
605
  if (this.eventMap.get(r)) {
592
606
  console.warn("listener已经添加过了", r, e);
593
607
  return;
@@ -603,7 +617,7 @@ const Ie = class Ie extends br {
603
617
  this.inner.addEventListener(Ie.EVENT_TYPE_MAP[t] || t, s), this.eventMap.set(r, s);
604
618
  }
605
619
  removeEventListener(t, e) {
606
- const r = qe(t, e), s = this.eventMap.get(r);
620
+ const r = Ye(t, e), s = this.eventMap.get(r);
607
621
  s ? (this.inner.removeEventListener(Ie.EVENT_TYPE_MAP[t] || t, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
608
622
  }
609
623
  };
@@ -618,7 +632,7 @@ m(Ie, "EVENT_TYPE_MAP", {
618
632
  "map-type-changed": "maptypechange"
619
633
  });
620
634
  let Re = Ie;
621
- class Tr {
635
+ class Mr {
622
636
  constructor() {
623
637
  m(this, "typeMap", /* @__PURE__ */ new Map());
624
638
  }
@@ -639,7 +653,7 @@ class Tr {
639
653
  e && e.forEach((r) => r.call(t.target, t));
640
654
  }
641
655
  }
642
- class ar {
656
+ class lr {
643
657
  /**
644
658
  * `keys`和`values`数组中可以有相同的值, 若存在相同值, 则index越小的优先级越高
645
659
  */
@@ -657,7 +671,7 @@ class ar {
657
671
  return this.keyToValue.get(t) ?? B();
658
672
  }
659
673
  }
660
- class ui {
674
+ class pi {
661
675
  constructor(t, e = 10) {
662
676
  m(this, "map", /* @__PURE__ */ new Map());
663
677
  this.values = t, this.maxSize4Debug = e;
@@ -714,7 +728,7 @@ var A = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
714
728
  /* RIGHT_BOTTOM */
715
729
  ];
716
730
  function s() {
717
- return t || (t = new ar(r, [
731
+ return t || (t = new lr(r, [
718
732
  /* | @tg/map |名字相同| baidu | */
719
733
  /* TOP_LEFT = */
720
734
  BMAP_ANCHOR_TOP_LEFT,
@@ -744,7 +758,7 @@ var A = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
744
758
  }
745
759
  i.getBaidu = s;
746
760
  function n() {
747
- return e || (e = new ar(r, [
761
+ return e || (e = new lr(r, [
748
762
  google.maps.ControlPosition.TOP_LEFT,
749
763
  google.maps.ControlPosition.TOP_CENTER,
750
764
  google.maps.ControlPosition.TOP_RIGHT,
@@ -761,7 +775,7 @@ var A = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
761
775
  }
762
776
  i.getGoogle = n;
763
777
  })(U || (U = {}));
764
- class pi {
778
+ class gi {
765
779
  constructor(t) {
766
780
  /** 实际添加到地图中的control对象 */
767
781
  m(this, "inner");
@@ -770,7 +784,7 @@ class pi {
770
784
  }
771
785
  class Lt {
772
786
  }
773
- class gi extends Lt {
787
+ class mi extends Lt {
774
788
  constructor(t, e) {
775
789
  super(), this.visible = t, this.position = e;
776
790
  }
@@ -814,7 +828,7 @@ class Bt extends Lt {
814
828
  t.innerMap.removeControl(this.inner);
815
829
  }
816
830
  }
817
- class lt extends Lt {
831
+ class at extends Lt {
818
832
  constructor(e, r) {
819
833
  super();
820
834
  m(this, "visible", !1);
@@ -851,7 +865,7 @@ class lt extends Lt {
851
865
  });
852
866
  }
853
867
  }
854
- var Mr = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(Mr || {});
868
+ var Or = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(Or || {});
855
869
  class W {
856
870
  constructor(t, e, r, s) {
857
871
  this.id = t, this.baidu = e, this.google = r, this.googleCoordType = s;
@@ -860,7 +874,7 @@ class W {
860
874
  return this.id;
861
875
  }
862
876
  getBaiduCoordType() {
863
- return R.bd09;
877
+ return D.bd09;
864
878
  }
865
879
  asBaiduMapType() {
866
880
  return this.baidu();
@@ -876,7 +890,7 @@ class W {
876
890
  Pt("google的内置地图没有对应的实例");
877
891
  }
878
892
  }
879
- class mn {
893
+ class fn {
880
894
  constructor(t, e) {
881
895
  m(this, "baiduLayerCached", new Pe(() => {
882
896
  const t = new BMap.TileLayer({});
@@ -928,7 +942,7 @@ class mn {
928
942
  Pt("这个方法不会被调用");
929
943
  }
930
944
  }
931
- class mi {
945
+ class fi {
932
946
  constructor() {
933
947
  m(this, "baiduCache", new Pe(() => new BMap.TrafficLayer()));
934
948
  m(this, "googleCache", new Pe(() => new google.maps.TrafficLayer()));
@@ -942,19 +956,19 @@ class mi {
942
956
  }
943
957
  var V;
944
958
  ((i) => {
945
- i.NORMAL = new W("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, R.gcj02), i.SATELLITE = new W("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, R.wgs84), i.HYBRID = new W("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, R.gcj02), i.TERRAIN = new W("terrain", () => (
959
+ i.NORMAL = new W("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, D.gcj02), i.SATELLITE = new W("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, D.wgs84), i.HYBRID = new W("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, D.gcj02), i.TERRAIN = new W("terrain", () => (
946
960
  /* 三维 */
947
961
  BMAP_PERSPECTIVE_MAP
948
962
  ), () => (
949
963
  /* 地形 */
950
964
  google.maps.MapTypeId.TERRAIN
951
- ), R.wgs84), i.BUILD_IN_MAP_TYPES = new ui([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
965
+ ), D.wgs84), i.BUILD_IN_MAP_TYPES = new pi([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
952
966
  })(V || (V = {}));
953
- var Or = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Or || {});
954
- const Cr = [V.NORMAL, V.SATELLITE, V.HYBRID];
967
+ var Cr = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Cr || {});
968
+ const wr = [V.NORMAL, V.SATELLITE, V.HYBRID];
955
969
  class It extends Bt {
956
970
  static create(t) {
957
- const e = t.mapTypes ?? Cr, r = {
971
+ const e = t.mapTypes ?? wr, r = {
958
972
  default: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
959
973
  horizontal: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
960
974
  dropdown: BMAP_MAPTYPE_CONTROL_DROPDOWN
@@ -965,8 +979,8 @@ class It extends Bt {
965
979
  return t.position && s.setAnchor(U.getBaidu().toValue(t.position)), new It(s, t.position);
966
980
  }
967
981
  }
968
- const ue = class ue extends lt {
969
- constructor(t = "default", e = A.TOP_LEFT, r = Cr) {
982
+ const ue = class ue extends at {
983
+ constructor(t = "default", e = A.TOP_LEFT, r = wr) {
970
984
  super("mapType", e), this.type = t, this.mapTypes = r, ue.type2google || (ue.type2google = {
971
985
  default: google.maps.MapTypeControlStyle.DEFAULT,
972
986
  horizontal: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
@@ -996,7 +1010,7 @@ class St extends Bt {
996
1010
  return new St(e, t.position);
997
1011
  }
998
1012
  }
999
- class kt extends lt {
1013
+ class kt extends at {
1000
1014
  static create(t) {
1001
1015
  return new kt(t.position);
1002
1016
  }
@@ -1004,12 +1018,12 @@ class kt extends lt {
1004
1018
  super("scale", t);
1005
1019
  }
1006
1020
  }
1007
- class At extends gi {
1021
+ class At extends mi {
1008
1022
  static create(t) {
1009
1023
  return new At(!0, t.position ?? A.RIGHT_BOTTOM);
1010
1024
  }
1011
1025
  }
1012
- class Dt extends lt {
1026
+ class Dt extends at {
1013
1027
  static create(t) {
1014
1028
  return new Dt(t.position);
1015
1029
  }
@@ -1027,7 +1041,7 @@ class Rt extends Bt {
1027
1041
  return new Rt(e, t.position);
1028
1042
  }
1029
1043
  }
1030
- class $t extends lt {
1044
+ class $t extends at {
1031
1045
  static create(t) {
1032
1046
  return new $t(t.position);
1033
1047
  }
@@ -1035,7 +1049,7 @@ class $t extends lt {
1035
1049
  super("zoom", t);
1036
1050
  }
1037
1051
  }
1038
- function fi(i) {
1052
+ function vi(i) {
1039
1053
  let t, e, r;
1040
1054
  const s = "The Google Maps JavaScript API", n = "google", a = "importLibrary", c = "__ib__", o = document, h = window, d = h[n] || (h[n] = {}), p = d.maps || (d.maps = {}), g = /* @__PURE__ */ new Set(), f = new URLSearchParams(), T = () => t || (t = new Promise(async (_, M) => {
1041
1055
  var l;
@@ -1046,17 +1060,17 @@ function fi(i) {
1046
1060
  }));
1047
1061
  p[a] ? console.warn(s + " only loads once. Ignoring:", i) : p[a] = (_, ...M) => g.add(_) && T().then(() => p[a](_, ...M));
1048
1062
  }
1049
- let vi, yi;
1063
+ let yi, _i;
1050
1064
  const ae = {
1051
1065
  /** Google的坐标0点 */
1052
1066
  get LATLNG_ZERO() {
1053
- return vi ?? (vi = new google.maps.LatLng({ lat: 0, lng: 0 }));
1067
+ return yi ?? (yi = new google.maps.LatLng({ lat: 0, lng: 0 }));
1054
1068
  },
1055
1069
  get BOUNDS_ZERO() {
1056
- return yi ?? (yi = new google.maps.LatLngBounds(this.LATLNG_ZERO, this.LATLNG_ZERO));
1070
+ return _i ?? (_i = new google.maps.LatLngBounds(this.LATLNG_ZERO, this.LATLNG_ZERO));
1057
1071
  }
1058
1072
  };
1059
- function wr(i, t = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
1073
+ function xr(i, t = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
1060
1074
  for (const e of i)
1061
1075
  for (const r of e.types)
1062
1076
  switch (r) {
@@ -1081,9 +1095,9 @@ function wr(i, t = { country: "", province: "", city: "", district: "", street:
1081
1095
  }
1082
1096
  return t;
1083
1097
  }
1084
- function xr(i, t) {
1098
+ function Er(i, t) {
1085
1099
  var r;
1086
- const e = i.address_components && wr(i.address_components);
1100
+ const e = i.address_components && xr(i.address_components);
1087
1101
  return {
1088
1102
  country: (e == null ? void 0 : e.country) ?? "",
1089
1103
  province: (e == null ? void 0 : e.province) ?? "",
@@ -1094,9 +1108,9 @@ function xr(i, t) {
1094
1108
  title: i.name ?? ""
1095
1109
  };
1096
1110
  }
1097
- class Er {
1111
+ class Pr {
1098
1112
  }
1099
- class _i extends Er {
1113
+ class bi extends Pr {
1100
1114
  constructor(e, r) {
1101
1115
  super();
1102
1116
  m(this, "inner");
@@ -1112,7 +1126,7 @@ class _i extends Er {
1112
1126
  this.inner.setBounds(e.toGoogle(this.map.coordType));
1113
1127
  }
1114
1128
  addResultListener(e) {
1115
- return _r(this.inner, "place_changed", () => {
1129
+ return br(this.inner, "place_changed", () => {
1116
1130
  const r = this.inner.getPlace(), s = {
1117
1131
  title: r.name ?? "",
1118
1132
  province: "",
@@ -1122,11 +1136,11 @@ class _i extends Er {
1122
1136
  streetNumber: "",
1123
1137
  country: ""
1124
1138
  };
1125
- r.address_components && wr(r.address_components, s), e(s);
1139
+ r.address_components && xr(r.address_components, s), e(s);
1126
1140
  });
1127
1141
  }
1128
1142
  }
1129
- class bi extends Er {
1143
+ class Ti extends Pr {
1130
1144
  constructor(e, r) {
1131
1145
  super();
1132
1146
  m(this, "inner");
@@ -1140,7 +1154,7 @@ class bi extends Er {
1140
1154
  const s = () => {
1141
1155
  this.inner.setLocation(this.map.innerMap);
1142
1156
  };
1143
- this.removeableArray.push(or(this.map, "center-changed", s)), this.removeableArray.push(or(this.map, "zoom-changed", s));
1157
+ this.removeableArray.push(ar(this.map, "center-changed", s)), this.removeableArray.push(ar(this.map, "zoom-changed", s));
1144
1158
  }
1145
1159
  }
1146
1160
  setBounds(e) {
@@ -1148,14 +1162,14 @@ class bi extends Er {
1148
1162
  }
1149
1163
  addResultListener(e) {
1150
1164
  let r = 0;
1151
- const s = ci(this.inner, "confirm", (a) => {
1165
+ const s = di(this.inner, "confirm", (a) => {
1152
1166
  const c = a.item.value;
1153
1167
  r = Date.now(), e(Object.assign({
1154
1168
  title: c.business,
1155
1169
  country: ""
1156
1170
  // Baidu的自动完成只支持中国
1157
1171
  }, c));
1158
- }), n = di(this.input, "keyup", (a) => {
1172
+ }), n = ui(this.input, "keyup", (a) => {
1159
1173
  a.key === "Enter" && Date.now() - r > 100 && e({
1160
1174
  title: this.input.value,
1161
1175
  country: "",
@@ -1171,7 +1185,7 @@ class bi extends Er {
1171
1185
  };
1172
1186
  }
1173
1187
  }
1174
- var Pr = { exports: {} };
1188
+ var Lr = { exports: {} };
1175
1189
  (function(i, t) {
1176
1190
  (function(e, r) {
1177
1191
  i.exports = r();
@@ -1598,24 +1612,24 @@ var Pr = { exports: {} };
1598
1612
  }
1599
1613
  return r;
1600
1614
  });
1601
- })(Pr);
1602
- var Ti = Pr.exports;
1603
- const Mi = /* @__PURE__ */ ot(Ti), lr = 10, Ke = {
1615
+ })(Lr);
1616
+ var Mi = Lr.exports;
1617
+ const Oi = /* @__PURE__ */ nt(Mi), hr = 10, qe = {
1604
1618
  toGoogle: (i, t) => ({
1605
1619
  opacity: i.opacity,
1606
- radius: i.radius ?? lr,
1620
+ radius: i.radius ?? hr,
1607
1621
  // key是小数和整数的混合, 故读取出来时不会维持
1608
1622
  gradient: i.gradient && Object.entries(i.gradient).sort(([e], [r]) => +e - +r).map(([e, r]) => r),
1609
1623
  maxIntensity: i.maxIntensity,
1610
- data: Xe.toGoogle(i.data, t)
1624
+ data: Ke.toGoogle(i.data, t)
1611
1625
  }),
1612
1626
  toBaidu: (i, t, e) => ({
1613
1627
  opacity: i.opacity,
1614
- radius: i.radius ?? lr,
1628
+ radius: i.radius ?? hr,
1615
1629
  gradient: i.gradient,
1616
- data: Xe.toBaidu(i.data, t, e)
1630
+ data: Ke.toBaidu(i.data, t, e)
1617
1631
  })
1618
- }, Xe = {
1632
+ }, Ke = {
1619
1633
  toGoogle: (i, t) => i.map(
1620
1634
  (e) => "weight" in e ? { weight: e.weight, location: e.position.toGoogle(t) } : e.toGoogle(t)
1621
1635
  ),
@@ -1627,31 +1641,31 @@ const Mi = /* @__PURE__ */ ot(Ti), lr = 10, Ke = {
1627
1641
  }), max: e ?? r };
1628
1642
  }
1629
1643
  };
1630
- class Lr {
1644
+ class Br {
1631
1645
  }
1632
- class Oi extends Lr {
1646
+ class Ci extends Br {
1633
1647
  constructor(e, r) {
1634
1648
  super();
1635
1649
  m(this, "inner");
1636
- this.map = e, this.inner = new google.maps.visualization.HeatmapLayer(Ke.toGoogle(r, this.map.coordType)), this.inner.setMap(e.innerMap);
1650
+ this.map = e, this.inner = new google.maps.visualization.HeatmapLayer(qe.toGoogle(r, this.map.coordType)), this.inner.setMap(e.innerMap);
1637
1651
  }
1638
1652
  setData(e) {
1639
- this.inner.setData(Xe.toGoogle(e, this.map.coordType));
1653
+ this.inner.setData(Ke.toGoogle(e, this.map.coordType));
1640
1654
  }
1641
1655
  setOptions(e) {
1642
- this.inner.setOptions(Ke.toGoogle(e, this.map.coordType));
1656
+ this.inner.setOptions(qe.toGoogle(e, this.map.coordType));
1643
1657
  }
1644
1658
  remove() {
1645
1659
  this.inner.setMap(null);
1646
1660
  }
1647
1661
  }
1648
- class Ci extends Lr {
1662
+ class wi extends Br {
1649
1663
  constructor(e, r) {
1650
1664
  super();
1651
1665
  m(this, "inner");
1652
1666
  this.map = e;
1653
- const s = Ke.toBaidu(r, this.map.coordType, r.maxIntensity);
1654
- this.inner = new Mi(s), e.innerMap.addOverlay(this.inner), this.inner.setDataSet(s.data);
1667
+ const s = qe.toBaidu(r, this.map.coordType, r.maxIntensity);
1668
+ this.inner = new Oi(s), e.innerMap.addOverlay(this.inner), this.inner.setDataSet(s.data);
1655
1669
  }
1656
1670
  /**
1657
1671
  * 当前的最大值
@@ -1666,17 +1680,17 @@ class Ci extends Lr {
1666
1680
  ((r = this.inner).data ?? (r.data = {})).max = e;
1667
1681
  }
1668
1682
  setData(e) {
1669
- this.inner.setDataSet(Xe.toBaidu(e, this.map.coordType, this.innerDataMax));
1683
+ this.inner.setDataSet(Ke.toBaidu(e, this.map.coordType, this.innerDataMax));
1670
1684
  }
1671
1685
  setOptions(e) {
1672
- const r = Ke.toBaidu(e, this.map.coordType, e.maxIntensity ?? this.innerDataMax);
1686
+ const r = qe.toBaidu(e, this.map.coordType, e.maxIntensity ?? this.innerDataMax);
1673
1687
  e.data !== this.inner.data ? this.inner.setDataSet(r.data) : e.maxIntensity && (this.innerDataMax = e.maxIntensity), this.inner.setOptions(r);
1674
1688
  }
1675
1689
  remove() {
1676
1690
  this.map.innerMap.removeOverlay(this.inner);
1677
1691
  }
1678
1692
  }
1679
- class Br {
1693
+ class Ir {
1680
1694
  constructor(t) {
1681
1695
  this.options = t;
1682
1696
  }
@@ -1689,7 +1703,7 @@ function pt() {
1689
1703
  const i = window.location.hostname.split(".").filter((t) => !be.isInt(t));
1690
1704
  return i.length === 3 ? i.join(".") : [...i, "tg", "map", "urls"].slice(0, 3).join(".");
1691
1705
  }
1692
- const Se = class Se extends Br {
1706
+ const Se = class Se extends Ir {
1693
1707
  /** @see https://developers.google.com/maps/documentation/urls/get-started#directions-action */
1694
1708
  directions(t, e, r) {
1695
1709
  return Le(Se.BASE_URL, "dir/", {
@@ -1697,8 +1711,8 @@ const Se = class Se extends Br {
1697
1711
  // {@template google_map_normal_gcj02}
1698
1712
  // google地图的普通地图, 在国内其实上是gcj02坐标, 卫星地图是wgs84坐标, 因为这里打开的是基础地图, 故使用gcj02
1699
1713
  // {@endtemplate}
1700
- origin: te.toString(t, R.gcj02),
1701
- destination: te.toString(e, R.gcj02),
1714
+ origin: te.toString(t, D.gcj02),
1715
+ destination: te.toString(e, D.gcj02),
1702
1716
  travelmode: r
1703
1717
  });
1704
1718
  }
@@ -1707,25 +1721,25 @@ const Se = class Se extends Br {
1707
1721
  return Le(Se.BASE_URL, "search/", {
1708
1722
  api: "1",
1709
1723
  // {@macro google_map_normal_gcj02}
1710
- query: te.toString(t, R.gcj02)
1724
+ query: te.toString(t, D.gcj02)
1711
1725
  });
1712
1726
  }
1713
1727
  };
1714
1728
  m(Se, "BASE_URL", "https://www.google.com/maps/");
1715
1729
  let Mt = Se;
1716
- const ge = class ge extends Br {
1730
+ const ge = class ge extends Ir {
1717
1731
  /**
1718
1732
  * 导航
1719
1733
  * @see https://lbsyun.baidu.com/faq/api?title=webapi/uri/web#:~:text=%E6%9C%8D%E5%8A%A1%E5%9C%B0%E5%9D%80-,http%3A//api.map.baidu.com/direction,-//PC%26Webapp%E6%9C%8D%E5%8A%A1
1720
1734
  * */
1721
1735
  directions(t, e, r = "driving") {
1722
- const s = te.getCoordType(e) ?? te.getCoordType(t) ?? R.bd09, n = te.toString(e, s);
1736
+ const s = te.getCoordType(e) ?? te.getCoordType(t) ?? D.bd09, n = te.toString(e, s);
1723
1737
  return Le(ge.BASE_URL, "direction", {
1724
1738
  // baidu地图, 一定要有起点, 故这里用终点当起点, 防止导航失败
1725
1739
  origin: te.toString(t, s) ?? (typeof e != "string" ? `name:请选择起点|latlng:${n}` : n),
1726
1740
  destination: n,
1727
1741
  // 默认就是bd09
1728
- coord_type: s === R.bd09 ? void 0 : s,
1742
+ coord_type: s === D.bd09 ? void 0 : s,
1729
1743
  mode: r,
1730
1744
  output: "html",
1731
1745
  region: "中国",
@@ -1739,7 +1753,7 @@ const ge = class ge extends Br {
1739
1753
  * 显示经纬度, {@link markerApi}中途跳转的url, 一定能够定位到
1740
1754
  * */
1741
1755
  latlngApi(t) {
1742
- const e = t.to(R.bd09);
1756
+ const e = t.to(D.bd09);
1743
1757
  return new URL(`https://map.baidu.com/?latlng=${e.lat},${e.lng}`);
1744
1758
  }
1745
1759
  /**
@@ -1749,7 +1763,7 @@ const ge = class ge extends Br {
1749
1763
  markerApi(t, e, r) {
1750
1764
  return Le(ge.BASE_URL, "marker", {
1751
1765
  location: `${t.lat},${t.lng}`,
1752
- coord_type: t.coord === R.bd09 ? void 0 : t.coord,
1766
+ coord_type: t.coord === D.bd09 ? void 0 : t.coord,
1753
1767
  title: e,
1754
1768
  content: r,
1755
1769
  output: "html",
@@ -1767,7 +1781,7 @@ const ge = class ge extends Br {
1767
1781
  } : {
1768
1782
  location: `${t.lat},${t.lng}`,
1769
1783
  // 默认就是bd09
1770
- coord_type: t.coord === R.bd09 ? void 0 : t.coord
1784
+ coord_type: t.coord === D.bd09 ? void 0 : t.coord
1771
1785
  },
1772
1786
  output: "html",
1773
1787
  src: pt()
@@ -1775,9 +1789,9 @@ const ge = class ge extends Br {
1775
1789
  }
1776
1790
  };
1777
1791
  m(ge, "BASE_URL", "https://api.map.baidu.com/");
1778
- let Ot = ge, wi = class Ir {
1792
+ let Ot = ge, xi = class Sr {
1779
1793
  constructor(t, e, r) {
1780
- this.extend(Ir, google.maps.OverlayView), this.map_ = t, this.MARKER_CLUSTER_IMAGE_PATH_ = "../images/m", this.MARKER_CLUSTER_IMAGE_EXTENSION_ = "png", this.markers_ = [], this.clusters_ = [], this.sizes = [53, 56, 66, 78, 90], this.styles_ = [], this.ready_ = !1;
1794
+ this.extend(Sr, google.maps.OverlayView), this.map_ = t, this.MARKER_CLUSTER_IMAGE_PATH_ = "../images/m", this.MARKER_CLUSTER_IMAGE_EXTENSION_ = "png", this.markers_ = [], this.clusters_ = [], this.sizes = [53, 56, 66, 78, 90], this.styles_ = [], this.ready_ = !1;
1781
1795
  var s = r || {};
1782
1796
  this.zIndex_ = s.zIndex || google.maps.Marker.MAX_ZINDEX + 1, this.gridSize_ = s.gridSize || 60, this.minClusterSize_ = s.minimumClusterSize || 2, this.maxZoom_ = s.maxZoom || null, this.styles_ = s.styles || [], this.imagePath_ = s.imagePath || this.MARKER_CLUSTER_IMAGE_PATH_, this.imageExtension_ = s.imageExtension || this.MARKER_CLUSTER_IMAGE_EXTENSION_, this.zoomOnClick_ = !0, s.zoomOnClick != null && (this.zoomOnClick_ = s.zoomOnClick), this.averageCenter_ = !1, s.averageCenter != null && (this.averageCenter_ = s.averageCenter), this.setupStyles_(), this.setMap(t), this.prevZoom_ = this.map_.getZoom();
1783
1797
  var n = this;
@@ -2196,7 +2210,7 @@ let Ot = ge, wi = class Ir {
2196
2210
  if (r && r.isMarkerInClusterBounds(t))
2197
2211
  r.addMarker(t);
2198
2212
  else {
2199
- var o = new xi(this);
2213
+ var o = new Ei(this);
2200
2214
  o.addMarker(t), this.clusters_.push(o);
2201
2215
  }
2202
2216
  }
@@ -2213,7 +2227,7 @@ let Ot = ge, wi = class Ir {
2213
2227
  ), e = this.getExtendedBounds(t), r = 0, s; s = this.markers_[r]; r++)
2214
2228
  !s.isAdded && this.isMarkerInBounds_(s, e) && this.addToClosestCluster_(s);
2215
2229
  }
2216
- }, xi = class {
2230
+ }, Ei = class {
2217
2231
  constructor(t) {
2218
2232
  this.markerClusterer_ = t, this.map_ = t.getMap(), this.gridSize_ = t.getGridSize(), this.minClusterSize_ = t.getMinClusterSize(), this.averageCenter_ = t.isAverageCenter(), this.center_ = null, this.markers_ = [], this.bounds_ = null, this.clusterIcon_ = new zt(
2219
2233
  this,
@@ -2482,7 +2496,7 @@ class zt {
2482
2496
  ), e.join("");
2483
2497
  }
2484
2498
  }
2485
- var Sr = { exports: {} };
2499
+ var kr = { exports: {} };
2486
2500
  (function(i, t) {
2487
2501
  (function(e, r) {
2488
2502
  i.exports = r();
@@ -2675,25 +2689,25 @@ var Sr = { exports: {} };
2675
2689
  });
2676
2690
  }, c;
2677
2691
  });
2678
- })(Sr);
2679
- var Ei = Sr.exports;
2680
- const hr = /* @__PURE__ */ ot(Ei);
2681
- var kr = function(i, t, e) {
2682
- t = Pi(t);
2692
+ })(kr);
2693
+ var Pi = kr.exports;
2694
+ const cr = /* @__PURE__ */ nt(Pi);
2695
+ var Ar = function(i, t, e) {
2696
+ t = Li(t);
2683
2697
  var r = i.pointToPixel(t.getNorthEast()), s = i.pointToPixel(t.getSouthWest());
2684
2698
  r.x += e, r.y -= e, s.x -= e, s.y += e;
2685
2699
  var n = i.pixelToPoint(r), a = i.pixelToPoint(s);
2686
2700
  return new BMap.Bounds(a, n);
2687
- }, Pi = function(i) {
2688
- var t = Ue(i.getNorthEast().lng, -180, 180), e = Ue(i.getSouthWest().lng, -180, 180), r = Ue(i.getNorthEast().lat, -74, 74), s = Ue(i.getSouthWest().lat, -74, 74);
2701
+ }, Li = function(i) {
2702
+ var t = Fe(i.getNorthEast().lng, -180, 180), e = Fe(i.getSouthWest().lng, -180, 180), r = Fe(i.getNorthEast().lat, -74, 74), s = Fe(i.getSouthWest().lat, -74, 74);
2689
2703
  return new BMap.Bounds(new BMap.Point(e, s), new BMap.Point(t, r));
2690
- }, Ue = function(i, t, e) {
2704
+ }, Fe = function(i, t, e) {
2691
2705
  return t && (i = Math.max(i, t)), e && (i = Math.min(i, e)), i;
2692
- }, Ar = function(i) {
2706
+ }, Dr = function(i) {
2693
2707
  return Object.prototype.toString.call(i) === "[object Array]";
2694
- }, Dr = function(i, t) {
2708
+ }, Rr = function(i, t) {
2695
2709
  var e = -1;
2696
- if (Ar(t)) {
2710
+ if (Dr(t)) {
2697
2711
  if (t.indexOf)
2698
2712
  e = t.indexOf(i);
2699
2713
  else
@@ -2721,7 +2735,7 @@ var kr = function(i, t, e) {
2721
2735
  r._redraw();
2722
2736
  });
2723
2737
  var s = e.markers;
2724
- Ar(s) && this.addMarkers(s);
2738
+ Dr(s) && this.addMarkers(s);
2725
2739
  }
2726
2740
  };
2727
2741
  x.prototype.addMarkers = function(i) {
@@ -2732,7 +2746,7 @@ x.prototype.addMarkers = function(i) {
2732
2746
  }
2733
2747
  };
2734
2748
  x.prototype._pushMarkerTo = function(i) {
2735
- var t = Dr(i, this._markers);
2749
+ var t = Rr(i, this._markers);
2736
2750
  t === -1 && (i.isInCluster = !1, this._markers.push(i));
2737
2751
  };
2738
2752
  x.prototype.addMarker = function(i) {
@@ -2741,7 +2755,7 @@ x.prototype.addMarker = function(i) {
2741
2755
  x.prototype._createClusters = function() {
2742
2756
  var i = this._map.getBounds();
2743
2757
  if (i.getCenter()) {
2744
- for (var t = kr(this._map, i, this._gridSize), e = 0, r; r = this._markers[e]; e++)
2758
+ for (var t = Ar(this._map, i, this._gridSize), e = 0, r; r = this._markers[e]; e++)
2745
2759
  !r.isInCluster && t.containsPoint(r.getPosition()) && this._addToClosestCluster(r);
2746
2760
  for (var s = this._markers.length, e = 0; e < s; e++)
2747
2761
  this._clusters[e] && this._clusters[e].render();
@@ -2781,7 +2795,7 @@ x.prototype._removeMarkersFromMap = function() {
2781
2795
  }
2782
2796
  };
2783
2797
  x.prototype._removeMarker = function(i) {
2784
- var t = Dr(i, this._markers);
2798
+ var t = Rr(i, this._markers);
2785
2799
  return t === -1 ? !1 : (this._map.removeOverlay(i), this._markers.splice(t, 1), !0);
2786
2800
  };
2787
2801
  x.prototype.removeMarker = function(i) {
@@ -2857,7 +2871,7 @@ x.prototype.setStylesIndexCalculator = function(i) {
2857
2871
  };
2858
2872
  function Y(i) {
2859
2873
  var t = this;
2860
- this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new hr(this._center, this._markers.length, {
2874
+ this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new cr(this._center, this._markers.length, {
2861
2875
  styles: this._markerClusterer.getStyles(),
2862
2876
  zIndex: i._zIndex
2863
2877
  }), this._clusterMarker.getStyleByText = function(e, r) {
@@ -2865,7 +2879,7 @@ function Y(i) {
2865
2879
  var s = t._markerClusterer._stylesIndexCalculator(t._markers, r.length);
2866
2880
  return r[s];
2867
2881
  }
2868
- return hr.prototype.getStyleByText.call(this, e, r);
2882
+ return cr.prototype.getStyleByText.call(this, e, r);
2869
2883
  }, this._clusterMarker.addEventListener && this._clusterMarker.addEventListener("click", function(e) {
2870
2884
  t._map.setViewport(t.getBounds());
2871
2885
  });
@@ -2905,7 +2919,7 @@ Y.prototype.isReal = function(i) {
2905
2919
  };
2906
2920
  Y.prototype.updateGridBounds = function() {
2907
2921
  var i = new BMap.Bounds(this._center, this._center);
2908
- this._gridBounds = kr(this._map, i, this._markerClusterer.getGridSize());
2922
+ this._gridBounds = Ar(this._map, i, this._markerClusterer.getGridSize());
2909
2923
  };
2910
2924
  Y.prototype.updateClusterMarker = function() {
2911
2925
  if (this._map.getZoom() > this._markerClusterer.getMaxZoom()) {
@@ -2935,7 +2949,7 @@ Y.prototype.getBounds = function() {
2935
2949
  Y.prototype.getCenter = function() {
2936
2950
  return this._center;
2937
2951
  };
2938
- var Je;
2952
+ var Xe;
2939
2953
  ((i) => {
2940
2954
  function t(r) {
2941
2955
  return {
@@ -2960,8 +2974,8 @@ var Je;
2960
2974
  };
2961
2975
  }
2962
2976
  i.toGoogle = e;
2963
- })(Je || (Je = {}));
2964
- class Rr {
2977
+ })(Xe || (Xe = {}));
2978
+ class $r {
2965
2979
  constructor(t) {
2966
2980
  this.map = t;
2967
2981
  }
@@ -2986,7 +3000,7 @@ class Rr {
2986
3000
  return this.inner.removeMarkers(t.map((e) => e.innerOverlay));
2987
3001
  }
2988
3002
  }
2989
- class Li extends Rr {
3003
+ class Bi extends $r {
2990
3004
  constructor(e, r) {
2991
3005
  var n;
2992
3006
  super(e);
@@ -2998,7 +3012,7 @@ class Li extends Rr {
2998
3012
  maxZoom: r.maxZoom,
2999
3013
  minClusterSize: r.minClusterSize,
3000
3014
  isAverageCenter: r.averageCenter,
3001
- styles: (n = r.styles) == null ? void 0 : n.map((a) => Je.toBaidu(a)),
3015
+ styles: (n = r.styles) == null ? void 0 : n.map((a) => Xe.toBaidu(a)),
3002
3016
  zIndex: r.zIndex
3003
3017
  });
3004
3018
  const s = r.stylesIndexCalculator;
@@ -3008,12 +3022,12 @@ class Li extends Rr {
3008
3022
  this.inner._redraw();
3009
3023
  }
3010
3024
  }
3011
- class Bi extends Rr {
3025
+ class Ii extends $r {
3012
3026
  constructor(e, r) {
3013
3027
  var n, a;
3014
3028
  super(e);
3015
3029
  m(this, "inner");
3016
- this.inner = new wi(
3030
+ this.inner = new xi(
3017
3031
  e.innerMap,
3018
3032
  // google的构造器中的markers,不会触发重绘, 第一次绘制通过监听地图的'idle'事件触发, 可以直接设置
3019
3033
  (n = r.markers) == null ? void 0 : n.map((c) => c.innerOverlay),
@@ -3022,7 +3036,7 @@ class Bi extends Rr {
3022
3036
  maxZoom: r.maxZoom,
3023
3037
  minimumClusterSize: r.minClusterSize,
3024
3038
  averageCenter: r.averageCenter,
3025
- styles: (a = r.styles) == null ? void 0 : a.map((c) => Je.toGoogle(c)),
3039
+ styles: (a = r.styles) == null ? void 0 : a.map((c) => Xe.toGoogle(c)),
3026
3040
  zIndex: r.zIndex
3027
3041
  }
3028
3042
  );
@@ -3037,11 +3051,11 @@ class Bi extends Rr {
3037
3051
  this.inner.repaint();
3038
3052
  }
3039
3053
  }
3040
- class $r {
3054
+ class zr {
3041
3055
  constructor() {
3042
3056
  }
3043
3057
  }
3044
- class Ii extends $r {
3058
+ class Si extends zr {
3045
3059
  constructor(e, r) {
3046
3060
  super();
3047
3061
  m(this, "inner");
@@ -3075,7 +3089,7 @@ class Ii extends $r {
3075
3089
  switch (c) {
3076
3090
  case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:
3077
3091
  case google.maps.places.PlacesServiceStatus.OK: {
3078
- const o = (a ?? []).map((h) => xr(h, this.map));
3092
+ const o = (a ?? []).map((h) => Er(h, this.map));
3079
3093
  s(o);
3080
3094
  break;
3081
3095
  }
@@ -3087,7 +3101,7 @@ class Ii extends $r {
3087
3101
  });
3088
3102
  }
3089
3103
  }
3090
- class Si extends $r {
3104
+ class ki extends zr {
3091
3105
  constructor(e, r) {
3092
3106
  super();
3093
3107
  m(this, "searchRequestMap", /* @__PURE__ */ new Map());
@@ -3153,7 +3167,7 @@ class Si extends $r {
3153
3167
  });
3154
3168
  }
3155
3169
  }
3156
- class zr {
3170
+ class Nr {
3157
3171
  constructor(t, e) {
3158
3172
  m(this, "onData");
3159
3173
  m(this, "onError");
@@ -3168,23 +3182,23 @@ class zr {
3168
3182
  return this.onData && B("setSearchListener只能调用一次"), this.onData = t, this.onError = e, De;
3169
3183
  }
3170
3184
  }
3171
- class ki extends zr {
3185
+ class Ai extends Nr {
3172
3186
  constructor(e, r) {
3173
3187
  super(e, r.input);
3174
3188
  m(this, "searchBox");
3175
3189
  this.searchBox = new google.maps.places.SearchBox(r.input), this.searchBox.bindTo("bounds", e.innerMap);
3176
3190
  }
3177
3191
  setSearchListener(e, r) {
3178
- return super.setSearchListener(e, r), _r(this.searchBox, "places_changed", () => {
3192
+ return super.setSearchListener(e, r), br(this.searchBox, "places_changed", () => {
3179
3193
  const s = this.searchBox.getPlaces();
3180
- e((s ?? []).map((n) => xr(n, this.map)));
3194
+ e((s ?? []).map((n) => Er(n, this.map)));
3181
3195
  });
3182
3196
  }
3183
3197
  search() {
3184
3198
  this.input.value && (google.maps.event.trigger(this.input, "focus", {}), google.maps.event.trigger(this.input, "keydown", { keyCode: 13 }));
3185
3199
  }
3186
3200
  }
3187
- class Ai extends zr {
3201
+ class Di extends Nr {
3188
3202
  constructor(e, r) {
3189
3203
  super(e, r.input);
3190
3204
  m(this, "autocomplete");
@@ -3203,7 +3217,7 @@ class Ai extends zr {
3203
3217
  this.placesService.search(e).then(this.onData, this.onError);
3204
3218
  }
3205
3219
  }
3206
- var Di = /* @__PURE__ */ ((i) => (i[i.WORLD = 1] = "WORLD", i[i.STATE = 5] = "STATE", i[i.CITY = 10] = "CITY", i[i.STREET = 15] = "STREET", i[i.BUILDING = 20] = "BUILDING", i))(Di || {});
3220
+ var Ri = /* @__PURE__ */ ((i) => (i[i.WORLD = 1] = "WORLD", i[i.STATE = 5] = "STATE", i[i.CITY = 10] = "CITY", i[i.STREET = 15] = "STREET", i[i.BUILDING = 20] = "BUILDING", i))(Ri || {});
3207
3221
  class Nt {
3208
3222
  constructor(t) {
3209
3223
  m(this, "latestInfoWindow");
@@ -3251,67 +3265,67 @@ class Nt {
3251
3265
  this.innerMap.setZoom(t);
3252
3266
  }
3253
3267
  }
3254
- var Ri = function(t) {
3255
- return $i(t) && !zi(t);
3268
+ var $i = function(t) {
3269
+ return zi(t) && !Ni(t);
3256
3270
  };
3257
- function $i(i) {
3271
+ function zi(i) {
3258
3272
  return !!i && typeof i == "object";
3259
3273
  }
3260
- function zi(i) {
3274
+ function Ni(i) {
3261
3275
  var t = Object.prototype.toString.call(i);
3262
- return t === "[object RegExp]" || t === "[object Date]" || Zi(i);
3263
- }
3264
- var Ni = typeof Symbol == "function" && Symbol.for, Gi = Ni ? Symbol.for("react.element") : 60103;
3265
- function Zi(i) {
3266
- return i.$$typeof === Gi;
3276
+ return t === "[object RegExp]" || t === "[object Date]" || Wi(i);
3267
3277
  }
3278
+ var Gi = typeof Symbol == "function" && Symbol.for, Zi = Gi ? Symbol.for("react.element") : 60103;
3268
3279
  function Wi(i) {
3280
+ return i.$$typeof === Zi;
3281
+ }
3282
+ function Hi(i) {
3269
3283
  return Array.isArray(i) ? [] : {};
3270
3284
  }
3271
3285
  function $e(i, t) {
3272
- return t.clone !== !1 && t.isMergeableObject(i) ? _e(Wi(i), i, t) : i;
3286
+ return t.clone !== !1 && t.isMergeableObject(i) ? _e(Hi(i), i, t) : i;
3273
3287
  }
3274
- function Hi(i, t, e) {
3288
+ function Vi(i, t, e) {
3275
3289
  return i.concat(t).map(function(r) {
3276
3290
  return $e(r, e);
3277
3291
  });
3278
3292
  }
3279
- function Vi(i, t) {
3293
+ function ji(i, t) {
3280
3294
  if (!t.customMerge)
3281
3295
  return _e;
3282
3296
  var e = t.customMerge(i);
3283
3297
  return typeof e == "function" ? e : _e;
3284
3298
  }
3285
- function ji(i) {
3299
+ function Fi(i) {
3286
3300
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(i).filter(function(t) {
3287
3301
  return Object.propertyIsEnumerable.call(i, t);
3288
3302
  }) : [];
3289
3303
  }
3290
- function cr(i) {
3291
- return Object.keys(i).concat(ji(i));
3304
+ function dr(i) {
3305
+ return Object.keys(i).concat(Fi(i));
3292
3306
  }
3293
- function Nr(i, t) {
3307
+ function Gr(i, t) {
3294
3308
  try {
3295
3309
  return t in i;
3296
3310
  } catch {
3297
3311
  return !1;
3298
3312
  }
3299
3313
  }
3300
- function Fi(i, t) {
3301
- return Nr(i, t) && !(Object.hasOwnProperty.call(i, t) && Object.propertyIsEnumerable.call(i, t));
3314
+ function Ui(i, t) {
3315
+ return Gr(i, t) && !(Object.hasOwnProperty.call(i, t) && Object.propertyIsEnumerable.call(i, t));
3302
3316
  }
3303
- function Ui(i, t, e) {
3317
+ function Yi(i, t, e) {
3304
3318
  var r = {};
3305
- return e.isMergeableObject(i) && cr(i).forEach(function(s) {
3319
+ return e.isMergeableObject(i) && dr(i).forEach(function(s) {
3306
3320
  r[s] = $e(i[s], e);
3307
- }), cr(t).forEach(function(s) {
3308
- Fi(i, s) || (Nr(i, s) && e.isMergeableObject(t[s]) ? r[s] = Vi(s, e)(i[s], t[s], e) : r[s] = $e(t[s], e));
3321
+ }), dr(t).forEach(function(s) {
3322
+ Ui(i, s) || (Gr(i, s) && e.isMergeableObject(t[s]) ? r[s] = ji(s, e)(i[s], t[s], e) : r[s] = $e(t[s], e));
3309
3323
  }), r;
3310
3324
  }
3311
3325
  function _e(i, t, e) {
3312
- e = e || {}, e.arrayMerge = e.arrayMerge || Hi, e.isMergeableObject = e.isMergeableObject || Ri, e.cloneUnlessOtherwiseSpecified = $e;
3326
+ e = e || {}, e.arrayMerge = e.arrayMerge || Vi, e.isMergeableObject = e.isMergeableObject || $i, e.cloneUnlessOtherwiseSpecified = $e;
3313
3327
  var r = Array.isArray(t), s = Array.isArray(i), n = r === s;
3314
- return n ? r ? e.arrayMerge(i, t, e) : Ui(i, t, e) : $e(t, e);
3328
+ return n ? r ? e.arrayMerge(i, t, e) : Yi(i, t, e) : $e(t, e);
3315
3329
  }
3316
3330
  _e.all = function(t, e) {
3317
3331
  if (!Array.isArray(t))
@@ -3320,15 +3334,15 @@ _e.all = function(t, e) {
3320
3334
  return _e(r, s, e);
3321
3335
  }, {});
3322
3336
  };
3323
- var Yi = _e, qi = Yi;
3324
- const Gr = /* @__PURE__ */ ot(qi);
3337
+ var qi = _e, Ki = qi;
3338
+ const Zr = /* @__PURE__ */ nt(Ki);
3325
3339
  /*!
3326
3340
  * isobject <https://github.com/jonschlinkert/isobject>
3327
3341
  *
3328
3342
  * Copyright (c) 2014-2017, Jon Schlinkert.
3329
3343
  * Released under the MIT License.
3330
3344
  */
3331
- function Ki(i) {
3345
+ function Xi(i) {
3332
3346
  return i != null && typeof i == "object" && Array.isArray(i) === !1;
3333
3347
  }
3334
3348
  /*!
@@ -3337,12 +3351,12 @@ function Ki(i) {
3337
3351
  * Copyright (c) 2014-2017, Jon Schlinkert.
3338
3352
  * Released under the MIT License.
3339
3353
  */
3340
- function dr(i) {
3341
- return Ki(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
3354
+ function ur(i) {
3355
+ return Xi(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
3342
3356
  }
3343
- function Zr(i) {
3357
+ function Wr(i) {
3344
3358
  var t, e;
3345
- return !(dr(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, dr(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
3359
+ return !(ur(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, ur(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
3346
3360
  }
3347
3361
  var le;
3348
3362
  ((i) => {
@@ -3359,7 +3373,7 @@ var le;
3359
3373
  }
3360
3374
  i.toJsonSafely = r;
3361
3375
  function s(d) {
3362
- Zr(d) && Object.keys(d).forEach((p) => {
3376
+ Wr(d) && Object.keys(d).forEach((p) => {
3363
3377
  d[p] === void 0 ? delete d[p] : s(d[p]);
3364
3378
  });
3365
3379
  }
@@ -3370,14 +3384,14 @@ var le;
3370
3384
  }
3371
3385
  i.putIfAbsent = n;
3372
3386
  function a(d, ...p) {
3373
- const g = ur(p), f = {};
3387
+ const g = pr(p), f = {};
3374
3388
  for (const T in d)
3375
3389
  g(T) || (f[T] = d[T]);
3376
3390
  return f;
3377
3391
  }
3378
3392
  i.omit = a;
3379
3393
  function c(d, ...p) {
3380
- const g = ur(p), f = {};
3394
+ const g = pr(p), f = {};
3381
3395
  for (const T in d)
3382
3396
  g(T) && (f[T] = d[T]);
3383
3397
  return f;
@@ -3400,7 +3414,7 @@ var le;
3400
3414
  }
3401
3415
  i.del = h;
3402
3416
  })(le || (le = {}));
3403
- function ur(i) {
3417
+ function pr(i) {
3404
3418
  if (i.length <= 4)
3405
3419
  return i.includes.bind(i);
3406
3420
  {
@@ -3409,19 +3423,19 @@ function ur(i) {
3409
3423
  }
3410
3424
  }
3411
3425
  le.toJsonSafely;
3412
- const Xi = ["single", "multi"];
3426
+ const Ji = ["single", "multi"];
3413
3427
  var ee = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(ee || {}), Ct;
3414
3428
  ((i) => {
3415
3429
  function t(e) {
3416
3430
  le.deleteUndefinedPropertyOnPlainObjectDeeply(e);
3417
3431
  const r = { center: O.ZERO, zoom: 5 };
3418
- return Gr(r, e || {}, {
3419
- isMergeableObject: Zr
3432
+ return Zr(r, e || {}, {
3433
+ isMergeableObject: Wr
3420
3434
  });
3421
3435
  }
3422
3436
  i.create = t;
3423
3437
  })(Ct || (Ct = {}));
3424
- class Wr {
3438
+ class Hr {
3425
3439
  constructor(t, e) {
3426
3440
  m(this, "_delegate");
3427
3441
  this.innerOverlay = t, this.coordType = e;
@@ -3439,7 +3453,7 @@ class Wr {
3439
3453
  this.map.removeOverlay(this);
3440
3454
  }
3441
3455
  }
3442
- class Gt extends Wr {
3456
+ class Gt extends Hr {
3443
3457
  constructor(t, e, r) {
3444
3458
  super(t, e), this.map = r;
3445
3459
  }
@@ -3453,7 +3467,7 @@ class Gt extends Wr {
3453
3467
  this.innerOverlay.setVisible(t);
3454
3468
  }
3455
3469
  }
3456
- class ht extends Wr {
3470
+ class lt extends Hr {
3457
3471
  constructor(t, e, r) {
3458
3472
  super(t, e), this.map = r;
3459
3473
  }
@@ -3475,7 +3489,7 @@ class ht extends Wr {
3475
3489
  return t !== void 0 && (t || this.setVisible(!1)), this;
3476
3490
  }
3477
3491
  }
3478
- const ke = class ke extends ht {
3492
+ const ke = class ke extends lt {
3479
3493
  constructor(t, e, r, s) {
3480
3494
  super(t, e, r), this.state = s;
3481
3495
  }
@@ -3509,7 +3523,7 @@ const ke = class ke extends ht {
3509
3523
  */
3510
3524
  m(ke, "OPACITY_DELTA", 1e-3);
3511
3525
  let j = ke;
3512
- class ct extends Gt {
3526
+ class ht extends Gt {
3513
3527
  isEditable() {
3514
3528
  return this.innerOverlay.getEditable();
3515
3529
  }
@@ -3569,7 +3583,7 @@ class Zt extends j {
3569
3583
  }, 0), n;
3570
3584
  }
3571
3585
  createDelegate() {
3572
- return this.eventHubDelegate = new at(super.createDelegate(), {
3586
+ return this.eventHubDelegate = new ot(super.createDelegate(), {
3573
3587
  types: ["radius-changed", "center-changed"],
3574
3588
  onListen: (e) => {
3575
3589
  e === "radius-changed" ? (this.prevRadius = this.innerOverlay.getRadius(), this.innerOverlay.addEventListener("lineupdate", this.onRadiusChanged)) : (this.prevCenter = this.innerOverlay.getCenter(), this.innerOverlay.addEventListener("lineupdate", this.onCenterChanged));
@@ -3594,7 +3608,7 @@ class Zt extends j {
3594
3608
  return this.innerOverlay.getRadius();
3595
3609
  }
3596
3610
  }
3597
- class Wt extends ct {
3611
+ class Wt extends ht {
3598
3612
  static create(t) {
3599
3613
  const e = this.coordType, r = new google.maps.Circle({
3600
3614
  center: t.center.toGoogle(e),
@@ -3623,25 +3637,16 @@ class Wt extends ct {
3623
3637
  return this.innerOverlay.getRadius();
3624
3638
  }
3625
3639
  }
3626
- function Hr() {
3627
- BMap.OverlayV3 || (BMap.OverlayV3 = BMap.Overlay);
3628
- }
3629
- const pr = {
3630
- /** {@link BMap.Point.equals} 无效, 故需要自己写一个 */
3631
- equals(i, t) {
3632
- return i.lat === t.lat && i.lng === t.lng;
3633
- }
3634
- };
3635
3640
  var oe;
3636
3641
  ((i) => {
3637
3642
  i.ZERO = { x: 0, y: 0 };
3638
3643
  })(oe || (oe = {}));
3639
3644
  let gt;
3640
- function Ji(i, t, e, r, s, n) {
3641
- return gt || (gt = Qi()), new gt(i, t, e, r, s, n);
3645
+ function Qi(i, t, e, r, s, n) {
3646
+ return gt || (gt = es()), new gt(i, t, e, r, s, n);
3642
3647
  }
3643
- function Qi() {
3644
- Hr();
3648
+ function es() {
3649
+ _r();
3645
3650
  const i = new BMap.Point(0, 0);
3646
3651
  return class extends BMap.OverlayV3 {
3647
3652
  constructor(r, s = i, n = oe.ZERO, a, c = 654, o = "") {
@@ -3752,7 +3757,7 @@ class Vt extends Ht {
3752
3757
  class jt extends Ht {
3753
3758
  constructor(e, r) {
3754
3759
  super(new ye(e, r));
3755
- m(this, "eventHub", new Tr());
3760
+ m(this, "eventHub", new Mr());
3756
3761
  m(this, "isOpened", !1);
3757
3762
  this.inner = e, this.map = r, e.addListener("closeclick", () => {
3758
3763
  this.isOpened = !1, this.eventHub.hasListener("close") && this.eventHub.notify({ type: "close", target: this });
@@ -3807,13 +3812,13 @@ class jt extends Ht {
3807
3812
  this.inner.setPosition(e.toGoogle(this.map.coordType));
3808
3813
  }
3809
3814
  }
3810
- class Ft extends ht {
3815
+ class Ft extends lt {
3811
3816
  constructor(t, e, r) {
3812
3817
  super(t, e, r), this.baiduMap = r;
3813
3818
  }
3814
3819
  static create(t) {
3815
3820
  var s;
3816
- const e = this.coordType, r = Ji(
3821
+ const e = this.coordType, r = Qi(
3817
3822
  t.content,
3818
3823
  (s = t.position) == null ? void 0 : s.toBaidu(e),
3819
3824
  t.offset,
@@ -3909,7 +3914,7 @@ var be;
3909
3914
  }
3910
3915
  i.isInt = s;
3911
3916
  })(be || (be = {}));
3912
- const es = {
3917
+ const ts = {
3913
3918
  /** @see https://nodejs.org/docs/v10.3.0/api/path.html#path_path_basename_path_ext */
3914
3919
  basename(i, t) {
3915
3920
  const e = i.endsWith("/") ? i.slice(0, -1) : i, r = e.lastIndexOf("/"), s = r >= 0 ? e.substring(r + 1) : e;
@@ -3949,7 +3954,7 @@ var ze = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
3949
3954
  }
3950
3955
  i.toBaidu = e;
3951
3956
  })(Ne || (Ne = {}));
3952
- class ts {
3957
+ class rs {
3953
3958
  constructor(t, e) {
3954
3959
  m(this, "baidu");
3955
3960
  m(this, "google");
@@ -3970,7 +3975,7 @@ class ts {
3970
3975
  asBaidu() {
3971
3976
  if (!this.baidu) {
3972
3977
  const t = this;
3973
- Hr();
3978
+ _r();
3974
3979
  class e extends BMap.OverlayV3 {
3975
3980
  initialize(n) {
3976
3981
  var o;
@@ -4023,10 +4028,10 @@ class ts {
4023
4028
  }
4024
4029
  }
4025
4030
  let mt;
4026
- function rs(i, t, e, r, s) {
4027
- return mt || (mt = is()), new mt(i, t, e, r, s);
4031
+ function is(i, t, e, r, s) {
4032
+ return mt || (mt = ss()), new mt(i, t, e, r, s);
4028
4033
  }
4029
- function is() {
4034
+ function ss() {
4030
4035
  return class extends google.maps.OverlayView {
4031
4036
  constructor(e, r, s, n = ze.overlayMouseTarget, a) {
4032
4037
  super();
@@ -4095,7 +4100,7 @@ var Te;
4095
4100
  }
4096
4101
  i.toElement = e;
4097
4102
  })(Te || (Te = {}));
4098
- class Yt extends ht {
4103
+ class Yt extends lt {
4099
4104
  constructor(e, r, s, n) {
4100
4105
  super(e, r, s);
4101
4106
  m(this, "icon");
@@ -4198,7 +4203,7 @@ class Yt extends ht {
4198
4203
  class qt extends Gt {
4199
4204
  static create(t) {
4200
4205
  var s;
4201
- const e = this.coordType, r = rs(
4206
+ const e = this.coordType, r = is(
4202
4207
  Te.toElement(t.content),
4203
4208
  (s = t.position) == null ? void 0 : s.toGoogle(e),
4204
4209
  t.offset,
@@ -4227,11 +4232,11 @@ class qt extends Gt {
4227
4232
  this.innerOverlay.setOffset(t);
4228
4233
  }
4229
4234
  }
4230
- const Qe = {
4231
- toGoogle: (i) => "url" in i ? et.toGoogle(i) : Me.toGoogle(i),
4232
- toBaidu: (i) => "url" in i ? et.toBaidu(i) : Me.toBaidu(i)
4235
+ const Je = {
4236
+ toGoogle: (i) => "url" in i ? Qe.toGoogle(i) : Me.toGoogle(i),
4237
+ toBaidu: (i) => "url" in i ? Qe.toBaidu(i) : Me.toBaidu(i)
4233
4238
  };
4234
- var et;
4239
+ var Qe;
4235
4240
  ((i) => {
4236
4241
  function t(r) {
4237
4242
  return {
@@ -4255,7 +4260,7 @@ var et;
4255
4260
  });
4256
4261
  }
4257
4262
  i.toBaidu = e;
4258
- })(et || (et = {}));
4263
+ })(Qe || (Qe = {}));
4259
4264
  var Me;
4260
4265
  ((i) => {
4261
4266
  function t(r) {
@@ -4288,14 +4293,14 @@ var Me;
4288
4293
  }
4289
4294
  i.toBaidu = e;
4290
4295
  })(Me || (Me = {}));
4291
- const _n = {
4296
+ const bn = {
4292
4297
  CIRCLE: { baidu: () => BMap_Symbol_SHAPE_CIRCLE, google: () => google.maps.SymbolPath.CIRCLE },
4293
4298
  BACKWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.BACKWARD_CLOSED_ARROW },
4294
4299
  BACKWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.BACKWARD_OPEN_ARROW },
4295
4300
  FORWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.FORWARD_CLOSED_ARROW },
4296
4301
  FORWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.FORWARD_OPEN_ARROW }
4297
4302
  };
4298
- var tt;
4303
+ var et;
4299
4304
  ((i) => {
4300
4305
  function t(r) {
4301
4306
  return {
@@ -4315,15 +4320,15 @@ var tt;
4315
4320
  );
4316
4321
  }
4317
4322
  i.toBaidu = e;
4318
- })(tt || (tt = {}));
4319
- class Ge extends ht {
4323
+ })(et || (et = {}));
4324
+ class Ge extends lt {
4320
4325
  constructor(t, e, r, s) {
4321
4326
  super(t, e, r), this.state = s;
4322
4327
  }
4323
4328
  static create(t) {
4324
4329
  const e = this.coordType, r = t.icon, s = {
4325
4330
  title: t.title,
4326
- icon: r && Qe.toBaidu(r),
4331
+ icon: r && Je.toBaidu(r),
4327
4332
  enableClicking: t.clickable,
4328
4333
  enableDragging: t.draggable,
4329
4334
  // baidu的raiseOnDrag属性, 默认为false, 而我们的options.crossOnDrag默认为true, 故这里需要转换下
@@ -4348,7 +4353,7 @@ class Ge extends ht {
4348
4353
  return this.innerOverlay.getTitle();
4349
4354
  }
4350
4355
  setIcon(t) {
4351
- const e = Qe.toBaidu(t);
4356
+ const e = Je.toBaidu(t);
4352
4357
  this.innerOverlay.setIcon(e);
4353
4358
  const r = this.getLabel();
4354
4359
  r && r.attachIcon(e);
@@ -4397,7 +4402,7 @@ class Kt extends Gt {
4397
4402
  title: e.title,
4398
4403
  zIndex: e.zIndex,
4399
4404
  visible: e.visible,
4400
- icon: s && Qe.toGoogle(s),
4405
+ icon: s && Je.toGoogle(s),
4401
4406
  clickable: e.clickable,
4402
4407
  draggable: e.draggable,
4403
4408
  // google的crossOnDrag和我们的crossOnDrag是匹配的, 不需要转换
@@ -4421,7 +4426,7 @@ class Kt extends Gt {
4421
4426
  return this.innerOverlay.getTitle() || "";
4422
4427
  }
4423
4428
  setIcon(e) {
4424
- this.innerOverlay.setIcon(Qe.toGoogle(e));
4429
+ this.innerOverlay.setIcon(Je.toGoogle(e));
4425
4430
  }
4426
4431
  getIcon() {
4427
4432
  return this.innerOverlay.getIcon();
@@ -4484,7 +4489,7 @@ class Xt extends j {
4484
4489
  this.isDoingSetPath = !0, this.innerOverlay.setPath(e), this.isDoingSetPath = !1;
4485
4490
  }
4486
4491
  createDelegate() {
4487
- return this.eventHubDelegate = new at(super.createDelegate(), {
4492
+ return this.eventHubDelegate = new ot(super.createDelegate(), {
4488
4493
  types: [this.pathEditedEventType],
4489
4494
  onListen: () => {
4490
4495
  this.prevPath = this.innerOverlay.getPath(), this.innerOverlay.addEventListener("lineupdate", this.onLineUpdate);
@@ -4508,7 +4513,7 @@ class Jt extends Xt {
4508
4513
  strokeColor: e.strokeColor,
4509
4514
  strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + j.OPACITY_DELTA : void 0,
4510
4515
  strokeWeight: e.strokeWeight,
4511
- icons: (n = e.icons) == null ? void 0 : n.map(tt.toBaidu)
4516
+ icons: (n = e.icons) == null ? void 0 : n.map(et.toBaidu)
4512
4517
  });
4513
4518
  return new Jt(s, r, this, {
4514
4519
  editable: !!e.editable,
@@ -4538,7 +4543,7 @@ class Jt extends Xt {
4538
4543
  }).forEach((s) => this.map.innerMap.removeOverlay(s));
4539
4544
  }
4540
4545
  }
4541
- class Qt extends ct {
4546
+ class Qt extends ht {
4542
4547
  constructor() {
4543
4548
  super(...arguments);
4544
4549
  m(this, "pathChangedListeners");
@@ -4554,7 +4559,7 @@ class Qt extends ct {
4554
4559
  strokeOpacity: e.strokeOpacity,
4555
4560
  strokeWeight: e.strokeWeight,
4556
4561
  visible: e.visible,
4557
- icons: (n = e.icons) == null ? void 0 : n.map(tt.toGoogle)
4562
+ icons: (n = e.icons) == null ? void 0 : n.map(et.toGoogle)
4558
4563
  });
4559
4564
  return new Qt(s, r, this);
4560
4565
  }
@@ -4570,7 +4575,7 @@ class Qt extends ct {
4570
4575
  (e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
4571
4576
  }
4572
4577
  createDelegate() {
4573
- return this.eventHubDelegate = new at(super.createDelegate(), {
4578
+ return this.eventHubDelegate = new ot(super.createDelegate(), {
4574
4579
  types: ["path-edited"],
4575
4580
  onListen: () => this.setupPathChangedListeners(),
4576
4581
  onCancel: () => this.clearPathChangedListeners()
@@ -4613,7 +4618,7 @@ class er extends Xt {
4613
4618
  e.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]"), this.coordType = this.map.coordType, this.setPathInternal((e[0] || []).map((r) => r.toBaidu(this.coordType)));
4614
4619
  }
4615
4620
  }
4616
- class tr extends ct {
4621
+ class tr extends ht {
4617
4622
  constructor() {
4618
4623
  super(...arguments);
4619
4624
  m(this, "pathChangedListeners");
@@ -4647,7 +4652,7 @@ class tr extends ct {
4647
4652
  (e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
4648
4653
  }
4649
4654
  createDelegate() {
4650
- return this.eventHubDelegate = new at(super.createDelegate(), {
4655
+ return this.eventHubDelegate = new ot(super.createDelegate(), {
4651
4656
  types: ["paths-edited"],
4652
4657
  onListen: () => this.setupPathChangedListeners(),
4653
4658
  onCancel: () => this.clearPathChangedListeners()
@@ -4682,7 +4687,7 @@ class rr extends Xt {
4682
4687
  if (r.length === 4)
4683
4688
  if (a > r.length) {
4684
4689
  for (let o = 0; o < a; o++)
4685
- if (r[o] == null || !pr.equals(s[o], r[o])) {
4690
+ if (r[o] == null || !or.equals(s[o], r[o])) {
4686
4691
  const h = s[(o - 2 + a) % a], d = s[(o - 1 + a) % a], p = s[o], g = s[(o + 1) % a], f = s[(o + 2) % a];
4687
4692
  let T;
4688
4693
  d.lat === g.lat ? T = new BMap.Point(d.lng, p.lat) : d.lng === g.lng ? T = new BMap.Point(p.lng, d.lat) : T = p, n = [h, f, T];
@@ -4690,7 +4695,7 @@ class rr extends Xt {
4690
4695
  }
4691
4696
  } else if (a === r.length) {
4692
4697
  for (let o = 0; o < a; o++)
4693
- if (!pr.equals(s[o], r[o])) {
4698
+ if (!or.equals(s[o], r[o])) {
4694
4699
  n = [
4695
4700
  s[o],
4696
4701
  s[(o + 2) % 4]
@@ -4727,7 +4732,7 @@ class rr extends Xt {
4727
4732
  }) : this.setPathInternal(r.map((s) => s.toBaidu(this.coordType)));
4728
4733
  }
4729
4734
  }
4730
- class ir extends ct {
4735
+ class ir extends ht {
4731
4736
  static create(t) {
4732
4737
  const e = this.coordType, r = new google.maps.Rectangle({
4733
4738
  bounds: t.bounds.toGoogle(e),
@@ -4751,7 +4756,7 @@ class ir extends ct {
4751
4756
  }
4752
4757
  }
4753
4758
  const de = 1;
4754
- class ss extends Nt {
4759
+ class ns extends Nt {
4755
4760
  constructor(e, r) {
4756
4761
  var s;
4757
4762
  super(e);
@@ -4770,7 +4775,7 @@ class ss extends Nt {
4770
4775
  m(this, "createZoomControl", Rt.create);
4771
4776
  m(this, "createStreetViewControl", At.create);
4772
4777
  m(this, "createScaleControl", St.create);
4773
- this.buildInMapTypeId2BIMT = V.BUILD_IN_MAP_TYPES.getValueMap(W.prototype.getId), this.baiduMapType2BIMT = V.BUILD_IN_MAP_TYPES.getValueMap(W.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
4778
+ this.buildInMapTypeId2BIMT = V.BUILD_IN_MAP_TYPES.getValueMap(W.prototype.getId), this.baiduMapType2BIMT = V.BUILD_IN_MAP_TYPES.getValueMap(W.prototype.asBaiduMapType), ci(), this.map = new BMap.Map(e, {
4774
4779
  minZoom: r.minZoom && r.minZoom + de,
4775
4780
  maxZoom: r.maxZoom && r.maxZoom + de,
4776
4781
  mapType: r.buildInMapTypeId && ((s = this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId)) == null ? void 0 : s.asBaiduMapType()),
@@ -4918,25 +4923,25 @@ class ss extends Nt {
4918
4923
  e.inner && (me(e.inner instanceof BMap.Control, `control.inner(${e.inner})需要是BMap.Control`), this.map.removeControl(e.inner));
4919
4924
  }
4920
4925
  createMarkerClusterer(e) {
4921
- return new Li(this, e);
4926
+ return new Bi(this, e);
4922
4927
  }
4923
4928
  createHeatmap(e) {
4924
- return new Ci(this, e);
4929
+ return new wi(this, e);
4925
4930
  }
4926
4931
  createAutocomplete(e) {
4927
- return new bi(this, e);
4932
+ return new Ti(this, e);
4928
4933
  }
4929
4934
  createSearchBox(e) {
4930
- return new Ai(this, e);
4935
+ return new Di(this, e);
4931
4936
  }
4932
4937
  createPlacesService(e) {
4933
- return new Si(this, e);
4938
+ return new ki(this, e);
4934
4939
  }
4935
4940
  createMapUrls(e) {
4936
4941
  return new Ot(e);
4937
4942
  }
4938
4943
  }
4939
- class ns extends Nt {
4944
+ class os extends Nt {
4940
4945
  constructor(e, r) {
4941
4946
  var n, a;
4942
4947
  super(e);
@@ -5086,25 +5091,25 @@ class ns extends Nt {
5086
5091
  }
5087
5092
  }
5088
5093
  createMarkerClusterer(e) {
5089
- return new Bi(this, e);
5094
+ return new Ii(this, e);
5090
5095
  }
5091
5096
  createHeatmap(e) {
5092
- return new Oi(this, e);
5097
+ return new Ci(this, e);
5093
5098
  }
5094
5099
  createAutocomplete(e) {
5095
- return new _i(this, e);
5100
+ return new bi(this, e);
5096
5101
  }
5097
5102
  createSearchBox(e) {
5098
- return new ki(this, e);
5103
+ return new Ai(this, e);
5099
5104
  }
5100
5105
  createPlacesService(e) {
5101
- return new Ii(this, e);
5106
+ return new Si(this, e);
5102
5107
  }
5103
5108
  createMapUrls(e) {
5104
5109
  return new Mt(e);
5105
5110
  }
5106
5111
  }
5107
- const rt = ["3.0"], os = {
5112
+ const tt = ["3.0"], as = {
5108
5113
  baidu: {
5109
5114
  version: "3.0",
5110
5115
  // 在build时会被静态替换, 导致使用者不能无法设置它
@@ -5119,7 +5124,7 @@ const rt = ["3.0"], os = {
5119
5124
  libraries: ["places", "visualization"]
5120
5125
  },
5121
5126
  here: {
5122
- version: rt[0],
5127
+ version: tt[0],
5123
5128
  key: ""
5124
5129
  }
5125
5130
  };
@@ -5127,10 +5132,10 @@ let Vr;
5127
5132
  function jr() {
5128
5133
  return Vr || B("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
5129
5134
  }
5130
- function as(i) {
5131
- i != null && (Vr = Gr(os, i));
5135
+ function ls(i) {
5136
+ i != null && (Vr = Zr(as, i));
5132
5137
  }
5133
- class ls extends Nt {
5138
+ class hs extends Nt {
5134
5139
  constructor(e, r) {
5135
5140
  var a;
5136
5141
  super(e);
@@ -5138,7 +5143,7 @@ class ls extends Nt {
5138
5143
  m(this, "defaultLayers");
5139
5144
  this.mapOptions = r;
5140
5145
  const s = jr().here;
5141
- rt.includes(s.version) || B(`不支持${s.version}, HereMap当前只支持如下版本: ${rt}`);
5146
+ tt.includes(s.version) || B(`不支持${s.version}, HereMap当前只支持如下版本: ${tt}`);
5142
5147
  const n = new H.service.Platform({
5143
5148
  app_id: s.key.split(",")[0],
5144
5149
  app_code: s.key.split(",")[1]
@@ -5152,7 +5157,7 @@ class ls extends Nt {
5152
5157
  return this.map;
5153
5158
  }
5154
5159
  get coordType() {
5155
- return R.wgs84;
5160
+ return D.wgs84;
5156
5161
  }
5157
5162
  getCenter() {
5158
5163
  return O.fromHere(this.map.getCenter(), this.coordType);
@@ -5294,27 +5299,27 @@ var q = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here
5294
5299
  const n = Ct.create(s);
5295
5300
  switch (e) {
5296
5301
  case "google":
5297
- return new ns(r, n);
5302
+ return new os(r, n);
5298
5303
  case "baidu":
5299
- return new ss(r, n);
5304
+ return new ns(r, n);
5300
5305
  case "here":
5301
- return new ls(r, n);
5306
+ return new hs(r, n);
5302
5307
  }
5303
5308
  }
5304
5309
  i.createMap = t;
5305
5310
  })(wt || (wt = {}));
5306
- var hs = { VITE_APP_DEV_KEY_BAIDU: "kXOq8Hg9BZbZEWAjXKuzd1oGreynup8h", VITE_APP_DEV_KEY_GOOGLE: "AIzaSyBcyzMel3dYFNcfcr0LOklbBQNpWycyZXo", VITE_APP_DEV_KEY_HERE: "", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
5307
- const cs = {};
5308
- function ds(i) {
5309
- return le.putIfAbsent(cs, i, () => hi(() => us({ type: i, config: jr()[i] })))();
5311
+ var cs = { VITE_APP_DEV_KEY_BAIDU: "kXOq8Hg9BZbZEWAjXKuzd1oGreynup8h", VITE_APP_DEV_KEY_GOOGLE: "AIzaSyBcyzMel3dYFNcfcr0LOklbBQNpWycyZXo", VITE_APP_DEV_KEY_HERE: "", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
5312
+ const ds = {};
5313
+ function us(i) {
5314
+ return le.putIfAbsent(ds, i, () => hi(() => ps({ type: i, config: jr()[i] })))();
5310
5315
  }
5311
- function us({ type: i, config: t }) {
5312
- const e = window, r = ps(i);
5316
+ function ps({ type: i, config: t }) {
5317
+ const e = window, r = gs(i);
5313
5318
  if (le.get(e, r))
5314
5319
  return Promise.resolve();
5315
5320
  switch (i !== q.here && !t.key && B(`请先配置${i}地图的key`), i) {
5316
5321
  case q.google:
5317
- return hs.VITE_FALSE ? (fi({
5322
+ return cs.VITE_FALSE ? (vi({
5318
5323
  key: t.key,
5319
5324
  v: "3.52"
5320
5325
  // v: config.version,
@@ -5333,10 +5338,10 @@ function us({ type: i, config: t }) {
5333
5338
  vt(i);
5334
5339
  }
5335
5340
  }
5336
- function we(i, t = rt[0]) {
5341
+ function we(i, t = tt[0]) {
5337
5342
  return `https://js.api.here.com/v3/${t}/mapsjs-${i}.js`;
5338
5343
  }
5339
- function ps(i) {
5344
+ function gs(i) {
5340
5345
  switch (i) {
5341
5346
  case q.google:
5342
5347
  return "google.maps";
@@ -5346,10 +5351,10 @@ function ps(i) {
5346
5351
  return "H";
5347
5352
  }
5348
5353
  }
5349
- let gs = 0;
5354
+ let ms = 0;
5350
5355
  function gr(i, t = "callback") {
5351
5356
  return new Promise((e, r) => {
5352
- const s = `__callback${gs++}`;
5357
+ const s = `__callback${ms++}`;
5353
5358
  window[s] = e;
5354
5359
  const n = document.createElement("script");
5355
5360
  n.src = `${i}&${t}=${s}`, n.onerror = r, document.body.appendChild(n);
@@ -5368,7 +5373,7 @@ function F(i, t) {
5368
5373
  validator: (e) => Object.values(i).includes(e)
5369
5374
  };
5370
5375
  }
5371
- function ms(i, t) {
5376
+ function fs(i, t) {
5372
5377
  return {
5373
5378
  type: String,
5374
5379
  default: t,
@@ -5387,7 +5392,7 @@ function b(i, t) {
5387
5392
  default: t
5388
5393
  };
5389
5394
  }
5390
- function bn(i) {
5395
+ function Tn(i) {
5391
5396
  const t = {};
5392
5397
  return Object.entries(i).forEach(([e, r]) => {
5393
5398
  const s = `__${e}`;
@@ -5410,31 +5415,31 @@ const Ee = {
5410
5415
  get: De,
5411
5416
  set: De
5412
5417
  };
5413
- function fs(i) {
5418
+ function vs(i) {
5414
5419
  return Object.keys(i).forEach((t) => {
5415
5420
  const e = i[t];
5416
5421
  let r = !1;
5417
5422
  typeof e == "function" ? (Ee.get = e, Ee.set = De, r = !0) : typeof e == "object" && typeof e.get == "function" && (Ee.get = e.get, Ee.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, Ee));
5418
5423
  }), i;
5419
5424
  }
5420
- function Tn(i) {
5421
- return fs(i);
5425
+ function Mn(i) {
5426
+ return vs(i);
5422
5427
  }
5423
- function dt() {
5428
+ function ct() {
5424
5429
  return ft();
5425
5430
  }
5426
- function Ye(i, t) {
5431
+ function Ue(i, t) {
5427
5432
  const e = i.$options[t];
5428
5433
  if (e)
5429
5434
  for (const r of e)
5430
5435
  r.call(i);
5431
5436
  }
5432
- function Mn(i, t) {
5437
+ function On(i, t) {
5433
5438
  for (const e of i)
5434
5439
  if (e.$options.name === t.name)
5435
5440
  return e;
5436
5441
  }
5437
- function On(i, t) {
5442
+ function Cn(i, t) {
5438
5443
  if (!i.default)
5439
5444
  return;
5440
5445
  const e = i.default();
@@ -5442,7 +5447,7 @@ function On(i, t) {
5442
5447
  if ((r == null ? void 0 : r.type).name === t.name)
5443
5448
  return r;
5444
5449
  }
5445
- function vs(i, t) {
5450
+ function ys(i, t) {
5446
5451
  const e = {}, r = {}, s = {};
5447
5452
  return Object.keys(i).forEach((n) => {
5448
5453
  n.startsWith("on") ? e[be.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
@@ -5458,12 +5463,12 @@ function vs(i, t) {
5458
5463
  };
5459
5464
  }
5460
5465
  function ie(i, t) {
5461
- return fr(() => vs(i, t));
5466
+ return fr(() => ys(i, t));
5462
5467
  }
5463
5468
  function k() {
5464
5469
  return Function;
5465
5470
  }
5466
- const Cn = () => {
5471
+ const wn = () => {
5467
5472
  let i, t;
5468
5473
  function e(s) {
5469
5474
  console.log(s), i = s && s.type, t = Date.now();
@@ -5475,20 +5480,20 @@ const Cn = () => {
5475
5480
  }, sr = "$map", Ze = "onCreate", We = "onDestroy", $ = P({
5476
5481
  inject: [sr],
5477
5482
  mounted() {
5478
- Ye(this, Ze);
5483
+ Ue(this, Ze);
5479
5484
  },
5480
5485
  beforeUnmount() {
5481
- Ye(this, We);
5486
+ Ue(this, We);
5482
5487
  },
5483
5488
  methods: {
5484
5489
  recreate() {
5485
- Ye(this, We), Ye(this, Ze);
5490
+ Ue(this, We), Ue(this, Ze);
5486
5491
  }
5487
5492
  },
5488
5493
  render() {
5489
- return dt();
5494
+ return ct();
5490
5495
  }
5491
- }), ys = P({
5496
+ }), _s = P({
5492
5497
  name: "tg-map",
5493
5498
  provide() {
5494
5499
  return {
@@ -5529,12 +5534,12 @@ const Cn = () => {
5529
5534
  * 该属性不会响应式更新, 要让它立即生效, 请参考{@link file://./../views/map/InfoDemo.vue#L3}
5530
5535
  * @see MapOptions.infoWindowMode
5531
5536
  */
5532
- infoWindowMode: ms(Xi),
5537
+ infoWindowMode: fs(Ji),
5533
5538
  gestureHandling: F(ee),
5534
5539
  minZoom: b(Number),
5535
5540
  maxZoom: b(Number),
5536
5541
  mapStyle: b(Object),
5537
- mapTypeId: F(Mr),
5542
+ mapTypeId: F(Or),
5538
5543
  /** 地图类型对象, 优先级比mapTypeId高 */
5539
5544
  mapType: b(Object),
5540
5545
  hideLogo: b(Boolean),
@@ -5595,7 +5600,7 @@ const Cn = () => {
5595
5600
  async mounted() {
5596
5601
  const i = this.type;
5597
5602
  try {
5598
- await ds(i);
5603
+ await us(i);
5599
5604
  } catch (s) {
5600
5605
  this.$emit("error", s);
5601
5606
  return;
@@ -5657,11 +5662,11 @@ const Cn = () => {
5657
5662
  e[r] = s;
5658
5663
  return e;
5659
5664
  };
5660
- function _s(i, t, e, r, s, n) {
5665
+ function bs(i, t, e, r, s, n) {
5661
5666
  return he(), ce("div", He({ class: "tg-map" }, i.attrs.binds), [
5662
5667
  Xr("div", {
5663
5668
  ref: "map",
5664
- class: st({
5669
+ class: it({
5665
5670
  "tg-map__map": !0,
5666
5671
  [`tg-map__map--hide-logo-${i.type}`]: i.hideLogo
5667
5672
  })
@@ -5671,8 +5676,8 @@ function _s(i, t, e, r, s, n) {
5671
5676
  K(i.$slots, "overlay")
5672
5677
  ], 16);
5673
5678
  }
5674
- const Ve = /* @__PURE__ */ se(ys, [["render", _s]]);
5675
- function bs(i) {
5679
+ const Ve = /* @__PURE__ */ se(_s, [["render", bs]]);
5680
+ function Ts(i) {
5676
5681
  if (i == null)
5677
5682
  return;
5678
5683
  let t;
@@ -5683,7 +5688,7 @@ function bs(i) {
5683
5688
  t = i;
5684
5689
  return `${t}px`;
5685
5690
  }
5686
- const Ts = P({
5691
+ const Ms = P({
5687
5692
  name: "tg-map-widget",
5688
5693
  props: {
5689
5694
  left: {
@@ -5709,18 +5714,18 @@ const Ts = P({
5709
5714
  }
5710
5715
  },
5711
5716
  methods: {
5712
- dimen: bs
5717
+ dimen: Ts
5713
5718
  }
5714
5719
  });
5715
- function Ms(i, t, e, r, s, n) {
5720
+ function Os(i, t, e, r, s, n) {
5716
5721
  return he(), ce("div", {
5717
- class: st(i.$options.name),
5722
+ class: it(i.$options.name),
5718
5723
  style: Jr({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
5719
5724
  }, [
5720
5725
  K(i.$slots, "default")
5721
5726
  ], 6);
5722
5727
  }
5723
- const Os = /* @__PURE__ */ se(Ts, [["render", Ms]]), Cs = P({
5728
+ const Cs = /* @__PURE__ */ se(Ms, [["render", Os]]), ws = P({
5724
5729
  name: "tg-custom-control",
5725
5730
  mixins: [$],
5726
5731
  props: {
@@ -5738,7 +5743,7 @@ const Os = /* @__PURE__ */ se(Ts, [["render", Ms]]), Cs = P({
5738
5743
  },
5739
5744
  onCreate() {
5740
5745
  yr(this.$parent, Ve) || console.warn("请将tg-custom-control放到tg-map中");
5741
- const { $el: i } = this, t = class extends pi {
5746
+ const { $el: i } = this, t = class extends gi {
5742
5747
  onCreateElement() {
5743
5748
  return i;
5744
5749
  }
@@ -5749,19 +5754,19 @@ const Os = /* @__PURE__ */ se(Ts, [["render", Ms]]), Cs = P({
5749
5754
  this.$map.removeCustomControl(this.control);
5750
5755
  }
5751
5756
  });
5752
- function ws(i, t, e, r, s, n) {
5757
+ function xs(i, t, e, r, s, n) {
5753
5758
  return he(), ce("div", {
5754
- class: st(i.$options.name)
5759
+ class: it(i.$options.name)
5755
5760
  }, [
5756
5761
  K(i.$slots, "default")
5757
5762
  ], 2);
5758
5763
  }
5759
- const xs = /* @__PURE__ */ se(Cs, [["render", ws]]), Es = P({
5764
+ const Es = /* @__PURE__ */ se(ws, [["render", xs]]), Ps = P({
5760
5765
  name: "tg-map-type-control",
5761
5766
  mixins: [$],
5762
5767
  props: {
5763
5768
  position: F(A, A.TOP_LEFT),
5764
- type: F(Or),
5769
+ type: F(Cr),
5765
5770
  mapTypes: b(Array)
5766
5771
  },
5767
5772
  setup() {
@@ -5789,7 +5794,7 @@ const xs = /* @__PURE__ */ se(Cs, [["render", ws]]), Es = P({
5789
5794
  onDestroy() {
5790
5795
  this.$map.removeControl(this.control);
5791
5796
  }
5792
- }), Ps = P({
5797
+ }), Ls = P({
5793
5798
  name: "tg-scale-control",
5794
5799
  mixins: [$],
5795
5800
  props: {
@@ -5818,7 +5823,7 @@ function Fr() {
5818
5823
  let t = (i == null ? void 0 : i.name) ?? (i == null ? void 0 : i.__name);
5819
5824
  if (!t) {
5820
5825
  const r = i == null ? void 0 : i.__file;
5821
- r && (t = es.basename(r, ".vue"));
5826
+ r && (t = ts.basename(r, ".vue"));
5822
5827
  }
5823
5828
  return t;
5824
5829
  }
@@ -5845,7 +5850,7 @@ function nr() {
5845
5850
  }
5846
5851
  };
5847
5852
  }
5848
- const Ls = P({
5853
+ const Bs = P({
5849
5854
  name: "tg-street-view-control",
5850
5855
  props: {
5851
5856
  position: F(A, A.RIGHT_BOTTOM)
@@ -5859,9 +5864,9 @@ const Ls = P({
5859
5864
  e.removeControl(t);
5860
5865
  }), Ae(() => i.position, (n) => {
5861
5866
  t.setPosition(n);
5862
- }), dt;
5867
+ }), ct;
5863
5868
  }
5864
- }), Bs = P({
5869
+ }), Is = P({
5865
5870
  name: "tg-zoom-control",
5866
5871
  props: {
5867
5872
  position: F(A, A.RIGHT_BOTTOM)
@@ -5875,9 +5880,9 @@ const Ls = P({
5875
5880
  e.removeControl(t);
5876
5881
  }), Ae(() => i.position, (n) => {
5877
5882
  t.setPosition(n);
5878
- }), dt;
5883
+ }), ct;
5879
5884
  }
5880
- }), Is = P({
5885
+ }), Ss = P({
5881
5886
  name: "tg-heatmap",
5882
5887
  props: {
5883
5888
  maxIntensity: b(Number),
@@ -5896,9 +5901,9 @@ const Ls = P({
5896
5901
  }), Ae(() => i.data, (n) => s.setData(n)), Ae(
5897
5902
  [() => i.maxIntensity, () => i.gradient, () => i.opacity, () => i.radius],
5898
5903
  () => s.setOptions(i)
5899
- ), dt;
5904
+ ), ct;
5900
5905
  }
5901
- }), Ss = P({
5906
+ }), ks = P({
5902
5907
  name: "tg-marker-clusterer",
5903
5908
  mixins: [$],
5904
5909
  // markers从this.$children中读取, 故需要省略(Omit)
@@ -5962,14 +5967,14 @@ const Ls = P({
5962
5967
  }
5963
5968
  }
5964
5969
  });
5965
- function ks(i, t, e, r, s, n) {
5970
+ function As(i, t, e, r, s, n) {
5966
5971
  return he(), ce("div", {
5967
- class: st(i.$options.name)
5972
+ class: it(i.$options.name)
5968
5973
  }, [
5969
5974
  K(i.$slots, "default")
5970
5975
  ], 2);
5971
5976
  }
5972
- const Ur = /* @__PURE__ */ se(Ss, [["render", ks]]), As = P({
5977
+ const Ur = /* @__PURE__ */ se(ks, [["render", As]]), Ds = P({
5973
5978
  name: "tg-traffic-layer",
5974
5979
  mixins: [$],
5975
5980
  // 请直接使用v-if来控制它的显隐
@@ -5982,12 +5987,12 @@ const Ur = /* @__PURE__ */ se(Ss, [["render", ks]]), As = P({
5982
5987
  },
5983
5988
  watch: {},
5984
5989
  onCreate() {
5985
- this.layer = new mi(), this.$map.addLayer(this.layer);
5990
+ this.layer = new fi(), this.$map.addLayer(this.layer);
5986
5991
  },
5987
5992
  onDestroy() {
5988
5993
  this.$map.removeLayer(this.layer);
5989
5994
  }
5990
- }), Ds = P({
5995
+ }), Rs = P({
5991
5996
  name: "tg-circle",
5992
5997
  mixins: [$],
5993
5998
  inheritAttrs: !1,
@@ -6018,7 +6023,7 @@ const Ur = /* @__PURE__ */ se(Ss, [["render", ks]]), As = P({
6018
6023
  center(i) {
6019
6024
  if (this.emittedCenter != null) {
6020
6025
  const t = this.emittedCenter;
6021
- if (this.emittedCenter = void 0, t === nt(i))
6026
+ if (this.emittedCenter = void 0, t === st(i))
6022
6027
  return;
6023
6028
  }
6024
6029
  this.overlay.setCenter(i);
@@ -6067,7 +6072,7 @@ const Ur = /* @__PURE__ */ se(Ss, [["render", ks]]), As = P({
6067
6072
  this.$map.removeOverlay(this.overlay);
6068
6073
  }
6069
6074
  });
6070
- class Rs extends ts {
6075
+ class $s extends rs {
6071
6076
  constructor(t, e, r, s) {
6072
6077
  super(t, e), this.content = r, this.position = s;
6073
6078
  }
@@ -6082,7 +6087,7 @@ class Rs extends ts {
6082
6087
  this.position = t, this.draw();
6083
6088
  }
6084
6089
  }
6085
- const $s = P({
6090
+ const zs = P({
6086
6091
  name: "tg-element-overlay",
6087
6092
  mixins: [$],
6088
6093
  props: {
@@ -6108,20 +6113,20 @@ const $s = P({
6108
6113
  }
6109
6114
  },
6110
6115
  onCreate() {
6111
- this.overlay = new Rs(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
6116
+ this.overlay = new $s(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
6112
6117
  },
6113
6118
  onDestroy() {
6114
6119
  this.$map.removeElementOverlay(this.overlay);
6115
6120
  }
6116
6121
  });
6117
- function zs(i, t, e, r, s, n) {
6122
+ function Ns(i, t, e, r, s, n) {
6118
6123
  return he(), ce("div", He({
6119
6124
  class: i.$options.name
6120
6125
  }, i.$attrs), [
6121
6126
  K(i.$slots, "default")
6122
6127
  ], 16);
6123
6128
  }
6124
- const Ns = /* @__PURE__ */ se($s, [["render", zs]]), Gs = P({
6129
+ const Gs = /* @__PURE__ */ se(zs, [["render", Ns]]), Zs = P({
6125
6130
  name: "tg-marker",
6126
6131
  mixins: [$],
6127
6132
  inheritAttrs: !1,
@@ -6158,7 +6163,7 @@ const Ns = /* @__PURE__ */ se($s, [["render", zs]]), Gs = P({
6158
6163
  position(i) {
6159
6164
  if (this.emittedPosition != null) {
6160
6165
  const t = this.emittedPosition;
6161
- if (this.emittedPosition = void 0, t === nt(i))
6166
+ if (this.emittedPosition = void 0, t === st(i))
6162
6167
  return;
6163
6168
  }
6164
6169
  this.marker.setPosition(i);
@@ -6223,10 +6228,10 @@ const Ns = /* @__PURE__ */ se($s, [["render", zs]]), Gs = P({
6223
6228
  }
6224
6229
  }
6225
6230
  });
6226
- function Zs(i, t, e, r, s, n) {
6231
+ function Ws(i, t, e, r, s, n) {
6227
6232
  return K(i.$slots, "default");
6228
6233
  }
6229
- const ut = /* @__PURE__ */ se(Gs, [["render", Zs]]), Ws = P({
6234
+ const dt = /* @__PURE__ */ se(Zs, [["render", Ws]]), Hs = P({
6230
6235
  name: "tg-info-box",
6231
6236
  mixins: [$],
6232
6237
  inheritAttrs: !1,
@@ -6289,7 +6294,7 @@ const ut = /* @__PURE__ */ se(Gs, [["render", Zs]]), Ws = P({
6289
6294
  return this.$el;
6290
6295
  },
6291
6296
  $marker() {
6292
- return Et(ut, this.$parent, Ve);
6297
+ return Et(dt, this.$parent, Ve);
6293
6298
  },
6294
6299
  open(i) {
6295
6300
  this.overlay.open(i);
@@ -6299,14 +6304,14 @@ const ut = /* @__PURE__ */ se(Gs, [["render", Zs]]), Ws = P({
6299
6304
  }
6300
6305
  }
6301
6306
  });
6302
- function Hs(i, t, e, r, s, n) {
6307
+ function Vs(i, t, e, r, s, n) {
6303
6308
  return he(), ce("div", He({
6304
6309
  class: i.$options.name
6305
6310
  }, i.attrs.binds), [
6306
6311
  K(i.$slots, "default")
6307
6312
  ], 16);
6308
6313
  }
6309
- const Vs = /* @__PURE__ */ se(Ws, [["render", Hs]]), js = P({
6314
+ const js = /* @__PURE__ */ se(Hs, [["render", Vs]]), Fs = P({
6310
6315
  name: "tg-info-window",
6311
6316
  mixins: [$],
6312
6317
  inheritAttrs: !1,
@@ -6347,7 +6352,7 @@ const Vs = /* @__PURE__ */ se(Ws, [["render", Hs]]), js = P({
6347
6352
  return this.$el;
6348
6353
  },
6349
6354
  $marker() {
6350
- return Et(ut, this.$parent, Ve);
6355
+ return Et(dt, this.$parent, Ve);
6351
6356
  },
6352
6357
  getOptions() {
6353
6358
  return {
@@ -6370,7 +6375,7 @@ const Vs = /* @__PURE__ */ se(Ws, [["render", Hs]]), js = P({
6370
6375
  this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
6371
6376
  }
6372
6377
  });
6373
- function Fs(i, t, e, r, s, n) {
6378
+ function Us(i, t, e, r, s, n) {
6374
6379
  return ii((he(), ce("div", He({
6375
6380
  class: i.$options.name
6376
6381
  }, i.attrs.binds), [
@@ -6379,7 +6384,7 @@ function Fs(i, t, e, r, s, n) {
6379
6384
  [si, i.show]
6380
6385
  ]);
6381
6386
  }
6382
- const Us = /* @__PURE__ */ se(js, [["render", Fs]]), Ys = P({
6387
+ const Ys = /* @__PURE__ */ se(Fs, [["render", Us]]), qs = P({
6383
6388
  name: "tg-label",
6384
6389
  mixins: [$],
6385
6390
  inheritAttrs: !1,
@@ -6422,7 +6427,7 @@ const Us = /* @__PURE__ */ se(js, [["render", Fs]]), Ys = P({
6422
6427
  return (i = this.$marker()) == null ? void 0 : i.marker;
6423
6428
  },
6424
6429
  $marker() {
6425
- return Et(ut, this.$parent, Ve);
6430
+ return Et(dt, this.$parent, Ve);
6426
6431
  },
6427
6432
  getOptions() {
6428
6433
  return {
@@ -6441,14 +6446,14 @@ const Us = /* @__PURE__ */ se(js, [["render", Fs]]), Ys = P({
6441
6446
  this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
6442
6447
  }
6443
6448
  });
6444
- function qs(i, t, e, r, s, n) {
6449
+ function Ks(i, t, e, r, s, n) {
6445
6450
  return he(), ce("div", He({
6446
6451
  class: i.$options.name
6447
6452
  }, i.attrs.binds), [
6448
6453
  K(i.$slots, "default")
6449
6454
  ], 16);
6450
6455
  }
6451
- const Ks = /* @__PURE__ */ se(Ys, [["render", qs]]), Xs = P({
6456
+ const Xs = /* @__PURE__ */ se(qs, [["render", Ks]]), Js = P({
6452
6457
  name: "tg-polygon",
6453
6458
  mixins: [$],
6454
6459
  inheritAttrs: !1,
@@ -6477,7 +6482,7 @@ const Ks = /* @__PURE__ */ se(Ys, [["render", qs]]), Xs = P({
6477
6482
  handler(i) {
6478
6483
  if (this.emittedPaths != null) {
6479
6484
  const t = this.emittedPaths;
6480
- if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e === nt(i[r])))
6485
+ if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e === st(i[r])))
6481
6486
  return;
6482
6487
  }
6483
6488
  this.overlay.setPaths(i);
@@ -6517,7 +6522,7 @@ const Ks = /* @__PURE__ */ se(Ys, [["render", qs]]), Xs = P({
6517
6522
  onDestroy() {
6518
6523
  this.$map.removeOverlay(this.overlay);
6519
6524
  }
6520
- }), Js = P({
6525
+ }), Qs = P({
6521
6526
  name: "tg-polyline",
6522
6527
  mixins: [$],
6523
6528
  inheritAttrs: !1,
@@ -6545,7 +6550,7 @@ const Ks = /* @__PURE__ */ se(Ys, [["render", qs]]), Xs = P({
6545
6550
  handler(i) {
6546
6551
  if (this.emittedPath != null) {
6547
6552
  const t = this.emittedPath;
6548
- if (this.emittedPath = void 0, t === nt(i))
6553
+ if (this.emittedPath = void 0, t === st(i))
6549
6554
  return;
6550
6555
  }
6551
6556
  this.overlay.setPath(i);
@@ -6585,7 +6590,7 @@ const Ks = /* @__PURE__ */ se(Ys, [["render", qs]]), Xs = P({
6585
6590
  onDestroy() {
6586
6591
  this.overlay.remove();
6587
6592
  }
6588
- }), Qs = P({
6593
+ }), en = P({
6589
6594
  name: "tg-rectangle",
6590
6595
  mixins: [$],
6591
6596
  inheritAttrs: !1,
@@ -6651,13 +6656,13 @@ const Ks = /* @__PURE__ */ se(Ys, [["render", qs]]), Xs = P({
6651
6656
  onDestroy() {
6652
6657
  this.$map.removeOverlay(this.overlay);
6653
6658
  }
6654
- }), en = ["beforeUpdate", "updated"], wn = {
6659
+ }), tn = ["beforeUpdate", "updated"], xn = {
6655
6660
  install(i, t = {}) {
6656
6661
  if (t.enable !== !1) {
6657
6662
  const e = P({
6658
6663
  beforeCreate() {
6659
6664
  const r = Fr() ?? "", n = (t.nameRegex || /^[A-Z]/).test(r) ? (a) => {
6660
- t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : en.includes(a) || console.debug("[lifecycle]", r, a);
6665
+ t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : tn.includes(a) || console.debug("[lifecycle]", r, a);
6661
6666
  } : De;
6662
6667
  n("beforeCreate"), this.__life_impl = n;
6663
6668
  },
@@ -6697,24 +6702,24 @@ const Ks = /* @__PURE__ */ se(Ys, [["render", qs]]), Xs = P({
6697
6702
  i.mixin(e);
6698
6703
  }
6699
6704
  }
6700
- }, tn = 6378137;
6705
+ }, rn = 6378137;
6701
6706
  function Be(i) {
6702
6707
  return i * Math.PI / 180;
6703
6708
  }
6704
6709
  function mr(i) {
6705
6710
  return i * 180 / Math.PI;
6706
6711
  }
6707
- function rn(i, t) {
6712
+ function sn(i, t) {
6708
6713
  if (i.lat === t.lat && i.lng === t.lng)
6709
6714
  return 0;
6710
6715
  const e = Be((i.lat + t.lat) / 2), r = Be((i.lat - t.lat) / 2), s = Be((i.lng - t.lng) / 2);
6711
6716
  let n = Math.sin(r), a = Math.sin(s), c = Math.sin(e);
6712
- const o = tn, h = 1 / 298.257;
6717
+ const o = rn, h = 1 / 298.257;
6713
6718
  n = n * n, a = a * a, c = c * c;
6714
6719
  const d = n * (1 - a) + (1 - c) * a, p = (1 - n) * (1 - a) + c * a, g = Math.atan(Math.sqrt(d / p)), f = Math.sqrt(d * p) / g, T = 2 * g * o, _ = (3 * f - 1) / 2 / p, M = (3 * f + 1) / 2 / d;
6715
6720
  return T * (1 + h * (_ * c * (1 - n) - M * (1 - c) * n));
6716
6721
  }
6717
- function sn(i, t, e) {
6722
+ function nn(i, t, e) {
6718
6723
  const s = 63567523142e-4, n = 1 / 298.257223563, a = Be(t), c = Math.sin(a), o = Math.cos(a), h = (1 - n) * Math.tan(Be(i.lat)), d = 1 / Math.sqrt(1 + h * h), p = h * d, g = Math.atan2(h, o), f = d * c, T = 1 - f * f, _ = T * (6378137 * 6378137 - s * s) / (s * s), M = 1 + _ / 16384 * (4096 + _ * (-768 + _ * (320 - 175 * _))), l = _ / 1024 * (256 + _ * (-128 + _ * (74 - 47 * _)));
6719
6724
  let u = 0, v = 0, y = 0, C = e / (s * M), w = 2 * Math.PI;
6720
6725
  for (; Math.abs(C - w) > 1e-12; ) {
@@ -6728,15 +6733,15 @@ function sn(i, t, e) {
6728
6733
  ), z = Math.atan2(v * c, d * y - p * v * o), L = n / 16 * T * (4 + n * (4 - 3 * T)), J = z - (1 - L) * n * f * (C + L * v * (u + L * y * (-1 + 2 * u * u)));
6729
6734
  return { lng: i.lng + mr(J), lat: mr(S) };
6730
6735
  }
6731
- const xn = {
6732
- getDistance: rn,
6733
- getDestination: sn
6734
- };
6735
- var nn = { VITE_APP_DEV_KEY_BAIDU: "kXOq8Hg9BZbZEWAjXKuzd1oGreynup8h", VITE_APP_DEV_KEY_GOOGLE: "AIzaSyBcyzMel3dYFNcfcr0LOklbBQNpWycyZXo", VITE_APP_DEV_KEY_HERE: "", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
6736
6736
  const En = {
6737
+ getDistance: sn,
6738
+ getDestination: nn
6739
+ };
6740
+ var on = { VITE_APP_DEV_KEY_BAIDU: "kXOq8Hg9BZbZEWAjXKuzd1oGreynup8h", VITE_APP_DEV_KEY_GOOGLE: "AIzaSyBcyzMel3dYFNcfcr0LOklbBQNpWycyZXo", VITE_APP_DEV_KEY_HERE: "", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
6741
+ const Pn = {
6737
6742
  install(i, t) {
6738
- if (as(t), nn.VITE_FALSE) {
6739
- const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Ve, "./TgMapWidget.vue": Os, "./controls/TgCustomControl.vue": xs, "./controls/TgMapTypeControl.vue": Es, "./controls/TgScaleControl.vue": Ps, "./controls/TgStreetViewControl.vue": Ls, "./controls/TgZoomControl.vue": Bs, "./extra/TgHeatmap.vue": Is, "./extra/TgMarkerClusterer.vue": Ur, "./layers/TgTrafficLayer.vue": As, "./overlays/TgCircle.vue": Ds, "./overlays/TgElementOverlay.vue": Ns, "./overlays/TgInfoBox.vue": Vs, "./overlays/TgInfoWindow.vue": Us, "./overlays/TgLabel.vue": Ks, "./overlays/TgMarker.vue": ut, "./overlays/TgPolygon.vue": Xs, "./overlays/TgPolyline.vue": Js, "./overlays/TgRectangle.vue": Qs });
6743
+ if (ls(t), on.VITE_FALSE) {
6744
+ const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Ve, "./TgMapWidget.vue": Cs, "./controls/TgCustomControl.vue": Es, "./controls/TgMapTypeControl.vue": Ps, "./controls/TgScaleControl.vue": Ls, "./controls/TgStreetViewControl.vue": Bs, "./controls/TgZoomControl.vue": Is, "./extra/TgHeatmap.vue": Ss, "./extra/TgMarkerClusterer.vue": Ur, "./layers/TgTrafficLayer.vue": Ds, "./overlays/TgCircle.vue": Rs, "./overlays/TgElementOverlay.vue": Gs, "./overlays/TgInfoBox.vue": js, "./overlays/TgInfoWindow.vue": Ys, "./overlays/TgLabel.vue": Xs, "./overlays/TgMarker.vue": dt, "./overlays/TgPolygon.vue": Js, "./overlays/TgPolyline.vue": Qs, "./overlays/TgRectangle.vue": en });
6740
6745
  Object.keys(r).forEach((s) => {
6741
6746
  const n = r[s];
6742
6747
  i.component(n.name ?? B(`Tg开头的组件必须设置name: ${s}`), n);
@@ -6750,67 +6755,67 @@ export {
6750
6755
  Lt as AbstractControl,
6751
6756
  Nt as AbstractMap,
6752
6757
  fe as Arrays,
6753
- Er as Autocomplete,
6754
- bi as BaiduAutocomplete,
6758
+ Pr as Autocomplete,
6759
+ Ti as BaiduAutocomplete,
6755
6760
  Zt as BaiduCircle,
6756
6761
  Bt as BaiduControl,
6757
- Ci as BaiduHeatmap,
6762
+ wi as BaiduHeatmap,
6758
6763
  Ft as BaiduInfoBoxOverlay,
6759
6764
  Vt as BaiduInfoWindow,
6760
6765
  It as BaiduMapTypeControl,
6761
6766
  Ot as BaiduMapUrls,
6762
6767
  Ge as BaiduMarker,
6763
- Li as BaiduMarkerClusterer,
6764
- ht as BaiduOverlay,
6765
- Si as BaiduPlacesService,
6768
+ Bi as BaiduMarkerClusterer,
6769
+ lt as BaiduOverlay,
6770
+ ki as BaiduPlacesService,
6766
6771
  Xt as BaiduPolyShape,
6767
6772
  er as BaiduPolygon,
6768
6773
  Jt as BaiduPolyline,
6769
6774
  rr as BaiduRectangle,
6770
6775
  St as BaiduScaleControl,
6771
- Ai as BaiduSearchBox,
6776
+ Di as BaiduSearchBox,
6772
6777
  At as BaiduStreetViewControl,
6773
6778
  Rt as BaiduZoomControl,
6774
6779
  W as BuildInMapType,
6775
- Mr as BuildInMapTypeId,
6780
+ Or as BuildInMapTypeId,
6776
6781
  Pe as CachedValue,
6777
6782
  A as ControlPosition,
6778
6783
  U as ControlPositionConverter,
6779
- R as CoordType,
6780
- pi as CustomControl,
6781
- ts as ElementOverlay,
6782
- gi as EmptyControl,
6783
- ui as FastFindValues,
6784
+ D as CoordType,
6785
+ gi as CustomControl,
6786
+ rs as ElementOverlay,
6787
+ mi as EmptyControl,
6788
+ pi as FastFindValues,
6784
6789
  ee as GestureHandlingOptions,
6785
- _i as GoogleAutocomplete,
6790
+ bi as GoogleAutocomplete,
6786
6791
  Wt as GoogleCircle,
6787
- lt as GoogleControl,
6788
- Oi as GoogleHeatmap,
6792
+ at as GoogleControl,
6793
+ Ci as GoogleHeatmap,
6789
6794
  Ut as GoogleInfoBoxOverlay,
6790
6795
  jt as GoogleInfoWindow,
6791
6796
  Tt as GoogleMapTypeControl,
6792
6797
  Mt as GoogleMapUrls,
6793
6798
  Kt as GoogleMarker,
6794
- Bi as GoogleMarkerClusterer,
6799
+ Ii as GoogleMarkerClusterer,
6795
6800
  Gt as GoogleOverlay,
6796
- Ii as GooglePlacesService,
6801
+ Si as GooglePlacesService,
6797
6802
  tr as GooglePolygon,
6798
6803
  Qt as GooglePolyline,
6799
6804
  ir as GoogleRectangle,
6800
6805
  kt as GoogleScaleControl,
6801
- ki as GoogleSearchBox,
6806
+ Ai as GoogleSearchBox,
6802
6807
  Dt as GoogleStreetViewControl,
6803
6808
  $t as GoogleZoomControl,
6804
- Lr as Heatmap,
6805
- et as Icon,
6806
- tt as IconSequence,
6807
- mn as ImageMapType,
6809
+ Br as Heatmap,
6810
+ Qe as Icon,
6811
+ et as IconSequence,
6812
+ fn as ImageMapType,
6808
6813
  Ht as InfoWindow,
6809
- Xi as InfoWindowModeValues,
6810
- ar as KeyValue,
6814
+ Ji as InfoWindowModeValues,
6815
+ lr as KeyValue,
6811
6816
  O as LatLng,
6812
6817
  X as LatLngBounds,
6813
- wn as LifecycleLogPlugin,
6818
+ xn as LifecycleLogPlugin,
6814
6819
  te as Location,
6815
6820
  Ze as MIXIN_HOOK_CREATE,
6816
6821
  We as MIXIN_HOOK_DESTROY,
@@ -6821,80 +6826,80 @@ export {
6821
6826
  ze as MapPane,
6822
6827
  Ne as MapPanes,
6823
6828
  V as MapType,
6824
- Or as MapTypeControlType,
6825
- Br as MapUrls,
6826
- Di as MapZoom,
6827
- Rr as MarkerClusterer,
6829
+ Cr as MapTypeControlType,
6830
+ Ir as MapUrls,
6831
+ Ri as MapZoom,
6832
+ $r as MarkerClusterer,
6828
6833
  le as Objects,
6829
- Wr as Overlay,
6830
- $r as PlacesService,
6834
+ Hr as Overlay,
6835
+ zr as PlacesService,
6831
6836
  oe as Point,
6832
- zr as SearchBox,
6833
- xn as SphericalUtils,
6837
+ Nr as SearchBox,
6838
+ En as SphericalUtils,
6834
6839
  be as Strings,
6835
6840
  Me as SymbolIcon,
6836
- _n as SymbolPath,
6837
- Ds as TgCircle,
6838
- xs as TgCustomControl,
6839
- Ns as TgElementOverlay,
6840
- Is as TgHeatmap,
6841
- Vs as TgInfoBox,
6842
- Us as TgInfoWindow,
6843
- Ks as TgLabel,
6841
+ bn as SymbolPath,
6842
+ Rs as TgCircle,
6843
+ Es as TgCustomControl,
6844
+ Gs as TgElementOverlay,
6845
+ Ss as TgHeatmap,
6846
+ js as TgInfoBox,
6847
+ Ys as TgInfoWindow,
6848
+ Xs as TgLabel,
6844
6849
  Ve as TgMap,
6845
6850
  wt as TgMapFactory,
6846
6851
  q as TgMapType,
6847
- Es as TgMapTypeControl,
6848
- Os as TgMapWidget,
6849
- ut as TgMarker,
6852
+ Ps as TgMapTypeControl,
6853
+ Cs as TgMapWidget,
6854
+ dt as TgMarker,
6850
6855
  Ur as TgMarkerClusterer,
6851
- Xs as TgPolygon,
6852
- Js as TgPolyline,
6853
- Qs as TgRectangle,
6854
- Ps as TgScaleControl,
6855
- Ls as TgStreetViewControl,
6856
- As as TgTrafficLayer,
6857
- Bs as TgZoomControl,
6858
- mi as TrafficLayer,
6859
- Qe as UnionIcon,
6856
+ Js as TgPolygon,
6857
+ Qs as TgPolyline,
6858
+ en as TgRectangle,
6859
+ Ls as TgScaleControl,
6860
+ Bs as TgStreetViewControl,
6861
+ Ds as TgTrafficLayer,
6862
+ Is as TgZoomControl,
6863
+ fi as TrafficLayer,
6864
+ Je as UnionIcon,
6860
6865
  me as assert,
6861
6866
  vt as assertNever,
6862
- Ye as callHook,
6863
- bn as computedSaveOnThis,
6867
+ Ue as callHook,
6868
+ Tn as computedSaveOnThis,
6864
6869
  hi as createAsyncSingleton,
6865
- dt as createEmptyVNode,
6866
- fs as createPropertyObject,
6867
- Tn as createPropertyObjectTyped,
6868
- pn as debug,
6869
- En as default,
6870
+ ct as createEmptyVNode,
6871
+ vs as createPropertyObject,
6872
+ Mn as createPropertyObjectTyped,
6873
+ gn as debug,
6874
+ Pn as default,
6870
6875
  k as eventProp,
6871
- On as extractVNodeFromSlotsByComponent,
6876
+ Cn as extractVNodeFromSlotsByComponent,
6872
6877
  Et as findAncestorComponentByType,
6873
- Mn as findByComponentType,
6874
- sn as getDestination,
6878
+ On as findByComponentType,
6879
+ nn as getDestination,
6875
6880
  jr as getTgMapConfig,
6876
6881
  _t as isComponentByType,
6877
- gn as isDef,
6882
+ mn as isDef,
6878
6883
  li as isEntryValueDef,
6879
- hn as isInstanceOf,
6880
- ln as lateinit,
6881
- ds as loadCachedMap,
6884
+ cn as isInstanceOf,
6885
+ hn as lateinit,
6886
+ us as loadCachedMap,
6882
6887
  De as noop,
6883
6888
  b as optionalProp,
6884
- es as path,
6889
+ ts as path,
6885
6890
  N as requiredProp,
6886
- cn as safeAs,
6891
+ dn as safeAs,
6887
6892
  yr as safeAsComponent,
6888
- as as setTgMapConfig,
6889
- vs as splitAttrs,
6893
+ ls as setTgMapConfig,
6894
+ ys as splitAttrs,
6890
6895
  F as stringEnumProp,
6891
- ms as stringUnionPropFromValues,
6896
+ fs as stringUnionPropFromValues,
6892
6897
  B as throwError,
6893
6898
  Pt as throwUnsupported,
6894
- un as todo,
6899
+ pn as todo,
6895
6900
  yt as typed,
6896
- dn as unwrapStringEnumValue,
6897
- Cn as useEventLogMethods,
6901
+ un as unwrapStringEnumValue,
6902
+ wn as useEventLogMethods,
6898
6903
  ie as useSplittedAttrs,
6899
6904
  nr as useTgMapInner
6900
6905
  };