tg-map-vue3 3.7.14 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tg-map.js CHANGED
@@ -1,8 +1,8 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.baidu-info-box-container{transform:translateY(-11px);font-size:13px;font-weight:300;width:100vw;cursor:auto;user-select:auto!important}.baidu-info-box-container__border{position:absolute;padding:12px;background-color:#fff;box-shadow:0 2px 7px 1px #0000004d;border-radius:8px;transform:translate(-50%,-100%)}.baidu-info-box-container__inner{overflow:auto}.baidu-info-box-container__close{position:absolute;right:-6px;top:-6px;width:14px;height:14px;margin:8px;opacity:.6;cursor:pointer;mask-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E);background-color:#000}.baidu-info-box-container__close:hover{opacity:1}.baidu-info-box-container:after{position:absolute;background-color:#fff;content:"";width:15px;height:15px;left: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)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.baidu-info-box-container{transform:translateY(-11px);font-size:13px;font-weight:300;width:100vw;cursor:auto;-webkit-user-select:auto!important;user-select:auto!important}.baidu-info-box-container__border{position:absolute;padding:12px;background-color:#fff;box-shadow:0 2px 7px 1px #0000004d;border-radius:8px;transform:translate(-50%,-100%)}.baidu-info-box-container__inner{overflow:auto}.baidu-info-box-container__close{position:absolute;right:-6px;top:-6px;width:14px;height:14px;margin:8px;opacity:.6;cursor:pointer;-webkit-mask-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E);mask-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E);background-color:#000}.baidu-info-box-container__close:hover{opacity:1}.baidu-info-box-container:after{position:absolute;background-color:#fff;content:"";width:15px;height:15px;left:0;top:0;box-shadow:-2px 2px 2px #b2b2b266;transform:translate(-50%,-50%) rotate(-45deg)}.element-overlay{position:absolute}.tg-map{height:100%;position:relative}.tg-map__map{width:100%;height:100%}.tg-map__map--hide-logo-google .gm-style a[target=_blank]:has(>div>img){display:none!important}.tg-map__map--hide-logo-google .gm-style>div:last-child>div:last-child>div{display:none}.tg-map__map--hide-logo-baidu div.anchorBL>a[target=_blank]>img{display:none}.tg-map__map--hide-logo-baidu div.BMap_cpyCtrl{display:none}.tg-map-widget{position:absolute}.tg-map>.tg-custom-control{display:none}.tg-map .tg-element-overlay{display:none}.tg-map__map .tg-element-overlay{display:block}.tg-map .tg-info-box{display:none}.tg-map__map .tg-info-box{display:block}.tg-map .tg-label{display:none}.tg-map__map .tg-label{display:block}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  var Yr = Object.defineProperty;
3
3
  var qr = (i, t, e) => t in i ? Yr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
4
4
  var g = (i, t, e) => (qr(i, typeof t != "symbol" ? t + "" : t, e), e);
5
- import { createCommentVNode as yt, computed as fr, defineComponent as L, markRaw as Kr, watch as ke, openBlock as re, createElementBlock as ie, mergeProps as Ce, createElementVNode as Xr, normalizeClass as nt, renderSlot as X, normalizeStyle as Jr, getCurrentInstance as Qr, inject as ei, onMounted as ti, onBeforeUnmount as ri, toRaw as ot, withDirectives as ii, vShow as si } from "vue";
5
+ import { createCommentVNode as ft, computed as fr, defineComponent as P, markRaw as Kr, watch as De, openBlock as re, createElementBlock as ie, mergeProps as Oe, createElementVNode as Xr, normalizeClass as it, renderSlot as K, normalizeStyle as Jr, getCurrentInstance as Qr, inject as ei, onMounted as ti, onBeforeUnmount as ri, toRaw as st, withDirectives as ii, vShow as si } from "vue";
6
6
  function se(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]);
@@ -15,15 +15,15 @@ function oi() {
15
15
  function Ye(i, t) {
16
16
  return t.__id__ || (t.__id__ = oi()), `${i}::${t.__id__}`;
17
17
  }
18
- var wt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
- function at(i) {
18
+ var xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
+ function nt(i) {
20
20
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
21
21
  }
22
22
  var vr = { exports: {} };
23
23
  (function(i) {
24
24
  (function(t, e) {
25
25
  i.exports ? i.exports = e() : t.coordtransform = e();
26
- })(wt, function() {
26
+ })(xt, function() {
27
27
  var t = 52.35987755982988, e = 3.141592653589793, r = 6378245, s = 0.006693421622965943;
28
28
  function n(m, h, f, M) {
29
29
  this.west = Math.min(m, f), this.north = Math.max(h, M), this.east = Math.max(m, f), this.south = Math.min(h, M);
@@ -58,12 +58,12 @@ var vr = { exports: {} };
58
58
  return !1;
59
59
  }
60
60
  function l(m, h) {
61
- var f = m - 65e-4, M = h - 6e-3, T = Math.sqrt(f * f + M * M) - 2e-5 * Math.sin(M * t), O = Math.atan2(M, f) - 3e-6 * Math.cos(f * t), w = T * Math.cos(O), E = T * Math.sin(O);
61
+ var f = m - 65e-4, M = h - 6e-3, T = Math.sqrt(f * f + M * M) - 2e-5 * Math.sin(M * t), C = Math.atan2(M, f) - 3e-6 * Math.cos(f * t), w = T * Math.cos(C), E = T * Math.sin(C);
62
62
  return [w, E];
63
63
  }
64
64
  function d(m, h) {
65
- var f = Math.sqrt(m * m + h * h) + 2e-5 * Math.sin(h * t), M = Math.atan2(h, m) + 3e-6 * Math.cos(m * t), T = f * Math.cos(M) + 65e-4, O = f * Math.sin(M) + 6e-3;
66
- return [T, O];
65
+ var f = Math.sqrt(m * m + h * h) + 2e-5 * Math.sin(h * t), M = Math.atan2(h, m) + 3e-6 * Math.cos(m * t), T = f * Math.cos(M) + 65e-4, C = f * Math.sin(M) + 6e-3;
66
+ return [T, C];
67
67
  }
68
68
  function u(m, h) {
69
69
  return o(m, h) ? v(m, h) : [m, h];
@@ -75,12 +75,12 @@ var vr = { exports: {} };
75
75
  return [m * 2 - f[0], h * 2 - f[1]];
76
76
  }
77
77
  function v(m, h) {
78
- var f = b(m - 105, h - 35), M = y(m - 105, h - 35), T = h / 180 * e, O = Math.sin(T);
79
- O = 1 - s * O * O;
80
- var w = Math.sqrt(O);
81
- f = f * 180 / (r * (1 - s) / (O * w) * e), M = M * 180 / (r / w * Math.cos(T) * e);
82
- var E = h + f, R = m + M;
83
- return [R, E];
78
+ var f = b(m - 105, h - 35), M = y(m - 105, h - 35), T = h / 180 * e, C = Math.sin(T);
79
+ C = 1 - s * C * C;
80
+ var w = Math.sqrt(C);
81
+ f = f * 180 / (r * (1 - s) / (C * w) * e), M = M * 180 / (r / w * Math.cos(T) * e);
82
+ var E = h + f, D = m + M;
83
+ return [D, E];
84
84
  }
85
85
  function b(m, h) {
86
86
  var f = -100 + 2 * m + 3 * h + 0.2 * h * h + 0.1 * m * h + 0.2 * Math.sqrt(Math.abs(m));
@@ -117,60 +117,119 @@ var vr = { exports: {} };
117
117
  });
118
118
  })(vr);
119
119
  var ai = vr.exports;
120
- const pe = /* @__PURE__ */ at(ai);
120
+ const pe = /* @__PURE__ */ nt(ai);
121
+ var fe;
122
+ ((i) => {
123
+ function t(c, o) {
124
+ return c.length === o.length && c.every((l, d) => l === o[d]);
125
+ }
126
+ i.equals = t;
127
+ function e(c, o) {
128
+ const l = c.indexOf(o);
129
+ if (l !== -1)
130
+ return c.splice(l, 1)[0];
131
+ }
132
+ i.remove = e;
133
+ function r(c, o) {
134
+ for (const l of c)
135
+ if (l instanceof o)
136
+ return l;
137
+ }
138
+ i.findByType = r;
139
+ function s(c, o) {
140
+ return c.includes(o);
141
+ }
142
+ i.includesTyped = s;
143
+ function n(c, o, l) {
144
+ const d = o >= 0 ? o : c.length + o;
145
+ if (l === void 0)
146
+ return c[d];
147
+ c[d] = l;
148
+ }
149
+ i.at = n;
150
+ function a(c) {
151
+ return c.length > 0;
152
+ }
153
+ i.isNotEmpty = a;
154
+ })(fe || (fe = {}));
155
+ var ve;
156
+ ((i) => {
157
+ function t(s, n) {
158
+ const a = s.getLength();
159
+ for (let c = 0; c < a; c++)
160
+ if (s.getAt(c) === n)
161
+ return c;
162
+ return -1;
163
+ }
164
+ i.indexOf = t;
165
+ function e(s, n) {
166
+ const a = t(s, n);
167
+ if (a !== -1)
168
+ return s.removeAt(a);
169
+ }
170
+ i.remove = e;
171
+ function r(s, n) {
172
+ return [
173
+ s.addListener("insert_at", n),
174
+ s.addListener("remove_at", n),
175
+ s.addListener("set_at", n)
176
+ ];
177
+ }
178
+ i.listenChanged = r;
179
+ })(ve || (ve = {}));
121
180
  function me(i, t) {
122
181
  if (!i)
123
182
  throw new Error(`AssertionError: ${t}`);
124
183
  }
125
- function _t(i) {
184
+ function vt(i) {
126
185
  throw new Error(`Unexpected object: ${i}`);
127
186
  }
128
- function on() {
187
+ function ln() {
129
188
  }
130
- function bt(i) {
189
+ function yt(i) {
131
190
  return i;
132
191
  }
133
- function an(i, t) {
192
+ function hn(i, t) {
134
193
  return i instanceof t;
135
194
  }
136
- function ln(i, t) {
195
+ function cn(i, t) {
137
196
  if (i instanceof t)
138
197
  return i;
139
198
  }
140
- function Tt(i, t) {
199
+ function _t(i, t) {
141
200
  return (i == null ? void 0 : i.$options.name) === t.name;
142
201
  }
143
202
  function yr(i, t) {
144
- return Tt(i, t) ? i : void 0;
203
+ return _t(i, t) ? i : void 0;
145
204
  }
146
- function xt(i, t, e) {
205
+ function Et(i, t, e) {
147
206
  let r = t;
148
207
  for (; r; ) {
149
- if (Tt(r, i))
208
+ if (_t(r, i))
150
209
  return r;
151
- if (e && Tt(r, e))
210
+ if (e && _t(r, e))
152
211
  return;
153
212
  r = r.$parent;
154
213
  }
155
214
  }
156
- function hn(i) {
215
+ function dn(i) {
157
216
  return i;
158
217
  }
159
218
  function B(i) {
160
219
  throw new Error(i);
161
220
  }
162
- function Et(i) {
221
+ function Pt(i) {
163
222
  throw new Error(`Unsupported: ${i}`);
164
223
  }
165
- function cn(i) {
224
+ function un(i) {
166
225
  throw new Error(`todo: ${i}`);
167
226
  }
168
- function dn(i) {
227
+ function pn(i) {
169
228
  return i;
170
229
  }
171
- function Ae(...i) {
230
+ function Re(...i) {
172
231
  }
173
- function un(i) {
232
+ function gn(i) {
174
233
  return i != null;
175
234
  }
176
235
  function li(i) {
@@ -181,7 +240,7 @@ function hi(i) {
181
240
  return () => t ?? (t = i().catch((e) => (t = null, Promise.reject(e))));
182
241
  }
183
242
  var A = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(A || {});
184
- const gt = "wgs84", $ = class {
243
+ const ut = "wgs84", R = class R {
185
244
  constructor(t, e, r) {
186
245
  this.lat = t, this.lng = e, this.coord = r;
187
246
  }
@@ -203,23 +262,23 @@ const gt = "wgs84", $ = class {
203
262
  }
204
263
  /** @param coord Baidu Map的坐标一般都是bd09 */
205
264
  static fromBaidu(t, e) {
206
- return new $(t.lat, t.lng, e);
265
+ return new R(t.lat, t.lng, e);
207
266
  }
208
267
  /** @param coord Google Map的坐标依据地图类型不同是不一样的 */
209
268
  static fromGoogle(t, e) {
210
- return new $(t.lat(), t.lng(), e);
269
+ return new R(t.lat(), t.lng(), e);
211
270
  }
212
271
  static fromHere(t, e) {
213
- return new $(t.lat, t.lng, e);
272
+ return new R(t.lat, t.lng, e);
214
273
  }
215
274
  static fromLiteral(t) {
216
- return new $(t.lat, t.lng, t.coord || gt);
275
+ return new R(t.lat, t.lng, t.coord || ut);
217
276
  }
218
- static fromLngLat(t, e, r = gt) {
219
- return new $(e, t, r);
277
+ static fromLngLat(t, e, r = ut) {
278
+ return new R(e, t, r);
220
279
  }
221
- static create(t, e, r = gt) {
222
- return new $(t, e, r);
280
+ static create(t, e, r = ut) {
281
+ return new R(t, e, r);
223
282
  }
224
283
  /** 转换坐标到指定坐标系 */
225
284
  to(t) {
@@ -227,7 +286,7 @@ const gt = "wgs84", $ = class {
227
286
  if (this.coord === e)
228
287
  return this;
229
288
  const [r, s] = this._convert(e);
230
- return new $(s, r, e);
289
+ return new R(s, r, e);
231
290
  }
232
291
  /**
233
292
  * TODO: normalize要不要默认设为true, 和google的行为保持一致?
@@ -237,7 +296,7 @@ const gt = "wgs84", $ = class {
237
296
  */
238
297
  toBaidu(t, e = !1) {
239
298
  let r = this.lat, s = this.lng;
240
- return this.coord !== t && ([s, r] = this._convert(t)), e && ([s, r] = $._normalize(s, r)), new BMap.Point(s, r);
299
+ return this.coord !== t && ([s, r] = this._convert(t)), e && ([s, r] = R._normalize(s, r)), new BMap.Point(s, r);
241
300
  }
242
301
  /**
243
302
  * 转换成google的经纬度, 内部会自动进行标准化
@@ -276,8 +335,8 @@ const gt = "wgs84", $ = class {
276
335
  * @see _normalize {@macro latlng_normalize}
277
336
  */
278
337
  normalize() {
279
- const [t, e] = $._normalize(this.lng, this.lat);
280
- return e === this.lat && t === this.lng ? this : new $(e, t, this.coord);
338
+ const [t, e] = R._normalize(this.lng, this.lat);
339
+ return e === this.lat && t === this.lng ? this : new R(e, t, this.coord);
281
340
  }
282
341
  equals(t) {
283
342
  return this === t ? !0 : this.lat === t.lat && this.lng === t.lng && this.coord === t.coord;
@@ -286,9 +345,9 @@ const gt = "wgs84", $ = class {
286
345
  return JSON.stringify(this);
287
346
  }
288
347
  };
289
- let C = $;
290
- g(C, "ZERO", $.create(0, 0));
291
- const de = class {
348
+ g(R, "ZERO", R.create(0, 0));
349
+ let O = R;
350
+ const ae = class ae {
292
351
  /**
293
352
  * 不推荐直接创建LatLngBounds, sw和ne的大小关系可能没法保证, 推荐用LatLngBounds.Builder或者LatLngBounds.from等静态方法来创建
294
353
  * @param sw 西南, lat/lng更小
@@ -304,7 +363,7 @@ const de = class {
304
363
  static fromArray(t) {
305
364
  if (t.length === 0)
306
365
  return;
307
- const e = new de.Builder(t[0]);
366
+ const e = new ae.Builder(t[0]);
308
367
  for (let r = 1; r < t.length; r++)
309
368
  e.include(t[r]);
310
369
  return e.build();
@@ -313,15 +372,15 @@ const de = class {
313
372
  return this.fromArray(t) ?? B("positions中没有点");
314
373
  }
315
374
  static fromGoogle(t, e) {
316
- return new de(
317
- C.fromGoogle(t.getSouthWest(), e),
318
- C.fromGoogle(t.getNorthEast(), e)
375
+ return new ae(
376
+ O.fromGoogle(t.getSouthWest(), e),
377
+ O.fromGoogle(t.getNorthEast(), e)
319
378
  );
320
379
  }
321
380
  static fromBaidu(t, e) {
322
- return new de(
323
- C.fromBaidu(t.getSouthWest(), e),
324
- C.fromBaidu(t.getNorthEast(), e)
381
+ return new ae(
382
+ O.fromBaidu(t.getSouthWest(), e),
383
+ O.fromBaidu(t.getNorthEast(), e)
325
384
  );
326
385
  }
327
386
  static create(t, e) {
@@ -332,13 +391,13 @@ const de = class {
332
391
  }
333
392
  contains(t) {
334
393
  const { lat: e, lng: r } = t.to(this.coord);
335
- return this.sw.lat <= e && e <= this.ne.lat && de.isBetweenLng(this.sw.lng, this.ne.lng, r);
394
+ return this.sw.lat <= e && e <= this.ne.lat && ae.isBetweenLng(this.sw.lng, this.ne.lng, r);
336
395
  }
337
396
  getCenter() {
338
397
  if (this.sw.equals(this.ne))
339
398
  return this.sw;
340
399
  const t = (this.sw.lat + this.ne.lat) / 2, e = (this.sw.lng + this.ne.lng + (this.sw.lng < this.ne.lng ? 0 : 360)) / 2;
341
- return C.create(t, e, this.coord);
400
+ return O.create(t, e, this.coord);
342
401
  }
343
402
  toString() {
344
403
  return JSON.stringify(this);
@@ -354,9 +413,9 @@ const de = class {
354
413
  const t = this.sw.coord;
355
414
  return [
356
415
  this.sw,
357
- C.fromLngLat(this.sw.lng, this.ne.lat, t),
416
+ O.fromLngLat(this.sw.lng, this.ne.lat, t),
358
417
  this.ne,
359
- C.fromLngLat(this.ne.lng, this.sw.lat, t)
418
+ O.fromLngLat(this.ne.lng, this.sw.lat, t)
360
419
  ];
361
420
  }
362
421
  toGoogle(t) {
@@ -369,8 +428,8 @@ const de = class {
369
428
  return [this.sw.toBaidu(t), this.ne.toBaidu(t)];
370
429
  }
371
430
  };
372
- let V = de;
373
- g(V, "EMPTY", new de(C.ZERO, C.ZERO));
431
+ g(ae, "EMPTY", new ae(O.ZERO, O.ZERO));
432
+ let X = ae;
374
433
  ((i) => {
375
434
  class t {
376
435
  constructor(r) {
@@ -384,9 +443,9 @@ g(V, "EMPTY", new de(C.ZERO, C.ZERO));
384
443
  build() {
385
444
  return new i(
386
445
  // sw对应min
387
- C.create(this.minLat, this.minLng, this.coord),
446
+ O.create(this.minLat, this.minLng, this.coord),
388
447
  // ne对应max
389
- C.create(this.maxLat, this.maxLng, this.coord)
448
+ O.create(this.maxLat, this.maxLng, this.coord)
390
449
  );
391
450
  }
392
451
  include(r) {
@@ -398,7 +457,7 @@ g(V, "EMPTY", new de(C.ZERO, C.ZERO));
398
457
  }
399
458
  }
400
459
  i.Builder = t;
401
- })(V || (V = {}));
460
+ })(X || (X = {}));
402
461
  var te;
403
462
  ((i) => {
404
463
  function t(r, s) {
@@ -415,72 +474,13 @@ var te;
415
474
  }
416
475
  i.getCoordType = e;
417
476
  })(te || (te = {}));
418
- var Mt;
477
+ var bt;
419
478
  ((i) => {
420
479
  function t(e) {
421
480
  return e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight;
422
481
  }
423
482
  i.isScrollable = t;
424
- })(Mt || (Mt = {}));
425
- var ve;
426
- ((i) => {
427
- function t(c, o) {
428
- return c.length === o.length && c.every((l, d) => l === o[d]);
429
- }
430
- i.equals = t;
431
- function e(c, o) {
432
- const l = c.indexOf(o);
433
- if (l !== -1)
434
- return c.splice(l, 1)[0];
435
- }
436
- i.remove = e;
437
- function r(c, o) {
438
- for (const l of c)
439
- if (l instanceof o)
440
- return l;
441
- }
442
- i.findByType = r;
443
- function s(c, o) {
444
- return c.includes(o);
445
- }
446
- i.includesTyped = s;
447
- function n(c, o, l) {
448
- const d = o >= 0 ? o : c.length + o;
449
- if (l === void 0)
450
- return c[d];
451
- c[d] = l;
452
- }
453
- i.at = n;
454
- function a(c) {
455
- return c.length > 0;
456
- }
457
- i.isNotEmpty = a;
458
- })(ve || (ve = {}));
459
- var ye;
460
- ((i) => {
461
- function t(s, n) {
462
- const a = s.getLength();
463
- for (let c = 0; c < a; c++)
464
- if (s.getAt(c) === n)
465
- return c;
466
- return -1;
467
- }
468
- i.indexOf = t;
469
- function e(s, n) {
470
- const a = t(s, n);
471
- if (a !== -1)
472
- return s.removeAt(a);
473
- }
474
- i.remove = e;
475
- function r(s, n) {
476
- return [
477
- s.addListener("insert_at", n),
478
- s.addListener("remove_at", n),
479
- s.addListener("set_at", n)
480
- ];
481
- }
482
- i.listenChanged = r;
483
- })(ye || (ye = {}));
483
+ })(bt || (bt = {}));
484
484
  function _r(i, t, e) {
485
485
  return i.addListener(t, e).remove;
486
486
  }
@@ -503,7 +503,7 @@ class br {
503
503
  return this.target = t, this;
504
504
  }
505
505
  }
506
- class lt {
506
+ class ot {
507
507
  constructor(t, e) {
508
508
  g(this, "eventHub", new Tr());
509
509
  this.delegate = t, this.options = e;
@@ -518,34 +518,34 @@ class lt {
518
518
  return this.delegate.setTarget(t), this;
519
519
  }
520
520
  addEventListener(t, e) {
521
- if (ve.includesTyped(this.options.types, t)) {
521
+ if (fe.includesTyped(this.options.types, t)) {
522
522
  this.eventHub.hasListener(t) || this.options.onListen(t), this.eventHub.addEventListener(t, e);
523
523
  return;
524
524
  }
525
525
  this.delegate.addEventListener(t, e);
526
526
  }
527
527
  removeEventListener(t, e) {
528
- if (ve.includesTyped(this.options.types, t)) {
528
+ if (fe.includesTyped(this.options.types, t)) {
529
529
  this.eventHub.removeEventListener(t, e), this.eventHub.hasListener(t) || this.options.onCancel(t);
530
530
  return;
531
531
  }
532
532
  this.delegate.removeEventListener(t, e);
533
533
  }
534
534
  }
535
- const nr = class extends br {
535
+ const rt = class rt extends br {
536
536
  addEventListener(t, e) {
537
537
  const r = Ye(t, e);
538
538
  if (this.eventMap.get(r)) {
539
539
  console.warn("listener已经添加过了", r, e);
540
540
  return;
541
541
  }
542
- const s = this.inner.addListener(nr.EVENT_TYPE_MAP[t] || t, (n) => {
542
+ const s = this.inner.addListener(rt.EVENT_TYPE_MAP[t] || t, (n) => {
543
543
  const a = {
544
544
  type: t,
545
545
  target: this.target,
546
546
  originalEvent: n
547
547
  };
548
- n != null && n.latLng && (a.position = C.fromGoogle(n.latLng, this.coordTypeSupplier.coordType)), e.call(this.target, a);
548
+ n != null && n.latLng && (a.position = O.fromGoogle(n.latLng, this.coordTypeSupplier.coordType)), e.call(this.target, a);
549
549
  });
550
550
  this.eventMap.set(r, s);
551
551
  }
@@ -554,9 +554,8 @@ const nr = class extends br {
554
554
  s ? (s.remove(), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
555
555
  }
556
556
  };
557
- let ue = nr;
558
557
  // 事件类型映射: tg => google
559
- g(ue, "EVENT_TYPE_MAP", {
558
+ g(rt, "EVENT_TYPE_MAP", {
560
559
  "center-changed": "center_changed",
561
560
  "zoom-changed": "zoom_changed",
562
561
  "radius-changed": "radius_changed",
@@ -572,7 +571,8 @@ g(ue, "EVENT_TYPE_MAP", {
572
571
  "map-mouseup": "mouseup",
573
572
  "map-dblclick": "dblclick"
574
573
  });
575
- const rt = class extends br {
574
+ let ye = rt;
575
+ const Se = class Se extends br {
576
576
  addEventListener(t, e) {
577
577
  const r = Ye(t, e);
578
578
  if (this.eventMap.get(r)) {
@@ -585,19 +585,18 @@ const rt = class extends br {
585
585
  target: this.target,
586
586
  originalEvent: n
587
587
  };
588
- n.point && (a.position = C.fromBaidu(n.point, this.coordTypeSupplier.coordType)), e.call(this.target, a);
588
+ n.point && (a.position = O.fromBaidu(n.point, this.coordTypeSupplier.coordType)), e.call(this.target, a);
589
589
  };
590
- this.inner.addEventListener(rt.EVENT_TYPE_MAP[t] || t, s), this.eventMap.set(r, s);
590
+ this.inner.addEventListener(Se.EVENT_TYPE_MAP[t] || t, s), this.eventMap.set(r, s);
591
591
  }
592
592
  removeEventListener(t, e) {
593
593
  const r = Ye(t, e), s = this.eventMap.get(r);
594
- s ? (this.inner.removeEventListener(rt.EVENT_TYPE_MAP[t] || t, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
594
+ s ? (this.inner.removeEventListener(Se.EVENT_TYPE_MAP[t] || t, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, e);
595
595
  }
596
596
  };
597
- let fe = rt;
598
597
  // cSpell:words clickclose
599
598
  // 事件类型映射, tg => baidu
600
- g(fe, "EVENT_TYPE_MAP", {
599
+ g(Se, "EVENT_TYPE_MAP", {
601
600
  drag: "dragging",
602
601
  closeclick: "clickclose",
603
602
  // baidu不支持contextmenu事件, 将其映射为rightclick
@@ -605,6 +604,7 @@ g(fe, "EVENT_TYPE_MAP", {
605
604
  "zoom-changed": "zoomend",
606
605
  "map-type-changed": "maptypechange"
607
606
  });
607
+ let $e = Se;
608
608
  class Tr {
609
609
  constructor() {
610
610
  g(this, "typeMap", /* @__PURE__ */ new Map());
@@ -615,7 +615,7 @@ class Tr {
615
615
  }
616
616
  removeEventListener(t, e) {
617
617
  const r = this.typeMap.get(t);
618
- r && ve.remove(r, e);
618
+ r && fe.remove(r, e);
619
619
  }
620
620
  hasListener(t) {
621
621
  const e = this.typeMap.get(t);
@@ -673,7 +673,7 @@ class ui {
673
673
  return this.getOrNull(t, e) ?? B(`key(${e})不存在与valueMap(${this.getValueMap(t)})中`);
674
674
  }
675
675
  }
676
- class Pe {
676
+ class Le {
677
677
  constructor(t) {
678
678
  g(this, "value");
679
679
  this.creator = t;
@@ -682,7 +682,7 @@ class Pe {
682
682
  return this.value === void 0 && (this.value = this.creator()), this.value;
683
683
  }
684
684
  }
685
- 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 || {}), Y;
685
+ 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 || {}), U;
686
686
  ((i) => {
687
687
  let t, e;
688
688
  const r = [
@@ -747,7 +747,7 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
747
747
  ])), e;
748
748
  }
749
749
  i.getGoogle = n;
750
- })(Y || (Y = {}));
750
+ })(U || (U = {}));
751
751
  class pi {
752
752
  constructor(t) {
753
753
  /** 实际添加到地图中的control对象 */
@@ -778,7 +778,7 @@ class gi extends Lt {
778
778
  removeFrom(t) {
779
779
  }
780
780
  }
781
- class Pt extends Lt {
781
+ class Bt extends Lt {
782
782
  constructor(t, e) {
783
783
  super(), this.inner = t, this.position = e;
784
784
  }
@@ -789,10 +789,10 @@ class Pt extends Lt {
789
789
  t ? this.inner.show() : this.inner.hide();
790
790
  }
791
791
  getPosition() {
792
- return this.position ?? Y.getBaidu().toKey(this.inner.getAnchor());
792
+ return this.position ?? U.getBaidu().toKey(this.inner.getAnchor());
793
793
  }
794
794
  setPosition(t) {
795
- this.position = t, this.inner.setAnchor(Y.getBaidu().toValue(t));
795
+ this.position = t, this.inner.setAnchor(U.getBaidu().toValue(t));
796
796
  }
797
797
  addTo(t) {
798
798
  t.innerMap.addControl(this.inner);
@@ -801,7 +801,7 @@ class Pt extends Lt {
801
801
  t.innerMap.removeControl(this.inner);
802
802
  }
803
803
  }
804
- class ht extends Lt {
804
+ class at extends Lt {
805
805
  constructor(e, r) {
806
806
  super();
807
807
  g(this, "visible", !1);
@@ -828,7 +828,7 @@ class ht extends Lt {
828
828
  }
829
829
  onCreateOptions() {
830
830
  return {
831
- position: Y.getGoogle().toValue(this.position)
831
+ position: U.getGoogle().toValue(this.position)
832
832
  };
833
833
  }
834
834
  tryUpdateOptions() {
@@ -839,7 +839,7 @@ class ht extends Lt {
839
839
  }
840
840
  }
841
841
  var Mr = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(Mr || {});
842
- class j {
842
+ class W {
843
843
  constructor(t, e, r, s) {
844
844
  this.id = t, this.baidu = e, this.google = r, this.googleCoordType = s;
845
845
  }
@@ -860,19 +860,19 @@ class j {
860
860
  return this.google();
861
861
  }
862
862
  asGoogleMapType() {
863
- Et("google的内置地图没有对应的实例");
863
+ Pt("google的内置地图没有对应的实例");
864
864
  }
865
865
  }
866
- class pn {
866
+ class mn {
867
867
  constructor(t, e) {
868
- g(this, "baiduLayerCached", new Pe(() => {
868
+ g(this, "baiduLayerCached", new Le(() => {
869
869
  const t = new BMap.TileLayer({});
870
870
  return t.getTilesUrl = (e, r) => {
871
871
  const s = Math.pow(2, r - 1), n = e.x + s, a = s - 1 - e.y;
872
872
  return this.options.getTileUrl({ x: n, y: a }, r);
873
873
  }, t;
874
874
  }));
875
- g(this, "baiduMapTypeCached", new Pe(() => {
875
+ g(this, "baiduMapTypeCached", new Le(() => {
876
876
  const t = new BMap.MapType(this.options.name, this.baiduLayerCached.get(), {
877
877
  maxZoom: this.options.maxZoom,
878
878
  minZoom: this.options.minZoom,
@@ -880,7 +880,7 @@ class pn {
880
880
  });
881
881
  return t.__baidu_map_type__ = this, t;
882
882
  }));
883
- g(this, "googleCached", new Pe(() => {
883
+ g(this, "googleCached", new Le(() => {
884
884
  const t = new google.maps.ImageMapType({
885
885
  getTileUrl: (e, r) => this.options.getTileUrl(e, r),
886
886
  tileSize: new google.maps.Size(256, 256),
@@ -912,13 +912,13 @@ class pn {
912
912
  return this.googleCached.get();
913
913
  }
914
914
  asGoogleLayer() {
915
- Et("这个方法不会被调用");
915
+ Pt("这个方法不会被调用");
916
916
  }
917
917
  }
918
918
  class mi {
919
919
  constructor() {
920
- g(this, "baiduCache", new Pe(() => new BMap.TrafficLayer()));
921
- g(this, "googleCache", new Pe(() => new google.maps.TrafficLayer()));
920
+ g(this, "baiduCache", new Le(() => new BMap.TrafficLayer()));
921
+ g(this, "googleCache", new Le(() => new google.maps.TrafficLayer()));
922
922
  }
923
923
  asBaiduLayer() {
924
924
  return this.baiduCache.get();
@@ -927,21 +927,21 @@ class mi {
927
927
  return this.googleCache.get();
928
928
  }
929
929
  }
930
- var F;
930
+ var V;
931
931
  ((i) => {
932
- i.NORMAL = new j("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, A.gcj02), i.SATELLITE = new j("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, A.wgs84), i.HYBRID = new j("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, A.gcj02), i.TERRAIN = new j("terrain", () => (
932
+ i.NORMAL = new W("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, A.gcj02), i.SATELLITE = new W("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, A.wgs84), i.HYBRID = new W("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, A.gcj02), i.TERRAIN = new W("terrain", () => (
933
933
  /* 三维 */
934
934
  BMAP_PERSPECTIVE_MAP
935
935
  ), () => (
936
936
  /* 地形 */
937
937
  google.maps.MapTypeId.TERRAIN
938
938
  ), A.wgs84), i.BUILD_IN_MAP_TYPES = new ui([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
939
- })(F || (F = {}));
940
- var Cr = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Cr || {});
941
- const Or = [F.NORMAL, F.SATELLITE, F.HYBRID];
942
- class Bt extends Pt {
939
+ })(V || (V = {}));
940
+ var Or = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Or || {});
941
+ const Cr = [V.NORMAL, V.SATELLITE, V.HYBRID];
942
+ class It extends Bt {
943
943
  static create(t) {
944
- const e = t.mapTypes ?? Or, r = {
944
+ const e = t.mapTypes ?? Cr, r = {
945
945
  default: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
946
946
  horizontal: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
947
947
  dropdown: BMAP_MAPTYPE_CONTROL_DROPDOWN
@@ -949,74 +949,74 @@ class Bt extends Pt {
949
949
  type: t.type && r[t.type],
950
950
  mapTypes: e.map((n) => n.asBaiduMapType())
951
951
  });
952
- return t.position && s.setAnchor(Y.getBaidu().toValue(t.position)), new Bt(s, t.position);
952
+ return t.position && s.setAnchor(U.getBaidu().toValue(t.position)), new It(s, t.position);
953
953
  }
954
954
  }
955
- const ge = class extends ht {
956
- constructor(t = "default", e = k.TOP_LEFT, r = Or) {
957
- super("mapType", e), this.type = t, this.mapTypes = r, ge.type2google || (ge.type2google = {
955
+ const ue = class ue extends at {
956
+ constructor(t = "default", e = k.TOP_LEFT, r = Cr) {
957
+ super("mapType", e), this.type = t, this.mapTypes = r, ue.type2google || (ue.type2google = {
958
958
  default: google.maps.MapTypeControlStyle.DEFAULT,
959
959
  horizontal: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
960
960
  dropdown: google.maps.MapTypeControlStyle.DROPDOWN_MENU
961
961
  });
962
962
  }
963
963
  static create(t) {
964
- return new ge(t.type, t.position, t.mapTypes);
964
+ return new ue(t.type, t.position, t.mapTypes);
965
965
  }
966
966
  onCreateOptions() {
967
967
  const t = super.onCreateOptions();
968
- return t.style = ge.type2google[this.type], t.mapTypeIds = this.mapTypes.map((e) => e instanceof j ? e.getGoogleMapTypeId() : e.id), t;
968
+ return t.style = ue.type2google[this.type], t.mapTypeIds = this.mapTypes.map((e) => e instanceof W ? e.getGoogleMapTypeId() : e.id), t;
969
969
  }
970
970
  addTo(t) {
971
971
  super.addTo(t), this.mapTypes.forEach((e) => {
972
- e instanceof j || t.innerMap.mapTypes.set(e.id, e.asGoogleMapType());
972
+ e instanceof W || t.innerMap.mapTypes.set(e.id, e.asGoogleMapType());
973
973
  });
974
974
  }
975
975
  };
976
- let Ve = ge;
977
- g(Ve, "type2google");
978
- class It extends Pt {
976
+ g(ue, "type2google");
977
+ let Tt = ue;
978
+ class St extends Bt {
979
979
  static create(t) {
980
980
  const e = new BMap.ScaleControl({
981
- anchor: t.position && Y.getBaidu().toValue(t.position)
981
+ anchor: t.position && U.getBaidu().toValue(t.position)
982
982
  });
983
- return new It(e, t.position);
983
+ return new St(e, t.position);
984
984
  }
985
985
  }
986
- class St extends ht {
986
+ class kt extends at {
987
987
  static create(t) {
988
- return new St(t.position);
988
+ return new kt(t.position);
989
989
  }
990
990
  constructor(t = k.BOTTOM_RIGHT) {
991
991
  super("scale", t);
992
992
  }
993
993
  }
994
- class kt extends gi {
994
+ class At extends gi {
995
995
  static create(t) {
996
- return new kt(!0, t.position ?? k.RIGHT_BOTTOM);
996
+ return new At(!0, t.position ?? k.RIGHT_BOTTOM);
997
997
  }
998
998
  }
999
- class At extends ht {
999
+ class Dt extends at {
1000
1000
  static create(t) {
1001
- return new At(t.position);
1001
+ return new Dt(t.position);
1002
1002
  }
1003
1003
  constructor(t = k.RIGHT_BOTTOM) {
1004
1004
  super("streetView", t);
1005
1005
  }
1006
1006
  }
1007
- class Rt extends Pt {
1007
+ class Rt extends Bt {
1008
1008
  static create(t) {
1009
1009
  const e = new BMap.NavigationControl({
1010
1010
  type: BMAP_NAVIGATION_CONTROL_ZOOM,
1011
1011
  // enableGeolocation: true,
1012
- anchor: t.position && Y.getBaidu().toValue(t.position)
1012
+ anchor: t.position && U.getBaidu().toValue(t.position)
1013
1013
  });
1014
1014
  return new Rt(e, t.position);
1015
1015
  }
1016
1016
  }
1017
- class Dt extends ht {
1017
+ class $t extends at {
1018
1018
  static create(t) {
1019
- return new Dt(t.position);
1019
+ return new $t(t.position);
1020
1020
  }
1021
1021
  constructor(t = k.RIGHT_BOTTOM) {
1022
1022
  super("zoom", t);
@@ -1034,7 +1034,7 @@ function fi(i) {
1034
1034
  u[a] ? console.warn(s + " only loads once. Ignoring:", i) : u[a] = (y, ...m) => p.add(y) && b().then(() => u[a](y, ...m));
1035
1035
  }
1036
1036
  let vi, yi;
1037
- const le = {
1037
+ const he = {
1038
1038
  /** Google的坐标0点 */
1039
1039
  get LATLNG_ZERO() {
1040
1040
  return vi ?? (vi = new google.maps.LatLng({ lat: 0, lng: 0 }));
@@ -1077,7 +1077,7 @@ function xr(i, t) {
1077
1077
  city: (e == null ? void 0 : e.city) ?? "",
1078
1078
  id: i.place_id ?? "",
1079
1079
  address: i.formatted_address ?? "",
1080
- position: C.fromGoogle(((r = i.geometry) == null ? void 0 : r.location) ?? le.LATLNG_ZERO, t.coordType),
1080
+ position: O.fromGoogle(((r = i.geometry) == null ? void 0 : r.location) ?? he.LATLNG_ZERO, t.coordType),
1081
1081
  title: i.name ?? ""
1082
1082
  };
1083
1083
  }
@@ -1158,11 +1158,11 @@ class bi extends Er {
1158
1158
  };
1159
1159
  }
1160
1160
  }
1161
- var Lr = { exports: {} };
1161
+ var Pr = { exports: {} };
1162
1162
  (function(i, t) {
1163
1163
  (function(e, r) {
1164
1164
  i.exports = r();
1165
- })(wt, function() {
1165
+ })(xt, function() {
1166
1166
  const e = function() {
1167
1167
  var n = {
1168
1168
  defaultRadius: 40,
@@ -1182,14 +1182,14 @@ var Lr = { exports: {} };
1182
1182
  return v.prototype = {
1183
1183
  // when forceRender = false -> called from setData, omits renderall event
1184
1184
  _organiseData: function(y, m) {
1185
- var h = y[this._xField], f = y[this._yField], M = this._radi, T = this._data, O = this._max, w = this._min, E = y[this._valueField] || 1, R = y.radius || this._cfgRadius || b;
1186
- return T[h] || (T[h] = [], M[h] = []), T[h][f] ? T[h][f] += E : (T[h][f] = E, M[h][f] = R), T[h][f] > O ? (m ? this.setDataMax(T[h][f]) : this._max = T[h][f], !1) : {
1185
+ var h = y[this._xField], f = y[this._yField], M = this._radi, T = this._data, C = this._max, w = this._min, E = y[this._valueField] || 1, D = y.radius || this._cfgRadius || b;
1186
+ return T[h] || (T[h] = [], M[h] = []), T[h][f] ? T[h][f] += E : (T[h][f] = E, M[h][f] = D), T[h][f] > C ? (m ? this.setDataMax(T[h][f]) : this._max = T[h][f], !1) : {
1187
1187
  x: h,
1188
1188
  y: f,
1189
1189
  value: E,
1190
- radius: R,
1190
+ radius: D,
1191
1191
  min: w,
1192
- max: O
1192
+ max: C
1193
1193
  };
1194
1194
  },
1195
1195
  _unOrganizeData: function() {
@@ -1300,27 +1300,27 @@ var Lr = { exports: {} };
1300
1300
  var v = function(h) {
1301
1301
  var f = h.gradient || h.defaultGradient, M = document.createElement("canvas"), T = M.getContext("2d");
1302
1302
  M.width = 256, M.height = 1;
1303
- var O = T.createLinearGradient(0, 0, 256, 1);
1303
+ var C = T.createLinearGradient(0, 0, 256, 1);
1304
1304
  for (var w in f)
1305
- O.addColorStop(w, f[w]);
1306
- return T.fillStyle = O, T.fillRect(0, 0, 256, 1), T.getImageData(0, 0, 256, 1).data;
1305
+ C.addColorStop(w, f[w]);
1306
+ return T.fillStyle = C, T.fillRect(0, 0, 256, 1), T.getImageData(0, 0, 256, 1).data;
1307
1307
  }, b = function(h, f) {
1308
- var M = document.createElement("canvas"), T = M.getContext("2d"), O = h, w = h;
1308
+ var M = document.createElement("canvas"), T = M.getContext("2d"), C = h, w = h;
1309
1309
  if (M.width = M.height = h * 2, f == 1)
1310
- T.beginPath(), T.arc(O, w, h, 0, 2 * Math.PI, !1), T.fillStyle = "rgba(0,0,0,1)", T.fill();
1310
+ T.beginPath(), T.arc(C, w, h, 0, 2 * Math.PI, !1), T.fillStyle = "rgba(0,0,0,1)", T.fill();
1311
1311
  else {
1312
- var E = T.createRadialGradient(O, w, h * f, O, w, h);
1312
+ var E = T.createRadialGradient(C, w, h * f, C, w, h);
1313
1313
  E.addColorStop(0, "rgba(0,0,0,1)"), E.addColorStop(1, "rgba(0,0,0,0)"), T.fillStyle = E, T.fillRect(0, 0, 2 * h, 2 * h);
1314
1314
  }
1315
1315
  return M;
1316
1316
  }, y = function(w) {
1317
- for (var f = [], M = w.min, T = w.max, O = w.radi, w = w.data, E = Object.keys(w), R = E.length; R--; )
1318
- for (var G = E[R], P = Object.keys(w[G]), J = P.length; J--; ) {
1319
- var I = P[J], Z = w[G][I], Q = O[G][I];
1317
+ for (var f = [], M = w.min, T = w.max, C = w.radi, w = w.data, E = Object.keys(w), D = E.length; D--; )
1318
+ for (var N = E[D], L = Object.keys(w[N]), J = L.length; J--; ) {
1319
+ var I = L[J], G = w[N][I], Q = C[N][I];
1320
1320
  f.push({
1321
- x: G,
1321
+ x: N,
1322
1322
  y: I,
1323
- value: Z,
1323
+ value: G,
1324
1324
  radius: Q
1325
1325
  });
1326
1326
  }
@@ -1333,8 +1333,8 @@ var Lr = { exports: {} };
1333
1333
  function m(h) {
1334
1334
  var f = h.element, M = this.shadowCanvas = document.createElement("canvas"), T = this.canvas = h.canvas || document.createElement("canvas");
1335
1335
  this._renderBoundaries = [1e4, 1e4, 0, 0];
1336
- var O = getComputedStyle(h.element) || {};
1337
- T.className = "heatmap-canvas", this._width = T.width = M.width = +O.width.replace(/px/, ""), this._height = T.height = M.height = +O.height.replace(/px/, ""), this.shadowCtx = M.getContext("2d"), this.ctx = T.getContext("2d"), T.style.cssText = M.style.cssText = "position:absolute;left:0;top:0;", f.style.position = "relative", f.appendChild(T), this._palette = v(h), this._templates = {}, this._setStyles(h);
1336
+ var C = getComputedStyle(h.element) || {};
1337
+ T.className = "heatmap-canvas", this._width = T.width = M.width = +C.width.replace(/px/, ""), this._height = T.height = M.height = +C.height.replace(/px/, ""), this.shadowCtx = M.getContext("2d"), this.ctx = T.getContext("2d"), T.style.cssText = M.style.cssText = "position:absolute;left:0;top:0;", f.style.position = "relative", f.appendChild(T), this._palette = v(h), this._templates = {}, this._setStyles(h);
1338
1338
  }
1339
1339
  return m.prototype = {
1340
1340
  renderPartial: function(h) {
@@ -1359,26 +1359,26 @@ var Lr = { exports: {} };
1359
1359
  this._blur = h.blur == 0 ? 0 : h.blur || h.defaultBlur, h.backgroundColor && (this.canvas.style.backgroundColor = h.backgroundColor), this._opacity = (h.opacity || 0) * 255, this._maxOpacity = (h.maxOpacity || h.defaultMaxOpacity) * 255, this._minOpacity = (h.minOpacity || h.defaultMinOpacity) * 255, this._useGradientOpacity = !!h.useGradientOpacity;
1360
1360
  },
1361
1361
  _drawAlpha: function(T) {
1362
- for (var f = this._min = T.min, M = this._max = T.max, T = T.data || [], O = T.length, w = 1 - this._blur; O--; ) {
1363
- var E = T[O], R = E.x, G = E.y, P = E.radius, J = Math.min(E.value, M), I = R - P, Z = G - P, Q = this.shadowCtx, W;
1364
- this._templates[P] ? W = this._templates[P] : this._templates[P] = W = b(P, w), Q.globalAlpha = (J - f) / (M - f), Q.drawImage(W, I, Z), I < this._renderBoundaries[0] && (this._renderBoundaries[0] = I), Z < this._renderBoundaries[1] && (this._renderBoundaries[1] = Z), I + 2 * P > this._renderBoundaries[2] && (this._renderBoundaries[2] = I + 2 * P), Z + 2 * P > this._renderBoundaries[3] && (this._renderBoundaries[3] = Z + 2 * P);
1362
+ for (var f = this._min = T.min, M = this._max = T.max, T = T.data || [], C = T.length, w = 1 - this._blur; C--; ) {
1363
+ var E = T[C], D = E.x, N = E.y, L = E.radius, J = Math.min(E.value, M), I = D - L, G = N - L, Q = this.shadowCtx, Z;
1364
+ this._templates[L] ? Z = this._templates[L] : this._templates[L] = Z = b(L, w), Q.globalAlpha = (J - f) / (M - f), Q.drawImage(Z, I, G), I < this._renderBoundaries[0] && (this._renderBoundaries[0] = I), G < this._renderBoundaries[1] && (this._renderBoundaries[1] = G), I + 2 * L > this._renderBoundaries[2] && (this._renderBoundaries[2] = I + 2 * L), G + 2 * L > this._renderBoundaries[3] && (this._renderBoundaries[3] = G + 2 * L);
1365
1365
  }
1366
1366
  },
1367
1367
  _colorize: function() {
1368
- var h = this._renderBoundaries[0], f = this._renderBoundaries[1], M = this._renderBoundaries[2] - h, T = this._renderBoundaries[3] - f, O = this._width, w = this._height, E = this._opacity, R = this._maxOpacity, G = this._minOpacity, P = this._useGradientOpacity;
1369
- h < 0 && (h = 0), f < 0 && (f = 0), h + M > O && (M = O - h), f + T > w && (T = w - f);
1370
- for (var J = this.shadowCtx.getImageData(h, f, M, T), I = J.data, Z = I.length, Q = this._palette, W = 3; W < Z; W += 4) {
1371
- var We = I[W], Oe = We * 4;
1372
- if (Oe) {
1368
+ var h = this._renderBoundaries[0], f = this._renderBoundaries[1], M = this._renderBoundaries[2] - h, T = this._renderBoundaries[3] - f, C = this._width, w = this._height, E = this._opacity, D = this._maxOpacity, N = this._minOpacity, L = this._useGradientOpacity;
1369
+ h < 0 && (h = 0), f < 0 && (f = 0), h + M > C && (M = C - h), f + T > w && (T = w - f);
1370
+ for (var J = this.shadowCtx.getImageData(h, f, M, T), I = J.data, G = I.length, Q = this._palette, Z = 3; Z < G; Z += 4) {
1371
+ var je = I[Z], Ce = je * 4;
1372
+ if (Ce) {
1373
1373
  var we;
1374
- E > 0 ? we = E : We < R ? We < G ? we = G : we = We : we = R, I[W - 3] = Q[Oe], I[W - 2] = Q[Oe + 1], I[W - 1] = Q[Oe + 2], I[W] = P ? Q[Oe + 3] : we;
1374
+ E > 0 ? we = E : je < D ? je < N ? we = N : we = je : we = D, I[Z - 3] = Q[Ce], I[Z - 2] = Q[Ce + 1], I[Z - 1] = Q[Ce + 2], I[Z] = L ? Q[Ce + 3] : we;
1375
1375
  }
1376
1376
  }
1377
1377
  this.ctx.putImageData(J, h, f), this._renderBoundaries = [1e3, 1e3, 0, 0];
1378
1378
  },
1379
1379
  getValueAt: function(h) {
1380
- var f, M = this.shadowCtx, T = M.getImageData(h.x, h.y, 1, 1), O = T.data[3], w = this._max, E = this._min;
1381
- return f = Math.abs(w - E) * (O / 255) >> 0, f;
1380
+ var f, M = this.shadowCtx, T = M.getImageData(h.x, h.y, 1, 1), C = T.data[3], w = this._max, E = this._min;
1381
+ return f = Math.abs(w - E) * (C / 255) >> 0, f;
1382
1382
  },
1383
1383
  getDataURL: function() {
1384
1384
  return this.canvas.toDataURL();
@@ -1403,15 +1403,15 @@ var Lr = { exports: {} };
1403
1403
  }
1404
1404
  return h.prototype = {
1405
1405
  on: function(f, M, T) {
1406
- var O = this.cStore;
1407
- O[f] || (O[f] = []), O[f].push(function(w) {
1406
+ var C = this.cStore;
1407
+ C[f] || (C[f] = []), C[f].push(function(w) {
1408
1408
  return M.call(T, w);
1409
1409
  });
1410
1410
  },
1411
1411
  emit: function(f, M) {
1412
1412
  var T = this.cStore;
1413
1413
  if (T[f])
1414
- for (var O = T[f].length, w = 0; w < O; w++) {
1414
+ for (var C = T[f].length, w = 0; w < C; w++) {
1415
1415
  var E = T[f][w];
1416
1416
  E(M);
1417
1417
  }
@@ -1585,9 +1585,9 @@ var Lr = { exports: {} };
1585
1585
  }
1586
1586
  return r;
1587
1587
  });
1588
- })(Lr);
1589
- var Ti = Lr.exports;
1590
- const Mi = /* @__PURE__ */ at(Ti), lr = 10, qe = {
1588
+ })(Pr);
1589
+ var Ti = Pr.exports;
1590
+ const Mi = /* @__PURE__ */ nt(Ti), lr = 10, qe = {
1591
1591
  toGoogle: (i, t) => ({
1592
1592
  opacity: i.opacity,
1593
1593
  radius: i.radius ?? lr,
@@ -1614,9 +1614,9 @@ const Mi = /* @__PURE__ */ at(Ti), lr = 10, qe = {
1614
1614
  }), max: e ?? r };
1615
1615
  }
1616
1616
  };
1617
- class Pr {
1617
+ class Lr {
1618
1618
  }
1619
- class Ci extends Pr {
1619
+ class Oi extends Lr {
1620
1620
  constructor(e, r) {
1621
1621
  super();
1622
1622
  g(this, "inner");
@@ -1632,7 +1632,7 @@ class Ci extends Pr {
1632
1632
  this.inner.setMap(null);
1633
1633
  }
1634
1634
  }
1635
- class Oi extends Pr {
1635
+ class Ci extends Lr {
1636
1636
  constructor(e, r) {
1637
1637
  super();
1638
1638
  g(this, "inner");
@@ -1672,14 +1672,14 @@ function Be(i, t, e) {
1672
1672
  const r = new URL(t, i), s = new URLSearchParams(Object.entries(e).filter(li));
1673
1673
  return r.search = "?" + s.toString(), r;
1674
1674
  }
1675
- function mt() {
1675
+ function pt() {
1676
1676
  const i = window.location.hostname.split(".").filter((t) => !be.isInt(t));
1677
1677
  return i.length === 3 ? i.join(".") : [...i, "tg", "map", "urls"].slice(0, 3).join(".");
1678
1678
  }
1679
- const it = class extends Br {
1679
+ const ke = class ke extends Br {
1680
1680
  /** @see https://developers.google.com/maps/documentation/urls/get-started#directions-action */
1681
1681
  directions(t, e, r) {
1682
- return Be(it.BASE_URL, "dir/", {
1682
+ return Be(ke.BASE_URL, "dir/", {
1683
1683
  api: "1",
1684
1684
  // {@template google_map_normal_gcj02}
1685
1685
  // google地图的普通地图, 在国内其实上是gcj02坐标, 卫星地图是wgs84坐标, 因为这里打开的是基础地图, 故使用gcj02
@@ -1691,23 +1691,23 @@ const it = class extends Br {
1691
1691
  }
1692
1692
  /** @see https://developers.google.com/maps/documentation/urls/get-started#search-action */
1693
1693
  search(t) {
1694
- return Be(it.BASE_URL, "search/", {
1694
+ return Be(ke.BASE_URL, "search/", {
1695
1695
  api: "1",
1696
1696
  // {@macro google_map_normal_gcj02}
1697
1697
  query: te.toString(t, A.gcj02)
1698
1698
  });
1699
1699
  }
1700
1700
  };
1701
- let Fe = it;
1702
- g(Fe, "BASE_URL", "https://www.google.com/maps/");
1703
- const Se = class extends Br {
1701
+ g(ke, "BASE_URL", "https://www.google.com/maps/");
1702
+ let Mt = ke;
1703
+ const ge = class ge extends Br {
1704
1704
  /**
1705
1705
  * 导航
1706
1706
  * @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
1707
1707
  * */
1708
1708
  directions(t, e, r = "driving") {
1709
1709
  const s = te.getCoordType(e) ?? te.getCoordType(t) ?? A.bd09, n = te.toString(e, s);
1710
- return Be(Se.BASE_URL, "direction", {
1710
+ return Be(ge.BASE_URL, "direction", {
1711
1711
  // baidu地图, 一定要有起点, 故这里用终点当起点, 防止导航失败
1712
1712
  origin: te.toString(t, s) ?? (typeof e != "string" ? `name:请选择起点|latlng:${n}` : n),
1713
1713
  destination: n,
@@ -1716,7 +1716,7 @@ const Se = class extends Br {
1716
1716
  mode: r,
1717
1717
  output: "html",
1718
1718
  region: "中国",
1719
- src: mt()
1719
+ src: pt()
1720
1720
  });
1721
1721
  }
1722
1722
  search(t) {
@@ -1734,13 +1734,13 @@ const Se = class extends Br {
1734
1734
  * @see https://lbsyun.baidu.com/faq/api?title=webapi/uri/web#%E5%9B%BE%E5%8C%BA%E5%8A%9F%E8%83%BD
1735
1735
  */
1736
1736
  markerApi(t, e, r) {
1737
- return Be(Se.BASE_URL, "marker", {
1737
+ return Be(ge.BASE_URL, "marker", {
1738
1738
  location: `${t.lat},${t.lng}`,
1739
1739
  coord_type: t.coord === A.bd09 ? void 0 : t.coord,
1740
1740
  title: e,
1741
1741
  content: r,
1742
1742
  output: "html",
1743
- src: mt()
1743
+ src: pt()
1744
1744
  });
1745
1745
  }
1746
1746
  /**
@@ -1748,7 +1748,7 @@ const Se = class extends Br {
1748
1748
  * @see https://lbsyun.baidu.com/faq/api?title=webapi/uri/web#%E5%9B%BE%E5%8C%BA%E5%8A%9F%E8%83%BD:~:text=%E4%B8%8D%E4%BF%9D%E8%AF%81%E6%9C%8D%E5%8A%A1%E3%80%82-,2.1.2%20%E5%9C%B0%E5%9D%80%E8%A7%A3%E6%9E%90,-%E8%B0%83%E7%94%A8%E8%AF%A5
1749
1749
  * */
1750
1750
  geocoderApi(t) {
1751
- return Be(Se.BASE_URL, "geocoder", {
1751
+ return Be(ge.BASE_URL, "geocoder", {
1752
1752
  ...typeof t == "string" ? {
1753
1753
  address: t
1754
1754
  } : {
@@ -1757,13 +1757,12 @@ const Se = class extends Br {
1757
1757
  coord_type: t.coord === A.bd09 ? void 0 : t.coord
1758
1758
  },
1759
1759
  output: "html",
1760
- src: mt()
1760
+ src: pt()
1761
1761
  });
1762
1762
  }
1763
1763
  };
1764
- let Ue = Se;
1765
- g(Ue, "BASE_URL", "https://api.map.baidu.com/");
1766
- let wi = class Ir {
1764
+ g(ge, "BASE_URL", "https://api.map.baidu.com/");
1765
+ let Ot = ge, wi = class Ir {
1767
1766
  constructor(t, e, r) {
1768
1767
  this.extend(Ir, google.maps.OverlayView), this.map_ = t, this.MARKER_CLUSTER_IMAGE_PATH_ = "../images/m", this.MARKER_CLUSTER_IMAGE_EXTENSION_ = "png", this.markers_ = [], this.clusters_ = [], this.sizes = [53, 56, 66, 78, 90], this.styles_ = [], this.ready_ = !1;
1769
1768
  var s = r || {};
@@ -1788,11 +1787,11 @@ let wi = class Ir {
1788
1787
  * @ignore
1789
1788
  */
1790
1789
  extend(t, e) {
1791
- return function(r) {
1790
+ return (function(r) {
1792
1791
  for (var s in r.prototype)
1793
1792
  this.prototype[s] = r.prototype[s];
1794
1793
  return this;
1795
- }.apply(t, [e]);
1794
+ }).apply(t, [e]);
1796
1795
  }
1797
1796
  /**
1798
1797
  * Implementaion of the interface method.
@@ -2203,7 +2202,7 @@ let wi = class Ir {
2203
2202
  }
2204
2203
  }, xi = class {
2205
2204
  constructor(t) {
2206
- 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 $t(
2205
+ this.markerClusterer_ = t, this.map_ = t.getMap(), this.gridSize_ = t.getGridSize(), this.minClusterSize_ = t.getMinClusterSize(), this.averageCenter_ = t.isAverageCenter(), this.center_ = null, this.markers_ = [], this.bounds_ = null, this.clusterIcon_ = new zt(
2207
2206
  this,
2208
2207
  t.getStyles(),
2209
2208
  t.getGridSize()
@@ -2337,9 +2336,9 @@ let wi = class Ir {
2337
2336
  this.clusterIcon_.setCenter(this.center_), this.clusterIcon_.setSums(a), this.clusterIcon_.show();
2338
2337
  }
2339
2338
  };
2340
- class $t {
2339
+ class zt {
2341
2340
  constructor(t, e, r) {
2342
- t.getMarkerClusterer().extend($t, 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_);
2341
+ t.getMarkerClusterer().extend(zt, 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_);
2343
2342
  }
2344
2343
  /**
2345
2344
  * Triggers the clusterclick event and zoom's if the option is set.
@@ -2474,7 +2473,7 @@ var Sr = { exports: {} };
2474
2473
  (function(i, t) {
2475
2474
  (function(e, r) {
2476
2475
  i.exports = r();
2477
- })(wt, function() {
2476
+ })(xt, function() {
2478
2477
  var e, r = e = r || { version: "1.3.8" }, s = {};
2479
2478
  r.guid = "$BAIDU$", s[r.guid] = s[r.guid] || {}, r.dom = r.dom || {}, r.dom.g = function(o) {
2480
2479
  return typeof o == "string" || o instanceof String ? document.getElementById(o) : o && o.nodeName && (o.nodeType == 1 || o.nodeType == 9) ? o : null;
@@ -2665,21 +2664,21 @@ var Sr = { exports: {} };
2665
2664
  });
2666
2665
  })(Sr);
2667
2666
  var Ei = Sr.exports;
2668
- const hr = /* @__PURE__ */ at(Ei);
2667
+ const hr = /* @__PURE__ */ nt(Ei);
2669
2668
  var kr = function(i, t, e) {
2670
- t = Li(t);
2669
+ t = Pi(t);
2671
2670
  var r = i.pointToPixel(t.getNorthEast()), s = i.pointToPixel(t.getSouthWest());
2672
2671
  r.x += e, r.y -= e, s.x -= e, s.y += e;
2673
2672
  var n = i.pixelToPoint(r), a = i.pixelToPoint(s);
2674
2673
  return new BMap.Bounds(a, n);
2675
- }, Li = function(i) {
2676
- var t = He(i.getNorthEast().lng, -180, 180), e = He(i.getSouthWest().lng, -180, 180), r = He(i.getNorthEast().lat, -74, 74), s = He(i.getSouthWest().lat, -74, 74);
2674
+ }, Pi = function(i) {
2675
+ var t = Fe(i.getNorthEast().lng, -180, 180), e = Fe(i.getSouthWest().lng, -180, 180), r = Fe(i.getNorthEast().lat, -74, 74), s = Fe(i.getSouthWest().lat, -74, 74);
2677
2676
  return new BMap.Bounds(new BMap.Point(e, s), new BMap.Point(t, r));
2678
- }, He = function(i, t, e) {
2677
+ }, Fe = function(i, t, e) {
2679
2678
  return t && (i = Math.max(i, t)), e && (i = Math.min(i, e)), i;
2680
2679
  }, Ar = function(i) {
2681
2680
  return Object.prototype.toString.call(i) === "[object Array]";
2682
- }, Rr = function(i, t) {
2681
+ }, Dr = function(i, t) {
2683
2682
  var e = -1;
2684
2683
  if (Ar(t)) {
2685
2684
  if (t.indexOf)
@@ -2720,7 +2719,7 @@ x.prototype.addMarkers = function(i) {
2720
2719
  }
2721
2720
  };
2722
2721
  x.prototype._pushMarkerTo = function(i) {
2723
- var t = Rr(i, this._markers);
2722
+ var t = Dr(i, this._markers);
2724
2723
  t === -1 && (i.isInCluster = !1, this._markers.push(i));
2725
2724
  };
2726
2725
  x.prototype.addMarker = function(i) {
@@ -2748,7 +2747,7 @@ x.prototype._addToClosestCluster = function(i) {
2748
2747
  if (e && e.isMarkerInClusterBounds(i))
2749
2748
  e.addMarker(i);
2750
2749
  else {
2751
- var s = new q(this);
2750
+ var s = new Y(this);
2752
2751
  s.addMarker(i), this._clusters.push(s);
2753
2752
  }
2754
2753
  };
@@ -2769,7 +2768,7 @@ x.prototype._removeMarkersFromMap = function() {
2769
2768
  }
2770
2769
  };
2771
2770
  x.prototype._removeMarker = function(i) {
2772
- var t = Rr(i, this._markers);
2771
+ var t = Dr(i, this._markers);
2773
2772
  return t === -1 ? !1 : (this._map.removeOverlay(i), this._markers.splice(t, 1), !0);
2774
2773
  };
2775
2774
  x.prototype.removeMarker = function(i) {
@@ -2843,7 +2842,7 @@ x.prototype.setTextCalculator = function(i) {
2843
2842
  x.prototype.setStylesIndexCalculator = function(i) {
2844
2843
  this._stylesIndexCalculator = i;
2845
2844
  };
2846
- function q(i) {
2845
+ function Y(i) {
2847
2846
  var t = this;
2848
2847
  this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new hr(this._center, this._markers.length, {
2849
2848
  styles: this._markerClusterer.getStyles(),
@@ -2858,7 +2857,7 @@ function q(i) {
2858
2857
  t._map.setViewport(t.getBounds());
2859
2858
  });
2860
2859
  }
2861
- q.prototype.addMarker = function(i) {
2860
+ Y.prototype.addMarker = function(i) {
2862
2861
  if (this.isMarkerInCluster(i))
2863
2862
  return !1;
2864
2863
  if (!this._center)
@@ -2869,7 +2868,7 @@ q.prototype.addMarker = function(i) {
2869
2868
  }
2870
2869
  return i.isInCluster = !0, this._markers.push(i), !0;
2871
2870
  };
2872
- q.prototype.render = function() {
2871
+ Y.prototype.render = function() {
2873
2872
  var i = this._markers.length;
2874
2873
  if (i < this._minClusterSize)
2875
2874
  for (var t = 0; t < i; t++)
@@ -2877,7 +2876,7 @@ q.prototype.render = function() {
2877
2876
  else
2878
2877
  this._map.addOverlay(this._clusterMarker), this._isReal = !0, this.updateClusterMarker();
2879
2878
  };
2880
- q.prototype.isMarkerInCluster = function(i) {
2879
+ Y.prototype.isMarkerInCluster = function(i) {
2881
2880
  if (this._markers.indexOf)
2882
2881
  return this._markers.indexOf(i) != -1;
2883
2882
  for (var t = 0, e; e = this._markers[t]; t++)
@@ -2885,17 +2884,17 @@ q.prototype.isMarkerInCluster = function(i) {
2885
2884
  return !0;
2886
2885
  return !1;
2887
2886
  };
2888
- q.prototype.isMarkerInClusterBounds = function(i) {
2887
+ Y.prototype.isMarkerInClusterBounds = function(i) {
2889
2888
  return this._gridBounds.containsPoint(i.getPosition());
2890
2889
  };
2891
- q.prototype.isReal = function(i) {
2890
+ Y.prototype.isReal = function(i) {
2892
2891
  return this._isReal;
2893
2892
  };
2894
- q.prototype.updateGridBounds = function() {
2893
+ Y.prototype.updateGridBounds = function() {
2895
2894
  var i = new BMap.Bounds(this._center, this._center);
2896
2895
  this._gridBounds = kr(this._map, i, this._markerClusterer.getGridSize());
2897
2896
  };
2898
- q.prototype.updateClusterMarker = function() {
2897
+ Y.prototype.updateClusterMarker = function() {
2899
2898
  if (this._map.getZoom() > this._markerClusterer.getMaxZoom()) {
2900
2899
  this._clusterMarker && this._map.removeOverlay(this._clusterMarker);
2901
2900
  for (var i = 0, t; t = this._markers[i]; i++)
@@ -2908,19 +2907,19 @@ q.prototype.updateClusterMarker = function() {
2908
2907
  }
2909
2908
  this._clusterMarker.setPosition(this._center), this._clusterMarker.setText(this._markerClusterer._textCalculator(this._markers));
2910
2909
  };
2911
- q.prototype.remove = function() {
2910
+ Y.prototype.remove = function() {
2912
2911
  for (var i = 0, t; t = this._markers[i]; i++) {
2913
2912
  var e = this._markers[i].getLabel();
2914
2913
  this._markers[i].getMap() && this._map.removeOverlay(this._markers[i]), this._markers[i].setLabel(e);
2915
2914
  }
2916
2915
  this._map.removeOverlay(this._clusterMarker), this._markers.length = 0, delete this._markers;
2917
2916
  };
2918
- q.prototype.getBounds = function() {
2917
+ Y.prototype.getBounds = function() {
2919
2918
  for (var i = new BMap.Bounds(this._center, this._center), t = 0, e; e = this._markers[t]; t++)
2920
2919
  i.extend(e.getPosition());
2921
2920
  return i;
2922
2921
  };
2923
- q.prototype.getCenter = function() {
2922
+ Y.prototype.getCenter = function() {
2924
2923
  return this._center;
2925
2924
  };
2926
2925
  var Xe;
@@ -2949,7 +2948,7 @@ var Xe;
2949
2948
  }
2950
2949
  i.toGoogle = e;
2951
2950
  })(Xe || (Xe = {}));
2952
- class Dr {
2951
+ class Rr {
2953
2952
  constructor(t) {
2954
2953
  this.map = t;
2955
2954
  }
@@ -2974,7 +2973,7 @@ class Dr {
2974
2973
  return this.inner.removeMarkers(t.map((e) => e.innerOverlay));
2975
2974
  }
2976
2975
  }
2977
- class Pi extends Dr {
2976
+ class Li extends Rr {
2978
2977
  constructor(e, r) {
2979
2978
  var n;
2980
2979
  super(e);
@@ -2996,7 +2995,7 @@ class Pi extends Dr {
2996
2995
  this.inner._redraw();
2997
2996
  }
2998
2997
  }
2999
- class Bi extends Dr {
2998
+ class Bi extends Rr {
3000
2999
  constructor(e, r) {
3001
3000
  var n, a;
3002
3001
  super(e);
@@ -3038,7 +3037,7 @@ class Ii extends $r {
3038
3037
  search(e, r) {
3039
3038
  return this.searchImpl(
3040
3039
  e,
3041
- r instanceof C ? r.toGoogle(this.map.coordType) : r ?? this.map.innerMap.getCenter()
3040
+ r instanceof O ? r.toGoogle(this.map.coordType) : r ?? this.map.innerMap.getCenter()
3042
3041
  );
3043
3042
  }
3044
3043
  searchInBounds(e, r) {
@@ -3087,7 +3086,7 @@ class Si extends $r {
3087
3086
  }
3088
3087
  search(e, r) {
3089
3088
  return this.newSearch(
3090
- r instanceof C ? r.toBaidu(this.map.coordType) : r ?? this.map.innerMap.getCenter(),
3089
+ r instanceof O ? r.toBaidu(this.map.coordType) : r ?? this.map.innerMap.getCenter(),
3091
3090
  (s) => {
3092
3091
  s.search(e);
3093
3092
  }
@@ -3107,7 +3106,7 @@ class Si extends $r {
3107
3106
  return new Promise((s, n) => {
3108
3107
  const a = new BMap.LocalSearch(e ?? this.map.innerMap, {
3109
3108
  onSearchComplete: (c) => {
3110
- Array.isArray(c) && Et("当前只支持一次搜索一条数据");
3109
+ Array.isArray(c) && Pt("当前只支持一次搜索一条数据");
3111
3110
  const o = a.getStatus();
3112
3111
  switch (o) {
3113
3112
  case BMAP_STATUS_SUCCESS: {
@@ -3119,7 +3118,7 @@ class Si extends $r {
3119
3118
  city: u.city,
3120
3119
  country: "",
3121
3120
  // 百度地图只支持中国
3122
- position: C.fromBaidu(u.point, this.map.coordType),
3121
+ position: O.fromBaidu(u.point, this.map.coordType),
3123
3122
  province: u.province,
3124
3123
  title: u.title,
3125
3124
  address: u.address
@@ -3153,7 +3152,7 @@ class zr {
3153
3152
  * @mustCallSuper 子类必须调用一次`super.setSearchListener`, 用来保存{@link onData}和{@link onError}
3154
3153
  * */
3155
3154
  setSearchListener(t, e) {
3156
- return this.onData && B("setSearchListener只能调用一次"), this.onData = t, this.onError = e, Ae;
3155
+ return this.onData && B("setSearchListener只能调用一次"), this.onData = t, this.onError = e, Re;
3157
3156
  }
3158
3157
  }
3159
3158
  class ki extends zr {
@@ -3191,8 +3190,8 @@ class Ai extends zr {
3191
3190
  this.placesService.search(e).then(this.onData, this.onError);
3192
3191
  }
3193
3192
  }
3194
- var Ri = /* @__PURE__ */ ((i) => (i[i.WORLD = 1] = "WORLD", i[i.STATE = 5] = "STATE", i[i.CITY = 10] = "CITY", i[i.STREET = 15] = "STREET", i[i.BUILDING = 20] = "BUILDING", i))(Ri || {});
3195
- class zt {
3193
+ var Di = /* @__PURE__ */ ((i) => (i[i.WORLD = 1] = "WORLD", i[i.STATE = 5] = "STATE", i[i.CITY = 10] = "CITY", i[i.STREET = 15] = "STREET", i[i.BUILDING = 20] = "BUILDING", i))(Di || {});
3194
+ class Nt {
3196
3195
  constructor(t) {
3197
3196
  g(this, "latestInfoWindow");
3198
3197
  /** 使用{@link setEventTargetDelegate}初始化 */
@@ -3239,7 +3238,7 @@ class zt {
3239
3238
  this.innerMap.setZoom(t);
3240
3239
  }
3241
3240
  }
3242
- var Di = function(t) {
3241
+ var Ri = function(t) {
3243
3242
  return $i(t) && !zi(t);
3244
3243
  };
3245
3244
  function $i(i) {
@@ -3256,27 +3255,27 @@ function Zi(i) {
3256
3255
  function Wi(i) {
3257
3256
  return Array.isArray(i) ? [] : {};
3258
3257
  }
3259
- function Re(i, t) {
3258
+ function ze(i, t) {
3260
3259
  return t.clone !== !1 && t.isMergeableObject(i) ? _e(Wi(i), i, t) : i;
3261
3260
  }
3262
3261
  function Hi(i, t, e) {
3263
3262
  return i.concat(t).map(function(r) {
3264
- return Re(r, e);
3263
+ return ze(r, e);
3265
3264
  });
3266
3265
  }
3267
- function ji(i, t) {
3266
+ function Vi(i, t) {
3268
3267
  if (!t.customMerge)
3269
3268
  return _e;
3270
3269
  var e = t.customMerge(i);
3271
3270
  return typeof e == "function" ? e : _e;
3272
3271
  }
3273
- function Vi(i) {
3272
+ function ji(i) {
3274
3273
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(i).filter(function(t) {
3275
3274
  return Object.propertyIsEnumerable.call(i, t);
3276
3275
  }) : [];
3277
3276
  }
3278
3277
  function cr(i) {
3279
- return Object.keys(i).concat(Vi(i));
3278
+ return Object.keys(i).concat(ji(i));
3280
3279
  }
3281
3280
  function Nr(i, t) {
3282
3281
  try {
@@ -3291,15 +3290,15 @@ function Fi(i, t) {
3291
3290
  function Ui(i, t, e) {
3292
3291
  var r = {};
3293
3292
  return e.isMergeableObject(i) && cr(i).forEach(function(s) {
3294
- r[s] = Re(i[s], e);
3293
+ r[s] = ze(i[s], e);
3295
3294
  }), cr(t).forEach(function(s) {
3296
- Fi(i, s) || (Nr(i, s) && e.isMergeableObject(t[s]) ? r[s] = ji(s, e)(i[s], t[s], e) : r[s] = Re(t[s], e));
3295
+ Fi(i, s) || (Nr(i, s) && e.isMergeableObject(t[s]) ? r[s] = Vi(s, e)(i[s], t[s], e) : r[s] = ze(t[s], e));
3297
3296
  }), r;
3298
3297
  }
3299
3298
  function _e(i, t, e) {
3300
- e = e || {}, e.arrayMerge = e.arrayMerge || Hi, e.isMergeableObject = e.isMergeableObject || Di, e.cloneUnlessOtherwiseSpecified = Re;
3299
+ e = e || {}, e.arrayMerge = e.arrayMerge || Hi, e.isMergeableObject = e.isMergeableObject || Ri, e.cloneUnlessOtherwiseSpecified = ze;
3301
3300
  var r = Array.isArray(t), s = Array.isArray(i), n = r === s;
3302
- return n ? r ? e.arrayMerge(i, t, e) : Ui(i, t, e) : Re(t, e);
3301
+ return n ? r ? e.arrayMerge(i, t, e) : Ui(i, t, e) : ze(t, e);
3303
3302
  }
3304
3303
  _e.all = function(t, e) {
3305
3304
  if (!Array.isArray(t))
@@ -3309,7 +3308,7 @@ _e.all = function(t, e) {
3309
3308
  }, {});
3310
3309
  };
3311
3310
  var Yi = _e, qi = Yi;
3312
- const Gr = /* @__PURE__ */ at(qi);
3311
+ const Gr = /* @__PURE__ */ nt(qi);
3313
3312
  /*!
3314
3313
  * isobject <https://github.com/jonschlinkert/isobject>
3315
3314
  *
@@ -3332,7 +3331,7 @@ function Zr(i) {
3332
3331
  var t, e;
3333
3332
  return !(dr(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, dr(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
3334
3333
  }
3335
- var he;
3334
+ var ce;
3336
3335
  ((i) => {
3337
3336
  function t(d, u) {
3338
3337
  return d.reduce((p, v) => (p[u(v)] = v, p), {});
@@ -3387,7 +3386,7 @@ var he;
3387
3386
  v != null && delete v[b];
3388
3387
  }
3389
3388
  i.del = l;
3390
- })(he || (he = {}));
3389
+ })(ce || (ce = {}));
3391
3390
  function ur(i) {
3392
3391
  if (i.length <= 4)
3393
3392
  return i.includes.bind(i);
@@ -3396,13 +3395,13 @@ function ur(i) {
3396
3395
  return t.has.bind(t);
3397
3396
  }
3398
3397
  }
3399
- he.toJsonSafely;
3398
+ ce.toJsonSafely;
3400
3399
  const Xi = ["single", "multi"];
3401
3400
  var ee = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(ee || {}), Ct;
3402
3401
  ((i) => {
3403
3402
  function t(e) {
3404
- he.deleteUndefinedPropertyOnPlainObjectDeeply(e);
3405
- const r = { center: C.ZERO, zoom: 5 };
3403
+ ce.deleteUndefinedPropertyOnPlainObjectDeeply(e);
3404
+ const r = { center: O.ZERO, zoom: 5 };
3406
3405
  return Gr(r, e || {}, {
3407
3406
  isMergeableObject: Zr
3408
3407
  });
@@ -3427,12 +3426,12 @@ class Wr {
3427
3426
  this.map.removeOverlay(this);
3428
3427
  }
3429
3428
  }
3430
- class Nt extends Wr {
3429
+ class Gt extends Wr {
3431
3430
  constructor(t, e, r) {
3432
3431
  super(t, e), this.map = r;
3433
3432
  }
3434
3433
  createDelegate() {
3435
- return new ue(this.innerOverlay, this.map);
3434
+ return new ye(this.innerOverlay, this.map);
3436
3435
  }
3437
3436
  isVisible() {
3438
3437
  return this.innerOverlay.getVisible();
@@ -3441,12 +3440,12 @@ class Nt extends Wr {
3441
3440
  this.innerOverlay.setVisible(t);
3442
3441
  }
3443
3442
  }
3444
- class ct extends Wr {
3443
+ class lt extends Wr {
3445
3444
  constructor(t, e, r) {
3446
3445
  super(t, e), this.map = r;
3447
3446
  }
3448
3447
  createDelegate() {
3449
- return new fe(this.innerOverlay, this.map);
3448
+ return new $e(this.innerOverlay, this.map);
3450
3449
  }
3451
3450
  /** 仅限内部使用; 设为private时, 生成的d.ts文件中, 方法返回值会变成any, 故改成了public */
3452
3451
  get overlay() {
@@ -3463,7 +3462,7 @@ class ct extends Wr {
3463
3462
  return t !== void 0 && (t || this.setVisible(!1)), this;
3464
3463
  }
3465
3464
  }
3466
- const st = class extends ct {
3465
+ const Ae = class Ae extends lt {
3467
3466
  constructor(t, e, r, s) {
3468
3467
  super(t, e, r), this.state = s;
3469
3468
  }
@@ -3477,7 +3476,7 @@ const st = class extends ct {
3477
3476
  this.innerOverlay.setStrokeColor(t);
3478
3477
  }
3479
3478
  setStrokeOpacity(t) {
3480
- this.innerOverlay.setStrokeOpacity(t + st.OPACITY_DELTA);
3479
+ this.innerOverlay.setStrokeOpacity(t + Ae.OPACITY_DELTA);
3481
3480
  }
3482
3481
  setStrokeWeight(t) {
3483
3482
  this.innerOverlay.setStrokeWeight(t);
@@ -3486,18 +3485,18 @@ const st = class extends ct {
3486
3485
  this.innerOverlay.setFillColor(t);
3487
3486
  }
3488
3487
  setFillOpacity(t) {
3489
- this.innerOverlay.setFillOpacity(t + st.OPACITY_DELTA);
3488
+ this.innerOverlay.setFillOpacity(t + Ae.OPACITY_DELTA);
3490
3489
  }
3491
3490
  };
3492
- let z = st;
3493
3491
  /**
3494
3492
  * baidu地图的透明度属性有如下问题:
3495
3493
  * - 在透明度为0时, 无法隐藏掉颜色
3496
3494
  * - 透明度为0.7和0.8时, 在maintain的发布模式下, polyline的线条会不可见 (原因未知, 在tg-map中无法复现)
3497
3495
  * 故统一加个0.001, 规避这些问题...
3498
3496
  */
3499
- g(z, "OPACITY_DELTA", 1e-3);
3500
- class dt extends Nt {
3497
+ g(Ae, "OPACITY_DELTA", 1e-3);
3498
+ let j = Ae;
3499
+ class ht extends Gt {
3501
3500
  isEditable() {
3502
3501
  return this.innerOverlay.getEditable();
3503
3502
  }
@@ -3520,7 +3519,7 @@ class dt extends Nt {
3520
3519
  this.innerOverlay.setOptions({ fillOpacity: t });
3521
3520
  }
3522
3521
  }
3523
- class Gt extends z {
3522
+ class Zt extends j {
3524
3523
  constructor() {
3525
3524
  super(...arguments);
3526
3525
  g(this, "prevCenter");
@@ -3547,17 +3546,17 @@ class Gt extends z {
3547
3546
  enableEditing: !1,
3548
3547
  // options.editable,
3549
3548
  strokeColor: e.strokeColor,
3550
- strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + z.OPACITY_DELTA : void 0,
3549
+ strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + j.OPACITY_DELTA : void 0,
3551
3550
  strokeWeight: e.strokeWeight,
3552
3551
  fillColor: e.fillColor,
3553
- fillOpacity: e.fillOpacity != null ? e.fillOpacity + z.OPACITY_DELTA : void 0
3554
- }), n = new Gt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
3552
+ fillOpacity: e.fillOpacity != null ? e.fillOpacity + j.OPACITY_DELTA : void 0
3553
+ }), n = new Zt(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
3555
3554
  return n.state.editable && setTimeout(() => {
3556
3555
  n.state.editable && s.enableEditing();
3557
3556
  }, 0), n;
3558
3557
  }
3559
3558
  createDelegate() {
3560
- return this.eventHubDelegate = new lt(super.createDelegate(), {
3559
+ return this.eventHubDelegate = new ot(super.createDelegate(), {
3561
3560
  types: ["radius-changed", "center-changed"],
3562
3561
  onListen: (e) => {
3563
3562
  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));
@@ -3573,7 +3572,7 @@ class Gt extends z {
3573
3572
  }, 0));
3574
3573
  }
3575
3574
  getCenter() {
3576
- return C.fromBaidu(this.innerOverlay.getCenter(), this.coordType);
3575
+ return O.fromBaidu(this.innerOverlay.getCenter(), this.coordType);
3577
3576
  }
3578
3577
  setRadius(e) {
3579
3578
  this.isDoingSetRadius = !0, this.innerOverlay.setRadius(e), this.isDoingSetRadius = !1;
@@ -3582,7 +3581,7 @@ class Gt extends z {
3582
3581
  return this.innerOverlay.getRadius();
3583
3582
  }
3584
3583
  }
3585
- class Zt extends dt {
3584
+ class Wt extends ht {
3586
3585
  static create(t) {
3587
3586
  const e = this.coordType, r = new google.maps.Circle({
3588
3587
  center: t.center.toGoogle(e),
@@ -3596,13 +3595,13 @@ class Zt extends dt {
3596
3595
  fillOpacity: t.fillOpacity,
3597
3596
  visible: t.visible
3598
3597
  });
3599
- return new Zt(r, e, this);
3598
+ return new Wt(r, e, this);
3600
3599
  }
3601
3600
  setCenter(t) {
3602
3601
  this.coordType = this.map.coordType, this.innerOverlay.setCenter(t.toGoogle(this.coordType));
3603
3602
  }
3604
3603
  getCenter() {
3605
- return C.fromGoogle(this.innerOverlay.getCenter() ?? le.LATLNG_ZERO, this.coordType);
3604
+ return O.fromGoogle(this.innerOverlay.getCenter() ?? he.LATLNG_ZERO, this.coordType);
3606
3605
  }
3607
3606
  setRadius(t) {
3608
3607
  this.innerOverlay.setRadius(t);
@@ -3620,19 +3619,19 @@ const pr = {
3620
3619
  return i.lat === t.lat && i.lng === t.lng;
3621
3620
  }
3622
3621
  };
3623
- var ae;
3622
+ var le;
3624
3623
  ((i) => {
3625
3624
  i.ZERO = { x: 0, y: 0 };
3626
- })(ae || (ae = {}));
3627
- let ft;
3625
+ })(le || (le = {}));
3626
+ let gt;
3628
3627
  function Ji(i, t, e, r, s, n) {
3629
- return ft || (ft = Qi()), new ft(i, t, e, r, s, n);
3628
+ return gt || (gt = Qi()), new gt(i, t, e, r, s, n);
3630
3629
  }
3631
3630
  function Qi() {
3632
3631
  Hr();
3633
3632
  const i = new BMap.Point(0, 0);
3634
3633
  return class extends BMap.OverlayV3 {
3635
- constructor(r, s = i, n = ae.ZERO, a, c = 654, o = "") {
3634
+ constructor(r, s = i, n = le.ZERO, a, c = 654, o = "") {
3636
3635
  super();
3637
3636
  // 类表达式不能有私有成员, 故改成public
3638
3637
  g(this, "container");
@@ -3697,7 +3696,7 @@ function Qi() {
3697
3696
  }
3698
3697
  };
3699
3698
  }
3700
- class Wt {
3699
+ class Ht {
3701
3700
  constructor(t) {
3702
3701
  this.delegate = t, this.delegate.setTarget(this);
3703
3702
  }
@@ -3708,38 +3707,38 @@ class Wt {
3708
3707
  this.delegate.removeEventListener(t, e);
3709
3708
  }
3710
3709
  }
3711
- class Ht extends Wt {
3710
+ class Vt extends Ht {
3712
3711
  constructor(t, e, r) {
3713
- super(new fe(t, e)), this.inner = t, this.map = e, this.state = r;
3712
+ super(new $e(t, e)), this.inner = t, this.map = e, this.state = r;
3714
3713
  }
3715
3714
  static create(t) {
3716
- const e = t.position || C.ZERO, r = new BMap.InfoWindow(t.content, {
3715
+ const e = t.position || O.ZERO, r = new BMap.InfoWindow(t.content, {
3717
3716
  maxWidth: t.maxWidth,
3718
3717
  offset: t.offset && new BMap.Size(t.offset.x, t.offset.y),
3719
3718
  enableAutoPan: !t.disableAutoPan
3720
3719
  });
3721
- return new Ht(r, this, { position: e });
3720
+ return new Vt(r, this, { position: e });
3722
3721
  }
3723
3722
  isOpen() {
3724
3723
  return this.inner.isOpen();
3725
3724
  }
3726
3725
  open(t) {
3727
- t ? t.innerOverlay.openInfoWindow(this.inner) : this.map.innerMap.openInfoWindow(this.inner, (this.state.position || C.ZERO).toBaidu(this.map.coordType)), this.map.setLatestInfoWindowInternal(this);
3726
+ t ? t.innerOverlay.openInfoWindow(this.inner) : this.map.innerMap.openInfoWindow(this.inner, (this.state.position || O.ZERO).toBaidu(this.map.coordType)), this.map.setLatestInfoWindowInternal(this);
3728
3727
  }
3729
3728
  close() {
3730
3729
  this.inner.isOpen() && this.map.innerMap.closeInfoWindow();
3731
3730
  }
3732
3731
  getPosition() {
3733
3732
  const t = this.inner.getPosition();
3734
- return t && C.fromBaidu(t, this.map.coordType) || this.state.position || C.ZERO;
3733
+ return t && O.fromBaidu(t, this.map.coordType) || this.state.position || O.ZERO;
3735
3734
  }
3736
3735
  setPosition(t) {
3737
3736
  this.state.position = t, this.inner.isOpen() && this.open();
3738
3737
  }
3739
3738
  }
3740
- class jt extends Wt {
3739
+ class jt extends Ht {
3741
3740
  constructor(e, r) {
3742
- super(new ue(e, r));
3741
+ super(new ye(e, r));
3743
3742
  g(this, "eventHub", new Tr());
3744
3743
  g(this, "isOpened", !1);
3745
3744
  this.inner = e, this.map = r, e.addListener("closeclick", () => {
@@ -3750,7 +3749,7 @@ class jt extends Wt {
3750
3749
  });
3751
3750
  }
3752
3751
  static create(e) {
3753
- const r = e.position || C.ZERO, s = new google.maps.InfoWindow({
3752
+ const r = e.position || O.ZERO, s = new google.maps.InfoWindow({
3754
3753
  content: e.content,
3755
3754
  maxWidth: e.maxWidth,
3756
3755
  pixelOffset: e.offset && new google.maps.Size(e.offset.x, e.offset.y),
@@ -3789,13 +3788,13 @@ class jt extends Wt {
3789
3788
  this.isOpened && (this.isOpened = !1, this.inner.close(), this.eventHub.notify({ type: "close", target: this }));
3790
3789
  }
3791
3790
  getPosition() {
3792
- return C.fromGoogle(this.inner.getPosition() ?? le.LATLNG_ZERO, this.map.coordType);
3791
+ return O.fromGoogle(this.inner.getPosition() ?? he.LATLNG_ZERO, this.map.coordType);
3793
3792
  }
3794
3793
  setPosition(e) {
3795
3794
  this.inner.setPosition(e.toGoogle(this.map.coordType));
3796
3795
  }
3797
3796
  }
3798
- class Vt extends ct {
3797
+ class Ft extends lt {
3799
3798
  constructor(t, e, r) {
3800
3799
  super(t, e, r), this.baiduMap = r;
3801
3800
  }
@@ -3809,7 +3808,7 @@ class Vt extends ct {
3809
3808
  t.maxWidth,
3810
3809
  t.borderClass
3811
3810
  );
3812
- return new Vt(r, e, this);
3811
+ return new Ft(r, e, this);
3813
3812
  }
3814
3813
  open(t) {
3815
3814
  this.innerOverlay.open(this.baiduMap.innerMap, t == null ? void 0 : t.innerOverlay);
@@ -3818,7 +3817,7 @@ class Vt extends ct {
3818
3817
  this.innerOverlay.close();
3819
3818
  }
3820
3819
  getPosition() {
3821
- return C.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
3820
+ return O.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
3822
3821
  }
3823
3822
  setPosition(t) {
3824
3823
  this.coordType = this.map.coordType, this.innerOverlay.setPosition(t.toBaidu(this.coordType));
@@ -3830,9 +3829,9 @@ class Vt extends ct {
3830
3829
  this.innerOverlay.setZIndex(t);
3831
3830
  }
3832
3831
  }
3833
- class Ft extends Wt {
3832
+ class Ut extends Ht {
3834
3833
  constructor(t, e, r) {
3835
- super(new ue(t, r)), this.inner = t, this.coordType = e, this.map = r;
3834
+ super(new ye(t, r)), this.inner = t, this.coordType = e, this.map = r;
3836
3835
  }
3837
3836
  static create(t) {
3838
3837
  var n;
@@ -3847,7 +3846,7 @@ class Ft extends Wt {
3847
3846
  var c;
3848
3847
  const a = (c = t.content.parentElement) == null ? void 0 : c.parentElement;
3849
3848
  a && a.className.includes("gm-style-iw-c") && !a.className.includes(s) && (a.className += ` ${s}`);
3850
- }), new Ft(r, e, this);
3849
+ }), new Ut(r, e, this);
3851
3850
  }
3852
3851
  open(t) {
3853
3852
  this.inner.open(this.map.innerMap, t == null ? void 0 : t.innerOverlay);
@@ -3856,7 +3855,7 @@ class Ft extends Wt {
3856
3855
  this.inner.close();
3857
3856
  }
3858
3857
  getPosition() {
3859
- return C.fromGoogle(this.inner.getPosition() ?? le.LATLNG_ZERO, this.coordType);
3858
+ return O.fromGoogle(this.inner.getPosition() ?? he.LATLNG_ZERO, this.coordType);
3860
3859
  }
3861
3860
  setPosition(t) {
3862
3861
  this.coordType = this.map.coordType, this.inner.setPosition(t.toGoogle(this.coordType));
@@ -3904,7 +3903,7 @@ const es = {
3904
3903
  return t && s.endsWith(t) ? s.slice(0, -t.length) : s;
3905
3904
  }
3906
3905
  };
3907
- var De = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overlayMouseTarget = "overlayMouseTarget", i.float = "float", i))(De || {}), $e;
3906
+ var Ne = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overlayMouseTarget = "overlayMouseTarget", i.float = "float", i))(Ne || {}), Ge;
3908
3907
  ((i) => {
3909
3908
  function t(r, s) {
3910
3909
  switch (r) {
@@ -3917,7 +3916,7 @@ var De = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
3917
3916
  case "map":
3918
3917
  return s.mapPane;
3919
3918
  default:
3920
- _t(r);
3919
+ vt(r);
3921
3920
  }
3922
3921
  }
3923
3922
  i.toGoogle = t;
@@ -3932,11 +3931,11 @@ var De = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
3932
3931
  case "map":
3933
3932
  return s.mapPane;
3934
3933
  default:
3935
- _t(r);
3934
+ vt(r);
3936
3935
  }
3937
3936
  }
3938
3937
  i.toBaidu = e;
3939
- })($e || ($e = {}));
3938
+ })(Ge || (Ge = {}));
3940
3939
  class ts {
3941
3940
  constructor(t, e) {
3942
3941
  g(this, "baidu");
@@ -3963,7 +3962,7 @@ class ts {
3963
3962
  initialize(n) {
3964
3963
  var o;
3965
3964
  const a = t.create(), c = n.getPanes();
3966
- return (o = $e.toBaidu(t.mapPane, c)) == null || o.appendChild(a), a;
3965
+ return (o = Ge.toBaidu(t.mapPane, c)) == null || o.appendChild(a), a;
3967
3966
  }
3968
3967
  draw() {
3969
3968
  t.draw();
@@ -3976,7 +3975,7 @@ class ts {
3976
3975
  return r.pointToOverlayPixel(s.toBaidu(t.map.coordType));
3977
3976
  },
3978
3977
  fromOverlayPointToLatLng(s) {
3979
- return C.fromBaidu(r.overlayPixelToPoint(new BMap.Pixel(s.x, s.y)), t.map.coordType);
3978
+ return O.fromBaidu(r.overlayPixelToPoint(new BMap.Pixel(s.x, s.y)), t.map.coordType);
3980
3979
  }
3981
3980
  };
3982
3981
  }
@@ -3988,7 +3987,7 @@ class ts {
3988
3987
  class e extends google.maps.OverlayView {
3989
3988
  onAdd() {
3990
3989
  const s = t.create(), n = this.getPanes() ?? B("onAdd回调中一定会有panes");
3991
- $e.toGoogle(t.mapPane, n).appendChild(s);
3990
+ Ge.toGoogle(t.mapPane, n).appendChild(s);
3992
3991
  }
3993
3992
  draw() {
3994
3993
  t.draw();
@@ -4000,23 +3999,23 @@ class ts {
4000
3999
  }
4001
4000
  this.google = new e(), this.projection = {
4002
4001
  fromLatLngToOverlayPoint(r) {
4003
- return t.google.getProjection().fromLatLngToDivPixel(r.toGoogle(t.map.coordType)) ?? ae.ZERO;
4002
+ return t.google.getProjection().fromLatLngToDivPixel(r.toGoogle(t.map.coordType)) ?? le.ZERO;
4004
4003
  },
4005
4004
  fromOverlayPointToLatLng(r) {
4006
- return C.fromGoogle(t.google.getProjection().fromDivPixelToLatLng(new google.maps.Point(r.x, r.y)) ?? le.LATLNG_ZERO, t.map.coordType);
4005
+ return O.fromGoogle(t.google.getProjection().fromDivPixelToLatLng(new google.maps.Point(r.x, r.y)) ?? he.LATLNG_ZERO, t.map.coordType);
4007
4006
  }
4008
4007
  };
4009
4008
  }
4010
4009
  return this.google;
4011
4010
  }
4012
4011
  }
4013
- let vt;
4012
+ let mt;
4014
4013
  function rs(i, t, e, r, s) {
4015
- return vt || (vt = is()), new vt(i, t, e, r, s);
4014
+ return mt || (mt = is()), new mt(i, t, e, r, s);
4016
4015
  }
4017
4016
  function is() {
4018
4017
  return class extends google.maps.OverlayView {
4019
- constructor(e, r, s, n = De.overlayMouseTarget, a) {
4018
+ constructor(e, r, s, n = Ne.overlayMouseTarget, a) {
4020
4019
  super();
4021
4020
  g(this, "container");
4022
4021
  this.position = r, this.offset = s, this._mapPane = n, this.container = document.createElement("div"), this.container.className = "label-container", this.container.style.position = "absolute", a && this.setZIndex(a), this.container.addEventListener("click", () => {
@@ -4032,7 +4031,7 @@ function is() {
4032
4031
  }
4033
4032
  onAdd() {
4034
4033
  const e = this.getPanes() ?? B("onAdd回调中一定能够获取panes");
4035
- $e.toGoogle(this._mapPane, e).appendChild(this.container);
4034
+ Ge.toGoogle(this._mapPane, e).appendChild(this.container);
4036
4035
  }
4037
4036
  draw() {
4038
4037
  var e, r;
@@ -4083,7 +4082,7 @@ var Te;
4083
4082
  }
4084
4083
  i.toElement = e;
4085
4084
  })(Te || (Te = {}));
4086
- class Ut extends ct {
4085
+ class Yt extends lt {
4087
4086
  constructor(e, r, s, n) {
4088
4087
  super(e, r, s);
4089
4088
  g(this, "icon");
@@ -4103,7 +4102,7 @@ class Ut extends ct {
4103
4102
  padding: "0px",
4104
4103
  backgroundColor: "unset"
4105
4104
  });
4106
- const n = new Ut(s, r, this, e.content);
4105
+ const n = new Yt(s, r, this, e.content);
4107
4106
  return s.__label__ = n, n;
4108
4107
  }
4109
4108
  setContentInternal(e, r = !1) {
@@ -4120,7 +4119,7 @@ class Ut extends ct {
4120
4119
  this.innerOverlay.setZIndex(e);
4121
4120
  }
4122
4121
  getPosition() {
4123
- return C.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
4122
+ return O.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
4124
4123
  }
4125
4124
  setPosition(e) {
4126
4125
  this.coordType = this.map.coordType, this.innerOverlay.setPosition(e.toBaidu(this.coordType));
@@ -4183,7 +4182,7 @@ class Ut extends ct {
4183
4182
  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;
4184
4183
  }
4185
4184
  }
4186
- class Yt extends Nt {
4185
+ class qt extends Gt {
4187
4186
  static create(t) {
4188
4187
  var s;
4189
4188
  const e = this.coordType, r = rs(
@@ -4193,7 +4192,7 @@ class Yt extends Nt {
4193
4192
  t.mapPane,
4194
4193
  t.zIndex
4195
4194
  );
4196
- return new Yt(r, e, this);
4195
+ return new qt(r, e, this);
4197
4196
  }
4198
4197
  setZIndex(t) {
4199
4198
  this.innerOverlay.setZIndex(t);
@@ -4203,13 +4202,13 @@ class Yt extends Nt {
4203
4202
  }
4204
4203
  getPosition() {
4205
4204
  const t = this.innerOverlay.getPosition();
4206
- return t ? C.fromGoogle(t, this.coordType) : C.ZERO;
4205
+ return t ? O.fromGoogle(t, this.coordType) : O.ZERO;
4207
4206
  }
4208
4207
  setPosition(t) {
4209
4208
  this.coordType = this.map.coordType, this.innerOverlay.setPosition(t.toGoogle(this.coordType));
4210
4209
  }
4211
4210
  getOffset() {
4212
- return this.innerOverlay.getOffset() ?? ae.ZERO;
4211
+ return this.innerOverlay.getOffset() ?? le.ZERO;
4213
4212
  }
4214
4213
  setOffset(t) {
4215
4214
  this.innerOverlay.setOffset(t);
@@ -4276,7 +4275,7 @@ var Me;
4276
4275
  }
4277
4276
  i.toBaidu = e;
4278
4277
  })(Me || (Me = {}));
4279
- const vn = {
4278
+ const _n = {
4280
4279
  CIRCLE: { baidu: () => BMap_Symbol_SHAPE_CIRCLE, google: () => google.maps.SymbolPath.CIRCLE },
4281
4280
  BACKWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.BACKWARD_CLOSED_ARROW },
4282
4281
  BACKWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.BACKWARD_OPEN_ARROW },
@@ -4304,7 +4303,7 @@ var et;
4304
4303
  }
4305
4304
  i.toBaidu = e;
4306
4305
  })(et || (et = {}));
4307
- class ze extends ct {
4306
+ class Ze extends lt {
4308
4307
  constructor(t, e, r, s) {
4309
4308
  super(t, e, r), this.state = s;
4310
4309
  }
@@ -4320,10 +4319,10 @@ class ze extends ct {
4320
4319
  }, n = new BMap.Marker(t.position.toBaidu(e, t.normalizePositionForBaidu), s);
4321
4320
  n.__create_by_tg__ = !0, t.zIndex !== void 0 && n.setZIndex(t.zIndex);
4322
4321
  const a = t.clickable === void 0 ? !0 : t.clickable, c = !!t.draggable;
4323
- return new ze(n, e, this, { clickable: a, draggable: c, zIndex: t.zIndex, normalize: t.normalizePositionForBaidu }).visibleOptionInternal(t.visible);
4322
+ return new Ze(n, e, this, { clickable: a, draggable: c, zIndex: t.zIndex, normalize: t.normalizePositionForBaidu }).visibleOptionInternal(t.visible);
4324
4323
  }
4325
4324
  getPosition() {
4326
- return C.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
4325
+ return O.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
4327
4326
  }
4328
4327
  setPosition(t) {
4329
4328
  var e;
@@ -4371,7 +4370,7 @@ class ze extends ct {
4371
4370
  return (t = this.innerOverlay.getLabel()) == null ? void 0 : t.__label__;
4372
4371
  }
4373
4372
  }
4374
- class qt extends Nt {
4373
+ class Kt extends Gt {
4375
4374
  constructor() {
4376
4375
  super(...arguments);
4377
4376
  g(this, "label");
@@ -4394,10 +4393,10 @@ class qt extends Nt {
4394
4393
  // InfoWindow相对marker的position的偏移量, 若不指定, 则偏移到marker的icon的上部中央
4395
4394
  anchorPoint: new google.maps.Point(0, 0)
4396
4395
  };
4397
- return new qt(new google.maps.Marker(n), r, this);
4396
+ return new Kt(new google.maps.Marker(n), r, this);
4398
4397
  }
4399
4398
  getPosition() {
4400
- return C.fromGoogle(this.innerOverlay.getPosition(), this.coordType);
4399
+ return O.fromGoogle(this.innerOverlay.getPosition(), this.coordType);
4401
4400
  }
4402
4401
  setPosition(e) {
4403
4402
  this.coordType = this.map.coordType, this.innerOverlay.setPosition(e.toGoogle(this.coordType));
@@ -4447,7 +4446,7 @@ class qt extends Nt {
4447
4446
  this.label = void 0, this.labelPositionListener = void 0, this.labelVisibleListener = void 0, this.labelMapChangedListener = void 0;
4448
4447
  }
4449
4448
  }
4450
- class Kt extends z {
4449
+ class Xt extends j {
4451
4450
  constructor() {
4452
4451
  super(...arguments);
4453
4452
  g(this, "eventHubDelegate");
@@ -4472,7 +4471,7 @@ class Kt extends z {
4472
4471
  this.isDoingSetPath = !0, this.innerOverlay.setPath(e), this.isDoingSetPath = !1;
4473
4472
  }
4474
4473
  createDelegate() {
4475
- return this.eventHubDelegate = new lt(super.createDelegate(), {
4474
+ return this.eventHubDelegate = new ot(super.createDelegate(), {
4476
4475
  types: [this.pathEditedEventType],
4477
4476
  onListen: () => {
4478
4477
  this.prevPath = this.innerOverlay.getPath(), this.innerOverlay.addEventListener("lineupdate", this.onLineUpdate);
@@ -4483,7 +4482,7 @@ class Kt extends z {
4483
4482
  });
4484
4483
  }
4485
4484
  }
4486
- class Xt extends Kt {
4485
+ class Jt extends Xt {
4487
4486
  constructor() {
4488
4487
  super(...arguments);
4489
4488
  g(this, "pathEditedEventType", "path-edited");
@@ -4494,17 +4493,17 @@ class Xt extends Kt {
4494
4493
  enableClicking: e.clickable,
4495
4494
  enableEditing: e.editable,
4496
4495
  strokeColor: e.strokeColor,
4497
- strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + z.OPACITY_DELTA : void 0,
4496
+ strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + j.OPACITY_DELTA : void 0,
4498
4497
  strokeWeight: e.strokeWeight,
4499
4498
  icons: (n = e.icons) == null ? void 0 : n.map(et.toBaidu)
4500
4499
  });
4501
- return new Xt(s, r, this, {
4500
+ return new Jt(s, r, this, {
4502
4501
  editable: !!e.editable,
4503
4502
  symbolIcons: (a = e.icons) == null ? void 0 : a.map((c) => c.icon)
4504
4503
  }).visibleOptionInternal(e.visible);
4505
4504
  }
4506
4505
  getPath() {
4507
- return this.innerOverlay.getPath().map((e) => C.fromBaidu(e, this.coordType));
4506
+ return this.innerOverlay.getPath().map((e) => O.fromBaidu(e, this.coordType));
4508
4507
  }
4509
4508
  setPath(e) {
4510
4509
  this.coordType = this.map.coordType, this.setPathInternal(e.map((r) => r.toBaidu(this.coordType)));
@@ -4526,7 +4525,7 @@ class Xt extends Kt {
4526
4525
  }).forEach((s) => this.map.innerMap.removeOverlay(s));
4527
4526
  }
4528
4527
  }
4529
- class Jt extends dt {
4528
+ class Qt extends ht {
4530
4529
  constructor() {
4531
4530
  super(...arguments);
4532
4531
  g(this, "pathChangedListeners");
@@ -4544,21 +4543,21 @@ class Jt extends dt {
4544
4543
  visible: e.visible,
4545
4544
  icons: (n = e.icons) == null ? void 0 : n.map(et.toGoogle)
4546
4545
  });
4547
- return new Jt(s, r, this);
4546
+ return new Qt(s, r, this);
4548
4547
  }
4549
4548
  setupPathChangedListeners() {
4550
4549
  const e = () => {
4551
4550
  var s;
4552
4551
  return (s = this.eventHubDelegate) == null ? void 0 : s.notify({ type: "path-edited", target: this });
4553
4552
  }, r = this.innerOverlay.getPath();
4554
- this.pathChangedListeners = ye.listenChanged(r, e);
4553
+ this.pathChangedListeners = ve.listenChanged(r, e);
4555
4554
  }
4556
4555
  clearPathChangedListeners() {
4557
4556
  var e;
4558
4557
  (e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
4559
4558
  }
4560
4559
  createDelegate() {
4561
- return this.eventHubDelegate = new lt(super.createDelegate(), {
4560
+ return this.eventHubDelegate = new ot(super.createDelegate(), {
4562
4561
  types: ["path-edited"],
4563
4562
  onListen: () => this.setupPathChangedListeners(),
4564
4563
  onCancel: () => this.clearPathChangedListeners()
@@ -4567,7 +4566,7 @@ class Jt extends dt {
4567
4566
  getPath() {
4568
4567
  const e = [];
4569
4568
  return this.innerOverlay.getPath().forEach((r) => {
4570
- e.push(C.fromGoogle(r, this.coordType));
4569
+ e.push(O.fromGoogle(r, this.coordType));
4571
4570
  }), e;
4572
4571
  }
4573
4572
  setPath(e) {
@@ -4575,7 +4574,7 @@ class Jt extends dt {
4575
4574
  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();
4576
4575
  }
4577
4576
  }
4578
- class Qt extends Kt {
4577
+ class er extends Xt {
4579
4578
  constructor() {
4580
4579
  super(...arguments);
4581
4580
  g(this, "pathEditedEventType", "paths-edited");
@@ -4587,21 +4586,21 @@ class Qt extends Kt {
4587
4586
  enableClicking: e.clickable,
4588
4587
  enableEditing: e.editable,
4589
4588
  strokeColor: e.strokeColor,
4590
- strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + z.OPACITY_DELTA : void 0,
4589
+ strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + j.OPACITY_DELTA : void 0,
4591
4590
  strokeWeight: e.strokeWeight,
4592
4591
  fillColor: e.fillColor,
4593
- fillOpacity: e.fillOpacity != null ? e.fillOpacity + z.OPACITY_DELTA : void 0
4592
+ fillOpacity: e.fillOpacity != null ? e.fillOpacity + j.OPACITY_DELTA : void 0
4594
4593
  });
4595
- return new Qt(n, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
4594
+ return new er(n, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
4596
4595
  }
4597
4596
  getPaths() {
4598
- return [this.innerOverlay.getPath().map((e) => C.fromBaidu(e, this.coordType))];
4597
+ return [this.innerOverlay.getPath().map((e) => O.fromBaidu(e, this.coordType))];
4599
4598
  }
4600
4599
  setPaths(e) {
4601
4600
  e.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]"), this.coordType = this.map.coordType, this.setPathInternal((e[0] || []).map((r) => r.toBaidu(this.coordType)));
4602
4601
  }
4603
4602
  }
4604
- class er extends dt {
4603
+ class tr extends ht {
4605
4604
  constructor() {
4606
4605
  super(...arguments);
4607
4606
  g(this, "pathChangedListeners");
@@ -4619,7 +4618,7 @@ class er extends dt {
4619
4618
  fillOpacity: e.fillOpacity,
4620
4619
  visible: e.visible
4621
4620
  });
4622
- return new er(s, r, this);
4621
+ return new tr(s, r, this);
4623
4622
  }
4624
4623
  setupPathChangedListeners() {
4625
4624
  const e = () => {
@@ -4627,7 +4626,7 @@ class er extends dt {
4627
4626
  return (s = this.eventHubDelegate) == null ? void 0 : s.notify({ type: "paths-edited", target: this });
4628
4627
  }, r = this.innerOverlay.getPaths();
4629
4628
  this.pathChangedListeners = [], r.forEach((s) => {
4630
- this.pathChangedListeners.push(...ye.listenChanged(s, e));
4629
+ this.pathChangedListeners.push(...ve.listenChanged(s, e));
4631
4630
  });
4632
4631
  }
4633
4632
  clearPathChangedListeners() {
@@ -4635,7 +4634,7 @@ class er extends dt {
4635
4634
  (e = this.pathChangedListeners) == null || e.forEach((r) => r.remove()), this.pathChangedListeners = void 0;
4636
4635
  }
4637
4636
  createDelegate() {
4638
- return this.eventHubDelegate = new lt(super.createDelegate(), {
4637
+ return this.eventHubDelegate = new ot(super.createDelegate(), {
4639
4638
  types: ["paths-edited"],
4640
4639
  onListen: () => this.setupPathChangedListeners(),
4641
4640
  onCancel: () => this.clearPathChangedListeners()
@@ -4646,7 +4645,7 @@ class er extends dt {
4646
4645
  return e.forEach((s) => {
4647
4646
  const n = [];
4648
4647
  r.push(n), s.forEach((a) => {
4649
- n.push(C.fromGoogle(a, this.coordType));
4648
+ n.push(O.fromGoogle(a, this.coordType));
4650
4649
  });
4651
4650
  }), r;
4652
4651
  }
@@ -4655,7 +4654,7 @@ class er extends dt {
4655
4654
  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();
4656
4655
  }
4657
4656
  }
4658
- class tr extends Kt {
4657
+ class rr extends Xt {
4659
4658
  constructor(e, r, s, n) {
4660
4659
  super(e, r, s, n);
4661
4660
  g(this, "pathEditedEventType", "bounds-changed");
@@ -4687,7 +4686,7 @@ class tr extends Kt {
4687
4686
  }
4688
4687
  } else
4689
4688
  a < r.length;
4690
- const c = V.fromArray(n.map((o) => C.fromBaidu(o, this.coordType)));
4689
+ const c = X.fromArray(n.map((o) => O.fromBaidu(o, this.coordType)));
4691
4690
  c && (this.isDoingUpdateRectangle = !0, this.innerOverlay.setPath(c.toRectArray().map((o) => o.toBaidu(this.coordType))), this.isDoingUpdateRectangle = !1);
4692
4691
  }, 0);
4693
4692
  });
@@ -4698,15 +4697,15 @@ class tr extends Kt {
4698
4697
  enableClicking: e.clickable,
4699
4698
  enableEditing: e.editable,
4700
4699
  strokeColor: e.strokeColor,
4701
- strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + z.OPACITY_DELTA : void 0,
4700
+ strokeOpacity: e.strokeOpacity != null ? e.strokeOpacity + j.OPACITY_DELTA : void 0,
4702
4701
  strokeWeight: e.strokeWeight,
4703
4702
  fillColor: e.fillColor,
4704
- fillOpacity: e.fillOpacity != null ? e.fillOpacity + z.OPACITY_DELTA : void 0
4703
+ fillOpacity: e.fillOpacity != null ? e.fillOpacity + j.OPACITY_DELTA : void 0
4705
4704
  });
4706
- return new tr(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
4705
+ return new rr(s, r, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
4707
4706
  }
4708
4707
  getBounds() {
4709
- return V.fromBaidu(this.innerOverlay.getBounds(), this.coordType);
4708
+ return X.fromBaidu(this.innerOverlay.getBounds(), this.coordType);
4710
4709
  }
4711
4710
  setBounds(e) {
4712
4711
  const r = e.toRectArray();
@@ -4715,7 +4714,7 @@ class tr extends Kt {
4715
4714
  }) : this.setPathInternal(r.map((s) => s.toBaidu(this.coordType)));
4716
4715
  }
4717
4716
  }
4718
- class rr extends dt {
4717
+ class ir extends ht {
4719
4718
  static create(t) {
4720
4719
  const e = this.coordType, r = new google.maps.Rectangle({
4721
4720
  bounds: t.bounds.toGoogle(e),
@@ -4728,43 +4727,43 @@ class rr extends dt {
4728
4727
  fillOpacity: t.fillOpacity,
4729
4728
  visible: t.visible
4730
4729
  });
4731
- return new rr(r, e, this);
4730
+ return new ir(r, e, this);
4732
4731
  }
4733
4732
  getBounds() {
4734
- return V.fromGoogle(this.innerOverlay.getBounds() ?? le.BOUNDS_ZERO, this.coordType);
4733
+ return X.fromGoogle(this.innerOverlay.getBounds() ?? he.BOUNDS_ZERO, this.coordType);
4735
4734
  }
4736
4735
  setBounds(t) {
4737
4736
  const e = t.toGoogle(this.coordType);
4738
4737
  e.equals(this.innerOverlay.getBounds()) || this.innerOverlay.setBounds(e);
4739
4738
  }
4740
4739
  }
4741
- const ce = 1;
4742
- class ss extends zt {
4740
+ const de = 1;
4741
+ class ss extends Nt {
4743
4742
  constructor(e, r) {
4744
4743
  var s;
4745
4744
  super(e);
4746
4745
  g(this, "buildInMapTypeId2BIMT");
4747
4746
  g(this, "baiduMapType2BIMT");
4748
4747
  g(this, "map");
4749
- g(this, "createLabel", Ut.create);
4750
- g(this, "createCircle", Gt.create);
4751
- g(this, "createPolygon", Qt.create);
4752
- g(this, "createPolyline", Xt.create);
4753
- g(this, "createRectangle", tr.create);
4754
- g(this, "createInfoWindow", Ht.create);
4755
- g(this, "createInfoBox", Vt.create);
4756
- g(this, "createMarker", ze.create);
4757
- g(this, "createMapTypeControl", Bt.create);
4748
+ g(this, "createLabel", Yt.create);
4749
+ g(this, "createCircle", Zt.create);
4750
+ g(this, "createPolygon", er.create);
4751
+ g(this, "createPolyline", Jt.create);
4752
+ g(this, "createRectangle", rr.create);
4753
+ g(this, "createInfoWindow", Vt.create);
4754
+ g(this, "createInfoBox", Ft.create);
4755
+ g(this, "createMarker", Ze.create);
4756
+ g(this, "createMapTypeControl", It.create);
4758
4757
  g(this, "createZoomControl", Rt.create);
4759
- g(this, "createStreetViewControl", kt.create);
4760
- g(this, "createScaleControl", It.create);
4761
- this.buildInMapTypeId2BIMT = F.BUILD_IN_MAP_TYPES.getValueMap(j.prototype.getId), this.baiduMapType2BIMT = F.BUILD_IN_MAP_TYPES.getValueMap(j.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
4762
- minZoom: r.minZoom && r.minZoom + ce,
4763
- maxZoom: r.maxZoom && r.maxZoom + ce,
4758
+ g(this, "createStreetViewControl", At.create);
4759
+ g(this, "createScaleControl", St.create);
4760
+ this.buildInMapTypeId2BIMT = V.BUILD_IN_MAP_TYPES.getValueMap(W.prototype.getId), this.baiduMapType2BIMT = V.BUILD_IN_MAP_TYPES.getValueMap(W.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
4761
+ minZoom: r.minZoom && r.minZoom + de,
4762
+ maxZoom: r.maxZoom && r.maxZoom + de,
4764
4763
  mapType: r.buildInMapTypeId && ((s = this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId)) == null ? void 0 : s.asBaiduMapType()),
4765
4764
  enableMapClick: !1
4766
4765
  // 关闭底图点击功能
4767
- }), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom + ce), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyleV2(r.mapStyle.baidu), this.setEventTargetDelegate(new fe(this.map, this)), this.map.addEventListener("addoverlay", (n) => {
4766
+ }), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom + de), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyleV2(r.mapStyle.baidu), this.setEventTargetDelegate(new $e(this.map, this)), this.map.addEventListener("addoverlay", (n) => {
4768
4767
  const a = n.target.__info_box__;
4769
4768
  a && (console.debug("add:info-box", a), this.map.addOverlay(a));
4770
4769
  }), this.map.addEventListener("removeoverlay", (n) => {
@@ -4773,7 +4772,7 @@ class ss extends zt {
4773
4772
  });
4774
4773
  }
4775
4774
  setGestureHandling(e = ee.auto) {
4776
- switch (e === ee.auto && (e = this.element.parentElement && Mt.isScrollable(this.element.parentElement) ? ee.cooperative : ee.greedy), e) {
4775
+ switch (e === ee.auto && (e = this.element.parentElement && bt.isScrollable(this.element.parentElement) ? ee.cooperative : ee.greedy), e) {
4777
4776
  case ee.cooperative:
4778
4777
  this.map.disableScrollWheelZoom(), this.map.enableDragging(), this.map.enableDoubleClickZoom();
4779
4778
  break;
@@ -4806,7 +4805,7 @@ class ss extends zt {
4806
4805
  super.removeEventListener(e, r);
4807
4806
  }
4808
4807
  fromContainerPointToLatLng(e) {
4809
- return C.fromBaidu(this.innerMap.pixelToPoint(new BMap.Pixel(e.x, e.y)), this.coordType);
4808
+ return O.fromBaidu(this.innerMap.pixelToPoint(new BMap.Pixel(e.x, e.y)), this.coordType);
4810
4809
  }
4811
4810
  fromLatLngToContainerPoint(e) {
4812
4811
  return this.innerMap.pointToPixel(e.toBaidu(this.coordType));
@@ -4821,22 +4820,22 @@ class ss extends zt {
4821
4820
  e ? this.map.enableDoubleClickZoom() : this.map.disableDoubleClickZoom();
4822
4821
  }
4823
4822
  getCenter() {
4824
- return C.fromBaidu(this.map.getCenter(), this.coordType);
4823
+ return O.fromBaidu(this.map.getCenter(), this.coordType);
4825
4824
  }
4826
4825
  setCenter(e) {
4827
4826
  this.map.setCenter(e.toBaidu(this.coordType));
4828
4827
  }
4829
4828
  getZoom() {
4830
- return super.getZoom() - ce;
4829
+ return super.getZoom() - de;
4831
4830
  }
4832
4831
  setZoom(e) {
4833
- return super.setZoom(e + ce);
4832
+ return super.setZoom(e + de);
4834
4833
  }
4835
4834
  setMinZoom(e) {
4836
- this.map.setMinZoom(e + ce);
4835
+ this.map.setMinZoom(e + de);
4837
4836
  }
4838
4837
  setMaxZoom(e) {
4839
- this.map.setMaxZoom(e + ce);
4838
+ this.map.setMaxZoom(e + de);
4840
4839
  }
4841
4840
  setMapStyle(e) {
4842
4841
  this.map.setMapStyleV2((e == null ? void 0 : e.baidu) ?? { styleJson: [] });
@@ -4872,7 +4871,7 @@ class ss extends zt {
4872
4871
  });
4873
4872
  }
4874
4873
  getBounds() {
4875
- return V.fromBaidu(this.map.getBounds(), this.coordType);
4874
+ return X.fromBaidu(this.map.getBounds(), this.coordType);
4876
4875
  }
4877
4876
  addElementOverlay(e) {
4878
4877
  this.map.addOverlay(e.asBaidu());
@@ -4891,7 +4890,7 @@ class ss extends zt {
4891
4890
  const r = class extends BMap.Control {
4892
4891
  constructor() {
4893
4892
  super(...arguments);
4894
- g(this, "defaultAnchor", Y.getBaidu().toValue(e.position));
4893
+ g(this, "defaultAnchor", U.getBaidu().toValue(e.position));
4895
4894
  g(this, "defaultOffset", new BMap.Size(0, 0));
4896
4895
  }
4897
4896
  initialize(n) {
@@ -4906,10 +4905,10 @@ class ss extends zt {
4906
4905
  e.inner && (me(e.inner instanceof BMap.Control, `control.inner(${e.inner})需要是BMap.Control`), this.map.removeControl(e.inner));
4907
4906
  }
4908
4907
  createMarkerClusterer(e) {
4909
- return new Pi(this, e);
4908
+ return new Li(this, e);
4910
4909
  }
4911
4910
  createHeatmap(e) {
4912
- return new Oi(this, e);
4911
+ return new Ci(this, e);
4913
4912
  }
4914
4913
  createAutocomplete(e) {
4915
4914
  return new bi(this, e);
@@ -4921,32 +4920,32 @@ class ss extends zt {
4921
4920
  return new Si(this, e);
4922
4921
  }
4923
4922
  createMapUrls(e) {
4924
- return new Ue(e);
4923
+ return new Ot(e);
4925
4924
  }
4926
4925
  }
4927
- class ns extends zt {
4926
+ class ns extends Nt {
4928
4927
  constructor(e, r) {
4929
4928
  var n, a;
4930
4929
  super(e);
4931
4930
  g(this, "buildInMapTypeId2BIMT");
4932
4931
  g(this, "googleMapTypeId2BIMT");
4933
4932
  g(this, "map");
4934
- g(this, "createLabel", Yt.create);
4935
- g(this, "createCircle", Zt.create);
4936
- g(this, "createPolygon", er.create);
4937
- g(this, "createPolyline", Jt.create);
4938
- g(this, "createRectangle", rr.create);
4933
+ g(this, "createLabel", qt.create);
4934
+ g(this, "createCircle", Wt.create);
4935
+ g(this, "createPolygon", tr.create);
4936
+ g(this, "createPolyline", Qt.create);
4937
+ g(this, "createRectangle", ir.create);
4939
4938
  g(this, "createInfoWindow", jt.create);
4940
- g(this, "createInfoBox", Ft.create);
4941
- g(this, "createMarker", qt.create);
4942
- g(this, "createMapTypeControl", Ve.create);
4943
- g(this, "createZoomControl", Dt.create);
4944
- g(this, "createStreetViewControl", At.create);
4945
- g(this, "createScaleControl", St.create);
4946
- this.mapOptions = r, this.buildInMapTypeId2BIMT = F.BUILD_IN_MAP_TYPES.getValueMap(j.prototype.getId), this.googleMapTypeId2BIMT = F.BUILD_IN_MAP_TYPES.getValueMap(j.prototype.getGoogleMapTypeId);
4939
+ g(this, "createInfoBox", Ut.create);
4940
+ g(this, "createMarker", Kt.create);
4941
+ g(this, "createMapTypeControl", Tt.create);
4942
+ g(this, "createZoomControl", $t.create);
4943
+ g(this, "createStreetViewControl", Dt.create);
4944
+ g(this, "createScaleControl", kt.create);
4945
+ this.mapOptions = r, this.buildInMapTypeId2BIMT = V.BUILD_IN_MAP_TYPES.getValueMap(W.prototype.getId), this.googleMapTypeId2BIMT = V.BUILD_IN_MAP_TYPES.getValueMap(W.prototype.getGoogleMapTypeId);
4947
4946
  const s = r.buildInMapTypeId && this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId);
4948
4947
  this.map = new google.maps.Map(e, {
4949
- center: r.center.toGoogle((s ?? F.NORMAL).getGoogleCoordType()),
4948
+ center: r.center.toGoogle((s ?? V.NORMAL).getGoogleCoordType()),
4950
4949
  zoom: r.zoom,
4951
4950
  disableDefaultUI: !0,
4952
4951
  gestureHandling: r.gestureHandling,
@@ -4955,7 +4954,7 @@ class ns extends zt {
4955
4954
  styles: (n = r.mapStyle) == null ? void 0 : n.google.styles,
4956
4955
  mapId: (a = r.mapStyle) == null ? void 0 : a.google.mapId,
4957
4956
  mapTypeId: s == null ? void 0 : s.getGoogleMapTypeId()
4958
- }), this.setEventTargetDelegate(new ue(this.map, this));
4957
+ }), this.setEventTargetDelegate(new ye(this.map, this));
4959
4958
  }
4960
4959
  setGestureHandling(e) {
4961
4960
  this.map.setOptions({
@@ -4971,22 +4970,22 @@ class ns extends zt {
4971
4970
  fromContainerPointToLatLng(e) {
4972
4971
  const r = this.innerMap.getProjection(), s = this.innerMap.getBounds();
4973
4972
  if (r == null || s == null)
4974
- return C.ZERO;
4973
+ return O.ZERO;
4975
4974
  const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), c = this.innerMap.getZoom();
4976
4975
  if (n == null || a == null || c == null)
4977
- return C.ZERO;
4976
+ return O.ZERO;
4978
4977
  const o = Math.pow(2, c), l = new google.maps.Point(e.x / o + n.x, e.y / o + a.y);
4979
- return C.fromGoogle(r.fromPointToLatLng(l) ?? le.LATLNG_ZERO, this.coordType);
4978
+ return O.fromGoogle(r.fromPointToLatLng(l) ?? he.LATLNG_ZERO, this.coordType);
4980
4979
  }
4981
4980
  fromLatLngToContainerPoint(e) {
4982
4981
  const r = this.innerMap.getProjection(), s = this.innerMap.getBounds();
4983
4982
  if (r == null || s == null)
4984
- return ae.ZERO;
4983
+ return le.ZERO;
4985
4984
  const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), c = this.innerMap.getZoom();
4986
4985
  if (n == null || a == null || c == null)
4987
- return ae.ZERO;
4986
+ return le.ZERO;
4988
4987
  const o = Math.pow(2, c), l = r.fromLatLngToPoint(e.toGoogle(this.coordType));
4989
- return l == null ? ae.ZERO : { x: (l.x - n.x) * o, y: (l.y - a.y) * o };
4988
+ return l == null ? le.ZERO : { x: (l.x - n.x) * o, y: (l.y - a.y) * o };
4990
4989
  }
4991
4990
  setDefaultCursor(e) {
4992
4991
  this.innerMap.setOptions({ draggableCursor: e });
@@ -4998,7 +4997,7 @@ class ns extends zt {
4998
4997
  this.map.setOptions({ disableDoubleClickZoom: !e });
4999
4998
  }
5000
4999
  getCenter() {
5001
- return C.fromGoogle(this.map.getCenter() ?? le.LATLNG_ZERO, this.coordType);
5000
+ return O.fromGoogle(this.map.getCenter() ?? he.LATLNG_ZERO, this.coordType);
5002
5001
  }
5003
5002
  setCenter(e) {
5004
5003
  this.map.setCenter(e.toGoogle(this.coordType));
@@ -5021,7 +5020,7 @@ class ns extends zt {
5021
5020
  this.map.setMapTypeId(r ?? B("理论上来说不可能为空"));
5022
5021
  }
5023
5022
  setMapType(e) {
5024
- e instanceof j ? this.map.setMapTypeId(e.getGoogleMapTypeId()) : (this.map.mapTypes.set(e.id, e.asGoogleMapType()), this.map.setMapTypeId(e.id));
5023
+ e instanceof W ? this.map.setMapTypeId(e.getGoogleMapTypeId()) : (this.map.mapTypes.set(e.id, e.asGoogleMapType()), this.map.setMapTypeId(e.id));
5025
5024
  }
5026
5025
  getMapType() {
5027
5026
  const e = this.map.getMapTypeId() ?? google.maps.MapTypeId.ROADMAP, r = this.googleMapTypeId2BIMT.get(e);
@@ -5031,7 +5030,7 @@ class ns extends zt {
5031
5030
  this.map.overlayMapTypes.push(e.asGoogleMapType());
5032
5031
  }
5033
5032
  removeOverlayMapType(e) {
5034
- ye.remove(this.map.overlayMapTypes, e.asGoogleMapType());
5033
+ ve.remove(this.map.overlayMapTypes, e.asGoogleMapType());
5035
5034
  }
5036
5035
  addLayer(e) {
5037
5036
  e.asGoogleLayer().setMap(this.map);
@@ -5050,7 +5049,7 @@ class ns extends zt {
5050
5049
  }
5051
5050
  getBounds() {
5052
5051
  const e = this.map.getBounds();
5053
- return e ? V.fromGoogle(e, this.coordType) : V.EMPTY;
5052
+ return e ? X.fromGoogle(e, this.coordType) : X.EMPTY;
5054
5053
  }
5055
5054
  addElementOverlay(e) {
5056
5055
  e.asGoogle().setMap(this.map);
@@ -5065,19 +5064,19 @@ class ns extends zt {
5065
5064
  e.innerOverlay.setMap(null);
5066
5065
  }
5067
5066
  addCustomControl(e) {
5068
- e.inner || (e.inner = e.onCreateElement(), this.map.controls[Y.getGoogle().toValue(e.position)].push(e.inner));
5067
+ e.inner || (e.inner = e.onCreateElement(), this.map.controls[U.getGoogle().toValue(e.position)].push(e.inner));
5069
5068
  }
5070
5069
  removeCustomControl(e) {
5071
5070
  if (e.inner) {
5072
- const r = this.map.controls[Y.getGoogle().toValue(e.position)];
5073
- ye.remove(r, e.inner);
5071
+ const r = this.map.controls[U.getGoogle().toValue(e.position)];
5072
+ ve.remove(r, e.inner);
5074
5073
  }
5075
5074
  }
5076
5075
  createMarkerClusterer(e) {
5077
5076
  return new Bi(this, e);
5078
5077
  }
5079
5078
  createHeatmap(e) {
5080
- return new Ci(this, e);
5079
+ return new Oi(this, e);
5081
5080
  }
5082
5081
  createAutocomplete(e) {
5083
5082
  return new _i(this, e);
@@ -5089,14 +5088,14 @@ class ns extends zt {
5089
5088
  return new Ii(this, e);
5090
5089
  }
5091
5090
  createMapUrls(e) {
5092
- return new Fe(e);
5091
+ return new Mt(e);
5093
5092
  }
5094
5093
  }
5095
5094
  const tt = ["3.0"], os = {
5096
5095
  baidu: {
5097
5096
  version: "3.0",
5098
5097
  // 在build时会被静态替换, 导致使用者不能无法设置它
5099
- // @see https://cn.vitejs.dev/guide/build.html#library-mode:~:text=%E6%A8%A1%E5%BC%8F%E4%B8%8B%EF%BC%8C%E6%89%80%E6%9C%89-,({}).*,-%E7%94%A8%E6%B3%95%E5%9C%A8%E6%9E%84
5098
+ // @see https://cn.vitejs.dev/guide/build.html#library-mode:~:text=%E6%A8%A1%E5%BC%8F%E4%B8%8B%EF%BC%8C%E6%89%80%E6%9C%89-,import.meta.env.*,-%E7%94%A8%E6%B3%95%E5%9C%A8%E6%9E%84
5100
5099
  // @see @vite_process_env_detail
5101
5100
  key: "kXOq8Hg9BZbZEWAjXKuzd1oGreynup8h"
5102
5101
  },
@@ -5111,21 +5110,21 @@ const tt = ["3.0"], os = {
5111
5110
  key: ""
5112
5111
  }
5113
5112
  };
5114
- let jr;
5115
- function Vr() {
5116
- return jr || B("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
5113
+ let Vr;
5114
+ function jr() {
5115
+ return Vr || B("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
5117
5116
  }
5118
5117
  function as(i) {
5119
- i != null && (jr = Gr(os, i));
5118
+ i != null && (Vr = Gr(os, i));
5120
5119
  }
5121
- class ls extends zt {
5120
+ class ls extends Nt {
5122
5121
  constructor(e, r) {
5123
5122
  var a;
5124
5123
  super(e);
5125
5124
  g(this, "map");
5126
5125
  g(this, "defaultLayers");
5127
5126
  this.mapOptions = r;
5128
- const s = Vr().here;
5127
+ const s = jr().here;
5129
5128
  tt.includes(s.version) || B(`不支持${s.version}, HereMap当前只支持如下版本: ${tt}`);
5130
5129
  const n = new H.service.Platform({
5131
5130
  app_id: s.key.split(",")[0],
@@ -5143,7 +5142,7 @@ class ls extends zt {
5143
5142
  return A.wgs84;
5144
5143
  }
5145
5144
  getCenter() {
5146
- return C.fromHere(this.map.getCenter(), this.coordType);
5145
+ return O.fromHere(this.map.getCenter(), this.coordType);
5147
5146
  }
5148
5147
  setCenter(e) {
5149
5148
  this.map.setCenter(e.toHere(this.coordType));
@@ -5276,7 +5275,7 @@ class ls extends zt {
5276
5275
  throw new Error("Method not implemented.");
5277
5276
  }
5278
5277
  }
5279
- var K = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(K || {}), Ot;
5278
+ var q = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(q || {}), wt;
5280
5279
  ((i) => {
5281
5280
  function t(e, r, s) {
5282
5281
  const n = Ct.create(s);
@@ -5290,53 +5289,54 @@ var K = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here
5290
5289
  }
5291
5290
  }
5292
5291
  i.createMap = t;
5293
- })(Ot || (Ot = {}));
5294
- const hs = {};
5295
- function cs(i) {
5296
- return he.putIfAbsent(hs, i, () => hi(() => ds({ type: i, config: Vr()[i] })))();
5297
- }
5298
- function ds({ type: i, config: t }) {
5299
- const e = window, r = us(i);
5300
- if (he.get(e, r))
5292
+ })(wt || (wt = {}));
5293
+ var hs = { VITE_APP_DEV_KEY_BAIDU: "kXOq8Hg9BZbZEWAjXKuzd1oGreynup8h", VITE_APP_DEV_KEY_GOOGLE: "AIzaSyBcyzMel3dYFNcfcr0LOklbBQNpWycyZXo", VITE_APP_DEV_KEY_HERE: "", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
5294
+ const cs = {};
5295
+ function ds(i) {
5296
+ return ce.putIfAbsent(cs, i, () => hi(() => us({ type: i, config: jr()[i] })))();
5297
+ }
5298
+ function us({ type: i, config: t }) {
5299
+ const e = window, r = ps(i);
5300
+ if (ce.get(e, r))
5301
5301
  return Promise.resolve();
5302
- switch (i !== K.here && !t.key && B(`请先配置${i}地图的key`), i) {
5303
- case K.google:
5304
- return {}.VITE_FALSE ? (fi({
5302
+ switch (i !== q.here && !t.key && B(`请先配置${i}地图的key`), i) {
5303
+ case q.google:
5304
+ return hs.VITE_FALSE ? (fi({
5305
5305
  key: t.key,
5306
5306
  v: "3.52"
5307
5307
  // v: config.version,
5308
5308
  }), google.maps.importLibrary("core")) : gr(`https://maps.googleapis.com/maps/api/js?key=${t.key}&language=${t.language}&v=${t.version}&libraries=${t.libraries.join(",")}`);
5309
- case K.baidu:
5309
+ case q.baidu:
5310
5310
  return gr(`https://api.map.baidu.com/api?v=${t.version}&ak=${t.key}`);
5311
- case K.here:
5311
+ case q.here:
5312
5312
  return Ee(xe("core", t.version)).then(() => Promise.all([
5313
5313
  // 其他大多数模块都可以同时载入
5314
5314
  Ee(xe("service", t.version)),
5315
5315
  Ee(xe("mapevents", t.version)),
5316
5316
  Ee(xe("clustering", t.version)),
5317
5317
  Ee(xe("ui", t.version))
5318
- ])).catch((s) => (he.del(e, r), Promise.reject(s)));
5318
+ ])).catch((s) => (ce.del(e, r), Promise.reject(s)));
5319
5319
  default:
5320
- _t(i);
5320
+ vt(i);
5321
5321
  }
5322
5322
  }
5323
5323
  function xe(i, t = tt[0]) {
5324
5324
  return `https://js.api.here.com/v3/${t}/mapsjs-${i}.js`;
5325
5325
  }
5326
- function us(i) {
5326
+ function ps(i) {
5327
5327
  switch (i) {
5328
- case K.google:
5328
+ case q.google:
5329
5329
  return "google.maps";
5330
- case K.baidu:
5330
+ case q.baidu:
5331
5331
  return "BMap";
5332
- case K.here:
5332
+ case q.here:
5333
5333
  return "H";
5334
5334
  }
5335
5335
  }
5336
- let ps = 0;
5336
+ let gs = 0;
5337
5337
  function gr(i, t = "callback") {
5338
5338
  return new Promise((e, r) => {
5339
- const s = `__callback${ps++}`;
5339
+ const s = `__callback${gs++}`;
5340
5340
  window[s] = e;
5341
5341
  const n = document.createElement("script");
5342
5342
  n.src = `${i}&${t}=${s}`, n.onerror = r, document.body.appendChild(n);
@@ -5348,21 +5348,21 @@ function Ee(i) {
5348
5348
  r.src = i, r.onload = t, r.onerror = e, document.body.appendChild(r);
5349
5349
  });
5350
5350
  }
5351
- function U(i, t) {
5351
+ function F(i, t) {
5352
5352
  return {
5353
5353
  type: String,
5354
5354
  default: t,
5355
5355
  validator: (e) => Object.values(i).includes(e)
5356
5356
  };
5357
5357
  }
5358
- function gs(i, t) {
5358
+ function ms(i, t) {
5359
5359
  return {
5360
5360
  type: String,
5361
5361
  default: t,
5362
5362
  validator: (e) => i.includes(e)
5363
5363
  };
5364
5364
  }
5365
- function N(i) {
5365
+ function z(i) {
5366
5366
  return {
5367
5367
  type: i,
5368
5368
  required: !0
@@ -5374,7 +5374,7 @@ function _(i, t) {
5374
5374
  default: t
5375
5375
  };
5376
5376
  }
5377
- function yn(i) {
5377
+ function bn(i) {
5378
5378
  const t = {};
5379
5379
  return Object.entries(i).forEach(([e, r]) => {
5380
5380
  const s = `__${e}`;
@@ -5391,37 +5391,37 @@ function yn(i) {
5391
5391
  };
5392
5392
  }), t;
5393
5393
  }
5394
- const Le = {
5394
+ const Pe = {
5395
5395
  enumerable: !0,
5396
5396
  configurable: !0,
5397
- get: Ae,
5398
- set: Ae
5397
+ get: Re,
5398
+ set: Re
5399
5399
  };
5400
- function ms(i) {
5400
+ function fs(i) {
5401
5401
  return Object.keys(i).forEach((t) => {
5402
5402
  const e = i[t];
5403
5403
  let r = !1;
5404
- typeof e == "function" ? (Le.get = e, Le.set = Ae, r = !0) : typeof e == "object" && typeof e.get == "function" && (Le.get = e.get, Le.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, Le));
5404
+ typeof e == "function" ? (Pe.get = e, Pe.set = Re, r = !0) : typeof e == "object" && typeof e.get == "function" && (Pe.get = e.get, Pe.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, Pe));
5405
5405
  }), i;
5406
5406
  }
5407
- function _n(i) {
5408
- return ms(i);
5407
+ function Tn(i) {
5408
+ return fs(i);
5409
5409
  }
5410
- function ut() {
5411
- return yt();
5410
+ function ct() {
5411
+ return ft();
5412
5412
  }
5413
- function je(i, t) {
5413
+ function Ue(i, t) {
5414
5414
  const e = i.$options[t];
5415
5415
  if (e)
5416
5416
  for (const r of e)
5417
5417
  r.call(i);
5418
5418
  }
5419
- function bn(i, t) {
5419
+ function Mn(i, t) {
5420
5420
  for (const e of i)
5421
5421
  if (e.$options.name === t.name)
5422
5422
  return e;
5423
5423
  }
5424
- function Tn(i, t) {
5424
+ function On(i, t) {
5425
5425
  if (!i.default)
5426
5426
  return;
5427
5427
  const e = i.default();
@@ -5429,7 +5429,7 @@ function Tn(i, t) {
5429
5429
  if ((r == null ? void 0 : r.type).name === t.name)
5430
5430
  return r;
5431
5431
  }
5432
- function fs(i, t) {
5432
+ function vs(i, t) {
5433
5433
  const e = {}, r = {}, s = {};
5434
5434
  return Object.keys(i).forEach((n) => {
5435
5435
  n.startsWith("on") ? e[be.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
@@ -5445,12 +5445,12 @@ function fs(i, t) {
5445
5445
  };
5446
5446
  }
5447
5447
  function ne(i, t) {
5448
- return fr(() => fs(i, t));
5448
+ return fr(() => vs(i, t));
5449
5449
  }
5450
5450
  function S() {
5451
5451
  return Function;
5452
5452
  }
5453
- const Mn = () => {
5453
+ const Cn = () => {
5454
5454
  let i, t;
5455
5455
  function e(s) {
5456
5456
  console.log(s), i = s && s.type, t = Date.now();
@@ -5459,33 +5459,33 @@ const Mn = () => {
5459
5459
  ((s && s.type) !== i || Date.now() - (t ?? 0) > 1e3) && e(s);
5460
5460
  }
5461
5461
  return { eventLog: e, eventLogLess: r };
5462
- }, ir = "$map", Ne = "onCreate", Ge = "onDestroy", D = L({
5463
- inject: [ir],
5462
+ }, sr = "$map", We = "onCreate", He = "onDestroy", $ = P({
5463
+ inject: [sr],
5464
5464
  mounted() {
5465
- je(this, Ne);
5465
+ Ue(this, We);
5466
5466
  },
5467
5467
  beforeUnmount() {
5468
- je(this, Ge);
5468
+ Ue(this, He);
5469
5469
  },
5470
5470
  methods: {
5471
5471
  recreate() {
5472
- je(this, Ge), je(this, Ne);
5472
+ Ue(this, He), Ue(this, We);
5473
5473
  }
5474
5474
  },
5475
5475
  render() {
5476
- return ut();
5476
+ return ct();
5477
5477
  }
5478
- }), vs = L({
5478
+ }), ys = P({
5479
5479
  name: "tg-map",
5480
5480
  provide() {
5481
5481
  return {
5482
- [ir]: fr(() => this.map)
5482
+ [sr]: fr(() => this.map)
5483
5483
  };
5484
5484
  },
5485
5485
  inheritAttrs: !1,
5486
5486
  props: {
5487
5487
  /** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
5488
- type: U(K, K.google),
5488
+ type: F(q, q.google),
5489
5489
  /**
5490
5490
  * 当对该属性使用双向绑定时, 改变center将触发update:center又反过来触发center改变, 最终导致无限循环...
5491
5491
  * 当前通过setCenter()时判断center是否有改变来避免该问题, 但为了避免可能存在的问题, 另外设计了如下机制:
@@ -5494,7 +5494,7 @@ const Mn = () => {
5494
5494
  * - :last-center.sync="center": 获取tg-map销毁时的最后的center的值, 使用这种方式可以做到type切换时保留中心点位置
5495
5495
  * @see AbstractMapEventMap.center-changed
5496
5496
  * */
5497
- center: N(C),
5497
+ center: z(O),
5498
5498
  /**
5499
5499
  * 同步center的延时
5500
5500
  * @default 300
@@ -5505,23 +5505,23 @@ const Mn = () => {
5505
5505
  * 仅用来获取center的值, 需要设置center的值请使用`center`属性
5506
5506
  * @see center
5507
5507
  * */
5508
- currentCenter: _(C),
5508
+ currentCenter: _(O),
5509
5509
  /**
5510
5510
  * 仅用于获取tg-map销毁时的最后的center的值
5511
5511
  * @see center
5512
5512
  */
5513
- lastCenter: _(C),
5514
- zoom: N(Number),
5513
+ lastCenter: _(O),
5514
+ zoom: z(Number),
5515
5515
  /**
5516
5516
  * 该属性不会响应式更新, 要让它立即生效, 请参考{@link file://./../views/map/InfoDemo.vue#L3}
5517
5517
  * @see MapOptions.infoWindowMode
5518
5518
  */
5519
- infoWindowMode: gs(Xi),
5520
- gestureHandling: U(ee),
5519
+ infoWindowMode: ms(Xi),
5520
+ gestureHandling: F(ee),
5521
5521
  minZoom: _(Number),
5522
5522
  maxZoom: _(Number),
5523
5523
  mapStyle: _(Object),
5524
- mapTypeId: U(Mr),
5524
+ mapTypeId: F(Mr),
5525
5525
  /** 地图类型对象, 优先级比mapTypeId高 */
5526
5526
  mapType: _(Object),
5527
5527
  hideLogo: _(Boolean),
@@ -5544,13 +5544,13 @@ const Mn = () => {
5544
5544
  },
5545
5545
  data() {
5546
5546
  return {
5547
- map: bt(),
5547
+ map: yt(),
5548
5548
  isDestroyed: !1
5549
5549
  };
5550
5550
  },
5551
5551
  computed: {
5552
5552
  propsJson() {
5553
- return he.toJsonSafely(this.$props);
5553
+ return ce.toJsonSafely(this.$props);
5554
5554
  }
5555
5555
  },
5556
5556
  watch: {
@@ -5576,13 +5576,13 @@ const Mn = () => {
5576
5576
  },
5577
5577
  mapType(i) {
5578
5578
  var t;
5579
- (t = this.map) == null || t.setMapType(i ?? F.NORMAL);
5579
+ (t = this.map) == null || t.setMapType(i ?? V.NORMAL);
5580
5580
  }
5581
5581
  },
5582
5582
  async mounted() {
5583
5583
  const i = this.type;
5584
5584
  try {
5585
- await cs(i);
5585
+ await ds(i);
5586
5586
  } catch (s) {
5587
5587
  this.$emit("error", s);
5588
5588
  return;
@@ -5591,7 +5591,7 @@ const Mn = () => {
5591
5591
  console.warn(`tg-map(type=${i})已销毁, 不需要继续执行`);
5592
5592
  return;
5593
5593
  }
5594
- const t = Ot.createMap(
5594
+ const t = wt.createMap(
5595
5595
  i,
5596
5596
  this.$refs.map,
5597
5597
  /* options: */
@@ -5611,7 +5611,7 @@ const Mn = () => {
5611
5611
  t,
5612
5612
  /* excludes: */
5613
5613
  ["load"]
5614
- ), this.$emit("load", t), ke([
5614
+ ), this.$emit("load", t), De([
5615
5615
  () => this.zoom,
5616
5616
  () => this.center
5617
5617
  //
@@ -5638,29 +5638,28 @@ const Mn = () => {
5638
5638
  this.isDestroyed = !0, this.map && ("update:last-center" in this.attrs.listenerProps && this.$emit("update:last-center", this.map.getCenter()), "update:center" in this.attrs.listenerProps && (clearTimeout(this.centerSyncTimeoutId), this.$emit("update:center", this.map.getCenter())));
5639
5639
  },
5640
5640
  methods: {}
5641
- });
5642
- const oe = (i, t) => {
5641
+ }), oe = (i, t) => {
5643
5642
  const e = i.__vccOpts || i;
5644
5643
  for (const [r, s] of t)
5645
5644
  e[r] = s;
5646
5645
  return e;
5647
5646
  };
5648
- function ys(i, t, e, r, s, n) {
5649
- return re(), ie("div", Ce({ class: "tg-map" }, i.attrs.binds), [
5647
+ function _s(i, t, e, r, s, n) {
5648
+ return re(), ie("div", Oe({ class: "tg-map" }, i.attrs.binds), [
5650
5649
  Xr("div", {
5651
5650
  ref: "map",
5652
- class: nt({
5651
+ class: it({
5653
5652
  "tg-map__map": !0,
5654
5653
  [`tg-map__map--hide-logo-${i.type}`]: i.hideLogo
5655
5654
  })
5656
5655
  }, null, 2),
5657
- yt("", !0),
5658
- i.map ? X(i.$slots, "default", { key: 1 }) : yt("", !0),
5659
- X(i.$slots, "overlay")
5656
+ ft("", !0),
5657
+ i.map ? K(i.$slots, "default", { key: 1 }) : ft("", !0),
5658
+ K(i.$slots, "overlay")
5660
5659
  ], 16);
5661
5660
  }
5662
- const Ze = /* @__PURE__ */ oe(vs, [["render", ys]]);
5663
- function _s(i) {
5661
+ const Ve = /* @__PURE__ */ oe(ys, [["render", _s]]);
5662
+ function bs(i) {
5664
5663
  if (i == null)
5665
5664
  return;
5666
5665
  let t;
@@ -5671,7 +5670,7 @@ function _s(i) {
5671
5670
  t = i;
5672
5671
  return `${t}px`;
5673
5672
  }
5674
- const bs = L({
5673
+ const Ts = P({
5675
5674
  name: "tg-map-widget",
5676
5675
  props: {
5677
5676
  left: {
@@ -5697,22 +5696,22 @@ const bs = L({
5697
5696
  }
5698
5697
  },
5699
5698
  methods: {
5700
- dimen: _s
5699
+ dimen: bs
5701
5700
  }
5702
5701
  });
5703
- function Ts(i, t, e, r, s, n) {
5702
+ function Ms(i, t, e, r, s, n) {
5704
5703
  return re(), ie("div", {
5705
- class: nt(i.$options.name),
5704
+ class: it(i.$options.name),
5706
5705
  style: Jr({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
5707
5706
  }, [
5708
- X(i.$slots, "default")
5707
+ K(i.$slots, "default")
5709
5708
  ], 6);
5710
5709
  }
5711
- const Ms = /* @__PURE__ */ oe(bs, [["render", Ts]]), Cs = L({
5710
+ const Os = /* @__PURE__ */ oe(Ts, [["render", Ms]]), Cs = P({
5712
5711
  name: "tg-custom-control",
5713
- mixins: [D],
5712
+ mixins: [$],
5714
5713
  props: {
5715
- position: U(k, k.RIGHT_BOTTOM)
5714
+ position: F(k, k.RIGHT_BOTTOM)
5716
5715
  },
5717
5716
  setup() {
5718
5717
  return {
@@ -5725,7 +5724,7 @@ const Ms = /* @__PURE__ */ oe(bs, [["render", Ts]]), Cs = L({
5725
5724
  }
5726
5725
  },
5727
5726
  onCreate() {
5728
- yr(this.$parent, Ze) || console.warn("请将tg-custom-control放到tg-map中");
5727
+ yr(this.$parent, Ve) || console.warn("请将tg-custom-control放到tg-map中");
5729
5728
  const { $el: i } = this, t = class extends pi {
5730
5729
  onCreateElement() {
5731
5730
  return i;
@@ -5737,19 +5736,19 @@ const Ms = /* @__PURE__ */ oe(bs, [["render", Ts]]), Cs = L({
5737
5736
  this.$map.removeCustomControl(this.control);
5738
5737
  }
5739
5738
  });
5740
- function Os(i, t, e, r, s, n) {
5739
+ function ws(i, t, e, r, s, n) {
5741
5740
  return re(), ie("div", {
5742
- class: nt(i.$options.name)
5741
+ class: it(i.$options.name)
5743
5742
  }, [
5744
- X(i.$slots, "default")
5743
+ K(i.$slots, "default")
5745
5744
  ], 2);
5746
5745
  }
5747
- const ws = /* @__PURE__ */ oe(Cs, [["render", Os]]), xs = L({
5746
+ const xs = /* @__PURE__ */ oe(Cs, [["render", ws]]), Es = P({
5748
5747
  name: "tg-map-type-control",
5749
- mixins: [D],
5748
+ mixins: [$],
5750
5749
  props: {
5751
- position: U(k, k.TOP_LEFT),
5752
- type: U(Cr),
5750
+ position: F(k, k.TOP_LEFT),
5751
+ type: F(Or),
5753
5752
  mapTypes: _(Array)
5754
5753
  },
5755
5754
  setup() {
@@ -5777,11 +5776,11 @@ const ws = /* @__PURE__ */ oe(Cs, [["render", Os]]), xs = L({
5777
5776
  onDestroy() {
5778
5777
  this.$map.removeControl(this.control);
5779
5778
  }
5780
- }), Es = L({
5779
+ }), Ps = P({
5781
5780
  name: "tg-scale-control",
5782
- mixins: [D],
5781
+ mixins: [$],
5783
5782
  props: {
5784
- position: U(k, k.BOTTOM_RIGHT)
5783
+ position: F(k, k.BOTTOM_RIGHT)
5785
5784
  },
5786
5785
  setup() {
5787
5786
  return {
@@ -5810,8 +5809,8 @@ function Fr() {
5810
5809
  }
5811
5810
  return t;
5812
5811
  }
5813
- function sr() {
5814
- const i = ei(ir);
5812
+ function nr() {
5813
+ const i = ei(sr);
5815
5814
  let t, e;
5816
5815
  return i == null && B(`<${Fr() || "unknown"}>必须作为<tg-map>的子代组件`), {
5817
5816
  mapRef: i,
@@ -5820,12 +5819,12 @@ function sr() {
5820
5819
  return i.value ?? B("map尚未初始化");
5821
5820
  },
5822
5821
  /** 地图元素创建回调 */
5823
- [Ne](r) {
5824
- ti(r), t && B(`${Ne}只能调用一次`), t = r;
5822
+ [We](r) {
5823
+ ti(r), t && B(`${We}只能调用一次`), t = r;
5825
5824
  },
5826
5825
  /** 地图元素销毁回调 */
5827
- [Ge](r) {
5828
- ri(r), e && B(`${Ge}只能调用一次`), e = r;
5826
+ [He](r) {
5827
+ ri(r), e && B(`${He}只能调用一次`), e = r;
5829
5828
  },
5830
5829
  /** 重新创建地图元素 */
5831
5830
  recreate() {
@@ -5833,62 +5832,62 @@ function sr() {
5833
5832
  }
5834
5833
  };
5835
5834
  }
5836
- const Ls = L({
5835
+ const Ls = P({
5837
5836
  name: "tg-street-view-control",
5838
5837
  props: {
5839
- position: U(k, k.RIGHT_BOTTOM)
5838
+ position: F(k, k.RIGHT_BOTTOM)
5840
5839
  },
5841
5840
  setup(i) {
5842
5841
  let t = void 0;
5843
- const { map: e, onCreate: r, onDestroy: s } = sr();
5842
+ const { map: e, onCreate: r, onDestroy: s } = nr();
5844
5843
  return r(() => {
5845
5844
  t = e.createStreetViewControl(i), e.addControl(t);
5846
5845
  }), s(() => {
5847
5846
  e.removeControl(t);
5848
- }), ke(() => i.position, (n) => {
5847
+ }), De(() => i.position, (n) => {
5849
5848
  t.setPosition(n);
5850
- }), ut;
5849
+ }), ct;
5851
5850
  }
5852
- }), Ps = L({
5851
+ }), Bs = P({
5853
5852
  name: "tg-zoom-control",
5854
5853
  props: {
5855
- position: U(k, k.RIGHT_BOTTOM)
5854
+ position: F(k, k.RIGHT_BOTTOM)
5856
5855
  },
5857
5856
  setup(i) {
5858
5857
  let t = void 0;
5859
- const { map: e, onCreate: r, onDestroy: s } = sr();
5858
+ const { map: e, onCreate: r, onDestroy: s } = nr();
5860
5859
  return r(() => {
5861
5860
  t = e.createZoomControl(i), e.addControl(t);
5862
5861
  }), s(() => {
5863
5862
  e.removeControl(t);
5864
- }), ke(() => i.position, (n) => {
5863
+ }), De(() => i.position, (n) => {
5865
5864
  t.setPosition(n);
5866
- }), ut;
5865
+ }), ct;
5867
5866
  }
5868
- }), Bs = L({
5867
+ }), Is = P({
5869
5868
  name: "tg-heatmap",
5870
5869
  props: {
5871
5870
  maxIntensity: _(Number),
5872
5871
  gradient: _(Object),
5873
5872
  opacity: _(Number),
5874
5873
  radius: _(Number),
5875
- data: N(Array)
5874
+ data: z(Array)
5876
5875
  },
5877
5876
  setup(i) {
5878
- const { map: t, onCreate: e, onDestroy: r } = sr();
5877
+ const { map: t, onCreate: e, onDestroy: r } = nr();
5879
5878
  let s = void 0;
5880
5879
  return e(() => {
5881
5880
  s = t.createHeatmap(i);
5882
5881
  }), r(() => {
5883
5882
  s.remove();
5884
- }), ke(() => i.data, (n) => s.setData(n)), ke(
5883
+ }), De(() => i.data, (n) => s.setData(n)), De(
5885
5884
  [() => i.maxIntensity, () => i.gradient, () => i.opacity, () => i.radius],
5886
5885
  () => s.setOptions(i)
5887
- ), ut;
5886
+ ), ct;
5888
5887
  }
5889
- }), Is = L({
5888
+ }), Ss = P({
5890
5889
  name: "tg-marker-clusterer",
5891
- mixins: [D],
5890
+ mixins: [$],
5892
5891
  // markers从this.$children中读取, 故需要省略(Omit)
5893
5892
  props: {
5894
5893
  gridSize: _(Number),
@@ -5946,20 +5945,20 @@ const Ls = L({
5946
5945
  this.markers.push(i), this.isInitiated() && this.clusterer.addMarker(i);
5947
5946
  },
5948
5947
  onRemoveMarker(i) {
5949
- this.isInitiated() && this.clusterer.removeMarker(i), ve.remove(this.markers, i);
5948
+ this.isInitiated() && this.clusterer.removeMarker(i), fe.remove(this.markers, i);
5950
5949
  }
5951
5950
  }
5952
5951
  });
5953
- function Ss(i, t, e, r, s, n) {
5952
+ function ks(i, t, e, r, s, n) {
5954
5953
  return re(), ie("div", {
5955
- class: nt(i.$options.name)
5954
+ class: it(i.$options.name)
5956
5955
  }, [
5957
- X(i.$slots, "default")
5956
+ K(i.$slots, "default")
5958
5957
  ], 2);
5959
5958
  }
5960
- const Ur = /* @__PURE__ */ oe(Is, [["render", Ss]]), ks = L({
5959
+ const Ur = /* @__PURE__ */ oe(Ss, [["render", ks]]), As = P({
5961
5960
  name: "tg-traffic-layer",
5962
- mixins: [D],
5961
+ mixins: [$],
5963
5962
  // 请直接使用v-if来控制它的显隐
5964
5963
  // 没有属性时, 写`{}`类型推断会有问题, 故注释掉
5965
5964
  // props: {} satisfies Props<{}>,
@@ -5975,13 +5974,13 @@ const Ur = /* @__PURE__ */ oe(Is, [["render", Ss]]), ks = L({
5975
5974
  onDestroy() {
5976
5975
  this.$map.removeLayer(this.layer);
5977
5976
  }
5978
- }), As = L({
5977
+ }), Ds = P({
5979
5978
  name: "tg-circle",
5980
- mixins: [D],
5979
+ mixins: [$],
5981
5980
  inheritAttrs: !1,
5982
5981
  props: {
5983
- center: N(C),
5984
- radius: N(Number),
5982
+ center: z(O),
5983
+ radius: z(Number),
5985
5984
  clickable: _(Boolean),
5986
5985
  editable: _(Boolean),
5987
5986
  strokeColor: _(String),
@@ -6006,7 +6005,7 @@ const Ur = /* @__PURE__ */ oe(Is, [["render", Ss]]), ks = L({
6006
6005
  center(i) {
6007
6006
  if (this.emittedCenter != null) {
6008
6007
  const t = this.emittedCenter;
6009
- if (this.emittedCenter = void 0, t === ot(i))
6008
+ if (this.emittedCenter = void 0, t === st(i))
6010
6009
  return;
6011
6010
  }
6012
6011
  this.overlay.setCenter(i);
@@ -6070,12 +6069,12 @@ class Rs extends ts {
6070
6069
  this.position = t, this.draw();
6071
6070
  }
6072
6071
  }
6073
- const Ds = L({
6072
+ const $s = P({
6074
6073
  name: "tg-element-overlay",
6075
- mixins: [D],
6074
+ mixins: [$],
6076
6075
  props: {
6077
- mapPane: U(De, De.overlayMouseTarget),
6078
- position: N(C)
6076
+ mapPane: F(Ne, Ne.overlayMouseTarget),
6077
+ position: z(O)
6079
6078
  },
6080
6079
  setup() {
6081
6080
  return {
@@ -6102,19 +6101,19 @@ const Ds = L({
6102
6101
  this.$map.removeElementOverlay(this.overlay);
6103
6102
  }
6104
6103
  });
6105
- function $s(i, t, e, r, s, n) {
6106
- return re(), ie("div", Ce({
6104
+ function zs(i, t, e, r, s, n) {
6105
+ return re(), ie("div", Oe({
6107
6106
  class: i.$options.name
6108
6107
  }, i.$attrs), [
6109
- X(i.$slots, "default")
6108
+ K(i.$slots, "default")
6110
6109
  ], 16);
6111
6110
  }
6112
- const zs = /* @__PURE__ */ oe(Ds, [["render", $s]]), Ns = L({
6111
+ const Ns = /* @__PURE__ */ oe($s, [["render", zs]]), Gs = P({
6113
6112
  name: "tg-marker",
6114
- mixins: [D],
6113
+ mixins: [$],
6115
6114
  inheritAttrs: !1,
6116
6115
  props: {
6117
- position: N(C),
6116
+ position: z(O),
6118
6117
  title: _(String),
6119
6118
  icon: _(Object),
6120
6119
  clickable: _(Boolean),
@@ -6136,8 +6135,8 @@ const zs = /* @__PURE__ */ oe(Ds, [["render", $s]]), Ns = L({
6136
6135
  return {
6137
6136
  attrs: ne(t, i),
6138
6137
  marker: void 0,
6139
- label: bt(),
6140
- info: bt(),
6138
+ label: yt(),
6139
+ info: yt(),
6141
6140
  emittedPosition: void 0,
6142
6141
  autoAddToClustererWhenCreate: i.autoAddToClusterer
6143
6142
  };
@@ -6146,7 +6145,7 @@ const zs = /* @__PURE__ */ oe(Ds, [["render", $s]]), Ns = L({
6146
6145
  position(i) {
6147
6146
  if (this.emittedPosition != null) {
6148
6147
  const t = this.emittedPosition;
6149
- if (this.emittedPosition = void 0, t === ot(i))
6148
+ if (this.emittedPosition = void 0, t === st(i))
6150
6149
  return;
6151
6150
  }
6152
6151
  this.marker.setPosition(i);
@@ -6158,7 +6157,7 @@ const zs = /* @__PURE__ */ oe(Ds, [["render", $s]]), Ns = L({
6158
6157
  i ? this.marker.setIcon(i) : this.recreate();
6159
6158
  },
6160
6159
  clickable(i) {
6161
- this.marker instanceof ze ? this.recreate() : this.marker.setClickable(i);
6160
+ this.marker instanceof Ze ? this.recreate() : this.marker.setClickable(i);
6162
6161
  },
6163
6162
  draggable(i) {
6164
6163
  this.marker.setDraggable(i);
@@ -6170,7 +6169,7 @@ const zs = /* @__PURE__ */ oe(Ds, [["render", $s]]), Ns = L({
6170
6169
  this.recreate();
6171
6170
  },
6172
6171
  zIndex(i) {
6173
- this.marker instanceof ze ? this.recreate() : this.marker.setZIndex(i);
6172
+ this.marker instanceof Ze ? this.recreate() : this.marker.setZIndex(i);
6174
6173
  },
6175
6174
  visible(i) {
6176
6175
  this.marker.setVisible(i);
@@ -6211,20 +6210,20 @@ const zs = /* @__PURE__ */ oe(Ds, [["render", $s]]), Ns = L({
6211
6210
  }
6212
6211
  }
6213
6212
  });
6214
- function Gs(i, t, e, r, s, n) {
6215
- return re(), ie("div", Ce({
6213
+ function Zs(i, t, e, r, s, n) {
6214
+ return re(), ie("div", Oe({
6216
6215
  class: i.$options.name
6217
6216
  }, i.attrs.binds), [
6218
- X(i.$slots, "default")
6217
+ K(i.$slots, "default")
6219
6218
  ], 16);
6220
6219
  }
6221
- const pt = /* @__PURE__ */ oe(Ns, [["render", Gs]]), Zs = L({
6220
+ const dt = /* @__PURE__ */ oe(Gs, [["render", Zs]]), Ws = P({
6222
6221
  name: "tg-info-box",
6223
- mixins: [D],
6222
+ mixins: [$],
6224
6223
  inheritAttrs: !1,
6225
6224
  props: {
6226
- show: N(Boolean),
6227
- position: _(C),
6225
+ show: z(Boolean),
6226
+ position: _(O),
6228
6227
  offset: _(Object),
6229
6228
  maxWidth: _(Number),
6230
6229
  borderClass: _(String),
@@ -6281,7 +6280,7 @@ const pt = /* @__PURE__ */ oe(Ns, [["render", Gs]]), Zs = L({
6281
6280
  return this.$el;
6282
6281
  },
6283
6282
  $marker() {
6284
- return xt(pt, this.$parent, Ze);
6283
+ return Et(dt, this.$parent, Ve);
6285
6284
  },
6286
6285
  open(i) {
6287
6286
  this.overlay.open(i);
@@ -6291,20 +6290,20 @@ const pt = /* @__PURE__ */ oe(Ns, [["render", Gs]]), Zs = L({
6291
6290
  }
6292
6291
  }
6293
6292
  });
6294
- function Ws(i, t, e, r, s, n) {
6295
- return re(), ie("div", Ce({
6293
+ function Hs(i, t, e, r, s, n) {
6294
+ return re(), ie("div", Oe({
6296
6295
  class: i.$options.name
6297
6296
  }, i.attrs.binds), [
6298
- X(i.$slots, "default")
6297
+ K(i.$slots, "default")
6299
6298
  ], 16);
6300
6299
  }
6301
- const Hs = /* @__PURE__ */ oe(Zs, [["render", Ws]]), js = L({
6300
+ const Vs = /* @__PURE__ */ oe(Ws, [["render", Hs]]), js = P({
6302
6301
  name: "tg-info-window",
6303
- mixins: [D],
6302
+ mixins: [$],
6304
6303
  inheritAttrs: !1,
6305
6304
  props: {
6306
- show: N(Boolean),
6307
- position: _(C),
6305
+ show: z(Boolean),
6306
+ position: _(O),
6308
6307
  maxWidth: _(Number),
6309
6308
  offset: _(Object),
6310
6309
  disableAutoPan: _(Boolean),
@@ -6339,7 +6338,7 @@ const Hs = /* @__PURE__ */ oe(Zs, [["render", Ws]]), js = L({
6339
6338
  return this.$el;
6340
6339
  },
6341
6340
  $marker() {
6342
- return xt(pt, this.$parent, Ze);
6341
+ return Et(dt, this.$parent, Ve);
6343
6342
  },
6344
6343
  getOptions() {
6345
6344
  return {
@@ -6362,24 +6361,24 @@ const Hs = /* @__PURE__ */ oe(Zs, [["render", Ws]]), js = L({
6362
6361
  this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
6363
6362
  }
6364
6363
  });
6365
- function Vs(i, t, e, r, s, n) {
6366
- return ii((re(), ie("div", Ce({
6364
+ function Fs(i, t, e, r, s, n) {
6365
+ return ii((re(), ie("div", Oe({
6367
6366
  class: i.$options.name
6368
6367
  }, i.attrs.binds), [
6369
- X(i.$slots, "default")
6368
+ K(i.$slots, "default")
6370
6369
  ], 16)), [
6371
6370
  [si, i.show]
6372
6371
  ]);
6373
6372
  }
6374
- const Fs = /* @__PURE__ */ oe(js, [["render", Vs]]), Us = L({
6373
+ const Us = /* @__PURE__ */ oe(js, [["render", Fs]]), Ys = P({
6375
6374
  name: "tg-label",
6376
- mixins: [D],
6375
+ mixins: [$],
6377
6376
  inheritAttrs: !1,
6378
6377
  props: {
6379
- position: _(C),
6378
+ position: _(O),
6380
6379
  offset: _(Object),
6381
6380
  zIndex: _(Number),
6382
- mapPane: U(De)
6381
+ mapPane: F(Ne)
6383
6382
  },
6384
6383
  emits: void 0,
6385
6384
  setup(i, { attrs: t }) {
@@ -6414,7 +6413,7 @@ const Fs = /* @__PURE__ */ oe(js, [["render", Vs]]), Us = L({
6414
6413
  return (i = this.$marker()) == null ? void 0 : i.marker;
6415
6414
  },
6416
6415
  $marker() {
6417
- return xt(pt, this.$parent, Ze);
6416
+ return Et(dt, this.$parent, Ve);
6418
6417
  },
6419
6418
  getOptions() {
6420
6419
  return {
@@ -6433,19 +6432,19 @@ const Fs = /* @__PURE__ */ oe(js, [["render", Vs]]), Us = L({
6433
6432
  this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
6434
6433
  }
6435
6434
  });
6436
- function Ys(i, t, e, r, s, n) {
6437
- return re(), ie("div", Ce({
6435
+ function qs(i, t, e, r, s, n) {
6436
+ return re(), ie("div", Oe({
6438
6437
  class: i.$options.name
6439
6438
  }, i.attrs.binds), [
6440
- X(i.$slots, "default")
6439
+ K(i.$slots, "default")
6441
6440
  ], 16);
6442
6441
  }
6443
- const qs = /* @__PURE__ */ oe(Us, [["render", Ys]]), Ks = L({
6442
+ const Ks = /* @__PURE__ */ oe(Ys, [["render", qs]]), Xs = P({
6444
6443
  name: "tg-polygon",
6445
- mixins: [D],
6444
+ mixins: [$],
6446
6445
  inheritAttrs: !1,
6447
6446
  props: {
6448
- paths: N(Array),
6447
+ paths: z(Array),
6449
6448
  clickable: _(Boolean),
6450
6449
  editable: _(Boolean),
6451
6450
  strokeColor: _(String),
@@ -6469,7 +6468,7 @@ const qs = /* @__PURE__ */ oe(Us, [["render", Ys]]), Ks = L({
6469
6468
  handler(i) {
6470
6469
  if (this.emittedPaths != null) {
6471
6470
  const t = this.emittedPaths;
6472
- if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e === ot(i[r])))
6471
+ if (this.emittedPaths = void 0, t.length === i.length && t.every((e, r) => e === st(i[r])))
6473
6472
  return;
6474
6473
  }
6475
6474
  this.overlay.setPaths(i);
@@ -6509,12 +6508,12 @@ const qs = /* @__PURE__ */ oe(Us, [["render", Ys]]), Ks = L({
6509
6508
  onDestroy() {
6510
6509
  this.$map.removeOverlay(this.overlay);
6511
6510
  }
6512
- }), Xs = L({
6511
+ }), Js = P({
6513
6512
  name: "tg-polyline",
6514
- mixins: [D],
6513
+ mixins: [$],
6515
6514
  inheritAttrs: !1,
6516
6515
  props: {
6517
- path: N(Array),
6516
+ path: z(Array),
6518
6517
  icons: _(Array),
6519
6518
  clickable: _(Boolean),
6520
6519
  editable: _(Boolean),
@@ -6537,7 +6536,7 @@ const qs = /* @__PURE__ */ oe(Us, [["render", Ys]]), Ks = L({
6537
6536
  handler(i) {
6538
6537
  if (this.emittedPath != null) {
6539
6538
  const t = this.emittedPath;
6540
- if (this.emittedPath = void 0, t === ot(i))
6539
+ if (this.emittedPath = void 0, t === st(i))
6541
6540
  return;
6542
6541
  }
6543
6542
  this.overlay.setPath(i);
@@ -6577,12 +6576,12 @@ const qs = /* @__PURE__ */ oe(Us, [["render", Ys]]), Ks = L({
6577
6576
  onDestroy() {
6578
6577
  this.overlay.remove();
6579
6578
  }
6580
- }), Js = L({
6579
+ }), Qs = P({
6581
6580
  name: "tg-rectangle",
6582
- mixins: [D],
6581
+ mixins: [$],
6583
6582
  inheritAttrs: !1,
6584
6583
  props: {
6585
- bounds: N(Object),
6584
+ bounds: z(Object),
6586
6585
  clickable: _(Boolean),
6587
6586
  editable: _(Boolean),
6588
6587
  strokeColor: _(String),
@@ -6643,14 +6642,14 @@ const qs = /* @__PURE__ */ oe(Us, [["render", Ys]]), Ks = L({
6643
6642
  onDestroy() {
6644
6643
  this.$map.removeOverlay(this.overlay);
6645
6644
  }
6646
- }), Qs = ["beforeUpdate", "updated"], Cn = {
6645
+ }), en = ["beforeUpdate", "updated"], wn = {
6647
6646
  install(i, t = {}) {
6648
6647
  if (t.enable !== !1) {
6649
- const e = L({
6648
+ const e = P({
6650
6649
  beforeCreate() {
6651
6650
  const r = Fr() ?? "", n = (t.nameRegex || /^[A-Z]/).test(r) ? (a) => {
6652
- t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : Qs.includes(a) || console.debug("[lifecycle]", r, a);
6653
- } : Ae;
6651
+ t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : en.includes(a) || console.debug("[lifecycle]", r, a);
6652
+ } : Re;
6654
6653
  n("beforeCreate"), this.__life_impl = n;
6655
6654
  },
6656
6655
  created() {
@@ -6689,83 +6688,85 @@ const qs = /* @__PURE__ */ oe(Us, [["render", Ys]]), Ks = L({
6689
6688
  i.mixin(e);
6690
6689
  }
6691
6690
  }
6692
- }, en = 6378137;
6691
+ }, tn = 6378137;
6693
6692
  function Ie(i) {
6694
6693
  return i * Math.PI / 180;
6695
6694
  }
6696
6695
  function mr(i) {
6697
6696
  return i * 180 / Math.PI;
6698
6697
  }
6699
- function tn(i, t) {
6698
+ function rn(i, t) {
6700
6699
  if (i.lat === t.lat && i.lng === t.lng)
6701
6700
  return 0;
6702
6701
  const e = Ie((i.lat + t.lat) / 2), r = Ie((i.lat - t.lat) / 2), s = Ie((i.lng - t.lng) / 2);
6703
6702
  let n = Math.sin(r), a = Math.sin(s), c = Math.sin(e);
6704
- const o = en, l = 1 / 298.257;
6703
+ const o = tn, l = 1 / 298.257;
6705
6704
  n = n * n, a = a * a, c = c * c;
6706
6705
  const d = n * (1 - a) + (1 - c) * a, u = (1 - n) * (1 - a) + c * a, p = Math.atan(Math.sqrt(d / u)), v = Math.sqrt(d * u) / p, b = 2 * p * o, y = (3 * v - 1) / 2 / u, m = (3 * v + 1) / 2 / d;
6707
6706
  return b * (1 + l * (y * c * (1 - n) - m * (1 - c) * n));
6708
6707
  }
6709
- function rn(i, t, e) {
6708
+ function sn(i, t, e) {
6710
6709
  const s = 63567523142e-4, n = 1 / 298.257223563, a = Ie(t), c = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(Ie(i.lat)), d = 1 / Math.sqrt(1 + l * l), u = l * d, p = Math.atan2(l, o), v = d * c, b = 1 - v * v, y = b * (6378137 * 6378137 - s * s) / (s * s), m = 1 + y / 16384 * (4096 + y * (-768 + y * (320 - 175 * y))), h = y / 1024 * (256 + y * (-128 + y * (74 - 47 * y)));
6711
- let f = 0, M = 0, T = 0, O = e / (s * m), w = 2 * Math.PI;
6712
- for (; Math.abs(O - w) > 1e-12; ) {
6713
- f = Math.cos(2 * p + O), M = Math.sin(O), T = Math.cos(O);
6714
- const Z = h * M * (f + h / 4 * (T * (-1 + 2 * f * f) - h / 6 * f * (-3 + 4 * M * M) * (-3 + 4 * f * f)));
6715
- w = O, O = e / (s * m) + Z;
6710
+ let f = 0, M = 0, T = 0, C = e / (s * m), w = 2 * Math.PI;
6711
+ for (; Math.abs(C - w) > 1e-12; ) {
6712
+ f = Math.cos(2 * p + C), M = Math.sin(C), T = Math.cos(C);
6713
+ const G = h * M * (f + h / 4 * (T * (-1 + 2 * f * f) - h / 6 * f * (-3 + 4 * M * M) * (-3 + 4 * f * f)));
6714
+ w = C, C = e / (s * m) + G;
6716
6715
  }
6717
- const E = u * M - d * T * o, R = Math.atan2(
6716
+ const E = u * M - d * T * o, D = Math.atan2(
6718
6717
  u * T + d * M * o,
6719
6718
  (1 - n) * Math.sqrt(v * v + E * E)
6720
- ), G = Math.atan2(M * c, d * T - u * M * o), P = n / 16 * b * (4 + n * (4 - 3 * b)), J = G - (1 - P) * n * v * (O + P * M * (f + P * T * (-1 + 2 * f * f)));
6721
- return { lng: i.lng + mr(J), lat: mr(R) };
6719
+ ), N = Math.atan2(M * c, d * T - u * M * o), L = n / 16 * b * (4 + n * (4 - 3 * b)), J = N - (1 - L) * n * v * (C + L * M * (f + L * T * (-1 + 2 * f * f)));
6720
+ return { lng: i.lng + mr(J), lat: mr(D) };
6722
6721
  }
6723
- const On = {
6724
- getDistance: tn,
6725
- getDestination: rn
6726
- }, wn = {
6722
+ const xn = {
6723
+ getDistance: rn,
6724
+ getDestination: sn
6725
+ };
6726
+ var nn = { VITE_APP_DEV_KEY_BAIDU: "kXOq8Hg9BZbZEWAjXKuzd1oGreynup8h", VITE_APP_DEV_KEY_GOOGLE: "AIzaSyBcyzMel3dYFNcfcr0LOklbBQNpWycyZXo", VITE_APP_DEV_KEY_HERE: "", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
6727
+ const En = {
6727
6728
  install(i, t) {
6728
- if (as(t), {}.VITE_FALSE) {
6729
- const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Ze, "./TgMapWidget.vue": Ms, "./controls/TgCustomControl.vue": ws, "./controls/TgMapTypeControl.vue": xs, "./controls/TgScaleControl.vue": Es, "./controls/TgStreetViewControl.vue": Ls, "./controls/TgZoomControl.vue": Ps, "./extra/TgHeatmap.vue": Bs, "./extra/TgMarkerClusterer.vue": Ur, "./layers/TgTrafficLayer.vue": ks, "./overlays/TgCircle.vue": As, "./overlays/TgElementOverlay.vue": zs, "./overlays/TgInfoBox.vue": Hs, "./overlays/TgInfoWindow.vue": Fs, "./overlays/TgLabel.vue": qs, "./overlays/TgMarker.vue": pt, "./overlays/TgPolygon.vue": Ks, "./overlays/TgPolyline.vue": Xs, "./overlays/TgRectangle.vue": Js });
6729
+ if (as(t), nn.VITE_FALSE) {
6730
+ const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Ve, "./TgMapWidget.vue": Os, "./controls/TgCustomControl.vue": xs, "./controls/TgMapTypeControl.vue": Es, "./controls/TgScaleControl.vue": Ps, "./controls/TgStreetViewControl.vue": Ls, "./controls/TgZoomControl.vue": Bs, "./extra/TgHeatmap.vue": Is, "./extra/TgMarkerClusterer.vue": Ur, "./layers/TgTrafficLayer.vue": As, "./overlays/TgCircle.vue": Ds, "./overlays/TgElementOverlay.vue": Ns, "./overlays/TgInfoBox.vue": Vs, "./overlays/TgInfoWindow.vue": Us, "./overlays/TgLabel.vue": Ks, "./overlays/TgMarker.vue": dt, "./overlays/TgPolygon.vue": Xs, "./overlays/TgPolyline.vue": Js, "./overlays/TgRectangle.vue": Qs });
6730
6731
  Object.keys(r).forEach((s) => {
6731
6732
  const n = r[s];
6732
6733
  i.component(n.name ?? B(`Tg开头的组件必须设置name: ${s}`), n);
6733
6734
  });
6734
6735
  }
6735
6736
  const e = i.config.optionMergeStrategies;
6736
- e[Ne] = e[Ge] = (r, s) => r ? [...new Set([].concat(r, s))] : Array.isArray(s) ? s : [s];
6737
+ e[We] = e[He] = (r, s) => r ? [...new Set([].concat(r, s))] : Array.isArray(s) ? s : [s];
6737
6738
  }
6738
6739
  };
6739
6740
  export {
6740
6741
  Lt as AbstractControl,
6741
- zt as AbstractMap,
6742
- ve as Arrays,
6742
+ Nt as AbstractMap,
6743
+ fe as Arrays,
6743
6744
  Er as Autocomplete,
6744
6745
  bi as BaiduAutocomplete,
6745
- Gt as BaiduCircle,
6746
- Pt as BaiduControl,
6747
- Oi as BaiduHeatmap,
6748
- Vt as BaiduInfoBoxOverlay,
6749
- Ht as BaiduInfoWindow,
6750
- Bt as BaiduMapTypeControl,
6751
- Ue as BaiduMapUrls,
6752
- ze as BaiduMarker,
6753
- Pi as BaiduMarkerClusterer,
6754
- ct as BaiduOverlay,
6746
+ Zt as BaiduCircle,
6747
+ Bt as BaiduControl,
6748
+ Ci as BaiduHeatmap,
6749
+ Ft as BaiduInfoBoxOverlay,
6750
+ Vt as BaiduInfoWindow,
6751
+ It as BaiduMapTypeControl,
6752
+ Ot as BaiduMapUrls,
6753
+ Ze as BaiduMarker,
6754
+ Li as BaiduMarkerClusterer,
6755
+ lt as BaiduOverlay,
6755
6756
  Si as BaiduPlacesService,
6756
- Kt as BaiduPolyShape,
6757
- Qt as BaiduPolygon,
6758
- Xt as BaiduPolyline,
6759
- tr as BaiduRectangle,
6760
- It as BaiduScaleControl,
6757
+ Xt as BaiduPolyShape,
6758
+ er as BaiduPolygon,
6759
+ Jt as BaiduPolyline,
6760
+ rr as BaiduRectangle,
6761
+ St as BaiduScaleControl,
6761
6762
  Ai as BaiduSearchBox,
6762
- kt as BaiduStreetViewControl,
6763
+ At as BaiduStreetViewControl,
6763
6764
  Rt as BaiduZoomControl,
6764
- j as BuildInMapType,
6765
+ W as BuildInMapType,
6765
6766
  Mr as BuildInMapTypeId,
6766
- Pe as CachedValue,
6767
+ Le as CachedValue,
6767
6768
  k as ControlPosition,
6768
- Y as ControlPositionConverter,
6769
+ U as ControlPositionConverter,
6769
6770
  A as CoordType,
6770
6771
  pi as CustomControl,
6771
6772
  ts as ElementOverlay,
@@ -6773,119 +6774,119 @@ export {
6773
6774
  ui as FastFindValues,
6774
6775
  ee as GestureHandlingOptions,
6775
6776
  _i as GoogleAutocomplete,
6776
- Zt as GoogleCircle,
6777
- ht as GoogleControl,
6778
- Ci as GoogleHeatmap,
6779
- Ft as GoogleInfoBoxOverlay,
6777
+ Wt as GoogleCircle,
6778
+ at as GoogleControl,
6779
+ Oi as GoogleHeatmap,
6780
+ Ut as GoogleInfoBoxOverlay,
6780
6781
  jt as GoogleInfoWindow,
6781
- Ve as GoogleMapTypeControl,
6782
- Fe as GoogleMapUrls,
6783
- qt as GoogleMarker,
6782
+ Tt as GoogleMapTypeControl,
6783
+ Mt as GoogleMapUrls,
6784
+ Kt as GoogleMarker,
6784
6785
  Bi as GoogleMarkerClusterer,
6785
- Nt as GoogleOverlay,
6786
+ Gt as GoogleOverlay,
6786
6787
  Ii as GooglePlacesService,
6787
- er as GooglePolygon,
6788
- Jt as GooglePolyline,
6789
- rr as GoogleRectangle,
6790
- St as GoogleScaleControl,
6788
+ tr as GooglePolygon,
6789
+ Qt as GooglePolyline,
6790
+ ir as GoogleRectangle,
6791
+ kt as GoogleScaleControl,
6791
6792
  ki as GoogleSearchBox,
6792
- At as GoogleStreetViewControl,
6793
- Dt as GoogleZoomControl,
6794
- Pr as Heatmap,
6793
+ Dt as GoogleStreetViewControl,
6794
+ $t as GoogleZoomControl,
6795
+ Lr as Heatmap,
6795
6796
  Qe as Icon,
6796
6797
  et as IconSequence,
6797
- pn as ImageMapType,
6798
- Wt as InfoWindow,
6798
+ mn as ImageMapType,
6799
+ Ht as InfoWindow,
6799
6800
  Xi as InfoWindowModeValues,
6800
6801
  ar as KeyValue,
6801
- C as LatLng,
6802
- V as LatLngBounds,
6803
- Cn as LifecycleLogPlugin,
6802
+ O as LatLng,
6803
+ X as LatLngBounds,
6804
+ wn as LifecycleLogPlugin,
6804
6805
  te as Location,
6805
- Ne as MIXIN_HOOK_CREATE,
6806
- Ge as MIXIN_HOOK_DESTROY,
6807
- ir as MIXIN_MAP_NAME,
6808
- ye as MVCArrays,
6809
- D as MapMixin,
6806
+ We as MIXIN_HOOK_CREATE,
6807
+ He as MIXIN_HOOK_DESTROY,
6808
+ sr as MIXIN_MAP_NAME,
6809
+ ve as MVCArrays,
6810
+ $ as MapMixin,
6810
6811
  Ct as MapOptions,
6811
- De as MapPane,
6812
- $e as MapPanes,
6813
- F as MapType,
6814
- Cr as MapTypeControlType,
6812
+ Ne as MapPane,
6813
+ Ge as MapPanes,
6814
+ V as MapType,
6815
+ Or as MapTypeControlType,
6815
6816
  Br as MapUrls,
6816
- Ri as MapZoom,
6817
- Dr as MarkerClusterer,
6818
- he as Objects,
6817
+ Di as MapZoom,
6818
+ Rr as MarkerClusterer,
6819
+ ce as Objects,
6819
6820
  Wr as Overlay,
6820
6821
  $r as PlacesService,
6821
- ae as Point,
6822
+ le as Point,
6822
6823
  zr as SearchBox,
6823
- On as SphericalUtils,
6824
+ xn as SphericalUtils,
6824
6825
  be as Strings,
6825
6826
  Me as SymbolIcon,
6826
- vn as SymbolPath,
6827
- As as TgCircle,
6828
- ws as TgCustomControl,
6829
- zs as TgElementOverlay,
6830
- Bs as TgHeatmap,
6831
- Hs as TgInfoBox,
6832
- Fs as TgInfoWindow,
6833
- qs as TgLabel,
6834
- Ze as TgMap,
6835
- Ot as TgMapFactory,
6836
- K as TgMapType,
6837
- xs as TgMapTypeControl,
6838
- Ms as TgMapWidget,
6839
- pt as TgMarker,
6827
+ _n as SymbolPath,
6828
+ Ds as TgCircle,
6829
+ xs as TgCustomControl,
6830
+ Ns as TgElementOverlay,
6831
+ Is as TgHeatmap,
6832
+ Vs as TgInfoBox,
6833
+ Us as TgInfoWindow,
6834
+ Ks as TgLabel,
6835
+ Ve as TgMap,
6836
+ wt as TgMapFactory,
6837
+ q as TgMapType,
6838
+ Es as TgMapTypeControl,
6839
+ Os as TgMapWidget,
6840
+ dt as TgMarker,
6840
6841
  Ur as TgMarkerClusterer,
6841
- Ks as TgPolygon,
6842
- Xs as TgPolyline,
6843
- Js as TgRectangle,
6844
- Es as TgScaleControl,
6842
+ Xs as TgPolygon,
6843
+ Js as TgPolyline,
6844
+ Qs as TgRectangle,
6845
+ Ps as TgScaleControl,
6845
6846
  Ls as TgStreetViewControl,
6846
- ks as TgTrafficLayer,
6847
- Ps as TgZoomControl,
6847
+ As as TgTrafficLayer,
6848
+ Bs as TgZoomControl,
6848
6849
  mi as TrafficLayer,
6849
6850
  Je as UnionIcon,
6850
6851
  me as assert,
6851
- _t as assertNever,
6852
- je as callHook,
6853
- yn as computedSaveOnThis,
6852
+ vt as assertNever,
6853
+ Ue as callHook,
6854
+ bn as computedSaveOnThis,
6854
6855
  hi as createAsyncSingleton,
6855
- ut as createEmptyVNode,
6856
- ms as createPropertyObject,
6857
- _n as createPropertyObjectTyped,
6858
- dn as debug,
6859
- wn as default,
6856
+ ct as createEmptyVNode,
6857
+ fs as createPropertyObject,
6858
+ Tn as createPropertyObjectTyped,
6859
+ pn as debug,
6860
+ En as default,
6860
6861
  S as eventProp,
6861
- Tn as extractVNodeFromSlotsByComponent,
6862
- xt as findAncestorComponentByType,
6863
- bn as findByComponentType,
6864
- rn as getDestination,
6865
- Vr as getTgMapConfig,
6866
- Tt as isComponentByType,
6867
- un as isDef,
6862
+ On as extractVNodeFromSlotsByComponent,
6863
+ Et as findAncestorComponentByType,
6864
+ Mn as findByComponentType,
6865
+ sn as getDestination,
6866
+ jr as getTgMapConfig,
6867
+ _t as isComponentByType,
6868
+ gn as isDef,
6868
6869
  li as isEntryValueDef,
6869
- an as isInstanceOf,
6870
- on as lateinit,
6871
- cs as loadCachedMap,
6872
- Ae as noop,
6870
+ hn as isInstanceOf,
6871
+ ln as lateinit,
6872
+ ds as loadCachedMap,
6873
+ Re as noop,
6873
6874
  _ as optionalProp,
6874
6875
  es as path,
6875
- N as requiredProp,
6876
- ln as safeAs,
6876
+ z as requiredProp,
6877
+ cn as safeAs,
6877
6878
  yr as safeAsComponent,
6878
6879
  as as setTgMapConfig,
6879
- fs as splitAttrs,
6880
- U as stringEnumProp,
6881
- gs as stringUnionPropFromValues,
6880
+ vs as splitAttrs,
6881
+ F as stringEnumProp,
6882
+ ms as stringUnionPropFromValues,
6882
6883
  B as throwError,
6883
- Et as throwUnsupported,
6884
- cn as todo,
6885
- bt as typed,
6886
- hn as unwrapStringEnumValue,
6887
- Mn as useEventLogMethods,
6884
+ Pt as throwUnsupported,
6885
+ un as todo,
6886
+ yt as typed,
6887
+ dn as unwrapStringEnumValue,
6888
+ Cn as useEventLogMethods,
6888
6889
  ne as useSplittedAttrs,
6889
- sr as useTgMapInner
6890
+ nr as useTgMapInner
6890
6891
  };
6891
6892
  //# sourceMappingURL=tg-map.js.map