tg-map-vue3 3.6.0 → 3.6.2

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,29 +1,29 @@
1
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}.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}.baidu-info-box-container__close:hover{opacity:1}.baidu-info-box-container:after{position:absolute;background-color:#fff;content:"";width:15px;height:15px;left:0px;top:0px;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)}})();
2
- var Pr = Object.defineProperty;
3
- var kr = (i, t, e) => t in i ? Pr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
4
- var c = (i, t, e) => (kr(i, typeof t != "symbol" ? t + "" : t, e), e);
5
- import { createCommentVNode as Ke, computed as jt, defineComponent as w, markRaw as Sr, watch as Vt, openBlock as j, createElementBlock as V, mergeProps as de, createElementVNode as Br, normalizeClass as Ne, renderSlot as Z, normalizeStyle as Ir, getCurrentInstance as Ar, inject as Rr, onMounted as $r, onBeforeUnmount as Dr, toRaw as Ge, withDirectives as zr, vShow as Nr } from "vue";
6
- function F(i, t, e) {
2
+ var kr = Object.defineProperty;
3
+ var Ir = (i, t, e) => t in i ? kr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
4
+ var c = (i, t, e) => (Ir(i, typeof t != "symbol" ? t + "" : t, e), e);
5
+ import { createCommentVNode as Je, computed as Ft, defineComponent as w, markRaw as Br, watch as Ut, openBlock as V, createElementBlock as F, mergeProps as ue, createElementVNode as Sr, normalizeClass as Ze, renderSlot as W, normalizeStyle as Ar, getCurrentInstance as Rr, inject as $r, onMounted as Dr, onBeforeUnmount as zr, toRaw as We, withDirectives as Nr, vShow as Gr } from "vue";
6
+ function U(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]);
9
9
  });
10
10
  }
11
- let Gr = 1;
12
- function Zr() {
13
- return Gr++;
11
+ let Zr = 1;
12
+ function Wr() {
13
+ return Zr++;
14
14
  }
15
- function Be(i, t) {
16
- return t.__id__ || (t.__id__ = Zr()), `${i}::${t.__id__}`;
15
+ function Se(i, t) {
16
+ return t.__id__ || (t.__id__ = Wr()), `${i}::${t.__id__}`;
17
17
  }
18
- var Ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
- function rt(i) {
18
+ var Yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
+ function st(i) {
20
20
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
21
21
  }
22
- var Ut = { exports: {} };
22
+ var qt = { exports: {} };
23
23
  (function(i) {
24
24
  (function(t, e) {
25
25
  i.exports ? i.exports = e() : t.coordtransform = e();
26
- })(Ft, function() {
26
+ })(Yt, function() {
27
27
  var t = 52.35987755982988, e = 3.141592653589793, r = 6378245, s = 0.006693421622965943;
28
28
  function n(g, f, v, O) {
29
29
  this.west = Math.min(g, v), this.north = Math.max(f, O), this.east = Math.max(g, v), this.south = Math.min(f, O);
@@ -58,8 +58,8 @@ var Ut = { exports: {} };
58
58
  return !1;
59
59
  }
60
60
  function l(g, f) {
61
- var v = g - 65e-4, O = f - 6e-3, x = Math.sqrt(v * v + O * O) - 2e-5 * Math.sin(O * t), E = Math.atan2(O, v) - 3e-6 * Math.cos(v * t), J = x * Math.cos(E), re = x * Math.sin(E);
62
- return [J, re];
61
+ var v = g - 65e-4, O = f - 6e-3, x = Math.sqrt(v * v + O * O) - 2e-5 * Math.sin(O * t), E = Math.atan2(O, v) - 3e-6 * Math.cos(v * t), Q = x * Math.cos(E), ie = x * Math.sin(E);
62
+ return [Q, ie];
63
63
  }
64
64
  function d(g, f) {
65
65
  var v = Math.sqrt(g * g + f * f) + 2e-5 * Math.sin(f * t), O = Math.atan2(f, g) + 3e-6 * Math.cos(g * t), x = v * Math.cos(O) + 65e-4, E = v * Math.sin(O) + 6e-3;
@@ -75,18 +75,18 @@ var Ut = { exports: {} };
75
75
  return [g * 2 - v[0], f * 2 - v[1]];
76
76
  }
77
77
  function b(g, f) {
78
- var v = _(g - 105, f - 35), O = M(g - 105, f - 35), x = f / 180 * e, E = Math.sin(x);
78
+ var v = _(g - 105, f - 35), O = T(g - 105, f - 35), x = f / 180 * e, E = Math.sin(x);
79
79
  E = 1 - s * E * E;
80
- var J = Math.sqrt(E);
81
- v = v * 180 / (r * (1 - s) / (E * J) * e), O = O * 180 / (r / J * Math.cos(x) * e);
82
- var re = f + v, Ve = g + O;
83
- return [Ve, re];
80
+ var Q = Math.sqrt(E);
81
+ v = v * 180 / (r * (1 - s) / (E * Q) * e), O = O * 180 / (r / Q * Math.cos(x) * e);
82
+ var ie = f + v, Ue = g + O;
83
+ return [Ue, ie];
84
84
  }
85
85
  function _(g, f) {
86
86
  var v = -100 + 2 * g + 3 * f + 0.2 * f * f + 0.1 * g * f + 0.2 * Math.sqrt(Math.abs(g));
87
87
  return v += (20 * Math.sin(6 * g * e) + 20 * Math.sin(2 * g * e)) * 2 / 3, v += (20 * Math.sin(f * e) + 40 * Math.sin(f / 3 * e)) * 2 / 3, v += (160 * Math.sin(f / 12 * e) + 320 * Math.sin(f * e / 30)) * 2 / 3, v;
88
88
  }
89
- function M(g, f) {
89
+ function T(g, f) {
90
90
  var v = 300 + g + 2 * f + 0.1 * g * g + 0.1 * g * f + 0.1 * Math.sqrt(Math.abs(g));
91
91
  return v += (20 * Math.sin(6 * g * e) + 20 * Math.sin(2 * g * e)) * 2 / 3, v += (20 * Math.sin(g * e) + 40 * Math.sin(g / 3 * e)) * 2 / 3, v += (150 * Math.sin(g / 12 * e) + 300 * Math.sin(g / 30 * e)) * 2 / 3, v;
92
92
  }
@@ -115,79 +115,79 @@ var Ut = { exports: {} };
115
115
  }
116
116
  };
117
117
  });
118
- })(Ut);
119
- var Wr = Ut.exports;
120
- const ie = /* @__PURE__ */ rt(Wr);
121
- function ne(i, t) {
118
+ })(qt);
119
+ var Hr = qt.exports;
120
+ const se = /* @__PURE__ */ st(Hr);
121
+ function oe(i, t) {
122
122
  if (!i)
123
123
  throw new Error(`AssertionError: ${t}`);
124
124
  }
125
- function Xe(i) {
125
+ function Qe(i) {
126
126
  throw new Error(`Unexpected object: ${i}`);
127
127
  }
128
- function Ss() {
128
+ function Bs() {
129
129
  }
130
- function Je(i) {
130
+ function et(i) {
131
131
  return i;
132
132
  }
133
- function Bs(i, t) {
133
+ function Ss(i, t) {
134
134
  return i instanceof t;
135
135
  }
136
- function Is(i, t) {
136
+ function As(i, t) {
137
137
  if (i instanceof t)
138
138
  return i;
139
139
  }
140
- function Ee(i, t) {
140
+ function Le(i, t) {
141
141
  if ((i == null ? void 0 : i.$options.name) === t.name)
142
142
  return i;
143
143
  }
144
- function As(i) {
144
+ function Rs(i) {
145
145
  return i;
146
146
  }
147
147
  function C(i) {
148
148
  throw new Error(i);
149
149
  }
150
- function it(i) {
150
+ function nt(i) {
151
151
  throw new Error(`Unsupported: ${i}`);
152
152
  }
153
- function Rs(i) {
153
+ function $s(i) {
154
154
  throw new Error(`todo: ${i}`);
155
155
  }
156
- function $s(i) {
156
+ function Ds(i) {
157
157
  return i;
158
158
  }
159
- function ye(...i) {
159
+ function ve(...i) {
160
160
  }
161
- function Ds(i) {
161
+ function zs(i) {
162
162
  return i != null;
163
163
  }
164
- function qt(i) {
164
+ function Kt(i) {
165
165
  return i[1] != null;
166
166
  }
167
- var S = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(S || {});
168
- const Ue = "wgs84", z = class {
167
+ var B = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(B || {});
168
+ const qe = "wgs84", N = class {
169
169
  constructor(t, e, r) {
170
170
  this.lat = t, this.lng = e, this.coord = r;
171
171
  }
172
172
  /** @param coord Baidu Map的坐标一般都是bd09 */
173
173
  static fromBaidu(t, e) {
174
- return new z(t.lat, t.lng, e);
174
+ return new N(t.lat, t.lng, e);
175
175
  }
176
176
  /** @param coord Google Map的坐标依据地图类型不同是不一样的 */
177
177
  static fromGoogle(t, e) {
178
- return new z(t.lat(), t.lng(), e);
178
+ return new N(t.lat(), t.lng(), e);
179
179
  }
180
180
  static fromHere(t, e) {
181
- return new z(t.lat, t.lng, e);
181
+ return new N(t.lat, t.lng, e);
182
182
  }
183
183
  static fromLiteral(t) {
184
- return new z(t.lat, t.lng, t.coord || Ue);
184
+ return new N(t.lat, t.lng, t.coord || qe);
185
185
  }
186
- static fromLngLat(t, e, r = Ue) {
187
- return new z(e, t, r);
186
+ static fromLngLat(t, e, r = qe) {
187
+ return new N(e, t, r);
188
188
  }
189
- static create(t, e, r = Ue) {
190
- return new z(t, e, r);
189
+ static create(t, e, r = qe) {
190
+ return new N(t, e, r);
191
191
  }
192
192
  /** 转换坐标到指定坐标系 */
193
193
  to(t) {
@@ -195,7 +195,7 @@ const Ue = "wgs84", z = class {
195
195
  if (this.coord === e)
196
196
  return this;
197
197
  const [r, s] = this._convert(e);
198
- return new z(s, r, e);
198
+ return new N(s, r, e);
199
199
  }
200
200
  toBaidu(t) {
201
201
  let e = this.lat, r = this.lng;
@@ -221,11 +221,11 @@ const Ue = "wgs84", z = class {
221
221
  _convert(t) {
222
222
  switch (this.coord) {
223
223
  case "bd09":
224
- return t === "gcj02" ? ie.bd09ToGcj02(this.lng, this.lat) : ie.bd09ToWgs84(this.lng, this.lat);
224
+ return t === "gcj02" ? se.bd09ToGcj02(this.lng, this.lat) : se.bd09ToWgs84(this.lng, this.lat);
225
225
  case "gcj02":
226
- return t === "wgs84" ? ie.gcj02ToWgs84(this.lng, this.lat) : ie.gcj02ToBd09(this.lng, this.lat);
226
+ return t === "wgs84" ? se.gcj02ToWgs84(this.lng, this.lat) : se.gcj02ToBd09(this.lng, this.lat);
227
227
  case "wgs84":
228
- return t === "bd09" ? ie.wgs84ToBd09(this.lng, this.lat) : ie.wgs84ToGcj02(this.lng, this.lat);
228
+ return t === "bd09" ? se.wgs84ToBd09(this.lng, this.lat) : se.wgs84ToGcj02(this.lng, this.lat);
229
229
  }
230
230
  throw new Error(`不支持的坐标转换: ${this.coord}=>${t}`);
231
231
  }
@@ -236,9 +236,9 @@ const Ue = "wgs84", z = class {
236
236
  return JSON.stringify(this);
237
237
  }
238
238
  };
239
- let y = z;
240
- c(y, "ZERO", z.create(0, 0));
241
- const ee = class {
239
+ let y = N;
240
+ c(y, "ZERO", N.create(0, 0));
241
+ const te = class {
242
242
  /**
243
243
  * 不推荐直接创建LatLngBounds, sw和ne的大小关系可能没法保证, 推荐用LatLngBounds.Builder或者LatLngBounds.from等静态方法来创建
244
244
  * @param sw 西南, lat/lng更小
@@ -246,7 +246,7 @@ const ee = class {
246
246
  */
247
247
  constructor(t, e) {
248
248
  c(this, "coord");
249
- this.sw = t, this.ne = e, ne(t.coord === e.coord, "sw和ne的coord应该相同"), ne(Number.isFinite(t.lat) && Number.isFinite(t.lng) && Number.isFinite(e.lat) && Number.isFinite(e.lng), `sw(${t})和ne(${e})不能包含NaN或Infinite`), ne(t.lat <= e.lat, `sw.lat(${t.lat})应该比ne.lat(${e.lat})小`), this.coord = t.coord;
249
+ this.sw = t, this.ne = e, oe(t.coord === e.coord, "sw和ne的coord应该相同"), oe(Number.isFinite(t.lat) && Number.isFinite(t.lng) && Number.isFinite(e.lat) && Number.isFinite(e.lng), `sw(${t})和ne(${e})不能包含NaN或Infinite`), oe(t.lat <= e.lat, `sw.lat(${t.lat})应该比ne.lat(${e.lat})小`), this.coord = t.coord;
250
250
  }
251
251
  static isBetweenLng(t, e, r) {
252
252
  return t <= e ? t <= r && r <= e : t <= r || r <= e;
@@ -254,7 +254,7 @@ const ee = class {
254
254
  static fromArray(t) {
255
255
  if (t.length === 0)
256
256
  return;
257
- const e = new ee.Builder(t[0]);
257
+ const e = new te.Builder(t[0]);
258
258
  for (let r = 1; r < t.length; r++)
259
259
  e.include(t[r]);
260
260
  return e.build();
@@ -263,13 +263,13 @@ const ee = class {
263
263
  return this.fromArray(t) ?? C("positions中没有点");
264
264
  }
265
265
  static fromGoogle(t, e) {
266
- return new ee(
266
+ return new te(
267
267
  y.fromGoogle(t.getSouthWest(), e),
268
268
  y.fromGoogle(t.getNorthEast(), e)
269
269
  );
270
270
  }
271
271
  static fromBaidu(t, e) {
272
- return new ee(
272
+ return new te(
273
273
  y.fromBaidu(t.getSouthWest(), e),
274
274
  y.fromBaidu(t.getNorthEast(), e)
275
275
  );
@@ -282,7 +282,7 @@ const ee = class {
282
282
  }
283
283
  contains(t) {
284
284
  const { lat: e, lng: r } = t.to(this.coord);
285
- return this.sw.lat <= e && e <= this.ne.lat && ee.isBetweenLng(this.sw.lng, this.ne.lng, r);
285
+ return this.sw.lat <= e && e <= this.ne.lat && te.isBetweenLng(this.sw.lng, this.ne.lng, r);
286
286
  }
287
287
  getCenter() {
288
288
  if (this.sw.equals(this.ne))
@@ -319,8 +319,8 @@ const ee = class {
319
319
  return [this.sw.toBaidu(t), this.ne.toBaidu(t)];
320
320
  }
321
321
  };
322
- let I = ee;
323
- c(I, "EMPTY", new ee(y.ZERO, y.ZERO));
322
+ let A = te;
323
+ c(A, "EMPTY", new te(y.ZERO, y.ZERO));
324
324
  ((i) => {
325
325
  class t {
326
326
  constructor(r) {
@@ -348,8 +348,8 @@ c(I, "EMPTY", new ee(y.ZERO, y.ZERO));
348
348
  }
349
349
  }
350
350
  i.Builder = t;
351
- })(I || (I = {}));
352
- var Y;
351
+ })(A || (A = {}));
352
+ var K;
353
353
  ((i) => {
354
354
  function t(r, s) {
355
355
  if (r == null)
@@ -364,78 +364,78 @@ var Y;
364
364
  return typeof r == "string" || r == null ? void 0 : r.coord;
365
365
  }
366
366
  i.getCoordType = e;
367
- })(Y || (Y = {}));
368
- var Hr = function(t) {
369
- return jr(t) && !Vr(t);
367
+ })(K || (K = {}));
368
+ var jr = function(t) {
369
+ return Vr(t) && !Fr(t);
370
370
  };
371
- function jr(i) {
371
+ function Vr(i) {
372
372
  return !!i && typeof i == "object";
373
373
  }
374
- function Vr(i) {
374
+ function Fr(i) {
375
375
  var t = Object.prototype.toString.call(i);
376
376
  return t === "[object RegExp]" || t === "[object Date]" || qr(i);
377
377
  }
378
- var Fr = typeof Symbol == "function" && Symbol.for, Ur = Fr ? Symbol.for("react.element") : 60103;
378
+ var Ur = typeof Symbol == "function" && Symbol.for, Yr = Ur ? Symbol.for("react.element") : 60103;
379
379
  function qr(i) {
380
- return i.$$typeof === Ur;
380
+ return i.$$typeof === Yr;
381
381
  }
382
- function Yr(i) {
382
+ function Kr(i) {
383
383
  return Array.isArray(i) ? [] : {};
384
384
  }
385
- function ve(i, t) {
386
- return t.clone !== !1 && t.isMergeableObject(i) ? ae(Yr(i), i, t) : i;
385
+ function _e(i, t) {
386
+ return t.clone !== !1 && t.isMergeableObject(i) ? le(Kr(i), i, t) : i;
387
387
  }
388
- function Kr(i, t, e) {
388
+ function Xr(i, t, e) {
389
389
  return i.concat(t).map(function(r) {
390
- return ve(r, e);
390
+ return _e(r, e);
391
391
  });
392
392
  }
393
- function Xr(i, t) {
393
+ function Jr(i, t) {
394
394
  if (!t.customMerge)
395
- return ae;
395
+ return le;
396
396
  var e = t.customMerge(i);
397
- return typeof e == "function" ? e : ae;
397
+ return typeof e == "function" ? e : le;
398
398
  }
399
- function Jr(i) {
399
+ function Qr(i) {
400
400
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(i).filter(function(t) {
401
401
  return Object.propertyIsEnumerable.call(i, t);
402
402
  }) : [];
403
403
  }
404
- function Rt(i) {
405
- return Object.keys(i).concat(Jr(i));
404
+ function Dt(i) {
405
+ return Object.keys(i).concat(Qr(i));
406
406
  }
407
- function Yt(i, t) {
407
+ function Xt(i, t) {
408
408
  try {
409
409
  return t in i;
410
410
  } catch {
411
411
  return !1;
412
412
  }
413
413
  }
414
- function Qr(i, t) {
415
- return Yt(i, t) && !(Object.hasOwnProperty.call(i, t) && Object.propertyIsEnumerable.call(i, t));
414
+ function ei(i, t) {
415
+ return Xt(i, t) && !(Object.hasOwnProperty.call(i, t) && Object.propertyIsEnumerable.call(i, t));
416
416
  }
417
- function ei(i, t, e) {
417
+ function ti(i, t, e) {
418
418
  var r = {};
419
- return e.isMergeableObject(i) && Rt(i).forEach(function(s) {
420
- r[s] = ve(i[s], e);
421
- }), Rt(t).forEach(function(s) {
422
- Qr(i, s) || (Yt(i, s) && e.isMergeableObject(t[s]) ? r[s] = Xr(s, e)(i[s], t[s], e) : r[s] = ve(t[s], e));
419
+ return e.isMergeableObject(i) && Dt(i).forEach(function(s) {
420
+ r[s] = _e(i[s], e);
421
+ }), Dt(t).forEach(function(s) {
422
+ ei(i, s) || (Xt(i, s) && e.isMergeableObject(t[s]) ? r[s] = Jr(s, e)(i[s], t[s], e) : r[s] = _e(t[s], e));
423
423
  }), r;
424
424
  }
425
- function ae(i, t, e) {
426
- e = e || {}, e.arrayMerge = e.arrayMerge || Kr, e.isMergeableObject = e.isMergeableObject || Hr, e.cloneUnlessOtherwiseSpecified = ve;
425
+ function le(i, t, e) {
426
+ e = e || {}, e.arrayMerge = e.arrayMerge || Xr, e.isMergeableObject = e.isMergeableObject || jr, e.cloneUnlessOtherwiseSpecified = _e;
427
427
  var r = Array.isArray(t), s = Array.isArray(i), n = r === s;
428
- return n ? r ? e.arrayMerge(i, t, e) : ei(i, t, e) : ve(t, e);
428
+ return n ? r ? e.arrayMerge(i, t, e) : ti(i, t, e) : _e(t, e);
429
429
  }
430
- ae.all = function(t, e) {
430
+ le.all = function(t, e) {
431
431
  if (!Array.isArray(t))
432
432
  throw new Error("first argument should be an array");
433
433
  return t.reduce(function(r, s) {
434
- return ae(r, s, e);
434
+ return le(r, s, e);
435
435
  }, {});
436
436
  };
437
- var ti = ae, ri = ti;
438
- const Kt = /* @__PURE__ */ rt(ri), Ie = ["3.0"], ii = {
437
+ var ri = le, ii = ri;
438
+ const Jt = /* @__PURE__ */ st(ii), Ae = ["3.0"], si = {
439
439
  baidu: {
440
440
  version: "3.0",
441
441
  // 在build时会被静态替换, 导致使用者不能无法设置它
@@ -450,25 +450,25 @@ const Kt = /* @__PURE__ */ rt(ri), Ie = ["3.0"], ii = {
450
450
  libraries: ["places"]
451
451
  },
452
452
  here: {
453
- version: Ie[0],
453
+ version: Ae[0],
454
454
  key: ""
455
455
  }
456
456
  };
457
- let Xt;
458
- function Jt() {
459
- return Xt || C("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
457
+ let Qt;
458
+ function er() {
459
+ return Qt || C("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
460
460
  }
461
- function si(i) {
462
- i != null && (Xt = Kt(ii, i));
461
+ function ni(i) {
462
+ i != null && (Qt = Jt(si, i));
463
463
  }
464
- var Qe;
464
+ var tt;
465
465
  ((i) => {
466
466
  function t(e) {
467
467
  return e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight;
468
468
  }
469
469
  i.isScrollable = t;
470
- })(Qe || (Qe = {}));
471
- var le;
470
+ })(tt || (tt = {}));
471
+ var he;
472
472
  ((i) => {
473
473
  function t(h, o) {
474
474
  return h.length === o.length && h.every((l, d) => l === o[d]);
@@ -501,8 +501,8 @@ var le;
501
501
  return h.length > 0;
502
502
  }
503
503
  i.isNotEmpty = a;
504
- })(le || (le = {}));
505
- var he;
504
+ })(he || (he = {}));
505
+ var ce;
506
506
  ((i) => {
507
507
  function t(s, n) {
508
508
  const a = s.getLength();
@@ -526,20 +526,20 @@ var he;
526
526
  ];
527
527
  }
528
528
  i.listenChanged = r;
529
- })(he || (he = {}));
530
- function Qt(i, t, e) {
529
+ })(ce || (ce = {}));
530
+ function tr(i, t, e) {
531
531
  return i.addListener(t, e).remove;
532
532
  }
533
- function ni(i, t, e) {
533
+ function oi(i, t, e) {
534
534
  return i.addEventListener(t, e), () => i.removeEventListener(t, e);
535
535
  }
536
- function oi(i, t, e, r) {
536
+ function ai(i, t, e, r) {
537
537
  return i.addEventListener(t, e, r), () => i.removeEventListener(t, e, r);
538
538
  }
539
- function $t(i, t, e) {
539
+ function zt(i, t, e) {
540
540
  return i.addEventListener(t, e), () => i.removeEventListener(t, e);
541
541
  }
542
- class er {
542
+ class rr {
543
543
  constructor(t, e) {
544
544
  c(this, "eventMap", /* @__PURE__ */ new Map());
545
545
  c(this, "target", void 0);
@@ -549,9 +549,9 @@ class er {
549
549
  return this.target = t, this;
550
550
  }
551
551
  }
552
- class Ze {
552
+ class He {
553
553
  constructor(t, e) {
554
- c(this, "eventHub", new tr());
554
+ c(this, "eventHub", new ir());
555
555
  this.delegate = t, this.options = e;
556
556
  }
557
557
  notify(t) {
@@ -564,28 +564,28 @@ class Ze {
564
564
  return this.delegate.setTarget(t), this;
565
565
  }
566
566
  addEventListener(t, e) {
567
- if (le.includesTyped(this.options.types, t)) {
567
+ if (he.includesTyped(this.options.types, t)) {
568
568
  this.eventHub.hasListener(t) || this.options.onListen(t), this.eventHub.addEventListener(t, e);
569
569
  return;
570
570
  }
571
571
  this.delegate.addEventListener(t, e);
572
572
  }
573
573
  removeEventListener(t, e) {
574
- if (le.includesTyped(this.options.types, t)) {
574
+ if (he.includesTyped(this.options.types, t)) {
575
575
  this.eventHub.removeEventListener(t, e), this.eventHub.hasListener(t) || this.options.onCancel(t);
576
576
  return;
577
577
  }
578
578
  this.delegate.removeEventListener(t, e);
579
579
  }
580
580
  }
581
- const Bt = class extends er {
581
+ const At = class extends rr {
582
582
  addEventListener(t, e) {
583
- const r = Be(t, e);
583
+ const r = Se(t, e);
584
584
  if (this.eventMap.get(r)) {
585
585
  console.warn("listener已经添加过了", r, e);
586
586
  return;
587
587
  }
588
- const s = this.inner.addListener(Bt.EVENT_TYPE_MAP[t] || t, (n) => {
588
+ const s = this.inner.addListener(At.EVENT_TYPE_MAP[t] || t, (n) => {
589
589
  const a = {
590
590
  type: t,
591
591
  target: this.target,
@@ -596,13 +596,13 @@ const Bt = class extends er {
596
596
  this.eventMap.set(r, s);
597
597
  }
598
598
  removeEventListener(t, e) {
599
- const r = Be(t, e), s = this.eventMap.get(r);
599
+ const r = Se(t, e), s = this.eventMap.get(r);
600
600
  s ? (s.remove(), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
601
601
  }
602
602
  };
603
- let te = Bt;
603
+ let re = At;
604
604
  // 事件类型映射: tg => google
605
- c(te, "EVENT_TYPE_MAP", {
605
+ c(re, "EVENT_TYPE_MAP", {
606
606
  "center-changed": "center_changed",
607
607
  "zoom-changed": "zoom_changed",
608
608
  "radius-changed": "radius_changed",
@@ -618,9 +618,9 @@ c(te, "EVENT_TYPE_MAP", {
618
618
  "map-mouseup": "mouseup",
619
619
  "map-dblclick": "dblclick"
620
620
  });
621
- const ze = class extends er {
621
+ const Ne = class extends rr {
622
622
  addEventListener(t, e) {
623
- const r = Be(t, e);
623
+ const r = Se(t, e);
624
624
  if (this.eventMap.get(r)) {
625
625
  console.warn("listener已经添加过了", r, e);
626
626
  return;
@@ -633,17 +633,17 @@ const ze = class extends er {
633
633
  };
634
634
  n.point && (a.position = y.fromBaidu(n.point, this.coordTypeSupplier.coordType)), e.call(this.target, a);
635
635
  };
636
- this.inner.addEventListener(ze.EVENT_TYPE_MAP[t] || t, s), this.eventMap.set(r, s);
636
+ this.inner.addEventListener(Ne.EVENT_TYPE_MAP[t] || t, s), this.eventMap.set(r, s);
637
637
  }
638
638
  removeEventListener(t, e) {
639
- const r = Be(t, e), s = this.eventMap.get(r);
640
- s ? (this.inner.removeEventListener(ze.EVENT_TYPE_MAP[t] || t, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
639
+ const r = Se(t, e), s = this.eventMap.get(r);
640
+ s ? (this.inner.removeEventListener(Ne.EVENT_TYPE_MAP[t] || t, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
641
641
  }
642
642
  };
643
- let oe = ze;
643
+ let ae = Ne;
644
644
  // cSpell:words clickclose
645
645
  // 事件类型映射, tg => baidu
646
- c(oe, "EVENT_TYPE_MAP", {
646
+ c(ae, "EVENT_TYPE_MAP", {
647
647
  drag: "dragging",
648
648
  closeclick: "clickclose",
649
649
  // baidu不支持contextmenu事件, 将其映射为rightclick
@@ -651,7 +651,7 @@ c(oe, "EVENT_TYPE_MAP", {
651
651
  "zoom-changed": "zoomend",
652
652
  "map-type-changed": "maptypechange"
653
653
  });
654
- class tr {
654
+ class ir {
655
655
  constructor() {
656
656
  c(this, "typeMap", /* @__PURE__ */ new Map());
657
657
  }
@@ -661,7 +661,7 @@ class tr {
661
661
  }
662
662
  removeEventListener(t, e) {
663
663
  const r = this.typeMap.get(t);
664
- r && le.remove(r, e);
664
+ r && he.remove(r, e);
665
665
  }
666
666
  hasListener(t) {
667
667
  const e = this.typeMap.get(t);
@@ -672,14 +672,14 @@ class tr {
672
672
  e && e.forEach((r) => r.call(t.target, t));
673
673
  }
674
674
  }
675
- class Dt {
675
+ class Nt {
676
676
  /**
677
677
  * `keys`和`values`数组中可以有相同的值, 若存在相同值, 则index越小的优先级越高
678
678
  */
679
679
  constructor(t, e) {
680
680
  c(this, "keyToValue", /* @__PURE__ */ new Map());
681
681
  c(this, "valueToKey", /* @__PURE__ */ new Map());
682
- ne(t.length === e.length);
682
+ oe(t.length === e.length);
683
683
  for (let r = t.length - 1; r >= 0; r--)
684
684
  this.keyToValue.set(t[r], e[r]), this.valueToKey.set(e[r], t[r]);
685
685
  }
@@ -690,7 +690,7 @@ class Dt {
690
690
  return this.keyToValue.get(t) ?? C();
691
691
  }
692
692
  }
693
- class ai {
693
+ class li {
694
694
  constructor(t, e = 10) {
695
695
  c(this, "map", /* @__PURE__ */ new Map());
696
696
  this.values = t, this.maxSize4Debug = e;
@@ -719,7 +719,7 @@ class ai {
719
719
  return this.getOrNull(t, e) ?? C(`key(${e})不存在与valueMap(${this.getValueMap(t)})中`);
720
720
  }
721
721
  }
722
- class me {
722
+ class fe {
723
723
  constructor(t) {
724
724
  c(this, "value");
725
725
  this.creator = t;
@@ -728,7 +728,7 @@ class me {
728
728
  return this.value === void 0 && (this.value = this.creator()), this.value;
729
729
  }
730
730
  }
731
- var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-center", i.TOP_RIGHT = "top-right", i.BOTTOM_LEFT = "bottom-left", i.BOTTOM_CENTER = "bottom-center", i.BOTTOM_RIGHT = "bottom-right", i.LEFT_TOP = "left-top", i.LEFT_CENTER = "left-center", i.LEFT_BOTTOM = "left-bottom", i.RIGHT_TOP = "right-top", i.RIGHT_CENTER = "right-center", i.RIGHT_BOTTOM = "right-bottom", i))(k || {}), R;
731
+ var I = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-center", i.TOP_RIGHT = "top-right", i.BOTTOM_LEFT = "bottom-left", i.BOTTOM_CENTER = "bottom-center", i.BOTTOM_RIGHT = "bottom-right", i.LEFT_TOP = "left-top", i.LEFT_CENTER = "left-center", i.LEFT_BOTTOM = "left-bottom", i.RIGHT_TOP = "right-top", i.RIGHT_CENTER = "right-center", i.RIGHT_BOTTOM = "right-bottom", i))(I || {}), $;
732
732
  ((i) => {
733
733
  let t, e;
734
734
  const r = [
@@ -747,7 +747,7 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
747
747
  /* RIGHT_BOTTOM */
748
748
  ];
749
749
  function s() {
750
- return t || (t = new Dt(r, [
750
+ return t || (t = new Nt(r, [
751
751
  /* | @tg/map |名字相同| baidu | */
752
752
  /* TOP_LEFT = */
753
753
  BMAP_ANCHOR_TOP_LEFT,
@@ -777,7 +777,7 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
777
777
  }
778
778
  i.getBaidu = s;
779
779
  function n() {
780
- return e || (e = new Dt(r, [
780
+ return e || (e = new Nt(r, [
781
781
  google.maps.ControlPosition.TOP_LEFT,
782
782
  google.maps.ControlPosition.TOP_CENTER,
783
783
  google.maps.ControlPosition.TOP_RIGHT,
@@ -793,17 +793,17 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
793
793
  ])), e;
794
794
  }
795
795
  i.getGoogle = n;
796
- })(R || (R = {}));
797
- class li {
796
+ })($ || ($ = {}));
797
+ class hi {
798
798
  constructor(t) {
799
799
  /** 实际添加到地图中的control对象 */
800
800
  c(this, "inner");
801
801
  this.position = t;
802
802
  }
803
803
  }
804
- class rr {
804
+ class sr {
805
805
  }
806
- class st extends rr {
806
+ class ot extends sr {
807
807
  constructor(t, e) {
808
808
  super(), this.inner = t, this.position = e;
809
809
  }
@@ -814,10 +814,10 @@ class st extends rr {
814
814
  t ? this.inner.show() : this.inner.hide();
815
815
  }
816
816
  getPosition() {
817
- return this.position ?? R.getBaidu().toKey(this.inner.getAnchor());
817
+ return this.position ?? $.getBaidu().toKey(this.inner.getAnchor());
818
818
  }
819
819
  setPosition(t) {
820
- this.position = t, this.inner.setAnchor(R.getBaidu().toValue(t));
820
+ this.position = t, this.inner.setAnchor($.getBaidu().toValue(t));
821
821
  }
822
822
  addTo(t) {
823
823
  t.innerMap.addControl(this.inner);
@@ -826,7 +826,7 @@ class st extends rr {
826
826
  t.innerMap.removeControl(this.inner);
827
827
  }
828
828
  }
829
- class nt extends rr {
829
+ class at extends sr {
830
830
  constructor(e, r) {
831
831
  super();
832
832
  c(this, "visible", !1);
@@ -853,7 +853,7 @@ class nt extends rr {
853
853
  }
854
854
  onCreateOptions() {
855
855
  return {
856
- position: R.getGoogle().toValue(this.position)
856
+ position: $.getGoogle().toValue(this.position)
857
857
  };
858
858
  }
859
859
  tryUpdateOptions() {
@@ -863,8 +863,8 @@ class nt extends rr {
863
863
  });
864
864
  }
865
865
  }
866
- var ir = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(ir || {});
867
- class B {
866
+ var nr = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(nr || {});
867
+ class S {
868
868
  constructor(t, e, r, s) {
869
869
  this.id = t, this.baidu = e, this.google = r, this.googleCoordType = s;
870
870
  }
@@ -872,7 +872,7 @@ class B {
872
872
  return this.id;
873
873
  }
874
874
  getBaiduCoordType() {
875
- return S.bd09;
875
+ return B.bd09;
876
876
  }
877
877
  asBaiduMapType() {
878
878
  return this.baidu();
@@ -885,19 +885,19 @@ class B {
885
885
  return this.google();
886
886
  }
887
887
  asGoogleMapType() {
888
- it("google的内置地图没有对应的实例");
888
+ nt("google的内置地图没有对应的实例");
889
889
  }
890
890
  }
891
- class zs {
891
+ class Ns {
892
892
  constructor(t, e) {
893
- c(this, "baiduLayerCached", new me(() => {
893
+ c(this, "baiduLayerCached", new fe(() => {
894
894
  const t = new BMap.TileLayer({});
895
895
  return t.getTilesUrl = (e, r) => {
896
896
  const s = Math.pow(2, r - 1), n = e.x + s, a = s - 1 - e.y;
897
897
  return this.options.getTileUrl({ x: n, y: a }, r);
898
898
  }, t;
899
899
  }));
900
- c(this, "baiduMapTypeCached", new me(() => {
900
+ c(this, "baiduMapTypeCached", new fe(() => {
901
901
  const t = new BMap.MapType(this.options.name, this.baiduLayerCached.get(), {
902
902
  maxZoom: this.options.maxZoom,
903
903
  minZoom: this.options.minZoom,
@@ -905,7 +905,7 @@ class zs {
905
905
  });
906
906
  return t.__baidu_map_type__ = this, t;
907
907
  }));
908
- c(this, "googleCached", new me(() => {
908
+ c(this, "googleCached", new fe(() => {
909
909
  const t = new google.maps.ImageMapType({
910
910
  getTileUrl: (e, r) => this.options.getTileUrl(e, r),
911
911
  tileSize: new google.maps.Size(256, 256),
@@ -937,13 +937,13 @@ class zs {
937
937
  return this.googleCached.get();
938
938
  }
939
939
  asGoogleLayer() {
940
- it("这个方法不会被调用");
940
+ nt("这个方法不会被调用");
941
941
  }
942
942
  }
943
- class hi {
943
+ class ci {
944
944
  constructor() {
945
- c(this, "baiduCache", new me(() => new BMap.TrafficLayer()));
946
- c(this, "googleCache", new me(() => new google.maps.TrafficLayer()));
945
+ c(this, "baiduCache", new fe(() => new BMap.TrafficLayer()));
946
+ c(this, "googleCache", new fe(() => new google.maps.TrafficLayer()));
947
947
  }
948
948
  asBaiduLayer() {
949
949
  return this.baiduCache.get();
@@ -952,21 +952,21 @@ class hi {
952
952
  return this.googleCache.get();
953
953
  }
954
954
  }
955
- var A;
955
+ var R;
956
956
  ((i) => {
957
- i.NORMAL = new B("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, S.gcj02), i.SATELLITE = new B("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, S.wgs84), i.HYBRID = new B("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, S.gcj02), i.TERRAIN = new B("terrain", () => (
957
+ i.NORMAL = new S("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, B.gcj02), i.SATELLITE = new S("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, B.wgs84), i.HYBRID = new S("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, B.gcj02), i.TERRAIN = new S("terrain", () => (
958
958
  /* 三维 */
959
959
  BMAP_PERSPECTIVE_MAP
960
960
  ), () => (
961
961
  /* 地形 */
962
962
  google.maps.MapTypeId.TERRAIN
963
- ), S.wgs84), i.BUILD_IN_MAP_TYPES = new ai([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
964
- })(A || (A = {}));
965
- var sr = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(sr || {});
966
- const nr = [A.NORMAL, A.SATELLITE, A.HYBRID];
967
- class ot extends st {
963
+ ), B.wgs84), i.BUILD_IN_MAP_TYPES = new li([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
964
+ })(R || (R = {}));
965
+ var or = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(or || {});
966
+ const ar = [R.NORMAL, R.SATELLITE, R.HYBRID];
967
+ class lt extends ot {
968
968
  static create(t) {
969
- const e = t.mapTypes ?? nr, r = {
969
+ const e = t.mapTypes ?? ar, r = {
970
970
  default: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
971
971
  horizontal: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
972
972
  dropdown: BMAP_MAPTYPE_CONTROL_DROPDOWN
@@ -974,88 +974,88 @@ class ot extends st {
974
974
  type: t.type && r[t.type],
975
975
  mapTypes: e.map((n) => n.asBaiduMapType())
976
976
  });
977
- return t.position && s.setAnchor(R.getBaidu().toValue(t.position)), new ot(s, t.position);
977
+ return t.position && s.setAnchor($.getBaidu().toValue(t.position)), new lt(s, t.position);
978
978
  }
979
979
  }
980
- const se = class extends nt {
981
- constructor(t = "default", e = k.TOP_LEFT, r = nr) {
982
- super("mapType", e), this.type = t, this.mapTypes = r, se.type2google || (se.type2google = {
980
+ const ne = class extends at {
981
+ constructor(t = "default", e = I.TOP_LEFT, r = ar) {
982
+ super("mapType", e), this.type = t, this.mapTypes = r, ne.type2google || (ne.type2google = {
983
983
  default: google.maps.MapTypeControlStyle.DEFAULT,
984
984
  horizontal: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
985
985
  dropdown: google.maps.MapTypeControlStyle.DROPDOWN_MENU
986
986
  });
987
987
  }
988
988
  static create(t) {
989
- return new se(t.type, t.position, t.mapTypes);
989
+ return new ne(t.type, t.position, t.mapTypes);
990
990
  }
991
991
  onCreateOptions() {
992
992
  const t = super.onCreateOptions();
993
- return t.style = se.type2google[this.type], t.mapTypeIds = this.mapTypes.map((e) => e instanceof B ? e.getGoogleMapTypeId() : e.id), t;
993
+ return t.style = ne.type2google[this.type], t.mapTypeIds = this.mapTypes.map((e) => e instanceof S ? e.getGoogleMapTypeId() : e.id), t;
994
994
  }
995
995
  addTo(t) {
996
996
  super.addTo(t), this.mapTypes.forEach((e) => {
997
- e instanceof B || t.innerMap.mapTypes.set(e.id, e.asGoogleMapType());
997
+ e instanceof S || t.innerMap.mapTypes.set(e.id, e.asGoogleMapType());
998
998
  });
999
999
  }
1000
1000
  };
1001
- let Pe = se;
1002
- c(Pe, "type2google");
1003
- class at extends st {
1001
+ let ke = ne;
1002
+ c(ke, "type2google");
1003
+ class ht extends ot {
1004
1004
  static create(t) {
1005
1005
  const e = new BMap.ScaleControl({
1006
- anchor: t.position && R.getBaidu().toValue(t.position)
1006
+ anchor: t.position && $.getBaidu().toValue(t.position)
1007
1007
  });
1008
- return new at(e, t.position);
1008
+ return new ht(e, t.position);
1009
1009
  }
1010
1010
  }
1011
- class lt extends nt {
1011
+ class ct extends at {
1012
1012
  static create(t) {
1013
- return new lt(t.position);
1013
+ return new ct(t.position);
1014
1014
  }
1015
- constructor(t = k.BOTTOM_RIGHT) {
1015
+ constructor(t = I.BOTTOM_RIGHT) {
1016
1016
  super("scale", t);
1017
1017
  }
1018
1018
  }
1019
- class ht extends st {
1019
+ class dt extends ot {
1020
1020
  static create(t) {
1021
1021
  const e = new BMap.NavigationControl({
1022
1022
  type: BMAP_NAVIGATION_CONTROL_ZOOM,
1023
1023
  // enableGeolocation: true,
1024
- anchor: t.position && R.getBaidu().toValue(t.position)
1024
+ anchor: t.position && $.getBaidu().toValue(t.position)
1025
1025
  });
1026
- return new ht(e, t.position);
1026
+ return new dt(e, t.position);
1027
1027
  }
1028
1028
  }
1029
- class ct extends nt {
1029
+ class ut extends at {
1030
1030
  static create(t) {
1031
- return new ct(t.position);
1031
+ return new ut(t.position);
1032
1032
  }
1033
- constructor(t = k.RIGHT_BOTTOM) {
1033
+ constructor(t = I.RIGHT_BOTTOM) {
1034
1034
  super("zoom", t);
1035
1035
  }
1036
1036
  }
1037
- function ci(i) {
1037
+ function di(i) {
1038
1038
  let t, e, r;
1039
- const s = "The Google Maps JavaScript API", n = "google", a = "importLibrary", h = "__ib__", o = document, l = window, d = l[n] || (l[n] = {}), u = d.maps || (d.maps = {}), p = /* @__PURE__ */ new Set(), b = new URLSearchParams(), _ = () => t || (t = new Promise(async (M, g) => {
1039
+ const s = "The Google Maps JavaScript API", n = "google", a = "importLibrary", h = "__ib__", o = document, l = window, d = l[n] || (l[n] = {}), u = d.maps || (d.maps = {}), p = /* @__PURE__ */ new Set(), b = new URLSearchParams(), _ = () => t || (t = new Promise(async (T, g) => {
1040
1040
  var f;
1041
1041
  await (e = o.createElement("script")), b.set("libraries", [...p] + "");
1042
1042
  for (r in i)
1043
1043
  b.set(r.replace(/[A-Z]/g, (v) => "_" + v[0].toLowerCase()), i[r]);
1044
- b.set("callback", n + ".maps." + h), e.src = `https://maps.${n}apis.com/maps/api/js?` + b, u[h] = M, e.onerror = () => t = g(Error(s + " could not load.")), e.nonce = ((f = o.querySelector("script[nonce]")) == null ? void 0 : f.nonce) || "", o.head.append(e);
1044
+ b.set("callback", n + ".maps." + h), e.src = `https://maps.${n}apis.com/maps/api/js?` + b, u[h] = T, e.onerror = () => t = g(Error(s + " could not load.")), e.nonce = ((f = o.querySelector("script[nonce]")) == null ? void 0 : f.nonce) || "", o.head.append(e);
1045
1045
  }));
1046
- u[a] ? console.warn(s + " only loads once. Ignoring:", i) : u[a] = (M, ...g) => p.add(M) && _().then(() => u[a](M, ...g));
1046
+ u[a] ? console.warn(s + " only loads once. Ignoring:", i) : u[a] = (T, ...g) => p.add(T) && _().then(() => u[a](T, ...g));
1047
1047
  }
1048
- let di, ui;
1049
- const X = {
1048
+ let ui, pi;
1049
+ const J = {
1050
1050
  /** Google的坐标0点 */
1051
1051
  get LATLNG_ZERO() {
1052
- return di ?? (di = new google.maps.LatLng({ lat: 0, lng: 0 }));
1052
+ return ui ?? (ui = new google.maps.LatLng({ lat: 0, lng: 0 }));
1053
1053
  },
1054
1054
  get BOUNDS_ZERO() {
1055
- return ui ?? (ui = new google.maps.LatLngBounds(this.LATLNG_ZERO, this.LATLNG_ZERO));
1055
+ return pi ?? (pi = new google.maps.LatLngBounds(this.LATLNG_ZERO, this.LATLNG_ZERO));
1056
1056
  }
1057
1057
  };
1058
- function or(i, t = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
1058
+ function lr(i, t = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
1059
1059
  for (const e of i)
1060
1060
  for (const r of e.types)
1061
1061
  switch (r) {
@@ -1080,22 +1080,22 @@ function or(i, t = { country: "", province: "", city: "", district: "", street:
1080
1080
  }
1081
1081
  return t;
1082
1082
  }
1083
- function ar(i, t) {
1083
+ function hr(i, t) {
1084
1084
  var r;
1085
- const e = i.address_components && or(i.address_components);
1085
+ const e = i.address_components && lr(i.address_components);
1086
1086
  return {
1087
1087
  country: (e == null ? void 0 : e.country) ?? "",
1088
1088
  province: (e == null ? void 0 : e.province) ?? "",
1089
1089
  city: (e == null ? void 0 : e.city) ?? "",
1090
1090
  id: i.place_id ?? "",
1091
1091
  address: i.formatted_address ?? "",
1092
- position: y.fromGoogle(((r = i.geometry) == null ? void 0 : r.location) ?? X.LATLNG_ZERO, t.coordType),
1092
+ position: y.fromGoogle(((r = i.geometry) == null ? void 0 : r.location) ?? J.LATLNG_ZERO, t.coordType),
1093
1093
  title: i.name ?? ""
1094
1094
  };
1095
1095
  }
1096
- class lr {
1096
+ class cr {
1097
1097
  }
1098
- class pi extends lr {
1098
+ class gi extends cr {
1099
1099
  constructor(e, r) {
1100
1100
  super();
1101
1101
  c(this, "inner");
@@ -1111,7 +1111,7 @@ class pi extends lr {
1111
1111
  this.inner.setBounds(e.toGoogle(this.map.coordType));
1112
1112
  }
1113
1113
  addResultListener(e) {
1114
- return Qt(this.inner, "place_changed", () => {
1114
+ return tr(this.inner, "place_changed", () => {
1115
1115
  const r = this.inner.getPlace(), s = {
1116
1116
  title: r.name ?? "",
1117
1117
  province: "",
@@ -1121,11 +1121,11 @@ class pi extends lr {
1121
1121
  streetNumber: "",
1122
1122
  country: ""
1123
1123
  };
1124
- r.address_components && or(r.address_components, s), e(s);
1124
+ r.address_components && lr(r.address_components, s), e(s);
1125
1125
  });
1126
1126
  }
1127
1127
  }
1128
- class gi extends lr {
1128
+ class mi extends cr {
1129
1129
  constructor(e, r) {
1130
1130
  super();
1131
1131
  c(this, "inner");
@@ -1139,7 +1139,7 @@ class gi extends lr {
1139
1139
  const s = () => {
1140
1140
  this.inner.setLocation(this.map.innerMap);
1141
1141
  };
1142
- this.removeableArray.push($t(this.map, "center-changed", s)), this.removeableArray.push($t(this.map, "zoom-changed", s));
1142
+ this.removeableArray.push(zt(this.map, "center-changed", s)), this.removeableArray.push(zt(this.map, "zoom-changed", s));
1143
1143
  }
1144
1144
  }
1145
1145
  setBounds(e) {
@@ -1147,14 +1147,14 @@ class gi extends lr {
1147
1147
  }
1148
1148
  addResultListener(e) {
1149
1149
  let r = 0;
1150
- const s = ni(this.inner, "confirm", (a) => {
1150
+ const s = oi(this.inner, "confirm", (a) => {
1151
1151
  const h = a.item.value;
1152
1152
  r = Date.now(), e(Object.assign({
1153
1153
  title: h.business,
1154
1154
  country: ""
1155
1155
  // Baidu的自动完成只支持中国
1156
1156
  }, h));
1157
- }), n = oi(this.input, "keyup", (a) => {
1157
+ }), n = ai(this.input, "keyup", (a) => {
1158
1158
  a.key === "Enter" && Date.now() - r > 100 && e({
1159
1159
  title: this.input.value,
1160
1160
  country: "",
@@ -1170,47 +1170,47 @@ class gi extends lr {
1170
1170
  };
1171
1171
  }
1172
1172
  }
1173
- class hr {
1173
+ class dr {
1174
1174
  constructor(t) {
1175
1175
  this.options = t;
1176
1176
  }
1177
1177
  }
1178
- const It = class extends hr {
1178
+ const Rt = class extends dr {
1179
1179
  /** @see https://developers.google.com/maps/documentation/urls/get-started#directions-action */
1180
1180
  directions(t, e, r) {
1181
- const s = new URL("dir/", It.BASE_URL), n = new URLSearchParams(Object.entries({
1181
+ const s = new URL("dir/", Rt.BASE_URL), n = new URLSearchParams(Object.entries({
1182
1182
  api: "1",
1183
- origin: Y.toString(t, S.wgs84),
1184
- destination: Y.toString(e, S.wgs84),
1183
+ origin: K.toString(t, B.wgs84),
1184
+ destination: K.toString(e, B.wgs84),
1185
1185
  travelmode: r
1186
- }).filter(qt));
1186
+ }).filter(Kt));
1187
1187
  return s.search = "?" + n.toString(), s;
1188
1188
  }
1189
1189
  };
1190
- let ke = It;
1191
- c(ke, "BASE_URL", "https://www.google.com/maps/");
1192
- const At = class extends hr {
1190
+ let Ie = Rt;
1191
+ c(Ie, "BASE_URL", "https://www.google.com/maps/");
1192
+ const $t = class extends dr {
1193
1193
  /** @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 */
1194
1194
  directions(t, e, r = "driving") {
1195
- const s = new URL("direction", At.BASE_URL), n = Y.getCoordType(e) ?? Y.getCoordType(t) ?? S.bd09, a = Y.toString(e, n), h = new URLSearchParams(Object.entries({
1195
+ const s = new URL("direction", $t.BASE_URL), n = K.getCoordType(e) ?? K.getCoordType(t) ?? B.bd09, a = K.toString(e, n), h = new URLSearchParams(Object.entries({
1196
1196
  // baidu地图, 一定要有起点, 故这里用终点当起点, 防止导航失败
1197
- origin: Y.toString(t, n) ?? (typeof e != "string" ? `name:请选择起点|latlng:${a}` : a),
1197
+ origin: K.toString(t, n) ?? (typeof e != "string" ? `name:请选择起点|latlng:${a}` : a),
1198
1198
  destination: a,
1199
1199
  // 默认就是bd09
1200
- coord_type: n === S.bd09 ? void 0 : n,
1200
+ coord_type: n === B.bd09 ? void 0 : n,
1201
1201
  mode: r,
1202
1202
  output: "html",
1203
1203
  region: "中国",
1204
1204
  src: window.location.hostname
1205
- }).filter(qt));
1205
+ }).filter(Kt));
1206
1206
  return s.search = "?" + h.toString(), s;
1207
1207
  }
1208
1208
  };
1209
- let Se = At;
1210
- c(Se, "BASE_URL", "https://api.map.baidu.com/");
1211
- let mi = class cr {
1209
+ let Be = $t;
1210
+ c(Be, "BASE_URL", "https://api.map.baidu.com/");
1211
+ let fi = class ur {
1212
1212
  constructor(t, e, r) {
1213
- this.extend(cr, 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;
1213
+ this.extend(ur, 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;
1214
1214
  var s = r || {};
1215
1215
  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();
1216
1216
  var n = this;
@@ -1629,7 +1629,7 @@ let mi = class cr {
1629
1629
  if (r && r.isMarkerInClusterBounds(t))
1630
1630
  r.addMarker(t);
1631
1631
  else {
1632
- var o = new fi(this);
1632
+ var o = new yi(this);
1633
1633
  o.addMarker(t), this.clusters_.push(o);
1634
1634
  }
1635
1635
  }
@@ -1646,9 +1646,9 @@ let mi = class cr {
1646
1646
  ), e = this.getExtendedBounds(t), r = 0, s; s = this.markers_[r]; r++)
1647
1647
  !s.isAdded && this.isMarkerInBounds_(s, e) && this.addToClosestCluster_(s);
1648
1648
  }
1649
- }, fi = class {
1649
+ }, yi = class {
1650
1650
  constructor(t) {
1651
- 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 dt(
1651
+ 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 pt(
1652
1652
  this,
1653
1653
  t.getStyles(),
1654
1654
  t.getGridSize()
@@ -1782,9 +1782,9 @@ let mi = class cr {
1782
1782
  this.clusterIcon_.setCenter(this.center_), this.clusterIcon_.setSums(a), this.clusterIcon_.show();
1783
1783
  }
1784
1784
  };
1785
- class dt {
1785
+ class pt {
1786
1786
  constructor(t, e, r) {
1787
- t.getMarkerClusterer().extend(dt, google.maps.OverlayView), this.styles_ = e, this.padding_ = r || 0, this.cluster_ = t, this.center_ = null, this.map_ = t.getMap(), this.div_ = null, this.sums_ = null, this.visible_ = !1, this.setMap(this.map_);
1787
+ t.getMarkerClusterer().extend(pt, google.maps.OverlayView), this.styles_ = e, this.padding_ = r || 0, this.cluster_ = t, this.center_ = null, this.map_ = t.getMap(), this.div_ = null, this.sums_ = null, this.visible_ = !1, this.setMap(this.map_);
1788
1788
  }
1789
1789
  /**
1790
1790
  * Triggers the clusterclick event and zoom's if the option is set.
@@ -1915,11 +1915,11 @@ class dt {
1915
1915
  ), e.join("");
1916
1916
  }
1917
1917
  }
1918
- var dr = { exports: {} };
1918
+ var pr = { exports: {} };
1919
1919
  (function(i, t) {
1920
1920
  (function(e, r) {
1921
1921
  i.exports = r();
1922
- })(Ft, function() {
1922
+ })(Yt, function() {
1923
1923
  var e, r = e = r || { version: "1.3.8" }, s = {};
1924
1924
  r.guid = "$BAIDU$", s[r.guid] = s[r.guid] || {}, r.dom = r.dom || {}, r.dom.g = function(o) {
1925
1925
  return typeof o == "string" || o instanceof String ? document.getElementById(o) : o && o.nodeName && (o.nodeType == 1 || o.nodeType == 9) ? o : null;
@@ -1954,11 +1954,11 @@ var dr = { exports: {} };
1954
1954
  o = r.dom.g(o);
1955
1955
  var l = r.dom.getDocument(o), d = r.browser, u = r.dom.getStyle;
1956
1956
  d.isGecko > 0 && l.getBoxObjectFor && u(o, "position") == "absolute" && (o.style.top === "" || o.style.left);
1957
- var p = { left: 0, top: 0 }, b = d.ie && !d.isStrict ? l.body : l.documentElement, _, M;
1957
+ var p = { left: 0, top: 0 }, b = d.ie && !d.isStrict ? l.body : l.documentElement, _, T;
1958
1958
  if (o == b)
1959
1959
  return p;
1960
1960
  if (o.getBoundingClientRect) {
1961
- M = o.getBoundingClientRect(), p.left = Math.floor(M.left) + Math.max(l.documentElement.scrollLeft, l.body.scrollLeft), p.top = Math.floor(M.top) + Math.max(l.documentElement.scrollTop, l.body.scrollTop), p.left -= l.documentElement.clientLeft, p.top -= l.documentElement.clientTop;
1961
+ T = o.getBoundingClientRect(), p.left = Math.floor(T.left) + Math.max(l.documentElement.scrollLeft, l.body.scrollLeft), p.top = Math.floor(T.top) + Math.max(l.documentElement.scrollTop, l.body.scrollTop), p.left -= l.documentElement.clientLeft, p.top -= l.documentElement.clientTop;
1962
1962
  var g = l.body, f = parseInt(u(g, "borderLeftWidth")), v = parseInt(u(g, "borderTopWidth"));
1963
1963
  d.ie && !d.isStrict && (p.left -= isNaN(f) ? 2 : f, p.top -= isNaN(v) ? 2 : v);
1964
1964
  } else {
@@ -1978,8 +1978,8 @@ var dr = { exports: {} };
1978
1978
  l = l.replace(/^on/i, ""), o = r.dom._g(o);
1979
1979
  var u = function(g) {
1980
1980
  d.call(o, g);
1981
- }, p = r.event._listeners, b = r.event._eventFilter, _, M = l;
1982
- return l = l.toLowerCase(), b && b[l] && (_ = b[l](o, l, u), M = _.type, u = _.listener), o.addEventListener ? o.addEventListener(M, u, !1) : o.attachEvent && o.attachEvent("on" + M, u), p[p.length] = [o, l, d, u, M], o;
1981
+ }, p = r.event._listeners, b = r.event._eventFilter, _, T = l;
1982
+ return l = l.toLowerCase(), b && b[l] && (_ = b[l](o, l, u), T = _.type, u = _.listener), o.addEventListener ? o.addEventListener(T, u, !1) : o.attachEvent && o.attachEvent("on" + T, u), p[p.length] = [o, l, d, u, T], o;
1983
1983
  }, r.on = r.event.on, function() {
1984
1984
  var o = s[r.guid];
1985
1985
  r.lang.guid = function() {
@@ -2078,24 +2078,24 @@ var dr = { exports: {} };
2078
2078
  l.x -= Math.ceil(parseInt(o.width) / 2), l.y -= Math.ceil(parseInt(o.height) / 2), o.left = l.x + "px", o.top = l.y + "px";
2079
2079
  }
2080
2080
  }, h.prototype._buildCssText = function(o) {
2081
- var l = o.url, d = o.size, u = o.anchor, p = o.offset, b = o.textColor || "black", _ = o.textSize || 10, M = [];
2082
- if (this._zIndex && M.push("z-index:" + this._zIndex + ";"), e.browser.ie < 7)
2083
- M.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="' + l + '");');
2081
+ var l = o.url, d = o.size, u = o.anchor, p = o.offset, b = o.textColor || "black", _ = o.textSize || 10, T = [];
2082
+ if (this._zIndex && T.push("z-index:" + this._zIndex + ";"), e.browser.ie < 7)
2083
+ T.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="' + l + '");');
2084
2084
  else {
2085
- M.push("background-image:url(" + l + ");");
2085
+ T.push("background-image:url(" + l + ");");
2086
2086
  var g = "0 0";
2087
- p instanceof BMap.Size && (g = p.width + "px " + p.height + "px"), M.push("background-position:" + g + ";");
2087
+ p instanceof BMap.Size && (g = p.width + "px " + p.height + "px"), T.push("background-position:" + g + ";");
2088
2088
  }
2089
- return d instanceof BMap.Size && (u instanceof BMap.Size ? (u.height > 0 && u.height < d.height && M.push("height:" + (d.height - u.height) + "px; padding-top:" + u.height + "px;"), u.width > 0 && u.width < d.width && M.push("width:" + (d.width - u.width) + "px; padding-left:" + u.width + "px;")) : (M.push("height:" + d.height + "px; line-height:" + d.height + "px;"), M.push("width:" + d.width + "px; text-align:center;"))), M.push("cursor:pointer; color:" + b + "; position:absolute; font-size:" + _ + "px; font-family:Arial,sans-serif; font-weight:bold"), M.join("");
2089
+ return d instanceof BMap.Size && (u instanceof BMap.Size ? (u.height > 0 && u.height < d.height && T.push("height:" + (d.height - u.height) + "px; padding-top:" + u.height + "px;"), u.width > 0 && u.width < d.width && T.push("width:" + (d.width - u.width) + "px; padding-left:" + u.width + "px;")) : (T.push("height:" + d.height + "px; line-height:" + d.height + "px;"), T.push("width:" + d.width + "px; text-align:center;"))), T.push("cursor:pointer; color:" + b + "; position:absolute; font-size:" + _ + "px; font-family:Arial,sans-serif; font-weight:bold"), T.join("");
2090
2090
  }, h.prototype._bind = function() {
2091
2091
  if (!this._domElement)
2092
2092
  return;
2093
2093
  var o = this, l = this._map, d = e.lang.Event;
2094
2094
  function u(p, b) {
2095
- var _ = p.srcElement || p.target, M = p.clientX || p.pageX, g = p.clientY || p.pageY;
2096
- if (p && b && M && g && _) {
2095
+ var _ = p.srcElement || p.target, T = p.clientX || p.pageX, g = p.clientY || p.pageY;
2096
+ if (p && b && T && g && _) {
2097
2097
  var f = e.dom.getPosition(l.getContainer());
2098
- b.pixel = new BMap.Pixel(M - f.left, g - f.top), b.point = l.pixelToPoint(b.pixel);
2098
+ b.pixel = new BMap.Pixel(T - f.left, g - f.top), b.point = l.pixelToPoint(b.pixel);
2099
2099
  }
2100
2100
  return b;
2101
2101
  }
@@ -2108,25 +2108,25 @@ var dr = { exports: {} };
2108
2108
  });
2109
2109
  }, h;
2110
2110
  });
2111
- })(dr);
2112
- var yi = dr.exports;
2113
- const zt = /* @__PURE__ */ rt(yi);
2114
- var ur = function(i, t, e) {
2115
- t = vi(t);
2111
+ })(pr);
2112
+ var vi = pr.exports;
2113
+ const Gt = /* @__PURE__ */ st(vi);
2114
+ var gr = function(i, t, e) {
2115
+ t = _i(t);
2116
2116
  var r = i.pointToPixel(t.getNorthEast()), s = i.pointToPixel(t.getSouthWest());
2117
2117
  r.x += e, r.y -= e, s.x -= e, s.y += e;
2118
2118
  var n = i.pixelToPoint(r), a = i.pixelToPoint(s);
2119
2119
  return new BMap.Bounds(a, n);
2120
- }, vi = function(i) {
2121
- var t = Le(i.getNorthEast().lng, -180, 180), e = Le(i.getSouthWest().lng, -180, 180), r = Le(i.getNorthEast().lat, -74, 74), s = Le(i.getSouthWest().lat, -74, 74);
2120
+ }, _i = function(i) {
2121
+ var t = xe(i.getNorthEast().lng, -180, 180), e = xe(i.getSouthWest().lng, -180, 180), r = xe(i.getNorthEast().lat, -74, 74), s = xe(i.getSouthWest().lat, -74, 74);
2122
2122
  return new BMap.Bounds(new BMap.Point(e, s), new BMap.Point(t, r));
2123
- }, Le = function(i, t, e) {
2123
+ }, xe = function(i, t, e) {
2124
2124
  return t && (i = Math.max(i, t)), e && (i = Math.min(i, e)), i;
2125
- }, pr = function(i) {
2125
+ }, mr = function(i) {
2126
2126
  return Object.prototype.toString.call(i) === "[object Array]";
2127
- }, gr = function(i, t) {
2127
+ }, fr = function(i, t) {
2128
2128
  var e = -1;
2129
- if (pr(t)) {
2129
+ if (mr(t)) {
2130
2130
  if (t.indexOf)
2131
2131
  e = t.indexOf(i);
2132
2132
  else
@@ -2137,7 +2137,7 @@ var ur = function(i, t, e) {
2137
2137
  }
2138
2138
  }
2139
2139
  return e;
2140
- }, T = function(i, t) {
2140
+ }, M = function(i, t) {
2141
2141
  try {
2142
2142
  BMap;
2143
2143
  } catch {
@@ -2154,33 +2154,33 @@ var ur = function(i, t, e) {
2154
2154
  r._redraw();
2155
2155
  });
2156
2156
  var s = e.markers;
2157
- pr(s) && this.addMarkers(s);
2157
+ mr(s) && this.addMarkers(s);
2158
2158
  }
2159
2159
  };
2160
- T.prototype.addMarkers = function(i) {
2160
+ M.prototype.addMarkers = function(i) {
2161
2161
  if (i.length) {
2162
2162
  for (var t = 0, e = i.length; t < e; t++)
2163
2163
  this._pushMarkerTo(i[t]);
2164
2164
  this._createClusters();
2165
2165
  }
2166
2166
  };
2167
- T.prototype._pushMarkerTo = function(i) {
2168
- var t = gr(i, this._markers);
2167
+ M.prototype._pushMarkerTo = function(i) {
2168
+ var t = fr(i, this._markers);
2169
2169
  t === -1 && (i.isInCluster = !1, this._markers.push(i));
2170
2170
  };
2171
- T.prototype.addMarker = function(i) {
2171
+ M.prototype.addMarker = function(i) {
2172
2172
  this._pushMarkerTo(i), this._createClusters();
2173
2173
  };
2174
- T.prototype._createClusters = function() {
2174
+ M.prototype._createClusters = function() {
2175
2175
  var i = this._map.getBounds();
2176
2176
  if (i.getCenter()) {
2177
- for (var t = ur(this._map, i, this._gridSize), e = 0, r; r = this._markers[e]; e++)
2177
+ for (var t = gr(this._map, i, this._gridSize), e = 0, r; r = this._markers[e]; e++)
2178
2178
  !r.isInCluster && t.containsPoint(r.getPosition()) && this._addToClosestCluster(r);
2179
2179
  for (var s = this._markers.length, e = 0; e < s; e++)
2180
2180
  this._clusters[e] && this._clusters[e].render();
2181
2181
  }
2182
2182
  };
2183
- T.prototype._addToClosestCluster = function(i) {
2183
+ M.prototype._addToClosestCluster = function(i) {
2184
2184
  var t = 4e6, e = null;
2185
2185
  i.getPosition();
2186
2186
  for (var r = 0, s; s = this._clusters[r]; r++) {
@@ -2193,104 +2193,104 @@ T.prototype._addToClosestCluster = function(i) {
2193
2193
  if (e && e.isMarkerInClusterBounds(i))
2194
2194
  e.addMarker(i);
2195
2195
  else {
2196
- var s = new D(this);
2196
+ var s = new z(this);
2197
2197
  s.addMarker(i), this._clusters.push(s);
2198
2198
  }
2199
2199
  };
2200
- T.prototype._clearLastClusters = function() {
2200
+ M.prototype._clearLastClusters = function() {
2201
2201
  for (var i = 0, t; t = this._clusters[i]; i++)
2202
2202
  t.remove();
2203
2203
  this._clusters = [], this._removeMarkersFromCluster();
2204
2204
  };
2205
- T.prototype._removeMarkersFromCluster = function() {
2205
+ M.prototype._removeMarkersFromCluster = function() {
2206
2206
  for (var i = 0, t; t = this._markers[i]; i++)
2207
2207
  t.isInCluster = !1;
2208
2208
  };
2209
- T.prototype._removeMarkersFromMap = function() {
2209
+ M.prototype._removeMarkersFromMap = function() {
2210
2210
  for (var i = 0, t; t = this._markers[i]; i++) {
2211
2211
  t.isInCluster = !1;
2212
2212
  var e = t.getLabel();
2213
2213
  this._map.removeOverlay(t), t.setLabel(e);
2214
2214
  }
2215
2215
  };
2216
- T.prototype._removeMarker = function(i) {
2217
- var t = gr(i, this._markers);
2216
+ M.prototype._removeMarker = function(i) {
2217
+ var t = fr(i, this._markers);
2218
2218
  return t === -1 ? !1 : (this._map.removeOverlay(i), this._markers.splice(t, 1), !0);
2219
2219
  };
2220
- T.prototype.removeMarker = function(i) {
2220
+ M.prototype.removeMarker = function(i) {
2221
2221
  var t = this._removeMarker(i);
2222
2222
  return t && (this._clearLastClusters(), this._createClusters()), t;
2223
2223
  };
2224
- T.prototype.removeMarkers = function(i) {
2224
+ M.prototype.removeMarkers = function(i) {
2225
2225
  for (var t = !1, e = 0; e < i.length; e++) {
2226
2226
  var r = this._removeMarker(i[e]);
2227
2227
  t = t || r;
2228
2228
  }
2229
2229
  return t && (this._clearLastClusters(), this._createClusters()), t;
2230
2230
  };
2231
- T.prototype.clearMarkers = function() {
2231
+ M.prototype.clearMarkers = function() {
2232
2232
  this._clearLastClusters(), this._removeMarkersFromMap(), this._markers = [];
2233
2233
  };
2234
- T.prototype._redraw = function() {
2234
+ M.prototype._redraw = function() {
2235
2235
  this._clearLastClusters(), this._createClusters();
2236
2236
  };
2237
- T.prototype.getGridSize = function() {
2237
+ M.prototype.getGridSize = function() {
2238
2238
  return this._gridSize;
2239
2239
  };
2240
- T.prototype.setGridSize = function(i) {
2240
+ M.prototype.setGridSize = function(i) {
2241
2241
  this._gridSize = i, this._redraw();
2242
2242
  };
2243
- T.prototype.getMaxZoom = function() {
2243
+ M.prototype.getMaxZoom = function() {
2244
2244
  return this._maxZoom;
2245
2245
  };
2246
- T.prototype.setMaxZoom = function(i) {
2246
+ M.prototype.setMaxZoom = function(i) {
2247
2247
  this._maxZoom = i, this._redraw();
2248
2248
  };
2249
- T.prototype.getZIndex = function() {
2249
+ M.prototype.getZIndex = function() {
2250
2250
  return this._zIndex;
2251
2251
  };
2252
- T.prototype.setZIndex = function(i) {
2252
+ M.prototype.setZIndex = function(i) {
2253
2253
  this._zIndex != i && (this.zIndex = i, this._redraw());
2254
2254
  };
2255
- T.prototype.getStyles = function() {
2255
+ M.prototype.getStyles = function() {
2256
2256
  return this._styles;
2257
2257
  };
2258
- T.prototype.setStyles = function(i) {
2258
+ M.prototype.setStyles = function(i) {
2259
2259
  this._styles = i, this._redraw();
2260
2260
  };
2261
- T.prototype.getMinClusterSize = function() {
2261
+ M.prototype.getMinClusterSize = function() {
2262
2262
  return this._minClusterSize;
2263
2263
  };
2264
- T.prototype.setMinClusterSize = function(i) {
2264
+ M.prototype.setMinClusterSize = function(i) {
2265
2265
  this._minClusterSize = i, this._redraw();
2266
2266
  };
2267
- T.prototype.isAverageCenter = function() {
2267
+ M.prototype.isAverageCenter = function() {
2268
2268
  return this._isAverageCenter;
2269
2269
  };
2270
- T.prototype.getMap = function() {
2270
+ M.prototype.getMap = function() {
2271
2271
  return this._map;
2272
2272
  };
2273
- T.prototype.getMarkers = function() {
2273
+ M.prototype.getMarkers = function() {
2274
2274
  return this._markers;
2275
2275
  };
2276
- T.prototype.getClustersCount = function() {
2276
+ M.prototype.getClustersCount = function() {
2277
2277
  for (var i = 0, t = 0, e; e = this._clusters[t]; t++)
2278
2278
  e.isReal() && i++;
2279
2279
  return i;
2280
2280
  };
2281
- T.prototype._textCalculator = function(i) {
2281
+ M.prototype._textCalculator = function(i) {
2282
2282
  return i.length.toString();
2283
2283
  };
2284
- T.prototype._stylesIndexCalculator = null;
2285
- T.prototype.setTextCalculator = function(i) {
2284
+ M.prototype._stylesIndexCalculator = null;
2285
+ M.prototype.setTextCalculator = function(i) {
2286
2286
  this._textCalculator = i;
2287
2287
  };
2288
- T.prototype.setStylesIndexCalculator = function(i) {
2288
+ M.prototype.setStylesIndexCalculator = function(i) {
2289
2289
  this._stylesIndexCalculator = i;
2290
2290
  };
2291
- function D(i) {
2291
+ function z(i) {
2292
2292
  var t = this;
2293
- 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 zt(this._center, this._markers.length, {
2293
+ 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 Gt(this._center, this._markers.length, {
2294
2294
  styles: this._markerClusterer.getStyles(),
2295
2295
  zIndex: i._zIndex
2296
2296
  }), this._clusterMarker.getStyleByText = function(e, r) {
@@ -2298,12 +2298,12 @@ function D(i) {
2298
2298
  var s = t._markerClusterer._stylesIndexCalculator(t._markers, r.length);
2299
2299
  return r[s];
2300
2300
  }
2301
- return zt.prototype.getStyleByText.call(this, e, r);
2301
+ return Gt.prototype.getStyleByText.call(this, e, r);
2302
2302
  }, this._clusterMarker.addEventListener && this._clusterMarker.addEventListener("click", function(e) {
2303
2303
  t._map.setViewport(t.getBounds());
2304
2304
  });
2305
2305
  }
2306
- D.prototype.addMarker = function(i) {
2306
+ z.prototype.addMarker = function(i) {
2307
2307
  if (this.isMarkerInCluster(i))
2308
2308
  return !1;
2309
2309
  if (!this._center)
@@ -2314,7 +2314,7 @@ D.prototype.addMarker = function(i) {
2314
2314
  }
2315
2315
  return i.isInCluster = !0, this._markers.push(i), !0;
2316
2316
  };
2317
- D.prototype.render = function() {
2317
+ z.prototype.render = function() {
2318
2318
  var i = this._markers.length;
2319
2319
  if (i < this._minClusterSize)
2320
2320
  for (var t = 0; t < i; t++)
@@ -2322,7 +2322,7 @@ D.prototype.render = function() {
2322
2322
  else
2323
2323
  this._map.addOverlay(this._clusterMarker), this._isReal = !0, this.updateClusterMarker();
2324
2324
  };
2325
- D.prototype.isMarkerInCluster = function(i) {
2325
+ z.prototype.isMarkerInCluster = function(i) {
2326
2326
  if (this._markers.indexOf)
2327
2327
  return this._markers.indexOf(i) != -1;
2328
2328
  for (var t = 0, e; e = this._markers[t]; t++)
@@ -2330,17 +2330,17 @@ D.prototype.isMarkerInCluster = function(i) {
2330
2330
  return !0;
2331
2331
  return !1;
2332
2332
  };
2333
- D.prototype.isMarkerInClusterBounds = function(i) {
2333
+ z.prototype.isMarkerInClusterBounds = function(i) {
2334
2334
  return this._gridBounds.containsPoint(i.getPosition());
2335
2335
  };
2336
- D.prototype.isReal = function(i) {
2336
+ z.prototype.isReal = function(i) {
2337
2337
  return this._isReal;
2338
2338
  };
2339
- D.prototype.updateGridBounds = function() {
2339
+ z.prototype.updateGridBounds = function() {
2340
2340
  var i = new BMap.Bounds(this._center, this._center);
2341
- this._gridBounds = ur(this._map, i, this._markerClusterer.getGridSize());
2341
+ this._gridBounds = gr(this._map, i, this._markerClusterer.getGridSize());
2342
2342
  };
2343
- D.prototype.updateClusterMarker = function() {
2343
+ z.prototype.updateClusterMarker = function() {
2344
2344
  if (this._map.getZoom() > this._markerClusterer.getMaxZoom()) {
2345
2345
  this._clusterMarker && this._map.removeOverlay(this._clusterMarker);
2346
2346
  for (var i = 0, t; t = this._markers[i]; i++)
@@ -2353,22 +2353,22 @@ D.prototype.updateClusterMarker = function() {
2353
2353
  }
2354
2354
  this._clusterMarker.setPosition(this._center), this._clusterMarker.setText(this._markerClusterer._textCalculator(this._markers));
2355
2355
  };
2356
- D.prototype.remove = function() {
2356
+ z.prototype.remove = function() {
2357
2357
  for (var i = 0, t; t = this._markers[i]; i++) {
2358
2358
  var e = this._markers[i].getLabel();
2359
2359
  this._markers[i].getMap() && this._map.removeOverlay(this._markers[i]), this._markers[i].setLabel(e);
2360
2360
  }
2361
2361
  this._map.removeOverlay(this._clusterMarker), this._markers.length = 0, delete this._markers;
2362
2362
  };
2363
- D.prototype.getBounds = function() {
2363
+ z.prototype.getBounds = function() {
2364
2364
  for (var i = new BMap.Bounds(this._center, this._center), t = 0, e; e = this._markers[t]; t++)
2365
2365
  i.extend(e.getPosition());
2366
2366
  return i;
2367
2367
  };
2368
- D.prototype.getCenter = function() {
2368
+ z.prototype.getCenter = function() {
2369
2369
  return this._center;
2370
2370
  };
2371
- var Ae;
2371
+ var Re;
2372
2372
  ((i) => {
2373
2373
  function t(r) {
2374
2374
  return {
@@ -2393,8 +2393,8 @@ var Ae;
2393
2393
  };
2394
2394
  }
2395
2395
  i.toGoogle = e;
2396
- })(Ae || (Ae = {}));
2397
- class mr {
2396
+ })(Re || (Re = {}));
2397
+ class yr {
2398
2398
  constructor(t) {
2399
2399
  c(this, "inner");
2400
2400
  this.map = t;
@@ -2420,17 +2420,17 @@ class mr {
2420
2420
  return this.inner.removeMarkers(t.map((e) => e.innerOverlay));
2421
2421
  }
2422
2422
  }
2423
- class _i extends mr {
2423
+ class bi extends yr {
2424
2424
  constructor(t, e) {
2425
2425
  var s;
2426
- super(t), this.inner = new T(t.innerMap, {
2426
+ super(t), this.inner = new M(t.innerMap, {
2427
2427
  // baidu的构造器中的markers, 会触发重绘, 会导致使用旧的calculator计算cluster
2428
2428
  // markers: options.markers?.map(it => (it as BaiduMarker).innerOverlay),
2429
2429
  gridSize: e.gridSize,
2430
2430
  maxZoom: e.maxZoom,
2431
2431
  minClusterSize: e.minClusterSize,
2432
2432
  isAverageCenter: e.averageCenter,
2433
- styles: (s = e.styles) == null ? void 0 : s.map((n) => Ae.toBaidu(n)),
2433
+ styles: (s = e.styles) == null ? void 0 : s.map((n) => Re.toBaidu(n)),
2434
2434
  zIndex: e.zIndex
2435
2435
  });
2436
2436
  const r = e.stylesIndexCalculator;
@@ -2440,10 +2440,10 @@ class _i extends mr {
2440
2440
  this.inner._redraw();
2441
2441
  }
2442
2442
  }
2443
- class bi extends mr {
2443
+ class Ti extends yr {
2444
2444
  constructor(t, e) {
2445
2445
  var s, n;
2446
- super(t), this.inner = new mi(
2446
+ super(t), this.inner = new fi(
2447
2447
  t.innerMap,
2448
2448
  // google的构造器中的markers,不会触发重绘, 第一次绘制通过监听地图的'idle'事件触发, 可以直接设置
2449
2449
  (s = e.markers) == null ? void 0 : s.map((a) => a.innerOverlay),
@@ -2452,7 +2452,7 @@ class bi extends mr {
2452
2452
  maxZoom: e.maxZoom,
2453
2453
  minimumClusterSize: e.minClusterSize,
2454
2454
  averageCenter: e.averageCenter,
2455
- styles: (n = e.styles) == null ? void 0 : n.map((a) => Ae.toGoogle(a)),
2455
+ styles: (n = e.styles) == null ? void 0 : n.map((a) => Re.toGoogle(a)),
2456
2456
  zIndex: e.zIndex
2457
2457
  }
2458
2458
  );
@@ -2467,11 +2467,11 @@ class bi extends mr {
2467
2467
  this.inner.repaint();
2468
2468
  }
2469
2469
  }
2470
- class fr {
2470
+ class vr {
2471
2471
  constructor() {
2472
2472
  }
2473
2473
  }
2474
- class Mi extends fr {
2474
+ class Mi extends vr {
2475
2475
  constructor(e, r) {
2476
2476
  super();
2477
2477
  c(this, "inner");
@@ -2505,7 +2505,7 @@ class Mi extends fr {
2505
2505
  switch (h) {
2506
2506
  case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:
2507
2507
  case google.maps.places.PlacesServiceStatus.OK: {
2508
- const o = (a ?? []).map((l) => ar(l, this.map));
2508
+ const o = (a ?? []).map((l) => hr(l, this.map));
2509
2509
  s(o);
2510
2510
  break;
2511
2511
  }
@@ -2517,7 +2517,7 @@ class Mi extends fr {
2517
2517
  });
2518
2518
  }
2519
2519
  }
2520
- class Ti extends fr {
2520
+ class Oi extends vr {
2521
2521
  constructor(e, r) {
2522
2522
  super();
2523
2523
  c(this, "searchRequestMap", /* @__PURE__ */ new Map());
@@ -2549,7 +2549,7 @@ class Ti extends fr {
2549
2549
  return new Promise((s, n) => {
2550
2550
  const a = new BMap.LocalSearch(e ?? this.map.innerMap, {
2551
2551
  onSearchComplete: (h) => {
2552
- Array.isArray(h) && it("当前只支持一次搜索一条数据");
2552
+ Array.isArray(h) && nt("当前只支持一次搜索一条数据");
2553
2553
  const o = a.getStatus();
2554
2554
  switch (o) {
2555
2555
  case BMAP_STATUS_SUCCESS: {
@@ -2583,7 +2583,7 @@ class Ti extends fr {
2583
2583
  });
2584
2584
  }
2585
2585
  }
2586
- class yr {
2586
+ class _r {
2587
2587
  constructor(t, e) {
2588
2588
  c(this, "onData");
2589
2589
  c(this, "onError");
@@ -2595,26 +2595,26 @@ class yr {
2595
2595
  * @mustCallSuper 子类必须调用一次`super.setSearchListener`, 用来保存{@link onData}和{@link onError}
2596
2596
  * */
2597
2597
  setSearchListener(t, e) {
2598
- return this.onData && C("setSearchListener只能调用一次"), this.onData = t, this.onError = e, ye;
2598
+ return this.onData && C("setSearchListener只能调用一次"), this.onData = t, this.onError = e, ve;
2599
2599
  }
2600
2600
  }
2601
- class Oi extends yr {
2601
+ class Ci extends _r {
2602
2602
  constructor(e, r) {
2603
2603
  super(e, r.input);
2604
2604
  c(this, "searchBox");
2605
2605
  this.searchBox = new google.maps.places.SearchBox(r.input), this.searchBox.bindTo("bounds", e.innerMap);
2606
2606
  }
2607
2607
  setSearchListener(e, r) {
2608
- return super.setSearchListener(e, r), Qt(this.searchBox, "places_changed", () => {
2608
+ return super.setSearchListener(e, r), tr(this.searchBox, "places_changed", () => {
2609
2609
  const s = this.searchBox.getPlaces();
2610
- e((s ?? []).map((n) => ar(n, this.map)));
2610
+ e((s ?? []).map((n) => hr(n, this.map)));
2611
2611
  });
2612
2612
  }
2613
2613
  search() {
2614
2614
  this.input.value && (google.maps.event.trigger(this.input, "focus", {}), google.maps.event.trigger(this.input, "keydown", { keyCode: 13 }));
2615
2615
  }
2616
2616
  }
2617
- class Ci extends yr {
2617
+ class wi extends _r {
2618
2618
  constructor(e, r) {
2619
2619
  super(e, r.input);
2620
2620
  c(this, "autocomplete");
@@ -2633,8 +2633,8 @@ class Ci extends yr {
2633
2633
  this.placesService.search(e).then(this.onData, this.onError);
2634
2634
  }
2635
2635
  }
2636
- var wi = /* @__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))(wi || {});
2637
- class ut {
2636
+ var Ei = /* @__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))(Ei || {});
2637
+ class gt {
2638
2638
  constructor(t) {
2639
2639
  c(this, "latestInfoWindow");
2640
2640
  /** 使用{@link setEventTargetDelegate}初始化 */
@@ -2687,7 +2687,7 @@ class ut {
2687
2687
  * Copyright (c) 2014-2017, Jon Schlinkert.
2688
2688
  * Released under the MIT License.
2689
2689
  */
2690
- function Ei(i) {
2690
+ function Li(i) {
2691
2691
  return i != null && typeof i == "object" && Array.isArray(i) === !1;
2692
2692
  }
2693
2693
  /*!
@@ -2696,14 +2696,14 @@ function Ei(i) {
2696
2696
  * Copyright (c) 2014-2017, Jon Schlinkert.
2697
2697
  * Released under the MIT License.
2698
2698
  */
2699
- function Nt(i) {
2700
- return Ei(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
2699
+ function Zt(i) {
2700
+ return Li(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
2701
2701
  }
2702
- function vr(i) {
2702
+ function br(i) {
2703
2703
  var t, e;
2704
- return !(Nt(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, Nt(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
2704
+ return !(Zt(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, Zt(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
2705
2705
  }
2706
- var _e;
2706
+ var be;
2707
2707
  ((i) => {
2708
2708
  function t(h, o) {
2709
2709
  return h.reduce((l, d) => (l[o(d)] = d, l), {});
@@ -2718,27 +2718,27 @@ var _e;
2718
2718
  }
2719
2719
  i.toJsonSafely = r;
2720
2720
  function s(h) {
2721
- vr(h) && Object.keys(h).forEach((o) => {
2721
+ br(h) && Object.keys(h).forEach((o) => {
2722
2722
  h[o] === void 0 ? delete h[o] : s(h[o]);
2723
2723
  });
2724
2724
  }
2725
2725
  i.deleteUndefinedPropertyOnPlainObjectDeeply = s;
2726
2726
  function n(h, ...o) {
2727
- const l = Gt(o), d = {};
2727
+ const l = Wt(o), d = {};
2728
2728
  for (const u in h)
2729
2729
  l(u) || (d[u] = h[u]);
2730
2730
  return d;
2731
2731
  }
2732
2732
  i.omit = n;
2733
2733
  function a(h, ...o) {
2734
- const l = Gt(o), d = {};
2734
+ const l = Wt(o), d = {};
2735
2735
  for (const u in h)
2736
2736
  l(u) && (d[u] = h[u]);
2737
2737
  return d;
2738
2738
  }
2739
2739
  i.pick = a;
2740
- })(_e || (_e = {}));
2741
- function Gt(i) {
2740
+ })(be || (be = {}));
2741
+ function Wt(i) {
2742
2742
  if (i.length <= 4)
2743
2743
  return i.includes.bind(i);
2744
2744
  {
@@ -2746,20 +2746,20 @@ function Gt(i) {
2746
2746
  return t.has.bind(t);
2747
2747
  }
2748
2748
  }
2749
- _e.toJsonSafely;
2750
- const Li = ["single", "multi"];
2751
- var W = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(W || {}), et;
2749
+ be.toJsonSafely;
2750
+ const xi = ["single", "multi"];
2751
+ var j = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(j || {}), rt;
2752
2752
  ((i) => {
2753
2753
  function t(e) {
2754
- _e.deleteUndefinedPropertyOnPlainObjectDeeply(e);
2754
+ be.deleteUndefinedPropertyOnPlainObjectDeeply(e);
2755
2755
  const r = { center: y.ZERO, zoom: 5 };
2756
- return Kt(r, e || {}, {
2757
- isMergeableObject: vr
2756
+ return Jt(r, e || {}, {
2757
+ isMergeableObject: br
2758
2758
  });
2759
2759
  }
2760
2760
  i.create = t;
2761
- })(et || (et = {}));
2762
- class _r {
2761
+ })(rt || (rt = {}));
2762
+ class Tr {
2763
2763
  constructor(t, e, r) {
2764
2764
  c(this, "_delegate");
2765
2765
  this.innerOverlay = t, this.coordType = e, this.map = r;
@@ -2777,12 +2777,12 @@ class _r {
2777
2777
  this.map.removeOverlay(this);
2778
2778
  }
2779
2779
  }
2780
- class pt extends _r {
2780
+ class mt extends Tr {
2781
2781
  constructor(t, e, r) {
2782
2782
  super(t, e, r);
2783
2783
  }
2784
2784
  createDelegate() {
2785
- return new te(this.innerOverlay, this.map);
2785
+ return new re(this.innerOverlay, this.map);
2786
2786
  }
2787
2787
  isVisible() {
2788
2788
  return this.innerOverlay.getVisible();
@@ -2791,12 +2791,12 @@ class pt extends _r {
2791
2791
  this.innerOverlay.setVisible(t);
2792
2792
  }
2793
2793
  }
2794
- class We extends _r {
2794
+ class je extends Tr {
2795
2795
  constructor(t, e, r) {
2796
2796
  super(t, e, r);
2797
2797
  }
2798
2798
  createDelegate() {
2799
- return new oe(this.innerOverlay, this.map);
2799
+ return new ae(this.innerOverlay, this.map);
2800
2800
  }
2801
2801
  /** 仅限内部使用; 设为private时, 生成的d.ts文件中, 方法返回值会变成any, 故改成了public */
2802
2802
  get overlay() {
@@ -2813,7 +2813,7 @@ class We extends _r {
2813
2813
  return t !== void 0 && (t || this.setVisible(!1)), this;
2814
2814
  }
2815
2815
  }
2816
- class br extends We {
2816
+ const Ge = class extends je {
2817
2817
  constructor(t, e, r, s) {
2818
2818
  super(t, e, r), this.state = s;
2819
2819
  }
@@ -2827,7 +2827,7 @@ class br extends We {
2827
2827
  this.innerOverlay.setStrokeColor(t);
2828
2828
  }
2829
2829
  setStrokeOpacity(t) {
2830
- this.innerOverlay.setStrokeOpacity(t);
2830
+ this.innerOverlay.setStrokeOpacity(t + Ge.OPACITY_DELTA);
2831
2831
  }
2832
2832
  setStrokeWeight(t) {
2833
2833
  this.innerOverlay.setStrokeWeight(t);
@@ -2836,10 +2836,18 @@ class br extends We {
2836
2836
  this.innerOverlay.setFillColor(t);
2837
2837
  }
2838
2838
  setFillOpacity(t) {
2839
- this.innerOverlay.setFillOpacity(t);
2839
+ this.innerOverlay.setFillOpacity(t + Ge.OPACITY_DELTA);
2840
2840
  }
2841
- }
2842
- class He extends pt {
2841
+ };
2842
+ let k = Ge;
2843
+ /**
2844
+ * baidu地图的透明度属性有如下问题:
2845
+ * - 在透明度为0时, 无法隐藏掉颜色
2846
+ * - 透明度为0.7和0.8时, 在maintain的发布模式下, polyline的线条会不可见 (原因未知, 在tg-map中无法复现)
2847
+ * 故统一加个0.001, 规避这些问题...
2848
+ */
2849
+ c(k, "OPACITY_DELTA", 1e-3);
2850
+ class Ve extends mt {
2843
2851
  isEditable() {
2844
2852
  return this.innerOverlay.getEditable();
2845
2853
  }
@@ -2862,7 +2870,7 @@ class He extends pt {
2862
2870
  this.innerOverlay.setOptions({ fillOpacity: t });
2863
2871
  }
2864
2872
  }
2865
- class gt extends br {
2873
+ class ft extends k {
2866
2874
  constructor() {
2867
2875
  super(...arguments);
2868
2876
  c(this, "prevCenter");
@@ -2889,17 +2897,17 @@ class gt extends br {
2889
2897
  enableEditing: !1,
2890
2898
  // options.editable,
2891
2899
  strokeColor: e.strokeColor,
2892
- strokeOpacity: e.strokeOpacity,
2900
+ strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + k.OPACITY_DELTA : void 0,
2893
2901
  strokeWeight: e.strokeWeight,
2894
2902
  fillColor: e.fillColor,
2895
- fillOpacity: e.fillOpacity
2896
- }), n = new gt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
2903
+ fillOpacity: e.fillOpacity != null ? e.fillOpacity + k.OPACITY_DELTA : void 0
2904
+ }), n = new ft(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
2897
2905
  return n.state.editable && setTimeout(() => {
2898
2906
  n.state.editable && s.enableEditing();
2899
2907
  }, 0), n;
2900
2908
  }
2901
2909
  createDelegate() {
2902
- return this.eventHubDelegate = new Ze(super.createDelegate(), {
2910
+ return this.eventHubDelegate = new He(super.createDelegate(), {
2903
2911
  types: ["radius-changed", "center-changed"],
2904
2912
  onListen: (e) => {
2905
2913
  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));
@@ -2924,7 +2932,7 @@ class gt extends br {
2924
2932
  return this.innerOverlay.getRadius();
2925
2933
  }
2926
2934
  }
2927
- class mt extends He {
2935
+ class yt extends Ve {
2928
2936
  static create(t) {
2929
2937
  const e = this.coordType, r = new google.maps.Circle({
2930
2938
  center: t.center.toGoogle(e),
@@ -2938,13 +2946,13 @@ class mt extends He {
2938
2946
  fillOpacity: t.fillOpacity,
2939
2947
  visible: t.visible
2940
2948
  });
2941
- return new mt(r, e, this);
2949
+ return new yt(r, e, this);
2942
2950
  }
2943
2951
  setCenter(t) {
2944
2952
  this.coordType = this.map.coordType, this.innerOverlay.setCenter(t.toGoogle(this.coordType));
2945
2953
  }
2946
2954
  getCenter() {
2947
- return y.fromGoogle(this.innerOverlay.getCenter() ?? X.LATLNG_ZERO, this.coordType);
2955
+ return y.fromGoogle(this.innerOverlay.getCenter() ?? J.LATLNG_ZERO, this.coordType);
2948
2956
  }
2949
2957
  setRadius(t) {
2950
2958
  this.innerOverlay.setRadius(t);
@@ -2956,25 +2964,25 @@ class mt extends He {
2956
2964
  function Mr() {
2957
2965
  BMap.OverlayV3 || (BMap.OverlayV3 = BMap.Overlay);
2958
2966
  }
2959
- const Zt = {
2967
+ const Ht = {
2960
2968
  /** {@link BMap.Point.equals} 无效, 故需要自己写一个 */
2961
2969
  equals(i, t) {
2962
2970
  return i.lat === t.lat && i.lng === t.lng;
2963
2971
  }
2964
2972
  };
2965
- var K;
2973
+ var X;
2966
2974
  ((i) => {
2967
2975
  i.ZERO = { x: 0, y: 0 };
2968
- })(K || (K = {}));
2969
- let qe;
2970
- function xi(i, t, e, r, s, n) {
2971
- return qe || (qe = Pi()), new qe(i, t, e, r, s, n);
2976
+ })(X || (X = {}));
2977
+ let Ke;
2978
+ function Pi(i, t, e, r, s, n) {
2979
+ return Ke || (Ke = ki()), new Ke(i, t, e, r, s, n);
2972
2980
  }
2973
- function Pi() {
2981
+ function ki() {
2974
2982
  Mr();
2975
2983
  const i = new BMap.Point(0, 0);
2976
2984
  return class extends BMap.OverlayV3 {
2977
- constructor(r, s = i, n = K.ZERO, a, h = 654, o = "") {
2985
+ constructor(r, s = i, n = X.ZERO, a, h = 654, o = "") {
2978
2986
  super();
2979
2987
  // 类表达式不能有私有成员, 故改成public
2980
2988
  c(this, "container");
@@ -3037,7 +3045,7 @@ function Pi() {
3037
3045
  }
3038
3046
  };
3039
3047
  }
3040
- class ft {
3048
+ class vt {
3041
3049
  constructor(t) {
3042
3050
  this.delegate = t, this.delegate.setTarget(this);
3043
3051
  }
@@ -3048,9 +3056,9 @@ class ft {
3048
3056
  this.delegate.removeEventListener(t, e);
3049
3057
  }
3050
3058
  }
3051
- class yt extends ft {
3059
+ class _t extends vt {
3052
3060
  constructor(t, e, r) {
3053
- super(new oe(t, e)), this.inner = t, this.map = e, this.state = r;
3061
+ super(new ae(t, e)), this.inner = t, this.map = e, this.state = r;
3054
3062
  }
3055
3063
  static create(t) {
3056
3064
  const e = t.position || y.ZERO, r = new BMap.InfoWindow(t.content, {
@@ -3058,7 +3066,7 @@ class yt extends ft {
3058
3066
  offset: t.offset && new BMap.Size(t.offset.x, t.offset.y),
3059
3067
  enableAutoPan: !t.disableAutoPan
3060
3068
  });
3061
- return new yt(r, this, { position: e });
3069
+ return new _t(r, this, { position: e });
3062
3070
  }
3063
3071
  isOpen() {
3064
3072
  return this.inner.isOpen();
@@ -3077,10 +3085,10 @@ class yt extends ft {
3077
3085
  this.state.position = t, this.inner.isOpen() && this.open();
3078
3086
  }
3079
3087
  }
3080
- class vt extends ft {
3088
+ class bt extends vt {
3081
3089
  constructor(e, r) {
3082
- super(new te(e, r));
3083
- c(this, "eventHub", new tr());
3090
+ super(new re(e, r));
3091
+ c(this, "eventHub", new ir());
3084
3092
  c(this, "isOpened", !1);
3085
3093
  this.inner = e, this.map = r, e.addListener("closeclick", () => {
3086
3094
  this.isOpened = !1, this.eventHub.hasListener("close") && this.eventHub.notify({ type: "close", target: this });
@@ -3097,7 +3105,7 @@ class vt extends ft {
3097
3105
  position: r.toGoogle(this.coordType),
3098
3106
  disableAutoPan: e.disableAutoPan
3099
3107
  });
3100
- return new vt(s, this);
3108
+ return new bt(s, this);
3101
3109
  }
3102
3110
  isOpen() {
3103
3111
  return this.isOpened;
@@ -3129,19 +3137,19 @@ class vt extends ft {
3129
3137
  this.isOpened && (this.isOpened = !1, this.inner.close(), this.eventHub.notify({ type: "close", target: this }));
3130
3138
  }
3131
3139
  getPosition() {
3132
- return y.fromGoogle(this.inner.getPosition() ?? X.LATLNG_ZERO, this.map.coordType);
3140
+ return y.fromGoogle(this.inner.getPosition() ?? J.LATLNG_ZERO, this.map.coordType);
3133
3141
  }
3134
3142
  setPosition(e) {
3135
3143
  this.inner.setPosition(e.toGoogle(this.map.coordType));
3136
3144
  }
3137
3145
  }
3138
- class _t extends We {
3146
+ class Tt extends je {
3139
3147
  constructor(t, e, r) {
3140
3148
  super(t, e, r), this.baiduMap = r;
3141
3149
  }
3142
3150
  static create(t) {
3143
3151
  var s;
3144
- const e = this.coordType, r = xi(
3152
+ const e = this.coordType, r = Pi(
3145
3153
  t.content,
3146
3154
  (s = t.position) == null ? void 0 : s.toBaidu(e),
3147
3155
  t.offset,
@@ -3149,7 +3157,7 @@ class _t extends We {
3149
3157
  t.maxWidth,
3150
3158
  t.borderClass
3151
3159
  );
3152
- return new _t(r, e, this);
3160
+ return new Tt(r, e, this);
3153
3161
  }
3154
3162
  open(t) {
3155
3163
  this.innerOverlay.open(this.baiduMap.innerMap, t == null ? void 0 : t.innerOverlay);
@@ -3170,9 +3178,9 @@ class _t extends We {
3170
3178
  this.innerOverlay.setZIndex(t);
3171
3179
  }
3172
3180
  }
3173
- class bt extends ft {
3181
+ class Mt extends vt {
3174
3182
  constructor(t, e, r) {
3175
- super(new te(t, r)), this.inner = t, this.coordType = e, this.map = r;
3183
+ super(new re(t, r)), this.inner = t, this.coordType = e, this.map = r;
3176
3184
  }
3177
3185
  static create(t) {
3178
3186
  var n;
@@ -3187,7 +3195,7 @@ class bt extends ft {
3187
3195
  var h;
3188
3196
  const a = (h = t.content.parentElement) == null ? void 0 : h.parentElement;
3189
3197
  a && a.className.includes("gm-style-iw-c") && !a.className.includes(s) && (a.className += ` ${s}`);
3190
- }), new bt(r, e, this);
3198
+ }), new Mt(r, e, this);
3191
3199
  }
3192
3200
  open(t) {
3193
3201
  this.inner.open(this.map.innerMap, t == null ? void 0 : t.innerOverlay);
@@ -3196,7 +3204,7 @@ class bt extends ft {
3196
3204
  this.inner.close();
3197
3205
  }
3198
3206
  getPosition() {
3199
- return y.fromGoogle(this.inner.getPosition() ?? X.LATLNG_ZERO, this.coordType);
3207
+ return y.fromGoogle(this.inner.getPosition() ?? J.LATLNG_ZERO, this.coordType);
3200
3208
  }
3201
3209
  setPosition(t) {
3202
3210
  this.coordType = this.map.coordType, this.inner.setPosition(t.toGoogle(this.coordType));
@@ -3215,7 +3223,7 @@ class bt extends ft {
3215
3223
  this.inner.setZIndex(t);
3216
3224
  }
3217
3225
  }
3218
- var be;
3226
+ var Te;
3219
3227
  ((i) => {
3220
3228
  function t(s, n) {
3221
3229
  if (s !== void 0)
@@ -3232,15 +3240,15 @@ var be;
3232
3240
  return s.replace(/([^A-Z]?)([A-Z])/g, (n, a, h) => a ? `${a}-${h.toLowerCase()}` : h.toLowerCase());
3233
3241
  }
3234
3242
  i.pascal2kebab = r;
3235
- })(be || (be = {}));
3236
- const ki = {
3243
+ })(Te || (Te = {}));
3244
+ const Ii = {
3237
3245
  /** @see https://nodejs.org/docs/v10.3.0/api/path.html#path_path_basename_path_ext */
3238
3246
  basename(i, t) {
3239
3247
  const e = i.endsWith("/") ? i.slice(0, -1) : i, r = e.lastIndexOf("/"), s = r >= 0 ? e.substring(r + 1) : e;
3240
3248
  return t && s.endsWith(t) ? s.slice(0, -t.length) : s;
3241
3249
  }
3242
3250
  };
3243
- var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overlayMouseTarget = "overlayMouseTarget", i.float = "float", i))(Me || {}), Te;
3251
+ var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overlayMouseTarget = "overlayMouseTarget", i.float = "float", i))(Me || {}), Oe;
3244
3252
  ((i) => {
3245
3253
  function t(r, s) {
3246
3254
  switch (r) {
@@ -3253,7 +3261,7 @@ var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
3253
3261
  case "map":
3254
3262
  return s.mapPane;
3255
3263
  default:
3256
- Xe(r);
3264
+ Qe(r);
3257
3265
  }
3258
3266
  }
3259
3267
  i.toGoogle = t;
@@ -3268,12 +3276,12 @@ var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
3268
3276
  case "map":
3269
3277
  return s.mapPane;
3270
3278
  default:
3271
- Xe(r);
3279
+ Qe(r);
3272
3280
  }
3273
3281
  }
3274
3282
  i.toBaidu = e;
3275
- })(Te || (Te = {}));
3276
- class Si {
3283
+ })(Oe || (Oe = {}));
3284
+ class Bi {
3277
3285
  constructor(t, e) {
3278
3286
  c(this, "baidu");
3279
3287
  c(this, "google");
@@ -3299,7 +3307,7 @@ class Si {
3299
3307
  initialize(n) {
3300
3308
  var o;
3301
3309
  const a = t.create(), h = n.getPanes();
3302
- return (o = Te.toBaidu(t.mapPane, h)) == null || o.appendChild(a), a;
3310
+ return (o = Oe.toBaidu(t.mapPane, h)) == null || o.appendChild(a), a;
3303
3311
  }
3304
3312
  draw() {
3305
3313
  t.draw();
@@ -3324,7 +3332,7 @@ class Si {
3324
3332
  class e extends google.maps.OverlayView {
3325
3333
  onAdd() {
3326
3334
  const s = t.create(), n = this.getPanes() ?? C("onAdd回调中一定会有panes");
3327
- Te.toGoogle(t.mapPane, n).appendChild(s);
3335
+ Oe.toGoogle(t.mapPane, n).appendChild(s);
3328
3336
  }
3329
3337
  draw() {
3330
3338
  t.draw();
@@ -3336,21 +3344,21 @@ class Si {
3336
3344
  }
3337
3345
  this.google = new e(), this.projection = {
3338
3346
  fromLatLngToOverlayPoint(r) {
3339
- return t.google.getProjection().fromLatLngToDivPixel(r.toGoogle(t.map.coordType)) ?? K.ZERO;
3347
+ return t.google.getProjection().fromLatLngToDivPixel(r.toGoogle(t.map.coordType)) ?? X.ZERO;
3340
3348
  },
3341
3349
  fromOverlayPointToLatLng(r) {
3342
- return y.fromGoogle(t.google.getProjection().fromDivPixelToLatLng(new google.maps.Point(r.x, r.y)) ?? X.LATLNG_ZERO, t.map.coordType);
3350
+ return y.fromGoogle(t.google.getProjection().fromDivPixelToLatLng(new google.maps.Point(r.x, r.y)) ?? J.LATLNG_ZERO, t.map.coordType);
3343
3351
  }
3344
3352
  };
3345
3353
  }
3346
3354
  return this.google;
3347
3355
  }
3348
3356
  }
3349
- let Ye;
3350
- function Bi(i, t, e, r, s) {
3351
- return Ye || (Ye = Ii()), new Ye(i, t, e, r, s);
3357
+ let Xe;
3358
+ function Si(i, t, e, r, s) {
3359
+ return Xe || (Xe = Ai()), new Xe(i, t, e, r, s);
3352
3360
  }
3353
- function Ii() {
3361
+ function Ai() {
3354
3362
  return class extends google.maps.OverlayView {
3355
3363
  constructor(e, r, s, n = Me.overlayMouseTarget, a) {
3356
3364
  super();
@@ -3368,7 +3376,7 @@ function Ii() {
3368
3376
  }
3369
3377
  onAdd() {
3370
3378
  const e = this.getPanes() ?? C("onAdd回调中一定能够获取panes");
3371
- Te.toGoogle(this._mapPane, e).appendChild(this.container);
3379
+ Oe.toGoogle(this._mapPane, e).appendChild(this.container);
3372
3380
  }
3373
3381
  draw() {
3374
3382
  var e, r;
@@ -3404,7 +3412,7 @@ function Ii() {
3404
3412
  }
3405
3413
  };
3406
3414
  }
3407
- var ce;
3415
+ var de;
3408
3416
  ((i) => {
3409
3417
  function t(r) {
3410
3418
  return typeof r == "string" ? r : r.outerHTML;
@@ -3418,8 +3426,8 @@ var ce;
3418
3426
  return r;
3419
3427
  }
3420
3428
  i.toElement = e;
3421
- })(ce || (ce = {}));
3422
- class Mt extends We {
3429
+ })(de || (de = {}));
3430
+ class Ot extends je {
3423
3431
  constructor(e, r, s, n) {
3424
3432
  super(e, r, s);
3425
3433
  c(this, "icon");
@@ -3430,7 +3438,7 @@ class Mt extends We {
3430
3438
  }
3431
3439
  static create(e) {
3432
3440
  var a;
3433
- const r = this.coordType, s = new BMap.Label(ce.toString(e.content), {
3441
+ const r = this.coordType, s = new BMap.Label(de.toString(e.content), {
3434
3442
  position: (a = e.position) == null ? void 0 : a.toBaidu(r),
3435
3443
  offset: e.offset && new BMap.Size(e.offset.x, e.offset.y)
3436
3444
  });
@@ -3439,7 +3447,7 @@ class Mt extends We {
3439
3447
  padding: "0px",
3440
3448
  backgroundColor: "unset"
3441
3449
  });
3442
- const n = new Mt(s, r, this, e.content);
3450
+ const n = new Ot(s, r, this, e.content);
3443
3451
  return s.__label__ = n, n;
3444
3452
  }
3445
3453
  setContentInternal(e, r = !1) {
@@ -3450,7 +3458,7 @@ class Mt extends We {
3450
3458
  characterData: !0,
3451
3459
  childList: !0,
3452
3460
  subtree: !0
3453
- })), r || this.innerOverlay.setContent(ce.toString(e)), this.content = e);
3461
+ })), r || this.innerOverlay.setContent(de.toString(e)), this.content = e);
3454
3462
  }
3455
3463
  setZIndex(e) {
3456
3464
  this.innerOverlay.setZIndex(e);
@@ -3492,7 +3500,7 @@ class Mt extends We {
3492
3500
  height: e.style.anchor.height + o.y
3493
3501
  }, process.env.NODE_ENV !== "production" && setTimeout(() => {
3494
3502
  var u, p;
3495
- if (ne(e.__icon__, `${e}必须是由'SymbolIcon.toBaidu()'创建的`), !e.anchor) {
3503
+ if (oe(e.__icon__, `${e}必须是由'SymbolIcon.toBaidu()'创建的`), !e.anchor) {
3496
3504
  console.log("BaiduLabelOverlay.attachIcon", "Bmap.Symbol.anchor尚未计算完成");
3497
3505
  return;
3498
3506
  }
@@ -3505,7 +3513,7 @@ class Mt extends We {
3505
3513
  e.__icon__.scale,
3506
3514
  e.__icon__.strokeWeight
3507
3515
  ].map((_) => _ ?? "").join(",");
3508
- console.warn("BaiduLabelOverlay.attachIcon", e.__icon__, be.trimIndent(
3516
+ console.warn("BaiduLabelOverlay.attachIcon", e.__icon__, Te.trimIndent(
3509
3517
  `
3510
3518
  为了保证Label的位置正确, 请将SymbolIcon(${b})中baiduLabelOffset的值改写成:
3511
3519
  ${JSON.stringify({ x: l, y: d })}
@@ -3519,23 +3527,23 @@ class Mt extends We {
3519
3527
  this.iconAnchor && (n -= this.iconAnchor.width, a -= this.iconAnchor.height), r && (n += r.width, a += r.height), this.innerOverlay.setOffset(new BMap.Size(n, a)), this.icon = e, this.iconAnchor = r;
3520
3528
  }
3521
3529
  }
3522
- class Tt extends pt {
3530
+ class Ct extends mt {
3523
3531
  static create(t) {
3524
3532
  var s;
3525
- const e = this.coordType, r = Bi(
3526
- ce.toElement(t.content),
3533
+ const e = this.coordType, r = Si(
3534
+ de.toElement(t.content),
3527
3535
  (s = t.position) == null ? void 0 : s.toGoogle(e),
3528
3536
  t.offset,
3529
3537
  t.mapPane,
3530
3538
  t.zIndex
3531
3539
  );
3532
- return new Tt(r, e, this);
3540
+ return new Ct(r, e, this);
3533
3541
  }
3534
3542
  setZIndex(t) {
3535
3543
  this.innerOverlay.setZIndex(t);
3536
3544
  }
3537
3545
  setContent(t) {
3538
- this.innerOverlay.setElement(ce.toElement(t));
3546
+ this.innerOverlay.setElement(de.toElement(t));
3539
3547
  }
3540
3548
  getPosition() {
3541
3549
  const t = this.innerOverlay.getPosition();
@@ -3545,17 +3553,17 @@ class Tt extends pt {
3545
3553
  this.coordType = this.map.coordType, this.innerOverlay.setPosition(t.toGoogle(this.coordType));
3546
3554
  }
3547
3555
  getOffset() {
3548
- return this.innerOverlay.getOffset() ?? K.ZERO;
3556
+ return this.innerOverlay.getOffset() ?? X.ZERO;
3549
3557
  }
3550
3558
  setOffset(t) {
3551
3559
  this.innerOverlay.setOffset(t);
3552
3560
  }
3553
3561
  }
3554
- const Re = {
3555
- toGoogle: (i) => "url" in i ? $e.toGoogle(i) : De.toGoogle(i),
3556
- toBaidu: (i) => "url" in i ? $e.toBaidu(i) : De.toBaidu(i)
3562
+ const $e = {
3563
+ toGoogle: (i) => "url" in i ? De.toGoogle(i) : ze.toGoogle(i),
3564
+ toBaidu: (i) => "url" in i ? De.toBaidu(i) : ze.toBaidu(i)
3557
3565
  };
3558
- var $e;
3566
+ var De;
3559
3567
  ((i) => {
3560
3568
  function t(r) {
3561
3569
  return {
@@ -3579,8 +3587,8 @@ var $e;
3579
3587
  });
3580
3588
  }
3581
3589
  i.toBaidu = e;
3582
- })($e || ($e = {}));
3583
- var De;
3590
+ })(De || (De = {}));
3591
+ var ze;
3584
3592
  ((i) => {
3585
3593
  function t(r) {
3586
3594
  return {
@@ -3611,22 +3619,22 @@ var De;
3611
3619
  return s.__icon__ = r, s;
3612
3620
  }
3613
3621
  i.toBaidu = e;
3614
- })(De || (De = {}));
3615
- const Ws = {
3622
+ })(ze || (ze = {}));
3623
+ const Hs = {
3616
3624
  CIRCLE: { baidu: () => BMap_Symbol_SHAPE_CIRCLE, google: () => google.maps.SymbolPath.CIRCLE },
3617
3625
  BACKWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.BACKWARD_CLOSED_ARROW },
3618
3626
  BACKWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.BACKWARD_OPEN_ARROW },
3619
3627
  FORWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.FORWARD_CLOSED_ARROW },
3620
3628
  FORWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.FORWARD_OPEN_ARROW }
3621
3629
  };
3622
- class Oe extends We {
3630
+ class Ce extends je {
3623
3631
  constructor(t, e, r, s) {
3624
3632
  super(t, e, r), this.state = s;
3625
3633
  }
3626
3634
  static create(t) {
3627
3635
  const e = this.coordType, r = t.icon, s = {
3628
3636
  title: t.title,
3629
- icon: r && Re.toBaidu(r),
3637
+ icon: r && $e.toBaidu(r),
3630
3638
  enableClicking: t.clickable,
3631
3639
  enableDragging: t.draggable,
3632
3640
  // baidu的raiseOnDrag属性, 默认为false, 而我们的options.crossOnDrag默认为true, 故这里需要转换下
@@ -3635,7 +3643,7 @@ class Oe extends We {
3635
3643
  }, n = new BMap.Marker(t.position.toBaidu(e), s);
3636
3644
  t.zIndex !== void 0 && n.setZIndex(t.zIndex);
3637
3645
  const a = t.clickable === void 0 ? !0 : t.clickable, h = !!t.draggable;
3638
- return new Oe(n, e, this, { clickable: a, draggable: h, zIndex: t.zIndex }).visibleOptionInternal(t.visible);
3646
+ return new Ce(n, e, this, { clickable: a, draggable: h, zIndex: t.zIndex }).visibleOptionInternal(t.visible);
3639
3647
  }
3640
3648
  getPosition() {
3641
3649
  return y.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
@@ -3651,7 +3659,7 @@ class Oe extends We {
3651
3659
  return this.innerOverlay.getTitle();
3652
3660
  }
3653
3661
  setIcon(t) {
3654
- const e = Re.toBaidu(t);
3662
+ const e = $e.toBaidu(t);
3655
3663
  this.innerOverlay.setIcon(e);
3656
3664
  const r = this.getLabel();
3657
3665
  r && r.attachIcon(e);
@@ -3686,7 +3694,7 @@ class Oe extends We {
3686
3694
  return (t = this.innerOverlay.getLabel()) == null ? void 0 : t.__label__;
3687
3695
  }
3688
3696
  }
3689
- class Ot extends pt {
3697
+ class wt extends mt {
3690
3698
  constructor() {
3691
3699
  super(...arguments);
3692
3700
  c(this, "label");
@@ -3700,7 +3708,7 @@ class Ot extends pt {
3700
3708
  title: e.title,
3701
3709
  zIndex: e.zIndex,
3702
3710
  visible: e.visible,
3703
- icon: s && Re.toGoogle(s),
3711
+ icon: s && $e.toGoogle(s),
3704
3712
  clickable: e.clickable,
3705
3713
  draggable: e.draggable,
3706
3714
  // google的crossOnDrag和我们的crossOnDrag是匹配的, 不需要转换
@@ -3709,7 +3717,7 @@ class Ot extends pt {
3709
3717
  // InfoWindow相对marker的position的偏移量, 若不指定, 则偏移到marker的icon的上部中央
3710
3718
  anchorPoint: new google.maps.Point(0, 0)
3711
3719
  };
3712
- return new Ot(new google.maps.Marker(n), r, this);
3720
+ return new wt(new google.maps.Marker(n), r, this);
3713
3721
  }
3714
3722
  getPosition() {
3715
3723
  return y.fromGoogle(this.innerOverlay.getPosition(), this.coordType);
@@ -3724,7 +3732,7 @@ class Ot extends pt {
3724
3732
  return this.innerOverlay.getTitle() || "";
3725
3733
  }
3726
3734
  setIcon(e) {
3727
- this.innerOverlay.setIcon(Re.toGoogle(e));
3735
+ this.innerOverlay.setIcon($e.toGoogle(e));
3728
3736
  }
3729
3737
  getIcon() {
3730
3738
  return this.innerOverlay.getIcon();
@@ -3762,7 +3770,7 @@ class Ot extends pt {
3762
3770
  this.label = void 0, this.labelPositionListener = void 0, this.labelVisibleListener = void 0, this.labelMapChangedListener = void 0;
3763
3771
  }
3764
3772
  }
3765
- class Ct extends br {
3773
+ class Et extends k {
3766
3774
  constructor() {
3767
3775
  super(...arguments);
3768
3776
  c(this, "eventHubDelegate");
@@ -3787,7 +3795,7 @@ class Ct extends br {
3787
3795
  this.isDoingSetPath = !0, this.innerOverlay.setPath(e), this.isDoingSetPath = !1;
3788
3796
  }
3789
3797
  createDelegate() {
3790
- return this.eventHubDelegate = new Ze(super.createDelegate(), {
3798
+ return this.eventHubDelegate = new He(super.createDelegate(), {
3791
3799
  types: [this.pathEditedEventType],
3792
3800
  onListen: () => {
3793
3801
  this.prevPath = this.innerOverlay.getPath(), this.innerOverlay.addEventListener("lineupdate", this.onLineUpdate);
@@ -3798,7 +3806,7 @@ class Ct extends br {
3798
3806
  });
3799
3807
  }
3800
3808
  }
3801
- class wt extends Ct {
3809
+ class Lt extends Et {
3802
3810
  constructor() {
3803
3811
  super(...arguments);
3804
3812
  c(this, "pathEditedEventType", "path-edited");
@@ -3808,10 +3816,10 @@ class wt extends Ct {
3808
3816
  enableClicking: e.clickable,
3809
3817
  enableEditing: e.editable,
3810
3818
  strokeColor: e.strokeColor,
3811
- strokeOpacity: e.strokeOpacity,
3819
+ strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + k.OPACITY_DELTA : void 0,
3812
3820
  strokeWeight: e.strokeWeight
3813
3821
  });
3814
- return new wt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
3822
+ return new Lt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
3815
3823
  }
3816
3824
  getPath() {
3817
3825
  return this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType));
@@ -3820,7 +3828,7 @@ class wt extends Ct {
3820
3828
  this.coordType = this.map.coordType, this.setPathInternal(e.map((r) => r.toBaidu(this.coordType)));
3821
3829
  }
3822
3830
  }
3823
- class Et extends He {
3831
+ class xt extends Ve {
3824
3832
  constructor() {
3825
3833
  super(...arguments);
3826
3834
  c(this, "pathChangedListeners");
@@ -3836,21 +3844,21 @@ class Et extends He {
3836
3844
  strokeWeight: e.strokeWeight,
3837
3845
  visible: e.visible
3838
3846
  });
3839
- return new Et(s, r, this);
3847
+ return new xt(s, r, this);
3840
3848
  }
3841
3849
  setupPathChangedListeners() {
3842
3850
  const e = () => {
3843
3851
  var s;
3844
3852
  return (s = this.eventHubDelegate) == null ? void 0 : s.notify({ type: "path-edited", target: this });
3845
3853
  }, r = this.innerOverlay.getPath();
3846
- this.pathChangedListeners = he.listenChanged(r, e);
3854
+ this.pathChangedListeners = ce.listenChanged(r, e);
3847
3855
  }
3848
3856
  clearPathChangedListeners() {
3849
3857
  var e;
3850
3858
  (e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
3851
3859
  }
3852
3860
  createDelegate() {
3853
- return this.eventHubDelegate = new Ze(super.createDelegate(), {
3861
+ return this.eventHubDelegate = new He(super.createDelegate(), {
3854
3862
  types: ["path-edited"],
3855
3863
  onListen: () => this.setupPathChangedListeners(),
3856
3864
  onCancel: () => this.clearPathChangedListeners()
@@ -3867,7 +3875,7 @@ class Et extends He {
3867
3875
  this.coordType = this.map.coordType, this.innerOverlay.setPath(e.map((s) => s.toGoogle(this.coordType))), (r = this.eventHubDelegate) != null && r.hasListener("path-edited") && this.setupPathChangedListeners();
3868
3876
  }
3869
3877
  }
3870
- class Lt extends Ct {
3878
+ class Pt extends Et {
3871
3879
  constructor() {
3872
3880
  super(...arguments);
3873
3881
  c(this, "pathEditedEventType", "paths-edited");
@@ -3879,12 +3887,12 @@ class Lt extends Ct {
3879
3887
  enableClicking: e.clickable,
3880
3888
  enableEditing: e.editable,
3881
3889
  strokeColor: e.strokeColor,
3882
- strokeOpacity: e.strokeOpacity,
3890
+ strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + k.OPACITY_DELTA : void 0,
3883
3891
  strokeWeight: e.strokeWeight,
3884
3892
  fillColor: e.fillColor,
3885
- fillOpacity: e.fillOpacity
3893
+ fillOpacity: e.fillOpacity != null ? e.fillOpacity + k.OPACITY_DELTA : void 0
3886
3894
  });
3887
- return new Lt(n, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
3895
+ return new Pt(n, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
3888
3896
  }
3889
3897
  getPaths() {
3890
3898
  return [this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType))];
@@ -3893,7 +3901,7 @@ class Lt extends Ct {
3893
3901
  e.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]"), this.coordType = this.map.coordType, this.setPathInternal((e[0] || []).map((r) => r.toBaidu(this.coordType)));
3894
3902
  }
3895
3903
  }
3896
- class xt extends He {
3904
+ class kt extends Ve {
3897
3905
  constructor() {
3898
3906
  super(...arguments);
3899
3907
  c(this, "pathChangedListeners");
@@ -3911,7 +3919,7 @@ class xt extends He {
3911
3919
  fillOpacity: e.fillOpacity,
3912
3920
  visible: e.visible
3913
3921
  });
3914
- return new xt(s, r, this);
3922
+ return new kt(s, r, this);
3915
3923
  }
3916
3924
  setupPathChangedListeners() {
3917
3925
  const e = () => {
@@ -3919,7 +3927,7 @@ class xt extends He {
3919
3927
  return (s = this.eventHubDelegate) == null ? void 0 : s.notify({ type: "paths-edited", target: this });
3920
3928
  }, r = this.innerOverlay.getPaths();
3921
3929
  this.pathChangedListeners = [], r.forEach((s) => {
3922
- this.pathChangedListeners.push(...he.listenChanged(s, e));
3930
+ this.pathChangedListeners.push(...ce.listenChanged(s, e));
3923
3931
  });
3924
3932
  }
3925
3933
  clearPathChangedListeners() {
@@ -3927,7 +3935,7 @@ class xt extends He {
3927
3935
  (e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
3928
3936
  }
3929
3937
  createDelegate() {
3930
- return this.eventHubDelegate = new Ze(super.createDelegate(), {
3938
+ return this.eventHubDelegate = new He(super.createDelegate(), {
3931
3939
  types: ["paths-edited"],
3932
3940
  onListen: () => this.setupPathChangedListeners(),
3933
3941
  onCancel: () => this.clearPathChangedListeners()
@@ -3947,7 +3955,7 @@ class xt extends He {
3947
3955
  this.coordType = this.map.coordType, this.innerOverlay.setPaths(e.map((s) => s.map((n) => n.toGoogle(this.coordType)))), (r = this.eventHubDelegate) != null && r.hasListener("paths-edited") && this.setupPathChangedListeners();
3948
3956
  }
3949
3957
  }
3950
- class Pt extends Ct {
3958
+ class It extends Et {
3951
3959
  constructor(e, r, s, n) {
3952
3960
  super(e, r, s, n);
3953
3961
  c(this, "pathEditedEventType", "bounds-changed");
@@ -3962,7 +3970,7 @@ class Pt extends Ct {
3962
3970
  if (r.length === 4)
3963
3971
  if (a > r.length) {
3964
3972
  for (let o = 0; o < a; o++)
3965
- if (r[o] == null || !Zt.equals(s[o], r[o])) {
3973
+ if (r[o] == null || !Ht.equals(s[o], r[o])) {
3966
3974
  const l = s[(o - 2 + a) % a], d = s[(o - 1 + a) % a], u = s[o], p = s[(o + 1) % a], b = s[(o + 2) % a];
3967
3975
  let _;
3968
3976
  d.lat === p.lat ? _ = new BMap.Point(d.lng, u.lat) : d.lng === p.lng ? _ = new BMap.Point(u.lng, d.lat) : _ = u, n = [l, b, _];
@@ -3970,7 +3978,7 @@ class Pt extends Ct {
3970
3978
  }
3971
3979
  } else if (a === r.length) {
3972
3980
  for (let o = 0; o < a; o++)
3973
- if (!Zt.equals(s[o], r[o])) {
3981
+ if (!Ht.equals(s[o], r[o])) {
3974
3982
  n = [
3975
3983
  s[o],
3976
3984
  s[(o + 2) % 4]
@@ -3979,7 +3987,7 @@ class Pt extends Ct {
3979
3987
  }
3980
3988
  } else
3981
3989
  a < r.length;
3982
- const h = I.fromArray(n.map((o) => y.fromBaidu(o, this.coordType)));
3990
+ const h = A.fromArray(n.map((o) => y.fromBaidu(o, this.coordType)));
3983
3991
  h && (this.isDoingUpdateRectangle = !0, this.innerOverlay.setPath(h.toRectArray().map((o) => o.toBaidu(this.coordType))), this.isDoingUpdateRectangle = !1);
3984
3992
  }, 0);
3985
3993
  });
@@ -3990,15 +3998,15 @@ class Pt extends Ct {
3990
3998
  enableClicking: e.clickable,
3991
3999
  enableEditing: e.editable,
3992
4000
  strokeColor: e.strokeColor,
3993
- strokeOpacity: e.strokeOpacity,
4001
+ strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + k.OPACITY_DELTA : void 0,
3994
4002
  strokeWeight: e.strokeWeight,
3995
4003
  fillColor: e.fillColor,
3996
- fillOpacity: e.fillOpacity
4004
+ fillOpacity: e.fillOpacity != null ? e.fillOpacity + k.OPACITY_DELTA : void 0
3997
4005
  });
3998
- return new Pt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
4006
+ return new It(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
3999
4007
  }
4000
4008
  getBounds() {
4001
- return I.fromBaidu(this.innerOverlay.getBounds(), this.coordType);
4009
+ return A.fromBaidu(this.innerOverlay.getBounds(), this.coordType);
4002
4010
  }
4003
4011
  setBounds(e) {
4004
4012
  const r = e.toRectArray();
@@ -4007,7 +4015,7 @@ class Pt extends Ct {
4007
4015
  }) : this.setPathInternal(r.map((s) => s.toBaidu(this.coordType)));
4008
4016
  }
4009
4017
  }
4010
- class kt extends He {
4018
+ class Bt extends Ve {
4011
4019
  static create(t) {
4012
4020
  const e = this.coordType, r = new google.maps.Rectangle({
4013
4021
  bounds: t.bounds.toGoogle(e),
@@ -4020,42 +4028,42 @@ class kt extends He {
4020
4028
  fillOpacity: t.fillOpacity,
4021
4029
  visible: t.visible
4022
4030
  });
4023
- return new kt(r, e, this);
4031
+ return new Bt(r, e, this);
4024
4032
  }
4025
4033
  getBounds() {
4026
- return I.fromGoogle(this.innerOverlay.getBounds() ?? X.BOUNDS_ZERO, this.coordType);
4034
+ return A.fromGoogle(this.innerOverlay.getBounds() ?? J.BOUNDS_ZERO, this.coordType);
4027
4035
  }
4028
4036
  setBounds(t) {
4029
4037
  const e = t.toGoogle(this.coordType);
4030
4038
  e.equals(this.innerOverlay.getBounds()) || this.innerOverlay.setBounds(e);
4031
4039
  }
4032
4040
  }
4033
- const Q = 1;
4034
- class Ai extends ut {
4041
+ const ee = 1;
4042
+ class Ri extends gt {
4035
4043
  constructor(e, r) {
4036
4044
  var s;
4037
4045
  super(e);
4038
4046
  c(this, "buildInMapTypeId2BIMT");
4039
4047
  c(this, "baiduMapType2BIMT");
4040
4048
  c(this, "map");
4041
- c(this, "createLabel", Mt.create);
4042
- c(this, "createCircle", gt.create);
4043
- c(this, "createPolygon", Lt.create);
4044
- c(this, "createPolyline", wt.create);
4045
- c(this, "createRectangle", Pt.create);
4046
- c(this, "createInfoWindow", yt.create);
4047
- c(this, "createInfoBox", _t.create);
4048
- c(this, "createMarker", Oe.create);
4049
- c(this, "createMapTypeControl", ot.create);
4050
- c(this, "createZoomControl", ht.create);
4051
- c(this, "createScaleControl", at.create);
4052
- this.buildInMapTypeId2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.getId), this.baiduMapType2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
4053
- minZoom: r.minZoom && r.minZoom + Q,
4054
- maxZoom: r.maxZoom && r.maxZoom + Q,
4049
+ c(this, "createLabel", Ot.create);
4050
+ c(this, "createCircle", ft.create);
4051
+ c(this, "createPolygon", Pt.create);
4052
+ c(this, "createPolyline", Lt.create);
4053
+ c(this, "createRectangle", It.create);
4054
+ c(this, "createInfoWindow", _t.create);
4055
+ c(this, "createInfoBox", Tt.create);
4056
+ c(this, "createMarker", Ce.create);
4057
+ c(this, "createMapTypeControl", lt.create);
4058
+ c(this, "createZoomControl", dt.create);
4059
+ c(this, "createScaleControl", ht.create);
4060
+ this.buildInMapTypeId2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getId), this.baiduMapType2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
4061
+ minZoom: r.minZoom && r.minZoom + ee,
4062
+ maxZoom: r.maxZoom && r.maxZoom + ee,
4055
4063
  mapType: r.buildInMapTypeId && ((s = this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId)) == null ? void 0 : s.asBaiduMapType()),
4056
4064
  enableMapClick: !1
4057
4065
  // 关闭底图点击功能
4058
- }), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom + Q), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyleV2(r.mapStyle.toBaidu()), this.setEventTargetDelegate(new oe(this.map, this)), this.map.addEventListener("addoverlay", (n) => {
4066
+ }), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom + ee), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyleV2(r.mapStyle.toBaidu()), this.setEventTargetDelegate(new ae(this.map, this)), this.map.addEventListener("addoverlay", (n) => {
4059
4067
  const a = n.target.__info_box__;
4060
4068
  a && (console.debug("add:info-box", a), this.map.addOverlay(a));
4061
4069
  }), this.map.addEventListener("removeoverlay", (n) => {
@@ -4063,15 +4071,15 @@ class Ai extends ut {
4063
4071
  a && (console.debug("remove:info-box", a), this.map.removeOverlay(a));
4064
4072
  });
4065
4073
  }
4066
- setGestureHandling(e = W.auto) {
4067
- switch (e === W.auto && (e = this.element.parentElement && Qe.isScrollable(this.element.parentElement) ? W.cooperative : W.greedy), e) {
4068
- case W.cooperative:
4074
+ setGestureHandling(e = j.auto) {
4075
+ switch (e === j.auto && (e = this.element.parentElement && tt.isScrollable(this.element.parentElement) ? j.cooperative : j.greedy), e) {
4076
+ case j.cooperative:
4069
4077
  this.map.disableScrollWheelZoom(), this.map.enableDragging(), this.map.enableDoubleClickZoom();
4070
4078
  break;
4071
- case W.greedy:
4079
+ case j.greedy:
4072
4080
  this.map.enableScrollWheelZoom(), this.map.enableDragging(), this.map.enableDoubleClickZoom();
4073
4081
  break;
4074
- case W.none:
4082
+ case j.none:
4075
4083
  this.map.disableDragging(), this.map.disableScrollWheelZoom(), this.map.disableDoubleClickZoom();
4076
4084
  break;
4077
4085
  }
@@ -4118,16 +4126,16 @@ class Ai extends ut {
4118
4126
  this.map.setCenter(e.toBaidu(this.coordType));
4119
4127
  }
4120
4128
  getZoom() {
4121
- return super.getZoom() - Q;
4129
+ return super.getZoom() - ee;
4122
4130
  }
4123
4131
  setZoom(e) {
4124
- return super.setZoom(e + Q);
4132
+ return super.setZoom(e + ee);
4125
4133
  }
4126
4134
  setMinZoom(e) {
4127
- this.map.setMinZoom(e + Q);
4135
+ this.map.setMinZoom(e + ee);
4128
4136
  }
4129
4137
  setMaxZoom(e) {
4130
- this.map.setMaxZoom(e + Q);
4138
+ this.map.setMaxZoom(e + ee);
4131
4139
  }
4132
4140
  setMapStyle(e) {
4133
4141
  this.map.setMapStyleV2(e.toBaidu());
@@ -4163,7 +4171,7 @@ class Ai extends ut {
4163
4171
  });
4164
4172
  }
4165
4173
  getBounds() {
4166
- return I.fromBaidu(this.map.getBounds(), this.coordType);
4174
+ return A.fromBaidu(this.map.getBounds(), this.coordType);
4167
4175
  }
4168
4176
  addElementOverlay(e) {
4169
4177
  this.map.addOverlay(e.asBaidu());
@@ -4182,7 +4190,7 @@ class Ai extends ut {
4182
4190
  const r = class extends BMap.Control {
4183
4191
  constructor() {
4184
4192
  super(...arguments);
4185
- c(this, "defaultAnchor", R.getBaidu().toValue(e.position));
4193
+ c(this, "defaultAnchor", $.getBaidu().toValue(e.position));
4186
4194
  c(this, "defaultOffset", new BMap.Size(0, 0));
4187
4195
  }
4188
4196
  initialize(n) {
@@ -4194,46 +4202,46 @@ class Ai extends ut {
4194
4202
  }
4195
4203
  }
4196
4204
  removeCustomControl(e) {
4197
- e.inner && (ne(e.inner instanceof BMap.Control, `control.inner(${e.inner})需要是BMap.Control`), this.map.removeControl(e.inner));
4205
+ e.inner && (oe(e.inner instanceof BMap.Control, `control.inner(${e.inner})需要是BMap.Control`), this.map.removeControl(e.inner));
4198
4206
  }
4199
4207
  createMarkerClusterer(e) {
4200
- return new _i(this, e);
4208
+ return new bi(this, e);
4201
4209
  }
4202
4210
  createAutocomplete(e) {
4203
- return new gi(this, e);
4211
+ return new mi(this, e);
4204
4212
  }
4205
4213
  createSearchBox(e) {
4206
- return new Ci(this, e);
4214
+ return new wi(this, e);
4207
4215
  }
4208
4216
  createPlacesService(e) {
4209
- return new Ti(this, e);
4217
+ return new Oi(this, e);
4210
4218
  }
4211
- createMapUrlsService(e) {
4212
- return new Se(e);
4219
+ createMapUrls(e) {
4220
+ return new Be(e);
4213
4221
  }
4214
4222
  }
4215
- class Ri extends ut {
4223
+ class $i extends gt {
4216
4224
  constructor(e, r) {
4217
4225
  var n;
4218
4226
  super(e);
4219
4227
  c(this, "buildInMapTypeId2BIMT");
4220
4228
  c(this, "googleMapTypeId2BIMT");
4221
4229
  c(this, "map");
4222
- c(this, "createLabel", Tt.create);
4223
- c(this, "createCircle", mt.create);
4224
- c(this, "createPolygon", xt.create);
4225
- c(this, "createPolyline", Et.create);
4226
- c(this, "createRectangle", kt.create);
4227
- c(this, "createInfoWindow", vt.create);
4228
- c(this, "createInfoBox", bt.create);
4229
- c(this, "createMarker", Ot.create);
4230
- c(this, "createMapTypeControl", Pe.create);
4231
- c(this, "createZoomControl", ct.create);
4232
- c(this, "createScaleControl", lt.create);
4233
- this.mapOptions = r, this.buildInMapTypeId2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.getId), this.googleMapTypeId2BIMT = A.BUILD_IN_MAP_TYPES.getValueMap(B.prototype.getGoogleMapTypeId);
4230
+ c(this, "createLabel", Ct.create);
4231
+ c(this, "createCircle", yt.create);
4232
+ c(this, "createPolygon", kt.create);
4233
+ c(this, "createPolyline", xt.create);
4234
+ c(this, "createRectangle", Bt.create);
4235
+ c(this, "createInfoWindow", bt.create);
4236
+ c(this, "createInfoBox", Mt.create);
4237
+ c(this, "createMarker", wt.create);
4238
+ c(this, "createMapTypeControl", ke.create);
4239
+ c(this, "createZoomControl", ut.create);
4240
+ c(this, "createScaleControl", ct.create);
4241
+ this.mapOptions = r, this.buildInMapTypeId2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getId), this.googleMapTypeId2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getGoogleMapTypeId);
4234
4242
  const s = r.buildInMapTypeId && this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId);
4235
4243
  this.map = new google.maps.Map(e, {
4236
- center: r.center.toGoogle((s ?? A.NORMAL).getGoogleCoordType()),
4244
+ center: r.center.toGoogle((s ?? R.NORMAL).getGoogleCoordType()),
4237
4245
  zoom: r.zoom,
4238
4246
  disableDefaultUI: !0,
4239
4247
  streetViewControl: !0,
@@ -4242,7 +4250,7 @@ class Ri extends ut {
4242
4250
  maxZoom: r.maxZoom,
4243
4251
  styles: (n = r.mapStyle) == null ? void 0 : n.toGoogle(),
4244
4252
  mapTypeId: s == null ? void 0 : s.getGoogleMapTypeId()
4245
- }), this.setEventTargetDelegate(new te(this.map, this));
4253
+ }), this.setEventTargetDelegate(new re(this.map, this));
4246
4254
  }
4247
4255
  setGestureHandling(e) {
4248
4256
  this.map.setOptions({
@@ -4263,17 +4271,17 @@ class Ri extends ut {
4263
4271
  if (n == null || a == null || h == null)
4264
4272
  return y.ZERO;
4265
4273
  const o = Math.pow(2, h), l = new google.maps.Point(e.x / o + n.x, e.y / o + a.y);
4266
- return y.fromGoogle(r.fromPointToLatLng(l) ?? X.LATLNG_ZERO, this.coordType);
4274
+ return y.fromGoogle(r.fromPointToLatLng(l) ?? J.LATLNG_ZERO, this.coordType);
4267
4275
  }
4268
4276
  fromLatLngToContainerPoint(e) {
4269
4277
  const r = this.innerMap.getProjection(), s = this.innerMap.getBounds();
4270
4278
  if (r == null || s == null)
4271
- return K.ZERO;
4279
+ return X.ZERO;
4272
4280
  const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), h = this.innerMap.getZoom();
4273
4281
  if (n == null || a == null || h == null)
4274
- return K.ZERO;
4282
+ return X.ZERO;
4275
4283
  const o = Math.pow(2, h), l = r.fromLatLngToPoint(e.toGoogle(this.coordType));
4276
- return l == null ? K.ZERO : { x: (l.x - n.x) * o, y: (l.y - a.y) * o };
4284
+ return l == null ? X.ZERO : { x: (l.x - n.x) * o, y: (l.y - a.y) * o };
4277
4285
  }
4278
4286
  setDefaultCursor(e) {
4279
4287
  this.innerMap.setOptions({ draggableCursor: e });
@@ -4285,7 +4293,7 @@ class Ri extends ut {
4285
4293
  this.map.setOptions({ disableDoubleClickZoom: !e });
4286
4294
  }
4287
4295
  getCenter() {
4288
- return y.fromGoogle(this.map.getCenter() ?? X.LATLNG_ZERO, this.coordType);
4296
+ return y.fromGoogle(this.map.getCenter() ?? J.LATLNG_ZERO, this.coordType);
4289
4297
  }
4290
4298
  setCenter(e) {
4291
4299
  this.map.setCenter(e.toGoogle(this.coordType));
@@ -4305,7 +4313,7 @@ class Ri extends ut {
4305
4313
  this.map.setMapTypeId(r ?? C("理论上来说不可能为空"));
4306
4314
  }
4307
4315
  setMapType(e) {
4308
- e instanceof B ? this.map.setMapTypeId(e.getGoogleMapTypeId()) : (this.map.mapTypes.set(e.id, e.asGoogleMapType()), this.map.setMapTypeId(e.id));
4316
+ e instanceof S ? this.map.setMapTypeId(e.getGoogleMapTypeId()) : (this.map.mapTypes.set(e.id, e.asGoogleMapType()), this.map.setMapTypeId(e.id));
4309
4317
  }
4310
4318
  getMapType() {
4311
4319
  const e = this.map.getMapTypeId() ?? google.maps.MapTypeId.ROADMAP, r = this.googleMapTypeId2BIMT.get(e);
@@ -4315,7 +4323,7 @@ class Ri extends ut {
4315
4323
  this.map.overlayMapTypes.push(e.asGoogleMapType());
4316
4324
  }
4317
4325
  removeOverlayMapType(e) {
4318
- he.remove(this.map.overlayMapTypes, e.asGoogleMapType());
4326
+ ce.remove(this.map.overlayMapTypes, e.asGoogleMapType());
4319
4327
  }
4320
4328
  addLayer(e) {
4321
4329
  e.asGoogleLayer().setMap(this.map);
@@ -4334,7 +4342,7 @@ class Ri extends ut {
4334
4342
  }
4335
4343
  getBounds() {
4336
4344
  const e = this.map.getBounds();
4337
- return e ? I.fromGoogle(e, this.coordType) : I.EMPTY;
4345
+ return e ? A.fromGoogle(e, this.coordType) : A.EMPTY;
4338
4346
  }
4339
4347
  addElementOverlay(e) {
4340
4348
  e.asGoogle().setMap(this.map);
@@ -4349,39 +4357,39 @@ class Ri extends ut {
4349
4357
  e.innerOverlay.setMap(null);
4350
4358
  }
4351
4359
  addCustomControl(e) {
4352
- e.inner || (e.inner = e.onCreateElement(), this.map.controls[R.getGoogle().toValue(e.position)].push(e.inner));
4360
+ e.inner || (e.inner = e.onCreateElement(), this.map.controls[$.getGoogle().toValue(e.position)].push(e.inner));
4353
4361
  }
4354
4362
  removeCustomControl(e) {
4355
4363
  if (e.inner) {
4356
- const r = this.map.controls[R.getGoogle().toValue(e.position)];
4357
- he.remove(r, e.inner);
4364
+ const r = this.map.controls[$.getGoogle().toValue(e.position)];
4365
+ ce.remove(r, e.inner);
4358
4366
  }
4359
4367
  }
4360
4368
  createMarkerClusterer(e) {
4361
- return new bi(this, e);
4369
+ return new Ti(this, e);
4362
4370
  }
4363
4371
  createAutocomplete(e) {
4364
- return new pi(this, e);
4372
+ return new gi(this, e);
4365
4373
  }
4366
4374
  createSearchBox(e) {
4367
- return new Oi(this, e);
4375
+ return new Ci(this, e);
4368
4376
  }
4369
4377
  createPlacesService(e) {
4370
4378
  return new Mi(this, e);
4371
4379
  }
4372
- createMapUrlsService(e) {
4373
- return new ke(e);
4380
+ createMapUrls(e) {
4381
+ return new Ie(e);
4374
4382
  }
4375
4383
  }
4376
- class $i extends ut {
4384
+ class Di extends gt {
4377
4385
  constructor(e, r) {
4378
4386
  var a;
4379
4387
  super(e);
4380
4388
  c(this, "map");
4381
4389
  c(this, "defaultLayers");
4382
4390
  this.mapOptions = r;
4383
- const s = Jt().here;
4384
- Ie.includes(s.version) || C(`不支持${s.version}, HereMap当前只支持如下版本: ${Ie}`);
4391
+ const s = er().here;
4392
+ Ae.includes(s.version) || C(`不支持${s.version}, HereMap当前只支持如下版本: ${Ae}`);
4385
4393
  const n = new H.service.Platform({
4386
4394
  app_id: s.key.split(",")[0],
4387
4395
  app_code: s.key.split(",")[1]
@@ -4395,7 +4403,7 @@ class $i extends ut {
4395
4403
  return this.map;
4396
4404
  }
4397
4405
  get coordType() {
4398
- return S.wgs84;
4406
+ return B.wgs84;
4399
4407
  }
4400
4408
  getCenter() {
4401
4409
  return y.fromHere(this.map.getCenter(), this.coordType);
@@ -4485,7 +4493,7 @@ class $i extends ut {
4485
4493
  createPlacesService(e) {
4486
4494
  throw new Error("Method not implemented.");
4487
4495
  }
4488
- createMapUrlsService(e) {
4496
+ createMapUrls(e) {
4489
4497
  throw new Error("Method not implemented.");
4490
4498
  }
4491
4499
  createInfoWindow(e) {
@@ -4525,89 +4533,89 @@ class $i extends ut {
4525
4533
  throw new Error("Method not implemented.");
4526
4534
  }
4527
4535
  }
4528
- var N = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(N || {}), tt;
4536
+ var G = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(G || {}), it;
4529
4537
  ((i) => {
4530
4538
  function t(e, r, s) {
4531
- const n = et.create(s);
4539
+ const n = rt.create(s);
4532
4540
  switch (e) {
4533
4541
  case "google":
4534
- return new Ri(r, n);
4542
+ return new $i(r, n);
4535
4543
  case "baidu":
4536
- return new Ai(r, n);
4544
+ return new Ri(r, n);
4537
4545
  case "here":
4538
- return new $i(r, n);
4546
+ return new Di(r, n);
4539
4547
  }
4540
4548
  }
4541
4549
  i.createMap = t;
4542
- })(tt || (tt = {}));
4543
- function Di({ type: i, config: t }) {
4544
- const e = window, r = zi(i);
4550
+ })(it || (it = {}));
4551
+ function zi({ type: i, config: t }) {
4552
+ const e = window, r = Ni(i);
4545
4553
  if (e[r])
4546
4554
  return Promise.resolve();
4547
- switch (i !== N.here && !t.key && C(`请先配置${i}地图的key`), i) {
4548
- case N.google:
4549
- return {}.VITE_FALSE ? (ci({
4555
+ switch (i !== G.here && !t.key && C(`请先配置${i}地图的key`), i) {
4556
+ case G.google:
4557
+ return {}.VITE_FALSE ? (di({
4550
4558
  key: t.key,
4551
4559
  v: "3.52"
4552
4560
  // v: config.version,
4553
- }), google.maps.importLibrary("core")) : Wt(`https://maps.googleapis.com/maps/api/js?key=${t.key}&language=${t.language}&v=${t.version}&libraries=${t.libraries.join(",")}`);
4554
- case N.baidu:
4555
- return Wt(`https://api.map.baidu.com/api?v=${t.version}&ak=${t.key}`);
4556
- case N.here:
4557
- return pe(ue("core", t.version)).then(() => Promise.all([
4561
+ }), google.maps.importLibrary("core")) : jt(`https://maps.googleapis.com/maps/api/js?key=${t.key}&language=${t.language}&v=${t.version}&libraries=${t.libraries.join(",")}`);
4562
+ case G.baidu:
4563
+ return jt(`https://api.map.baidu.com/api?v=${t.version}&ak=${t.key}`);
4564
+ case G.here:
4565
+ return ge(pe("core", t.version)).then(() => Promise.all([
4558
4566
  // 其他大多数模块都可以同时载入
4559
- pe(ue("service", t.version)),
4560
- pe(ue("mapevents", t.version)),
4561
- pe(ue("clustering", t.version)),
4562
- pe(ue("ui", t.version))
4567
+ ge(pe("service", t.version)),
4568
+ ge(pe("mapevents", t.version)),
4569
+ ge(pe("clustering", t.version)),
4570
+ ge(pe("ui", t.version))
4563
4571
  ])).catch((s) => (delete e[r], Promise.reject(s)));
4564
4572
  default:
4565
- Xe(i);
4573
+ Qe(i);
4566
4574
  }
4567
4575
  }
4568
- function ue(i, t = Ie[0]) {
4576
+ function pe(i, t = Ae[0]) {
4569
4577
  return `https://js.api.here.com/v3/${t}/mapsjs-${i}.js`;
4570
4578
  }
4571
- function zi(i) {
4579
+ function Ni(i) {
4572
4580
  switch (i) {
4573
- case N.google:
4581
+ case G.google:
4574
4582
  return "google";
4575
- case N.baidu:
4583
+ case G.baidu:
4576
4584
  return "BMap";
4577
- case N.here:
4585
+ case G.here:
4578
4586
  return "H";
4579
4587
  }
4580
4588
  }
4581
- let Ni = 0;
4582
- function Wt(i, t = "callback") {
4589
+ let Gi = 0;
4590
+ function jt(i, t = "callback") {
4583
4591
  return new Promise((e, r) => {
4584
- const s = `__callback${Ni++}`;
4592
+ const s = `__callback${Gi++}`;
4585
4593
  window[s] = e;
4586
4594
  const n = document.createElement("script");
4587
4595
  n.src = `${i}&${t}=${s}`, n.onerror = r, document.body.appendChild(n);
4588
4596
  });
4589
4597
  }
4590
- function pe(i) {
4598
+ function ge(i) {
4591
4599
  return new Promise((t, e) => {
4592
4600
  const r = document.createElement("script");
4593
4601
  r.src = i, r.onload = t, r.onerror = e, document.body.appendChild(r);
4594
4602
  });
4595
4603
  }
4596
- function G(i, t) {
4604
+ function Z(i, t) {
4597
4605
  return {
4598
4606
  type: String,
4599
4607
  default: t,
4600
4608
  validator: (e) => Object.values(i).includes(e)
4601
4609
  };
4602
4610
  }
4603
- function Gi(i, t) {
4611
+ function Zi(i, t) {
4604
4612
  return {
4605
4613
  type: String,
4606
4614
  default: t,
4607
4615
  validator: (e) => i.includes(e)
4608
4616
  };
4609
4617
  }
4610
- function $(i) {
4618
+ function D(i) {
4611
4619
  return {
4612
4620
  type: i,
4613
4621
  required: !0
@@ -4619,7 +4627,7 @@ function m(i, t) {
4619
4627
  default: t
4620
4628
  };
4621
4629
  }
4622
- function Hs(i) {
4630
+ function js(i) {
4623
4631
  const t = {};
4624
4632
  return Object.entries(i).forEach(([e, r]) => {
4625
4633
  const s = `__${e}`;
@@ -4636,37 +4644,37 @@ function Hs(i) {
4636
4644
  };
4637
4645
  }), t;
4638
4646
  }
4639
- const ge = {
4647
+ const me = {
4640
4648
  enumerable: !0,
4641
4649
  configurable: !0,
4642
- get: ye,
4643
- set: ye
4650
+ get: ve,
4651
+ set: ve
4644
4652
  };
4645
- function Zi(i) {
4653
+ function Wi(i) {
4646
4654
  return Object.keys(i).forEach((t) => {
4647
4655
  const e = i[t];
4648
4656
  let r = !1;
4649
- typeof e == "function" ? (ge.get = e, ge.set = ye, r = !0) : typeof e == "object" && typeof e.get == "function" && (ge.get = e.get, ge.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, ge));
4657
+ typeof e == "function" ? (me.get = e, me.set = ve, r = !0) : typeof e == "object" && typeof e.get == "function" && (me.get = e.get, me.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, me));
4650
4658
  }), i;
4651
4659
  }
4652
- function js(i) {
4653
- return Zi(i);
4660
+ function Vs(i) {
4661
+ return Wi(i);
4654
4662
  }
4655
- function Tr() {
4656
- return Ke();
4663
+ function Or() {
4664
+ return Je();
4657
4665
  }
4658
- function xe(i, t) {
4666
+ function Pe(i, t) {
4659
4667
  const e = i.$options[t];
4660
4668
  if (e)
4661
4669
  for (const r of e)
4662
4670
  r.call(i);
4663
4671
  }
4664
- function Vs(i, t) {
4672
+ function Fs(i, t) {
4665
4673
  for (const e of i)
4666
4674
  if (e.$options.name === t.name)
4667
4675
  return e;
4668
4676
  }
4669
- function Fs(i, t) {
4677
+ function Us(i, t) {
4670
4678
  if (!i.default)
4671
4679
  return;
4672
4680
  const e = i.default();
@@ -4674,12 +4682,12 @@ function Fs(i, t) {
4674
4682
  if ((r == null ? void 0 : r.type).name === t.name)
4675
4683
  return r;
4676
4684
  }
4677
- function Wi(i, t) {
4685
+ function Hi(i, t) {
4678
4686
  const e = {}, r = {}, s = {};
4679
4687
  return Object.keys(i).forEach((n) => {
4680
- n.startsWith("on") ? e[be.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
4688
+ n.startsWith("on") ? e[Te.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
4681
4689
  }), t && Object.keys(t).forEach((n) => {
4682
- n.startsWith("on") && (s[be.pascal2kebab(n.substring(2))] = t[n]);
4690
+ n.startsWith("on") && (s[Te.pascal2kebab(n.substring(2))] = t[n]);
4683
4691
  }), {
4684
4692
  /** class/style/未声明的属性 等 */
4685
4693
  binds: r,
@@ -4689,13 +4697,13 @@ function Wi(i, t) {
4689
4697
  listenerProps: s
4690
4698
  };
4691
4699
  }
4692
- function U(i, t) {
4693
- return jt(() => Wi(i, t));
4700
+ function Y(i, t) {
4701
+ return Ft(() => Hi(i, t));
4694
4702
  }
4695
4703
  function L() {
4696
4704
  return Function;
4697
4705
  }
4698
- const Us = () => {
4706
+ const Ys = () => {
4699
4707
  let i, t;
4700
4708
  function e(s) {
4701
4709
  console.log(s), i = s && s.type, t = Date.now();
@@ -4704,33 +4712,33 @@ const Us = () => {
4704
4712
  ((s && s.type) !== i || Date.now() - (t ?? 0) > 1e3) && e(s);
4705
4713
  }
4706
4714
  return { eventLog: e, eventLogLess: r };
4707
- }, St = "$map", Ce = "onCreate", we = "onDestroy", P = w({
4715
+ }, St = "$map", we = "onCreate", Ee = "onDestroy", P = w({
4708
4716
  inject: [St],
4709
4717
  mounted() {
4710
- xe(this, Ce);
4718
+ Pe(this, we);
4711
4719
  },
4712
4720
  beforeUnmount() {
4713
- xe(this, we);
4721
+ Pe(this, Ee);
4714
4722
  },
4715
4723
  methods: {
4716
4724
  recreate() {
4717
- xe(this, we), xe(this, Ce);
4725
+ Pe(this, Ee), Pe(this, we);
4718
4726
  }
4719
4727
  },
4720
4728
  render() {
4721
- return Tr();
4729
+ return Or();
4722
4730
  }
4723
- }), Hi = w({
4731
+ }), ji = w({
4724
4732
  name: "tg-map",
4725
4733
  provide() {
4726
4734
  return {
4727
- [St]: jt(() => this.map)
4735
+ [St]: Ft(() => this.map)
4728
4736
  };
4729
4737
  },
4730
4738
  inheritAttrs: !1,
4731
4739
  props: {
4732
4740
  /** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
4733
- type: G(N, N.google),
4741
+ type: Z(G, G.google),
4734
4742
  /**
4735
4743
  * 当对该属性使用双向绑定时, 改变center将触发update:center又反过来触发center改变, 最终导致无限循环...
4736
4744
  * 当前通过setCenter()时判断center是否有改变来避免该问题, 但为了避免可能存在的问题, 另外设计了如下机制:
@@ -4739,7 +4747,7 @@ const Us = () => {
4739
4747
  * - :last-center.sync="center": 获取tg-map销毁时的最后的center的值, 使用这种方式可以做到type切换时保留中心点位置
4740
4748
  * @see AbstractMapEventMap.center-changed
4741
4749
  * */
4742
- center: $(y),
4750
+ center: D(y),
4743
4751
  /**
4744
4752
  * 同步center的延时
4745
4753
  * @default 300
@@ -4756,17 +4764,17 @@ const Us = () => {
4756
4764
  * @see center
4757
4765
  */
4758
4766
  lastCenter: m(y),
4759
- zoom: $(Number),
4767
+ zoom: D(Number),
4760
4768
  /**
4761
4769
  * 该属性不会响应式更新, 要让它立即生效, 请参考{@link file://./../views/map/InfoDemo.vue#L3}
4762
4770
  * @see MapOptions.infoWindowMode
4763
4771
  */
4764
- infoWindowMode: Gi(Li),
4765
- gestureHandling: G(W),
4772
+ infoWindowMode: Zi(xi),
4773
+ gestureHandling: Z(j),
4766
4774
  minZoom: m(Number),
4767
4775
  maxZoom: m(Number),
4768
4776
  mapStyle: m(Object),
4769
- mapTypeId: G(ir),
4777
+ mapTypeId: Z(nr),
4770
4778
  /** 地图类型对象, 优先级比mapTypeId高 */
4771
4779
  mapType: m(Object),
4772
4780
  hideLogo: m(Boolean),
@@ -4783,19 +4791,19 @@ const Us = () => {
4783
4791
  emits: void 0,
4784
4792
  setup(i, { attrs: t }) {
4785
4793
  return {
4786
- attrs: U(t, i),
4794
+ attrs: Y(t, i),
4787
4795
  centerSyncTimeoutId: void 0
4788
4796
  };
4789
4797
  },
4790
4798
  data() {
4791
4799
  return {
4792
- map: Je(),
4800
+ map: et(),
4793
4801
  isDestroyed: !1
4794
4802
  };
4795
4803
  },
4796
4804
  computed: {
4797
4805
  propsJson() {
4798
- return _e.toJsonSafely(this.$props);
4806
+ return be.toJsonSafely(this.$props);
4799
4807
  }
4800
4808
  },
4801
4809
  watch: {
@@ -4821,13 +4829,13 @@ const Us = () => {
4821
4829
  },
4822
4830
  mapType(i) {
4823
4831
  var t;
4824
- (t = this.map) == null || t.setMapType(i ?? A.NORMAL);
4832
+ (t = this.map) == null || t.setMapType(i ?? R.NORMAL);
4825
4833
  }
4826
4834
  },
4827
4835
  async mounted() {
4828
4836
  const i = this.type;
4829
4837
  try {
4830
- await Di({ type: i, config: Jt()[i] });
4838
+ await zi({ type: i, config: er()[i] });
4831
4839
  } catch (s) {
4832
4840
  this.$emit("error", s);
4833
4841
  return;
@@ -4836,7 +4844,7 @@ const Us = () => {
4836
4844
  console.warn(`tg-map(type=${i})已销毁, 不需要继续执行`);
4837
4845
  return;
4838
4846
  }
4839
- const t = tt.createMap(
4847
+ const t = it.createMap(
4840
4848
  i,
4841
4849
  this.$refs.map,
4842
4850
  /* options: */
@@ -4851,12 +4859,12 @@ const Us = () => {
4851
4859
  buildInMapTypeId: this.mapTypeId
4852
4860
  }
4853
4861
  );
4854
- if (this.map = Sr(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), F(
4862
+ if (this.map = Br(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), U(
4855
4863
  this.attrs.listeners,
4856
4864
  t,
4857
4865
  /* excludes: */
4858
4866
  ["load"]
4859
- ), this.$emit("load", t), Vt([
4867
+ ), this.$emit("load", t), Ut([
4860
4868
  () => this.zoom,
4861
4869
  () => this.center
4862
4870
  //
@@ -4890,22 +4898,22 @@ const q = (i, t) => {
4890
4898
  e[r] = s;
4891
4899
  return e;
4892
4900
  };
4893
- function ji(i, t, e, r, s, n) {
4894
- return j(), V("div", de({ class: "tg-map" }, i.attrs.binds), [
4895
- Br("div", {
4901
+ function Vi(i, t, e, r, s, n) {
4902
+ return V(), F("div", ue({ class: "tg-map" }, i.attrs.binds), [
4903
+ Sr("div", {
4896
4904
  ref: "map",
4897
- class: Ne({
4905
+ class: Ze({
4898
4906
  "tg-map__map": !0,
4899
4907
  [`tg-map__map--hide-logo-${i.type}`]: i.hideLogo
4900
4908
  })
4901
4909
  }, null, 2),
4902
- Ke("", !0),
4903
- i.map ? Z(i.$slots, "default", { key: 1 }) : Ke("", !0),
4904
- Z(i.$slots, "overlay")
4910
+ Je("", !0),
4911
+ i.map ? W(i.$slots, "default", { key: 1 }) : Je("", !0),
4912
+ W(i.$slots, "overlay")
4905
4913
  ], 16);
4906
4914
  }
4907
- const Or = /* @__PURE__ */ q(Hi, [["render", ji]]);
4908
- function Vi(i) {
4915
+ const Cr = /* @__PURE__ */ q(ji, [["render", Vi]]);
4916
+ function Fi(i) {
4909
4917
  if (i == null)
4910
4918
  return;
4911
4919
  let t;
@@ -4916,7 +4924,7 @@ function Vi(i) {
4916
4924
  t = i;
4917
4925
  return `${t}px`;
4918
4926
  }
4919
- const Fi = w({
4927
+ const Ui = w({
4920
4928
  name: "tg-map-widget",
4921
4929
  props: {
4922
4930
  left: {
@@ -4942,22 +4950,22 @@ const Fi = w({
4942
4950
  }
4943
4951
  },
4944
4952
  methods: {
4945
- dimen: Vi
4953
+ dimen: Fi
4946
4954
  }
4947
4955
  });
4948
- function Ui(i, t, e, r, s, n) {
4949
- return j(), V("div", {
4950
- class: Ne(i.$options.name),
4951
- style: Ir({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
4956
+ function Yi(i, t, e, r, s, n) {
4957
+ return V(), F("div", {
4958
+ class: Ze(i.$options.name),
4959
+ style: Ar({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
4952
4960
  }, [
4953
- Z(i.$slots, "default")
4961
+ W(i.$slots, "default")
4954
4962
  ], 6);
4955
4963
  }
4956
- const qi = /* @__PURE__ */ q(Fi, [["render", Ui]]), Yi = w({
4964
+ const qi = /* @__PURE__ */ q(Ui, [["render", Yi]]), Ki = w({
4957
4965
  name: "tg-custom-control",
4958
4966
  mixins: [P],
4959
4967
  props: {
4960
- position: G(k, k.RIGHT_BOTTOM)
4968
+ position: Z(I, I.RIGHT_BOTTOM)
4961
4969
  },
4962
4970
  setup() {
4963
4971
  return {
@@ -4970,8 +4978,8 @@ const qi = /* @__PURE__ */ q(Fi, [["render", Ui]]), Yi = w({
4970
4978
  }
4971
4979
  },
4972
4980
  onCreate() {
4973
- Ee(this.$parent, Or) || console.warn("请将tg-custom-control放到tg-map中");
4974
- const { $el: i } = this, t = class extends li {
4981
+ Le(this.$parent, Cr) || console.warn("请将tg-custom-control放到tg-map中");
4982
+ const { $el: i } = this, t = class extends hi {
4975
4983
  onCreateElement() {
4976
4984
  return i;
4977
4985
  }
@@ -4982,19 +4990,19 @@ const qi = /* @__PURE__ */ q(Fi, [["render", Ui]]), Yi = w({
4982
4990
  this.$map.removeCustomControl(this.control);
4983
4991
  }
4984
4992
  });
4985
- function Ki(i, t, e, r, s, n) {
4986
- return j(), V("div", {
4987
- class: Ne(i.$options.name)
4993
+ function Xi(i, t, e, r, s, n) {
4994
+ return V(), F("div", {
4995
+ class: Ze(i.$options.name)
4988
4996
  }, [
4989
- Z(i.$slots, "default")
4997
+ W(i.$slots, "default")
4990
4998
  ], 2);
4991
4999
  }
4992
- const Xi = /* @__PURE__ */ q(Yi, [["render", Ki]]), Ji = w({
5000
+ const Ji = /* @__PURE__ */ q(Ki, [["render", Xi]]), Qi = w({
4993
5001
  name: "tg-map-type-control",
4994
5002
  mixins: [P],
4995
5003
  props: {
4996
- position: G(k, k.TOP_LEFT),
4997
- type: G(sr),
5004
+ position: Z(I, I.TOP_LEFT),
5005
+ type: Z(or),
4998
5006
  mapTypes: m(Array)
4999
5007
  },
5000
5008
  setup() {
@@ -5022,11 +5030,11 @@ const Xi = /* @__PURE__ */ q(Yi, [["render", Ki]]), Ji = w({
5022
5030
  onDestroy() {
5023
5031
  this.$map.removeControl(this.control);
5024
5032
  }
5025
- }), Qi = w({
5033
+ }), es = w({
5026
5034
  name: "tg-scale-control",
5027
5035
  mixins: [P],
5028
5036
  props: {
5029
- position: G(k, k.BOTTOM_RIGHT)
5037
+ position: Z(I, I.BOTTOM_RIGHT)
5030
5038
  },
5031
5039
  setup() {
5032
5040
  return {
@@ -5045,32 +5053,32 @@ const Xi = /* @__PURE__ */ q(Yi, [["render", Ki]]), Ji = w({
5045
5053
  this.$map.removeControl(this.control);
5046
5054
  }
5047
5055
  });
5048
- function Cr() {
5056
+ function wr() {
5049
5057
  var e;
5050
- const i = (e = Ar()) == null ? void 0 : e.type;
5058
+ const i = (e = Rr()) == null ? void 0 : e.type;
5051
5059
  let t = (i == null ? void 0 : i.name) ?? (i == null ? void 0 : i.__name);
5052
5060
  if (!t) {
5053
5061
  const r = i == null ? void 0 : i.__file;
5054
- r && (t = ki.basename(r, ".vue"));
5062
+ r && (t = Ii.basename(r, ".vue"));
5055
5063
  }
5056
5064
  return t;
5057
5065
  }
5058
- function es() {
5059
- const i = Rr(St);
5066
+ function ts() {
5067
+ const i = $r(St);
5060
5068
  let t, e;
5061
- return i == null && C(`<${Cr() || "unknown"}>必须作为<tg-map>的子代组件`), {
5069
+ return i == null && C(`<${wr() || "unknown"}>必须作为<tg-map>的子代组件`), {
5062
5070
  mapRef: i,
5063
5071
  /** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
5064
5072
  get map() {
5065
5073
  return i.value ?? C("map尚未初始化");
5066
5074
  },
5067
5075
  /** 地图元素创建回调 */
5068
- [Ce](r) {
5069
- $r(r), t && C(`${Ce}只能调用一次`), t = r;
5076
+ [we](r) {
5077
+ Dr(r), t && C(`${we}只能调用一次`), t = r;
5070
5078
  },
5071
5079
  /** 地图元素销毁回调 */
5072
- [we](r) {
5073
- Dr(r), e && C(`${we}只能调用一次`), e = r;
5080
+ [Ee](r) {
5081
+ zr(r), e && C(`${Ee}只能调用一次`), e = r;
5074
5082
  },
5075
5083
  /** 重新创建地图元素 */
5076
5084
  recreate() {
@@ -5078,23 +5086,23 @@ function es() {
5078
5086
  }
5079
5087
  };
5080
5088
  }
5081
- const ts = w({
5089
+ const rs = w({
5082
5090
  name: "tg-zoom-control",
5083
5091
  props: {
5084
- position: G(k, k.RIGHT_BOTTOM)
5092
+ position: Z(I, I.RIGHT_BOTTOM)
5085
5093
  },
5086
5094
  setup(i) {
5087
5095
  let t = void 0;
5088
- const { map: e, onCreate: r, onDestroy: s } = es();
5096
+ const { map: e, onCreate: r, onDestroy: s } = ts();
5089
5097
  return r(() => {
5090
5098
  t = e.createZoomControl(i), e.addControl(t);
5091
5099
  }), s(() => {
5092
5100
  e.removeControl(t);
5093
- }), Vt(() => i.position, (n) => {
5101
+ }), Ut(() => i.position, (n) => {
5094
5102
  t.setPosition(n);
5095
- }), Tr;
5103
+ }), Or;
5096
5104
  }
5097
- }), rs = w({
5105
+ }), is = w({
5098
5106
  name: "tg-marker-clusterer",
5099
5107
  mixins: [P],
5100
5108
  // markers从this.$children中读取, 故需要省略(Omit)
@@ -5154,18 +5162,18 @@ const ts = w({
5154
5162
  this.markers.push(i), this.isInitiated() && this.clusterer.addMarker(i);
5155
5163
  },
5156
5164
  onRemoveMarker(i) {
5157
- this.isInitiated() && this.clusterer.removeMarker(i), le.remove(this.markers, i);
5165
+ this.isInitiated() && this.clusterer.removeMarker(i), he.remove(this.markers, i);
5158
5166
  }
5159
5167
  }
5160
5168
  });
5161
- function is(i, t, e, r, s, n) {
5162
- return j(), V("div", {
5163
- class: Ne(i.$options.name)
5169
+ function ss(i, t, e, r, s, n) {
5170
+ return V(), F("div", {
5171
+ class: Ze(i.$options.name)
5164
5172
  }, [
5165
- Z(i.$slots, "default")
5173
+ W(i.$slots, "default")
5166
5174
  ], 2);
5167
5175
  }
5168
- const wr = /* @__PURE__ */ q(rs, [["render", is]]), ss = w({
5176
+ const Er = /* @__PURE__ */ q(is, [["render", ss]]), ns = w({
5169
5177
  name: "tg-traffic-layer",
5170
5178
  mixins: [P],
5171
5179
  // 请直接使用v-if来控制它的显隐
@@ -5178,18 +5186,18 @@ const wr = /* @__PURE__ */ q(rs, [["render", is]]), ss = w({
5178
5186
  },
5179
5187
  watch: {},
5180
5188
  onCreate() {
5181
- this.layer = new hi(), this.$map.addLayer(this.layer);
5189
+ this.layer = new ci(), this.$map.addLayer(this.layer);
5182
5190
  },
5183
5191
  onDestroy() {
5184
5192
  this.$map.removeLayer(this.layer);
5185
5193
  }
5186
- }), ns = w({
5194
+ }), os = w({
5187
5195
  name: "tg-circle",
5188
5196
  mixins: [P],
5189
5197
  inheritAttrs: !1,
5190
5198
  props: {
5191
- center: $(y),
5192
- radius: $(Number),
5199
+ center: D(y),
5200
+ radius: D(Number),
5193
5201
  clickable: m(Boolean),
5194
5202
  editable: m(Boolean),
5195
5203
  strokeColor: m(String),
@@ -5204,7 +5212,7 @@ const wr = /* @__PURE__ */ q(rs, [["render", is]]), ss = w({
5204
5212
  emits: void 0,
5205
5213
  setup(i, { attrs: t }) {
5206
5214
  return {
5207
- attrs: U(t, i),
5215
+ attrs: Y(t, i),
5208
5216
  overlay: void 0,
5209
5217
  emittedRadius: void 0,
5210
5218
  emittedCenter: void 0
@@ -5214,7 +5222,7 @@ const wr = /* @__PURE__ */ q(rs, [["render", is]]), ss = w({
5214
5222
  center(i) {
5215
5223
  if (this.emittedCenter != null) {
5216
5224
  const t = this.emittedCenter;
5217
- if (this.emittedCenter = void 0, t === Ge(i))
5225
+ if (this.emittedCenter = void 0, t === We(i))
5218
5226
  return;
5219
5227
  }
5220
5228
  this.overlay.setCenter(i);
@@ -5253,7 +5261,7 @@ const wr = /* @__PURE__ */ q(rs, [["render", is]]), ss = w({
5253
5261
  }
5254
5262
  },
5255
5263
  onCreate() {
5256
- this.overlay = this.$map.createCircle(this), this.$map.addOverlay(this.overlay), F(this.attrs.listeners, this.overlay), "update:center" in this.attrs.listenerProps && this.overlay.addEventListener("center-changed", () => {
5264
+ this.overlay = this.$map.createCircle(this), this.$map.addOverlay(this.overlay), U(this.attrs.listeners, this.overlay), "update:center" in this.attrs.listenerProps && this.overlay.addEventListener("center-changed", () => {
5257
5265
  this.$emit("update:center", this.emittedCenter = this.overlay.getCenter());
5258
5266
  }), "update:radius" in this.attrs.listenerProps && this.overlay.addEventListener("radius-changed", () => {
5259
5267
  this.$emit("update:radius", this.emittedRadius = this.overlay.getRadius());
@@ -5263,7 +5271,7 @@ const wr = /* @__PURE__ */ q(rs, [["render", is]]), ss = w({
5263
5271
  this.$map.removeOverlay(this.overlay);
5264
5272
  }
5265
5273
  });
5266
- class os extends Si {
5274
+ class as extends Bi {
5267
5275
  constructor(t, e, r, s) {
5268
5276
  super(t, e), this.content = r, this.position = s;
5269
5277
  }
@@ -5278,12 +5286,12 @@ class os extends Si {
5278
5286
  this.position = t, this.draw();
5279
5287
  }
5280
5288
  }
5281
- const as = w({
5289
+ const ls = w({
5282
5290
  name: "tg-element-overlay",
5283
5291
  mixins: [P],
5284
5292
  props: {
5285
- mapPane: G(Me, Me.overlayMouseTarget),
5286
- position: $(y)
5293
+ mapPane: Z(Me, Me.overlayMouseTarget),
5294
+ position: D(y)
5287
5295
  },
5288
5296
  setup() {
5289
5297
  return {
@@ -5304,25 +5312,25 @@ const as = w({
5304
5312
  }
5305
5313
  },
5306
5314
  onCreate() {
5307
- this.overlay = new os(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
5315
+ this.overlay = new as(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
5308
5316
  },
5309
5317
  onDestroy() {
5310
5318
  this.$map.removeElementOverlay(this.overlay);
5311
5319
  }
5312
5320
  });
5313
- function ls(i, t, e, r, s, n) {
5314
- return j(), V("div", de({
5321
+ function hs(i, t, e, r, s, n) {
5322
+ return V(), F("div", ue({
5315
5323
  class: i.$options.name
5316
5324
  }, i.$attrs), [
5317
- Z(i.$slots, "default")
5325
+ W(i.$slots, "default")
5318
5326
  ], 16);
5319
5327
  }
5320
- const hs = /* @__PURE__ */ q(as, [["render", ls]]), cs = w({
5328
+ const cs = /* @__PURE__ */ q(ls, [["render", hs]]), ds = w({
5321
5329
  name: "tg-marker",
5322
5330
  mixins: [P],
5323
5331
  inheritAttrs: !1,
5324
5332
  props: {
5325
- position: $(y),
5333
+ position: D(y),
5326
5334
  title: m(String),
5327
5335
  icon: m(Object),
5328
5336
  clickable: m(Boolean),
@@ -5336,10 +5344,10 @@ const hs = /* @__PURE__ */ q(as, [["render", ls]]), cs = w({
5336
5344
  emits: void 0,
5337
5345
  setup(i, { attrs: t }) {
5338
5346
  return {
5339
- attrs: U(t, i),
5347
+ attrs: Y(t, i),
5340
5348
  marker: void 0,
5341
- label: Je(),
5342
- info: Je(),
5349
+ label: et(),
5350
+ info: et(),
5343
5351
  emittedPosition: void 0
5344
5352
  };
5345
5353
  },
@@ -5347,7 +5355,7 @@ const hs = /* @__PURE__ */ q(as, [["render", ls]]), cs = w({
5347
5355
  position(i) {
5348
5356
  if (this.emittedPosition != null) {
5349
5357
  const t = this.emittedPosition;
5350
- if (this.emittedPosition = void 0, t === Ge(i))
5358
+ if (this.emittedPosition = void 0, t === We(i))
5351
5359
  return;
5352
5360
  }
5353
5361
  this.marker.setPosition(i);
@@ -5359,7 +5367,7 @@ const hs = /* @__PURE__ */ q(as, [["render", ls]]), cs = w({
5359
5367
  i ? this.marker.setIcon(i) : this.recreate();
5360
5368
  },
5361
5369
  clickable(i) {
5362
- this.marker instanceof Oe ? this.recreate() : this.marker.setClickable(i);
5370
+ this.marker instanceof Ce ? this.recreate() : this.marker.setClickable(i);
5363
5371
  },
5364
5372
  draggable(i) {
5365
5373
  this.marker.setDraggable(i);
@@ -5371,14 +5379,14 @@ const hs = /* @__PURE__ */ q(as, [["render", ls]]), cs = w({
5371
5379
  this.recreate();
5372
5380
  },
5373
5381
  zIndex(i) {
5374
- this.marker instanceof Oe ? this.recreate() : this.marker.setZIndex(i);
5382
+ this.marker instanceof Ce ? this.recreate() : this.marker.setZIndex(i);
5375
5383
  },
5376
5384
  visible(i) {
5377
5385
  this.marker.setVisible(i);
5378
5386
  }
5379
5387
  },
5380
5388
  onCreate() {
5381
- this.marker = this.$map.createMarker(this), this.label && this.marker.setLabel(this.label.overlay), this.$clusterer() ? this.$clusterer().onAddMarker(this.marker) : this.$map.addOverlay(this.marker), this.info && this.info.show && this.info.overlay.open(this.marker), F(this.attrs.listeners, this.marker), "update:position" in this.attrs.listenerProps && this.marker.addEventListener("dragend", (i) => {
5389
+ this.marker = this.$map.createMarker(this), this.label && this.marker.setLabel(this.label.overlay), this.$clusterer() ? this.$clusterer().onAddMarker(this.marker) : this.$map.addOverlay(this.marker), this.info && this.info.show && this.info.overlay.open(this.marker), U(this.attrs.listeners, this.marker), "update:position" in this.attrs.listenerProps && this.marker.addEventListener("dragend", (i) => {
5382
5390
  this.$emit("update:position", this.emittedPosition = i.position);
5383
5391
  });
5384
5392
  },
@@ -5387,7 +5395,7 @@ const hs = /* @__PURE__ */ q(as, [["render", ls]]), cs = w({
5387
5395
  },
5388
5396
  methods: {
5389
5397
  $clusterer() {
5390
- return Ee(this.$parent, wr);
5398
+ return Le(this.$parent, Er);
5391
5399
  },
5392
5400
  onAddLabel(i) {
5393
5401
  this.label = i, this.marker && this.marker.setLabel(i.overlay);
@@ -5406,19 +5414,19 @@ const hs = /* @__PURE__ */ q(as, [["render", ls]]), cs = w({
5406
5414
  }
5407
5415
  }
5408
5416
  });
5409
- function ds(i, t, e, r, s, n) {
5410
- return j(), V("div", de({
5417
+ function us(i, t, e, r, s, n) {
5418
+ return V(), F("div", ue({
5411
5419
  class: i.$options.name
5412
5420
  }, i.attrs.binds), [
5413
- Z(i.$slots, "default")
5421
+ W(i.$slots, "default")
5414
5422
  ], 16);
5415
5423
  }
5416
- const je = /* @__PURE__ */ q(cs, [["render", ds]]), us = w({
5424
+ const Fe = /* @__PURE__ */ q(ds, [["render", us]]), ps = w({
5417
5425
  name: "tg-info-box",
5418
5426
  mixins: [P],
5419
5427
  inheritAttrs: !1,
5420
5428
  props: {
5421
- show: $(Boolean),
5429
+ show: D(Boolean),
5422
5430
  position: m(y),
5423
5431
  offset: m(Object),
5424
5432
  maxWidth: m(Number),
@@ -5429,7 +5437,7 @@ const je = /* @__PURE__ */ q(cs, [["render", ds]]), us = w({
5429
5437
  emits: void 0,
5430
5438
  setup(i, { attrs: t }) {
5431
5439
  return {
5432
- attrs: U(t, i),
5440
+ attrs: Y(t, i),
5433
5441
  overlay: void 0
5434
5442
  };
5435
5443
  },
@@ -5456,7 +5464,7 @@ const je = /* @__PURE__ */ q(cs, [["render", ds]]), us = w({
5456
5464
  onCreate() {
5457
5465
  this.overlay = this.$map.createInfoBox(this.getOptions()), this.$marker() ? this.$marker().onAddInfo(this) : this.show && this.overlay.open(), "update:show" in this.attrs.listenerProps && this.overlay.addEventListener("closeclick", () => {
5458
5466
  this.$emit("update:show", !1);
5459
- }), F(this.attrs.listeners, this.overlay);
5467
+ }), U(this.attrs.listeners, this.overlay);
5460
5468
  },
5461
5469
  onDestroy() {
5462
5470
  this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
@@ -5476,7 +5484,7 @@ const je = /* @__PURE__ */ q(cs, [["render", ds]]), us = w({
5476
5484
  return this.$el;
5477
5485
  },
5478
5486
  $marker() {
5479
- return Ee(this.$parent, je);
5487
+ return Le(this.$parent, Fe);
5480
5488
  },
5481
5489
  open(i) {
5482
5490
  this.overlay.open(i);
@@ -5486,19 +5494,19 @@ const je = /* @__PURE__ */ q(cs, [["render", ds]]), us = w({
5486
5494
  }
5487
5495
  }
5488
5496
  });
5489
- function ps(i, t, e, r, s, n) {
5490
- return j(), V("div", de({
5497
+ function gs(i, t, e, r, s, n) {
5498
+ return V(), F("div", ue({
5491
5499
  class: i.$options.name
5492
5500
  }, i.attrs.binds), [
5493
- Z(i.$slots, "default")
5501
+ W(i.$slots, "default")
5494
5502
  ], 16);
5495
5503
  }
5496
- const gs = /* @__PURE__ */ q(us, [["render", ps]]), ms = w({
5504
+ const ms = /* @__PURE__ */ q(ps, [["render", gs]]), fs = w({
5497
5505
  name: "tg-info-window",
5498
5506
  mixins: [P],
5499
5507
  inheritAttrs: !1,
5500
5508
  props: {
5501
- show: $(Boolean),
5509
+ show: D(Boolean),
5502
5510
  position: m(y),
5503
5511
  maxWidth: m(Number),
5504
5512
  offset: m(Object),
@@ -5508,7 +5516,7 @@ const gs = /* @__PURE__ */ q(us, [["render", ps]]), ms = w({
5508
5516
  emits: void 0,
5509
5517
  setup(i, { attrs: t }) {
5510
5518
  return {
5511
- attrs: U(t, i),
5519
+ attrs: Y(t, i),
5512
5520
  overlay: void 0
5513
5521
  };
5514
5522
  },
@@ -5534,7 +5542,7 @@ const gs = /* @__PURE__ */ q(us, [["render", ps]]), ms = w({
5534
5542
  return this.$el;
5535
5543
  },
5536
5544
  $marker() {
5537
- return Ee(this.$parent, je);
5545
+ return Le(this.$parent, Fe);
5538
5546
  },
5539
5547
  getOptions() {
5540
5548
  return {
@@ -5551,22 +5559,22 @@ const gs = /* @__PURE__ */ q(us, [["render", ps]]), ms = w({
5551
5559
  this.$emit("update:show", !0);
5552
5560
  }), this.overlay.addEventListener("close", () => {
5553
5561
  this.$emit("update:show", !1);
5554
- }), F(this.attrs.listeners, this.overlay);
5562
+ }), U(this.attrs.listeners, this.overlay);
5555
5563
  },
5556
5564
  onDestroy() {
5557
5565
  this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
5558
5566
  }
5559
5567
  });
5560
- function fs(i, t, e, r, s, n) {
5561
- return zr((j(), V("div", de({
5568
+ function ys(i, t, e, r, s, n) {
5569
+ return Nr((V(), F("div", ue({
5562
5570
  class: i.$options.name
5563
5571
  }, i.attrs.binds), [
5564
- Z(i.$slots, "default")
5572
+ W(i.$slots, "default")
5565
5573
  ], 16)), [
5566
- [Nr, i.show]
5574
+ [Gr, i.show]
5567
5575
  ]);
5568
5576
  }
5569
- const ys = /* @__PURE__ */ q(ms, [["render", fs]]), vs = w({
5577
+ const vs = /* @__PURE__ */ q(fs, [["render", ys]]), _s = w({
5570
5578
  name: "tg-label",
5571
5579
  mixins: [P],
5572
5580
  inheritAttrs: !1,
@@ -5574,12 +5582,12 @@ const ys = /* @__PURE__ */ q(ms, [["render", fs]]), vs = w({
5574
5582
  position: m(y),
5575
5583
  offset: m(Object),
5576
5584
  zIndex: m(Number),
5577
- mapPane: G(Me)
5585
+ mapPane: Z(Me)
5578
5586
  },
5579
5587
  emits: void 0,
5580
5588
  setup(i, { attrs: t }) {
5581
5589
  return {
5582
- attrs: U(t),
5590
+ attrs: Y(t),
5583
5591
  overlay: void 0
5584
5592
  };
5585
5593
  },
@@ -5609,7 +5617,7 @@ const ys = /* @__PURE__ */ q(ms, [["render", fs]]), vs = w({
5609
5617
  return (i = this.$marker()) == null ? void 0 : i.marker;
5610
5618
  },
5611
5619
  $marker() {
5612
- return Ee(this.$parent, je);
5620
+ return Le(this.$parent, Fe);
5613
5621
  },
5614
5622
  getOptions() {
5615
5623
  return {
@@ -5622,25 +5630,25 @@ const ys = /* @__PURE__ */ q(ms, [["render", fs]]), vs = w({
5622
5630
  }
5623
5631
  },
5624
5632
  onCreate() {
5625
- this.overlay = this.$map.createLabel(this.getOptions()), this.$marker() ? this.$marker().onAddLabel(this) : this.$map.addOverlay(this.overlay), F(this.attrs.listeners, this.overlay);
5633
+ this.overlay = this.$map.createLabel(this.getOptions()), this.$marker() ? this.$marker().onAddLabel(this) : this.$map.addOverlay(this.overlay), U(this.attrs.listeners, this.overlay);
5626
5634
  },
5627
5635
  onDestroy() {
5628
5636
  this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
5629
5637
  }
5630
5638
  });
5631
- function _s(i, t, e, r, s, n) {
5632
- return j(), V("div", de({
5639
+ function bs(i, t, e, r, s, n) {
5640
+ return V(), F("div", ue({
5633
5641
  class: i.$options.name
5634
5642
  }, i.attrs.binds), [
5635
- Z(i.$slots, "default")
5643
+ W(i.$slots, "default")
5636
5644
  ], 16);
5637
5645
  }
5638
- const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5646
+ const Ts = /* @__PURE__ */ q(_s, [["render", bs]]), Ms = w({
5639
5647
  name: "tg-polygon",
5640
5648
  mixins: [P],
5641
5649
  inheritAttrs: !1,
5642
5650
  props: {
5643
- paths: $(Array),
5651
+ paths: D(Array),
5644
5652
  clickable: m(Boolean),
5645
5653
  editable: m(Boolean),
5646
5654
  strokeColor: m(String),
@@ -5654,7 +5662,7 @@ const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5654
5662
  emits: void 0,
5655
5663
  setup(i, { attrs: t }) {
5656
5664
  return {
5657
- attrs: U(t, i),
5665
+ attrs: Y(t, i),
5658
5666
  overlay: void 0,
5659
5667
  emittedPaths: void 0
5660
5668
  };
@@ -5664,7 +5672,7 @@ const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5664
5672
  handler(i) {
5665
5673
  if (this.emittedPaths != null) {
5666
5674
  const t = this.emittedPaths;
5667
- if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e === Ge(i[r])))
5675
+ if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e === We(i[r])))
5668
5676
  return;
5669
5677
  }
5670
5678
  this.overlay.setPaths(i);
@@ -5697,19 +5705,19 @@ const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5697
5705
  }
5698
5706
  },
5699
5707
  onCreate() {
5700
- this.overlay = this.$map.createPolygon(this), this.$map.addOverlay(this.overlay), F(this.attrs.listeners, this.overlay), "update:paths" in this.attrs.listenerProps && this.overlay.addEventListener("paths-edited", () => {
5708
+ this.overlay = this.$map.createPolygon(this), this.$map.addOverlay(this.overlay), U(this.attrs.listeners, this.overlay), "update:paths" in this.attrs.listenerProps && this.overlay.addEventListener("paths-edited", () => {
5701
5709
  this.$emit("update:paths", this.emittedPaths = this.overlay.getPaths());
5702
5710
  });
5703
5711
  },
5704
5712
  onDestroy() {
5705
5713
  this.$map.removeOverlay(this.overlay);
5706
5714
  }
5707
- }), Ts = w({
5715
+ }), Os = w({
5708
5716
  name: "tg-polyline",
5709
5717
  mixins: [P],
5710
5718
  inheritAttrs: !1,
5711
5719
  props: {
5712
- path: $(Array),
5720
+ path: D(Array),
5713
5721
  clickable: m(Boolean),
5714
5722
  editable: m(Boolean),
5715
5723
  strokeColor: m(String),
@@ -5721,7 +5729,7 @@ const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5721
5729
  emits: void 0,
5722
5730
  setup(i, { attrs: t }) {
5723
5731
  return {
5724
- attrs: U(t, i),
5732
+ attrs: Y(t, i),
5725
5733
  overlay: void 0,
5726
5734
  emittedPath: void 0
5727
5735
  };
@@ -5731,7 +5739,7 @@ const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5731
5739
  handler(i) {
5732
5740
  if (this.emittedPath != null) {
5733
5741
  const t = this.emittedPath;
5734
- if (this.emittedPath = void 0, t === Ge(i))
5742
+ if (this.emittedPath = void 0, t === We(i))
5735
5743
  return;
5736
5744
  }
5737
5745
  this.overlay.setPath(i);
@@ -5758,19 +5766,19 @@ const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5758
5766
  }
5759
5767
  },
5760
5768
  onCreate() {
5761
- this.overlay = this.$map.createPolyline(this), this.$map.addOverlay(this.overlay), F(this.attrs.listeners, this.overlay), "update:path" in this.attrs.listenerProps && this.overlay.addEventListener("path-edited", () => {
5769
+ this.overlay = this.$map.createPolyline(this), this.$map.addOverlay(this.overlay), U(this.attrs.listeners, this.overlay), "update:path" in this.attrs.listenerProps && this.overlay.addEventListener("path-edited", () => {
5762
5770
  this.$emit("update:path", this.emittedPath = this.overlay.getPath());
5763
5771
  });
5764
5772
  },
5765
5773
  onDestroy() {
5766
5774
  this.$map.removeOverlay(this.overlay);
5767
5775
  }
5768
- }), Os = w({
5776
+ }), Cs = w({
5769
5777
  name: "tg-rectangle",
5770
5778
  mixins: [P],
5771
5779
  inheritAttrs: !1,
5772
5780
  props: {
5773
- bounds: $(Object),
5781
+ bounds: D(Object),
5774
5782
  clickable: m(Boolean),
5775
5783
  editable: m(Boolean),
5776
5784
  strokeColor: m(String),
@@ -5784,7 +5792,7 @@ const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5784
5792
  emits: void 0,
5785
5793
  setup(i, { attrs: t }) {
5786
5794
  return {
5787
- attrs: U(t, i),
5795
+ attrs: Y(t, i),
5788
5796
  overlay: void 0,
5789
5797
  emittedBounds: void 0
5790
5798
  };
@@ -5824,21 +5832,21 @@ const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5824
5832
  }
5825
5833
  },
5826
5834
  onCreate() {
5827
- this.overlay = this.$map.createRectangle(this), this.$map.addOverlay(this.overlay), F(this.attrs.listeners, this.overlay), "update:bounds" in this.attrs.listenerProps && this.overlay.addEventListener("bounds-changed", () => {
5835
+ this.overlay = this.$map.createRectangle(this), this.$map.addOverlay(this.overlay), U(this.attrs.listeners, this.overlay), "update:bounds" in this.attrs.listenerProps && this.overlay.addEventListener("bounds-changed", () => {
5828
5836
  this.$emit("update:bounds", this.emittedBounds = this.overlay.getBounds());
5829
5837
  });
5830
5838
  },
5831
5839
  onDestroy() {
5832
5840
  this.$map.removeOverlay(this.overlay);
5833
5841
  }
5834
- }), Cs = ["beforeUpdate", "updated"], qs = {
5842
+ }), ws = ["beforeUpdate", "updated"], qs = {
5835
5843
  install(i, t = {}) {
5836
5844
  if (t.enable !== !1) {
5837
5845
  const e = w({
5838
5846
  beforeCreate() {
5839
- const r = Cr() ?? "", n = (t.nameRegex || /^[A-Z]/).test(r) ? (a) => {
5840
- t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : Cs.includes(a) || console.debug("[lifecycle]", r, a);
5841
- } : ye;
5847
+ const r = wr() ?? "", n = (t.nameRegex || /^[A-Z]/).test(r) ? (a) => {
5848
+ t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : ws.includes(a) || console.debug("[lifecycle]", r, a);
5849
+ } : ve;
5842
5850
  n("beforeCreate"), this.__life_impl = n;
5843
5851
  },
5844
5852
  created() {
@@ -5877,184 +5885,184 @@ const bs = /* @__PURE__ */ q(vs, [["render", _s]]), Ms = w({
5877
5885
  i.mixin(e);
5878
5886
  }
5879
5887
  }
5880
- }, ws = 6378137;
5881
- function fe(i) {
5888
+ }, Es = 6378137;
5889
+ function ye(i) {
5882
5890
  return i * Math.PI / 180;
5883
5891
  }
5884
- function Ht(i) {
5892
+ function Vt(i) {
5885
5893
  return i * 180 / Math.PI;
5886
5894
  }
5887
- function Es(i, t) {
5895
+ function Ls(i, t) {
5888
5896
  if (i.lat === t.lat && i.lng === t.lng)
5889
5897
  return 0;
5890
- const e = fe((i.lat + t.lat) / 2), r = fe((i.lat - t.lat) / 2), s = fe((i.lng - t.lng) / 2);
5898
+ const e = ye((i.lat + t.lat) / 2), r = ye((i.lat - t.lat) / 2), s = ye((i.lng - t.lng) / 2);
5891
5899
  let n = Math.sin(r), a = Math.sin(s), h = Math.sin(e);
5892
- const o = ws, l = 1 / 298.257;
5900
+ const o = Es, l = 1 / 298.257;
5893
5901
  n = n * n, a = a * a, h = h * h;
5894
- const d = n * (1 - a) + (1 - h) * a, u = (1 - n) * (1 - a) + h * a, p = Math.atan(Math.sqrt(d / u)), b = Math.sqrt(d * u) / p, _ = 2 * p * o, M = (3 * b - 1) / 2 / u, g = (3 * b + 1) / 2 / d;
5895
- return _ * (1 + l * (M * h * (1 - n) - g * (1 - h) * n));
5902
+ const d = n * (1 - a) + (1 - h) * a, u = (1 - n) * (1 - a) + h * a, p = Math.atan(Math.sqrt(d / u)), b = Math.sqrt(d * u) / p, _ = 2 * p * o, T = (3 * b - 1) / 2 / u, g = (3 * b + 1) / 2 / d;
5903
+ return _ * (1 + l * (T * h * (1 - n) - g * (1 - h) * n));
5896
5904
  }
5897
- function Ls(i, t, e) {
5898
- const s = 63567523142e-4, n = 1 / 298.257223563, a = fe(t), h = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(fe(i.lat)), d = 1 / Math.sqrt(1 + l * l), u = l * d, p = Math.atan2(l, o), b = d * h, _ = 1 - b * b, M = _ * (6378137 * 6378137 - s * s) / (s * s), g = 1 + M / 16384 * (4096 + M * (-768 + M * (320 - 175 * M))), f = M / 1024 * (256 + M * (-128 + M * (74 - 47 * M)));
5899
- let v = 0, O = 0, x = 0, E = e / (s * g), J = 2 * Math.PI;
5900
- for (; Math.abs(E - J) > 1e-12; ) {
5905
+ function xs(i, t, e) {
5906
+ const s = 63567523142e-4, n = 1 / 298.257223563, a = ye(t), h = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(ye(i.lat)), d = 1 / Math.sqrt(1 + l * l), u = l * d, p = Math.atan2(l, o), b = d * h, _ = 1 - b * b, T = _ * (6378137 * 6378137 - s * s) / (s * s), g = 1 + T / 16384 * (4096 + T * (-768 + T * (320 - 175 * T))), f = T / 1024 * (256 + T * (-128 + T * (74 - 47 * T)));
5907
+ let v = 0, O = 0, x = 0, E = e / (s * g), Q = 2 * Math.PI;
5908
+ for (; Math.abs(E - Q) > 1e-12; ) {
5901
5909
  v = Math.cos(2 * p + E), O = Math.sin(E), x = Math.cos(E);
5902
- const xr = f * O * (v + f / 4 * (x * (-1 + 2 * v * v) - f / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
5903
- J = E, E = e / (s * g) + xr;
5910
+ const Pr = f * O * (v + f / 4 * (x * (-1 + 2 * v * v) - f / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
5911
+ Q = E, E = e / (s * g) + Pr;
5904
5912
  }
5905
- const re = u * O - d * x * o, Ve = Math.atan2(
5913
+ const ie = u * O - d * x * o, Ue = Math.atan2(
5906
5914
  u * x + d * O * o,
5907
- (1 - n) * Math.sqrt(b * b + re * re)
5908
- ), Er = Math.atan2(O * h, d * x - u * O * o), Fe = n / 16 * _ * (4 + n * (4 - 3 * _)), Lr = Er - (1 - Fe) * n * b * (E + Fe * O * (v + Fe * x * (-1 + 2 * v * v)));
5909
- return { lng: i.lng + Ht(Lr), lat: Ht(Ve) };
5910
- }
5911
- const Ys = {
5912
- getDistance: Es,
5913
- getDestination: Ls
5914
- }, Ks = {
5915
+ (1 - n) * Math.sqrt(b * b + ie * ie)
5916
+ ), Lr = Math.atan2(O * h, d * x - u * O * o), Ye = n / 16 * _ * (4 + n * (4 - 3 * _)), xr = Lr - (1 - Ye) * n * b * (E + Ye * O * (v + Ye * x * (-1 + 2 * v * v)));
5917
+ return { lng: i.lng + Vt(xr), lat: Vt(Ue) };
5918
+ }
5919
+ const Ks = {
5920
+ getDistance: Ls,
5921
+ getDestination: xs
5922
+ }, Xs = {
5915
5923
  install(i, t) {
5916
- if (si(t), {}.VITE_FALSE) {
5917
- const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Or, "./TgMapWidget.vue": qi, "./controls/TgCustomControl.vue": Xi, "./controls/TgMapTypeControl.vue": Ji, "./controls/TgScaleControl.vue": Qi, "./controls/TgZoomControl.vue": ts, "./extra/TgMarkerClusterer.vue": wr, "./layers/TgTrafficLayer.vue": ss, "./overlays/TgCircle.vue": ns, "./overlays/TgElementOverlay.vue": hs, "./overlays/TgInfoBox.vue": gs, "./overlays/TgInfoWindow.vue": ys, "./overlays/TgLabel.vue": bs, "./overlays/TgMarker.vue": je, "./overlays/TgPolygon.vue": Ms, "./overlays/TgPolyline.vue": Ts, "./overlays/TgRectangle.vue": Os });
5924
+ if (ni(t), {}.VITE_FALSE) {
5925
+ const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Cr, "./TgMapWidget.vue": qi, "./controls/TgCustomControl.vue": Ji, "./controls/TgMapTypeControl.vue": Qi, "./controls/TgScaleControl.vue": es, "./controls/TgZoomControl.vue": rs, "./extra/TgMarkerClusterer.vue": Er, "./layers/TgTrafficLayer.vue": ns, "./overlays/TgCircle.vue": os, "./overlays/TgElementOverlay.vue": cs, "./overlays/TgInfoBox.vue": ms, "./overlays/TgInfoWindow.vue": vs, "./overlays/TgLabel.vue": Ts, "./overlays/TgMarker.vue": Fe, "./overlays/TgPolygon.vue": Ms, "./overlays/TgPolyline.vue": Os, "./overlays/TgRectangle.vue": Cs });
5918
5926
  Object.keys(r).forEach((s) => {
5919
5927
  const n = r[s];
5920
5928
  i.component(n.name ?? C(`Tg开头的组件必须设置name: ${s}`), n);
5921
5929
  });
5922
5930
  }
5923
5931
  const e = i.config.optionMergeStrategies;
5924
- e[Ce] = e[we] = (r, s) => r ? [...new Set([].concat(r, s))] : Array.isArray(s) ? s : [s];
5932
+ e[we] = e[Ee] = (r, s) => r ? [...new Set([].concat(r, s))] : Array.isArray(s) ? s : [s];
5925
5933
  }
5926
5934
  };
5927
5935
  export {
5928
- rr as AbstractControl,
5929
- ut as AbstractMap,
5930
- le as Arrays,
5931
- lr as Autocomplete,
5932
- gi as BaiduAutocomplete,
5933
- gt as BaiduCircle,
5934
- st as BaiduControl,
5935
- _t as BaiduInfoBoxOverlay,
5936
- yt as BaiduInfoWindow,
5937
- ot as BaiduMapTypeControl,
5938
- Se as BaiduMapUrls,
5939
- Oe as BaiduMarker,
5940
- _i as BaiduMarkerClusterer,
5941
- We as BaiduOverlay,
5942
- Ti as BaiduPlacesService,
5943
- Ct as BaiduPolyShape,
5944
- Lt as BaiduPolygon,
5945
- wt as BaiduPolyline,
5946
- Pt as BaiduRectangle,
5947
- at as BaiduScaleControl,
5948
- Ci as BaiduSearchBox,
5949
- ht as BaiduZoomControl,
5950
- B as BuildInMapType,
5951
- ir as BuildInMapTypeId,
5952
- me as CachedValue,
5953
- k as ControlPosition,
5954
- R as ControlPositionConverter,
5955
- S as CoordType,
5956
- li as CustomControl,
5957
- ai as FastFindValues,
5958
- pi as GoogleAutocomplete,
5959
- mt as GoogleCircle,
5960
- nt as GoogleControl,
5961
- bt as GoogleInfoBoxOverlay,
5962
- vt as GoogleInfoWindow,
5963
- Pe as GoogleMapTypeControl,
5964
- ke as GoogleMapUrls,
5965
- Ot as GoogleMarker,
5966
- bi as GoogleMarkerClusterer,
5967
- pt as GoogleOverlay,
5936
+ sr as AbstractControl,
5937
+ gt as AbstractMap,
5938
+ he as Arrays,
5939
+ cr as Autocomplete,
5940
+ mi as BaiduAutocomplete,
5941
+ ft as BaiduCircle,
5942
+ ot as BaiduControl,
5943
+ Tt as BaiduInfoBoxOverlay,
5944
+ _t as BaiduInfoWindow,
5945
+ lt as BaiduMapTypeControl,
5946
+ Be as BaiduMapUrls,
5947
+ Ce as BaiduMarker,
5948
+ bi as BaiduMarkerClusterer,
5949
+ je as BaiduOverlay,
5950
+ Oi as BaiduPlacesService,
5951
+ Et as BaiduPolyShape,
5952
+ Pt as BaiduPolygon,
5953
+ Lt as BaiduPolyline,
5954
+ It as BaiduRectangle,
5955
+ ht as BaiduScaleControl,
5956
+ wi as BaiduSearchBox,
5957
+ dt as BaiduZoomControl,
5958
+ S as BuildInMapType,
5959
+ nr as BuildInMapTypeId,
5960
+ fe as CachedValue,
5961
+ I as ControlPosition,
5962
+ $ as ControlPositionConverter,
5963
+ B as CoordType,
5964
+ hi as CustomControl,
5965
+ li as FastFindValues,
5966
+ gi as GoogleAutocomplete,
5967
+ yt as GoogleCircle,
5968
+ at as GoogleControl,
5969
+ Mt as GoogleInfoBoxOverlay,
5970
+ bt as GoogleInfoWindow,
5971
+ ke as GoogleMapTypeControl,
5972
+ Ie as GoogleMapUrls,
5973
+ wt as GoogleMarker,
5974
+ Ti as GoogleMarkerClusterer,
5975
+ mt as GoogleOverlay,
5968
5976
  Mi as GooglePlacesService,
5969
- xt as GooglePolygon,
5970
- Et as GooglePolyline,
5971
- kt as GoogleRectangle,
5972
- lt as GoogleScaleControl,
5973
- Oi as GoogleSearchBox,
5974
- ct as GoogleZoomControl,
5975
- $e as Icon,
5976
- zs as ImageMapType,
5977
- ft as InfoWindow,
5978
- Dt as KeyValue,
5977
+ kt as GooglePolygon,
5978
+ xt as GooglePolyline,
5979
+ Bt as GoogleRectangle,
5980
+ ct as GoogleScaleControl,
5981
+ Ci as GoogleSearchBox,
5982
+ ut as GoogleZoomControl,
5983
+ De as Icon,
5984
+ Ns as ImageMapType,
5985
+ vt as InfoWindow,
5986
+ Nt as KeyValue,
5979
5987
  y as LatLng,
5980
- I as LatLngBounds,
5988
+ A as LatLngBounds,
5981
5989
  qs as LifecycleLogPlugin,
5982
- Y as Location,
5983
- Ce as MIXIN_HOOK_CREATE,
5984
- we as MIXIN_HOOK_DESTROY,
5990
+ K as Location,
5991
+ we as MIXIN_HOOK_CREATE,
5992
+ Ee as MIXIN_HOOK_DESTROY,
5985
5993
  St as MIXIN_MAP_NAME,
5986
- he as MVCArrays,
5994
+ ce as MVCArrays,
5987
5995
  P as MapMixin,
5988
- A as MapType,
5989
- sr as MapTypeControlType,
5990
- hr as MapUrls,
5991
- wi as MapZoom,
5992
- mr as MarkerClusterer,
5993
- _e as Objects,
5994
- _r as Overlay,
5995
- fr as PlacesService,
5996
- K as Point,
5997
- yr as SearchBox,
5998
- Ys as SphericalUtils,
5999
- be as Strings,
6000
- De as SymbolIcon,
6001
- Ws as SymbolPath,
6002
- ns as TgCircle,
6003
- Xi as TgCustomControl,
6004
- hs as TgElementOverlay,
6005
- gs as TgInfoBox,
6006
- ys as TgInfoWindow,
6007
- bs as TgLabel,
6008
- Or as TgMap,
6009
- tt as TgMapFactory,
6010
- N as TgMapType,
6011
- Ji as TgMapTypeControl,
5996
+ R as MapType,
5997
+ or as MapTypeControlType,
5998
+ dr as MapUrls,
5999
+ Ei as MapZoom,
6000
+ yr as MarkerClusterer,
6001
+ be as Objects,
6002
+ Tr as Overlay,
6003
+ vr as PlacesService,
6004
+ X as Point,
6005
+ _r as SearchBox,
6006
+ Ks as SphericalUtils,
6007
+ Te as Strings,
6008
+ ze as SymbolIcon,
6009
+ Hs as SymbolPath,
6010
+ os as TgCircle,
6011
+ Ji as TgCustomControl,
6012
+ cs as TgElementOverlay,
6013
+ ms as TgInfoBox,
6014
+ vs as TgInfoWindow,
6015
+ Ts as TgLabel,
6016
+ Cr as TgMap,
6017
+ it as TgMapFactory,
6018
+ G as TgMapType,
6019
+ Qi as TgMapTypeControl,
6012
6020
  qi as TgMapWidget,
6013
- je as TgMarker,
6014
- wr as TgMarkerClusterer,
6021
+ Fe as TgMarker,
6022
+ Er as TgMarkerClusterer,
6015
6023
  Ms as TgPolygon,
6016
- Ts as TgPolyline,
6017
- Os as TgRectangle,
6018
- Qi as TgScaleControl,
6019
- ss as TgTrafficLayer,
6020
- ts as TgZoomControl,
6021
- hi as TrafficLayer,
6022
- Re as UnionIcon,
6023
- ne as assert,
6024
- Xe as assertNever,
6025
- xe as callHook,
6026
- Hs as computedSaveOnThis,
6027
- Tr as createEmptyVNode,
6028
- Zi as createPropertyObject,
6029
- js as createPropertyObjectTyped,
6030
- $s as debug,
6031
- Ks as default,
6024
+ Os as TgPolyline,
6025
+ Cs as TgRectangle,
6026
+ es as TgScaleControl,
6027
+ ns as TgTrafficLayer,
6028
+ rs as TgZoomControl,
6029
+ ci as TrafficLayer,
6030
+ $e as UnionIcon,
6031
+ oe as assert,
6032
+ Qe as assertNever,
6033
+ Pe as callHook,
6034
+ js as computedSaveOnThis,
6035
+ Or as createEmptyVNode,
6036
+ Wi as createPropertyObject,
6037
+ Vs as createPropertyObjectTyped,
6038
+ Ds as debug,
6039
+ Xs as default,
6032
6040
  L as eventProp,
6033
- Fs as extractVNodeFromSlotsByComponent,
6034
- Vs as findByComponentType,
6035
- Ls as getDestination,
6036
- Jt as getTgMapConfig,
6037
- Ds as isDef,
6038
- qt as isEntryValueDef,
6039
- Bs as isInstanceOf,
6040
- Ss as lateinit,
6041
- ye as noop,
6041
+ Us as extractVNodeFromSlotsByComponent,
6042
+ Fs as findByComponentType,
6043
+ xs as getDestination,
6044
+ er as getTgMapConfig,
6045
+ zs as isDef,
6046
+ Kt as isEntryValueDef,
6047
+ Ss as isInstanceOf,
6048
+ Bs as lateinit,
6049
+ ve as noop,
6042
6050
  m as optionalProp,
6043
- ki as path,
6044
- $ as requiredProp,
6045
- Is as safeAs,
6046
- Ee as safeAsComponent,
6047
- si as setTgMapConfig,
6048
- Wi as splitAttrs,
6049
- G as stringEnumProp,
6050
- Gi as stringUnionPropFromValues,
6051
+ Ii as path,
6052
+ D as requiredProp,
6053
+ As as safeAs,
6054
+ Le as safeAsComponent,
6055
+ ni as setTgMapConfig,
6056
+ Hi as splitAttrs,
6057
+ Z as stringEnumProp,
6058
+ Zi as stringUnionPropFromValues,
6051
6059
  C as throwError,
6052
- it as throwUnsupported,
6053
- Rs as todo,
6054
- Je as typed,
6055
- As as unwrapStringEnumValue,
6056
- Us as useEventLogMethods,
6057
- U as useSplittedAttrs,
6058
- es as useTgMapInner
6060
+ nt as throwUnsupported,
6061
+ $s as todo,
6062
+ et as typed,
6063
+ Rs as unwrapStringEnumValue,
6064
+ Ys as useEventLogMethods,
6065
+ Y as useSplittedAttrs,
6066
+ ts as useTgMapInner
6059
6067
  };
6060
6068
  //# sourceMappingURL=tg-map.js.map