@idmwx/idmui-gl4 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,9 +3,9 @@ var $a = (t, e, o) => e in t ? Xa(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var me = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Se from "axios";
5
5
  import { useTheme as ze } from "vuetify";
6
- import { openBlock as y, createElementBlock as S, resolveComponent as x, withDirectives as Ne, createBlock as A, withCtx as u, createVNode as d, withModifiers as ro, createElementVNode as l, vShow as Fe, normalizeClass as We, toDisplayString as h, createTextVNode as N, Fragment as be, renderList as we, createCommentVNode as O, mergeProps as B, normalizeStyle as ie } from "vue";
6
+ import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as D, withCtx as u, createVNode as d, withModifiers as ro, createElementVNode as l, createCommentVNode as O, normalizeClass as We, toDisplayString as h, createTextVNode as N, Fragment as be, renderList as we, withDirectives as He, vShow as Ue, mergeProps as B, normalizeStyle as ie } from "vue";
7
7
  import ve from "mapbox-gl";
8
- import { LngLatHelper as G, TropicalHelper as Va, LaneHelper as Ue } from "@idm-plugin/geo";
8
+ import { LngLatHelper as G, TropicalHelper as Va, LaneHelper as Fe } from "@idm-plugin/geo";
9
9
  import M from "moment";
10
10
  import { Meteo2Assist as oo, TidesAssist as qa } from "@idm-plugin/meteo";
11
11
  import * as io from "echarts";
@@ -366,31 +366,34 @@ const mi = {
366
366
  lineLayer: "alert-zone-line-layer",
367
367
  lineLabelLayer: "alert-zone-line-label-layer",
368
368
  pointLayer: "alert-zone-point-layer",
369
- showZone: !1,
370
- form: {}
369
+ showMakerInfo: !1,
370
+ form: {},
371
+ marker: null
371
372
  };
372
373
  },
373
374
  watch: {
374
375
  zone: {
375
376
  handler() {
376
377
  var t, e, o, i, a, r;
377
- this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.pointLayer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.pointLayer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (a = this.map) == null || a.off("mousemove", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave));
378
+ this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (a = this.map) == null || a.off("mousemove", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave));
378
379
  },
379
380
  immediate: !0
380
381
  }
381
382
  },
382
383
  methods: {
383
384
  handleClick(t) {
384
- var i;
385
- const e = t.features[0], o = (i = this.zone) == null ? void 0 : i.features.filter((a) => {
386
- var r;
387
- return a.properties.id === ((r = e == null ? void 0 : e.properties) == null ? void 0 : r.id);
385
+ var i, a, r;
386
+ const e = t.features[0], o = (a = (i = this.zone) == null ? void 0 : i.features) == null ? void 0 : a.filter((s) => {
387
+ var c, n;
388
+ return ((c = s.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
388
389
  })[0];
389
- if (o) {
390
- this.showZone = !0, this.form = { ...o.properties };
391
- const a = document.getElementById("idm-gl4-zone-info");
392
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
393
- }
390
+ o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
391
+ var n, g;
392
+ const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (g = s == null ? void 0 : s.children[1]) == null ? void 0 : g.children[0];
393
+ c && (c.onclick = () => {
394
+ this.handleRemoveMarker();
395
+ }), this.marker = new ve.Marker(s).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
396
+ }));
394
397
  },
395
398
  handleRender() {
396
399
  var t;
@@ -481,12 +484,17 @@ const mi = {
481
484
  },
482
485
  handleLeave() {
483
486
  this.map.getCanvas().style.cursor = "grab";
487
+ },
488
+ handleRemoveMarker() {
489
+ var t;
490
+ this.showMakerInfo = !1, (t = this.marker) == null || t.remove();
484
491
  }
485
492
  }
486
493
  }, di = ["innerHTML"];
487
494
  function hi(t, e, o, i, a, r) {
488
495
  const s = x("VBtn"), c = x("v-card-text"), n = x("v-card");
489
- return Ne((y(), A(n, {
496
+ return a.showMakerInfo ? (y(), D(n, {
497
+ key: 0,
490
498
  class: "scroll",
491
499
  id: "idm-gl4-zone-info"
492
500
  }, {
@@ -500,14 +508,14 @@ function hi(t, e, o, i, a, r) {
500
508
  density: "compact",
501
509
  variant: "plain",
502
510
  class: "close",
503
- onClick: e[0] || (e[0] = ro((p) => a.showZone = !1, ["stop"]))
511
+ onClick: ro(r.handleRemoveMarker, ["stop"])
504
512
  }, {
505
- default: u(() => e[1] || (e[1] = [
513
+ default: u(() => e[0] || (e[0] = [
506
514
  l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
507
515
  ])),
508
516
  _: 1,
509
- __: [1]
510
- }),
517
+ __: [0]
518
+ }, 8, ["onClick"]),
511
519
  l("div", {
512
520
  class: "rich-context",
513
521
  innerHTML: (g = a.form) == null ? void 0 : g.name
@@ -518,9 +526,7 @@ function hi(t, e, o, i, a, r) {
518
526
  })
519
527
  ]),
520
528
  _: 1
521
- }, 512)), [
522
- [Fe, a.showZone]
523
- ]);
529
+ })) : O("", !0);
524
530
  }
525
531
  const pi = /* @__PURE__ */ Y(mi, [["render", hi]]);
526
532
  const ui = {
@@ -1349,8 +1355,6 @@ const ui = {
1349
1355
  { label: "Swell", key: "weather.swell", unit: "m" },
1350
1356
  { label: "Current", key: "weather.current", unit: "kts" }
1351
1357
  ],
1352
- tideData: {},
1353
- tideTableData: [],
1354
1358
  currentIndex: 0,
1355
1359
  loading: !1,
1356
1360
  interval: 6,
@@ -1488,14 +1492,21 @@ const ui = {
1488
1492
  { label: "Swell", key: "weather.swell", unit: "m" },
1489
1493
  { label: "Current", key: "weather.current", unit: "kts" }
1490
1494
  ], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
1491
- var c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe;
1495
+ var c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe;
1492
1496
  let r = {};
1493
1497
  const s = ((c = oo.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
1494
- r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((L = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : L.sum, 0) ?? "-", r.visibility = this.computeRoundPrecision((_ = s == null ? void 0 : s.weather) == null ? void 0 : _.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((b = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : b.kts, 1) ?? "-", r.windDir = (I = (D = s == null ? void 0 : s.weather) == null ? void 0 : D.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((v = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : v.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (z = s == null ? void 0 : s.wave) == null ? void 0 : z.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (K = (V = s == null ? void 0 : s.wave) == null ? void 0 : V.sig) == null ? void 0 : K.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (X = s == null ? void 0 : s.wave) == null ? void 0 : X.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1498
+ r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((P = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : P.sum, 0) ?? "-", r.visibility = this.computeRoundPrecision((z = s == null ? void 0 : s.weather) == null ? void 0 : z.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((b = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : b.kts, 1) ?? "-", r.windDir = (I = (A = s == null ? void 0 : s.weather) == null ? void 0 : A.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((v = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : v.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (_ = s == null ? void 0 : s.weather) == null ? void 0 : _.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (k = s == null ? void 0 : s.wave) == null ? void 0 : k.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (K = (V = s == null ? void 0 : s.wave) == null ? void 0 : V.sig) == null ? void 0 : K.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (X = s == null ? void 0 : s.wave) == null ? void 0 : X.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1495
1499
  });
1496
1500
  },
1497
1501
  handleTide() {
1498
- this.showTideDetail = !0, this.showPortDetail = !1, this.fetchTidesData();
1502
+ this.showTideDetail = !0, this.showPortDetail = !1, this.$nextTick(() => {
1503
+ Object.keys(this.tideData).length === 0 && this.fetchTidesData();
1504
+ const t = this.$refs.scrollDom;
1505
+ t && t.scrollTo({
1506
+ top: t.scrollHeight - t.clientHeight
1507
+ // behavior: 'smooth'
1508
+ });
1509
+ });
1499
1510
  },
1500
1511
  async fetchTidesData() {
1501
1512
  var o, i, a, r;
@@ -1525,14 +1536,7 @@ const ui = {
1525
1536
  height: []
1526
1537
  }, (t = this.tideTableData) == null || t.forEach((e) => {
1527
1538
  this.xDate.push(this.computeHourLT(e.date, this.port)), this.echartData.height.push([this.computeHourLT(e.date, this.port), e.height ?? void 0, "m"]);
1528
- }), this.$nextTick(() => {
1529
- this.initEchart();
1530
- const e = this.$refs.scrollDom;
1531
- e && e.scrollTo({
1532
- top: e.scrollHeight - e.clientHeight
1533
- // behavior: 'smooth'
1534
- });
1535
- });
1539
+ }), this.initEchart();
1536
1540
  },
1537
1541
  initEchart() {
1538
1542
  io.dispose(this.$refs.tideEchart.style);
@@ -1677,18 +1681,18 @@ const ui = {
1677
1681
  }, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
1678
1682
  function yr(t, e, o, i, a, r) {
1679
1683
  const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), f = x("VCard");
1680
- return y(), A(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1684
+ return y(), D(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1681
1685
  default: u(() => {
1682
- var w, L, _, P;
1686
+ var w, P, z, L;
1683
1687
  return [
1684
1688
  d(c, { class: "w-100" }, {
1685
1689
  default: u(() => {
1686
- var b, D, I, C, v;
1690
+ var b, A, I, C, v;
1687
1691
  return [
1688
1692
  l("div", gi, [
1689
1693
  l("div", fi, [
1690
1694
  l("div", {
1691
- class: We(["fi mr-2 rounded elevation-4", `fi-${(b = o.port) != null && b.cntLoCode ? (I = (D = o.port) == null ? void 0 : D.cntLoCode) == null ? void 0 : I.toLowerCase() : "xx"}`]),
1695
+ class: We(["fi mr-2 rounded elevation-4", `fi-${(b = o.port) != null && b.cntLoCode ? (I = (A = o.port) == null ? void 0 : A.cntLoCode) == null ? void 0 : I.toLowerCase() : "xx"}`]),
1692
1696
  style: { width: "36px", height: "24px" }
1693
1697
  }, null, 2),
1694
1698
  l("div", null, h((C = o.port) == null ? void 0 : C.name), 1)
@@ -1721,9 +1725,9 @@ function yr(t, e, o, i, a, r) {
1721
1725
  d(n, { class: "w-100" }),
1722
1726
  l("div", bi, [
1723
1727
  o.followList.some((b) => {
1724
- var D;
1725
- return ((D = b.port) == null ? void 0 : D.id) === o.portId;
1726
- }) ? (y(), A(s, {
1728
+ var A;
1729
+ return ((A = b.port) == null ? void 0 : A.id) === o.portId;
1730
+ }) ? (y(), D(s, {
1727
1731
  key: 0,
1728
1732
  class: "text-none text-body-1 rounded flex-1-1-0",
1729
1733
  variant: "tonal",
@@ -1739,7 +1743,7 @@ function yr(t, e, o, i, a, r) {
1739
1743
  N(" " + h(t.$t("actions.unfollow")), 1)
1740
1744
  ]),
1741
1745
  _: 1
1742
- }, 8, ["onClick"])) : (y(), A(s, {
1746
+ }, 8, ["onClick"])) : (y(), D(s, {
1743
1747
  key: 1,
1744
1748
  class: "text-none text-body-1 rounded flex-1-1-0",
1745
1749
  variant: "tonal",
@@ -1782,11 +1786,11 @@ function yr(t, e, o, i, a, r) {
1782
1786
  l("div", Li, [
1783
1787
  l("div", Pi, [
1784
1788
  l("div", Ci, h(t.$t("port.region")), 1),
1785
- l("div", Ti, h(((w = o.port) == null ? void 0 : w.region) ?? ((L = o.port) == null ? void 0 : L.city) ?? "-"), 1)
1789
+ l("div", Ti, h(((w = o.port) == null ? void 0 : w.region) ?? ((P = o.port) == null ? void 0 : P.city) ?? "-"), 1)
1786
1790
  ]),
1787
1791
  l("div", Si, [
1788
1792
  l("div", Ii, h(t.$t("port.position")), 1),
1789
- l("div", Mi, h(r.computeLng((_ = o.port) == null ? void 0 : _.lng) ?? "-") + " , " + h(r.computeLat((P = o.port) == null ? void 0 : P.lat) ?? "-"), 1)
1793
+ l("div", Mi, h(r.computeLng((z = o.port) == null ? void 0 : z.lng) ?? "-") + " , " + h(r.computeLat((L = o.port) == null ? void 0 : L.lat) ?? "-"), 1)
1790
1794
  ]),
1791
1795
  l("div", Ai, [
1792
1796
  l("div", Di, h(t.$t("time.localTime")), 1),
@@ -1818,7 +1822,7 @@ function yr(t, e, o, i, a, r) {
1818
1822
  rounded: "1"
1819
1823
  }, {
1820
1824
  default: u(() => [
1821
- (y(!0), S(be, null, we(r.dateList, (b) => (y(), A(s, {
1825
+ (y(!0), S(be, null, we(r.dateList, (b) => (y(), D(s, {
1822
1826
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1823
1827
  density: "compact",
1824
1828
  color: "primary",
@@ -1886,14 +1890,14 @@ function yr(t, e, o, i, a, r) {
1886
1890
  l("div", null, h(t.$t("tide.tideTimes")), 1)
1887
1891
  ]),
1888
1892
  l("div", sr, [
1889
- a.showTideDetail ? (y(), A(s, {
1893
+ a.showTideDetail ? (y(), D(s, {
1890
1894
  key: 0,
1891
1895
  icon: "mdi-eye-off-outline",
1892
1896
  density: "compact",
1893
1897
  variant: "plain",
1894
1898
  size: "small",
1895
1899
  onClick: e[1] || (e[1] = (b) => a.showTideDetail = !1)
1896
- })) : (y(), A(s, {
1900
+ })) : (y(), D(s, {
1897
1901
  key: 1,
1898
1902
  icon: "mdi-eye-outline",
1899
1903
  density: "compact",
@@ -1912,9 +1916,9 @@ function yr(t, e, o, i, a, r) {
1912
1916
  l("th", hr, h(t.$t("time.time")) + " ( LT ) ", 1),
1913
1917
  l("th", pr, h(t.$t("tide.height")) + " ( m )", 1)
1914
1918
  ]),
1915
- (y(!0), S(be, null, we(a.tideTableData, (b, D) => {
1919
+ (y(!0), S(be, null, we(a.tideTableData, (b, A) => {
1916
1920
  var I;
1917
- return y(), S("tr", { key: D }, [
1921
+ return y(), S("tr", { key: A }, [
1918
1922
  l("td", ur, h(t.$t(`tide.${(I = b == null ? void 0 : b.type) == null ? void 0 : I.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
1919
1923
  l("td", gr, h(r.computeHourLT(b == null ? void 0 : b.date, o.port)), 1),
1920
1924
  l("td", fr, h((b == null ? void 0 : b.height) ?? "-") + " m", 1)
@@ -1930,7 +1934,7 @@ function yr(t, e, o, i, a, r) {
1930
1934
  _: 1
1931
1935
  });
1932
1936
  }
1933
- const lo = /* @__PURE__ */ Y(ui, [["render", yr], ["__scopeId", "data-v-5eb3dfe5"]]);
1937
+ const lo = /* @__PURE__ */ Y(ui, [["render", yr], ["__scopeId", "data-v-6662019c"]]);
1934
1938
  const br = {
1935
1939
  name: "IdmPort",
1936
1940
  components: {
@@ -2032,16 +2036,18 @@ const br = {
2032
2036
  this.portId = e.properties.id, e.properties.id && (this.port = e.properties, this.port.lng = e.geometry.coordinates[0], this.port.lat = e.geometry.coordinates[1], this.port.forecastModel = this.forecastModel, this.showDetail = !0);
2033
2037
  },
2034
2038
  handleHover(t) {
2039
+ var i, a;
2035
2040
  this.map.getCanvas().style.cursor = "pointer";
2036
2041
  const e = t.features[0];
2037
2042
  if (e.properties.id) {
2038
- this.showInfo = !0, this.hoverPort = e.properties;
2039
- const i = document.getElementById("idmPortInfo");
2040
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
2043
+ this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
2044
+ const r = (a = document.getElementById("idmPortInfo")) == null ? void 0 : a.cloneNode(!0);
2045
+ this.marker = new ve.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
2041
2046
  }
2042
2047
  },
2043
2048
  handleLeave() {
2044
- this.showInfo = !1, this.hoverPort = {}, this.map.getCanvas().style.cursor = "grab";
2049
+ var t;
2050
+ this.showInfo = !1, this.hoverPort = {}, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
2045
2051
  },
2046
2052
  handleCloseDetail() {
2047
2053
  this.showDetail = !1;
@@ -2051,7 +2057,7 @@ const br = {
2051
2057
  function _r(t, e, o, i, a, r) {
2052
2058
  const s = x("VCardText"), c = x("VCard"), n = x("PortDetail");
2053
2059
  return y(), S("div", null, [
2054
- Ne(d(c, {
2060
+ He(d(c, {
2055
2061
  id: "idmPortInfo",
2056
2062
  ref: "idmPortInfo"
2057
2063
  }, {
@@ -2074,9 +2080,9 @@ function _r(t, e, o, i, a, r) {
2074
2080
  ]),
2075
2081
  _: 1
2076
2082
  }, 512), [
2077
- [Fe, a.showInfo]
2083
+ [Ue, a.showInfo]
2078
2084
  ]),
2079
- a.showDetail ? (y(), A(n, B({
2085
+ a.showDetail ? (y(), D(n, B({
2080
2086
  key: 0,
2081
2087
  portId: a.portId,
2082
2088
  port: a.port,
@@ -2086,7 +2092,7 @@ function _r(t, e, o, i, a, r) {
2086
2092
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : O("", !0)
2087
2093
  ]);
2088
2094
  }
2089
- const kr = /* @__PURE__ */ Y(br, [["render", _r], ["__scopeId", "data-v-a75dcce3"]]), zr = {
2095
+ const kr = /* @__PURE__ */ Y(br, [["render", _r], ["__scopeId", "data-v-c99525a1"]]), zr = {
2090
2096
  name: "IdmLoadLine",
2091
2097
  props: {
2092
2098
  map: {
@@ -2970,17 +2976,17 @@ const Yr = {
2970
2976
  }, Ll = { class: "px-1 text-center" }, Pl = { class: "px-1 text-center" }, Cl = { class: "px-1 text-center" };
2971
2977
  function Tl(t, e, o, i, a, r) {
2972
2978
  const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), p = x("v-card");
2973
- return y(), A(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2979
+ return y(), D(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2974
2980
  default: u(() => {
2975
- var f, w, L, _;
2981
+ var f, w, P, z;
2976
2982
  return [
2977
2983
  d(c, { class: "w-100" }, {
2978
2984
  default: u(() => {
2979
- var P;
2985
+ var L;
2980
2986
  return [
2981
2987
  l("div", Kr, [
2982
2988
  l("div", Xr, [
2983
- l("div", null, h((P = o.station) == null ? void 0 : P.name), 1)
2989
+ l("div", null, h((L = o.station) == null ? void 0 : L.name), 1)
2984
2990
  ]),
2985
2991
  d(s, {
2986
2992
  icon: "",
@@ -3024,7 +3030,7 @@ function Tl(t, e, o, i, a, r) {
3024
3030
  ]),
3025
3031
  l("div", nl, [
3026
3032
  l("div", cl, h(t.$t("tide.position")), 1),
3027
- l("div", ml, h(r.computeLng((L = o.station) == null ? void 0 : L.lng) ?? "-") + " , " + h(r.computeLat((_ = o.station) == null ? void 0 : _.lat) ?? "-"), 1)
3033
+ l("div", ml, h(r.computeLng((P = o.station) == null ? void 0 : P.lng) ?? "-") + " , " + h(r.computeLat((z = o.station) == null ? void 0 : z.lat) ?? "-"), 1)
3028
3034
  ]),
3029
3035
  l("div", dl, [
3030
3036
  l("div", hl, h(t.$t("time.localTime")), 1),
@@ -3047,7 +3053,7 @@ function Tl(t, e, o, i, a, r) {
3047
3053
  l("div", wl, [
3048
3054
  d(g, {
3049
3055
  modelValue: a.currentIndex,
3050
- "onUpdate:modelValue": e[0] || (e[0] = (P) => a.currentIndex = P),
3056
+ "onUpdate:modelValue": e[0] || (e[0] = (L) => a.currentIndex = L),
3051
3057
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
3052
3058
  density: "compact",
3053
3059
  group: "",
@@ -3056,15 +3062,15 @@ function Tl(t, e, o, i, a, r) {
3056
3062
  rounded: "1"
3057
3063
  }, {
3058
3064
  default: u(() => [
3059
- (y(!0), S(be, null, we(r.dateList, (P) => (y(), A(s, {
3065
+ (y(!0), S(be, null, we(r.dateList, (L) => (y(), D(s, {
3060
3066
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
3061
3067
  density: "compact",
3062
3068
  color: "primary",
3063
3069
  height: "26",
3064
- value: P.index
3070
+ value: L.index
3065
3071
  }, {
3066
3072
  default: u(() => [
3067
- N(h(P.label), 1)
3073
+ N(h(L.label), 1)
3068
3074
  ]),
3069
3075
  _: 2
3070
3076
  }, 1032, ["value"]))), 256))
@@ -3079,12 +3085,12 @@ function Tl(t, e, o, i, a, r) {
3079
3085
  l("th", kl, h(t.$t("time.time")) + " ( LT )", 1),
3080
3086
  l("th", zl, h(t.$t("tide.height")) + " ( m )", 1)
3081
3087
  ]),
3082
- (y(!0), S(be, null, we(a.tideTableData, (P, b) => {
3083
- var D;
3088
+ (y(!0), S(be, null, we(a.tideTableData, (L, b) => {
3089
+ var A;
3084
3090
  return y(), S("tr", { key: b }, [
3085
- l("td", Ll, h(t.$t(`tide.${(D = P == null ? void 0 : P.type) == null ? void 0 : D.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3086
- l("td", Pl, h(r.computeHourLT(P == null ? void 0 : P.date, o.station)), 1),
3087
- l("td", Cl, h((P == null ? void 0 : P.height) ?? "-") + " m", 1)
3091
+ l("td", Ll, h(t.$t(`tide.${(A = L == null ? void 0 : L.type) == null ? void 0 : A.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3092
+ l("td", Pl, h(r.computeHourLT(L == null ? void 0 : L.date, o.station)), 1),
3093
+ l("td", Cl, h((L == null ? void 0 : L.height) ?? "-") + " m", 1)
3088
3094
  ]);
3089
3095
  }), 128))
3090
3096
  ])
@@ -3168,16 +3174,18 @@ const Il = {
3168
3174
  e.properties && (this.station = e.properties, this.station.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.station.lng = e.geometry.coordinates[0], this.station.lat = e.geometry.coordinates[1], this.showDetail = !0);
3169
3175
  },
3170
3176
  handleHover(t) {
3177
+ var o, i;
3171
3178
  this.map.getCanvas().style.cursor = "pointer";
3172
3179
  const e = t.features[0];
3173
3180
  if (e.properties) {
3174
- this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1];
3175
- const o = document.getElementById("idmTidalInfo");
3176
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(o).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
3181
+ this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1], (o = this.marker) == null || o.remove();
3182
+ const a = (i = document.getElementById("idmTidalInfo")) == null ? void 0 : i.cloneNode(!0);
3183
+ this.marker = new ve.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
3177
3184
  }
3178
3185
  },
3179
3186
  handleLeave() {
3180
- this.showInfo = !1, this.hoverStation = {}, this.map.getCanvas().style.cursor = "grab";
3187
+ var t;
3188
+ this.showInfo = !1, this.hoverStation = {}, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
3181
3189
  },
3182
3190
  handleCloseDetail() {
3183
3191
  this.showDetail = !1;
@@ -3187,7 +3195,7 @@ const Il = {
3187
3195
  function Ol(t, e, o, i, a, r) {
3188
3196
  const s = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
3189
3197
  return y(), S("div", null, [
3190
- Ne(d(c, { id: "idmTidalInfo" }, {
3198
+ He(d(c, { id: "idmTidalInfo" }, {
3191
3199
  default: u(() => [
3192
3200
  d(s, { class: "pr-8 text-body-1" }, {
3193
3201
  default: u(() => {
@@ -3206,16 +3214,16 @@ function Ol(t, e, o, i, a, r) {
3206
3214
  ]),
3207
3215
  _: 1
3208
3216
  }, 512), [
3209
- [Fe, a.showInfo]
3217
+ [Ue, a.showInfo]
3210
3218
  ]),
3211
- a.showDetail ? (y(), A(n, B({
3219
+ a.showDetail ? (y(), D(n, B({
3212
3220
  key: 0,
3213
3221
  station: a.station,
3214
3222
  onClose: r.handleCloseDetail
3215
3223
  }, t.$attrs), null, 16, ["station", "onClose"])) : O("", !0)
3216
3224
  ]);
3217
3225
  }
3218
- const Bl = /* @__PURE__ */ Y(Il, [["render", Ol], ["__scopeId", "data-v-697976e5"]]), El = {
3226
+ const Bl = /* @__PURE__ */ Y(Il, [["render", Ol], ["__scopeId", "data-v-0d88b6ab"]]), El = {
3219
3227
  name: "IdmIceAreas",
3220
3228
  props: {
3221
3229
  map: {
@@ -4338,16 +4346,18 @@ const Ul = {
4338
4346
  this.portId = e.properties.id, e.properties.id && (this.port = e.properties, this.port.lng = e.geometry.coordinates[0], this.port.lat = e.geometry.coordinates[1], this.port.forecastModel = this.forecastModel, this.showDetail = !0);
4339
4347
  },
4340
4348
  handleHover(t) {
4349
+ var i, a;
4341
4350
  this.map.getCanvas().style.cursor = "pointer";
4342
4351
  const e = t.features[0];
4343
4352
  if (e.properties.id) {
4344
- this.showInfo = !0, this.hoverPort = e.properties;
4345
- const i = document.getElementById("idmFollowPortInfo");
4346
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4353
+ this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
4354
+ const r = (a = document.getElementById("idmFollowPortInfo")) == null ? void 0 : a.cloneNode(!0);
4355
+ this.marker = new ve.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4347
4356
  }
4348
4357
  },
4349
4358
  handleLeave() {
4350
- this.showInfo = !1, this.hoverPort = {}, this.map.getCanvas().style.cursor = "grab";
4359
+ var t;
4360
+ this.showInfo = !1, this.hoverPort = {}, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
4351
4361
  },
4352
4362
  handleCloseDetail() {
4353
4363
  this.showDetail = !1;
@@ -4357,7 +4367,7 @@ const Ul = {
4357
4367
  function Zl(t, e, o, i, a, r) {
4358
4368
  const s = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
4359
4369
  return y(), S("div", null, [
4360
- Ne(d(c, {
4370
+ He(d(c, {
4361
4371
  id: "idmFollowPortInfo",
4362
4372
  ref: "idmFollowPortInfo"
4363
4373
  }, {
@@ -4380,9 +4390,9 @@ function Zl(t, e, o, i, a, r) {
4380
4390
  ]),
4381
4391
  _: 1
4382
4392
  }, 512), [
4383
- [Fe, a.showInfo]
4393
+ [Ue, a.showInfo]
4384
4394
  ]),
4385
- a.showDetail ? (y(), A(n, B({
4395
+ a.showDetail ? (y(), D(n, B({
4386
4396
  key: 0,
4387
4397
  portId: a.portId,
4388
4398
  port: a.port,
@@ -4393,7 +4403,7 @@ function Zl(t, e, o, i, a, r) {
4393
4403
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : O("", !0)
4394
4404
  ]);
4395
4405
  }
4396
- const ql = /* @__PURE__ */ Y(Ul, [["render", Zl], ["__scopeId", "data-v-8a886ac9"]]);
4406
+ const ql = /* @__PURE__ */ Y(Ul, [["render", Zl], ["__scopeId", "data-v-3bd34216"]]);
4397
4407
  const Yl = {
4398
4408
  name: "IdmFollowPosition",
4399
4409
  props: {
@@ -5287,26 +5297,28 @@ const Yl = {
5287
5297
  if (e.properties) {
5288
5298
  const f = e.properties;
5289
5299
  f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1], console.log("point", f);
5290
- const w = M(), L = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), _ = {
5300
+ const w = M(), P = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), z = {
5291
5301
  lat: f.lat,
5292
5302
  lng: f.lng,
5293
5303
  datetime: this.realTime,
5294
5304
  forecastModel: this.forecastModel
5295
5305
  };
5296
- L >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(_) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(_);
5306
+ P >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(z) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(z);
5297
5307
  }
5298
5308
  },
5299
5309
  handleHover(t) {
5310
+ var o;
5300
5311
  this.map.getCanvas().style.cursor = "pointer";
5301
5312
  const e = t.features[0];
5302
5313
  if (e.properties.id) {
5303
- this.showInfo = !0, this.position = e.properties;
5304
- const o = document.getElementById("idmFollowPositionInfo");
5305
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(o).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
5314
+ this.showInfo = !0, this.position = e.properties, (o = this.marker) == null || o.remove();
5315
+ const i = document.getElementById("idmFollowPositionInfo").cloneNode(!0);
5316
+ this.marker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
5306
5317
  }
5307
5318
  },
5308
5319
  handleLeave() {
5309
- this.map.getCanvas().style.cursor = "grab", this.showInfo = !1;
5320
+ var t;
5321
+ this.showInfo = !1, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
5310
5322
  }
5311
5323
  }
5312
5324
  }, Kl = { class: "position-box d-flex flex-column justify-center align-start ga-1" }, Xl = { class: "d-flex justify-start align-center text-label" }, $l = {
@@ -5315,7 +5327,7 @@ const Yl = {
5315
5327
  };
5316
5328
  function Ql(t, e, o, i, a, r) {
5317
5329
  const s = x("v-card-text"), c = x("v-card");
5318
- return Ne((y(), A(c, {
5330
+ return He((y(), D(c, {
5319
5331
  id: "idmFollowPositionInfo",
5320
5332
  ref: "idmFollowPositionInfo"
5321
5333
  }, {
@@ -5337,10 +5349,10 @@ function Ql(t, e, o, i, a, r) {
5337
5349
  ]),
5338
5350
  _: 1
5339
5351
  }, 512)), [
5340
- [Fe, a.showInfo]
5352
+ [Ue, a.showInfo]
5341
5353
  ]);
5342
5354
  }
5343
- const Jl = /* @__PURE__ */ Y(Yl, [["render", Ql], ["__scopeId", "data-v-f1715bad"]]);
5355
+ const Jl = /* @__PURE__ */ Y(Yl, [["render", Ql], ["__scopeId", "data-v-5d4ac543"]]);
5344
5356
  const es = {
5345
5357
  name: "IdmOtherLayerr",
5346
5358
  components: {
@@ -5519,8 +5531,8 @@ const es = {
5519
5531
  })
5520
5532
  );
5521
5533
  (await Promise.all(s)).map((n) => {
5522
- var f, w, L;
5523
- const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (L = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : L.key;
5534
+ var f, w, P;
5535
+ const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (P = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : P.key;
5524
5536
  this.otherLayers[p] = g;
5525
5537
  });
5526
5538
  }
@@ -5559,7 +5571,7 @@ const es = {
5559
5571
  }, ds = { class: "text-body-2 text-center pt-1" };
5560
5572
  function hs(t, e, o, i, a, r) {
5561
5573
  var Q, re, de, pe, se, $, ae, ue, ne;
5562
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), L = x("IdmLatLng"), _ = x("IdmTerminator"), P = x("IdmTimezone"), b = x("IdmPort"), D = x("IdmAlertZone"), I = x("IdmTideStations"), C = x("IdmEcaZone"), v = x("IdmWarZone"), k = x("IdmGmdssArea"), T = x("IdmLoadLine"), z = x("IdmWorldMarine"), R = x("IdmVRA"), V = x("IdmSpecialArea"), K = x("IdmWorld12nm"), X = x("IdmChinaRoute"), Z = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5574
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), P = x("IdmLatLng"), z = x("IdmTerminator"), L = x("IdmTimezone"), b = x("IdmPort"), A = x("IdmAlertZone"), I = x("IdmTideStations"), C = x("IdmEcaZone"), v = x("IdmWarZone"), _ = x("IdmGmdssArea"), T = x("IdmLoadLine"), k = x("IdmWorldMarine"), R = x("IdmVRA"), V = x("IdmSpecialArea"), K = x("IdmWorld12nm"), X = x("IdmChinaRoute"), Z = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5563
5575
  return y(), S("div", ts, [
5564
5576
  l("div", {
5565
5577
  class: "menu-bar-box transition px-1 rounded",
@@ -5643,7 +5655,7 @@ function hs(t, e, o, i, a, r) {
5643
5655
  l("div", ds, h(t.$t(`layer.${F.locale}`)), 1)
5644
5656
  ], 8, ls))), 128))
5645
5657
  ]),
5646
- (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), A(p, {
5658
+ (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), D(p, {
5647
5659
  key: F.key,
5648
5660
  modelValue: a.checkList,
5649
5661
  "onUpdate:modelValue": e[0] || (e[0] = (ce) => a.checkList = ce),
@@ -5682,7 +5694,7 @@ function hs(t, e, o, i, a, r) {
5682
5694
  }),
5683
5695
  d(f, { class: "py-2" }, {
5684
5696
  default: u(() => [
5685
- (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), A(p, {
5697
+ (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), D(p, {
5686
5698
  key: F.key,
5687
5699
  modelValue: a.checkList,
5688
5700
  "onUpdate:modelValue": e[1] || (e[1] = (ce) => a.checkList = ce),
@@ -5721,7 +5733,7 @@ function hs(t, e, o, i, a, r) {
5721
5733
  }),
5722
5734
  d(f, { class: "py-2" }, {
5723
5735
  default: u(() => [
5724
- (y(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), A(p, {
5736
+ (y(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), D(p, {
5725
5737
  key: F.key,
5726
5738
  modelValue: a.checkList,
5727
5739
  "onUpdate:modelValue": e[2] || (e[2] = (ce) => a.checkList = ce),
@@ -5790,23 +5802,23 @@ function hs(t, e, o, i, a, r) {
5790
5802
  })
5791
5803
  ])
5792
5804
  ], 6),
5793
- o.map ? (y(), A(L, B({
5805
+ o.map ? (y(), D(P, B({
5794
5806
  key: 0,
5795
5807
  map: o.map,
5796
5808
  "menu-toggle": o.menuToggle,
5797
5809
  show: a.checkList.includes("graticule")
5798
5810
  }, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : O("", !0),
5799
- o.map ? (y(), A(_, B({
5811
+ o.map ? (y(), D(z, B({
5800
5812
  key: 1,
5801
5813
  map: o.map,
5802
5814
  area: (Q = a.otherLayers) == null ? void 0 : Q["day-night"]
5803
5815
  }, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
5804
- o.map ? (y(), A(P, B({
5816
+ o.map ? (y(), D(L, B({
5805
5817
  key: 2,
5806
5818
  map: o.map,
5807
5819
  zone: (re = a.otherLayers) == null ? void 0 : re["time-zones"]
5808
5820
  }, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
5809
- o.map ? (y(), A(b, B({
5821
+ o.map ? (y(), D(b, B({
5810
5822
  key: 3,
5811
5823
  ref: "idmPorts",
5812
5824
  map: o.map,
@@ -5816,7 +5828,7 @@ function hs(t, e, o, i, a, r) {
5816
5828
  "forecast-model": o.forecastModel,
5817
5829
  realTime: o.realTime
5818
5830
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : O("", !0),
5819
- o.map ? (y(), A(D, B({
5831
+ o.map ? (y(), D(A, B({
5820
5832
  key: 4,
5821
5833
  map: o.map,
5822
5834
  zone: (pe = a.otherLayers) == null ? void 0 : pe["alert-zones"]
@@ -5824,7 +5836,7 @@ function hs(t, e, o, i, a, r) {
5824
5836
  "before-layer": "empty-layer-3",
5825
5837
  theme: o.theme
5826
5838
  }), null, 16, ["map", "zone", "theme"])) : O("", !0),
5827
- o.map ? (y(), A(I, B({
5839
+ o.map ? (y(), D(I, B({
5828
5840
  key: 5,
5829
5841
  ref: "idmIideStation",
5830
5842
  map: o.map,
@@ -5836,60 +5848,60 @@ function hs(t, e, o, i, a, r) {
5836
5848
  forecastModel: o.forecastModel,
5837
5849
  "before-layer": "empty-layer-3"
5838
5850
  }, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : O("", !0),
5839
- o.map ? (y(), A(C, B({
5851
+ o.map ? (y(), D(C, B({
5840
5852
  key: 6,
5841
5853
  map: o.map,
5842
5854
  zone: (se = a.otherLayers) == null ? void 0 : se["eca-zones"]
5843
5855
  }, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
5844
- o.map ? (y(), A(v, B({
5856
+ o.map ? (y(), D(v, B({
5845
5857
  key: 7,
5846
5858
  map: o.map,
5847
5859
  zone: ($ = a.otherLayers) == null ? void 0 : $["war-zones"]
5848
5860
  }, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
5849
- o.map ? (y(), A(k, B({
5861
+ o.map ? (y(), D(_, B({
5850
5862
  key: 8,
5851
5863
  map: o.map,
5852
5864
  area: (ae = a.otherLayers) == null ? void 0 : ae["gmdss-areas"]
5853
5865
  }, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
5854
- o.map ? (y(), A(T, B({
5866
+ o.map ? (y(), D(T, B({
5855
5867
  key: 9,
5856
5868
  map: o.map,
5857
5869
  show: a.checkList.includes("load-lines")
5858
5870
  }, t.$attrs), null, 16, ["map", "show"])) : O("", !0),
5859
- o.map ? (y(), A(z, B({
5871
+ o.map ? (y(), D(k, B({
5860
5872
  key: 10,
5861
5873
  map: o.map,
5862
5874
  token: o.token,
5863
5875
  show: a.checkList.includes("worldMarine")
5864
5876
  }, t.$attrs), null, 16, ["map", "token", "show"])) : O("", !0),
5865
- o.map ? (y(), A(R, B({
5877
+ o.map ? (y(), D(R, B({
5866
5878
  key: 11,
5867
5879
  map: o.map,
5868
5880
  area: (ue = a.otherLayers) == null ? void 0 : ue["voluntary-reporting-area"]
5869
5881
  }, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
5870
- o.map ? (y(), A(V, B({
5882
+ o.map ? (y(), D(V, B({
5871
5883
  key: 12,
5872
5884
  map: o.map,
5873
5885
  area: (ne = a.otherLayers) == null ? void 0 : ne["special-area"]
5874
5886
  }, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
5875
- o.map ? (y(), A(K, B({
5887
+ o.map ? (y(), D(K, B({
5876
5888
  key: 13,
5877
5889
  map: o.map,
5878
5890
  token: o.token,
5879
5891
  show: a.checkList.includes("world12nm")
5880
5892
  }, t.$attrs), null, 16, ["map", "token", "show"])) : O("", !0),
5881
- o.map ? (y(), A(X, B({
5893
+ o.map ? (y(), D(X, B({
5882
5894
  key: 14,
5883
5895
  map: o.map,
5884
5896
  token: o.token,
5885
5897
  show: a.checkList.includes("chinaRoute")
5886
5898
  }, t.$attrs), null, 16, ["map", "token", "show"])) : O("", !0),
5887
- o.map ? (y(), A(Z, B({
5899
+ o.map ? (y(), D(Z, B({
5888
5900
  key: 15,
5889
5901
  map: o.map,
5890
5902
  show: a.checkList.includes("ice-areas")
5891
5903
  }, t.$attrs), null, 16, ["map", "show"])) : O("", !0),
5892
- o.map ? (y(), A(J, B({
5904
+ o.map ? (y(), D(J, B({
5893
5905
  key: 16,
5894
5906
  ref: "idmFollowPort",
5895
5907
  map: o.map,
@@ -5899,7 +5911,7 @@ function hs(t, e, o, i, a, r) {
5899
5911
  "forecast-model": o.forecastModel,
5900
5912
  realTime: o.realTime
5901
5913
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : O("", !0),
5902
- o.map ? (y(), A(ee, B({
5914
+ o.map ? (y(), D(ee, B({
5903
5915
  key: 17,
5904
5916
  ref: "idmFollowPosition",
5905
5917
  map: o.map,
@@ -5956,12 +5968,12 @@ class so {
5956
5968
  * @param [lb.x, lb.y, rt.x, rt.y]
5957
5969
  */
5958
5970
  getBoundPixel() {
5959
- var _, P;
5960
- const e = (_ = this.map) == null ? void 0 : _.getBounds();
5971
+ var z, L;
5972
+ const e = (z = this.map) == null ? void 0 : z.getBounds();
5961
5973
  if (!e)
5962
5974
  return [];
5963
- const o = ((P = this.map) == null ? void 0 : P.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [f, w] = this.mercator.px([c, a[1]], o), L = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
5964
- return [f, w, g + L, p];
5975
+ const o = ((L = this.map) == null ? void 0 : L.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [f, w] = this.mercator.px([c, a[1]], o), P = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
5976
+ return [f, w, g + P, p];
5965
5977
  }
5966
5978
  /**
5967
5979
  * [视窗边界像素宽度]
@@ -6000,7 +6012,7 @@ class so {
6000
6012
  o !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
6001
6013
  }
6002
6014
  }
6003
- class He {
6015
+ class Ne {
6004
6016
  /**
6005
6017
  * 创建着色器
6006
6018
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -6144,9 +6156,9 @@ class He {
6144
6156
  sRange: o.getUniformLocation(i, "u_range_s")
6145
6157
  };
6146
6158
  p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
6147
- const f = e.getBoundPixel(), w = e.map.getZoom() + 1, L = e.getWorldCopy(f, w);
6148
- for (const _ of L) {
6149
- const P = (_[0] - f[0]) * e.ratio, b = (_[1] - f[3]) * e.ratio, D = _[2] * e.ratio, [I, C, v, k] = [P, D + P, b, D + b], T = new Float32Array([I, v, C, v, I, k, I, k, C, v, C, k]);
6159
+ const f = e.getBoundPixel(), w = e.map.getZoom() + 1, P = e.getWorldCopy(f, w);
6160
+ for (const z of P) {
6161
+ const L = (z[0] - f[0]) * e.ratio, b = (z[1] - f[3]) * e.ratio, A = z[2] * e.ratio, [I, C, v, _] = [L, A + L, b, A + b], T = new Float32Array([I, v, C, v, I, _, I, _, C, v, C, _]);
6150
6162
  o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, T, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
6151
6163
  }
6152
6164
  } catch (p) {
@@ -6575,7 +6587,7 @@ const bs = {
6575
6587
  texture: void 0,
6576
6588
  rampColor: void 0,
6577
6589
  aPositionBuffer: void 0,
6578
- webgl: new He(),
6590
+ webgl: new Ne(),
6579
6591
  etime: void 0,
6580
6592
  wrapper: void 0,
6581
6593
  animation: void 0,
@@ -6915,7 +6927,7 @@ const Ls = {
6915
6927
  texture: void 0,
6916
6928
  rampColor: void 0,
6917
6929
  aPositionBuffer: void 0,
6918
- webgl: new He(),
6930
+ webgl: new Ne(),
6919
6931
  etime: void 0,
6920
6932
  wrapper: void 0,
6921
6933
  animation: void 0,
@@ -7097,7 +7109,7 @@ const Ss = {
7097
7109
  texture: void 0,
7098
7110
  rampColor: void 0,
7099
7111
  aPositionBuffer: void 0,
7100
- webgl: new He(),
7112
+ webgl: new Ne(),
7101
7113
  etime: void 0,
7102
7114
  right: 10
7103
7115
  };
@@ -7701,7 +7713,7 @@ const Ws = {
7701
7713
  texture: void 0,
7702
7714
  rampColor: void 0,
7703
7715
  aPositionBuffer: void 0,
7704
- webgl: new He(),
7716
+ webgl: new Ne(),
7705
7717
  etime: void 0,
7706
7718
  right: 10
7707
7719
  };
@@ -7822,7 +7834,7 @@ const qs = {
7822
7834
  texture: void 0,
7823
7835
  rampColor: void 0,
7824
7836
  aPositionBuffer: void 0,
7825
- webgl: new He(),
7837
+ webgl: new Ne(),
7826
7838
  etime: void 0,
7827
7839
  right: 10
7828
7840
  };
@@ -7928,7 +7940,7 @@ const $s = {
7928
7940
  texture: void 0,
7929
7941
  rampColor: void 0,
7930
7942
  aPositionBuffer: void 0,
7931
- webgl: new He(),
7943
+ webgl: new Ne(),
7932
7944
  etime: void 0,
7933
7945
  right: 10
7934
7946
  };
@@ -8047,7 +8059,7 @@ const tn = {
8047
8059
  texture: void 0,
8048
8060
  rampColor: void 0,
8049
8061
  aPositionBuffer: void 0,
8050
- webgl: new He(),
8062
+ webgl: new Ne(),
8051
8063
  etime: void 0,
8052
8064
  right: 10
8053
8065
  };
@@ -8161,7 +8173,7 @@ const ln = {
8161
8173
  texture: void 0,
8162
8174
  rampColor: void 0,
8163
8175
  aPositionBuffer: void 0,
8164
- webgl: new He(),
8176
+ webgl: new Ne(),
8165
8177
  etime: void 0
8166
8178
  };
8167
8179
  },
@@ -8261,7 +8273,7 @@ const mn = {
8261
8273
  texture: void 0,
8262
8274
  rampColor: void 0,
8263
8275
  aPositionBuffer: void 0,
8264
- webgl: new He(),
8276
+ webgl: new Ne(),
8265
8277
  etime: void 0,
8266
8278
  right: 10
8267
8279
  };
@@ -8377,7 +8389,7 @@ const un = {
8377
8389
  texture: void 0,
8378
8390
  rampColor: void 0,
8379
8391
  aPositionBuffer: void 0,
8380
- webgl: new He(),
8392
+ webgl: new Ne(),
8381
8393
  etime: void 0,
8382
8394
  right: 10
8383
8395
  };
@@ -8730,19 +8742,19 @@ const bn = {
8730
8742
  const e = (/* @__PURE__ */ new Date()).valueOf();
8731
8743
  let o = 0, i = 0;
8732
8744
  if (this.map) {
8733
- const L = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, _ = (r = this.map) == null ? void 0 : r.getBounds(), P = `${_._sw.lng},${_._sw.lat},${_._ne.lng},${_._ne.lat}`;
8745
+ const P = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, z = (r = this.map) == null ? void 0 : r.getBounds(), L = `${z._sw.lng},${z._sw.lat},${z._ne.lng},${z._ne.lat}`;
8734
8746
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
8735
- const b = ao.WEATHER_LAYERS.find((D) => {
8747
+ const b = ao.WEATHER_LAYERS.find((A) => {
8736
8748
  var I;
8737
- return ((I = D.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
8749
+ return ((I = A.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
8738
8750
  });
8739
8751
  this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & b.weight ? this.weatherWeight : this.weatherWeight + b.weight : this.weatherWeight = this.weatherWeight & b.weight ? this.weatherWeight - b.weight : this.weatherWeight;
8740
8752
  }
8741
8753
  if (this.weatherWeight > 0) {
8742
8754
  let b = this.weatherWeight;
8743
8755
  if (b > 0) {
8744
- const D = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8745
- `${D}/api/arc/weather/layers2/links?l=${b}&v=${this.forecastModel}&z=${L}&bbox=${P}&t=${this.realTime}`,
8756
+ const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8757
+ `${A}/api/arc/weather/layers2/links?l=${b}&v=${this.forecastModel}&z=${P}&bbox=${L}&t=${this.realTime}`,
8746
8758
  {
8747
8759
  headers: {
8748
8760
  Authorization: this.token || this.defaultMeteoToken
@@ -8759,17 +8771,17 @@ const bn = {
8759
8771
  key: T
8760
8772
  },
8761
8773
  responseType: /\.(jpg|png)$/.test(C[T]) ? "blob" : "json"
8762
- }).catch((z) => {
8763
- console.log(`[${T}] fetch layer error: ${z}`);
8774
+ }).catch((k) => {
8775
+ console.log(`[${T}] fetch layer error: ${k}`);
8764
8776
  })
8765
8777
  );
8766
- const k = await Promise.all(v);
8767
- this.weatherLayers = {}, k.map((T) => {
8778
+ const _ = await Promise.all(v);
8779
+ this.weatherLayers = {}, _.map((T) => {
8768
8780
  var V, K, X, Z;
8769
- const z = ((V = T == null ? void 0 : T.data) == null ? void 0 : V.data) || (T == null ? void 0 : T.data);
8781
+ const k = ((V = T == null ? void 0 : T.data) == null ? void 0 : V.data) || (T == null ? void 0 : T.data);
8770
8782
  let R = (X = (K = T == null ? void 0 : T.config) == null ? void 0 : K.headers) == null ? void 0 : X.key;
8771
- R && z && (this.weatherLayers[R] = {
8772
- raw: z,
8783
+ R && k && (this.weatherLayers[R] = {
8784
+ raw: k,
8773
8785
  type: ((Z = T == null ? void 0 : T.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
8774
8786
  etime: I.data.etime
8775
8787
  });
@@ -8846,51 +8858,51 @@ const bn = {
8846
8858
  );
8847
8859
  },
8848
8860
  handleDrawWeather4Json() {
8849
- var g, p, f, w, L, _, P;
8861
+ var g, p, f, w, P, z, L;
8850
8862
  const t = (/* @__PURE__ */ new Date()).valueOf();
8851
8863
  let e = 0, o = 0;
8852
8864
  const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = G.convertToStdLng(i._sw.lng), s = G.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
8853
8865
  for (const b in this.weatherLayers) {
8854
- let D = !1;
8866
+ let A = !1;
8855
8867
  if (this.weatherLayers[b].active && this.weatherLayers[b].type === "json") {
8856
8868
  let I = [];
8857
8869
  if (b === "swell") {
8858
- D = !0;
8870
+ A = !0;
8859
8871
  const C = ((f = this.weatherLayers[b]) == null ? void 0 : f.direction) || {};
8860
- for (const k in C)
8861
- if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8862
- const T = C[k].lng;
8863
- r > s ? T.forEach((z, R) => {
8872
+ for (const _ in C)
8873
+ if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8874
+ const T = C[_].lng;
8875
+ r > s ? T.forEach((k, R) => {
8864
8876
  var V, K, X, Z, J, ee;
8865
8877
  if (a < 2) {
8866
- if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8867
- const Q = H.point([z, k], {
8868
- val: ((V = C[k].val) == null ? void 0 : V[R]) || ((K = C[k].dir) == null ? void 0 : K[R]),
8869
- spd: (X = C[k].spd) == null ? void 0 : X[R]
8878
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8879
+ const Q = H.point([k, _], {
8880
+ val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
8881
+ spd: (X = C[_].spd) == null ? void 0 : X[R]
8870
8882
  });
8871
8883
  I.push(Q);
8872
8884
  }
8873
- } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8874
- const Q = H.point([z, k], {
8875
- val: ((Z = C[k].val) == null ? void 0 : Z[R]) || ((J = C[k].dir) == null ? void 0 : J[R]),
8876
- spd: (ee = C[k].spd) == null ? void 0 : ee[R]
8885
+ } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8886
+ const Q = H.point([k, _], {
8887
+ val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
8888
+ spd: (ee = C[_].spd) == null ? void 0 : ee[R]
8877
8889
  });
8878
8890
  I.push(Q);
8879
8891
  }
8880
- }) : T.forEach((z, R) => {
8892
+ }) : T.forEach((k, R) => {
8881
8893
  var V, K, X, Z, J, ee;
8882
8894
  if (r < 2) {
8883
- if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8884
- const Q = H.point([z, k], {
8885
- val: ((V = C[k].val) == null ? void 0 : V[R]) || ((K = C[k].dir) == null ? void 0 : K[R]),
8886
- spd: (X = C[k].spd) == null ? void 0 : X[R]
8895
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8896
+ const Q = H.point([k, _], {
8897
+ val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
8898
+ spd: (X = C[_].spd) == null ? void 0 : X[R]
8887
8899
  });
8888
8900
  I.push(Q);
8889
8901
  }
8890
- } else if (z >= r && z <= s && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8891
- const Q = H.point([z, k], {
8892
- val: ((Z = C[k].val) == null ? void 0 : Z[R]) || ((J = C[k].dir) == null ? void 0 : J[R]),
8893
- spd: (ee = C[k].spd) == null ? void 0 : ee[R]
8902
+ } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8903
+ const Q = H.point([k, _], {
8904
+ val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
8905
+ spd: (ee = C[_].spd) == null ? void 0 : ee[R]
8894
8906
  });
8895
8907
  I.push(Q);
8896
8908
  }
@@ -8900,61 +8912,61 @@ const bn = {
8900
8912
  const v = this.weatherLayers[b].height;
8901
8913
  if (v) {
8902
8914
  if (!v.data) {
8903
- const k = [];
8915
+ const _ = [];
8904
8916
  for (const T in (w = v.raw) == null ? void 0 : w.LineString) {
8905
- const z = v.raw.LineString[T];
8906
- for (const R of z)
8907
- k.push(
8917
+ const k = v.raw.LineString[T];
8918
+ for (const R of k)
8919
+ _.push(
8908
8920
  H.lineString(R, {
8909
8921
  val: Number(T)
8910
8922
  })
8911
8923
  );
8912
- v.data = H.featureCollection(k);
8924
+ v.data = H.featureCollection(_);
8913
8925
  }
8914
8926
  }
8915
8927
  if (v.data) {
8916
- const k = this.handleBboxClip(v.data, i);
8917
- I = I.concat(k);
8928
+ const _ = this.handleBboxClip(v.data, i);
8929
+ I = I.concat(_);
8918
8930
  }
8919
8931
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
8920
8932
  }
8921
8933
  } else if (b === "current") {
8922
- D = !0;
8923
- const C = ((L = this.weatherLayers[b]) == null ? void 0 : L.direction) || {};
8924
- for (const k in C)
8925
- if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8926
- const T = C[k].lng;
8927
- r > s ? T.forEach((z, R) => {
8934
+ A = !0;
8935
+ const C = ((P = this.weatherLayers[b]) == null ? void 0 : P.direction) || {};
8936
+ for (const _ in C)
8937
+ if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8938
+ const T = C[_].lng;
8939
+ r > s ? T.forEach((k, R) => {
8928
8940
  var V, K, X, Z, J, ee;
8929
8941
  if (a < 2) {
8930
- if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8931
- const Q = H.point([z, k], {
8932
- val: ((V = C[k].val) == null ? void 0 : V[R]) || ((K = C[k].dir) == null ? void 0 : K[R]),
8933
- spd: (X = C[k].spd) == null ? void 0 : X[R]
8942
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8943
+ const Q = H.point([k, _], {
8944
+ val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
8945
+ spd: (X = C[_].spd) == null ? void 0 : X[R]
8934
8946
  });
8935
8947
  I.push(Q);
8936
8948
  }
8937
- } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8938
- const Q = H.point([z, k], {
8939
- val: ((Z = C[k].val) == null ? void 0 : Z[R]) || ((J = C[k].dir) == null ? void 0 : J[R]),
8940
- spd: (ee = C[k].spd) == null ? void 0 : ee[R]
8949
+ } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8950
+ const Q = H.point([k, _], {
8951
+ val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
8952
+ spd: (ee = C[_].spd) == null ? void 0 : ee[R]
8941
8953
  });
8942
8954
  I.push(Q);
8943
8955
  }
8944
- }) : T.forEach((z, R) => {
8956
+ }) : T.forEach((k, R) => {
8945
8957
  var V, K, X, Z, J, ee;
8946
8958
  if (r < 2) {
8947
- if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8948
- const Q = H.point([z, k], {
8949
- val: ((V = C[k].val) == null ? void 0 : V[R]) || ((K = C[k].dir) == null ? void 0 : K[R]),
8950
- spd: (X = C[k].spd) == null ? void 0 : X[R]
8959
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8960
+ const Q = H.point([k, _], {
8961
+ val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
8962
+ spd: (X = C[_].spd) == null ? void 0 : X[R]
8951
8963
  });
8952
8964
  I.push(Q);
8953
8965
  }
8954
- } else if (z >= r && z <= s && (!(a <= this.zoom) || z % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8955
- const Q = H.point([z, k], {
8956
- val: ((Z = C[k].val) == null ? void 0 : Z[R]) || ((J = C[k].dir) == null ? void 0 : J[R]),
8957
- spd: (ee = C[k].spd) == null ? void 0 : ee[R]
8966
+ } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8967
+ const Q = H.point([k, _], {
8968
+ val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
8969
+ spd: (ee = C[_].spd) == null ? void 0 : ee[R]
8958
8970
  });
8959
8971
  I.push(Q);
8960
8972
  }
@@ -8965,57 +8977,57 @@ const bn = {
8965
8977
  if (v) {
8966
8978
  if (!v.data) {
8967
8979
  const T = [];
8968
- for (const z in (_ = v.raw) == null ? void 0 : _.Polygon) {
8969
- const R = v.raw.Polygon[z];
8980
+ for (const k in (z = v.raw) == null ? void 0 : z.Polygon) {
8981
+ const R = v.raw.Polygon[k];
8970
8982
  for (const V of R)
8971
8983
  T.push(
8972
8984
  H.polygon(V, {
8973
- val: Number(z)
8985
+ val: Number(k)
8974
8986
  })
8975
8987
  );
8976
8988
  }
8977
8989
  v.data = H.featureCollection(T);
8978
8990
  }
8979
- const k = a < this.zoom ? v.data.features.filter((T) => T.properties.val > 0.5) : v.data.features;
8980
- I = I.concat(k), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
8991
+ const _ = a < this.zoom ? v.data.features.filter((T) => T.properties.val > 0.5) : v.data.features;
8992
+ I = I.concat(_), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
8981
8993
  }
8982
8994
  } else if (b === "wind") {
8983
- D = !0;
8995
+ A = !0;
8984
8996
  const C = this.weatherLayers.wind.raw;
8985
8997
  for (const v in C)
8986
8998
  if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8987
- const k = C[v].lng;
8988
- r > s ? k.forEach((T, z) => {
8999
+ const _ = C[v].lng;
9000
+ r > s ? _.forEach((T, k) => {
8989
9001
  var R, V, K, X;
8990
9002
  if (a < 2) {
8991
9003
  if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
8992
9004
  const Z = H.point([T, v], {
8993
- dir: ((R = C[v].val) == null ? void 0 : R[z]) || ((V = C[v].dir) == null ? void 0 : V[z]),
8994
- spd: C[v].spd[z]
9005
+ dir: ((R = C[v].val) == null ? void 0 : R[k]) || ((V = C[v].dir) == null ? void 0 : V[k]),
9006
+ spd: C[v].spd[k]
8995
9007
  });
8996
9008
  I.push(Z);
8997
9009
  }
8998
9010
  } else if ((T >= r && T <= 180 || T >= -180 && T <= s) && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8999
9011
  const Z = H.point([T, v], {
9000
- dir: ((K = C[v].val) == null ? void 0 : K[z]) || ((X = C[v].dir) == null ? void 0 : X[z]),
9001
- spd: C[v].spd[z]
9012
+ dir: ((K = C[v].val) == null ? void 0 : K[k]) || ((X = C[v].dir) == null ? void 0 : X[k]),
9013
+ spd: C[v].spd[k]
9002
9014
  });
9003
9015
  I.push(Z);
9004
9016
  }
9005
- }) : k.forEach((T, z) => {
9017
+ }) : _.forEach((T, k) => {
9006
9018
  var R, V, K, X;
9007
9019
  if (a < 2) {
9008
9020
  if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
9009
9021
  const Z = H.point([T, v], {
9010
- dir: ((R = C[v].val) == null ? void 0 : R[z]) || ((V = C[v].dir) == null ? void 0 : V[z]),
9011
- spd: C[v].spd[z]
9022
+ dir: ((R = C[v].val) == null ? void 0 : R[k]) || ((V = C[v].dir) == null ? void 0 : V[k]),
9023
+ spd: C[v].spd[k]
9012
9024
  });
9013
9025
  I.push(Z);
9014
9026
  }
9015
9027
  } else if (T >= r && T <= s && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9016
9028
  const Z = H.point([T, v], {
9017
- dir: ((K = C[v].val) == null ? void 0 : K[z]) || ((X = C[v].dir) == null ? void 0 : X[z]),
9018
- spd: C[v].spd[z]
9029
+ dir: ((K = C[v].val) == null ? void 0 : K[k]) || ((X = C[v].dir) == null ? void 0 : X[k]),
9030
+ spd: C[v].spd[k]
9019
9031
  });
9020
9032
  I.push(Z);
9021
9033
  }
@@ -9026,34 +9038,34 @@ const bn = {
9026
9038
  if (this.weatherLayers[b].data)
9027
9039
  I = this.weatherLayers[b].data;
9028
9040
  else {
9029
- D = !0;
9041
+ A = !0;
9030
9042
  const C = this.weatherLayers[b].raw;
9031
9043
  if (C) {
9032
9044
  const v = [];
9033
- for (const k in C.Polygon) {
9034
- const T = C.Polygon[k];
9035
- for (const z of T)
9045
+ for (const _ in C.Polygon) {
9046
+ const T = C.Polygon[_];
9047
+ for (const k of T)
9036
9048
  v.push(
9037
- H.polygon(z, {
9038
- val: Number(k)
9049
+ H.polygon(k, {
9050
+ val: Number(_)
9039
9051
  })
9040
9052
  );
9041
9053
  }
9042
- for (const k in C.MultiPolygon) {
9043
- const T = C.MultiPolygon[k];
9044
- for (const z of T)
9054
+ for (const _ in C.MultiPolygon) {
9055
+ const T = C.MultiPolygon[_];
9056
+ for (const k of T)
9045
9057
  v.push(
9046
- H.multiPolygon(z, {
9047
- val: Number(k)
9058
+ H.multiPolygon(k, {
9059
+ val: Number(_)
9048
9060
  })
9049
9061
  );
9050
9062
  }
9051
- for (const k in C.Point) {
9052
- const T = C.Point[k];
9053
- for (let z = 0; z < ((P = T.lng) == null ? void 0 : P.length); z++)
9063
+ for (const _ in C.Point) {
9064
+ const T = C.Point[_];
9065
+ for (let k = 0; k < ((L = T.lng) == null ? void 0 : L.length); k++)
9054
9066
  v.push(
9055
- H.point([T.lng[z], k], {
9056
- val: Number(T.val[z])
9067
+ H.point([T.lng[k], _], {
9068
+ val: Number(T.val[k])
9057
9069
  })
9058
9070
  );
9059
9071
  }
@@ -9065,25 +9077,25 @@ const bn = {
9065
9077
  if (this.weatherLayers[b].data)
9066
9078
  I = this.weatherLayers[b].data;
9067
9079
  else {
9068
- D = !0;
9080
+ A = !0;
9069
9081
  const C = this.weatherLayers[b].raw;
9070
9082
  if (C) {
9071
9083
  const v = [];
9072
- for (const k in C.LineString) {
9073
- const T = C.LineString[k];
9074
- for (const z of T)
9084
+ for (const _ in C.LineString) {
9085
+ const T = C.LineString[_];
9086
+ for (const k of T)
9075
9087
  v.push(
9076
- H.lineString(z, {
9077
- val: Number(k)
9088
+ H.lineString(k, {
9089
+ val: Number(_)
9078
9090
  })
9079
9091
  );
9080
9092
  }
9081
- for (const k in C.Point)
9082
- C.Point[k].lng.forEach((T, z) => {
9093
+ for (const _ in C.Point)
9094
+ C.Point[_].lng.forEach((T, k) => {
9083
9095
  T = G.convertToStdLng(T), v.push(
9084
- H.point([T, k], {
9085
- val: C.Point[k].val[z],
9086
- type: C.Point[k].type[z]
9096
+ H.point([T, _], {
9097
+ val: C.Point[_].val[k],
9098
+ type: C.Point[_].type[k]
9087
9099
  })
9088
9100
  );
9089
9101
  });
@@ -9092,7 +9104,7 @@ const bn = {
9092
9104
  }
9093
9105
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
9094
9106
  }
9095
- I.length && (this.weatherLayers[b].data = H.featureCollection(I)), D && (this.weatherLayers[b].version = Math.random() + 1);
9107
+ I.length && (this.weatherLayers[b].data = H.featureCollection(I)), A && (this.weatherLayers[b].version = Math.random() + 1);
9096
9108
  }
9097
9109
  }
9098
9110
  },
@@ -9135,7 +9147,7 @@ const bn = {
9135
9147
  }, Rn = { class: "text-body-1 py-2" }, On = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, Nn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, Xn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label mb-3" };
9136
9148
  function Qn(t, e, o, i, a, r) {
9137
9149
  var pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e;
9138
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), L = x("VSwitch"), _ = x("VCardTitle"), P = x("VCardItem"), b = x("VCheckbox"), D = x("VRadio"), I = x("VBtnToggle"), C = x("IdmWindBarb"), v = x("IdmSigWaveHeight"), k = x("IdmCurrentDirection"), T = x("IdmPrmsl"), z = x("IdmWindParticle"), R = x("IdmCurrentParticle"), V = x("IdmWave"), K = x("IdmSwell"), X = x("IdmIceEdge"), Z = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
9150
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), P = x("VSwitch"), z = x("VCardTitle"), L = x("VCardItem"), b = x("VCheckbox"), A = x("VRadio"), I = x("VBtnToggle"), C = x("IdmWindBarb"), v = x("IdmSigWaveHeight"), _ = x("IdmCurrentDirection"), T = x("IdmPrmsl"), k = x("IdmWindParticle"), R = x("IdmCurrentParticle"), V = x("IdmWave"), K = x("IdmSwell"), X = x("IdmIceEdge"), Z = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
9139
9151
  return y(), S("div", wn, [
9140
9152
  l("div", {
9141
9153
  class: "menu-bar-box transition pa-1",
@@ -9190,7 +9202,7 @@ function Qn(t, e, o, i, a, r) {
9190
9202
  _: 1
9191
9203
  })
9192
9204
  ], 4),
9193
- a.legendToggle ? (y(), A(w, {
9205
+ a.legendToggle ? (y(), D(w, {
9194
9206
  key: 0,
9195
9207
  width: "435",
9196
9208
  elevation: "16",
@@ -9203,7 +9215,7 @@ function Qn(t, e, o, i, a, r) {
9203
9215
  e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
9204
9216
  d(g, { class: "ma-0 ml-n1 text-body-2" }, {
9205
9217
  default: u(() => [
9206
- (y(!0), S(be, null, we(a.legend.barbs, (U, oe) => (y(), A(n, {
9218
+ (y(!0), S(be, null, we(a.legend.barbs, (U, oe) => (y(), D(n, {
9207
9219
  key: U,
9208
9220
  cols: "6",
9209
9221
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -9235,7 +9247,7 @@ function Qn(t, e, o, i, a, r) {
9235
9247
  style: { width: "100px" }
9236
9248
  }, {
9237
9249
  default: u(() => [
9238
- (y(!0), S(be, null, we(a.legend.sigWaveHeight, (U, oe) => (y(), A(n, {
9250
+ (y(!0), S(be, null, we(a.legend.sigWaveHeight, (U, oe) => (y(), D(n, {
9239
9251
  key: oe,
9240
9252
  cols: "12",
9241
9253
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -9267,7 +9279,7 @@ function Qn(t, e, o, i, a, r) {
9267
9279
  style: { width: "110px" }
9268
9280
  }, {
9269
9281
  default: u(() => [
9270
- (y(!0), S(be, null, we(a.legend.current, (U, oe) => (y(), A(n, {
9282
+ (y(!0), S(be, null, we(a.legend.current, (U, oe) => (y(), D(n, {
9271
9283
  key: oe,
9272
9284
  cols: "12",
9273
9285
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
@@ -9303,7 +9315,7 @@ function Qn(t, e, o, i, a, r) {
9303
9315
  l("div", Sn, [
9304
9316
  l("div", In, [
9305
9317
  l("div", Mn, h(t.$t("weather.weather")), 1),
9306
- d(L, {
9318
+ d(P, {
9307
9319
  modelValue: a.autoActive,
9308
9320
  "onUpdate:modelValue": e[1] || (e[1] = (U) => a.autoActive = U),
9309
9321
  class: "small-switch",
@@ -9334,9 +9346,9 @@ function Qn(t, e, o, i, a, r) {
9334
9346
  elevation: "0"
9335
9347
  }, {
9336
9348
  default: u(() => [
9337
- d(P, { class: "border-b-thin" }, {
9349
+ d(L, { class: "border-b-thin" }, {
9338
9350
  default: u(() => [
9339
- d(_, {
9351
+ d(z, {
9340
9352
  class: "text-subtitle-1 font-weight-medium",
9341
9353
  style: { "font-size": "16px !important" }
9342
9354
  }, {
@@ -9350,7 +9362,7 @@ function Qn(t, e, o, i, a, r) {
9350
9362
  }),
9351
9363
  d(p, { class: "py-2" }, {
9352
9364
  default: u(() => [
9353
- (y(!0), S(be, null, we(a.tagLayers.filter((U) => U.overlays), (U) => (y(), A(b, {
9365
+ (y(!0), S(be, null, we(a.tagLayers.filter((U) => U.overlays), (U) => (y(), D(b, {
9354
9366
  key: U.key,
9355
9367
  modelValue: a.checkList,
9356
9368
  "onUpdate:modelValue": e[2] || (e[2] = (oe) => a.checkList = oe),
@@ -9374,9 +9386,9 @@ function Qn(t, e, o, i, a, r) {
9374
9386
  elevation: "0"
9375
9387
  }, {
9376
9388
  default: u(() => [
9377
- d(P, { class: "border-b-thin" }, {
9389
+ d(L, { class: "border-b-thin" }, {
9378
9390
  default: u(() => [
9379
- d(_, {
9391
+ d(z, {
9380
9392
  class: "text-subtitle-1 font-weight-medium",
9381
9393
  style: { "font-size": "16px !important" }
9382
9394
  }, {
@@ -9393,7 +9405,7 @@ function Qn(t, e, o, i, a, r) {
9393
9405
  (y(!0), S(be, null, we(a.tagLayers.filter((U) => !U.overlays && U.key !== "ice-thickness"), (U) => (y(), S(be, {
9394
9406
  key: U.key
9395
9407
  }, [
9396
- d(D, {
9408
+ d(A, {
9397
9409
  modelValue: a.renderKey,
9398
9410
  "onUpdate:modelValue": e[3] || (e[3] = (oe) => a.renderKey = oe),
9399
9411
  label: t.$t(`weather.${U.locale}`),
@@ -9408,7 +9420,7 @@ function Qn(t, e, o, i, a, r) {
9408
9420
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
9409
9421
  a.renderKey === "wind-particle" && U.key === "wind-particle" ? (y(), S("div", An, [
9410
9422
  l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
9411
- d(L, {
9423
+ d(P, {
9412
9424
  modelValue: a.showWindParticle,
9413
9425
  "onUpdate:modelValue": e[4] || (e[4] = (oe) => a.showWindParticle = oe),
9414
9426
  label: "",
@@ -9422,7 +9434,7 @@ function Qn(t, e, o, i, a, r) {
9422
9434
  ])) : O("", !0),
9423
9435
  a.renderKey === "current-particle" && U.key === "current-particle" ? (y(), S("div", Dn, [
9424
9436
  l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
9425
- d(L, {
9437
+ d(P, {
9426
9438
  modelValue: a.showCurrentParticle,
9427
9439
  "onUpdate:modelValue": e[5] || (e[5] = (oe) => a.showCurrentParticle = oe),
9428
9440
  label: "",
@@ -9434,7 +9446,7 @@ function Qn(t, e, o, i, a, r) {
9434
9446
  "hide-details": ""
9435
9447
  }, null, 8, ["modelValue"])
9436
9448
  ])) : O("", !0),
9437
- a.renderKey === "ice-forecast" && U.key === "ice-forecast" ? (y(), A(I, {
9449
+ a.renderKey === "ice-forecast" && U.key === "ice-forecast" ? (y(), D(I, {
9438
9450
  key: 2,
9439
9451
  modelValue: a.iceToggleValue,
9440
9452
  "onUpdate:modelValue": e[6] || (e[6] = (oe) => a.iceToggleValue = oe),
@@ -9489,9 +9501,9 @@ function Qn(t, e, o, i, a, r) {
9489
9501
  elevation: "0"
9490
9502
  }, {
9491
9503
  default: u(() => [
9492
- d(P, { class: "border-b-thin" }, {
9504
+ d(L, { class: "border-b-thin" }, {
9493
9505
  default: u(() => [
9494
- d(_, {
9506
+ d(z, {
9495
9507
  class: "text-subtitle-1 font-weight-medium",
9496
9508
  style: { "font-size": "16px !important" }
9497
9509
  }, {
@@ -9536,7 +9548,7 @@ function Qn(t, e, o, i, a, r) {
9536
9548
  })
9537
9549
  ], 2)
9538
9550
  ], 6),
9539
- o.map ? (y(), A(C, B({
9551
+ o.map ? (y(), D(C, B({
9540
9552
  key: 1,
9541
9553
  ref: "windBarb",
9542
9554
  map: o.map,
@@ -9545,7 +9557,7 @@ function Qn(t, e, o, i, a, r) {
9545
9557
  wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
9546
9558
  "menu-toggle": o.menuToggle
9547
9559
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : O("", !0),
9548
- o.map ? (y(), A(v, B({
9560
+ o.map ? (y(), D(v, B({
9549
9561
  key: 2,
9550
9562
  map: o.map,
9551
9563
  "before-layer": "empty-layer-2",
@@ -9553,7 +9565,7 @@ function Qn(t, e, o, i, a, r) {
9553
9565
  "menu-toggle": o.menuToggle,
9554
9566
  "active-weather-layers": a.activeWeatherLayers
9555
9567
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : O("", !0),
9556
- o.map ? (y(), A(k, B({
9568
+ o.map ? (y(), D(_, B({
9557
9569
  key: 3,
9558
9570
  map: o.map,
9559
9571
  "map-feather": o.mapFeather,
@@ -9561,7 +9573,7 @@ function Qn(t, e, o, i, a, r) {
9561
9573
  current: ($ = a.weatherLayers) == null ? void 0 : $.current,
9562
9574
  "menu-toggle": o.menuToggle
9563
9575
  }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : O("", !0),
9564
- o.map ? (y(), A(T, B({
9576
+ o.map ? (y(), D(T, B({
9565
9577
  key: 4,
9566
9578
  map: o.map,
9567
9579
  "before-layer": "empty-layer-2",
@@ -9569,68 +9581,68 @@ function Qn(t, e, o, i, a, r) {
9569
9581
  "menu-toggle": o.menuToggle,
9570
9582
  "active-weather-layers": a.activeWeatherLayers
9571
9583
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : O("", !0),
9572
- o.map ? (y(), A(z, B({
9584
+ o.map ? (y(), D(k, B({
9573
9585
  key: 5,
9574
9586
  viewport: a.viewport,
9575
9587
  factor: (ue = a.weatherLayers) == null ? void 0 : ue["wind-particle"],
9576
9588
  "menu-toggle": o.menuToggle
9577
9589
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9578
- o.map ? (y(), A(R, B({
9590
+ o.map ? (y(), D(R, B({
9579
9591
  key: 6,
9580
9592
  viewport: a.viewport,
9581
9593
  factor: (ne = a.weatherLayers) == null ? void 0 : ne["current-particle"],
9582
9594
  "menu-toggle": o.menuToggle
9583
9595
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9584
- o.map ? (y(), A(V, B({
9596
+ o.map ? (y(), D(V, B({
9585
9597
  key: 7,
9586
9598
  viewport: a.viewport,
9587
9599
  factor: (F = a.weatherLayers) == null ? void 0 : F["sig-wave"],
9588
9600
  "menu-toggle": o.menuToggle
9589
9601
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9590
- o.map ? (y(), A(K, B({
9602
+ o.map ? (y(), D(K, B({
9591
9603
  key: 8,
9592
9604
  map: o.map,
9593
9605
  swell: (ce = a.weatherLayers) == null ? void 0 : ce.swell,
9594
9606
  "menu-toggle": o.menuToggle,
9595
9607
  "active-weather-layers": a.activeWeatherLayers
9596
9608
  }, t.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : O("", !0),
9597
- o.map ? (y(), A(X, B({
9609
+ o.map ? (y(), D(X, B({
9598
9610
  key: 9,
9599
9611
  viewport: a.viewport,
9600
9612
  factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-edge"],
9601
9613
  "menu-toggle": o.menuToggle
9602
9614
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9603
- o.map ? (y(), A(Z, B({
9615
+ o.map ? (y(), D(Z, B({
9604
9616
  key: 10,
9605
9617
  viewport: a.viewport,
9606
9618
  factor: (Le = a.weatherLayers) == null ? void 0 : Le["ice-cover"],
9607
9619
  "menu-toggle": o.menuToggle
9608
9620
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9609
- o.map ? (y(), A(J, B({
9621
+ o.map ? (y(), D(J, B({
9610
9622
  key: 11,
9611
9623
  viewport: a.viewport,
9612
9624
  factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
9613
9625
  "menu-toggle": o.menuToggle
9614
9626
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9615
- o.map ? (y(), A(ee, B({
9627
+ o.map ? (y(), D(ee, B({
9616
9628
  key: 12,
9617
9629
  viewport: a.viewport,
9618
9630
  factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.precip3h,
9619
9631
  "menu-toggle": o.menuToggle
9620
9632
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9621
- o.map ? (y(), A(Q, B({
9633
+ o.map ? (y(), D(Q, B({
9622
9634
  key: 13,
9623
9635
  viewport: a.viewport,
9624
9636
  factor: (De = a.weatherLayers) == null ? void 0 : De.visibility,
9625
9637
  "menu-toggle": o.menuToggle
9626
9638
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9627
- o.map ? (y(), A(re, B({
9639
+ o.map ? (y(), D(re, B({
9628
9640
  key: 14,
9629
9641
  viewport: a.viewport,
9630
9642
  factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
9631
9643
  "menu-toggle": o.menuToggle
9632
9644
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9633
- o.map ? (y(), A(de, B({
9645
+ o.map ? (y(), D(de, B({
9634
9646
  key: 15,
9635
9647
  viewport: a.viewport,
9636
9648
  factor: (_e = a.weatherLayers) == null ? void 0 : _e.temp,
@@ -9956,11 +9968,11 @@ class Za {
9956
9968
  const a = e.toLowerCase().split(","), r = [], s = [];
9957
9969
  for (const c of a) {
9958
9970
  let n = eo.find((p) => {
9959
- var f, w, L;
9960
- return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = p.name) == null ? void 0 : L.toLowerCase()) === c;
9971
+ var f, w, P;
9972
+ return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((P = p.name) == null ? void 0 : P.toLowerCase()) === c;
9961
9973
  }), g = to.find((p) => {
9962
- var f, w, L;
9963
- return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = p.name) == null ? void 0 : L.toLowerCase()) === c;
9974
+ var f, w, P;
9975
+ return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((P = p.name) == null ? void 0 : P.toLowerCase()) === c;
9964
9976
  });
9965
9977
  n = n || eo.find((p) => {
9966
9978
  var f, w;
@@ -9985,7 +9997,7 @@ class Za {
9985
9997
  }), a;
9986
9998
  }
9987
9999
  static pickHourly(e, o) {
9988
- var i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie;
10000
+ var i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie;
9989
10001
  const ge = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), te = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9990
10002
  if (ge.isBetween(te, le, "millisecond", "[]")) {
9991
10003
  const j = ge.utc().diff(te, "h", !1);
@@ -9999,22 +10011,22 @@ class Za {
9999
10011
  for (let Te = j - (j - 1) % 6; Te <= j; Te++)
10000
10012
  Ee += (w = q == null ? void 0 : q.precipitation) == null ? void 0 : w.at(Te);
10001
10013
  ye = {
10002
- temp: (L = q == null ? void 0 : q.temperature_2m) == null ? void 0 : L.at(j),
10003
- apparentTemp: (_ = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : _.at(j),
10004
- rh: (P = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : P.at(j),
10014
+ temp: (P = q == null ? void 0 : q.temperature_2m) == null ? void 0 : P.at(j),
10015
+ apparentTemp: (z = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : z.at(j),
10016
+ rh: (L = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : L.at(j),
10005
10017
  dp: (b = q == null ? void 0 : q.dew_point_2m) == null ? void 0 : b.at(j),
10006
10018
  precip: {
10007
- probability: (D = q == null ? void 0 : q.precipitation_probability) == null ? void 0 : D.at(j),
10019
+ probability: (A = q == null ? void 0 : q.precipitation_probability) == null ? void 0 : A.at(j),
10008
10020
  sum: (I = q == null ? void 0 : q.precipitation) == null ? void 0 : I.at(j),
10009
10021
  sum3Hours: Math.round(Be * 100) / 100,
10010
10022
  sum6Hours: Math.round(Ee * 100) / 100
10011
10023
  },
10012
10024
  pmsl: (C = q == null ? void 0 : q.pressure_msl) == null ? void 0 : C.at(j),
10013
10025
  psurf: (v = q == null ? void 0 : q.surface_pressure) == null ? void 0 : v.at(j),
10014
- code: (k = q == null ? void 0 : q.weather_code) == null ? void 0 : k.at(j),
10026
+ code: (_ = q == null ? void 0 : q.weather_code) == null ? void 0 : _.at(j),
10015
10027
  visibility: this.m2nm((T = q == null ? void 0 : q.visibility) == null ? void 0 : T.at(j)),
10016
10028
  wind: {
10017
- speed: (z = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : z.at(j),
10029
+ speed: (k = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : k.at(j),
10018
10030
  kts: (R = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : R.at(j),
10019
10031
  degree: (V = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : V.at(j),
10020
10032
  bearing: ((K = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : K.at(j)) !== null ? (((X = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : X.at(j)) + 180) % 360 : null,
@@ -10094,7 +10106,7 @@ class Za {
10094
10106
  };
10095
10107
  }
10096
10108
  static pickDaily(e, o) {
10097
- var i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De;
10109
+ var i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De;
10098
10110
  const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, oe = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
10099
10111
  if (Re.isBetween(oe, je, "millisecond", "[]")) {
10100
10112
  let ge, fe;
@@ -10110,21 +10122,21 @@ class Za {
10110
10122
  mean: (w = te.temperature_2m_mean) == null ? void 0 : w.at(W)
10111
10123
  },
10112
10124
  apparentTemp: {
10113
- max: (L = te.apparent_temperature_max) == null ? void 0 : L.at(W),
10114
- min: (_ = te.apparent_temperature_min) == null ? void 0 : _.at(W)
10125
+ max: (P = te.apparent_temperature_max) == null ? void 0 : P.at(W),
10126
+ min: (z = te.apparent_temperature_min) == null ? void 0 : z.at(W)
10115
10127
  },
10116
10128
  precip: {
10117
- sum: (P = te.precipitation_sum) == null ? void 0 : P.at(W),
10129
+ sum: (L = te.precipitation_sum) == null ? void 0 : L.at(W),
10118
10130
  rainSum: (b = te.rain_sum) == null ? void 0 : b.at(W),
10119
- snowfallSum: (D = te.snowfall_sum) == null ? void 0 : D.at(W),
10131
+ snowfallSum: (A = te.snowfall_sum) == null ? void 0 : A.at(W),
10120
10132
  showersSum: (I = te.showers_sum) == null ? void 0 : I.at(W),
10121
10133
  hours: (C = te.precipitation_hours) == null ? void 0 : C.at(W),
10122
10134
  probability: (v = te.precipitation_probability_max) == null ? void 0 : v.at(W)
10123
10135
  },
10124
10136
  rh: {
10125
- max: (k = te.relative_humidity_2m_max) == null ? void 0 : k.at(W),
10137
+ max: (_ = te.relative_humidity_2m_max) == null ? void 0 : _.at(W),
10126
10138
  min: (T = te.relative_humidity_2m_min) == null ? void 0 : T.at(W),
10127
- mean: (z = te.relative_humidity_2m_mean) == null ? void 0 : z.at(W)
10139
+ mean: (k = te.relative_humidity_2m_mean) == null ? void 0 : k.at(W)
10128
10140
  },
10129
10141
  wind: {
10130
10142
  speed: (R = te.wind_speed_10m_max) == null ? void 0 : R.at(W),
@@ -10651,11 +10663,23 @@ const ec = {
10651
10663
  };
10652
10664
  },
10653
10665
  computed: {
10666
+ hoverLayers() {
10667
+ return [
10668
+ this.forecastNameLayer,
10669
+ this.forecastLayer,
10670
+ this.historyLayer,
10671
+ this.forecastModelLayer,
10672
+ this.pointCircleLayer,
10673
+ this.pointLabelLayer,
10674
+ this.historyPointCircleLayer,
10675
+ this.historyPointLabelLayer
10676
+ ];
10677
+ },
10654
10678
  computeTime() {
10655
10679
  return (t) => {
10656
10680
  if (t) {
10657
10681
  const e = M(t).utcOffset(this.timeZone), o = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
10658
- return console.log("timeZone changed 111", this.timeZone), `${e == null ? void 0 : e.format("MMM-DD/HHmm")} ( UTC${o} ) ${e == null ? void 0 : e.fromNow()} `;
10682
+ return `${e == null ? void 0 : e.format("MMM-DD/HHmm")} ( UTC${o} ) ${e == null ? void 0 : e.fromNow()} `;
10659
10683
  }
10660
10684
  return "-";
10661
10685
  };
@@ -10703,8 +10727,8 @@ const ec = {
10703
10727
  }
10704
10728
  },
10705
10729
  timeZone: {
10706
- handler() {
10707
- this.handleRefresh();
10730
+ handler(t, e) {
10731
+ t !== e && this.handleRefresh();
10708
10732
  }
10709
10733
  }
10710
10734
  },
@@ -10734,16 +10758,16 @@ const ec = {
10734
10758
  },
10735
10759
  responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
10736
10760
  }).then((p) => {
10737
- var L, _, P;
10738
- const f = Va.convert2Geojson(((L = p == null ? void 0 : p.data) == null ? void 0 : L.data) || (p == null ? void 0 : p.data));
10739
- ((P = (_ = p == null ? void 0 : p.config) == null ? void 0 : _.headers) == null ? void 0 : P.key) && f && (this.tropicals = {
10761
+ var P, z, L;
10762
+ const f = Va.convert2Geojson(((P = p == null ? void 0 : p.data) == null ? void 0 : P.data) || (p == null ? void 0 : p.data));
10763
+ ((L = (z = p == null ? void 0 : p.config) == null ? void 0 : z.headers) == null ? void 0 : L.key) && f && (this.tropicals = {
10740
10764
  data: f,
10741
10765
  active: !0,
10742
10766
  cached: !0,
10743
10767
  type: "json",
10744
10768
  etime: n.data.etime,
10745
10769
  version: Math.random() + 1
10746
- }, this.handleInit());
10770
+ });
10747
10771
  }).catch((p) => {
10748
10772
  console.log(`[${key}] fetch layer error: ${p}`);
10749
10773
  });
@@ -10759,28 +10783,15 @@ const ec = {
10759
10783
  }), this.handleInit();
10760
10784
  },
10761
10785
  handleInit() {
10762
- var t, e, o, i, a, r, s, c, n, g;
10763
- this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
10764
- "click",
10765
- [
10766
- this.forecastNameLayer,
10767
- this.forecastLayer,
10768
- this.historyLayer,
10769
- this.forecastModelLayer,
10770
- this.pointCircleLayer,
10771
- this.pointLabelLayer,
10772
- this.historyPointCircleLayer,
10773
- this.historyPointLabelLayer
10774
- ],
10775
- this.handleClick
10776
- )), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("tropical", !0) : (g = (n = (c = this.$parent) == null ? void 0 : c.$refs) == null ? void 0 : n.idmBottomBar) == null || g.handleToggle("tropical", !1);
10786
+ var t, e, o, i, a, r, s, c, n, g, p, f;
10787
+ this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.hoverLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (f = (p = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : p.idmBottomBar) == null || f.handleToggle("tropical", !1);
10777
10788
  },
10778
10789
  handleRender() {
10779
10790
  var e, o, i, a, r, s, c, n, g, p;
10780
- if (this.tropicals) {
10791
+ if (this.tropicals && this.map) {
10781
10792
  const f = (/* @__PURE__ */ new Date()).valueOf();
10782
- let w = 0, L = 0;
10783
- (e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((o = this.tropicals) != null && o.active ? this.tropicals.data : this.empty), L = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropicals] update elapsed: ", L, ", total: ", w += L)) : (this.map.addSource(this.source, {
10793
+ let w = 0, P = 0;
10794
+ (e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((o = this.tropicals) != null && o.active ? this.tropicals.data : this.empty), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropicals] update elapsed: ", P, ", total: ", w += P)) : (this.map.addSource(this.source, {
10784
10795
  type: "geojson",
10785
10796
  data: (a = this.tropicals) != null && a.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
10786
10797
  }), this.map.addLayer({
@@ -10877,7 +10888,7 @@ const ec = {
10877
10888
  ],
10878
10889
  "text-halo-width": 4
10879
10890
  }
10880
- }), L = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", L, ", total: ", w += L)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), L = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] update elapsed: ", L, ", total: ", w += L)) : (this.map.addSource(this.clusterSource, {
10891
+ }), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", P, ", total: ", w += P)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] update elapsed: ", P, ", total: ", w += P)) : (this.map.addSource(this.clusterSource, {
10881
10892
  type: "geojson",
10882
10893
  data: (g = this.tropicals) != null && g.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
10883
10894
  // cluster: true,
@@ -10993,31 +11004,18 @@ const ec = {
10993
11004
  "text-halo-color": "#ffffff",
10994
11005
  "text-halo-width": 1
10995
11006
  }
10996
- }), L = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", L, ", total: ", w += L));
11007
+ }), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", P, ", total: ", w += P));
10997
11008
  }
10998
11009
  this.handleDrawCircle();
10999
11010
  const t = Va.interpolate(this.tropicals, 1);
11000
11011
  this.interpolateData = JSON.parse(JSON.stringify(t)), this.handleDateChange();
11001
11012
  },
11002
11013
  handleClear() {
11003
- var t, e;
11004
- this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((o) => o == null ? void 0 : o.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off(
11005
- "click",
11006
- [
11007
- this.forecastNameLayer,
11008
- this.forecastLayer,
11009
- this.historyLayer,
11010
- this.forecastModelLayer,
11011
- this.pointCircleLayer,
11012
- this.pointLabelLayer,
11013
- this.historyPointCircleLayer,
11014
- this.historyPointLabelLayer
11015
- ],
11016
- this.handleClick
11017
- ), this.showTropicalsInfo = !1;
11014
+ var t, e, o, i, a;
11015
+ this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((r) => r == null ? void 0 : r.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.showTropicalsInfo = !1, (a = this.activeTropicalsMarker) == null || a.remove(), this.activeTropicalsMarker = void 0;
11018
11016
  },
11019
11017
  handleDateChange() {
11020
- var t, e, o, i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q;
11018
+ var t, e, o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q;
11021
11019
  if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
11022
11020
  const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(de), se = H.featureCollection([...de]);
11023
11021
  pe.forEach(($) => {
@@ -11039,7 +11037,7 @@ const ec = {
11039
11037
  for (const $ of de)
11040
11038
  if (!$.properties.disabled) {
11041
11039
  let ae = "#f44336";
11042
- ((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((L = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : L.kts) < 47 ? ae = "#f2f202" : ((P = (_ = $.properties) == null ? void 0 : _.wind) == null ? void 0 : P.kts) >= 47 && ((D = (b = $.properties) == null ? void 0 : b.wind) == null ? void 0 : D.kts) < 63 ? ae = "#ff9100" : ((C = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : C.kts) >= 63 && ((k = (v = $.properties) == null ? void 0 : v.wind) == null ? void 0 : k.kts) < 79 ? ae = "#f44336" : ((z = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : z.kts) >= 79 && ((V = (R = $.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ae = "#f903d0" : ((X = (K = $.properties) == null ? void 0 : K.wind) == null ? void 0 : X.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
11040
+ ((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((P = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : P.kts) < 47 ? ae = "#f2f202" : ((L = (z = $.properties) == null ? void 0 : z.wind) == null ? void 0 : L.kts) >= 47 && ((A = (b = $.properties) == null ? void 0 : b.wind) == null ? void 0 : A.kts) < 63 ? ae = "#ff9100" : ((C = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : C.kts) >= 63 && ((_ = (v = $.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? ae = "#f44336" : ((k = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : k.kts) >= 79 && ((V = (R = $.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ae = "#f903d0" : ((X = (K = $.properties) == null ? void 0 : K.wind) == null ? void 0 : X.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
11043
11041
  const ue = `<svg t="1719918955501"
11044
11042
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
11045
11043
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -11063,26 +11061,32 @@ const ec = {
11063
11061
  (ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
11064
11062
  },
11065
11063
  handleClick(t) {
11066
- var r, s, c, n, g, p, f, w;
11067
- const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
11068
- (L) => {
11069
- var _;
11070
- return L.geometry.type === "LineString" && L.properties.type === "forecast" && L.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
11064
+ var a, r, s, c, n, g, p, f;
11065
+ const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
11066
+ (w) => {
11067
+ var P;
11068
+ return w.geometry.type === "LineString" && w.properties.type === "forecast" && w.properties.name === ((P = e == null ? void 0 : e.properties) == null ? void 0 : P.name);
11071
11069
  }
11072
- ), i = (n = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : n.features.filter(
11073
- (L) => {
11074
- var _;
11075
- return L.geometry.type === "LineString" && L.properties.type === "history" && L.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
11070
+ ), i = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
11071
+ (w) => {
11072
+ var P;
11073
+ return w.geometry.type === "LineString" && w.properties.type === "history" && w.properties.name === ((P = e == null ? void 0 : e.properties) == null ? void 0 : P.name);
11076
11074
  }
11077
11075
  );
11078
11076
  this.activeTropicals = {
11079
- name: (g = e == null ? void 0 : e.properties) == null ? void 0 : g.name,
11080
- forecasts: o.map((L) => L.properties),
11081
- history: (p = i[0]) == null ? void 0 : p.properties,
11082
- showCircle: (w = (f = o[0]) == null ? void 0 : f.properties) == null ? void 0 : w.showCircle
11083
- }, this.showTropicalsInfo = !0;
11084
- const a = document.getElementById("idm-tropical-gl4-info");
11085
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ve.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
11077
+ name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
11078
+ forecasts: o.map((w) => w.properties),
11079
+ history: (g = i[0]) == null ? void 0 : g.properties,
11080
+ showCircle: (f = (p = o[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
11081
+ }, console.log(document.getElementById("idm-tropical-gl4-info").cloneNode(!0)), this.showTropicalsInfo = !0, this.$nextTick(() => {
11082
+ var z, L, b;
11083
+ (z = this.activeTropicalsMarker) == null || z.remove();
11084
+ const w = document.getElementById("idm-tropical-gl4-info").cloneNode(!0), P = (b = (L = w == null ? void 0 : w.children[0]) == null ? void 0 : L.children[1]) == null ? void 0 : b.children[1];
11085
+ P && (P.onclick = () => {
11086
+ var A;
11087
+ this.showTropicalsInfo = !1, (A = this.activeTropicalsMarker) == null || A.remove();
11088
+ }), this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
11089
+ });
11086
11090
  },
11087
11091
  handleForecastToggle(t) {
11088
11092
  var i, a, r, s, c, n;
@@ -11168,6 +11172,12 @@ const ec = {
11168
11172
  },
11169
11173
  handleNotification(t) {
11170
11174
  this.$emit("tropicalNotification", t);
11175
+ },
11176
+ handleHover() {
11177
+ this.map.getCanvas().style.cursor = "pointer";
11178
+ },
11179
+ handleLeave() {
11180
+ this.map.getCanvas().style.cursor = "grab";
11171
11181
  }
11172
11182
  }
11173
11183
  }, tc = { class: "idm-tropical-gl4" }, oc = {
@@ -11212,7 +11222,7 @@ function Lc(t, e, o, i, a, r) {
11212
11222
  _: 1
11213
11223
  }, 8, ["text"])
11214
11224
  ], 4),
11215
- Ne(l("div", oc, [
11225
+ He(l("div", oc, [
11216
11226
  d(f, {
11217
11227
  width: "400",
11218
11228
  elevation: "16"
@@ -11220,11 +11230,11 @@ function Lc(t, e, o, i, a, r) {
11220
11230
  default: u(() => [
11221
11231
  d(n, null, {
11222
11232
  default: u(() => {
11223
- var w, L, _, P, b, D, I, C, v, k;
11233
+ var w, P, z, L, b, A, I, C, v, _;
11224
11234
  return [
11225
11235
  l("div", ac, [
11226
11236
  l("span", ic, h((w = a.activeTropicals) == null ? void 0 : w.name), 1),
11227
- (_ = (L = a.activeTropicals) == null ? void 0 : L.history) != null && _.level ? (y(), S("span", rc, ", " + h((b = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : b.level), 1)) : O("", !0)
11237
+ (z = (P = a.activeTropicals) == null ? void 0 : P.history) != null && z.level ? (y(), S("span", rc, ", " + h((b = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : b.level), 1)) : O("", !0)
11228
11238
  ]),
11229
11239
  d(s, {
11230
11240
  icon: "",
@@ -11241,7 +11251,7 @@ function Lc(t, e, o, i, a, r) {
11241
11251
  }),
11242
11252
  l("div", lc, [
11243
11253
  l("span", sc, h(t.$t("actions.lastUpdate")) + ": ", 1),
11244
- l("span", null, h(r.computeTime(((I = (D = a.activeTropicals) == null ? void 0 : D.history) == null ? void 0 : I.updated) || ((k = (v = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : v.filter((T) => !T.disabled)[0]) == null ? void 0 : k.date))), 1)
11254
+ l("span", null, h(r.computeTime(((I = (A = a.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : I.updated) || ((_ = (v = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : v.filter((T) => !T.disabled)[0]) == null ? void 0 : _.date))), 1)
11245
11255
  ])
11246
11256
  ];
11247
11257
  }),
@@ -11250,17 +11260,17 @@ function Lc(t, e, o, i, a, r) {
11250
11260
  d(g),
11251
11261
  d(n, { class: "text-body-1" }, {
11252
11262
  default: u(() => {
11253
- var w, L, _, P, b, D, I, C, v;
11263
+ var w, P, z, L, b, A, I, C, v;
11254
11264
  return [
11255
11265
  l("div", nc, [
11256
11266
  l("div", cc, [
11257
11267
  l("label", mc, h(t.$t("weather.windSpeed")) + " : ", 1),
11258
- l("span", null, h(((L = (w = a.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : L.kts) || "-") + " kts", 1),
11259
- l("span", null, ", BF " + h(r.computeBF(((P = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : P.kts) || "-")), 1)
11268
+ l("span", null, h(((P = (w = a.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : P.kts) || "-") + " kts", 1),
11269
+ l("span", null, ", BF " + h(r.computeBF(((L = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : L.kts) || "-")), 1)
11260
11270
  ]),
11261
11271
  l("div", dc, [
11262
11272
  l("label", hc, h(t.$t("tropical.pressure")) + " : ", 1),
11263
- l("span", null, h(((D = (b = a.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : D.pressure) || "-") + " hPa", 1)
11273
+ l("span", null, h(((A = (b = a.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : A.pressure) || "-") + " hPa", 1)
11264
11274
  ])
11265
11275
  ]),
11266
11276
  l("div", pc, [
@@ -11276,16 +11286,16 @@ function Lc(t, e, o, i, a, r) {
11276
11286
  l("div", bc, [
11277
11287
  l("label", wc, h(t.$t("weather.forecastModels")) + " : ", 1),
11278
11288
  l("div", xc, [
11279
- (y(!0), S(be, null, we((v = a.activeTropicals) == null ? void 0 : v.forecasts, (k, T) => (y(), A(s, {
11289
+ (y(!0), S(be, null, we((v = a.activeTropicals) == null ? void 0 : v.forecasts, (_, T) => (y(), D(s, {
11280
11290
  key: T,
11281
11291
  density: "compact",
11282
- variant: k.disabled ? "outlined" : "flat",
11283
- color: k.disabled ? "" : "primary",
11284
- class: We(["model text-none text-body-1", k.disabled ? "" : "btn-border-2"]),
11285
- onClick: (z) => r.handleForecastToggle(k)
11292
+ variant: _.disabled ? "outlined" : "flat",
11293
+ color: _.disabled ? "" : "primary",
11294
+ class: We(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
11295
+ onClick: (k) => r.handleForecastToggle(_)
11286
11296
  }, {
11287
11297
  default: u(() => [
11288
- N(h(k.model), 1)
11298
+ N(h(_.model), 1)
11289
11299
  ]),
11290
11300
  _: 2
11291
11301
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -11315,7 +11325,7 @@ function Lc(t, e, o, i, a, r) {
11315
11325
  _: 1
11316
11326
  }, 8, ["color"]),
11317
11327
  l("div", vc, [
11318
- o.permission & a.helper.LEVEL.Supper ? (y(), A(s, {
11328
+ o.permission & a.helper.LEVEL.Supper ? (y(), D(s, {
11319
11329
  key: 0,
11320
11330
  variant: "text",
11321
11331
  density: "compact",
@@ -11347,14 +11357,14 @@ function Lc(t, e, o, i, a, r) {
11347
11357
  _: 1
11348
11358
  }),
11349
11359
  l("div", _c, [
11350
- Ne(d(f, {
11360
+ He(d(f, {
11351
11361
  width: "400",
11352
11362
  elevation: "16"
11353
11363
  }, {
11354
11364
  default: u(() => [
11355
11365
  d(n, null, {
11356
11366
  default: u(() => [
11357
- Ne(l("div", kc, e[7] || (e[7] = [
11367
+ He(l("div", kc, e[7] || (e[7] = [
11358
11368
  l("div", { class: "legend d-flex justify-start align-center" }, [
11359
11369
  l("div", { class: "icon td" }),
11360
11370
  l("div", { class: "label" }, "TD")
@@ -11380,9 +11390,9 @@ function Lc(t, e, o, i, a, r) {
11380
11390
  l("div", { class: "label" }, "Super TY")
11381
11391
  ], -1)
11382
11392
  ]), 512), [
11383
- [Fe, a.showLegend]
11393
+ [Ue, a.showLegend]
11384
11394
  ]),
11385
- Ne(l("div", zc, e[8] || (e[8] = [
11395
+ He(l("div", zc, e[8] || (e[8] = [
11386
11396
  l("div", { class: "legend d-flex justify-start align-center" }, [
11387
11397
  l("div", { class: "icon history" }),
11388
11398
  l("div", { class: "label" }, "History")
@@ -11400,7 +11410,7 @@ function Lc(t, e, o, i, a, r) {
11400
11410
  l("div", { class: "label" }, "50kts Radii")
11401
11411
  ], -1)
11402
11412
  ]), 512), [
11403
- [Fe, a.showLegend]
11413
+ [Ue, a.showLegend]
11404
11414
  ])
11405
11415
  ]),
11406
11416
  _: 1
@@ -11408,11 +11418,11 @@ function Lc(t, e, o, i, a, r) {
11408
11418
  ]),
11409
11419
  _: 1
11410
11420
  }, 512), [
11411
- [Fe, a.showLegend]
11421
+ [Ue, a.showLegend]
11412
11422
  ])
11413
11423
  ])
11414
11424
  ], 512), [
11415
- [Fe, a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend]
11425
+ [Ue, a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend]
11416
11426
  ])
11417
11427
  ]);
11418
11428
  }
@@ -11569,7 +11579,7 @@ const Pc = {
11569
11579
  style: { height: "56px" }
11570
11580
  };
11571
11581
  function Mc(t, e, o, i, a, r) {
11572
- const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), L = x("VCardActions"), _ = x("VCard");
11582
+ const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), P = x("VCardActions"), z = x("VCard");
11573
11583
  return y(), S("div", Cc, [
11574
11584
  d(s, {
11575
11585
  text: "",
@@ -11582,7 +11592,7 @@ function Mc(t, e, o, i, a, r) {
11582
11592
  ]),
11583
11593
  _: 1
11584
11594
  }, 8, ["onClick"]),
11585
- a.showDatePicker ? (y(), A(_, {
11595
+ a.showDatePicker ? (y(), D(z, {
11586
11596
  key: 0,
11587
11597
  class: "card-box d-flex flex-column"
11588
11598
  }, {
@@ -11592,7 +11602,7 @@ function Mc(t, e, o, i, a, r) {
11592
11602
  l("div", Tc, [
11593
11603
  d(c, {
11594
11604
  modelValue: a.currentDate,
11595
- "onUpdate:modelValue": e[0] || (e[0] = (P) => a.currentDate = P),
11605
+ "onUpdate:modelValue": e[0] || (e[0] = (L) => a.currentDate = L),
11596
11606
  min: a.dateRange[0],
11597
11607
  max: a.dateRange[1],
11598
11608
  "mode-icon": () => r.currentYear,
@@ -11612,11 +11622,11 @@ function Mc(t, e, o, i, a, r) {
11612
11622
  l("div", Ic, h(a.currentTime), 1),
11613
11623
  d(f, { class: "pa-0 flex-1-1-0" }, {
11614
11624
  default: u(() => [
11615
- (y(!0), S(be, null, we(r.hourOptions, (P, b) => (y(), A(p, {
11625
+ (y(!0), S(be, null, we(r.hourOptions, (L, b) => (y(), D(p, {
11616
11626
  key: b,
11617
- value: P,
11627
+ value: L,
11618
11628
  color: "primary",
11619
- active: a.currentTime === P,
11629
+ active: a.currentTime === L,
11620
11630
  rounded: "",
11621
11631
  height: "26",
11622
11632
  "min-height": "26"
@@ -11624,10 +11634,10 @@ function Mc(t, e, o, i, a, r) {
11624
11634
  default: u(() => [
11625
11635
  d(g, {
11626
11636
  class: "text-body-2 text-center",
11627
- onClick: (D) => a.currentTime = P
11637
+ onClick: (A) => a.currentTime = L
11628
11638
  }, {
11629
11639
  default: u(() => [
11630
- N(h(P), 1)
11640
+ N(h(L), 1)
11631
11641
  ]),
11632
11642
  _: 2
11633
11643
  }, 1032, ["onClick"])
@@ -11642,7 +11652,7 @@ function Mc(t, e, o, i, a, r) {
11642
11652
  _: 1
11643
11653
  }),
11644
11654
  d(n),
11645
- d(L, {
11655
+ d(P, {
11646
11656
  class: "justify-end pa-0 pr-4",
11647
11657
  style: { height: "50px" }
11648
11658
  }, {
@@ -11929,10 +11939,10 @@ const Ac = {
11929
11939
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
11930
11940
  },
11931
11941
  initTableData(t) {
11932
- var o, i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe;
11942
+ var o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe;
11933
11943
  this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
11934
11944
  const e = ((s = oo.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
11935
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.kts, 1) ?? "-", this.currentHourData.windDir = (b = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : b.direction, this.currentHourData.windLevel = this.roundPrecision((I = (D = e == null ? void 0 : e.weather) == null ? void 0 : D.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((T = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((K = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : K.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Z = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
11945
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((z = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : z.kts, 1) ?? "-", this.currentHourData.windDir = (b = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : b.direction, this.currentHourData.windLevel = this.roundPrecision((I = (A = e == null ? void 0 : e.weather) == null ? void 0 : A.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((T = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((K = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : K.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Z = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
11936
11946
  },
11937
11947
  handleBind() {
11938
11948
  var t, e;
@@ -12015,7 +12025,7 @@ const Ac = {
12015
12025
  "aria-hidden": "true"
12016
12026
  }, qc = ["xlink:href"], Yc = { class: "d-flex justify-start align-center" }, Kc = { class: "mx-2" };
12017
12027
  function Xc(t, e, o, i, a, r) {
12018
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), L = x("DateTimePicker"), _ = x("VBtnToggle"), P = x("VCardActions"), b = x("VForm"), D = x("VCardText"), I = x("VCard"), C = x("VIcon");
12028
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), P = x("DateTimePicker"), z = x("VBtnToggle"), L = x("VCardActions"), b = x("VForm"), A = x("VCardText"), I = x("VCard"), C = x("VIcon");
12019
12029
  return y(), S("div", Dc, [
12020
12030
  l("div", {
12021
12031
  class: "menu-bar-box transition pa-1",
@@ -12043,7 +12053,7 @@ function Xc(t, e, o, i, a, r) {
12043
12053
  _: 1
12044
12054
  }, 8, ["text"])
12045
12055
  ], 4),
12046
- a.showForm ? (y(), A(I, {
12056
+ a.showForm ? (y(), D(I, {
12047
12057
  key: 0,
12048
12058
  class: "spot-form-card",
12049
12059
  style: ie({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
@@ -12071,7 +12081,7 @@ function Xc(t, e, o, i, a, r) {
12071
12081
  _: 1
12072
12082
  }),
12073
12083
  d(g),
12074
- d(D, { class: "text-body-1 py-1" }, {
12084
+ d(A, { class: "text-body-1 py-1" }, {
12075
12085
  default: u(() => [
12076
12086
  d(b, {
12077
12087
  ref: "spotForm",
@@ -12248,7 +12258,7 @@ function Xc(t, e, o, i, a, r) {
12248
12258
  class: "pa-0"
12249
12259
  }, {
12250
12260
  default: u(() => [
12251
- d(L, B({
12261
+ d(P, B({
12252
12262
  "date-time": a.form.dateTime,
12253
12263
  "time-zone": o.timeZone
12254
12264
  }, t.$attrs, {
@@ -12275,7 +12285,7 @@ function Xc(t, e, o, i, a, r) {
12275
12285
  class: "pa-0"
12276
12286
  }, {
12277
12287
  default: u(() => [
12278
- d(_, {
12288
+ d(z, {
12279
12289
  modelValue: a.form.forecastModel,
12280
12290
  "onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
12281
12291
  class: "w-100",
@@ -12323,7 +12333,7 @@ function Xc(t, e, o, i, a, r) {
12323
12333
  _: 1
12324
12334
  }),
12325
12335
  d(g),
12326
- d(P, { class: "d-flex justify-end align-center ga-4" }, {
12336
+ d(L, { class: "d-flex justify-end align-center ga-4" }, {
12327
12337
  default: u(() => [
12328
12338
  d(s, {
12329
12339
  size: "small",
@@ -12362,7 +12372,7 @@ function Xc(t, e, o, i, a, r) {
12362
12372
  ]),
12363
12373
  _: 1
12364
12374
  }, 8, ["style"])) : O("", !0),
12365
- Ne(d(I, {
12375
+ He(d(I, {
12366
12376
  id: "idm-gl4-spot-meteo",
12367
12377
  class: "spot-meteo",
12368
12378
  style: { width: "490px", "z-index": "9" }
@@ -12370,11 +12380,11 @@ function Xc(t, e, o, i, a, r) {
12370
12380
  default: u(() => [
12371
12381
  d(n, { class: "d-flex justify-space-between align-center" }, {
12372
12382
  default: u(() => {
12373
- var v, k, T, z;
12383
+ var v, _, T, k;
12374
12384
  return [
12375
12385
  l("div", Yc, [
12376
12386
  e[16] || (e[16] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
12377
- l("div", Kc, h(r.computeLat(((v = a.form) == null ? void 0 : v.lat) || ((k = a.currentHourData) == null ? void 0 : k.lat))) + "," + h(r.computeLng(((T = a.form) == null ? void 0 : T.lng) || ((z = a.currentHourData) == null ? void 0 : z.lng))), 1)
12387
+ l("div", Kc, h(r.computeLat(((v = a.form) == null ? void 0 : v.lat) || ((_ = a.currentHourData) == null ? void 0 : _.lat))) + "," + h(r.computeLng(((T = a.form) == null ? void 0 : T.lng) || ((k = a.currentHourData) == null ? void 0 : k.lng))), 1)
12378
12388
  ]),
12379
12389
  d(s, {
12380
12390
  class: "mr-n2",
@@ -12397,7 +12407,7 @@ function Xc(t, e, o, i, a, r) {
12397
12407
  _: 1
12398
12408
  }),
12399
12409
  d(g),
12400
- d(D, { class: "text-body-1 ml-n8" }, {
12410
+ d(A, { class: "text-body-1 ml-n8" }, {
12401
12411
  default: u(() => [
12402
12412
  d(w, null, {
12403
12413
  default: u(() => [
@@ -12579,12 +12589,12 @@ function Xc(t, e, o, i, a, r) {
12579
12589
  _: 1
12580
12590
  }),
12581
12591
  d(g),
12582
- d(P, { class: "d-flex justify-space-between align-center" }, {
12592
+ d(L, { class: "d-flex justify-space-between align-center" }, {
12583
12593
  default: u(() => [
12584
12594
  o.followList.some((v) => {
12585
- var k, T;
12586
- return ((k = v == null ? void 0 : v.coordinate) == null ? void 0 : k.lng) === a.point.lng && ((T = v == null ? void 0 : v.coordinate) == null ? void 0 : T.lat) === a.point.lat;
12587
- }) ? (y(), A(s, {
12595
+ var _, T;
12596
+ return ((_ = v == null ? void 0 : v.coordinate) == null ? void 0 : _.lng) === a.point.lng && ((T = v == null ? void 0 : v.coordinate) == null ? void 0 : T.lat) === a.point.lat;
12597
+ }) ? (y(), D(s, {
12588
12598
  key: 0,
12589
12599
  class: "text-none text-body-1",
12590
12600
  variant: "text",
@@ -12600,7 +12610,7 @@ function Xc(t, e, o, i, a, r) {
12600
12610
  N(" " + h(t.$t("actions.unfollow")), 1)
12601
12611
  ]),
12602
12612
  _: 1
12603
- }, 8, ["onClick"])) : (y(), A(s, {
12613
+ }, 8, ["onClick"])) : (y(), D(s, {
12604
12614
  key: 1,
12605
12615
  class: "text-none text-body-1",
12606
12616
  variant: "text",
@@ -12633,7 +12643,7 @@ function Xc(t, e, o, i, a, r) {
12633
12643
  ]),
12634
12644
  _: 1
12635
12645
  }, 512), [
12636
- [Fe, a.showMeteo]
12646
+ [Ue, a.showMeteo]
12637
12647
  ])
12638
12648
  ]);
12639
12649
  }
@@ -12733,22 +12743,22 @@ const Qc = {
12733
12743
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12734
12744
  const w = this.geojson.filter((b) => b.id === e.split("-")[0])[0];
12735
12745
  this.pointMarkers[w.id].filter((b) => {
12736
- var D;
12737
- return ((D = b._element) == null ? void 0 : D.id) === e;
12746
+ var A;
12747
+ return ((A = b._element) == null ? void 0 : A.id) === e;
12738
12748
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12739
- let _;
12740
- w.features.forEach((b, D) => {
12749
+ let z;
12750
+ w.features.forEach((b, A) => {
12741
12751
  if (b.geometry.type === "Point" && b.properties.id === e.split("-")[1]) {
12742
- _ = D;
12752
+ z = A;
12743
12753
  return;
12744
12754
  }
12745
12755
  });
12746
- const P = w.features.filter((b) => b.geometry.type === "Point");
12756
+ const L = w.features.filter((b) => b.geometry.type === "Point");
12747
12757
  this.handleTmpPointUpdate(
12748
12758
  w,
12749
- P[_ - 1],
12750
- { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: P[_].properties },
12751
- _ === P.length - 1 ? void 0 : P[_ + 1]
12759
+ L[z - 1],
12760
+ { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: L[z].properties },
12761
+ z === L.length - 1 ? void 0 : L[z + 1]
12752
12762
  );
12753
12763
  }
12754
12764
  },
@@ -12756,13 +12766,13 @@ const Qc = {
12756
12766
  var o, i, a, r, s, c, n, g, p, f;
12757
12767
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12758
12768
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12759
- const w = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
12760
- this.pointMarkers[w.id].filter((P) => {
12769
+ const w = this.geojson.filter((L) => L.id === e.split("-")[0])[0];
12770
+ this.pointMarkers[w.id].filter((L) => {
12761
12771
  var b;
12762
- return ((b = P._element) == null ? void 0 : b.id) === e;
12772
+ return ((b = L._element) == null ? void 0 : b.id) === e;
12763
12773
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12764
- const _ = w.features.filter((P) => P.geometry.type === "Point" && P.properties.id === e.split("-")[1])[0];
12765
- _.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((P) => P.geometry.type === "Point"), this.handlePointUpdate(w);
12774
+ const z = w.features.filter((L) => L.geometry.type === "Point" && L.properties.id === e.split("-")[1])[0];
12775
+ z.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((L) => L.geometry.type === "Point"), this.handlePointUpdate(w);
12766
12776
  }
12767
12777
  },
12768
12778
  handleContextmenu(t) {
@@ -12810,14 +12820,14 @@ const Qc = {
12810
12820
  let o = 0;
12811
12821
  const i = [];
12812
12822
  for (let a = 1; a < e.length; a++) {
12813
- const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Ue.calculateDistance(n, g, c.mode === "RL", 4), f = Ue.calculateBearing(n, g, c.mode === "RL", 2);
12823
+ const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4), f = Fe.calculateBearing(n, g, c.mode === "RL", 2);
12814
12824
  o = G.roundPrecision(o + p, 4);
12815
12825
  let w;
12816
- c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Ue.interpolateCoordinates(n, g, 200));
12817
- const L = H.lineString(w.map((P) => [P.lng, P.lat]));
12818
- L.properties.dist = p, L.properties.bearing = f, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
12819
- const _ = e[a];
12820
- _.properties.totalDist = G.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), _.properties.sumLabel = _.properties.totalDist + " nm";
12826
+ c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
12827
+ const P = H.lineString(w.map((L) => [L.lng, L.lat]));
12828
+ P.properties.dist = p, P.properties.bearing = f, P.properties.total = o, P.properties.name = "Line " + this.currentLineIndex, i.push(P);
12829
+ const z = e[a];
12830
+ z.properties.totalDist = G.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), z.properties.sumLabel = z.properties.totalDist + " nm";
12821
12831
  }
12822
12832
  e.push(...i), t.total = o;
12823
12833
  }
@@ -12828,18 +12838,18 @@ const Qc = {
12828
12838
  let r, s;
12829
12839
  if (e) {
12830
12840
  const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
12831
- r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12841
+ r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12832
12842
  let f;
12833
- n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12834
- const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12843
+ n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12844
+ const w = H.lineString(f.map((P) => [P.lng, P.lat]));
12835
12845
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12836
12846
  }
12837
12847
  if (i) {
12838
12848
  const n = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12839
- r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12849
+ r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12840
12850
  let f;
12841
- n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12842
- const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12851
+ n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12852
+ const w = H.lineString(f.map((P) => [P.lng, P.lat]));
12843
12853
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12844
12854
  }
12845
12855
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
@@ -12981,11 +12991,11 @@ const Qc = {
12981
12991
  }
12982
12992
  },
12983
12993
  handleClear(t, e = !0) {
12984
- var s, c, n, g, p, f, w, L, _, P;
12994
+ var s, c, n, g, p, f, w, P, z, L;
12985
12995
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
12986
12996
  (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((b) => {
12987
12997
  b == null || b.remove();
12988
- }), this.pointMarkers[t.id] = [], (L = this.tipMarker) == null || L.remove(), this.tipMarker = void 0, e && ((_ = this.map) != null && _.getSource(o)) && this.map.removeSource(o), e && ((P = this.map) != null && P.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12998
+ }), this.pointMarkers[t.id] = [], (P = this.tipMarker) == null || P.remove(), this.tipMarker = void 0, e && ((z = this.map) != null && z.getSource(o)) && this.map.removeSource(o), e && ((L = this.map) != null && L.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12989
12999
  }
12990
13000
  }
12991
13001
  }, Jc = { class: "idm-gl4-measure" };
@@ -13144,7 +13154,7 @@ const om = {
13144
13154
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
13145
13155
  }, cm = ["onClick"], mm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, dm = { class: "text-body-1" };
13146
13156
  function hm(t, e, o, i, a, r) {
13147
- const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), L = x("VTooltip");
13157
+ const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), P = x("VTooltip");
13148
13158
  return y(), S("div", am, [
13149
13159
  l("div", {
13150
13160
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
@@ -13158,9 +13168,9 @@ function hm(t, e, o, i, a, r) {
13158
13168
  "day-about": a.dayAbout,
13159
13169
  "interval-hour": a.intervalHour
13160
13170
  }, t.$attrs, {
13161
- onCurrentTimestamp: e[0] || (e[0] = (_) => a.currentTimestamp = _),
13162
- onCurrentRealTime: e[1] || (e[1] = (_) => a.currentRealTime = _),
13163
- onTimestampRange: e[2] || (e[2] = (_) => a.timestampRange = _)
13171
+ onCurrentTimestamp: e[0] || (e[0] = (z) => a.currentTimestamp = z),
13172
+ onCurrentRealTime: e[1] || (e[1] = (z) => a.currentRealTime = z),
13173
+ onTimestampRange: e[2] || (e[2] = (z) => a.timestampRange = z)
13164
13174
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
13165
13175
  d(f, {
13166
13176
  text: "",
@@ -13174,13 +13184,13 @@ function hm(t, e, o, i, a, r) {
13174
13184
  default: u(() => [
13175
13185
  d(g, { class: "pa-1" }, {
13176
13186
  default: u(() => [
13177
- (y(!0), S(be, null, we(a.intervalOptions, (_, P) => (y(), A(n, {
13178
- key: P,
13179
- value: _,
13180
- variant: a.intervalHour === _ ? "tonal" : "text",
13187
+ (y(!0), S(be, null, we(a.intervalOptions, (z, L) => (y(), D(n, {
13188
+ key: L,
13189
+ value: z,
13190
+ variant: a.intervalHour === z ? "tonal" : "text",
13181
13191
  color: "primary",
13182
13192
  rounded: "",
13183
- active: a.intervalHour === _,
13193
+ active: a.intervalHour === z,
13184
13194
  height: "30",
13185
13195
  "min-height": "30",
13186
13196
  "min-width": "30",
@@ -13188,10 +13198,10 @@ function hm(t, e, o, i, a, r) {
13188
13198
  }, {
13189
13199
  default: u(() => [
13190
13200
  d(c, {
13191
- onClick: (b) => a.intervalHour = _
13201
+ onClick: (b) => a.intervalHour = z
13192
13202
  }, {
13193
13203
  default: u(() => [
13194
- N(h(_) + "h", 1)
13204
+ N(h(z) + "h", 1)
13195
13205
  ]),
13196
13206
  _: 2
13197
13207
  }, 1032, ["onClick"])
@@ -13240,7 +13250,7 @@ function hm(t, e, o, i, a, r) {
13240
13250
  _: 1,
13241
13251
  __: [10]
13242
13252
  }, 8, ["onClick"]),
13243
- a.paused ? (y(), A(f, {
13253
+ a.paused ? (y(), D(f, {
13244
13254
  key: 0,
13245
13255
  icon: "",
13246
13256
  size: "small",
@@ -13253,7 +13263,7 @@ function hm(t, e, o, i, a, r) {
13253
13263
  ])),
13254
13264
  _: 1,
13255
13265
  __: [11]
13256
- }, 8, ["onClick"])) : (y(), A(f, {
13266
+ }, 8, ["onClick"])) : (y(), D(f, {
13257
13267
  key: 1,
13258
13268
  icon: "",
13259
13269
  size: "small",
@@ -13287,21 +13297,21 @@ function hm(t, e, o, i, a, r) {
13287
13297
  style: { height: "16px" }
13288
13298
  }),
13289
13299
  l("div", lm, [
13290
- d(L, {
13300
+ d(P, {
13291
13301
  text: t.$t("weather.windBarbs"),
13292
13302
  location: "top"
13293
13303
  }, {
13294
- activator: u(({ props: _ }) => {
13295
- var P, b;
13304
+ activator: u(({ props: z }) => {
13305
+ var L, b;
13296
13306
  return [
13297
- d(f, B(_, {
13307
+ d(f, B(z, {
13298
13308
  class: "pa-1 d-flex",
13299
- color: (P = o.weatherCheckList) != null && P.includes("wind") ? "primary" : "",
13309
+ color: (L = o.weatherCheckList) != null && L.includes("wind") ? "primary" : "",
13300
13310
  variant: (b = o.weatherCheckList) != null && b.includes("wind") ? "elevated" : "text",
13301
13311
  height: "24",
13302
13312
  width: "24",
13303
13313
  "min-width": "24",
13304
- onClick: e[3] || (e[3] = (D) => r.handleClickFastWeather("wind"))
13314
+ onClick: e[3] || (e[3] = (A) => r.handleClickFastWeather("wind"))
13305
13315
  }), {
13306
13316
  default: u(() => e[14] || (e[14] = [
13307
13317
  l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
@@ -13313,24 +13323,24 @@ function hm(t, e, o, i, a, r) {
13313
13323
  }),
13314
13324
  _: 1
13315
13325
  }, 8, ["text"]),
13316
- d(L, {
13326
+ d(P, {
13317
13327
  text: t.$t("weather.sigWaveHeight"),
13318
13328
  location: "top"
13319
13329
  }, {
13320
- activator: u(({ props: _ }) => {
13321
- var P, b;
13330
+ activator: u(({ props: z }) => {
13331
+ var L, b;
13322
13332
  return [
13323
- d(f, B(_, {
13333
+ d(f, B(z, {
13324
13334
  class: "pa-1 d-flex",
13325
- color: (P = o.weatherCheckList) != null && P.includes("sig-wave-height") ? "primary" : "",
13335
+ color: (L = o.weatherCheckList) != null && L.includes("sig-wave-height") ? "primary" : "",
13326
13336
  variant: (b = o.weatherCheckList) != null && b.includes("sig-wave-height") ? "elevated" : "text",
13327
13337
  height: "24",
13328
13338
  width: "24",
13329
13339
  "min-width": "24",
13330
- onClick: e[4] || (e[4] = (D) => r.handleClickFastWeather("sig-wave-height"))
13340
+ onClick: e[4] || (e[4] = (A) => r.handleClickFastWeather("sig-wave-height"))
13331
13341
  }), {
13332
13342
  default: u(() => [
13333
- l("i", B(_, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13343
+ l("i", B(z, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13334
13344
  ]),
13335
13345
  _: 2
13336
13346
  }, 1040, ["color", "variant"])
@@ -13338,24 +13348,24 @@ function hm(t, e, o, i, a, r) {
13338
13348
  }),
13339
13349
  _: 1
13340
13350
  }, 8, ["text"]),
13341
- d(L, {
13351
+ d(P, {
13342
13352
  text: t.$t("weather.currentDirection"),
13343
13353
  location: "top"
13344
13354
  }, {
13345
- activator: u(({ props: _ }) => {
13346
- var P, b;
13355
+ activator: u(({ props: z }) => {
13356
+ var L, b;
13347
13357
  return [
13348
- d(f, B(_, {
13358
+ d(f, B(z, {
13349
13359
  class: "pa-1 d-flex",
13350
- color: (P = o.weatherCheckList) != null && P.includes("current-direction") ? "primary" : "",
13360
+ color: (L = o.weatherCheckList) != null && L.includes("current-direction") ? "primary" : "",
13351
13361
  variant: (b = o.weatherCheckList) != null && b.includes("current-direction") ? "elevated" : "text",
13352
13362
  height: "24",
13353
13363
  width: "24",
13354
13364
  "min-width": "24",
13355
- onClick: e[5] || (e[5] = (D) => r.handleClickFastWeather("current-direction"))
13365
+ onClick: e[5] || (e[5] = (A) => r.handleClickFastWeather("current-direction"))
13356
13366
  }), {
13357
13367
  default: u(() => [
13358
- l("i", B(_, { class: "iconfont icon-Current" }), null, 16)
13368
+ l("i", B(z, { class: "iconfont icon-Current" }), null, 16)
13359
13369
  ]),
13360
13370
  _: 2
13361
13371
  }, 1040, ["color", "variant"])
@@ -13363,12 +13373,12 @@ function hm(t, e, o, i, a, r) {
13363
13373
  }),
13364
13374
  _: 1
13365
13375
  }, 8, ["text"]),
13366
- d(L, {
13376
+ d(P, {
13367
13377
  text: t.$t("weather.weatherLayers"),
13368
13378
  location: "top"
13369
13379
  }, {
13370
- activator: u(({ props: _ }) => [
13371
- d(f, B(_, {
13380
+ activator: u(({ props: z }) => [
13381
+ d(f, B(z, {
13372
13382
  class: "pa-1 d-flex",
13373
13383
  variant: "text",
13374
13384
  height: "24",
@@ -13377,7 +13387,7 @@ function hm(t, e, o, i, a, r) {
13377
13387
  onClick: r.handleClickFastMore
13378
13388
  }), {
13379
13389
  default: u(() => [
13380
- l("i", B(_, { class: "iconfont icon-dots-align" }), null, 16)
13390
+ l("i", B(z, { class: "iconfont icon-dots-align" }), null, 16)
13381
13391
  ]),
13382
13392
  _: 2
13383
13393
  }, 1040, ["onClick"])
@@ -13396,7 +13406,7 @@ function hm(t, e, o, i, a, r) {
13396
13406
  height: "30",
13397
13407
  class: "px-2 elevation-0 text-body-1 btn-border-2",
13398
13408
  color: a.source === "GFS" ? "primary" : "",
13399
- onClick: e[6] || (e[6] = (_) => a.source = "GFS")
13409
+ onClick: e[6] || (e[6] = (z) => a.source = "GFS")
13400
13410
  }, {
13401
13411
  default: u(() => e[15] || (e[15] = [
13402
13412
  N("NOAA", -1)
@@ -13409,7 +13419,7 @@ function hm(t, e, o, i, a, r) {
13409
13419
  height: "30",
13410
13420
  class: "px-2 elevation-0 text-body-1 btn-border-2",
13411
13421
  color: a.source === "ECMWF" ? "primary" : "",
13412
- onClick: e[7] || (e[7] = (_) => a.source = "ECMWF")
13422
+ onClick: e[7] || (e[7] = (z) => a.source = "ECMWF")
13413
13423
  }, {
13414
13424
  default: u(() => e[16] || (e[16] = [
13415
13425
  N("ECMWF", -1)
@@ -13424,11 +13434,11 @@ function hm(t, e, o, i, a, r) {
13424
13434
  style: ie({ right: a.right + "px" })
13425
13435
  }, [
13426
13436
  a.showTimezone ? (y(), S("div", nm, [
13427
- (y(!0), S(be, null, we(a.offsets, (_) => (y(), S("div", {
13428
- key: _,
13437
+ (y(!0), S(be, null, we(a.offsets, (z) => (y(), S("div", {
13438
+ key: z,
13429
13439
  class: "item rounded text-body-2 hover-active",
13430
- onClick: (P) => a.timeZone = _
13431
- }, h(_ < 0 ? _ : "+" + _), 9, cm))), 128))
13440
+ onClick: (L) => a.timeZone = z
13441
+ }, h(z < 0 ? z : "+" + z), 9, cm))), 128))
13432
13442
  ])) : O("", !0),
13433
13443
  l("div", mm, [
13434
13444
  d(f, {
@@ -13437,7 +13447,7 @@ function hm(t, e, o, i, a, r) {
13437
13447
  height: "28",
13438
13448
  class: "pa-1 text-body-1",
13439
13449
  color: "primary",
13440
- onClick: e[8] || (e[8] = (_) => a.showTimezone = !a.showTimezone)
13450
+ onClick: e[8] || (e[8] = (z) => a.showTimezone = !a.showTimezone)
13441
13451
  }, {
13442
13452
  default: u(() => [
13443
13453
  N(" UTC " + h(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
@@ -13589,7 +13599,7 @@ class bm {
13589
13599
  me(this, "hi");
13590
13600
  me(this, "td");
13591
13601
  me(this, "windy");
13592
- var o, i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie, ge, fe, W, Ce, te, le, Oe, j, ye, Me, Be, Ee, E, q, Ge, Ve, Ze, Te, qe, Ye, Ke, Xe, $e, Qe, Je, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Uo, Wo, Go, Vo, Zo, qo, Yo, Ko, Xo, $o, Qo, Jo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ua, Wa, Ga;
13602
+ var o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie, ge, fe, W, Ce, te, le, Oe, j, ye, Me, Be, Ee, E, q, Ge, Ve, Ze, Te, qe, Ye, Ke, Xe, $e, Qe, Je, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Uo, Wo, Go, Vo, Zo, qo, Yo, Ko, Xo, $o, Qo, Jo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ua, Wa, Ga;
13593
13603
  this.i4 = {
13594
13604
  source: {
13595
13605
  type: "raster",
@@ -32170,12 +32180,12 @@ class bm {
32170
32180
  (c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((m) => m.id === "ice-area-fill"),
32171
32181
  (g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
32172
32182
  (f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((m) => m.id === "loadlines-label"),
32173
- (L = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : L.find((m) => m.id === "loadlines-fill"),
32174
- (P = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : P.find((m) => m.id === "empty-layer-0"),
32175
- (D = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : D.find((m) => m.id === "empty-layer-1"),
32183
+ (P = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : P.find((m) => m.id === "loadlines-fill"),
32184
+ (L = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : L.find((m) => m.id === "empty-layer-0"),
32185
+ (A = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : A.find((m) => m.id === "empty-layer-1"),
32176
32186
  (C = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : C.find((m) => m.id === "country-boundaries"),
32177
- (k = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline"),
32178
- (z = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline2"),
32187
+ (_ = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : _.find((m) => m.id === "water-outline"),
32188
+ (k = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline2"),
32179
32189
  (V = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : V.find((m) => m.id === "empty-layer-2"),
32180
32190
  (X = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : X.find((m) => m.id === "water-line-label"),
32181
32191
  (J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),
@@ -32502,6 +32512,6 @@ export {
32502
32512
  lo as PortDetail,
32503
32513
  Ka as TropicalGL,
32504
32514
  so as Viewport,
32505
- He as WebGL,
32515
+ Ne as WebGL,
32506
32516
  he as WebGLSchema
32507
32517
  };