@idmwx/idmui-gl4 2.2.2 → 2.2.4

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,7 +3,7 @@ var $a = (t, e, o) => e in t ? Qa(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var pe = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Ae from "axios";
5
5
  import { useTheme as De } from "vuetify";
6
- import { openBlock as g, createElementBlock as S, resolveComponent as w, createBlock as A, normalizeClass as ye, withCtx as u, createVNode as p, withModifiers as Se, createElementVNode as s, createCommentVNode as R, toDisplayString as n, createTextVNode as K, Fragment as xe, renderList as ke, withDirectives as Ye, vShow as Ze, mergeProps as j, normalizeStyle as ee, createStaticVNode as ei } from "vue";
6
+ import { openBlock as g, createElementBlock as S, resolveComponent as v, createBlock as A, normalizeClass as ge, withCtx as u, createVNode as p, withModifiers as Se, createElementVNode as s, createCommentVNode as R, toDisplayString as n, createTextVNode as K, Fragment as xe, renderList as ke, withDirectives as Ye, vShow as Ze, mergeProps as j, normalizeStyle as ee, createStaticVNode as ei } from "vue";
7
7
  import ze from "mapbox-gl";
8
8
  import M from "moment";
9
9
  import { LngLatHelper as q, TropicalHelper as Va, LaneHelper as Ve } from "@idm-plugin/geo";
@@ -475,8 +475,8 @@ const pi = {
475
475
  handleClick(t) {
476
476
  var i, a;
477
477
  const e = t.features[0], o = (a = (i = this.zone) == null ? void 0 : i.features) == null ? void 0 : a.filter((r) => {
478
- var l, c;
479
- return ((l = r.properties) == null ? void 0 : l.id) === ((c = e == null ? void 0 : e.properties) == null ? void 0 : c.id);
478
+ var l, m;
479
+ return ((l = r.properties) == null ? void 0 : l.id) === ((m = e == null ? void 0 : e.properties) == null ? void 0 : m.id);
480
480
  })[0];
481
481
  o && (this.showMakerInfo = !0, this.form = { ...o.properties }, this.simple || this.drawMarker([t.lngLat.lng, t.lngLat.lat]));
482
482
  },
@@ -497,14 +497,14 @@ const pi = {
497
497
  }
498
498
  }, ui = ["innerHTML"];
499
499
  function gi(t, e, o, i, a, r) {
500
- const l = w("VBtn"), c = w("v-card-text"), m = w("v-card");
501
- return a.showMakerInfo ? (g(), A(m, {
500
+ const l = v("VBtn"), m = v("v-card-text"), c = v("v-card");
501
+ return a.showMakerInfo ? (g(), A(c, {
502
502
  key: 0,
503
- class: ye(["idm-gl4-zone-info overflow-auto scroll", o.simple ? "page" : "dialog"]),
503
+ class: ge(["idm-gl4-zone-info overflow-auto scroll", o.simple ? "page" : "dialog"]),
504
504
  id: "idm-gl4-zone-info"
505
505
  }, {
506
506
  default: u(() => [
507
- p(c, null, {
507
+ p(m, null, {
508
508
  default: u(() => {
509
509
  var f;
510
510
  return [
@@ -1385,18 +1385,18 @@ const yi = {
1385
1385
  var o, i, a, r;
1386
1386
  const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ? q.guessTimeZoneOffset((a = this.port) == null ? void 0 : a.lng, (r = this.port) == null ? void 0 : r.lat) : 0;
1387
1387
  for (let l = 0; l < 4; l++) {
1388
- let c = {
1388
+ let m = {
1389
1389
  index: l,
1390
1390
  dateTimeList: [],
1391
1391
  label: M().utcOffset(e).add(l, "days").format("MM-DD ddd"),
1392
1392
  startTime: M().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
1393
1393
  dateTime: M().utcOffset(e).add(l, "days").format()
1394
1394
  };
1395
- for (let m = 0; m < 4; m++)
1396
- c.dateTimeList.push(
1397
- M(c.startTime).utcOffset(e).add(m * this.interval, "hours").utc().format()
1395
+ for (let c = 0; c < 4; c++)
1396
+ m.dateTimeList.push(
1397
+ M(m.startTime).utcOffset(e).add(c * this.interval, "hours").utc().format()
1398
1398
  );
1399
- t.push(c);
1399
+ t.push(m);
1400
1400
  }
1401
1401
  return t;
1402
1402
  },
@@ -1512,10 +1512,10 @@ const yi = {
1512
1512
  { label: "Swell", key: "weather.swell", unit: "m" },
1513
1513
  { label: "Current", key: "weather.current", unit: "kts" }
1514
1514
  ], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
1515
- var c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe;
1515
+ var m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe;
1516
1516
  let r = {};
1517
- const l = ((c = To.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
1518
- r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (m = l.weather) == null ? void 0 : m.url, r.temp = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((z = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.precip) == null ? void 0 : z.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((C = l == null ? void 0 : l.weather) == null ? void 0 : C.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((y = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : y.kts, 1) ?? "-", r.windDir = (D = (B = l == null ? void 0 : l.weather) == null ? void 0 : B.wind) == null ? void 0 : D.direction, r.windLevel = this.computeRoundPrecision((k = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : k.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((I = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.sig) == null ? void 0 : I.height, 1) ?? "-", r.sigwaveDir = (G = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : G.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision(($ = (Q = l == null ? void 0 : l.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.height, 1) ?? "-", r.windwaveDir = (le = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : le.direction, r.windwavePeriod = this.computeRoundPrecision((se = (ne = l == null ? void 0 : l.wave) == null ? void 0 : ne.wd) == null ? void 0 : se.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((me = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.height, 1) ?? "-", r.swellDir = (he = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((O = (de = l == null ? void 0 : l.wave) == null ? void 0 : de.swell) == null ? void 0 : O.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((te = l == null ? void 0 : l.current) == null ? void 0 : te.speed, 1) ?? "-", r.currentDir = (be = l == null ? void 0 : l.current) == null ? void 0 : be.direction, r.currentSpeed = this.computeRoundPrecision((ve = l == null ? void 0 : l.current) == null ? void 0 : ve.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.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;
1517
+ const l = ((m = To.pickHourly(t, M(i))) == null ? void 0 : m[0]) || {};
1518
+ r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (c = l.weather) == null ? void 0 : c.url, r.temp = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = l == null ? void 0 : l.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (_ = l == null ? void 0 : l.weather) == null ? void 0 : _.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (D = (B = l == null ? void 0 : l.weather) == null ? void 0 : B.wind) == null ? void 0 : D.direction, r.windLevel = this.computeRoundPrecision((L = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.wind) == null ? void 0 : L.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((I = (z = l == null ? void 0 : l.wave) == null ? void 0 : z.sig) == null ? void 0 : I.height, 1) ?? "-", r.sigwaveDir = (G = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : G.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision(($ = (Q = l == null ? void 0 : l.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.height, 1) ?? "-", r.windwaveDir = (le = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : le.direction, r.windwavePeriod = this.computeRoundPrecision((se = (ne = l == null ? void 0 : l.wave) == null ? void 0 : ne.wd) == null ? void 0 : se.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((me = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.height, 1) ?? "-", r.swellDir = (he = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((O = (de = l == null ? void 0 : l.wave) == null ? void 0 : de.swell) == null ? void 0 : O.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((te = l == null ? void 0 : l.current) == null ? void 0 : te.speed, 1) ?? "-", r.currentDir = (be = l == null ? void 0 : l.current) == null ? void 0 : be.direction, r.currentSpeed = this.computeRoundPrecision((ve = l == null ? void 0 : l.current) == null ? void 0 : ve.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.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;
1519
1519
  });
1520
1520
  },
1521
1521
  handleTide() {
@@ -1719,30 +1719,30 @@ const yi = {
1719
1719
  width: "120"
1720
1720
  }, fr = { class: "px-1 text-center" }, yr = { class: "px-1 text-center" }, br = { class: "px-1 text-center" };
1721
1721
  function wr(t, e, o, i, a, r) {
1722
- const l = w("VIcon"), c = w("VBtn"), m = w("v-icon"), f = w("VCardTitle"), d = w("VDivider"), b = w("VBtnToggle"), v = w("VCard");
1723
- return g(), A(v, {
1724
- class: ye(["port-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
1722
+ const l = v("VBtn"), m = v("VCardTitle"), c = v("VDivider"), f = v("VBtnToggle"), d = v("VCard");
1723
+ return g(), A(d, {
1724
+ class: ge(["port-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
1725
1725
  }, {
1726
1726
  default: u(() => {
1727
- var z, C, L;
1727
+ var b, w, k;
1728
1728
  return [
1729
- p(f, { class: "w-100" }, {
1729
+ p(m, { class: "w-100" }, {
1730
1730
  default: u(() => {
1731
- var y, B, D, P, k, x;
1731
+ var y, _, T, B, D, x;
1732
1732
  return [
1733
1733
  s("div", bi, [
1734
1734
  s("div", wi, [
1735
1735
  s("div", {
1736
- class: ye(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (D = (B = o.port) == null ? void 0 : B.cntLoCode) == null ? void 0 : D.toLowerCase() : "xx"}`]),
1736
+ class: ge(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (T = (_ = o.port) == null ? void 0 : _.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1737
1737
  style: { width: "36px", height: "24px" }
1738
1738
  }, null, 2),
1739
- s("div", null, n((P = o.port) == null ? void 0 : P.name), 1)
1739
+ s("div", null, n((B = o.port) == null ? void 0 : B.name), 1)
1740
1740
  ]),
1741
1741
  o.simple ? (g(), S("div", xi, [
1742
- (k = o.followList) != null && k.some((T) => {
1743
- var _;
1744
- return ((_ = T.port) == null ? void 0 : _.id) === o.portId;
1745
- }) ? (g(), A(c, {
1742
+ (D = o.followList) != null && D.some((L) => {
1743
+ var P;
1744
+ return ((P = L.port) == null ? void 0 : P.id) === o.portId;
1745
+ }) ? (g(), A(l, {
1746
1746
  key: 0,
1747
1747
  class: "text-none rounded-circle",
1748
1748
  variant: "text",
@@ -1752,15 +1752,12 @@ function wr(t, e, o, i, a, r) {
1752
1752
  "min-width": "28",
1753
1753
  onClick: r.handleCancelFollow
1754
1754
  }, {
1755
- default: u(() => [
1756
- p(l, {
1757
- icon: "mdi-star",
1758
- color: "warning",
1759
- size: "20"
1760
- })
1761
- ]),
1762
- _: 1
1763
- }, 8, ["onClick"])) : (g(), A(c, {
1755
+ default: u(() => e[2] || (e[2] = [
1756
+ s("i", { class: "iconfont icon-yishoucang text-h4 text-warning" }, null, -1)
1757
+ ])),
1758
+ _: 1,
1759
+ __: [2]
1760
+ }, 8, ["onClick"])) : (g(), A(l, {
1764
1761
  key: 1,
1765
1762
  class: "text-none rounded-circle",
1766
1763
  variant: "text",
@@ -1770,47 +1767,45 @@ function wr(t, e, o, i, a, r) {
1770
1767
  "min-width": "28",
1771
1768
  onClick: r.handleFollow
1772
1769
  }, {
1773
- default: u(() => [
1774
- p(m, {
1775
- icon: "mdi-star-outline",
1776
- size: "20"
1777
- })
1778
- ]),
1779
- _: 1
1770
+ default: u(() => e[3] || (e[3] = [
1771
+ s("i", { class: "iconfont icon-weishoucang text-h4" }, null, -1)
1772
+ ])),
1773
+ _: 1,
1774
+ __: [3]
1780
1775
  }, 8, ["onClick"])),
1781
- p(c, {
1776
+ p(l, {
1782
1777
  icon: "",
1783
1778
  density: "compact",
1784
1779
  variant: "plain",
1785
1780
  class: "mr-n2",
1786
1781
  onClick: r.handleClose
1787
1782
  }, {
1788
- default: u(() => e[2] || (e[2] = [
1783
+ default: u(() => e[4] || (e[4] = [
1789
1784
  s("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
1790
1785
  ])),
1791
1786
  _: 1,
1792
- __: [2]
1787
+ __: [4]
1793
1788
  }, 8, ["onClick"])
1794
1789
  ])) : (g(), S("div", vi, [
1795
- p(c, {
1790
+ p(l, {
1796
1791
  icon: "",
1797
1792
  density: "compact",
1798
1793
  variant: "plain",
1799
1794
  class: "mr-n2",
1800
1795
  onClick: r.handleClose
1801
1796
  }, {
1802
- default: u(() => e[3] || (e[3] = [
1797
+ default: u(() => e[5] || (e[5] = [
1803
1798
  s("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
1804
1799
  ])),
1805
1800
  _: 1,
1806
- __: [3]
1801
+ __: [5]
1807
1802
  }, 8, ["onClick"])
1808
1803
  ]))
1809
1804
  ]),
1810
1805
  s("div", _i, [
1811
1806
  s("div", null, n(t.$t("port.port")), 1),
1812
1807
  s("div", null, [
1813
- e[4] || (e[4] = s("label", null, "UN/LOCODE: ", -1)),
1808
+ e[6] || (e[6] = s("label", null, "UN/LOCODE: ", -1)),
1814
1809
  s("span", null, n((x = o.port) == null ? void 0 : x.cntLoCode), 1)
1815
1810
  ])
1816
1811
  ])
@@ -1818,42 +1813,43 @@ function wr(t, e, o, i, a, r) {
1818
1813
  }),
1819
1814
  _: 1
1820
1815
  }),
1821
- p(d, { class: "w-100" }),
1816
+ p(c, { class: "w-100" }),
1822
1817
  o.simple ? R("", !0) : (g(), S("div", ki, [
1823
- (z = o.followList) != null && z.some((y) => {
1824
- var B;
1825
- return ((B = y.port) == null ? void 0 : B.id) === o.portId;
1826
- }) ? (g(), A(c, {
1818
+ (b = o.followList) != null && b.some((y) => {
1819
+ var _;
1820
+ return ((_ = y.port) == null ? void 0 : _.id) === o.portId;
1821
+ }) ? (g(), A(l, {
1827
1822
  key: 0,
1828
1823
  class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
1829
1824
  variant: "tonal",
1830
1825
  density: "compact",
1831
1826
  height: "32",
1832
- "prepend-icon": "mdi-star",
1833
1827
  onClick: r.handleCancelFollow
1834
1828
  }, {
1835
- prepend: u(() => [
1836
- p(l, { color: "warning" })
1837
- ]),
1829
+ prepend: u(() => e[7] || (e[7] = [
1830
+ s("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
1831
+ ])),
1838
1832
  default: u(() => [
1839
1833
  K(" " + n(t.$t("actions.unfollow")), 1)
1840
1834
  ]),
1841
1835
  _: 1
1842
- }, 8, ["onClick"])) : (g(), A(c, {
1836
+ }, 8, ["onClick"])) : (g(), A(l, {
1843
1837
  key: 1,
1844
1838
  class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
1845
1839
  variant: "tonal",
1846
1840
  density: "compact",
1847
1841
  height: "32",
1848
- "prepend-icon": "mdi-star-outline",
1849
1842
  onClick: r.handleFollow
1850
1843
  }, {
1844
+ prepend: u(() => e[8] || (e[8] = [
1845
+ s("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
1846
+ ])),
1851
1847
  default: u(() => [
1852
- K(n(t.$t("actions.follow")), 1)
1848
+ K(n(t.$t("actions.follow")) + " ", 1)
1853
1849
  ]),
1854
1850
  _: 1
1855
1851
  }, 8, ["onClick"])),
1856
- p(c, {
1852
+ p(l, {
1857
1853
  class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
1858
1854
  variant: "tonal",
1859
1855
  density: "compact",
@@ -1868,7 +1864,7 @@ function wr(t, e, o, i, a, r) {
1868
1864
  ])),
1869
1865
  s("div", {
1870
1866
  ref: "scrollDom",
1871
- class: ye(["w-100 pt-0 flex-1-1-0 overflow-y-auto scroll mb-4", o.simple ? "px-3" : "px-5"])
1867
+ class: ge(["w-100 pt-0 flex-1-1-0 overflow-y-auto scroll mb-4", o.simple ? "px-3" : "px-5"])
1872
1868
  }, [
1873
1869
  s("div", zi, [
1874
1870
  s("div", Li, [
@@ -1880,12 +1876,12 @@ function wr(t, e, o, i, a, r) {
1880
1876
  ])),
1881
1877
  s("div", null, n(t.$t("detail.summary")), 1)
1882
1878
  ]),
1883
- e[5] || (e[5] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
1879
+ e[9] || (e[9] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
1884
1880
  ]),
1885
1881
  s("div", Si, [
1886
1882
  s("div", Mi, [
1887
1883
  s("div", Di, n(t.$t("port.region")), 1),
1888
- s("div", Ii, n(((C = o.port) == null ? void 0 : C.region) ?? ((L = o.port) == null ? void 0 : L.city) ?? "-"), 1)
1884
+ s("div", Ii, n(((w = o.port) == null ? void 0 : w.region) ?? ((k = o.port) == null ? void 0 : k.city) ?? "-"), 1)
1889
1885
  ]),
1890
1886
  s("div", Ri, [
1891
1887
  s("div", Ai, n(t.$t("port.position")), 1),
@@ -1907,12 +1903,12 @@ function wr(t, e, o, i, a, r) {
1907
1903
  ])),
1908
1904
  s("div", null, n(t.$t("weather.weather")), 1)
1909
1905
  ]),
1910
- e[6] || (e[6] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
1906
+ e[10] || (e[10] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
1911
1907
  ]),
1912
1908
  s("div", {
1913
- class: ye(["w-100 gray-bg-2 rounded", o.simple ? "pa-2" : "pa-4"])
1909
+ class: ge(["w-100 gray-bg-2 rounded", o.simple ? "pa-2" : "pa-4"])
1914
1910
  }, [
1915
- p(b, {
1911
+ p(f, {
1916
1912
  modelValue: a.currentIndex,
1917
1913
  "onUpdate:modelValue": e[0] || (e[0] = (y) => a.currentIndex = y),
1918
1914
  class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-2",
@@ -1923,7 +1919,7 @@ function wr(t, e, o, i, a, r) {
1923
1919
  rounded: "1"
1924
1920
  }, {
1925
1921
  default: u(() => [
1926
- (g(!0), S(xe, null, ke(r.dateList, (y) => (g(), A(c, {
1922
+ (g(!0), S(xe, null, ke(r.dateList, (y) => (g(), A(l, {
1927
1923
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1928
1924
  density: "compact",
1929
1925
  color: "primary",
@@ -1991,14 +1987,14 @@ function wr(t, e, o, i, a, r) {
1991
1987
  s("div", null, n(t.$t("tide.tideTimes")), 1)
1992
1988
  ]),
1993
1989
  s("div", mr, [
1994
- a.showTideDetail ? (g(), A(c, {
1990
+ a.showTideDetail ? (g(), A(l, {
1995
1991
  key: 0,
1996
1992
  icon: "mdi-eye-off-outline",
1997
1993
  density: "compact",
1998
1994
  variant: "plain",
1999
1995
  size: "small",
2000
1996
  onClick: e[1] || (e[1] = (y) => a.showTideDetail = !1)
2001
- })) : (g(), A(c, {
1997
+ })) : (g(), A(l, {
2002
1998
  key: 1,
2003
1999
  icon: "mdi-eye-outline",
2004
2000
  density: "compact",
@@ -2010,7 +2006,7 @@ function wr(t, e, o, i, a, r) {
2010
2006
  ]),
2011
2007
  a.showTideDetail ? (g(), S("div", {
2012
2008
  key: 0,
2013
- class: ye(["w-100 gray-bg-2 rounded", o.simple ? "pa-2" : "pa-4"])
2009
+ class: ge(["w-100 gray-bg-2 rounded", o.simple ? "pa-2" : "pa-4"])
2014
2010
  }, [
2015
2011
  s("div", hr, null, 512),
2016
2012
  s("table", dr, [
@@ -2020,10 +2016,10 @@ function wr(t, e, o, i, a, r) {
2020
2016
  s("th", ur, n(t.$t("time.time")) + " ( LT ) ", 1),
2021
2017
  s("th", gr, n(t.$t("tide.height")) + " ( m )", 1)
2022
2018
  ]),
2023
- (g(!0), S(xe, null, ke(a.tideTableData, (y, B) => {
2024
- var D;
2025
- return g(), S("tr", { key: B }, [
2026
- s("td", fr, n(t.$t(`tide.${(D = y == null ? void 0 : y.type) == null ? void 0 : D.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
2019
+ (g(!0), S(xe, null, ke(a.tideTableData, (y, _) => {
2020
+ var T;
2021
+ return g(), S("tr", { key: _ }, [
2022
+ s("td", fr, n(t.$t(`tide.${(T = y == null ? void 0 : y.type) == null ? void 0 : T.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
2027
2023
  s("td", yr, n(r.computeLocalTime(y == null ? void 0 : y.date, o.port, "MM-DD HH:mm")), 1),
2028
2024
  s("td", br, n((y == null ? void 0 : y.height) ?? "-") + " m", 1)
2029
2025
  ]);
@@ -2038,7 +2034,7 @@ function wr(t, e, o, i, a, r) {
2038
2034
  _: 1
2039
2035
  }, 8, ["class"]);
2040
2036
  }
2041
- const Do = /* @__PURE__ */ X(yi, [["render", wr], ["__scopeId", "data-v-b9dbfa4f"]]);
2037
+ const Do = /* @__PURE__ */ X(yi, [["render", wr], ["__scopeId", "data-v-1a7eeef1"]]);
2042
2038
  const xr = {
2043
2039
  name: "IdmPort",
2044
2040
  components: {
@@ -2147,9 +2143,9 @@ const xr = {
2147
2143
  }
2148
2144
  }, vr = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, _r = { class: "d-flex justify-start align-center text-label" }, kr = { class: "d-flex justify-start align-center text-label" };
2149
2145
  function zr(t, e, o, i, a, r) {
2150
- const l = w("VCardText"), c = w("VCard"), m = w("PortDetail");
2146
+ const l = v("VCardText"), m = v("VCard"), c = v("PortDetail");
2151
2147
  return g(), S("div", null, [
2152
- Ye(p(c, {
2148
+ Ye(p(m, {
2153
2149
  id: "idmPortInfo",
2154
2150
  ref: "idmPortInfo"
2155
2151
  }, {
@@ -2174,7 +2170,7 @@ function zr(t, e, o, i, a, r) {
2174
2170
  }, 512), [
2175
2171
  [Ze, a.showInfo]
2176
2172
  ]),
2177
- a.showDetail ? (g(), A(m, j({
2173
+ a.showDetail ? (g(), A(c, j({
2178
2174
  key: 0,
2179
2175
  portId: a.portId,
2180
2176
  port: a.port,
@@ -2419,8 +2415,8 @@ const Cr = /* @__PURE__ */ X(Pr, [["render", Tr]]), Sr = {
2419
2415
  type: "FeatureCollection"
2420
2416
  };
2421
2417
  a.features = (o = this.zone.features) == null ? void 0 : o.map((l) => {
2422
- const c = JSON.parse(JSON.stringify(l));
2423
- return c.properties.offSet === t.features[0].properties.offSet ? (c.properties.opacity = 0.25, c.properties.lineOpacity = 0.7, c.properties.width = 2) : (c.properties.opacity = 0, c.properties.lineOpacity = 0.2, c.properties.width = 1), c;
2418
+ const m = JSON.parse(JSON.stringify(l));
2419
+ return m.properties.offSet === t.features[0].properties.offSet ? (m.properties.opacity = 0.25, m.properties.lineOpacity = 0.7, m.properties.width = 2) : (m.properties.opacity = 0, m.properties.lineOpacity = 0.2, m.properties.width = 1), m;
2424
2420
  }), (i = this.map.getSource(this.source)) == null || i.setData(a);
2425
2421
  const r = document.createElement("div");
2426
2422
  r.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", r.innerHTML = `<div>UTC ${t.features[0].properties.offSet}:00</div>
@@ -2873,16 +2869,16 @@ const Kr = {
2873
2869
  var o, i, a, r;
2874
2870
  const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ? q.guessTimeZoneOffset((a = this.station) == null ? void 0 : a.lng, (r = this.station) == null ? void 0 : r.lat) : 0;
2875
2871
  for (let l = 0; l < 4; l++) {
2876
- let c = {
2872
+ let m = {
2877
2873
  index: l,
2878
2874
  dateTimeList: [],
2879
2875
  label: M().utcOffset(e).add(l, "days").format("MM-DD ddd"),
2880
2876
  startTime: M().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
2881
2877
  dateTime: M().utcOffset(e).add(l, "days").format()
2882
2878
  };
2883
- for (let m = 0; m < 4; m++)
2884
- c.dateTimeList.push(M(c.startTime).utcOffset(e).add(m * 3, "hours").utc().format());
2885
- t.push(c);
2879
+ for (let c = 0; c < 4; c++)
2880
+ m.dateTimeList.push(M(m.startTime).utcOffset(e).add(c * 3, "hours").utc().format());
2881
+ t.push(m);
2886
2882
  }
2887
2883
  return t;
2888
2884
  },
@@ -3103,20 +3099,20 @@ const Kr = {
3103
3099
  width: "120"
3104
3100
  }, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Ts = { class: "px-1 text-center" };
3105
3101
  function Cs(t, e, o, i, a, r) {
3106
- const l = w("VBtn"), c = w("v-card-title"), m = w("v-divider"), f = w("VBtnToggle"), d = w("v-card");
3102
+ const l = v("VBtn"), m = v("v-card-title"), c = v("v-divider"), f = v("VBtnToggle"), d = v("v-card");
3107
3103
  return g(), A(d, {
3108
- class: ye(["tide-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
3104
+ class: ge(["tide-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
3109
3105
  }, {
3110
3106
  default: u(() => {
3111
- var b, v;
3107
+ var b, w;
3112
3108
  return [
3113
- p(c, { class: "w-100" }, {
3109
+ p(m, { class: "w-100" }, {
3114
3110
  default: u(() => {
3115
- var z;
3111
+ var k;
3116
3112
  return [
3117
3113
  s("div", Jr, [
3118
3114
  s("div", Qr, [
3119
- s("div", null, n((z = o.station) == null ? void 0 : z.name), 1)
3115
+ s("div", null, n((k = o.station) == null ? void 0 : k.name), 1)
3120
3116
  ]),
3121
3117
  p(l, {
3122
3118
  icon: "",
@@ -3139,9 +3135,9 @@ function Cs(t, e, o, i, a, r) {
3139
3135
  }),
3140
3136
  _: 1
3141
3137
  }),
3142
- p(m, { class: "w-100" }),
3138
+ p(c, { class: "w-100" }),
3143
3139
  s("div", {
3144
- class: ye(["w-100 pt-0 pb-0 overflow-y-auto scroll", o.simple ? "px-3" : "px-5"])
3140
+ class: ge(["w-100 pt-0 pb-0 overflow-y-auto scroll", o.simple ? "px-3" : "px-5"])
3145
3141
  }, [
3146
3142
  s("div", es, [
3147
3143
  s("div", ts, [
@@ -3157,7 +3153,7 @@ function Cs(t, e, o, i, a, r) {
3157
3153
  s("div", rs, [
3158
3154
  s("div", ss, [
3159
3155
  s("div", ls, n(t.$t("tide.region")), 1),
3160
- s("div", ns, n(((b = o.station) == null ? void 0 : b.Country) ?? ((v = o.station) == null ? void 0 : v.city) ?? "-"), 1)
3156
+ s("div", ns, n(((b = o.station) == null ? void 0 : b.Country) ?? ((w = o.station) == null ? void 0 : w.city) ?? "-"), 1)
3161
3157
  ]),
3162
3158
  s("div", cs, [
3163
3159
  s("div", ms, n(t.$t("tide.position")), 1),
@@ -3182,11 +3178,11 @@ function Cs(t, e, o, i, a, r) {
3182
3178
  e[2] || (e[2] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
3183
3179
  ]),
3184
3180
  s("div", {
3185
- class: ye(["w-100 gray-bg-2 rounded", o.simple ? "pa-2" : "pa-4"])
3181
+ class: ge(["w-100 gray-bg-2 rounded", o.simple ? "pa-2" : "pa-4"])
3186
3182
  }, [
3187
3183
  p(f, {
3188
3184
  modelValue: a.currentIndex,
3189
- "onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentIndex = z),
3185
+ "onUpdate:modelValue": e[0] || (e[0] = (k) => a.currentIndex = k),
3190
3186
  class: "w-100 gray-bg-2 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
3191
3187
  density: "compact",
3192
3188
  group: "",
@@ -3195,15 +3191,15 @@ function Cs(t, e, o, i, a, r) {
3195
3191
  rounded: "1"
3196
3192
  }, {
3197
3193
  default: u(() => [
3198
- (g(!0), S(xe, null, ke(r.dateList, (z) => (g(), A(l, {
3194
+ (g(!0), S(xe, null, ke(r.dateList, (k) => (g(), A(l, {
3199
3195
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
3200
3196
  density: "compact",
3201
3197
  color: "primary",
3202
3198
  height: "26",
3203
- value: z.index
3199
+ value: k.index
3204
3200
  }, {
3205
3201
  default: u(() => [
3206
- K(n(z.label), 1)
3202
+ K(n(k.label), 1)
3207
3203
  ]),
3208
3204
  _: 2
3209
3205
  }, 1032, ["value"]))), 256))
@@ -3218,12 +3214,12 @@ function Cs(t, e, o, i, a, r) {
3218
3214
  s("th", ks, n(t.$t("time.time")) + " ( LT ) ", 1),
3219
3215
  s("th", zs, n(t.$t("tide.height")) + " ( m )", 1)
3220
3216
  ]),
3221
- (g(!0), S(xe, null, ke(a.tideTableData, (z, C) => {
3222
- var L;
3223
- return g(), S("tr", { key: C }, [
3224
- s("td", Ls, n(t.$t(`tide.${(L = z == null ? void 0 : z.type) == null ? void 0 : L.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
3225
- s("td", Ps, n(r.computeLocalTime(z == null ? void 0 : z.date, o.station, "MM-DD HH:mm")), 1),
3226
- s("td", Ts, n((z == null ? void 0 : z.height) ?? "-") + " m", 1)
3217
+ (g(!0), S(xe, null, ke(a.tideTableData, (k, y) => {
3218
+ var _;
3219
+ return g(), S("tr", { key: y }, [
3220
+ s("td", Ls, n(t.$t(`tide.${(_ = k == null ? void 0 : k.type) == null ? void 0 : _.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
3221
+ s("td", Ps, n(r.computeLocalTime(k == null ? void 0 : k.date, o.station, "MM-DD HH:mm")), 1),
3222
+ s("td", Ts, n((k == null ? void 0 : k.height) ?? "-") + " m", 1)
3227
3223
  ]);
3228
3224
  }), 128))
3229
3225
  ])
@@ -3314,9 +3310,9 @@ const Ms = {
3314
3310
  }
3315
3311
  }, Ds = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Is = { class: "d-flex justify-start align-center" }, Rs = { class: "d-flex justify-start align-center" }, As = { class: "text-label" };
3316
3312
  function Os(t, e, o, i, a, r) {
3317
- const l = w("v-card-text"), c = w("v-card"), m = w("TideDetail");
3313
+ const l = v("v-card-text"), m = v("v-card"), c = v("TideDetail");
3318
3314
  return g(), S("div", null, [
3319
- Ye(p(c, { id: "idmTidalInfo" }, {
3315
+ Ye(p(m, { id: "idmTidalInfo" }, {
3320
3316
  default: u(() => [
3321
3317
  p(l, { class: "pr-8 text-body-1" }, {
3322
3318
  default: u(() => {
@@ -3337,7 +3333,7 @@ function Os(t, e, o, i, a, r) {
3337
3333
  }, 512), [
3338
3334
  [Ze, a.showInfo]
3339
3335
  ]),
3340
- a.showDetail ? (g(), A(m, j({
3336
+ a.showDetail ? (g(), A(c, j({
3341
3337
  key: 0,
3342
3338
  station: a.station,
3343
3339
  onClose: r.handleCloseDetail
@@ -3558,15 +3554,15 @@ const Fs = {
3558
3554
  }
3559
3555
  };
3560
3556
  function Hs(t, e, o, i, a, r) {
3561
- var l, c, m;
3557
+ var l, m, c;
3562
3558
  return o.simple ? R("", !0) : (g(), S("div", {
3563
3559
  key: 0,
3564
3560
  class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
3565
3561
  style: ee({ right: a.right + "px" })
3566
3562
  }, [
3567
3563
  s("div", null, n((l = a.lngLat) == null ? void 0 : l.lat), 1),
3568
- s("div", null, n((c = a.lngLat) == null ? void 0 : c.lng), 1),
3569
- s("div", null, n((m = a.lngLat) == null ? void 0 : m.str), 1)
3564
+ s("div", null, n((m = a.lngLat) == null ? void 0 : m.lng), 1),
3565
+ s("div", null, n((c = a.lngLat) == null ? void 0 : c.str), 1)
3570
3566
  ], 4));
3571
3567
  }
3572
3568
  const Xa = /* @__PURE__ */ X(Fs, [["render", Hs]]);
@@ -4481,9 +4477,9 @@ const Gs = {
4481
4477
  }
4482
4478
  }, Ws = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Us = { class: "d-flex justify-start align-center text-label" }, Vs = { class: "d-flex justify-start align-center text-label" };
4483
4479
  function Ys(t, e, o, i, a, r) {
4484
- const l = w("v-card-text"), c = w("v-card"), m = w("PortDetail");
4480
+ const l = v("v-card-text"), m = v("v-card"), c = v("PortDetail");
4485
4481
  return g(), S("div", null, [
4486
- Ye(p(c, {
4482
+ Ye(p(m, {
4487
4483
  id: "idmFollowPortInfo",
4488
4484
  ref: "idmFollowPortInfo"
4489
4485
  }, {
@@ -4508,7 +4504,7 @@ function Ys(t, e, o, i, a, r) {
4508
4504
  }, 512), [
4509
4505
  [Ze, a.showInfo]
4510
4506
  ]),
4511
- a.showDetail ? (g(), A(m, j({
4507
+ a.showDetail ? (g(), A(c, j({
4512
4508
  key: 0,
4513
4509
  portId: a.portId,
4514
4510
  port: a.port,
@@ -5405,19 +5401,19 @@ const Xs = {
5405
5401
  this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.off("click", [this.layer], this.handleClick), (e = this.map) == null || e.off("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.off("mouseleave", [this.layer], this.handleLeave);
5406
5402
  },
5407
5403
  handleClick(t) {
5408
- var o, i, a, r, l, c, m, f, d;
5404
+ var o, i, a, r, l, m, c, f, d;
5409
5405
  const e = t.features[0];
5410
5406
  if (e.properties) {
5411
5407
  const b = e.properties;
5412
5408
  b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
5413
- const v = M(), z = (o = M(this.realTime)) == null ? void 0 : o.diff(v, "d", !0), C = {
5409
+ const w = M(), k = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), y = {
5414
5410
  followId: b.id,
5415
5411
  lat: b.lat,
5416
5412
  lng: b.lng,
5417
5413
  datetime: this.realTime,
5418
5414
  forecastModel: this.forecastModel
5419
5415
  };
5420
- z >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchForecastData(C) : (d = (f = (m = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : m.$refs) == null ? void 0 : f.idmSpot) == null || d.fetchHistoryData(C);
5416
+ k >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchForecastData(y) : (d = (f = (c = (m = this.$parent) == null ? void 0 : m.$parent) == null ? void 0 : c.$refs) == null ? void 0 : f.idmSpot) == null || d.fetchHistoryData(y);
5421
5417
  }
5422
5418
  },
5423
5419
  handleHover(t) {
@@ -5440,8 +5436,8 @@ const Xs = {
5440
5436
  class: "d-flex justify-start align-center text-label"
5441
5437
  };
5442
5438
  function Qs(t, e, o, i, a, r) {
5443
- const l = w("v-card-text"), c = w("v-card");
5444
- return Ye((g(), A(c, {
5439
+ const l = v("v-card-text"), m = v("v-card");
5440
+ return Ye((g(), A(m, {
5445
5441
  id: "idmFollowPositionInfo",
5446
5442
  ref: "idmFollowPositionInfo"
5447
5443
  }, {
@@ -5548,7 +5544,7 @@ const el = {
5548
5544
  return {
5549
5545
  right: 10,
5550
5546
  toggle: !1,
5551
- mapFeather: localStorage.getItem("mapFeathersCacheGL4") || "light",
5547
+ mapFeather: localStorage.getItem("mapFeathersCacheGL4") || "dark",
5552
5548
  tagLayers: [...Co.OTHER_LAYERS.filter((t) => t.enabled)],
5553
5549
  layerWeight: 0,
5554
5550
  otherLayers: {},
@@ -5624,7 +5620,7 @@ const el = {
5624
5620
  this.cache.v !== t && (localStorage.removeItem(this.cache.checkListKey), localStorage.removeItem(this.cache.followListKey), localStorage.removeItem(this.cache.mapFeatherKey), localStorage.setItem(this.cache.versionKey, this.cache.v));
5625
5621
  let e = localStorage.getItem(this.cache.checkListKey);
5626
5622
  this.checkList = JSON.parse(e || '["eca-zones"]'), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList)), e = localStorage.getItem(this.cache.mapFeatherKey);
5627
- const o = e || "light";
5623
+ const o = e || "dark";
5628
5624
  this.$emit("mapFeather", o), localStorage.setItem(this.cache.mapFeatherKey, o);
5629
5625
  },
5630
5626
  handleMenuToggle() {
@@ -5644,18 +5640,18 @@ const el = {
5644
5640
  });
5645
5641
  if (((e = a == null ? void 0 : a.data) == null ? void 0 : e.code) === 0) {
5646
5642
  const r = (o = a == null ? void 0 : a.data) == null ? void 0 : o.data, l = [];
5647
- for (const m in r)
5643
+ for (const c in r)
5648
5644
  l.push(
5649
- Ae.get(r[m], {
5645
+ Ae.get(r[c], {
5650
5646
  headers: {
5651
5647
  Authorization: this.defaultMeteoToken,
5652
- key: m
5648
+ key: c
5653
5649
  }
5654
5650
  })
5655
5651
  );
5656
- (await Promise.all(l)).map((m) => {
5657
- var b, v, z;
5658
- const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), d = (z = (v = m == null ? void 0 : m.config) == null ? void 0 : v.headers) == null ? void 0 : z.key;
5652
+ (await Promise.all(l)).map((c) => {
5653
+ var b, w, k;
5654
+ const f = ((b = c == null ? void 0 : c.data) == null ? void 0 : b.data) || (c == null ? void 0 : c.data), d = (k = (w = c == null ? void 0 : c.config) == null ? void 0 : w.headers) == null ? void 0 : k.key;
5659
5655
  this.otherLayers[d] = f;
5660
5656
  });
5661
5657
  }
@@ -5694,13 +5690,13 @@ const el = {
5694
5690
  }, hl = { class: "text-body-2 text-center pt-1" };
5695
5691
  function dl(t, e, o, i, a, r) {
5696
5692
  var J, le, ne, se, ie, me, ue, he, de;
5697
- const l = w("VBtn"), c = w("VTooltip"), m = w("VCardTitle"), f = w("VCardItem"), d = w("VCheckbox"), b = w("VCardText"), v = w("VCard"), z = w("IdmLatLng"), C = w("IdmTerminator"), L = w("IdmTimezone"), y = w("IdmPort"), B = w("IdmAlertZone"), D = w("IdmTideStations"), P = w("IdmEcaZone"), k = w("IdmWarZone"), x = w("IdmGmdssArea"), T = w("IdmLoadLine"), _ = w("IdmWorldMarine"), I = w("IdmVRA"), F = w("IdmSpecialArea"), G = w("IdmWorld12nm"), Y = w("IdmChinaRoute"), Z = w("IdmIceAreas"), Q = w("IdmFollowPort"), $ = w("IdmFollowPosition");
5693
+ const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VCardItem"), d = v("VCheckbox"), b = v("VCardText"), w = v("VCard"), k = v("IdmLatLng"), y = v("IdmTerminator"), _ = v("IdmTimezone"), T = v("IdmPort"), B = v("IdmAlertZone"), D = v("IdmTideStations"), x = v("IdmEcaZone"), L = v("IdmWarZone"), P = v("IdmGmdssArea"), C = v("IdmLoadLine"), z = v("IdmWorldMarine"), I = v("IdmVRA"), F = v("IdmSpecialArea"), G = v("IdmWorld12nm"), Y = v("IdmChinaRoute"), Z = v("IdmIceAreas"), Q = v("IdmFollowPort"), $ = v("IdmFollowPosition");
5698
5694
  return g(), S("div", tl, [
5699
5695
  s("div", {
5700
- class: "menu-bar-box transition px-1 rounded",
5696
+ class: ge(["menu-bar-box transition px-1 rounded", o.simple ? "simple" : ""]),
5701
5697
  style: ee({ top: o.top + 10 + "px", right: a.right + "px", paddingTop: o.paddingTop + "px", height: o.menuHeight + "px" })
5702
5698
  }, [
5703
- p(c, {
5699
+ p(m, {
5704
5700
  text: t.$t("layer.mapLayers"),
5705
5701
  location: "left"
5706
5702
  }, {
@@ -5721,9 +5717,9 @@ function dl(t, e, o, i, a, r) {
5721
5717
  ]),
5722
5718
  _: 1
5723
5719
  }, 8, ["text"])
5724
- ], 4),
5720
+ ], 6),
5725
5721
  s("div", {
5726
- class: ye(["available-layers transition", a.toggle ? "right-bar" : ""]),
5722
+ class: ge(["available-layers transition", a.toggle ? "right-bar" : ""]),
5727
5723
  style: ee(r.listStyle)
5728
5724
  }, [
5729
5725
  s("div", ol, [
@@ -5743,14 +5739,14 @@ function dl(t, e, o, i, a, r) {
5743
5739
  }, 8, ["onClick"])
5744
5740
  ]),
5745
5741
  s("div", il, [
5746
- p(v, {
5742
+ p(w, {
5747
5743
  class: "block-bg mx-auto mb-3",
5748
5744
  elevation: "0"
5749
5745
  }, {
5750
5746
  default: u(() => [
5751
5747
  p(f, { class: "border-b-thin" }, {
5752
5748
  default: u(() => [
5753
- p(m, {
5749
+ p(c, {
5754
5750
  class: "text-subtitle-1 font-weight-medium",
5755
5751
  style: { "font-size": "16px !important" }
5756
5752
  }, {
@@ -5771,7 +5767,7 @@ function dl(t, e, o, i, a, r) {
5771
5767
  onClick: (te) => r.handleToggleMapFeather(O)
5772
5768
  }, [
5773
5769
  s("div", {
5774
- class: ye([a.mapFeather === O.value ? "active" : "", "img-box"])
5770
+ class: ge([a.mapFeather === O.value ? "active" : "", "img-box"])
5775
5771
  }, [
5776
5772
  O.value === "dark" ? (g(), S("img", ll)) : O.value === "nautical" ? (g(), S("img", nl)) : O.value === "satellite" ? (g(), S("img", cl)) : (g(), S("img", ml))
5777
5773
  ], 2),
@@ -5796,14 +5792,14 @@ function dl(t, e, o, i, a, r) {
5796
5792
  ]),
5797
5793
  _: 1
5798
5794
  }),
5799
- p(v, {
5795
+ p(w, {
5800
5796
  class: "block-bg mx-auto mb-3",
5801
5797
  elevation: "0"
5802
5798
  }, {
5803
5799
  default: u(() => [
5804
5800
  p(f, { class: "border-b-thin" }, {
5805
5801
  default: u(() => [
5806
- p(m, {
5802
+ p(c, {
5807
5803
  class: "text-subtitle-1 font-weight-medium",
5808
5804
  style: { "font-size": "16px !important" }
5809
5805
  }, {
@@ -5835,14 +5831,14 @@ function dl(t, e, o, i, a, r) {
5835
5831
  ]),
5836
5832
  _: 1
5837
5833
  }),
5838
- p(v, {
5834
+ p(w, {
5839
5835
  class: "block-bg mx-auto mb-3",
5840
5836
  elevation: "0"
5841
5837
  }, {
5842
5838
  default: u(() => [
5843
5839
  p(f, { class: "border-b-thin" }, {
5844
5840
  default: u(() => [
5845
- p(m, {
5841
+ p(c, {
5846
5842
  class: "text-subtitle-1 font-weight-medium",
5847
5843
  style: { "font-size": "16px !important" }
5848
5844
  }, {
@@ -5874,14 +5870,14 @@ function dl(t, e, o, i, a, r) {
5874
5870
  ]),
5875
5871
  _: 1
5876
5872
  }),
5877
- p(v, {
5873
+ p(w, {
5878
5874
  class: "block-bg mx-auto mb-3",
5879
5875
  elevation: "0"
5880
5876
  }, {
5881
5877
  default: u(() => [
5882
5878
  p(f, { class: "border-b-thin" }, {
5883
5879
  default: u(() => [
5884
- p(m, {
5880
+ p(c, {
5885
5881
  class: "text-subtitle-1 font-weight-medium",
5886
5882
  style: { "font-size": "16px !important" }
5887
5883
  }, {
@@ -5925,25 +5921,25 @@ function dl(t, e, o, i, a, r) {
5925
5921
  })
5926
5922
  ])
5927
5923
  ], 6),
5928
- o.map ? (g(), A(z, j({
5924
+ o.map ? (g(), A(k, j({
5929
5925
  key: 0,
5930
5926
  simple: o.simple,
5931
5927
  map: o.map,
5932
5928
  "menu-toggle": o.menuToggle,
5933
5929
  show: a.checkList.includes("graticule")
5934
5930
  }, t.$attrs), null, 16, ["simple", "map", "menu-toggle", "show"])) : R("", !0),
5935
- o.map ? (g(), A(C, j({
5931
+ o.map ? (g(), A(y, j({
5936
5932
  key: 1,
5937
5933
  map: o.map,
5938
5934
  area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
5939
5935
  }, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : R("", !0),
5940
- o.map ? (g(), A(L, j({
5936
+ o.map ? (g(), A(_, j({
5941
5937
  key: 2,
5942
5938
  map: o.map,
5943
5939
  zone: (le = a.otherLayers) == null ? void 0 : le["time-zones"],
5944
5940
  realTime: o.realTime
5945
5941
  }, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : R("", !0),
5946
- o.map ? (g(), A(y, j({
5942
+ o.map ? (g(), A(T, j({
5947
5943
  key: 3,
5948
5944
  ref: "idmPorts",
5949
5945
  simple: o.simple,
@@ -5978,27 +5974,27 @@ function dl(t, e, o, i, a, r) {
5978
5974
  forecastModel: o.forecastModel,
5979
5975
  "before-layer": "empty-layer-3"
5980
5976
  }, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : R("", !0),
5981
- o.map ? (g(), A(P, j({
5977
+ o.map ? (g(), A(x, j({
5982
5978
  key: 6,
5983
5979
  map: o.map,
5984
5980
  zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
5985
5981
  }, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
5986
- o.map ? (g(), A(k, j({
5982
+ o.map ? (g(), A(L, j({
5987
5983
  key: 7,
5988
5984
  map: o.map,
5989
5985
  zone: (me = a.otherLayers) == null ? void 0 : me["war-zones"]
5990
5986
  }, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
5991
- o.map ? (g(), A(x, j({
5987
+ o.map ? (g(), A(P, j({
5992
5988
  key: 8,
5993
5989
  map: o.map,
5994
5990
  area: (ue = a.otherLayers) == null ? void 0 : ue["gmdss-areas"]
5995
5991
  }, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
5996
- o.map ? (g(), A(T, j({
5992
+ o.map ? (g(), A(C, j({
5997
5993
  key: 9,
5998
5994
  map: o.map,
5999
5995
  show: a.checkList.includes("load-lines")
6000
5996
  }, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
6001
- o.map ? (g(), A(_, j({
5997
+ o.map ? (g(), A(z, j({
6002
5998
  key: 10,
6003
5999
  map: o.map,
6004
6000
  token: o.token,
@@ -6100,12 +6096,12 @@ class Io {
6100
6096
  * @param [lb.x, lb.y, rt.x, rt.y]
6101
6097
  */
6102
6098
  getBoundPixel() {
6103
- var C, L;
6104
- const e = (C = this.map) == null ? void 0 : C.getBounds();
6099
+ var y, _;
6100
+ const e = (y = this.map) == null ? void 0 : y.getBounds();
6105
6101
  if (!e)
6106
6102
  return [];
6107
- 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, l] = this.convertNLng(i[0]), [c, m] = this.convertNLng(a[0]), [f, d] = this.mercator.px([r, i[1]], o), [b, v] = this.mercator.px([c, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (l + m));
6108
- return [b, v, f + z, d];
6103
+ const o = ((_ = this.map) == null ? void 0 : _.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [m, c] = this.convertNLng(a[0]), [f, d] = this.mercator.px([r, i[1]], o), [b, w] = this.mercator.px([m, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (l + c));
6104
+ return [b, w, f + k, d];
6109
6105
  }
6110
6106
  /**
6111
6107
  * [视窗边界像素宽度]
@@ -6120,11 +6116,11 @@ class Io {
6120
6116
  * @param zoom
6121
6117
  */
6122
6118
  getWorldCopy(e, o) {
6123
- const i = 2 ** o, [a, r, l, c] = e.map((d) => ~~(d / (i * 256))), m = [];
6124
- for (let d = c; d <= r; d++)
6119
+ const i = 2 ** o, [a, r, l, m] = e.map((d) => ~~(d / (i * 256))), c = [];
6120
+ for (let d = m; d <= r; d++)
6125
6121
  for (let b = a; b <= l; b++)
6126
- m.push([b, d]);
6127
- return m.map((d) => {
6122
+ c.push([b, d]);
6123
+ return c.map((d) => {
6128
6124
  const b = 2 ** o * 256;
6129
6125
  return [d[0] * b, d[1] * b, b];
6130
6126
  });
@@ -6169,9 +6165,9 @@ class Fe {
6169
6165
  * @param width??
6170
6166
  * @param height??
6171
6167
  */
6172
- createTexture(e, o, i, a, r, l, c) {
6173
- const m = e.createTexture();
6174
- return e.bindTexture(e.TEXTURE_2D, m), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, o), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, a), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, a), r instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, l, c, 0, e.RGBA, e.UNSIGNED_BYTE, r) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, r), e.bindTexture(e.TEXTURE_2D, null), m;
6168
+ createTexture(e, o, i, a, r, l, m) {
6169
+ const c = e.createTexture();
6170
+ return e.bindTexture(e.TEXTURE_2D, c), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, o), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, a), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, a), r instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, l, m, 0, e.RGBA, e.UNSIGNED_BYTE, r) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, r), e.bindTexture(e.TEXTURE_2D, null), c;
6175
6171
  }
6176
6172
  /**
6177
6173
  * 创建数据资源
@@ -6209,13 +6205,13 @@ class Fe {
6209
6205
  const a = this.createProgram(e, o, i);
6210
6206
  if (a) {
6211
6207
  const r = { program: a }, l = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
6212
- for (let m = 0; m < l; m++) {
6213
- const f = e.getActiveAttrib(a, m);
6208
+ for (let c = 0; c < l; c++) {
6209
+ const f = e.getActiveAttrib(a, c);
6214
6210
  r[f.name] = e.getAttribLocation(a, f.name);
6215
6211
  }
6216
- const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
6217
- for (let m = 0; m < c; m++) {
6218
- const f = e.getActiveUniform(a, m);
6212
+ const m = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
6213
+ for (let c = 0; c < m; c++) {
6214
+ const f = e.getActiveUniform(a, c);
6219
6215
  r[f.name] = e.getUniformLocation(a, f.name);
6220
6216
  }
6221
6217
  return r;
@@ -6228,19 +6224,19 @@ class Fe {
6228
6224
  setup(e, o, i = !1, a, r) {
6229
6225
  const l = document.createElement("canvas");
6230
6226
  l.width = 256, l.height = 1;
6231
- const c = l.getContext("2d");
6232
- if (c && e) {
6233
- const m = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
6227
+ const m = l.getContext("2d");
6228
+ if (m && e) {
6229
+ const c = m == null ? void 0 : m.createLinearGradient(0, 0, 256, 0);
6234
6230
  return o.forEach(([f, d]) => {
6235
- m.addColorStop(f, d);
6236
- }), c.fillStyle = m, c.fillRect(0, 0, 256, 1), {
6231
+ c.addColorStop(f, d);
6232
+ }), m.fillStyle = c, m.fillRect(0, 0, 256, 1), {
6237
6233
  canvas: l,
6238
6234
  texture: this.createTexture(
6239
6235
  e,
6240
6236
  e.LINEAR,
6241
6237
  e.LINEAR,
6242
6238
  e.CLAMP_TO_EDGE,
6243
- i ? new Uint8Array(c.getImageData(0, 0, 256, 1).data) : l,
6239
+ i ? new Uint8Array(m.getImageData(0, 0, 256, 1).data) : l,
6244
6240
  a,
6245
6241
  r
6246
6242
  )
@@ -6251,32 +6247,32 @@ class Fe {
6251
6247
  const i = Math.ceil(Math.sqrt(o)), a = i * i, r = new Uint8Array(a * 4);
6252
6248
  for (let d = 0; d < r.length; d++)
6253
6249
  r[d] = Math.floor(Math.random() * 256);
6254
- const l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), m = new Float32Array(a);
6250
+ const l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), m = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = new Float32Array(a);
6255
6251
  for (let d = 0; d < a; d++)
6256
- m[d] = d;
6257
- const f = this.createDataBuffer(e, "array", m);
6258
- return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer: f };
6252
+ c[d] = d;
6253
+ const f = this.createDataBuffer(e, "array", c);
6254
+ return { resolution: i, total: a, texture0: l, texture1: m, indexBuffer: f };
6259
6255
  }
6260
6256
  bind(e, o, i) {
6261
6257
  const a = this.createProgram(e, o, i);
6262
6258
  if (a) {
6263
6259
  const r = this.createDataBuffer(e, "array", void 0), l = e.getAttribLocation(a, "a_position");
6264
6260
  e.enableVertexAttribArray(l), e.vertexAttribPointer(l, 2, e.FLOAT, !1, 0, 0);
6265
- const c = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
6266
- this.createDataBuffer(e, "array", c);
6267
- const m = e.getAttribLocation(a, "a_texCoord");
6268
- return e.enableVertexAttribArray(m), e.vertexAttribPointer(m, 2, e.FLOAT, !1, 0, 0), { program: a, aPositionBuffer: r };
6261
+ const m = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
6262
+ this.createDataBuffer(e, "array", m);
6263
+ const c = e.getAttribLocation(a, "a_texCoord");
6264
+ return e.enableVertexAttribArray(c), e.vertexAttribPointer(c, 2, e.FLOAT, !1, 0, 0), { program: a, aPositionBuffer: r };
6269
6265
  }
6270
6266
  return {};
6271
6267
  }
6272
6268
  bindParticle(e, o, i, a, r, l) {
6273
- const c = this.createProgramWrapper(e, o, i), m = this.createProgramWrapper(e, a, r), f = this.createProgramWrapper(e, a, l), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), b = e.createFramebuffer();
6274
- return { particle: c, screen: m, update: f, quadBuffer: d, frameBuffer: b };
6269
+ const m = this.createProgramWrapper(e, o, i), c = this.createProgramWrapper(e, a, r), f = this.createProgramWrapper(e, a, l), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), b = e.createFramebuffer();
6270
+ return { particle: m, screen: c, update: f, quadBuffer: d, frameBuffer: b };
6275
6271
  }
6276
- draw(e, o, i, a, r, l, c) {
6277
- var m, f;
6272
+ draw(e, o, i, a, r, l, m) {
6273
+ var c, f;
6278
6274
  if (o && i) {
6279
- e.resize(), o == null || o.viewport(0, 0, (m = o == null ? void 0 : o.canvas) == null ? void 0 : m.width, (f = o == null ? void 0 : o.canvas) == null ? void 0 : f.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
6275
+ e.resize(), o == null || o.viewport(0, 0, (c = o == null ? void 0 : o.canvas) == null ? void 0 : c.width, (f = o == null ? void 0 : o.canvas) == null ? void 0 : f.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
6280
6276
  try {
6281
6277
  o.useProgram(i);
6282
6278
  const d = {
@@ -6287,11 +6283,11 @@ class Fe {
6287
6283
  uvRange: o.getUniformLocation(i, "u_range_u_v"),
6288
6284
  sRange: o.getUniformLocation(i, "u_range_s")
6289
6285
  };
6290
- d.resolution && o.uniform2f(d.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), d.image && o.uniform1i(d.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), d.color && o.uniform1i(d.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (d.uvRange && o.uniform2f(d.uvRange, c.uvRange[0], c.uvRange[1]), d.sRange && o.uniform2f(d.sRange, c.sRange[0], c.sRange[1])), d.scale && o.uniform1f(d.scale, (c == null ? void 0 : c.scale) || 1);
6291
- const b = e.getBoundPixel(), v = e.map.getZoom() + 1, z = e.getWorldCopy(b, v);
6292
- for (const C of z) {
6293
- const L = (C[0] - b[0]) * e.ratio, y = (C[1] - b[3]) * e.ratio, B = C[2] * e.ratio, [D, P, k, x] = [L, B + L, y, B + y], T = new Float32Array([D, k, P, k, D, x, D, x, P, k, P, x]);
6294
- o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, T, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
6286
+ d.resolution && o.uniform2f(d.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), d.image && o.uniform1i(d.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), d.color && o.uniform1i(d.color, 1), m != null && m.uvRange && (m != null && m.sRange) && (d.uvRange && o.uniform2f(d.uvRange, m.uvRange[0], m.uvRange[1]), d.sRange && o.uniform2f(d.sRange, m.sRange[0], m.sRange[1])), d.scale && o.uniform1f(d.scale, (m == null ? void 0 : m.scale) || 1);
6287
+ const b = e.getBoundPixel(), w = e.map.getZoom() + 1, k = e.getWorldCopy(b, w);
6288
+ for (const y of k) {
6289
+ const _ = (y[0] - b[0]) * e.ratio, T = (y[1] - b[3]) * e.ratio, B = y[2] * e.ratio, [D, x, L, P] = [_, B + _, T, B + T], C = new Float32Array([D, L, x, L, D, P, D, P, x, L, x, P]);
6290
+ o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
6295
6291
  }
6296
6292
  } catch (d) {
6297
6293
  console.log(`render failed...${d}`);
@@ -6299,8 +6295,8 @@ class Fe {
6299
6295
  }
6300
6296
  }
6301
6297
  drawParticle(e, o, i, a, r) {
6302
- var l, c;
6303
- o && (o == null || o.viewport(0, 0, (l = o == null ? void 0 : o.canvas) == null ? void 0 : l.width, (c = o == null ? void 0 : o.canvas) == null ? void 0 : c.height), o.disable(o.DEPTH_TEST), o.disable(o.STENCIL_TEST), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, i), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, a.texture0), this.renderScreen(e, o, a, r), this.updateParticles(e, o, a, r));
6298
+ var l, m;
6299
+ o && (o == null || o.viewport(0, 0, (l = o == null ? void 0 : o.canvas) == null ? void 0 : l.width, (m = o == null ? void 0 : o.canvas) == null ? void 0 : m.height), o.disable(o.DEPTH_TEST), o.disable(o.STENCIL_TEST), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, i), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, a.texture0), this.renderScreen(e, o, a, r), this.updateParticles(e, o, a, r));
6304
6300
  }
6305
6301
  renderScreen(e, o, i, a) {
6306
6302
  o.bindFramebuffer(o.FRAMEBUFFER, i.frameBuffer), o.framebufferTexture2D(o.FRAMEBUFFER, o.COLOR_ATTACHMENT0, o.TEXTURE_2D, i.screenTexture, 0), o.viewport(0, 0, o.canvas.width, o.canvas.height), this.renderScreenTexture(o, i.backgroundTexture, i.screen, i.quadBuffer, 0.95), this.renderParticles(e, o, i, a), o.bindFramebuffer(o.FRAMEBUFFER, null), this.renderScreenTexture(o, i.screenTexture, i.screen, i.quadBuffer, 1);
@@ -6318,11 +6314,11 @@ class Fe {
6318
6314
  }
6319
6315
  }
6320
6316
  updateParticles(e, o, i, a) {
6321
- var l, c;
6317
+ var l, m;
6322
6318
  if (o) {
6323
6319
  o.bindFramebuffer(o.FRAMEBUFFER, i.frameBuffer), o.framebufferTexture2D(o.FRAMEBUFFER, o.COLOR_ATTACHMENT0, o.TEXTURE_2D, i.texture1, 0), o.viewport(0, 0, i.resolution, i.resolution), o.useProgram(i.update.program), o.bindBuffer(o.ARRAY_BUFFER, i.quadBuffer), o.enableVertexAttribArray(i.update.a_pos), o.vertexAttribPointer(i.update.a_pos, 2, o.FLOAT, !1, 0, 0), o.uniform1i(i.update.u_factor, 0), o.uniform1i(i.update.u_particles, 1);
6324
- const m = e.getBoundRange();
6325
- o.uniform4f(i.update.u_viewport, m[0], m[1], m[2], m[3]), o.uniform1f(i.update.u_rand_seed, Math.random()), o.uniform2f(i.update.u_factor_res, (l = i == null ? void 0 : i.image) == null ? void 0 : l.width, (c = i == null ? void 0 : i.image) == null ? void 0 : c.height), o.uniform2f(i.update.u_factor_min, a.uvRange[0], a.uvRange[0]), o.uniform2f(i.update.u_factor_max, a.uvRange[1], a.uvRange[1]), o.uniform1f(i.update.u_speed_factor, a.speedFactor * e.ratio), o.uniform1f(i.update.u_drop_rate, a.dropRate), o.uniform1f(i.update.u_drop_rate_bump, a.dropRateBump), o.drawArrays(o.TRIANGLES, 0, 6);
6320
+ const c = e.getBoundRange();
6321
+ o.uniform4f(i.update.u_viewport, c[0], c[1], c[2], c[3]), o.uniform1f(i.update.u_rand_seed, Math.random()), o.uniform2f(i.update.u_factor_res, (l = i == null ? void 0 : i.image) == null ? void 0 : l.width, (m = i == null ? void 0 : i.image) == null ? void 0 : m.height), o.uniform2f(i.update.u_factor_min, a.uvRange[0], a.uvRange[0]), o.uniform2f(i.update.u_factor_max, a.uvRange[1], a.uvRange[1]), o.uniform1f(i.update.u_speed_factor, a.speedFactor * e.ratio), o.uniform1f(i.update.u_drop_rate, a.dropRate), o.uniform1f(i.update.u_drop_rate_bump, a.dropRateBump), o.drawArrays(o.TRIANGLES, 0, 6);
6326
6322
  }
6327
6323
  const r = i.texture0;
6328
6324
  i.texture0 = i.texture1, i.texture1 = r;
@@ -6638,13 +6634,13 @@ const ul = {
6638
6634
  else {
6639
6635
  this.map.addSource(this.source, { type: "geojson", data: r });
6640
6636
  for (let l = 0; l < (this.barbs ?? []).length - 1; l++) {
6641
- const c = (this.barbs ?? [])[l] || 0, m = (this.barbs ?? [])[l + 1] || 0, f = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, d = new Image(48, 48);
6637
+ const m = (this.barbs ?? [])[l] || 0, c = (this.barbs ?? [])[l + 1] || 0, f = m < 10 ? `00${m}kts` : m < 100 ? `0${m}kts` : `${m}kts`, d = new Image(48, 48);
6642
6638
  d.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[f]), d.onload = () => {
6643
6639
  this.map.hasImage(f + "-icon") || this.map.addImage(f + "-icon", d), this.map.addLayer(
6644
6640
  {
6645
6641
  id: f,
6646
6642
  type: "symbol",
6647
- filter: ["all", [">=", "spd", c], ["<", "spd", m]],
6643
+ filter: ["all", [">=", "spd", m], ["<", "spd", c]],
6648
6644
  source: this.source,
6649
6645
  layout: {
6650
6646
  "symbol-placement": "point",
@@ -6990,18 +6986,18 @@ const vl = /* @__PURE__ */ X(bl, [["render", xl]]), _l = {
6990
6986
  },
6991
6987
  this.beforeLayer
6992
6988
  );
6993
- const l = new Image(48, 48), c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>';
6994
- l.src = "data:image/svg+xml;base64," + window.btoa(c);
6995
- const m = new Image(48, 48), f = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6989
+ const l = new Image(48, 48), m = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>';
6990
+ l.src = "data:image/svg+xml;base64," + window.btoa(m);
6991
+ const c = new Image(48, 48), f = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6996
6992
  <path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6997
6993
  <path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6998
6994
  </svg>`;
6999
- m.src = "data:image/svg+xml;base64," + window.btoa(f);
7000
- const d = [m];
6995
+ c.src = "data:image/svg+xml;base64," + window.btoa(f);
6996
+ const d = [c];
7001
6997
  let b = 0;
7002
- d.forEach((v) => {
7003
- v.onload = () => {
7004
- b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", m), b === 1 && this.map.addLayer(
6998
+ d.forEach((w) => {
6999
+ w.onload = () => {
7000
+ b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", c), b === 1 && this.map.addLayer(
7005
7001
  {
7006
7002
  id: this.directionLayer,
7007
7003
  type: "symbol",
@@ -7733,17 +7729,7 @@ const Nl = /* @__PURE__ */ X(Bl, [["render", El], ["__scopeId", "data-v-3c94b068
7733
7729
  "rgba(0, 0, 0, 0.7)",
7734
7730
  1100,
7735
7731
  "rgba(0, 0, 0, 0.7)"
7736
- ] : [
7737
- "step",
7738
- ["get", "val"],
7739
- "rgba(162,13,2,1)",
7740
- 920,
7741
- "rgba(255, 96, 98, 1)",
7742
- 980,
7743
- "rgba(255, 246, 184, 1)",
7744
- 1100,
7745
- "rgba(199,171,250,1)"
7746
- ],
7732
+ ] : "rgba(0,0,0,1)",
7747
7733
  "text-halo-color": [
7748
7734
  "step",
7749
7735
  ["get", "val"],
@@ -7755,7 +7741,7 @@ const Nl = /* @__PURE__ */ X(Bl, [["render", El], ["__scopeId", "data-v-3c94b068
7755
7741
  1100,
7756
7742
  "rgba(199,171,250,1)"
7757
7743
  ],
7758
- "text-halo-width": this.theme === "light" ? 1 : 0
7744
+ "text-halo-width": 1
7759
7745
  }
7760
7746
  },
7761
7747
  this.beforeLayer
@@ -8803,14 +8789,14 @@ const bn = {
8803
8789
  },
8804
8790
  checkList: {
8805
8791
  handler(t, e) {
8806
- var o, i, a, r, l, c;
8807
- this.handleCheckListChange(t, e), this.$emit("weatherCheckList", t), this.autoActive && this.checkList.length ? (a = (i = (o = this.$parent) == null ? void 0 : o.$refs) == null ? void 0 : i.idmBottomBar) == null || a.handleToggle("weather", !0) : (c = (l = (r = this.$parent) == null ? void 0 : r.$refs) == null ? void 0 : l.idmBottomBar) == null || c.handleToggle("weather", !1);
8792
+ var o, i, a, r, l, m;
8793
+ this.handleCheckListChange(t, e), this.$emit("weatherCheckList", t), this.autoActive && this.checkList.length ? (a = (i = (o = this.$parent) == null ? void 0 : o.$refs) == null ? void 0 : i.idmBottomBar) == null || a.handleToggle("weather", !0) : (m = (l = (r = this.$parent) == null ? void 0 : r.$refs) == null ? void 0 : l.idmBottomBar) == null || m.handleToggle("weather", !1);
8808
8794
  }
8809
8795
  },
8810
8796
  autoActive: {
8811
8797
  handler(t) {
8812
8798
  var e, o, i, a, r, l;
8813
- localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((c) => this.checkList.includes(c.key)) : [], this.handleWeatherLayerChange(), this.autoActive && this.checkList.length ? (i = (o = (e = this.$parent) == null ? void 0 : e.$refs) == null ? void 0 : o.idmBottomBar) == null || i.handleToggle("weather", !0) : (l = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || l.handleToggle("weather", !1), this.$emit("autoActive", this.autoActive);
8799
+ localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((m) => this.checkList.includes(m.key)) : [], this.handleWeatherLayerChange(), this.autoActive && this.checkList.length ? (i = (o = (e = this.$parent) == null ? void 0 : e.$refs) == null ? void 0 : o.idmBottomBar) == null || i.handleToggle("weather", !0) : (l = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || l.handleToggle("weather", !1), this.$emit("autoActive", this.autoActive);
8814
8800
  }
8815
8801
  },
8816
8802
  iceToggleValue: {
@@ -8884,70 +8870,70 @@ const bn = {
8884
8870
  (t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
8885
8871
  },
8886
8872
  async fetchWeatherLayers(t = {}) {
8887
- var a, r, l, c, m, f, d, b, v;
8873
+ var a, r, l, m, c, f, d, b, w;
8888
8874
  const e = (/* @__PURE__ */ new Date()).valueOf();
8889
8875
  let o = 0, i = 0;
8890
8876
  if (this.map) {
8891
- const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, C = (r = this.map) == null ? void 0 : r.getBounds(), L = `${C._sw.lng},${C._sw.lat},${C._ne.lng},${C._ne.lat}`;
8877
+ const k = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), _ = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
8892
8878
  if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
8893
- const y = Co.WEATHER_LAYERS.find((B) => {
8879
+ const T = Co.WEATHER_LAYERS.find((B) => {
8894
8880
  var D;
8895
8881
  return ((D = B.peer) == null ? void 0 : D.weight) === this.particleFactor.weight;
8896
8882
  });
8897
- this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight : this.weatherWeight + y.weight : this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight - y.weight : this.weatherWeight;
8883
+ this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight : this.weatherWeight + T.weight : this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight - T.weight : this.weatherWeight;
8898
8884
  }
8899
8885
  if (this.weatherWeight > 0) {
8900
- let y = this.weatherWeight;
8901
- if (y > 0) {
8886
+ let T = this.weatherWeight;
8887
+ if (T > 0) {
8902
8888
  const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], D = await Ae.get(
8903
- `${B}/api/arc/weather/layers2/links?l=${y}&v=${this.forecastModel}&z=${z}&bbox=${L}&t=${this.realTime}`,
8889
+ `${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${k}&bbox=${_}&t=${this.realTime}`,
8904
8890
  {
8905
8891
  headers: {
8906
8892
  Authorization: this.defaultMeteoToken
8907
8893
  }
8908
8894
  }
8909
8895
  );
8910
- if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = D == null ? void 0 : D.data) == null ? void 0 : c.code) === 0) {
8911
- const P = (m = D == null ? void 0 : D.data) == null ? void 0 : m.data, k = [];
8912
- for (const T in P)
8913
- k.push(
8914
- Ae.get(P[T], {
8896
+ if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((m = D == null ? void 0 : D.data) == null ? void 0 : m.code) === 0) {
8897
+ const x = (c = D == null ? void 0 : D.data) == null ? void 0 : c.data, L = [];
8898
+ for (const C in x)
8899
+ L.push(
8900
+ Ae.get(x[C], {
8915
8901
  headers: {
8916
8902
  Authorization: this.defaultMeteoToken,
8917
- key: T
8903
+ key: C
8918
8904
  },
8919
- responseType: /\.(jpg|png)$/.test(P[T]) ? "blob" : "json"
8920
- }).catch((_) => {
8921
- console.log(`[${T}] fetch layer error: ${_}`);
8905
+ responseType: /\.(jpg|png)$/.test(x[C]) ? "blob" : "json"
8906
+ }).catch((z) => {
8907
+ console.log(`[${C}] fetch layer error: ${z}`);
8922
8908
  })
8923
8909
  );
8924
- const x = await Promise.all(k);
8925
- this.weatherLayers = {}, x.map((T) => {
8910
+ const P = await Promise.all(L);
8911
+ this.weatherLayers = {}, P.map((C) => {
8926
8912
  var F, G, Y, Z;
8927
- const _ = ((F = T == null ? void 0 : T.data) == null ? void 0 : F.data) || (T == null ? void 0 : T.data);
8928
- let I = (Y = (G = T == null ? void 0 : T.config) == null ? void 0 : G.headers) == null ? void 0 : Y.key;
8929
- I && _ && (this.weatherLayers[I] = {
8930
- raw: _,
8931
- type: ((Z = T == null ? void 0 : T.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
8913
+ const z = ((F = C == null ? void 0 : C.data) == null ? void 0 : F.data) || (C == null ? void 0 : C.data);
8914
+ let I = (Y = (G = C == null ? void 0 : C.config) == null ? void 0 : G.headers) == null ? void 0 : Y.key;
8915
+ I && z && (this.weatherLayers[I] = {
8916
+ raw: z,
8917
+ type: ((Z = C == null ? void 0 : C.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
8932
8918
  etime: D.data.etime
8933
8919
  });
8934
8920
  });
8935
8921
  }
8936
8922
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
8937
- const P = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, k = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
8923
+ const x = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, L = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
8938
8924
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
8939
8925
  type: "json",
8940
- direction: P,
8941
- height: { raw: k },
8926
+ direction: x,
8927
+ height: { raw: L },
8942
8928
  etime: D.data.etime
8943
8929
  };
8944
8930
  }
8945
8931
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
8946
- const P = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, k = (v = this.weatherLayers["current-speed"]) == null ? void 0 : v.raw;
8932
+ const x = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, L = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8947
8933
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
8948
8934
  type: "json",
8949
- direction: P,
8950
- speed: { raw: k },
8935
+ direction: x,
8936
+ speed: { raw: L },
8951
8937
  etime: D.data.etime
8952
8938
  };
8953
8939
  }
@@ -8970,7 +8956,7 @@ const bn = {
8970
8956
  t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
8971
8957
  },
8972
8958
  handleRampColorInitial() {
8973
- var t, e, o, i, a, r, l, c, m, f, d, b;
8959
+ var t, e, o, i, a, r, l, m, c, f, d, b;
8974
8960
  this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
8975
8961
  type: "canvas",
8976
8962
  canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
@@ -8986,9 +8972,9 @@ const bn = {
8986
8972
  }
8987
8973
  },
8988
8974
  this.beforeLayer
8989
- ), this.viewport.map.getSource((l = this.viewport) == null ? void 0 : l.particleSource) || this.viewport.map.addSource((c = this.viewport) == null ? void 0 : c.particleSource, {
8975
+ ), this.viewport.map.getSource((l = this.viewport) == null ? void 0 : l.particleSource) || this.viewport.map.addSource((m = this.viewport) == null ? void 0 : m.particleSource, {
8990
8976
  type: "canvas",
8991
- canvas: (m = this.viewport) == null ? void 0 : m.particleCanvas,
8977
+ canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
8992
8978
  animate: !0,
8993
8979
  coordinates: this.viewport.getBoundLngLat()
8994
8980
  }), this.viewport.map.getLayer((f = this.viewport) == null ? void 0 : f.particleLayer) || this.viewport.map.addLayer(
@@ -9004,255 +8990,255 @@ const bn = {
9004
8990
  );
9005
8991
  },
9006
8992
  handleDrawWeather4Json() {
9007
- var r, l, c, m, f, d, b;
8993
+ var r, l, m, c, f, d, b;
9008
8994
  const t = (/* @__PURE__ */ new Date()).valueOf();
9009
8995
  let e = 0, o = 0;
9010
8996
  const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
9011
8997
  if (i && a) {
9012
- const v = q.convertToStdLng(i._sw.lng), z = q.convertToStdLng(i._ne.lng), C = Math.floor(i._sw.lat), L = Math.ceil(i._ne.lat);
9013
- for (const y in this.weatherLayers) {
8998
+ const w = q.convertToStdLng(i._sw.lng), k = q.convertToStdLng(i._ne.lng), y = Math.floor(i._sw.lat), _ = Math.ceil(i._ne.lat);
8999
+ for (const T in this.weatherLayers) {
9014
9000
  let B = !1;
9015
- if (this.weatherLayers[y].active && this.weatherLayers[y].type === "json") {
9001
+ if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
9016
9002
  let D = [];
9017
- if (y === "swell") {
9003
+ if (T === "swell") {
9018
9004
  B = !0;
9019
- const P = ((c = this.weatherLayers[y]) == null ? void 0 : c.direction) || {};
9020
- for (const x in P)
9021
- if (x > C && x < L && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9022
- const T = P[x].lng;
9023
- v > z ? T.forEach((_, I) => {
9005
+ const x = ((m = this.weatherLayers[T]) == null ? void 0 : m.direction) || {};
9006
+ for (const P in x)
9007
+ if (P > y && P < _ && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9008
+ const C = x[P].lng;
9009
+ w > k ? C.forEach((z, I) => {
9024
9010
  var F, G, Y, Z, Q, $;
9025
9011
  if (a < 2) {
9026
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
9027
- const J = W.point([_, x], {
9028
- val: ((F = P[x].val) == null ? void 0 : F[I]) || ((G = P[x].dir) == null ? void 0 : G[I]),
9029
- spd: (Y = P[x].spd) == null ? void 0 : Y[I]
9012
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
9013
+ const J = W.point([z, P], {
9014
+ val: ((F = x[P].val) == null ? void 0 : F[I]) || ((G = x[P].dir) == null ? void 0 : G[I]),
9015
+ spd: (Y = x[P].spd) == null ? void 0 : Y[I]
9030
9016
  });
9031
9017
  D.push(J);
9032
9018
  }
9033
- } else if ((_ >= v && _ <= 180 || _ >= -180 && _ <= z) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9034
- const J = W.point([_, x], {
9035
- val: ((Z = P[x].val) == null ? void 0 : Z[I]) || ((Q = P[x].dir) == null ? void 0 : Q[I]),
9036
- spd: ($ = P[x].spd) == null ? void 0 : $[I]
9019
+ } else if ((z >= w && z <= 180 || z >= -180 && z <= k) && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9020
+ const J = W.point([z, P], {
9021
+ val: ((Z = x[P].val) == null ? void 0 : Z[I]) || ((Q = x[P].dir) == null ? void 0 : Q[I]),
9022
+ spd: ($ = x[P].spd) == null ? void 0 : $[I]
9037
9023
  });
9038
9024
  D.push(J);
9039
9025
  }
9040
- }) : T.forEach((_, I) => {
9026
+ }) : C.forEach((z, I) => {
9041
9027
  var F, G, Y, Z, Q, $;
9042
- if (v < 2) {
9043
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
9044
- const J = W.point([_, x], {
9045
- val: ((F = P[x].val) == null ? void 0 : F[I]) || ((G = P[x].dir) == null ? void 0 : G[I]),
9046
- spd: (Y = P[x].spd) == null ? void 0 : Y[I]
9028
+ if (w < 2) {
9029
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
9030
+ const J = W.point([z, P], {
9031
+ val: ((F = x[P].val) == null ? void 0 : F[I]) || ((G = x[P].dir) == null ? void 0 : G[I]),
9032
+ spd: (Y = x[P].spd) == null ? void 0 : Y[I]
9047
9033
  });
9048
9034
  D.push(J);
9049
9035
  }
9050
- } else if (_ >= v && _ <= z && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9051
- const J = W.point([_, x], {
9052
- val: ((Z = P[x].val) == null ? void 0 : Z[I]) || ((Q = P[x].dir) == null ? void 0 : Q[I]),
9053
- spd: ($ = P[x].spd) == null ? void 0 : $[I]
9036
+ } else if (z >= w && z <= k && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9037
+ const J = W.point([z, P], {
9038
+ val: ((Z = x[P].val) == null ? void 0 : Z[I]) || ((Q = x[P].dir) == null ? void 0 : Q[I]),
9039
+ spd: ($ = x[P].spd) == null ? void 0 : $[I]
9054
9040
  });
9055
9041
  D.push(J);
9056
9042
  }
9057
9043
  });
9058
9044
  }
9059
9045
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
9060
- const k = this.weatherLayers[y].height;
9061
- if (k) {
9062
- if (!k.data) {
9063
- const x = [];
9064
- for (const T in (m = k.raw) == null ? void 0 : m.LineString) {
9065
- const _ = k.raw.LineString[T];
9066
- for (const I of _)
9067
- x.push(
9046
+ const L = this.weatherLayers[T].height;
9047
+ if (L) {
9048
+ if (!L.data) {
9049
+ const P = [];
9050
+ for (const C in (c = L.raw) == null ? void 0 : c.LineString) {
9051
+ const z = L.raw.LineString[C];
9052
+ for (const I of z)
9053
+ P.push(
9068
9054
  W.lineString(I, {
9069
- val: Number(T)
9055
+ val: Number(C)
9070
9056
  })
9071
9057
  );
9072
- k.data = W.featureCollection(x);
9058
+ L.data = W.featureCollection(P);
9073
9059
  }
9074
9060
  }
9075
- if (k.data) {
9076
- const x = this.handleBboxClip(k.data, i);
9077
- D = D.concat(x);
9061
+ if (L.data) {
9062
+ const P = this.handleBboxClip(L.data, i);
9063
+ D = D.concat(P);
9078
9064
  }
9079
9065
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
9080
9066
  }
9081
- } else if (y === "current") {
9067
+ } else if (T === "current") {
9082
9068
  B = !0;
9083
- const P = ((f = this.weatherLayers[y]) == null ? void 0 : f.direction) || {};
9084
- for (const x in P)
9085
- if (x > C && x < L && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9086
- const T = P[x].lng;
9087
- v > z ? T.forEach((_, I) => {
9069
+ const x = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
9070
+ for (const P in x)
9071
+ if (P > y && P < _ && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9072
+ const C = x[P].lng;
9073
+ w > k ? C.forEach((z, I) => {
9088
9074
  var F, G, Y, Z, Q, $;
9089
9075
  if (a < 2) {
9090
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
9091
- const J = W.point([_, x], {
9092
- val: ((F = P[x].val) == null ? void 0 : F[I]) || ((G = P[x].dir) == null ? void 0 : G[I]),
9093
- spd: (Y = P[x].spd) == null ? void 0 : Y[I]
9076
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
9077
+ const J = W.point([z, P], {
9078
+ val: ((F = x[P].val) == null ? void 0 : F[I]) || ((G = x[P].dir) == null ? void 0 : G[I]),
9079
+ spd: (Y = x[P].spd) == null ? void 0 : Y[I]
9094
9080
  });
9095
9081
  D.push(J);
9096
9082
  }
9097
- } else if ((_ >= v && _ <= 180 || _ >= -180 && _ <= z) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9098
- const J = W.point([_, x], {
9099
- val: ((Z = P[x].val) == null ? void 0 : Z[I]) || ((Q = P[x].dir) == null ? void 0 : Q[I]),
9100
- spd: ($ = P[x].spd) == null ? void 0 : $[I]
9083
+ } else if ((z >= w && z <= 180 || z >= -180 && z <= k) && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9084
+ const J = W.point([z, P], {
9085
+ val: ((Z = x[P].val) == null ? void 0 : Z[I]) || ((Q = x[P].dir) == null ? void 0 : Q[I]),
9086
+ spd: ($ = x[P].spd) == null ? void 0 : $[I]
9101
9087
  });
9102
9088
  D.push(J);
9103
9089
  }
9104
- }) : T.forEach((_, I) => {
9090
+ }) : C.forEach((z, I) => {
9105
9091
  var F, G, Y, Z, Q, $;
9106
- if (v < 2) {
9107
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
9108
- const J = W.point([_, x], {
9109
- val: ((F = P[x].val) == null ? void 0 : F[I]) || ((G = P[x].dir) == null ? void 0 : G[I]),
9110
- spd: (Y = P[x].spd) == null ? void 0 : Y[I]
9092
+ if (w < 2) {
9093
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
9094
+ const J = W.point([z, P], {
9095
+ val: ((F = x[P].val) == null ? void 0 : F[I]) || ((G = x[P].dir) == null ? void 0 : G[I]),
9096
+ spd: (Y = x[P].spd) == null ? void 0 : Y[I]
9111
9097
  });
9112
9098
  D.push(J);
9113
9099
  }
9114
- } else if (_ >= v && _ <= z && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
9115
- const J = W.point([_, x], {
9116
- val: ((Z = P[x].val) == null ? void 0 : Z[I]) || ((Q = P[x].dir) == null ? void 0 : Q[I]),
9117
- spd: ($ = P[x].spd) == null ? void 0 : $[I]
9100
+ } else if (z >= w && z <= k && (!(a <= this.zoom) || z % (a < this.zoom / 2 ? 5 : 3) === 0)) {
9101
+ const J = W.point([z, P], {
9102
+ val: ((Z = x[P].val) == null ? void 0 : Z[I]) || ((Q = x[P].dir) == null ? void 0 : Q[I]),
9103
+ spd: ($ = x[P].spd) == null ? void 0 : $[I]
9118
9104
  });
9119
9105
  D.push(J);
9120
9106
  }
9121
9107
  });
9122
9108
  }
9123
9109
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
9124
- const k = this.weatherLayers[y].speed;
9125
- if (k) {
9126
- if (!k.data) {
9127
- const T = [];
9128
- for (const _ in (d = k.raw) == null ? void 0 : d.Polygon) {
9129
- const I = k.raw.Polygon[_];
9110
+ const L = this.weatherLayers[T].speed;
9111
+ if (L) {
9112
+ if (!L.data) {
9113
+ const C = [];
9114
+ for (const z in (d = L.raw) == null ? void 0 : d.Polygon) {
9115
+ const I = L.raw.Polygon[z];
9130
9116
  for (const F of I)
9131
- T.push(
9117
+ C.push(
9132
9118
  W.polygon(F, {
9133
- val: Number(_)
9119
+ val: Number(z)
9134
9120
  })
9135
9121
  );
9136
9122
  }
9137
- k.data = W.featureCollection(T);
9123
+ L.data = W.featureCollection(C);
9138
9124
  }
9139
- const x = a < this.zoom ? k.data.features.filter((T) => T.properties.val > 0.5) : k.data.features;
9140
- D = D.concat(x), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
9125
+ const P = a < this.zoom ? L.data.features.filter((C) => C.properties.val > 0.5) : L.data.features;
9126
+ D = D.concat(P), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
9141
9127
  }
9142
- } else if (y === "wind") {
9128
+ } else if (T === "wind") {
9143
9129
  B = !0;
9144
- const P = this.weatherLayers.wind.raw;
9145
- for (const k in P)
9146
- if (k > C && k < L && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9147
- const x = P[k].lng;
9148
- v > z ? x.forEach((T, _) => {
9130
+ const x = this.weatherLayers.wind.raw;
9131
+ for (const L in x)
9132
+ if (L > y && L < _ && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9133
+ const P = x[L].lng;
9134
+ w > k ? P.forEach((C, z) => {
9149
9135
  var I, F, G, Y;
9150
9136
  if (a < 2) {
9151
- if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
9152
- const Z = W.point([T, k], {
9153
- dir: ((I = P[k].val) == null ? void 0 : I[_]) || ((F = P[k].dir) == null ? void 0 : F[_]),
9154
- spd: P[k].spd[_]
9137
+ if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
9138
+ const Z = W.point([C, L], {
9139
+ dir: ((I = x[L].val) == null ? void 0 : I[z]) || ((F = x[L].dir) == null ? void 0 : F[z]),
9140
+ spd: x[L].spd[z]
9155
9141
  });
9156
9142
  D.push(Z);
9157
9143
  }
9158
- } else if ((T >= v && T <= 180 || T >= -180 && T <= z) && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9159
- const Z = W.point([T, k], {
9160
- dir: ((G = P[k].val) == null ? void 0 : G[_]) || ((Y = P[k].dir) == null ? void 0 : Y[_]),
9161
- spd: P[k].spd[_]
9144
+ } else if ((C >= w && C <= 180 || C >= -180 && C <= k) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9145
+ const Z = W.point([C, L], {
9146
+ dir: ((G = x[L].val) == null ? void 0 : G[z]) || ((Y = x[L].dir) == null ? void 0 : Y[z]),
9147
+ spd: x[L].spd[z]
9162
9148
  });
9163
9149
  D.push(Z);
9164
9150
  }
9165
- }) : x.forEach((T, _) => {
9151
+ }) : P.forEach((C, z) => {
9166
9152
  var I, F, G, Y;
9167
9153
  if (a < 2) {
9168
- if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
9169
- const Z = W.point([T, k], {
9170
- dir: ((I = P[k].val) == null ? void 0 : I[_]) || ((F = P[k].dir) == null ? void 0 : F[_]),
9171
- spd: P[k].spd[_]
9154
+ if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
9155
+ const Z = W.point([C, L], {
9156
+ dir: ((I = x[L].val) == null ? void 0 : I[z]) || ((F = x[L].dir) == null ? void 0 : F[z]),
9157
+ spd: x[L].spd[z]
9172
9158
  });
9173
9159
  D.push(Z);
9174
9160
  }
9175
- } else if (T >= v && T <= z && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9176
- const Z = W.point([T, k], {
9177
- dir: ((G = P[k].val) == null ? void 0 : G[_]) || ((Y = P[k].dir) == null ? void 0 : Y[_]),
9178
- spd: P[k].spd[_]
9161
+ } else if (C >= w && C <= k && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9162
+ const Z = W.point([C, L], {
9163
+ dir: ((G = x[L].val) == null ? void 0 : G[z]) || ((Y = x[L].dir) == null ? void 0 : Y[z]),
9164
+ spd: x[L].spd[z]
9179
9165
  });
9180
9166
  D.push(Z);
9181
9167
  }
9182
9168
  });
9183
9169
  }
9184
9170
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
9185
- } else if (y === "sig-wave-height") {
9186
- if (this.weatherLayers[y].data)
9187
- D = this.weatherLayers[y].data;
9171
+ } else if (T === "sig-wave-height") {
9172
+ if (this.weatherLayers[T].data)
9173
+ D = this.weatherLayers[T].data;
9188
9174
  else {
9189
9175
  B = !0;
9190
- const P = this.weatherLayers[y].raw;
9191
- if (P) {
9192
- const k = [];
9193
- for (const x in P.Polygon) {
9194
- const T = P.Polygon[x];
9195
- for (const _ of T)
9196
- k.push(
9197
- W.polygon(_, {
9198
- val: Number(x)
9176
+ const x = this.weatherLayers[T].raw;
9177
+ if (x) {
9178
+ const L = [];
9179
+ for (const P in x.Polygon) {
9180
+ const C = x.Polygon[P];
9181
+ for (const z of C)
9182
+ L.push(
9183
+ W.polygon(z, {
9184
+ val: Number(P)
9199
9185
  })
9200
9186
  );
9201
9187
  }
9202
- for (const x in P.MultiPolygon) {
9203
- const T = P.MultiPolygon[x];
9204
- for (const _ of T)
9205
- k.push(
9206
- W.multiPolygon(_, {
9207
- val: Number(x)
9188
+ for (const P in x.MultiPolygon) {
9189
+ const C = x.MultiPolygon[P];
9190
+ for (const z of C)
9191
+ L.push(
9192
+ W.multiPolygon(z, {
9193
+ val: Number(P)
9208
9194
  })
9209
9195
  );
9210
9196
  }
9211
- for (const x in P.Point) {
9212
- const T = P.Point[x];
9213
- for (let _ = 0; _ < ((b = T.lng) == null ? void 0 : b.length); _++)
9214
- k.push(
9215
- W.point([T.lng[_], x], {
9216
- val: Number(T.val[_])
9197
+ for (const P in x.Point) {
9198
+ const C = x.Point[P];
9199
+ for (let z = 0; z < ((b = C.lng) == null ? void 0 : b.length); z++)
9200
+ L.push(
9201
+ W.point([C.lng[z], P], {
9202
+ val: Number(C.val[z])
9217
9203
  })
9218
9204
  );
9219
9205
  }
9220
- D = D.concat(k);
9206
+ D = D.concat(L);
9221
9207
  }
9222
9208
  }
9223
9209
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
9224
- } else if (y === "prmsl") {
9225
- if (this.weatherLayers[y].data)
9226
- D = this.weatherLayers[y].data;
9210
+ } else if (T === "prmsl") {
9211
+ if (this.weatherLayers[T].data)
9212
+ D = this.weatherLayers[T].data;
9227
9213
  else {
9228
9214
  B = !0;
9229
- const P = this.weatherLayers[y].raw;
9230
- if (P) {
9231
- const k = [];
9232
- for (const x in P.LineString) {
9233
- const T = P.LineString[x];
9234
- for (const _ of T)
9235
- k.push(
9236
- W.lineString(_, {
9237
- val: Number(x)
9215
+ const x = this.weatherLayers[T].raw;
9216
+ if (x) {
9217
+ const L = [];
9218
+ for (const P in x.LineString) {
9219
+ const C = x.LineString[P];
9220
+ for (const z of C)
9221
+ L.push(
9222
+ W.lineString(z, {
9223
+ val: Number(P)
9238
9224
  })
9239
9225
  );
9240
9226
  }
9241
- for (const x in P.Point)
9242
- P.Point[x].lng.forEach((T, _) => {
9243
- T = q.convertToStdLng(T), k.push(
9244
- W.point([T, x], {
9245
- val: P.Point[x].val[_],
9246
- type: P.Point[x].type[_]
9227
+ for (const P in x.Point)
9228
+ x.Point[P].lng.forEach((C, z) => {
9229
+ C = q.convertToStdLng(C), L.push(
9230
+ W.point([C, P], {
9231
+ val: x.Point[P].val[z],
9232
+ type: x.Point[P].type[z]
9247
9233
  })
9248
9234
  );
9249
9235
  });
9250
- D = D.concat(k);
9236
+ D = D.concat(L);
9251
9237
  }
9252
9238
  }
9253
9239
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
9254
9240
  }
9255
- D.length && (this.weatherLayers[y].data = W.featureCollection(D)), B && (this.weatherLayers[y].version = Math.random() + 1);
9241
+ D.length && (this.weatherLayers[T].data = W.featureCollection(D)), B && (this.weatherLayers[T].version = Math.random() + 1);
9256
9242
  }
9257
9243
  }
9258
9244
  }
@@ -9267,11 +9253,11 @@ const bn = {
9267
9253
  return t.features.forEach((r) => {
9268
9254
  if (r.geometry.type !== "Point")
9269
9255
  if (i > a) {
9270
- let l = [i, e._sw.lat, 180, e._ne.lat], c = W.bboxClip(r, l);
9271
- c.geometry.coordinates.length && o.push(c), l = [-180, e._sw.lat, a, e._ne.lat], c = W.bboxClip(r, l), c.geometry.coordinates.length && o.push(c);
9256
+ let l = [i, e._sw.lat, 180, e._ne.lat], m = W.bboxClip(r, l);
9257
+ m.geometry.coordinates.length && o.push(m), l = [-180, e._sw.lat, a, e._ne.lat], m = W.bboxClip(r, l), m.geometry.coordinates.length && o.push(m);
9272
9258
  } else {
9273
- const l = [i, e._sw.lat, a, e._ne.lat], c = W.bboxClip(r, l);
9274
- c.geometry.coordinates.length && o.push(c);
9259
+ const l = [i, e._sw.lat, a, e._ne.lat], m = W.bboxClip(r, l);
9260
+ m.geometry.coordinates.length && o.push(m);
9275
9261
  }
9276
9262
  else
9277
9263
  o.push(r);
@@ -9299,13 +9285,13 @@ const bn = {
9299
9285
  }, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Wn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, Zn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label mb-3" }, qn = { class: "text-body-1 font-weight-medium" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" }, $n = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
9300
9286
  function ic(t, e, o, i, a, r) {
9301
9287
  var se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce;
9302
- const l = w("VBtn"), c = w("VTooltip"), m = w("VCol"), f = w("VRow"), d = w("VCardText"), b = w("VDivider"), v = w("VCard"), z = w("VSwitch"), C = w("VBtnToggle"), L = w("VCardTitle"), y = w("VCardItem"), B = w("VCheckbox"), D = w("VRadio"), P = w("IdmWindBarb"), k = w("IdmSigWaveHeight"), x = w("IdmCurrentDirection"), T = w("IdmPrmsl"), _ = w("IdmWindParticle"), I = w("IdmCurrentParticle"), F = w("IdmWave"), G = w("IdmSwell"), Y = w("IdmIceEdge"), Z = w("IdmIceCover"), Q = w("IdmIceThickness"), $ = w("IdmPrecip3h"), J = w("IdmVisibility"), le = w("IdmWaterTemp"), ne = w("IdmTemp");
9288
+ const l = v("VBtn"), m = v("VTooltip"), c = v("VCol"), f = v("VRow"), d = v("VCardText"), b = v("VDivider"), w = v("VCard"), k = v("VSwitch"), y = v("VBtnToggle"), _ = v("VCardTitle"), T = v("VCardItem"), B = v("VCheckbox"), D = v("VRadio"), x = v("IdmWindBarb"), L = v("IdmSigWaveHeight"), P = v("IdmCurrentDirection"), C = v("IdmPrmsl"), z = v("IdmWindParticle"), I = v("IdmCurrentParticle"), F = v("IdmWave"), G = v("IdmSwell"), Y = v("IdmIceEdge"), Z = v("IdmIceCover"), Q = v("IdmIceThickness"), $ = v("IdmPrecip3h"), J = v("IdmVisibility"), le = v("IdmWaterTemp"), ne = v("IdmTemp");
9303
9289
  return g(), S("div", wn, [
9304
9290
  s("div", {
9305
9291
  class: "menu-bar-box transition pa-1",
9306
9292
  style: ee({ top: this.top + this.paddingTop + 46 + "px", right: this.right + "px" })
9307
9293
  }, [
9308
- p(c, {
9294
+ p(m, {
9309
9295
  text: t.$t("weather.weatherLayers"),
9310
9296
  location: "left",
9311
9297
  touch: "hover",
@@ -9331,10 +9317,10 @@ function ic(t, e, o, i, a, r) {
9331
9317
  ], 4),
9332
9318
  r.showTipMenu ? (g(), S("div", xn, [
9333
9319
  s("div", {
9334
- class: "menu-bar-box pa-1 rounded",
9320
+ class: ge(["menu-bar-box pa-1 rounded", o.simple ? "simple" : ""]),
9335
9321
  style: ee({ right: a.right + "px" })
9336
9322
  }, [
9337
- p(c, {
9323
+ p(m, {
9338
9324
  text: "Legend",
9339
9325
  location: "left"
9340
9326
  }, {
@@ -9355,8 +9341,8 @@ function ic(t, e, o, i, a, r) {
9355
9341
  ]),
9356
9342
  _: 1
9357
9343
  })
9358
- ], 4),
9359
- a.legendToggle ? (g(), A(v, {
9344
+ ], 6),
9345
+ a.legendToggle ? (g(), A(w, {
9360
9346
  key: 0,
9361
9347
  elevation: "16",
9362
9348
  class: "card-info d-flex justify-center align-start",
@@ -9371,7 +9357,7 @@ function ic(t, e, o, i, a, r) {
9371
9357
  e[11] || (e[11] = s("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wind Level", -1)),
9372
9358
  p(f, { class: "ma-0 ml-n1 text-body-2" }, {
9373
9359
  default: u(() => [
9374
- (g(!0), S(xe, null, ke(a.legend.barbs, (H, oe) => (g(), A(m, {
9360
+ (g(!0), S(xe, null, ke(a.legend.barbs, (H, oe) => (g(), A(c, {
9375
9361
  key: H,
9376
9362
  cols: "6",
9377
9363
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -9379,7 +9365,7 @@ function ic(t, e, o, i, a, r) {
9379
9365
  default: u(() => [
9380
9366
  s("div", vn, [
9381
9367
  s("i", {
9382
- class: ye(["iconfont", r.barbsIconName[oe]]),
9368
+ class: ge(["iconfont", r.barbsIconName[oe]]),
9383
9369
  style: ee({ color: o.theme === "dark" ? "#fff" : "#000" })
9384
9370
  }, null, 6),
9385
9371
  s("span", _n, n(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
@@ -9403,7 +9389,7 @@ function ic(t, e, o, i, a, r) {
9403
9389
  e[12] || (e[12] = s("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wave Height", -1)),
9404
9390
  p(f, { class: "ma-0" }, {
9405
9391
  default: u(() => [
9406
- (g(!0), S(xe, null, ke(a.legend.sigWaveHeight, (H, oe) => (g(), A(m, {
9392
+ (g(!0), S(xe, null, ke(a.legend.sigWaveHeight, (H, oe) => (g(), A(c, {
9407
9393
  key: oe,
9408
9394
  cols: "12",
9409
9395
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -9435,7 +9421,7 @@ function ic(t, e, o, i, a, r) {
9435
9421
  e[13] || (e[13] = s("div", { class: "text-body-2 font-weight-600 mb-2" }, "Current", -1)),
9436
9422
  p(f, { class: "ma-0 ml-n4" }, {
9437
9423
  default: u(() => [
9438
- (g(!0), S(xe, null, ke(a.legend.current, (H, oe) => (g(), A(m, {
9424
+ (g(!0), S(xe, null, ke(a.legend.current, (H, oe) => (g(), A(c, {
9439
9425
  key: oe,
9440
9426
  cols: "12",
9441
9427
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
@@ -9465,13 +9451,13 @@ function ic(t, e, o, i, a, r) {
9465
9451
  }, 8, ["style"])) : R("", !0)
9466
9452
  ])) : R("", !0),
9467
9453
  s("div", {
9468
- class: ye(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
9454
+ class: ge(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
9469
9455
  style: ee(r.listStyle)
9470
9456
  }, [
9471
9457
  s("div", Sn, [
9472
9458
  s("div", Mn, [
9473
9459
  s("div", Dn, n(t.$t("weather.weather")), 1),
9474
- p(z, {
9460
+ p(k, {
9475
9461
  modelValue: a.autoActive,
9476
9462
  "onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
9477
9463
  class: "small-switch",
@@ -9497,7 +9483,7 @@ function ic(t, e, o, i, a, r) {
9497
9483
  ]),
9498
9484
  o.simple ? (g(), S("div", In, [
9499
9485
  s("div", null, n(t.$t("weather.forecastModel")), 1),
9500
- p(C, {
9486
+ p(y, {
9501
9487
  modelValue: a.currentModel,
9502
9488
  "onUpdate:modelValue": e[2] || (e[2] = (H) => a.currentModel = H),
9503
9489
  rounded: "",
@@ -9539,16 +9525,16 @@ function ic(t, e, o, i, a, r) {
9539
9525
  }, 8, ["modelValue"])
9540
9526
  ])) : R("", !0),
9541
9527
  s("div", {
9542
- class: ye(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
9528
+ class: ge(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
9543
9529
  }, [
9544
- p(v, {
9530
+ p(w, {
9545
9531
  class: "block-bg mx-auto mb-3",
9546
9532
  elevation: "0"
9547
9533
  }, {
9548
9534
  default: u(() => [
9549
- p(y, { class: "border-b-thin" }, {
9535
+ p(T, { class: "border-b-thin" }, {
9550
9536
  default: u(() => [
9551
- p(L, {
9537
+ p(_, {
9552
9538
  class: "text-subtitle-1 font-weight-medium",
9553
9539
  style: { "font-size": "16px !important" }
9554
9540
  }, {
@@ -9581,14 +9567,14 @@ function ic(t, e, o, i, a, r) {
9581
9567
  ]),
9582
9568
  _: 1
9583
9569
  }),
9584
- p(v, {
9570
+ p(w, {
9585
9571
  class: "block-bg mx-auto mb-3",
9586
9572
  elevation: "0"
9587
9573
  }, {
9588
9574
  default: u(() => [
9589
- p(y, { class: "border-b-thin" }, {
9575
+ p(T, { class: "border-b-thin" }, {
9590
9576
  default: u(() => [
9591
- p(L, {
9577
+ p(_, {
9592
9578
  class: "text-subtitle-1 font-weight-medium",
9593
9579
  style: { "font-size": "16px !important" }
9594
9580
  }, {
@@ -9620,7 +9606,7 @@ function ic(t, e, o, i, a, r) {
9620
9606
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
9621
9607
  a.renderKey === "wind-particle" && H.key === "wind-particle" ? (g(), S("div", Rn, [
9622
9608
  s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
9623
- p(z, {
9609
+ p(k, {
9624
9610
  modelValue: a.showWindParticle,
9625
9611
  "onUpdate:modelValue": e[5] || (e[5] = (oe) => a.showWindParticle = oe),
9626
9612
  label: "",
@@ -9635,7 +9621,7 @@ function ic(t, e, o, i, a, r) {
9635
9621
  ])) : R("", !0),
9636
9622
  a.renderKey === "current-particle" && H.key === "current-particle" ? (g(), S("div", An, [
9637
9623
  s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
9638
- p(z, {
9624
+ p(k, {
9639
9625
  modelValue: a.showCurrentParticle,
9640
9626
  "onUpdate:modelValue": e[6] || (e[6] = (oe) => a.showCurrentParticle = oe),
9641
9627
  label: "",
@@ -9648,7 +9634,7 @@ function ic(t, e, o, i, a, r) {
9648
9634
  "hide-details": ""
9649
9635
  }, null, 8, ["modelValue"])
9650
9636
  ])) : R("", !0),
9651
- a.renderKey === "wave-group" && H.key === "wave-group" ? (g(), A(C, {
9637
+ a.renderKey === "wave-group" && H.key === "wave-group" ? (g(), A(y, {
9652
9638
  key: 2,
9653
9639
  modelValue: a.waveToggleValue,
9654
9640
  "onUpdate:modelValue": e[7] || (e[7] = (oe) => a.waveToggleValue = oe),
@@ -9691,7 +9677,7 @@ function ic(t, e, o, i, a, r) {
9691
9677
  ]),
9692
9678
  _: 1
9693
9679
  }, 8, ["modelValue", "disabled"])) : R("", !0),
9694
- a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (g(), A(C, {
9680
+ a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (g(), A(y, {
9695
9681
  key: 3,
9696
9682
  modelValue: a.iceToggleValue,
9697
9683
  "onUpdate:modelValue": e[8] || (e[8] = (oe) => a.iceToggleValue = oe),
@@ -9741,14 +9727,14 @@ function ic(t, e, o, i, a, r) {
9741
9727
  ]),
9742
9728
  _: 1
9743
9729
  }),
9744
- p(v, {
9730
+ p(w, {
9745
9731
  class: "block-bg mx-auto mb-3",
9746
9732
  elevation: "0"
9747
9733
  }, {
9748
9734
  default: u(() => [
9749
- p(y, { class: "border-b-thin" }, {
9735
+ p(T, { class: "border-b-thin" }, {
9750
9736
  default: u(() => [
9751
- p(L, {
9737
+ p(_, {
9752
9738
  class: "text-subtitle-1 font-weight-medium",
9753
9739
  style: { "font-size": "16px !important" }
9754
9740
  }, {
@@ -9762,10 +9748,10 @@ function ic(t, e, o, i, a, r) {
9762
9748
  }),
9763
9749
  p(d, { class: "" }, {
9764
9750
  default: u(() => {
9765
- var H, oe, He, Oe, ge, Re, U, fe, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, V, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
9751
+ var H, oe, He, Oe, fe, Re, U, ye, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, V, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
9766
9752
  return [
9767
9753
  s("div", On, n(t.$t("weather.atmospheric")), 1),
9768
- s("div", Bn, n((He = (oe = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : He.source) + " " + n((Re = (ge = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : Re.spatialResolution) + n(t.$t("units.km")) + " " + n((re = (ae = (fe = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : re.days) + n(t.$t("units.days")), 1),
9754
+ s("div", Bn, n((He = (oe = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : He.source) + " " + n((Re = (fe = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : Re.spatialResolution) + n(t.$t("units.km")) + " " + n((re = (ae = (ye = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : ye.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : re.days) + n(t.$t("units.days")), 1),
9769
9755
  s("div", jn, n(t.$t("weather.source")) + ": NOAA", 1),
9770
9756
  s("div", En, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((E = (We = (Ge = (je = a.models) == null ? void 0 : je.weather) == null ? void 0 : Ge.NOAA) == null ? void 0 : We.meta) == null ? void 0 : E.availabilityTime)), 1),
9771
9757
  s("div", Nn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((Ne = (Ee = (Be = (we = a.models) == null ? void 0 : we.weather) == null ? void 0 : Be.NOAA) == null ? void 0 : Ee.meta) == null ? void 0 : Ne.initialisationTime)), 1),
@@ -9798,7 +9784,7 @@ function ic(t, e, o, i, a, r) {
9798
9784
  })
9799
9785
  ], 2)
9800
9786
  ], 6),
9801
- o.map ? (g(), A(P, j({
9787
+ o.map ? (g(), A(x, j({
9802
9788
  key: 1,
9803
9789
  ref: "windBarb",
9804
9790
  map: o.map,
@@ -9807,7 +9793,7 @@ function ic(t, e, o, i, a, r) {
9807
9793
  wind: (se = a.weatherLayers) == null ? void 0 : se.wind,
9808
9794
  "menu-toggle": o.menuToggle
9809
9795
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : R("", !0),
9810
- o.map ? (g(), A(k, j({
9796
+ o.map ? (g(), A(L, j({
9811
9797
  key: 2,
9812
9798
  map: o.map,
9813
9799
  "before-layer": "empty-layer-2",
@@ -9815,7 +9801,7 @@ function ic(t, e, o, i, a, r) {
9815
9801
  "menu-toggle": o.menuToggle,
9816
9802
  "active-weather-layers": a.activeWeatherLayers
9817
9803
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : R("", !0),
9818
- o.map ? (g(), A(x, j({
9804
+ o.map ? (g(), A(P, j({
9819
9805
  key: 3,
9820
9806
  map: o.map,
9821
9807
  "map-feather": o.mapFeather,
@@ -9823,15 +9809,15 @@ function ic(t, e, o, i, a, r) {
9823
9809
  current: (me = a.weatherLayers) == null ? void 0 : me.current,
9824
9810
  "menu-toggle": o.menuToggle
9825
9811
  }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : R("", !0),
9826
- o.map ? (g(), A(T, j({
9812
+ o.map ? (g(), A(C, j({
9827
9813
  key: 4,
9828
9814
  map: o.map,
9829
- "before-layer": "empty-layer-2",
9815
+ "before-layer": "empty-layer-3",
9830
9816
  prmsl: (ue = a.weatherLayers) == null ? void 0 : ue.prmsl,
9831
9817
  "menu-toggle": o.menuToggle,
9832
9818
  "active-weather-layers": a.activeWeatherLayers
9833
9819
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : R("", !0),
9834
- o.map ? (g(), A(_, j({
9820
+ o.map ? (g(), A(z, j({
9835
9821
  key: 5,
9836
9822
  viewport: a.viewport,
9837
9823
  factor: (he = a.weatherLayers) == null ? void 0 : he["wind-particle"],
@@ -10228,21 +10214,21 @@ class Ya {
10228
10214
  var o, i;
10229
10215
  e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
10230
10216
  const a = e.toLowerCase().split(","), r = [], l = [];
10231
- for (const c of a) {
10232
- let m = Lo.find((d) => {
10233
- var b, v, z;
10234
- return ((b = d.models) == null ? void 0 : b.includes(c)) || ((v = d.alias) == null ? void 0 : v.toLowerCase()) === c || ((z = d.name) == null ? void 0 : z.toLowerCase()) === c;
10217
+ for (const m of a) {
10218
+ let c = Lo.find((d) => {
10219
+ var b, w, k;
10220
+ return ((b = d.models) == null ? void 0 : b.includes(m)) || ((w = d.alias) == null ? void 0 : w.toLowerCase()) === m || ((k = d.name) == null ? void 0 : k.toLowerCase()) === m;
10235
10221
  }), f = Po.find((d) => {
10236
- var b, v, z;
10237
- return ((b = d.models) == null ? void 0 : b.includes(c)) || ((v = d.alias) == null ? void 0 : v.toLowerCase()) === c || ((z = d.name) == null ? void 0 : z.toLowerCase()) === c;
10222
+ var b, w, k;
10223
+ return ((b = d.models) == null ? void 0 : b.includes(m)) || ((w = d.alias) == null ? void 0 : w.toLowerCase()) === m || ((k = d.name) == null ? void 0 : k.toLowerCase()) === m;
10238
10224
  });
10239
- m = m || Lo.find((d) => {
10240
- var b, v;
10241
- return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((v = f == null ? void 0 : f.alias) == null ? void 0 : v.toLowerCase());
10225
+ c = c || Lo.find((d) => {
10226
+ var b, w;
10227
+ return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((w = f == null ? void 0 : f.alias) == null ? void 0 : w.toLowerCase());
10242
10228
  }), f = f || Po.find((d) => {
10243
- var b, v;
10244
- return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((v = m == null ? void 0 : m.alias) == null ? void 0 : v.toLowerCase());
10245
- }), m = m || Lo[0], f = f || Po[0], r.push((o = m.models) != null && o.includes(c) ? c : m.model), l.push((i = f.models) != null && i.includes(c) ? c : f.model);
10229
+ var b, w;
10230
+ return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((w = c == null ? void 0 : c.alias) == null ? void 0 : w.toLowerCase());
10231
+ }), c = c || Lo[0], f = f || Po[0], r.push((o = c.models) != null && o.includes(m) ? m : c.model), l.push((i = f.models) != null && i.includes(m) ? m : f.model);
10246
10232
  }
10247
10233
  return {
10248
10234
  weatherModels: r.join(","),
@@ -10259,37 +10245,37 @@ class Ya {
10259
10245
  }), a;
10260
10246
  }
10261
10247
  static pickHourly(e, o) {
10262
- var i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, ge, Re;
10263
- const U = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, ae = e == null ? void 0 : e.marine, re = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), je = re.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), Ge = re.clone().add((d = (f = (m = fe == null ? void 0 : fe[0]) == null ? void 0 : m.hourly) == null ? void 0 : f.time) == null ? void 0 : d.at(-1), "h"), We = [];
10248
+ var i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re;
10249
+ const U = typeof o == "string" ? M(o) : o, ye = e == null ? void 0 : e.weather, ae = e == null ? void 0 : e.marine, re = M((a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), je = re.clone().add((m = (l = (r = ye == null ? void 0 : ye[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : m.at(0), "h"), Ge = re.clone().add((d = (f = (c = ye == null ? void 0 : ye[0]) == null ? void 0 : c.hourly) == null ? void 0 : f.time) == null ? void 0 : d.at(-1), "h"), We = [];
10264
10250
  if (U.isBetween(je, Ge, "millisecond", "[]")) {
10265
10251
  const E = U.utc().diff(je, "h", !1);
10266
10252
  let we, Be;
10267
- if (fe) {
10253
+ if (ye) {
10268
10254
  let Ee = 0, Ne = 0, N = 0;
10269
- for (const Ue of fe) {
10255
+ for (const Ue of ye) {
10270
10256
  const V = Ue == null ? void 0 : Ue.hourly;
10271
10257
  for (let Le = E - (E - 1) % 3; Le <= E; Le++)
10272
10258
  Ee += (b = V == null ? void 0 : V.precipitation) == null ? void 0 : b.at(Le);
10273
10259
  for (let Le = E - (E - 1) % 6; Le <= E; Le++)
10274
- Ne += (v = V == null ? void 0 : V.precipitation) == null ? void 0 : v.at(Le);
10260
+ Ne += (w = V == null ? void 0 : V.precipitation) == null ? void 0 : w.at(Le);
10275
10261
  for (let Le = E - (E - 1) % 12; Le <= E; Le++)
10276
- N += (z = V == null ? void 0 : V.precipitation) == null ? void 0 : z.at(Le);
10262
+ N += (k = V == null ? void 0 : V.precipitation) == null ? void 0 : k.at(Le);
10277
10263
  we = {
10278
- temp: (C = V == null ? void 0 : V.temperature_2m) == null ? void 0 : C.at(E),
10279
- apparentTemp: (L = V == null ? void 0 : V.apparent_temperature) == null ? void 0 : L.at(E),
10280
- rh: (y = V == null ? void 0 : V.relative_humidity_2m) == null ? void 0 : y.at(E),
10264
+ temp: (y = V == null ? void 0 : V.temperature_2m) == null ? void 0 : y.at(E),
10265
+ apparentTemp: (_ = V == null ? void 0 : V.apparent_temperature) == null ? void 0 : _.at(E),
10266
+ rh: (T = V == null ? void 0 : V.relative_humidity_2m) == null ? void 0 : T.at(E),
10281
10267
  dp: (B = V == null ? void 0 : V.dew_point_2m) == null ? void 0 : B.at(E),
10282
10268
  precip: {
10283
10269
  probability: (D = V == null ? void 0 : V.precipitation_probability) == null ? void 0 : D.at(E),
10284
- sum: (P = V == null ? void 0 : V.precipitation) == null ? void 0 : P.at(E),
10285
- sum1Hours: (k = V == null ? void 0 : V.precipitation) == null ? void 0 : k.at(E),
10270
+ sum: (x = V == null ? void 0 : V.precipitation) == null ? void 0 : x.at(E),
10271
+ sum1Hours: (L = V == null ? void 0 : V.precipitation) == null ? void 0 : L.at(E),
10286
10272
  sum3Hours: Math.round(Ee * 100) / 100,
10287
10273
  sum6Hours: Math.round(Ne * 100) / 100,
10288
10274
  sum12Hours: Math.round(N * 100) / 100
10289
10275
  },
10290
- pmsl: (x = V == null ? void 0 : V.pressure_msl) == null ? void 0 : x.at(E),
10291
- psurf: (T = V == null ? void 0 : V.surface_pressure) == null ? void 0 : T.at(E),
10292
- code: (_ = V == null ? void 0 : V.weather_code) == null ? void 0 : _.at(E),
10276
+ pmsl: (P = V == null ? void 0 : V.pressure_msl) == null ? void 0 : P.at(E),
10277
+ psurf: (C = V == null ? void 0 : V.surface_pressure) == null ? void 0 : C.at(E),
10278
+ code: (z = V == null ? void 0 : V.weather_code) == null ? void 0 : z.at(E),
10293
10279
  visibility: this.m2nm((I = V == null ? void 0 : V.visibility) == null ? void 0 : I.at(E)),
10294
10280
  wind: {
10295
10281
  speed: (F = V == null ? void 0 : V.wind_speed_10m) == null ? void 0 : F.at(E),
@@ -10341,7 +10327,7 @@ class Ya {
10341
10327
  degree: (He = N == null ? void 0 : N.ocean_current_direction) == null ? void 0 : He.at(E),
10342
10328
  bearing: ((Oe = N == null ? void 0 : N.ocean_current_direction) == null ? void 0 : Oe.at(E)) ?? null
10343
10329
  },
10344
- sst: (ge = N == null ? void 0 : N.sea_surface_temperature) == null ? void 0 : ge.at(E),
10330
+ sst: (fe = N == null ? void 0 : N.sea_surface_temperature) == null ? void 0 : fe.at(E),
10345
10331
  height: (Re = N == null ? void 0 : N.sea_level_height_msl) == null ? void 0 : Re.at(E)
10346
10332
  }, Be.wave = this.parseWave(Be.wave, we == null ? void 0 : we.wind), Be.current.direction = this.degree2Direction(Be.current.degree), Object.assign(We[Ee], Be), Ee++;
10347
10333
  }
@@ -10350,16 +10336,16 @@ class Ya {
10350
10336
  return We;
10351
10337
  }
10352
10338
  static toLegacy(e) {
10353
- var o, i, a, r, l, c, m, f, d, b;
10339
+ var o, i, a, r, l, m, c, f, d, b;
10354
10340
  return {
10355
10341
  wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
10356
10342
  visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
10357
10343
  temp: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.temp,
10358
10344
  prmsl: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.pmsl,
10359
10345
  gusts: {
10360
- kts: (c = (l = e == null ? void 0 : e.weather) == null ? void 0 : l.wind) == null ? void 0 : c.gusts
10346
+ kts: (m = (l = e == null ? void 0 : e.weather) == null ? void 0 : l.wind) == null ? void 0 : m.gusts
10361
10347
  },
10362
- precip: (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip,
10348
+ precip: (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip,
10363
10349
  code: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.code,
10364
10350
  name: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.name,
10365
10351
  url: (b = e == null ? void 0 : e.weather) == null ? void 0 : b.url,
@@ -10372,37 +10358,37 @@ class Ya {
10372
10358
  };
10373
10359
  }
10374
10360
  static pickDaily(e, o) {
10375
- var i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e;
10376
- const Ie = typeof o == "string" ? M(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = M((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((m = (c = (l = Ce == null ? void 0 : Ce[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : m.at(-1)), Oe = [];
10361
+ var i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e;
10362
+ const Ie = typeof o == "string" ? M(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = M((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((c = (m = (l = Ce == null ? void 0 : Ce[0]) == null ? void 0 : l.daily) == null ? void 0 : m.time) == null ? void 0 : c.at(-1)), Oe = [];
10377
10363
  if (Ie.isBetween(oe, He, "millisecond", "[]")) {
10378
- let ge, Re;
10364
+ let fe, Re;
10379
10365
  const U = Ie.diff(oe, "d", !1);
10380
10366
  if (Ce)
10381
- for (const fe of Ce) {
10382
- const ae = fe.daily;
10383
- ge = {
10367
+ for (const ye of Ce) {
10368
+ const ae = ye.daily;
10369
+ fe = {
10384
10370
  code: (f = ae.weather_code) == null ? void 0 : f.at(U),
10385
10371
  temp: {
10386
10372
  max: (d = ae.temperature_2m_max) == null ? void 0 : d.at(U),
10387
10373
  min: (b = ae.temperature_2m_min) == null ? void 0 : b.at(U),
10388
- mean: (v = ae.temperature_2m_mean) == null ? void 0 : v.at(U)
10374
+ mean: (w = ae.temperature_2m_mean) == null ? void 0 : w.at(U)
10389
10375
  },
10390
10376
  apparentTemp: {
10391
- max: (z = ae.apparent_temperature_max) == null ? void 0 : z.at(U),
10392
- min: (C = ae.apparent_temperature_min) == null ? void 0 : C.at(U)
10377
+ max: (k = ae.apparent_temperature_max) == null ? void 0 : k.at(U),
10378
+ min: (y = ae.apparent_temperature_min) == null ? void 0 : y.at(U)
10393
10379
  },
10394
10380
  precip: {
10395
- sum: (L = ae.precipitation_sum) == null ? void 0 : L.at(U),
10396
- rainSum: (y = ae.rain_sum) == null ? void 0 : y.at(U),
10381
+ sum: (_ = ae.precipitation_sum) == null ? void 0 : _.at(U),
10382
+ rainSum: (T = ae.rain_sum) == null ? void 0 : T.at(U),
10397
10383
  snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(U),
10398
10384
  showersSum: (D = ae.showers_sum) == null ? void 0 : D.at(U),
10399
- hours: (P = ae.precipitation_hours) == null ? void 0 : P.at(U),
10400
- probability: (k = ae.precipitation_probability_max) == null ? void 0 : k.at(U)
10385
+ hours: (x = ae.precipitation_hours) == null ? void 0 : x.at(U),
10386
+ probability: (L = ae.precipitation_probability_max) == null ? void 0 : L.at(U)
10401
10387
  },
10402
10388
  rh: {
10403
- max: (x = ae.relative_humidity_2m_max) == null ? void 0 : x.at(U),
10404
- min: (T = ae.relative_humidity_2m_min) == null ? void 0 : T.at(U),
10405
- mean: (_ = ae.relative_humidity_2m_mean) == null ? void 0 : _.at(U)
10389
+ max: (P = ae.relative_humidity_2m_max) == null ? void 0 : P.at(U),
10390
+ min: (C = ae.relative_humidity_2m_min) == null ? void 0 : C.at(U),
10391
+ mean: (z = ae.relative_humidity_2m_mean) == null ? void 0 : z.at(U)
10406
10392
  },
10407
10393
  wind: {
10408
10394
  speed: (I = ae.wind_speed_10m_max) == null ? void 0 : I.at(U),
@@ -10412,15 +10398,15 @@ class Ya {
10412
10398
  bearing: ((Z = ae.wind_direction_10m_dominant) == null ? void 0 : Z.at(U)) !== null ? (((Q = ae.wind_direction_10m_dominant) == null ? void 0 : Q.at(U)) + 180) % 360 : null
10413
10399
  }
10414
10400
  };
10415
- const { name: re, url: je, bg: Ge } = this.parseWeatherCode(ge.code, !0);
10416
- ge.name = re, ge.url = je, ge.bg = Ge, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Oe.push({
10401
+ const { name: re, url: je, bg: Ge } = this.parseWeatherCode(fe.code, !0);
10402
+ fe.name = re, fe.url = je, fe.bg = Ge, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree), Oe.push({
10417
10403
  utc: oe.add(U, "d").utc().format(),
10418
- model: fe.model,
10419
- weather: { ...ge }
10404
+ model: ye.model,
10405
+ weather: { ...fe }
10420
10406
  });
10421
10407
  }
10422
10408
  if (H) {
10423
- let fe = 0;
10409
+ let ye = 0;
10424
10410
  for (const ae of H) {
10425
10411
  const re = ae.daily;
10426
10412
  Re = {
@@ -10447,7 +10433,7 @@ class Ya {
10447
10433
  bearing: ((Te = re.wind_wave_direction_dominant) == null ? void 0 : Te.at(U)) !== null ? (((_e = re.wind_wave_direction_dominant) == null ? void 0 : _e.at(U)) + 180) % 360 : null
10448
10434
  }
10449
10435
  }
10450
- }, Re.wave = this.parseWave(Re.wave, ge == null ? void 0 : ge.wind), Object.assign(Oe[fe], Re), fe++;
10436
+ }, Re.wave = this.parseWave(Re.wave, fe == null ? void 0 : fe.wind), Object.assign(Oe[ye], Re), ye++;
10451
10437
  }
10452
10438
  }
10453
10439
  }
@@ -10974,8 +10960,8 @@ const sc = {
10974
10960
  return (t, e, o = "MM-DD HH:mm") => {
10975
10961
  var i, a;
10976
10962
  if (t) {
10977
- const r = e || 0, l = (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o), c = `(UTC ${r >= 0 ? "+" : ""}${r})`;
10978
- return l + " " + c;
10963
+ const r = e || 0, l = (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o), m = `(UTC ${r >= 0 ? "+" : ""}${r})`;
10964
+ return l + " " + m;
10979
10965
  }
10980
10966
  return "-";
10981
10967
  };
@@ -11051,15 +11037,15 @@ const sc = {
11051
11037
  async fetchTropicals() {
11052
11038
  var a, r, l;
11053
11039
  const t = (/* @__PURE__ */ new Date()).valueOf();
11054
- let e = 0, o = 0, i = (a = Co.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
11040
+ let e = 0, o = 0, i = (a = Co.WEATHER_LAYERS.find((m) => m.key === "tropicals")) == null ? void 0 : a.weight;
11055
11041
  if (i > 0) {
11056
- const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], m = await Ae.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
11042
+ const m = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], c = await Ae.get(`${m}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
11057
11043
  headers: {
11058
11044
  Authorization: this.defaultMeteoToken
11059
11045
  }
11060
11046
  });
11061
- if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = m == null ? void 0 : m.data) == null ? void 0 : r.code) === 0) {
11062
- const f = (l = m == null ? void 0 : m.data) == null ? void 0 : l.data;
11047
+ if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = c == null ? void 0 : c.data) == null ? void 0 : r.code) === 0) {
11048
+ const f = (l = c == null ? void 0 : c.data) == null ? void 0 : l.data;
11063
11049
  await Ae.get(f.tropicals, {
11064
11050
  headers: {
11065
11051
  Authorization: this.defaultMeteoToken,
@@ -11067,14 +11053,14 @@ const sc = {
11067
11053
  },
11068
11054
  responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
11069
11055
  }).then((d) => {
11070
- var z, C, L;
11071
- const b = Va.convert2Geojson(((z = d == null ? void 0 : d.data) == null ? void 0 : z.data) || (d == null ? void 0 : d.data));
11072
- ((L = (C = d == null ? void 0 : d.config) == null ? void 0 : C.headers) == null ? void 0 : L.key) && b && (this.tropicals = {
11056
+ var k, y, _;
11057
+ const b = Va.convert2Geojson(((k = d == null ? void 0 : d.data) == null ? void 0 : k.data) || (d == null ? void 0 : d.data));
11058
+ ((_ = (y = d == null ? void 0 : d.config) == null ? void 0 : y.headers) == null ? void 0 : _.key) && b && (this.tropicals = {
11073
11059
  data: b,
11074
11060
  active: !0,
11075
11061
  cached: !0,
11076
11062
  type: "json",
11077
- etime: m.data.etime,
11063
+ etime: c.data.etime,
11078
11064
  version: Math.random() + 1
11079
11065
  });
11080
11066
  }).catch((d) => {
@@ -11087,26 +11073,26 @@ const sc = {
11087
11073
  handleRefresh() {
11088
11074
  var e, o;
11089
11075
  (((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
11090
- var a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _;
11076
+ var a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z;
11091
11077
  if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
11092
11078
  let I = "";
11093
11079
  switch (!0) {
11094
11080
  case (((r = i.properties.wind) == null ? void 0 : r.kts) < 32 || ((l = i.properties) == null ? void 0 : l.kts) < 32):
11095
11081
  I = "TD";
11096
11082
  break;
11097
- case (((c = i.properties.wind) == null ? void 0 : c.kts) < 47 || ((m = i.properties) == null ? void 0 : m.kts) < 47):
11083
+ case (((m = i.properties.wind) == null ? void 0 : m.kts) < 47 || ((c = i.properties) == null ? void 0 : c.kts) < 47):
11098
11084
  I = "TS";
11099
11085
  break;
11100
11086
  case (((f = i.properties.wind) == null ? void 0 : f.kts) < 63 || ((d = i.properties) == null ? void 0 : d.kts) < 63):
11101
11087
  I = "STS";
11102
11088
  break;
11103
- case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((v = i.properties) == null ? void 0 : v.kts) < 79):
11089
+ case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((w = i.properties) == null ? void 0 : w.kts) < 79):
11104
11090
  I = "TY";
11105
11091
  break;
11106
- case (((z = i.properties.wind) == null ? void 0 : z.kts) < 94 || ((C = i.properties) == null ? void 0 : C.kts) < 94):
11092
+ case (((k = i.properties.wind) == null ? void 0 : k.kts) < 94 || ((y = i.properties) == null ? void 0 : y.kts) < 94):
11107
11093
  I = "STY";
11108
11094
  break;
11109
- case (((L = i.properties.wind) == null ? void 0 : L.kts) >= 94 || ((y = i.properties) == null ? void 0 : y.kts) >= 94):
11095
+ case (((_ = i.properties.wind) == null ? void 0 : _.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
11110
11096
  I = "Super TY";
11111
11097
  break;
11112
11098
  default:
@@ -11115,19 +11101,19 @@ const sc = {
11115
11101
  }
11116
11102
  i.properties.level = I;
11117
11103
  }
11118
- ((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((D = i.properties) != null && D.important) && (i.properties.format = (k = (P = M(i.properties.date)) == null ? void 0 : P.utcOffset(this.timeZone)) == null ? void 0 : k.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((x = i.geometry) == null ? void 0 : x.type) === "Point" && (i.properties.Name = ((_ = (T = i.properties.name) == null ? void 0 : T.trim()) == null ? void 0 : _.replace(/^./, (I) => I.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
11104
+ ((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((D = i.properties) != null && D.important) && (i.properties.format = (L = (x = M(i.properties.date)) == null ? void 0 : x.utcOffset(this.timeZone)) == null ? void 0 : L.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((P = i.geometry) == null ? void 0 : P.type) === "Point" && (i.properties.Name = ((z = (C = i.properties.name) == null ? void 0 : C.trim()) == null ? void 0 : z.replace(/^./, (I) => I.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
11119
11105
  }), this.handleInit();
11120
11106
  },
11121
11107
  handleInit() {
11122
- var t, e, o, i, a, r, l, c, m, f, d, b;
11123
- this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, 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 ? (m = (c = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : c.idmBottomBar) == null || m.handleToggle("tropical", !0) : (b = (d = (f = this.$parent) == null ? void 0 : f.$refs) == null ? void 0 : d.idmBottomBar) == null || b.handleToggle("tropical", !1);
11108
+ var t, e, o, i, a, r, l, m, c, f, d, b;
11109
+ this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, 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 ? (c = (m = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : m.idmBottomBar) == null || c.handleToggle("tropical", !0) : (b = (d = (f = this.$parent) == null ? void 0 : f.$refs) == null ? void 0 : d.idmBottomBar) == null || b.handleToggle("tropical", !1);
11124
11110
  },
11125
11111
  handleRender() {
11126
- var t, e, o, i, a, r, l, c, m, f;
11112
+ var t, e, o, i, a, r, l, m, c, f;
11127
11113
  if (this.tropicals && this.map) {
11128
11114
  const d = (/* @__PURE__ */ new Date()).valueOf();
11129
- let b = 0, v = 0;
11130
- (t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropicals] update elapsed: ", v, ", total: ", b += v)) : (this.map.addSource(this.source, {
11115
+ let b = 0, w = 0;
11116
+ (t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropicals] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.source, {
11131
11117
  type: "geojson",
11132
11118
  data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
11133
11119
  }), this.map.addLayer({
@@ -11208,9 +11194,9 @@ const sc = {
11208
11194
  ],
11209
11195
  "text-halo-width": 4
11210
11196
  }
11211
- }, this.beforeLayer), v = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", v, ", total: ", b += v)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] update elapsed: ", v, ", total: ", b += v)) : (this.map.addSource(this.clusterSource, {
11197
+ }, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((m = this.map) == null || m.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.clusterSource, {
11212
11198
  type: "geojson",
11213
- data: (m = this.tropicals) != null && m.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
11199
+ data: (c = this.tropicals) != null && c.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
11214
11200
  // cluster: true,
11215
11201
  // clusterRadius: 10, // 聚合半径
11216
11202
  }), this.map.addLayer({
@@ -11324,9 +11310,9 @@ const sc = {
11324
11310
  "text-halo-color": "#ffffff",
11325
11311
  "text-halo-width": 2
11326
11312
  }
11327
- }, this.beforeLayer), v = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", v, ", total: ", b += v));
11328
- const z = Va.interpolate(this.tropicals, 1);
11329
- this.interpolateData = JSON.parse(JSON.stringify(z)), this.handleDateChange();
11313
+ }, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w));
11314
+ const k = Va.interpolate(this.tropicals, 1);
11315
+ this.interpolateData = JSON.parse(JSON.stringify(k)), this.handleDateChange();
11330
11316
  }
11331
11317
  },
11332
11318
  handleClear() {
@@ -11334,7 +11320,7 @@ const sc = {
11334
11320
  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((a) => a == null ? void 0 : a.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)), (e = this.map) == null || e.off("click", this.clickLayers, 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.handleCloseInfoMarker();
11335
11321
  },
11336
11322
  handleDateChange() {
11337
- var t, e, o, i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se;
11323
+ var t, e, o, i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se;
11338
11324
  if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
11339
11325
  const ie = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), me = this.interpolateData.filter((O) => O.properties.date === (ie == null ? void 0 : ie.format()) && !O.properties.disabled), ue = this.handleComputePolygons(me), he = W.featureCollection([...me]);
11340
11326
  ue.forEach((O) => {
@@ -11368,14 +11354,14 @@ const sc = {
11368
11354
  var _e;
11369
11355
  return Te.properties.name === ((_e = O.properties) == null ? void 0 : _e.name);
11370
11356
  })) {
11371
- const Te = ((c = (l = this.tropicals.data.features.find((_e) => {
11357
+ const Te = ((m = (l = this.tropicals.data.features.find((_e) => {
11372
11358
  var Ie;
11373
11359
  return _e.properties.name === ((Ie = O.properties) == null ? void 0 : Ie.name);
11374
- })) == null ? void 0 : l.properties) == null ? void 0 : c.nameCn) || ((m = O.properties) == null ? void 0 : m.Name) || "-";
11360
+ })) == null ? void 0 : l.properties) == null ? void 0 : m.nameCn) || ((c = O.properties) == null ? void 0 : c.Name) || "-";
11375
11361
  O.properties.nameCn = Te, O.properties.Name = ((d = (f = O.properties.name) == null ? void 0 : f.trim()) == null ? void 0 : d.replace(/^./, (_e) => _e.toUpperCase())) || O.properties.nameCn, de.push(O);
11376
11362
  }
11377
11363
  let te = this.Theme.current.value.colors["tropicals-ty"];
11378
- ((v = (b = O.properties) == null ? void 0 : b.wind) == null ? void 0 : v.kts) < 32 || !((C = (z = O.properties) == null ? void 0 : z.wind) != null && C.kts) ? te = this.Theme.current.value.colors["tropicals-td"] : ((y = (L = O.properties) == null ? void 0 : L.wind) == null ? void 0 : y.kts) >= 32 && ((D = (B = O.properties) == null ? void 0 : B.wind) == null ? void 0 : D.kts) < 47 ? te = this.Theme.current.value.colors["tropicals-ts"] : ((k = (P = O.properties) == null ? void 0 : P.wind) == null ? void 0 : k.kts) >= 47 && ((T = (x = O.properties) == null ? void 0 : x.wind) == null ? void 0 : T.kts) < 63 ? te = this.Theme.current.value.colors["tropicals-sts"] : ((I = (_ = O.properties) == null ? void 0 : _.wind) == null ? void 0 : I.kts) >= 63 && ((G = (F = O.properties) == null ? void 0 : F.wind) == null ? void 0 : G.kts) < 79 ? te = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (Y = O.properties) == null ? void 0 : Y.wind) == null ? void 0 : Z.kts) >= 79 && (($ = (Q = O.properties) == null ? void 0 : Q.wind) == null ? void 0 : $.kts) < 94 ? te = this.Theme.current.value.colors["tropicals-sty"] : ((le = (J = O.properties) == null ? void 0 : J.wind) == null ? void 0 : le.kts) >= 94 ? te = this.Theme.current.value.colors["tropicals-super-ty"] : te = this.Theme.current.value.colors["tropicals-ty"];
11364
+ ((w = (b = O.properties) == null ? void 0 : b.wind) == null ? void 0 : w.kts) < 32 || !((y = (k = O.properties) == null ? void 0 : k.wind) != null && y.kts) ? te = this.Theme.current.value.colors["tropicals-td"] : ((T = (_ = O.properties) == null ? void 0 : _.wind) == null ? void 0 : T.kts) >= 32 && ((D = (B = O.properties) == null ? void 0 : B.wind) == null ? void 0 : D.kts) < 47 ? te = this.Theme.current.value.colors["tropicals-ts"] : ((L = (x = O.properties) == null ? void 0 : x.wind) == null ? void 0 : L.kts) >= 47 && ((C = (P = O.properties) == null ? void 0 : P.wind) == null ? void 0 : C.kts) < 63 ? te = this.Theme.current.value.colors["tropicals-sts"] : ((I = (z = O.properties) == null ? void 0 : z.wind) == null ? void 0 : I.kts) >= 63 && ((G = (F = O.properties) == null ? void 0 : F.wind) == null ? void 0 : G.kts) < 79 ? te = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (Y = O.properties) == null ? void 0 : Y.wind) == null ? void 0 : Z.kts) >= 79 && (($ = (Q = O.properties) == null ? void 0 : Q.wind) == null ? void 0 : $.kts) < 94 ? te = this.Theme.current.value.colors["tropicals-sty"] : ((le = (J = O.properties) == null ? void 0 : J.wind) == null ? void 0 : le.kts) >= 94 ? te = this.Theme.current.value.colors["tropicals-super-ty"] : te = this.Theme.current.value.colors["tropicals-ty"];
11379
11365
  const be = `<svg t="1719918955501"
11380
11366
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
11381
11367
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -11400,25 +11386,25 @@ const sc = {
11400
11386
  (ne = this.map) != null && ne.getSource(this.interpolateSource) && ((se = this.map) == null || se.getSource(this.interpolateSource).setData(this.empty));
11401
11387
  },
11402
11388
  handleClick(t) {
11403
- var a, r, l, c, m, f, d, b, v, z, C;
11389
+ var a, r, l, m, c, f, d, b, w, k, y;
11404
11390
  const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
11405
- (L) => {
11406
- var y;
11407
- return L.geometry.type === "LineString" && L.properties.type === "forecast" && L.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
11391
+ (_) => {
11392
+ var T;
11393
+ return _.geometry.type === "LineString" && _.properties.type === "forecast" && _.properties.name === ((T = e == null ? void 0 : e.properties) == null ? void 0 : T.name);
11408
11394
  }
11409
- ), i = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
11410
- (L) => {
11411
- var y;
11412
- return L.geometry.type === "LineString" && L.properties.type === "history" && L.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
11395
+ ), i = (m = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : m.features.filter(
11396
+ (_) => {
11397
+ var T;
11398
+ return _.geometry.type === "LineString" && _.properties.type === "history" && _.properties.name === ((T = e == null ? void 0 : e.properties) == null ? void 0 : T.name);
11413
11399
  }
11414
11400
  );
11415
11401
  this.activeTropicals = {
11416
- name: ((m = e == null ? void 0 : e.properties) == null ? void 0 : m.name) || "-",
11402
+ name: ((c = e == null ? void 0 : e.properties) == null ? void 0 : c.name) || "-",
11417
11403
  nameCn: ((f = e == null ? void 0 : e.properties) == null ? void 0 : f.nameCn) || ((d = e == null ? void 0 : e.properties) == null ? void 0 : d.name) || "-",
11418
11404
  Name: ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.Name) || "-",
11419
- forecasts: o.map((L) => L.properties),
11420
- history: (v = i[0]) == null ? void 0 : v.properties,
11421
- showCircle: (C = (z = o[0]) == null ? void 0 : z.properties) == null ? void 0 : C.showCircle
11405
+ forecasts: o.map((_) => _.properties),
11406
+ history: (w = i[0]) == null ? void 0 : w.properties,
11407
+ showCircle: (y = (k = o[0]) == null ? void 0 : k.properties) == null ? void 0 : y.showCircle
11422
11408
  }, this.showTropicalsInfo = !0, this.simple || this.drawTropicalsInfoMaker([t.lngLat.lng, t.lngLat.lat]);
11423
11409
  },
11424
11410
  drawTropicalsInfoMaker(t) {
@@ -11434,14 +11420,14 @@ const sc = {
11434
11420
  });
11435
11421
  },
11436
11422
  handleForecastToggle(t) {
11437
- var i, a, r, l, c, m;
11423
+ var i, a, r, l, m, c;
11438
11424
  t.disabled = !t.disabled;
11439
11425
  const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
11440
11426
  o.forEach((f) => {
11441
11427
  f.properties.category === e && (f.properties.disabled = t.disabled);
11442
11428
  }), this.interpolateData.forEach((f) => {
11443
11429
  f.properties.category === e && (f.properties.disabled = t.disabled);
11444
- }), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(W.featureCollection(o)), (m = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || m.setData(W.featureCollection(o)), this.handleDateChange();
11430
+ }), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(W.featureCollection(o)), (c = (m = this.map) == null ? void 0 : m.getSource(this.clusterSource)) == null || c.setData(W.featureCollection(o)), this.handleDateChange();
11445
11431
  },
11446
11432
  handleStrikeProbability(t) {
11447
11433
  this.$emit("tropicalProbability", t);
@@ -11467,8 +11453,8 @@ const sc = {
11467
11453
  se: i.r10se >= 0 ? i.r10se : void 0,
11468
11454
  sw: i.r10sw >= 0 ? i.r10sw : void 0,
11469
11455
  nw: i.r10nw >= 0 ? i.r10nw : void 0
11470
- }, c = this.handleComputeArc(o.geometry.coordinates, l, { ...o.properties, level: 10 });
11471
- e.push(c);
11456
+ }, m = this.handleComputeArc(o.geometry.coordinates, l, { ...o.properties, level: 10 });
11457
+ e.push(m);
11472
11458
  }
11473
11459
  return e;
11474
11460
  },
@@ -11476,23 +11462,23 @@ const sc = {
11476
11462
  var r;
11477
11463
  const i = [];
11478
11464
  for (const l in e) {
11479
- const c = e[l] ?? 0;
11480
- let m;
11465
+ const m = e[l] ?? 0;
11466
+ let c;
11481
11467
  switch (l) {
11482
11468
  case "ne":
11483
- m = W.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11469
+ c = W.lineArc(t, m, 0, 90, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
11484
11470
  break;
11485
11471
  case "se":
11486
- m = W.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11472
+ c = W.lineArc(t, m, 90, 180, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
11487
11473
  break;
11488
11474
  case "sw":
11489
- m = W.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11475
+ c = W.lineArc(t, m, 180, 270, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
11490
11476
  break;
11491
11477
  case "nw":
11492
- m = W.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11478
+ c = W.lineArc(t, m, 270, 360, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
11493
11479
  break;
11494
11480
  }
11495
- i.push(...(r = m == null ? void 0 : m.geometry) == null ? void 0 : r.coordinates);
11481
+ i.push(...(r = c == null ? void 0 : c.geometry) == null ? void 0 : r.coordinates);
11496
11482
  }
11497
11483
  const a = W.lineString(i);
11498
11484
  return W.lineToPolygon(a, { properties: o });
@@ -11501,7 +11487,7 @@ const sc = {
11501
11487
  this.$emit("tropicalNotification", t);
11502
11488
  },
11503
11489
  handleHover(t) {
11504
- var a, r, l, c, m;
11490
+ var a, r, l, m, c;
11505
11491
  this.map.getCanvas().style.cursor = "pointer";
11506
11492
  const o = this.map.queryRenderedFeatures(
11507
11493
  t.point,
@@ -11522,7 +11508,7 @@ const sc = {
11522
11508
  return f.geometry.type === "LineString" && f.properties.type === "forecast" && f.properties.name === ((d = o == null ? void 0 : o.properties) == null ? void 0 : d.name);
11523
11509
  }
11524
11510
  );
11525
- this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (m = this.hoverMarker) == null || m.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
11511
+ this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (m = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : m.date, (c = this.hoverMarker) == null || c.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
11526
11512
  const f = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
11527
11513
  this.hoverMarker = new ze.Marker(f).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
11528
11514
  }));
@@ -11571,18 +11557,18 @@ const sc = {
11571
11557
  class: "d-flex justify-start align-center"
11572
11558
  }, Qc = { class: "text-label pr-1" }, $c = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
11573
11559
  function tm(t, e, o, i, a, r) {
11574
- const l = w("VBtn"), c = w("VTooltip"), m = w("v-icon"), f = w("VCardText"), d = w("VDivider"), b = w("VCardActions"), v = w("VCard"), z = w("v-card-title"), C = w("v-divider");
11560
+ const l = v("VBtn"), m = v("VTooltip"), c = v("v-icon"), f = v("VCardText"), d = v("VDivider"), b = v("VCardActions"), w = v("VCard"), k = v("v-card-title"), y = v("v-divider");
11575
11561
  return g(), S("div", lc, [
11576
11562
  s("div", {
11577
11563
  class: "menu-bar-box transition pa-1",
11578
11564
  style: ee({ top: o.top + o.paddingTop + 86 + "px", right: a.right + "px" })
11579
11565
  }, [
11580
- p(c, {
11566
+ p(m, {
11581
11567
  text: t.$t("tropical.tropicals"),
11582
11568
  location: "left"
11583
11569
  }, {
11584
- activator: u(({ props: L }) => [
11585
- p(l, j(L, {
11570
+ activator: u(({ props: _ }) => [
11571
+ p(l, j(_, {
11586
11572
  "min-width": "32",
11587
11573
  width: "32",
11588
11574
  height: "32",
@@ -11602,20 +11588,20 @@ function tm(t, e, o, i, a, r) {
11602
11588
  a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (g(), S("div", {
11603
11589
  key: 0,
11604
11590
  id: "idm-tropical-gl4-info",
11605
- class: ye(["idm-tropical-gl4-info", o.simple ? "page" : "dialog"])
11591
+ class: ge(["idm-tropical-gl4-info", o.simple ? "page" : "dialog"])
11606
11592
  }, [
11607
- p(v, {
11608
- class: ye(["w-100", o.simple ? "rounded-t-4 bg-none" : ""]),
11593
+ p(w, {
11594
+ class: ge(["w-100", o.simple ? "rounded-t-4 bg-none" : ""]),
11609
11595
  elevation: o.simple ? 0 : 16
11610
11596
  }, {
11611
11597
  default: u(() => [
11612
11598
  p(f, null, {
11613
11599
  default: u(() => {
11614
- var L, y, B, D, P, k, x, T, _, I, F, G;
11600
+ var _, T, B, D, x, L, P, C, z, I, F, G;
11615
11601
  return [
11616
11602
  s("div", nc, [
11617
- s("span", cc, n(o.locale === "en" ? (L = a.activeTropicals) == null ? void 0 : L.Name : ((y = a.activeTropicals) == null ? void 0 : y.nameCn) || ((B = a.activeTropicals) == null ? void 0 : B.Name) || "-"), 1),
11618
- (P = (D = a.activeTropicals) == null ? void 0 : D.history) != null && P.level ? (g(), S("span", mc, ", " + n((x = (k = a.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : x.level), 1)) : R("", !0)
11603
+ s("span", cc, n(o.locale === "en" ? (_ = a.activeTropicals) == null ? void 0 : _.Name : ((T = a.activeTropicals) == null ? void 0 : T.nameCn) || ((B = a.activeTropicals) == null ? void 0 : B.Name) || "-"), 1),
11604
+ (x = (D = a.activeTropicals) == null ? void 0 : D.history) != null && x.level ? (g(), S("span", mc, ", " + n((P = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : P.level), 1)) : R("", !0)
11619
11605
  ]),
11620
11606
  p(l, {
11621
11607
  icon: "",
@@ -11625,7 +11611,7 @@ function tm(t, e, o, i, a, r) {
11625
11611
  onClick: Se(r.handleCloseInfoMarker, ["stop"])
11626
11612
  }, {
11627
11613
  default: u(() => [
11628
- p(m, {
11614
+ p(c, {
11629
11615
  icon: "mdi-close",
11630
11616
  class: "text-label text-h4"
11631
11617
  })
@@ -11634,7 +11620,7 @@ function tm(t, e, o, i, a, r) {
11634
11620
  }, 8, ["onClick"]),
11635
11621
  s("div", hc, [
11636
11622
  s("span", dc, n(t.$t("actions.lastUpdate")) + ": ", 1),
11637
- s("span", null, n(r.computeTime(((_ = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : _.updated) || ((G = (F = (I = a.activeTropicals) == null ? void 0 : I.forecasts) == null ? void 0 : F.filter((Y) => !Y.disabled)[0]) == null ? void 0 : G.date), o.timeZone)), 1)
11623
+ s("span", null, n(r.computeTime(((z = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : z.updated) || ((G = (F = (I = a.activeTropicals) == null ? void 0 : I.forecasts) == null ? void 0 : F.filter((Y) => !Y.disabled)[0]) == null ? void 0 : G.date), o.timeZone)), 1)
11638
11624
  ])
11639
11625
  ];
11640
11626
  }),
@@ -11643,39 +11629,39 @@ function tm(t, e, o, i, a, r) {
11643
11629
  p(d),
11644
11630
  p(f, { class: "text-body-1 py-3" }, {
11645
11631
  default: u(() => {
11646
- var L, y, B, D, P, k, x, T, _;
11632
+ var _, T, B, D, x, L, P, C, z;
11647
11633
  return [
11648
11634
  s("div", pc, [
11649
11635
  s("div", uc, [
11650
11636
  s("label", gc, n(t.$t("weather.windSpeed")) + " : ", 1),
11651
- s("span", null, n(((y = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : y.kts) || "-") + " kts", 1),
11637
+ s("span", null, n(((T = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : T.kts) || "-") + " kts", 1),
11652
11638
  s("span", null, ", BF " + n(r.computeBF(((D = (B = a.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : D.kts) || "-")), 1)
11653
11639
  ]),
11654
11640
  s("div", fc, [
11655
11641
  s("label", yc, n(t.$t("weather.pressure")) + " : ", 1),
11656
- s("span", null, n(((k = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : k.pressure) || "-") + " hPa", 1)
11642
+ s("span", null, n(((L = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : L.pressure) || "-") + " hPa", 1)
11657
11643
  ])
11658
11644
  ]),
11659
11645
  s("div", bc, [
11660
11646
  s("div", wc, [
11661
11647
  s("label", xc, n(t.$t("tropical.moveSpeed")) + " : ", 1),
11662
- s("span", null, n(((x = r.computeMovement(a.activeTropicals)) == null ? void 0 : x.kts) || "-") + " kts", 1)
11648
+ s("span", null, n(((P = r.computeMovement(a.activeTropicals)) == null ? void 0 : P.kts) || "-") + " kts", 1)
11663
11649
  ]),
11664
11650
  s("div", vc, [
11665
11651
  s("label", _c, n(t.$t("tropical.moveDir")) + " : ", 1),
11666
- s("span", null, n(((T = r.computeMovement(a.activeTropicals)) == null ? void 0 : T.deg) || "-") + "°", 1)
11652
+ s("span", null, n(((C = r.computeMovement(a.activeTropicals)) == null ? void 0 : C.deg) || "-") + "°", 1)
11667
11653
  ])
11668
11654
  ]),
11669
11655
  s("div", kc, [
11670
11656
  s("label", zc, n(t.$t("weather.forecastModels")) + " : ", 1),
11671
11657
  s("div", Lc, [
11672
- (g(!0), S(xe, null, ke((_ = a.activeTropicals) == null ? void 0 : _.forecasts, (I, F) => (g(), A(l, {
11658
+ (g(!0), S(xe, null, ke((z = a.activeTropicals) == null ? void 0 : z.forecasts, (I, F) => (g(), A(l, {
11673
11659
  key: F,
11674
11660
  density: "compact",
11675
11661
  variant: I.disabled ? "text" : "flat",
11676
11662
  color: I.disabled ? "" : "primary",
11677
11663
  "min-width": 30,
11678
- class: ye(["model text-none text-body-1 px-1", I.disabled ? "btn-border-1 btn-bg-1" : ""]),
11664
+ class: ge(["model text-none text-body-1 px-1", I.disabled ? "btn-border-1 btn-bg-1" : ""]),
11679
11665
  onClick: Se((G) => r.handleForecastToggle(I), ["stop"])
11680
11666
  }, {
11681
11667
  default: u(() => [
@@ -11701,7 +11687,7 @@ function tm(t, e, o, i, a, r) {
11701
11687
  variant: "text",
11702
11688
  color: a.showLegend ? "primary" : "",
11703
11689
  class: "text-none text-body-1",
11704
- onClick: e[0] || (e[0] = Se((L) => a.showLegend = !a.showLegend, ["stop"]))
11690
+ onClick: e[0] || (e[0] = Se((_) => a.showLegend = !a.showLegend, ["stop"]))
11705
11691
  }, {
11706
11692
  prepend: u(() => e[4] || (e[4] = [
11707
11693
  s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
@@ -11717,7 +11703,7 @@ function tm(t, e, o, i, a, r) {
11717
11703
  variant: "text",
11718
11704
  density: "compact",
11719
11705
  class: "text-none text-body-1",
11720
- onClick: e[1] || (e[1] = Se((L) => r.handleNotification(a.activeTropicals), ["stop"]))
11706
+ onClick: e[1] || (e[1] = Se((_) => r.handleNotification(a.activeTropicals), ["stop"]))
11721
11707
  }, {
11722
11708
  default: u(() => [
11723
11709
  K(n(t.$t("actions.notify")), 1)
@@ -11729,7 +11715,7 @@ function tm(t, e, o, i, a, r) {
11729
11715
  density: "compact",
11730
11716
  "append-icon": "mdi-chevron-right",
11731
11717
  class: "text-none text-body-1",
11732
- onClick: e[2] || (e[2] = Se((L) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
11718
+ onClick: e[2] || (e[2] = Se((_) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
11733
11719
  }, {
11734
11720
  default: u(() => [
11735
11721
  K(n(t.$t("actions.viewReport")), 1)
@@ -11746,7 +11732,7 @@ function tm(t, e, o, i, a, r) {
11746
11732
  o.simple ? (g(), S("div", Tc, e[5] || (e[5] = [
11747
11733
  ei('<div class="pa-1"><div class="legend d-flex justify-start align-center py-2"><div class="icon td"></div><div class="label">TD</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon sty"></div><div class="label">STY</div></div></div><div class="pa-1"><div class="legend d-flex justify-start align-center py-2"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="pa-1"><div class="w-100 legend d-flex justify-start align-center py-2 ga-2"><div class="icon history"></div><div class="label">History</div><div class="icon forecast"></div><div class="label">Forecast</div></div><div class="w-100 legend d-flex justify-start align-center py-2"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="w-100 legend d-flex justify-start align-center py-2"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3)
11748
11734
  ]))) : (g(), S("div", Cc, [
11749
- Ye(p(v, { elevation: "16" }, {
11735
+ Ye(p(w, { elevation: "16" }, {
11750
11736
  default: u(() => [
11751
11737
  p(f, null, {
11752
11738
  default: u(() => [
@@ -11808,47 +11794,47 @@ function tm(t, e, o, i, a, r) {
11808
11794
  ])
11809
11795
  ]))
11810
11796
  ], 2)) : R("", !0),
11811
- Ye(p(v, {
11797
+ Ye(p(w, {
11812
11798
  id: "tropicalHoverMarkerInfo",
11813
11799
  elevation: "16",
11814
11800
  "max-width": "280"
11815
11801
  }, {
11816
11802
  default: u(() => [
11817
- p(z, null, {
11803
+ p(k, null, {
11818
11804
  default: u(() => {
11819
- var L, y, B, D;
11805
+ var _, T, B, D;
11820
11806
  return [
11821
11807
  s("div", Dc, [
11822
- s("span", Ic, n(o.locale === "en" ? (L = a.hoverPoint) == null ? void 0 : L.Name : ((y = a.hoverPoint) == null ? void 0 : y.nameCn) || ((B = a.hoverPoint) == null ? void 0 : B.Name)), 1),
11808
+ s("span", Ic, n(o.locale === "en" ? (_ = a.hoverPoint) == null ? void 0 : _.Name : ((T = a.hoverPoint) == null ? void 0 : T.nameCn) || ((B = a.hoverPoint) == null ? void 0 : B.Name)), 1),
11823
11809
  s("span", Rc, "[ " + n((D = a.hoverPoint) == null ? void 0 : D.level) + " ]", 1)
11824
11810
  ])
11825
11811
  ];
11826
11812
  }),
11827
11813
  _: 1
11828
11814
  }),
11829
- p(C),
11815
+ p(y),
11830
11816
  p(f, { class: "text-body-1" }, {
11831
11817
  default: u(() => {
11832
- var L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se;
11818
+ var _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se;
11833
11819
  return [
11834
11820
  s("div", Ac, [
11835
- ((L = a.hoverPoint) == null ? void 0 : L.type) === "forecast" ? (g(), S("div", Oc, [
11821
+ ((_ = a.hoverPoint) == null ? void 0 : _.type) === "forecast" ? (g(), S("div", Oc, [
11836
11822
  s("label", Bc, n(t.$t("tropical.updated")) + " : ", 1),
11837
- s("span", null, n(r.computeTzTime((y = a.hoverPoint) == null ? void 0 : y.update, o.timeZone)), 1)
11823
+ s("span", null, n(r.computeTzTime((T = a.hoverPoint) == null ? void 0 : T.update, o.timeZone)), 1)
11838
11824
  ])) : R("", !0),
11839
11825
  ((B = a.hoverPoint) == null ? void 0 : B.type) === "forecast" ? (g(), S("div", jc, [
11840
11826
  s("label", Ec, n(t.$t("tropical.forecast")) + " : ", 1),
11841
11827
  s("span", null, n(r.computeTzTime((D = a.hoverPoint) == null ? void 0 : D.date, o.timeZone)), 1)
11842
11828
  ])) : R("", !0),
11843
- ((P = a.hoverPoint) == null ? void 0 : P.type) === "history" ? (g(), S("div", Nc, [
11829
+ ((x = a.hoverPoint) == null ? void 0 : x.type) === "history" ? (g(), S("div", Nc, [
11844
11830
  s("label", Fc, n(t.$t("tropical.forecast")) + " : ", 1),
11845
- s("span", null, n(r.computeTzTime((k = a.hoverPoint) == null ? void 0 : k.date, o.timeZone)), 1)
11831
+ s("span", null, n(r.computeTzTime((L = a.hoverPoint) == null ? void 0 : L.date, o.timeZone)), 1)
11846
11832
  ])) : R("", !0),
11847
- ((x = a.hoverPoint) == null ? void 0 : x.type) === "forecast" ? (g(), S("div", Hc, [
11833
+ ((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (g(), S("div", Hc, [
11848
11834
  s("label", Gc, n(t.$t("tropical.model")) + " : ", 1),
11849
- s("span", null, n(((T = a.hoverPoint) == null ? void 0 : T.model) ?? "-"), 1)
11835
+ s("span", null, n(((C = a.hoverPoint) == null ? void 0 : C.model) ?? "-"), 1)
11850
11836
  ])) : R("", !0),
11851
- ((_ = a.hoverPoint) == null ? void 0 : _.type) === "forecast" ? (g(), S("div", Wc, [
11837
+ ((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (g(), S("div", Wc, [
11852
11838
  s("label", Uc, n(t.$t("weather.wind")) + " : ", 1),
11853
11839
  s("span", null, n(((F = JSON.parse((I = a.hoverPoint) == null ? void 0 : I.wind)) == null ? void 0 : F.kts) ?? "-") + " kts", 1)
11854
11840
  ])) : R("", !0),
@@ -12039,11 +12025,11 @@ const om = {
12039
12025
  this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${M.tz(M().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
12040
12026
  },
12041
12027
  handleResetMinMax() {
12042
- var a, r, l, c, m;
12028
+ var a, r, l, m, c;
12043
12029
  if (!this.dayAbout.h || !this.dayAbout.f)
12044
12030
  return;
12045
12031
  const t = M().utc().date(), e = Math.ceil(M().utc().hour() / 3) * 3, o = ((a = M()) == null ? void 0 : a.utc().set({ date: t, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = M.tz(o, this.timeZoneName).clone();
12046
- this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = M()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((m = (c = M()) == null ? void 0 : c.utc()) == null ? void 0 : m.set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
12032
+ this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = M()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((c = (m = M()) == null ? void 0 : m.utc()) == null ? void 0 : c.set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
12047
12033
  },
12048
12034
  handleOpenDatePicker() {
12049
12035
  this.disabled || (this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth());
@@ -12083,16 +12069,16 @@ const om = {
12083
12069
  style: { height: "56px" }
12084
12070
  };
12085
12071
  function nm(t, e, o, i, a, r) {
12086
- const l = w("VDatePicker"), c = w("VDivider"), m = w("VListItemTitle"), f = w("VListItem"), d = w("VList"), b = w("VCardText"), v = w("VBtn"), z = w("VCardActions"), C = w("VCard");
12072
+ const l = v("VDatePicker"), m = v("VDivider"), c = v("VListItemTitle"), f = v("VListItem"), d = v("VList"), b = v("VCardText"), w = v("VBtn"), k = v("VCardActions"), y = v("VCard");
12087
12073
  return g(), S("div", am, [
12088
12074
  s("div", {
12089
12075
  style: ee({ height: o.height + "px", width: o.width + "px" }),
12090
- class: ye([o.bgClass, "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer"]),
12091
- onClick: e[0] || (e[0] = (...L) => r.handleOpenDatePicker && r.handleOpenDatePicker(...L))
12076
+ class: ge([o.bgClass, "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer"]),
12077
+ onClick: e[0] || (e[0] = (..._) => r.handleOpenDatePicker && r.handleOpenDatePicker(..._))
12092
12078
  }, [
12093
12079
  s("span", im, n(a.currentDateTime) + " | UTC " + n(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
12094
12080
  ], 6),
12095
- a.showDatePicker ? (g(), A(C, {
12081
+ a.showDatePicker ? (g(), A(y, {
12096
12082
  key: 0,
12097
12083
  class: "card-box d-flex flex-column border",
12098
12084
  style: ee(r.getStyle)
@@ -12103,7 +12089,7 @@ function nm(t, e, o, i, a, r) {
12103
12089
  s("div", rm, [
12104
12090
  p(l, {
12105
12091
  modelValue: a.currentDate,
12106
- "onUpdate:modelValue": e[1] || (e[1] = (L) => a.currentDate = L),
12092
+ "onUpdate:modelValue": e[1] || (e[1] = (_) => a.currentDate = _),
12107
12093
  min: a.minDate,
12108
12094
  max: a.maxDate,
12109
12095
  "mode-icon": () => r.currentYear,
@@ -12115,7 +12101,7 @@ function nm(t, e, o, i, a, r) {
12115
12101
  "onUpdate:month": r.handleUpdateMonth
12116
12102
  }, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
12117
12103
  ]),
12118
- p(c, {
12104
+ p(m, {
12119
12105
  class: "h-100",
12120
12106
  vertical: ""
12121
12107
  }),
@@ -12123,22 +12109,22 @@ function nm(t, e, o, i, a, r) {
12123
12109
  s("div", lm, n(a.currentTime), 1),
12124
12110
  p(d, { class: "pa-0 flex-1-1-0 scroll" }, {
12125
12111
  default: u(() => [
12126
- (g(!0), S(xe, null, ke(r.hourOptions, (L, y) => (g(), A(f, {
12127
- key: y,
12128
- value: L,
12112
+ (g(!0), S(xe, null, ke(r.hourOptions, (_, T) => (g(), A(f, {
12113
+ key: T,
12114
+ value: _,
12129
12115
  color: "primary",
12130
- active: a.currentTime === L,
12116
+ active: a.currentTime === _,
12131
12117
  rounded: "",
12132
12118
  height: "26",
12133
12119
  "min-height": "26"
12134
12120
  }, {
12135
12121
  default: u(() => [
12136
- p(m, {
12122
+ p(c, {
12137
12123
  class: "text-body-2 font-weight-600 text-center",
12138
- onClick: (B) => a.currentTime = L
12124
+ onClick: (B) => a.currentTime = _
12139
12125
  }, {
12140
12126
  default: u(() => [
12141
- K(n(L), 1)
12127
+ K(n(_), 1)
12142
12128
  ]),
12143
12129
  _: 2
12144
12130
  }, 1032, ["onClick"])
@@ -12152,13 +12138,13 @@ function nm(t, e, o, i, a, r) {
12152
12138
  ]),
12153
12139
  _: 1
12154
12140
  }),
12155
- p(c),
12156
- p(z, {
12141
+ p(m),
12142
+ p(k, {
12157
12143
  class: "justify-end pa-0 pr-4",
12158
12144
  style: { height: "50px" }
12159
12145
  }, {
12160
12146
  default: u(() => [
12161
- p(v, {
12147
+ p(w, {
12162
12148
  size: "small",
12163
12149
  variant: "tonal",
12164
12150
  class: "text-none text-body-2",
@@ -12169,7 +12155,7 @@ function nm(t, e, o, i, a, r) {
12169
12155
  ]),
12170
12156
  _: 1
12171
12157
  }, 8, ["onClick"]),
12172
- p(v, {
12158
+ p(w, {
12173
12159
  size: "small",
12174
12160
  variant: "flat",
12175
12161
  color: "primary",
@@ -12318,7 +12304,7 @@ const cm = {
12318
12304
  this.handleResetDateRange(), this.handleResetMinMax();
12319
12305
  },
12320
12306
  handleResetDateRange() {
12321
- var r, l, c;
12307
+ var r, l, m;
12322
12308
  let t, e;
12323
12309
  if ((r = this.defaultRange) != null && r.length ? (t = this.defaultRange[0], e = (l = M(M(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : l.diff(M(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays, !e) {
12324
12310
  this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
@@ -12326,13 +12312,13 @@ const cm = {
12326
12312
  }
12327
12313
  const o = M.tz(t, this.timeZoneName).clone(), i = [];
12328
12314
  if (e < 0)
12329
- for (let m = e + 1; m <= 0; m++)
12330
- i.push(o.clone().add(m, "days").format());
12315
+ for (let c = e + 1; c <= 0; c++)
12316
+ i.push(o.clone().add(c, "days").format());
12331
12317
  else
12332
- for (let m = 0; m < e; m++)
12333
- i.push(o.clone().add(m, "days").format());
12318
+ for (let c = 0; c < e; c++)
12319
+ i.push(o.clone().add(c, "days").format());
12334
12320
  this.dateRange = i;
12335
- const a = [this.dateRange[0], this.dateRange[((c = this.dateRange) == null ? void 0 : c.length) - 1]];
12321
+ const a = [this.dateRange[0], this.dateRange[((m = this.dateRange) == null ? void 0 : m.length) - 1]];
12336
12322
  this.dateRangeStr = `${M.tz(a[0], this.timeZoneName).format("yyyy-MM-DD")} ~ ${M.tz(a[1], this.timeZoneName).format("yyyy-MM-DD")}`, this.$emit(
12337
12323
  "dateRange",
12338
12324
  [
@@ -12379,12 +12365,12 @@ const cm = {
12379
12365
  ref: "idmGl4DatePicker"
12380
12366
  }, hm = { class: "flex-1-1-0" }, dm = { class: "pa-0" };
12381
12367
  function pm(t, e, o, i, a, r) {
12382
- const l = w("VIcon"), c = w("VDatePicker"), m = w("VCardText"), f = w("VDivider"), d = w("VBtn"), b = w("VCardActions"), v = w("VCard");
12368
+ const l = v("VIcon"), m = v("VDatePicker"), c = v("VCardText"), f = v("VDivider"), d = v("VBtn"), b = v("VCardActions"), w = v("VCard");
12383
12369
  return g(), S("div", mm, [
12384
12370
  s("div", {
12385
12371
  style: ee({ height: o.height + "px", width: o.width + "px" }),
12386
12372
  class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
12387
- onClick: e[0] || (e[0] = (...z) => r.handleOpenDatePicker && r.handleOpenDatePicker(...z))
12373
+ onClick: e[0] || (e[0] = (...k) => r.handleOpenDatePicker && r.handleOpenDatePicker(...k))
12388
12374
  }, [
12389
12375
  s("span", hm, n(a.dateRangeStr), 1),
12390
12376
  a.dateRangeStr ? (g(), A(l, {
@@ -12394,18 +12380,18 @@ function pm(t, e, o, i, a, r) {
12394
12380
  onClick: Se(r.handleClearDate, ["stop"])
12395
12381
  }, null, 8, ["onClick"])) : R("", !0)
12396
12382
  ], 4),
12397
- a.showDatePicker ? (g(), A(v, {
12383
+ a.showDatePicker ? (g(), A(w, {
12398
12384
  key: 0,
12399
12385
  class: "card-box d-flex flex-column border",
12400
12386
  style: ee(r.getStyle)
12401
12387
  }, {
12402
12388
  default: u(() => [
12403
- p(m, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
12389
+ p(c, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
12404
12390
  default: u(() => [
12405
12391
  s("div", dm, [
12406
- p(c, {
12392
+ p(m, {
12407
12393
  modelValue: a.dateRange,
12408
- "onUpdate:modelValue": e[1] || (e[1] = (z) => a.dateRange = z),
12394
+ "onUpdate:modelValue": e[1] || (e[1] = (k) => a.dateRange = k),
12409
12395
  min: a.minDate,
12410
12396
  max: a.maxDate,
12411
12397
  "mode-icon": () => r.currentYear,
@@ -13496,10 +13482,10 @@ const um = {
13496
13482
  }), this.loading = !1;
13497
13483
  },
13498
13484
  initTableData(t) {
13499
- var o, i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be;
13485
+ var o, i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be;
13500
13486
  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;
13501
13487
  const e = ((l = To.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
13502
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((f = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((v = e == null ? void 0 : e.weather) == null ? void 0 : v.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((C = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : C.kts, 1) ?? "-", this.currentHourData.windDir = ((y = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : y.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((D = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : D.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((k = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((T = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((G = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : G.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Z = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = ($ = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((le = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((se = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : se.height, 1) ?? "-", this.currentHourData.swellDir = (me = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (ue = e == null ? void 0 : e.wave) == null ? void 0 : ue.swell) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.currentDir = (O = e == null ? void 0 : e.current) == null ? void 0 : O.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((te = e == null ? void 0 : e.current) == null ? void 0 : te.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (be = e == null ? void 0 : e.weather) == null ? void 0 : be.url;
13488
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((m = e == null ? void 0 : e.weather) == null ? void 0 : m.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((f = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((D = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : D.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (x = e == null ? void 0 : e.weather) == null ? void 0 : x.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (P = e == null ? void 0 : e.wave) == null ? void 0 : P.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((G = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : G.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Z = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = ($ = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((le = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((se = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : se.height, 1) ?? "-", this.currentHourData.swellDir = (me = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (ue = e == null ? void 0 : e.wave) == null ? void 0 : ue.swell) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.currentDir = (O = e == null ? void 0 : e.current) == null ? void 0 : O.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((te = e == null ? void 0 : e.current) == null ? void 0 : te.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (be = e == null ? void 0 : e.weather) == null ? void 0 : be.url;
13503
13489
  },
13504
13490
  handleBind() {
13505
13491
  var t, e;
@@ -13618,18 +13604,18 @@ const um = {
13618
13604
  "aria-hidden": "true"
13619
13605
  }, bh = ["xlink:href"];
13620
13606
  function wh(t, e, o, i, a, r) {
13621
- const l = w("VBtn"), c = w("VTooltip"), m = w("VCardTitle"), f = w("VDivider"), d = w("VTextField"), b = w("VCol"), v = w("VRow"), z = w("DateTimePicker"), C = w("VBtnToggle"), L = w("VCardText"), y = w("VCardActions"), B = w("VForm"), D = w("VCard"), P = w("VIcon");
13607
+ const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VDivider"), d = v("VTextField"), b = v("VCol"), w = v("VRow"), k = v("DateTimePicker"), y = v("VBtnToggle"), _ = v("VCardText"), T = v("VCardActions"), B = v("VForm"), D = v("VCard");
13622
13608
  return g(), S("div", gm, [
13623
13609
  s("div", {
13624
13610
  class: "menu-bar-box transition pa-1",
13625
13611
  style: ee({ top: o.top + o.paddingTop + 126 + "px", right: a.right + "px" })
13626
13612
  }, [
13627
- p(c, {
13613
+ p(m, {
13628
13614
  text: t.$t("spot.spotsMeteo"),
13629
13615
  location: "left"
13630
13616
  }, {
13631
- activator: u(({ props: k }) => [
13632
- p(l, j(k, {
13617
+ activator: u(({ props: x }) => [
13618
+ p(l, j(x, {
13633
13619
  "min-width": "32",
13634
13620
  width: "32",
13635
13621
  height: "32",
@@ -13652,7 +13638,7 @@ function wh(t, e, o, i, a, r) {
13652
13638
  style: ee({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
13653
13639
  }, {
13654
13640
  default: u(() => [
13655
- p(m, { class: "d-flex justify-space-between align-center" }, {
13641
+ p(c, { class: "d-flex justify-space-between align-center" }, {
13656
13642
  default: u(() => [
13657
13643
  s("div", fm, [
13658
13644
  s("div", ym, n(t.$t("spot.spotWeather")), 1)
@@ -13681,7 +13667,7 @@ function wh(t, e, o, i, a, r) {
13681
13667
  onSubmit: Se(r.submitForm, ["prevent"])
13682
13668
  }, {
13683
13669
  default: u(() => [
13684
- p(L, { class: "text-body-1 py-1" }, {
13670
+ p(_, { class: "text-body-1 py-1" }, {
13685
13671
  default: u(() => [
13686
13672
  s("div", bm, [
13687
13673
  (g(), S("svg", wm, [
@@ -13691,7 +13677,7 @@ function wh(t, e, o, i, a, r) {
13691
13677
  ])),
13692
13678
  s("div", null, n(t.$t("spot.lng")), 1)
13693
13679
  ]),
13694
- p(v, { class: "ma-0" }, {
13680
+ p(w, { class: "ma-0" }, {
13695
13681
  default: u(() => [
13696
13682
  p(b, {
13697
13683
  cols: "4",
@@ -13700,7 +13686,7 @@ function wh(t, e, o, i, a, r) {
13700
13686
  default: u(() => [
13701
13687
  p(d, {
13702
13688
  modelValue: a.form.lngDegree,
13703
- "onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
13689
+ "onUpdate:modelValue": e[0] || (e[0] = (x) => a.form.lngDegree = x),
13704
13690
  rules: a.formRules.lngDegree,
13705
13691
  density: "compact",
13706
13692
  variant: "outlined",
@@ -13720,7 +13706,7 @@ function wh(t, e, o, i, a, r) {
13720
13706
  default: u(() => [
13721
13707
  p(d, {
13722
13708
  modelValue: a.form.lngMinute,
13723
- "onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
13709
+ "onUpdate:modelValue": e[1] || (e[1] = (x) => a.form.lngMinute = x),
13724
13710
  rules: a.formRules.lngMinute,
13725
13711
  label: "",
13726
13712
  density: "compact",
@@ -13747,7 +13733,7 @@ function wh(t, e, o, i, a, r) {
13747
13733
  height: "32",
13748
13734
  class: "text-body-1 btn-bg-1",
13749
13735
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
13750
- onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
13736
+ onClick: e[2] || (e[2] = (x) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
13751
13737
  }, {
13752
13738
  default: u(() => [
13753
13739
  K(n(a.form.lngDirection), 1)
@@ -13768,7 +13754,7 @@ function wh(t, e, o, i, a, r) {
13768
13754
  ])),
13769
13755
  s("div", null, n(t.$t("spot.lat")), 1)
13770
13756
  ]),
13771
- p(v, { class: "ma-0" }, {
13757
+ p(w, { class: "ma-0" }, {
13772
13758
  default: u(() => [
13773
13759
  p(b, {
13774
13760
  cols: "4",
@@ -13777,7 +13763,7 @@ function wh(t, e, o, i, a, r) {
13777
13763
  default: u(() => [
13778
13764
  p(d, {
13779
13765
  modelValue: a.form.latDegree,
13780
- "onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
13766
+ "onUpdate:modelValue": e[3] || (e[3] = (x) => a.form.latDegree = x),
13781
13767
  rules: a.formRules.latDegree,
13782
13768
  label: "",
13783
13769
  density: "compact",
@@ -13800,7 +13786,7 @@ function wh(t, e, o, i, a, r) {
13800
13786
  default: u(() => [
13801
13787
  p(d, {
13802
13788
  modelValue: a.form.latMinute,
13803
- "onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
13789
+ "onUpdate:modelValue": e[4] || (e[4] = (x) => a.form.latMinute = x),
13804
13790
  rules: a.formRules.latMinute,
13805
13791
  label: "",
13806
13792
  density: "compact",
@@ -13827,7 +13813,7 @@ function wh(t, e, o, i, a, r) {
13827
13813
  height: "32",
13828
13814
  class: "text-body-1 btn-bg-1",
13829
13815
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
13830
- onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
13816
+ onClick: e[5] || (e[5] = (x) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
13831
13817
  }, {
13832
13818
  default: u(() => [
13833
13819
  K(n(a.form.latDirection), 1)
@@ -13848,18 +13834,18 @@ function wh(t, e, o, i, a, r) {
13848
13834
  ])),
13849
13835
  s("div", null, n(t.$t("spot.dateTime")), 1)
13850
13836
  ]),
13851
- p(v, { class: "ma-0 mb-4" }, {
13837
+ p(w, { class: "ma-0 mb-4" }, {
13852
13838
  default: u(() => [
13853
13839
  p(b, {
13854
13840
  cols: "12",
13855
13841
  class: "pa-0"
13856
13842
  }, {
13857
13843
  default: u(() => [
13858
- p(z, j({
13844
+ p(k, j({
13859
13845
  "date-time": a.form.dateTime,
13860
13846
  "time-zone": o.timeZone
13861
13847
  }, t.$attrs, {
13862
- onDateTime: e[6] || (e[6] = (k) => a.form.dateTime = k)
13848
+ onDateTime: e[6] || (e[6] = (x) => a.form.dateTime = x)
13863
13849
  }), null, 16, ["date-time", "time-zone"])
13864
13850
  ]),
13865
13851
  _: 1
@@ -13875,16 +13861,16 @@ function wh(t, e, o, i, a, r) {
13875
13861
  ])),
13876
13862
  s("div", null, n(t.$t("weather.forecastModel")), 1)
13877
13863
  ]),
13878
- p(v, { class: "ma-0 mb-2" }, {
13864
+ p(w, { class: "ma-0 mb-2" }, {
13879
13865
  default: u(() => [
13880
13866
  p(b, {
13881
13867
  cols: "12",
13882
13868
  class: "pa-0"
13883
13869
  }, {
13884
13870
  default: u(() => [
13885
- p(C, {
13871
+ p(y, {
13886
13872
  modelValue: a.form.forecastModel,
13887
- "onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
13873
+ "onUpdate:modelValue": e[7] || (e[7] = (x) => a.form.forecastModel = x),
13888
13874
  class: "w-100",
13889
13875
  rounded: "",
13890
13876
  height: "30",
@@ -13896,7 +13882,7 @@ function wh(t, e, o, i, a, r) {
13896
13882
  density: "compact",
13897
13883
  height: "30",
13898
13884
  value: "GFS",
13899
- class: ye(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1 btn-bg-1"]),
13885
+ class: ge(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1 btn-bg-1"]),
13900
13886
  color: a.form.forecastModel === "GFS" ? "primary" : "",
13901
13887
  "base-color": ""
13902
13888
  }, {
@@ -13909,7 +13895,7 @@ function wh(t, e, o, i, a, r) {
13909
13895
  p(l, {
13910
13896
  density: "compact",
13911
13897
  height: "30",
13912
- class: ye(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
13898
+ class: ge(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
13913
13899
  color: a.form.forecastModel === "ECMWF" ? "primary" : "",
13914
13900
  "base-color": "",
13915
13901
  value: "ECMWF"
@@ -13933,7 +13919,7 @@ function wh(t, e, o, i, a, r) {
13933
13919
  _: 1
13934
13920
  }),
13935
13921
  p(f),
13936
- p(y, { class: "d-flex justify-end align-center ga-4" }, {
13922
+ p(T, { class: "d-flex justify-end align-center ga-4" }, {
13937
13923
  default: u(() => [
13938
13924
  p(l, {
13939
13925
  size: "small",
@@ -13976,7 +13962,7 @@ function wh(t, e, o, i, a, r) {
13976
13962
  style: { width: "490px", "z-index": "9" }
13977
13963
  }, {
13978
13964
  default: u(() => [
13979
- p(m, { class: "d-flex justify-space-between align-center" }, {
13965
+ p(c, { class: "d-flex justify-space-between align-center" }, {
13980
13966
  default: u(() => [
13981
13967
  s("div", Mm, [
13982
13968
  e[16] || (e[16] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
@@ -13999,20 +13985,20 @@ function wh(t, e, o, i, a, r) {
13999
13985
  _: 1
14000
13986
  }),
14001
13987
  p(f),
14002
- p(L, { class: "text-body-1 px-0 py-1" }, {
13988
+ p(_, { class: "text-body-1 px-0 py-1" }, {
14003
13989
  default: u(() => {
14004
- var k, x;
13990
+ var x, L;
14005
13991
  return [
14006
13992
  s("div", Im, [
14007
13993
  s("div", Rm, n(t.$t("time.time")), 1),
14008
- s("div", Am, n(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
13994
+ s("div", Am, n(r.computedTzTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
14009
13995
  ]),
14010
13996
  s("div", Om, [
14011
13997
  e[18] || (e[18] = s("div", {
14012
13998
  style: { width: "100px" },
14013
13999
  class: "pa-0 pr-2 text-right opacity-50"
14014
14000
  }, "LT", -1)),
14015
- s("div", Bm, n(r.computedLocalTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
14001
+ s("div", Bm, n(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
14016
14002
  ]),
14017
14003
  s("div", jm, [
14018
14004
  s("div", Em, n(t.$t("weather.wind")), 1),
@@ -14037,13 +14023,13 @@ function wh(t, e, o, i, a, r) {
14037
14023
  _: 1
14038
14024
  }),
14039
14025
  p(f),
14040
- p(y, { class: "d-flex justify-space-between align-center" }, {
14026
+ p(T, { class: "d-flex justify-space-between align-center" }, {
14041
14027
  default: u(() => {
14042
- var k;
14028
+ var x;
14043
14029
  return [
14044
- (k = o.followList) != null && k.some((x) => {
14045
- var T, _;
14046
- return (x == null ? void 0 : x.id) === a.form.followId || ((T = x == null ? void 0 : x.coordinate) == null ? void 0 : T.lng) === a.form.lng && ((_ = x == null ? void 0 : x.coordinate) == null ? void 0 : _.lat) === a.form.lat;
14030
+ (x = o.followList) != null && x.some((L) => {
14031
+ var P, C;
14032
+ return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((C = L == null ? void 0 : L.coordinate) == null ? void 0 : C.lat) === a.form.lat;
14047
14033
  }) ? (g(), A(l, {
14048
14034
  key: 0,
14049
14035
  class: "text-none text-body-1",
@@ -14054,12 +14040,9 @@ function wh(t, e, o, i, a, r) {
14054
14040
  "prepend-icon": "mdi-star",
14055
14041
  onClick: Se(r.handleCancelFollow, ["stop"])
14056
14042
  }, {
14057
- prepend: u(() => [
14058
- p(P, {
14059
- color: "warning",
14060
- style: { "font-size": "20px", "margin-top": "-2px" }
14061
- })
14062
- ]),
14043
+ prepend: u(() => e[19] || (e[19] = [
14044
+ s("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
14045
+ ])),
14063
14046
  default: u(() => [
14064
14047
  K(" " + n(t.$t("actions.unfollow")), 1)
14065
14048
  ]),
@@ -14071,12 +14054,11 @@ function wh(t, e, o, i, a, r) {
14071
14054
  variant: "text",
14072
14055
  density: "compact",
14073
14056
  height: "32",
14074
- "prepend-icon": "mdi-star-outline",
14075
14057
  onClick: Se(r.handleFollow, ["stop"])
14076
14058
  }, {
14077
- prepend: u(() => [
14078
- p(P, { style: { "font-size": "20px", "margin-top": "-2px" } })
14079
- ]),
14059
+ prepend: u(() => e[20] || (e[20] = [
14060
+ s("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
14061
+ ])),
14080
14062
  default: u(() => [
14081
14063
  K(n(t.$t("actions.follow")) + " ", 1)
14082
14064
  ]),
@@ -14108,19 +14090,19 @@ function wh(t, e, o, i, a, r) {
14108
14090
  style: { width: "100vw", "z-index": "1001" }
14109
14091
  }, {
14110
14092
  default: u(() => [
14111
- p(m, null, {
14093
+ p(c, null, {
14112
14094
  default: u(() => {
14113
- var k;
14095
+ var x;
14114
14096
  return [
14115
14097
  s("div", Qm, [
14116
14098
  s("div", $m, [
14117
- e[19] || (e[19] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
14099
+ e[21] || (e[21] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
14118
14100
  s("div", eh, n(r.computePosition(a.form || a.currentHourData)), 1)
14119
14101
  ]),
14120
14102
  s("div", th, [
14121
- (k = o.followList) != null && k.some((x) => {
14122
- var T, _;
14123
- return (x == null ? void 0 : x.id) === a.form.followId || ((T = x == null ? void 0 : x.coordinate) == null ? void 0 : T.lng) === a.form.lng && ((_ = x == null ? void 0 : x.coordinate) == null ? void 0 : _.lat) === a.form.lat;
14103
+ (x = o.followList) != null && x.some((L) => {
14104
+ var P, C;
14105
+ return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((C = L == null ? void 0 : L.coordinate) == null ? void 0 : C.lat) === a.form.lat;
14124
14106
  }) ? (g(), A(l, {
14125
14107
  key: 0,
14126
14108
  class: "text-none text-body-1 rounded-circle",
@@ -14131,14 +14113,11 @@ function wh(t, e, o, i, a, r) {
14131
14113
  "min-width": "28",
14132
14114
  onClick: Se(r.handleCancelFollow, ["stop"])
14133
14115
  }, {
14134
- default: u(() => [
14135
- p(P, {
14136
- icon: "mdi-star",
14137
- color: "warning",
14138
- size: "20"
14139
- })
14140
- ]),
14141
- _: 1
14116
+ default: u(() => e[22] || (e[22] = [
14117
+ s("i", { class: "iconfont icon-yishoucang text-h4 text-warning" }, null, -1)
14118
+ ])),
14119
+ _: 1,
14120
+ __: [22]
14142
14121
  }, 8, ["onClick"])) : (g(), A(l, {
14143
14122
  key: 1,
14144
14123
  class: "text-none text-body-1 rounded-circle",
@@ -14149,13 +14128,11 @@ function wh(t, e, o, i, a, r) {
14149
14128
  "min-width": "28",
14150
14129
  onClick: Se(r.handleFollow, ["stop"])
14151
14130
  }, {
14152
- default: u(() => [
14153
- p(P, {
14154
- icon: "mdi-star-outline",
14155
- size: "20"
14156
- })
14157
- ]),
14158
- _: 1
14131
+ default: u(() => e[23] || (e[23] = [
14132
+ s("i", { class: "iconfont icon-weishoucang text-h4" }, null, -1)
14133
+ ])),
14134
+ _: 1,
14135
+ __: [23]
14159
14136
  }, 8, ["onClick"])),
14160
14137
  p(l, {
14161
14138
  class: "mr-n2",
@@ -14164,35 +14141,35 @@ function wh(t, e, o, i, a, r) {
14164
14141
  variant: "plain",
14165
14142
  onClick: Se(r.handleCloseMeteo, ["stop"])
14166
14143
  }, {
14167
- default: u(() => e[20] || (e[20] = [
14144
+ default: u(() => e[24] || (e[24] = [
14168
14145
  s("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
14169
14146
  ])),
14170
14147
  _: 1,
14171
- __: [20]
14148
+ __: [24]
14172
14149
  }, 8, ["onClick"])
14173
14150
  ])
14174
14151
  ]),
14175
- e[21] || (e[21] = s("div", { class: "px-5 py-0 text-label text-body-1" }, "Spot Weather", -1))
14152
+ e[25] || (e[25] = s("div", { class: "px-5 py-0 text-label text-body-1" }, "Spot Weather", -1))
14176
14153
  ];
14177
14154
  }),
14178
14155
  _: 1,
14179
- __: [21]
14156
+ __: [25]
14180
14157
  }),
14181
14158
  p(f),
14182
- p(L, { class: "text-body-1 px-0 py-2" }, {
14159
+ p(_, { class: "text-body-1 px-0 py-2" }, {
14183
14160
  default: u(() => {
14184
- var k, x;
14161
+ var x, L;
14185
14162
  return [
14186
14163
  s("div", oh, [
14187
14164
  s("div", ah, n(t.$t("time.time")), 1),
14188
- s("div", ih, n(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
14165
+ s("div", ih, n(r.computedTzTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
14189
14166
  ]),
14190
14167
  s("div", rh, [
14191
- e[22] || (e[22] = s("div", {
14168
+ e[26] || (e[26] = s("div", {
14192
14169
  style: { width: "60px" },
14193
14170
  class: "pa-0 pr-2 text-right opacity-50"
14194
14171
  }, "LT", -1)),
14195
- s("div", sh, n(r.computedLocalTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
14172
+ s("div", sh, n(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
14196
14173
  ]),
14197
14174
  s("div", lh, [
14198
14175
  s("div", nh, [
@@ -14341,41 +14318,41 @@ const vh = {
14341
14318
  }
14342
14319
  },
14343
14320
  handleDrag(t) {
14344
- var o, i, a, r, l, c, m, f, d, b;
14321
+ var o, i, a, r, l, m, c, f, d, b;
14345
14322
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
14346
14323
  if ((e == null ? void 0 : e.split("-").length) === 2) {
14347
- const v = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
14348
- this.pointMarkers[v.id].filter((y) => {
14324
+ const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
14325
+ this.pointMarkers[w.id].filter((T) => {
14349
14326
  var B;
14350
- return ((B = y._element) == null ? void 0 : B.id) === e;
14351
- })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
14352
- let C;
14353
- v.features.forEach((y, B) => {
14354
- if (y.geometry.type === "Point" && y.properties.id === e.split("-")[1]) {
14355
- C = B;
14327
+ return ((B = T._element) == null ? void 0 : B.id) === e;
14328
+ })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (m = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : m.lat]);
14329
+ let y;
14330
+ w.features.forEach((T, B) => {
14331
+ if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
14332
+ y = B;
14356
14333
  return;
14357
14334
  }
14358
14335
  });
14359
- const L = v.features.filter((y) => y.geometry.type === "Point");
14336
+ const _ = w.features.filter((T) => T.geometry.type === "Point");
14360
14337
  this.handleTmpPointUpdate(
14361
- v,
14362
- L[C - 1],
14363
- { lng: (f = (m = t.target) == null ? void 0 : m._lngLat) == null ? void 0 : f.lng, lat: (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat, properties: L[C].properties },
14364
- C === L.length - 1 ? void 0 : L[C + 1]
14338
+ w,
14339
+ _[y - 1],
14340
+ { lng: (f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, lat: (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat, properties: _[y].properties },
14341
+ y === _.length - 1 ? void 0 : _[y + 1]
14365
14342
  );
14366
14343
  }
14367
14344
  },
14368
14345
  handleDragEnd(t) {
14369
- var o, i, a, r, l, c, m, f, d, b;
14346
+ var o, i, a, r, l, m, c, f, d, b;
14370
14347
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
14371
14348
  if ((e == null ? void 0 : e.split("-").length) === 2) {
14372
- const v = this.geojson.filter((L) => L.id === e.split("-")[0])[0];
14373
- this.pointMarkers[v.id].filter((L) => {
14374
- var y;
14375
- return ((y = L._element) == null ? void 0 : y.id) === e;
14376
- })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
14377
- const C = v.features.filter((L) => L.geometry.type === "Point" && L.properties.id === e.split("-")[1])[0];
14378
- C.geometry.coordinates = [(f = (m = t.target) == null ? void 0 : m._lngLat) == null ? void 0 : f.lng, (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat], v.features = v.features.filter((L) => L.geometry.type === "Point"), this.handlePointUpdate(v);
14349
+ const w = this.geojson.filter((_) => _.id === e.split("-")[0])[0];
14350
+ this.pointMarkers[w.id].filter((_) => {
14351
+ var T;
14352
+ return ((T = _._element) == null ? void 0 : T.id) === e;
14353
+ })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (m = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : m.lat]);
14354
+ const y = w.features.filter((_) => _.geometry.type === "Point" && _.properties.id === e.split("-")[1])[0];
14355
+ y.geometry.coordinates = [(f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat], w.features = w.features.filter((_) => _.geometry.type === "Point"), this.handlePointUpdate(w);
14379
14356
  }
14380
14357
  },
14381
14358
  handleContextmenu(t) {
@@ -14383,26 +14360,26 @@ const vh = {
14383
14360
  t.preventDefault(), (o = this.contextmenu) == null || o.remove();
14384
14361
  const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
14385
14362
  if ((e == null ? void 0 : e.split("-").length) === 2) {
14386
- const c = this.geojson.filter((m) => m.id === e.split("-")[0])[0].features.filter((m) => m.geometry.type === "Point");
14387
- if (c.length > 2 && c.filter((f) => f.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
14363
+ const m = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
14364
+ if (m.length > 2 && m.filter((f) => f.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
14388
14365
  const f = document.createElement("div");
14389
14366
  f.className = "idm-gl4-measure-contextmenu-marker", f.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ze.Marker(f).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
14390
14367
  }
14391
14368
  }
14392
14369
  },
14393
14370
  handleClick(t) {
14394
- var o, i, a, r, l, c;
14371
+ var o, i, a, r, l, m;
14395
14372
  (o = this.contextmenu) == null || o.remove();
14396
14373
  const e = t.originalEvent.target.className;
14397
14374
  if (e === "marker-close") {
14398
- const m = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, f = this.geojson.filter((d) => d.id === m)[0];
14399
- f && this.handleClear(f, !0), this.geojson = this.geojson.filter((d) => d.id !== m), !this.toggle && !((r = this.geojson) != null && r.some((d) => d.closed)) && this.handleUnbind();
14375
+ const c = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, f = this.geojson.filter((d) => d.id === c)[0];
14376
+ f && this.handleClear(f, !0), this.geojson = this.geojson.filter((d) => d.id !== c), !this.toggle && !((r = this.geojson) != null && r.some((d) => d.closed)) && this.handleUnbind();
14400
14377
  } else if (e === "del-point") {
14401
- const m = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"), f = this.geojson.filter((d) => d.id === m[0])[0];
14402
- f.features = f.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== m[1]), this.handlePointUpdate(f);
14378
+ const c = (m = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : m.split("-"), f = this.geojson.filter((d) => d.id === c[0])[0];
14379
+ f.features = f.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== c[1]), this.handlePointUpdate(f);
14403
14380
  } else if (e !== "marker-label" && this.toggle) {
14404
- let m = this.geojson.at(-1);
14405
- m || (m = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(m)), m.features = m.features.filter((d) => d.geometry.type === "Point");
14381
+ let c = this.geojson.at(-1);
14382
+ c || (c = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((d) => d.geometry.type === "Point");
14406
14383
  const f = W.feature(
14407
14384
  {
14408
14385
  type: "Point",
@@ -14414,7 +14391,7 @@ const vh = {
14414
14391
  sumLabel: "Start"
14415
14392
  }
14416
14393
  );
14417
- m.features.push(f), this.handlePointUpdate(m);
14394
+ c.features.push(f), this.handlePointUpdate(c);
14418
14395
  }
14419
14396
  },
14420
14397
  handlePointUpdate(t) {
@@ -14423,14 +14400,14 @@ const vh = {
14423
14400
  let o = 0;
14424
14401
  const i = [];
14425
14402
  for (let a = 1; a < e.length; a++) {
14426
- const r = e[a - 1], l = e[a], c = r.properties, m = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, f = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, d = Ve.calculateDistance(m, f, c.mode === "RL", 4), b = Ve.calculateBearing(m, f, c.mode === "RL", 2);
14403
+ const r = e[a - 1], l = e[a], m = r.properties, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, f = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, d = Ve.calculateDistance(c, f, m.mode === "RL", 4), b = Ve.calculateBearing(c, f, m.mode === "RL", 2);
14427
14404
  o = q.roundPrecision(o + d, 4);
14428
- let v;
14429
- c.mode === "RL" ? v = q.convertToMonotonicLng([m, f]) : v = q.convertToMonotonicLng(Ve.interpolateCoordinates(m, f, 200));
14430
- const z = W.lineString(v.map((L) => [L.lng, L.lat]));
14431
- z.properties.dist = d, z.properties.bearing = b, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
14432
- const C = e[a];
14433
- C.properties.totalDist = q.roundPrecision((c.totalDist ? c.totalDist : 0) + d, 4), C.properties.sumLabel = C.properties.totalDist + " nm";
14405
+ let w;
14406
+ m.mode === "RL" ? w = q.convertToMonotonicLng([c, f]) : w = q.convertToMonotonicLng(Ve.interpolateCoordinates(c, f, 200));
14407
+ const k = W.lineString(w.map((_) => [_.lng, _.lat]));
14408
+ k.properties.dist = d, k.properties.bearing = b, k.properties.total = o, k.properties.name = "Line " + this.currentLineIndex, i.push(k);
14409
+ const y = e[a];
14410
+ y.properties.totalDist = q.roundPrecision((m.totalDist ? m.totalDist : 0) + d, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
14434
14411
  }
14435
14412
  e.push(...i), t.total = o;
14436
14413
  }
@@ -14440,20 +14417,20 @@ const vh = {
14440
14417
  const a = W.featureCollection([]);
14441
14418
  let r, l;
14442
14419
  if (e) {
14443
- const m = e.properties, f = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: o.lng, lat: o.lat };
14444
- r = Ve.calculateDistance(f, d, m.mode === "RL", 4), l = Ve.calculateBearing(f, d, m.mode === "RL", 2);
14420
+ const c = e.properties, f = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: o.lng, lat: o.lat };
14421
+ r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
14445
14422
  let b;
14446
- m.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
14447
- const v = W.lineString(b.map((z) => [z.lng, z.lat]));
14448
- v.properties.dist = r, v.properties.bearing = l, a.features.push(v);
14423
+ c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
14424
+ const w = W.lineString(b.map((k) => [k.lng, k.lat]));
14425
+ w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
14449
14426
  }
14450
14427
  if (i) {
14451
- const m = o.properties, f = o, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
14452
- r = Ve.calculateDistance(f, d, m.mode === "RL", 4), l = Ve.calculateBearing(f, d, m.mode === "RL", 2);
14428
+ const c = o.properties, f = o, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
14429
+ r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
14453
14430
  let b;
14454
- m.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
14455
- const v = W.lineString(b.map((z) => [z.lng, z.lat]));
14456
- v.properties.dist = r, v.properties.bearing = l, a.features.push(v);
14431
+ c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
14432
+ const w = W.lineString(b.map((k) => [k.lng, k.lat]));
14433
+ w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
14457
14434
  }
14458
14435
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
14459
14436
  type: "geojson",
@@ -14493,22 +14470,22 @@ const vh = {
14493
14470
  // 'text-halo-blur': 0,
14494
14471
  }
14495
14472
  });
14496
- let c;
14473
+ let m;
14497
14474
  if (i)
14498
- c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
14475
+ m = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
14499
14476
  else {
14500
- const m = q.roundPrecision((t.total ?? 0) + r, 1);
14501
- c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${m}</b>nm, ${this.$t(
14477
+ const c = q.roundPrecision((t.total ?? 0) + r, 1);
14478
+ m = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${c}</b>nm, ${this.$t(
14502
14479
  "measure.bearing"
14503
14480
  )}: <b>${l}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
14504
14481
  "measure.switchTips"
14505
14482
  )}</div><div class="marker-label">${this.$t("measure.clickTips")}</div>`;
14506
14483
  }
14507
14484
  if (this.tipMarker)
14508
- this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([o.lng, o.lat]);
14485
+ this.tipMarker._element.innerHTML = m, this.tipMarker.setLngLat([o.lng, o.lat]);
14509
14486
  else {
14510
- const m = document.createElement("div");
14511
- m.className = "idm-gl4-measure-tip-marker", m.innerHTML = c, this.tipMarker = new ze.Marker(m).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
14487
+ const c = document.createElement("div");
14488
+ c.className = "idm-gl4-measure-tip-marker", c.innerHTML = m, this.tipMarker = new ze.Marker(c).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
14512
14489
  }
14513
14490
  },
14514
14491
  handleMove(t) {
@@ -14580,41 +14557,41 @@ const vh = {
14580
14557
  // 'text-halo-blur': 0,
14581
14558
  }
14582
14559
  });
14583
- const l = t.features.filter((c) => c.geometry.type === "Point");
14584
- for (const c of l) {
14585
- const m = document.createElement("div");
14586
- m.id = `${t.id}-${c.properties.id}`, m.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, m.innerHTML = '<div class="marker-circle"></div>';
14587
- const f = new ze.Marker({ element: m, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
14560
+ const l = t.features.filter((m) => m.geometry.type === "Point");
14561
+ for (const m of l) {
14562
+ const c = document.createElement("div");
14563
+ c.id = `${t.id}-${m.properties.id}`, c.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, c.innerHTML = '<div class="marker-circle"></div>';
14564
+ const f = new ze.Marker({ element: c, draggable: !0, contextmenu: !0 }).setLngLat(m.geometry.coordinates).addTo(this.map);
14588
14565
  f.on("drag", this.handleDrag), f.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(f) : this.pointMarkers[t.id] = [f];
14589
14566
  }
14590
14567
  if (t.closed) {
14591
- const c = l.at(-1), f = t.features.filter((b) => b.geometry.type === "LineString").at(-1), d = document.createElement("div");
14592
- d.className = "idm-gl4-measure-summary-marker", d.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${f.properties.name}</div>`, this.closeMarkers[t.id] = new ze.Marker(d).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
14568
+ const m = l.at(-1), f = t.features.filter((b) => b.geometry.type === "LineString").at(-1), d = document.createElement("div");
14569
+ d.className = "idm-gl4-measure-summary-marker", d.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${f.properties.name}</div>`, this.closeMarkers[t.id] = new ze.Marker(d).setOffset([0, -30]).setLngLat(m.geometry.coordinates).addTo(this.map);
14593
14570
  }
14594
14571
  }
14595
14572
  },
14596
14573
  handleClear(t, e = !0) {
14597
- var l, c, m, f, d, b, v, z, C, L;
14574
+ var l, m, c, f, d, b, w, k, y, _;
14598
14575
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
14599
- (l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (m = this.map) != null && m.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (d = this.map) != null && d.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (v = this.pointMarkers[t.id]) == null || v.forEach((y) => {
14600
- y == null || y.remove();
14601
- }), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((C = this.map) != null && C.getSource(o)) && this.map.removeSource(o), e && ((L = this.map) != null && L.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
14576
+ (l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (m = this.map) != null && m.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (d = this.map) != null && d.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
14577
+ T == null || T.remove();
14578
+ }), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(o)) && this.map.removeSource(o), e && ((_ = this.map) != null && _.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
14602
14579
  }
14603
14580
  }
14604
14581
  }, _h = { class: "idm-gl4-measure" };
14605
14582
  function kh(t, e, o, i, a, r) {
14606
- const l = w("VBtn"), c = w("VTooltip");
14583
+ const l = v("VBtn"), m = v("VTooltip");
14607
14584
  return g(), S("div", _h, [
14608
14585
  s("div", {
14609
14586
  class: "menu-bar-box transition pa-1",
14610
14587
  style: ee({ top: o.top + o.paddingTop + 166 + "px", right: a.right + "px" })
14611
14588
  }, [
14612
- p(c, {
14589
+ p(m, {
14613
14590
  text: t.$t("measure.measure"),
14614
14591
  location: "left"
14615
14592
  }, {
14616
- activator: u(({ props: m }) => [
14617
- p(l, j(m, {
14593
+ activator: u(({ props: c }) => [
14594
+ p(l, j(c, {
14618
14595
  "min-width": "32",
14619
14596
  width: "32",
14620
14597
  height: "32",
@@ -14764,7 +14741,7 @@ const Lh = {
14764
14741
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
14765
14742
  }, Ih = ["onClick"], Rh = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ah = { class: "text-body-1" };
14766
14743
  function Oh(t, e, o, i, a, r) {
14767
- const l = w("DateTimePicker"), c = w("VListItemTitle"), m = w("VListItem"), f = w("VList"), d = w("VMenu"), b = w("VBtn"), v = w("VDivider"), z = w("VTooltip");
14744
+ const l = v("DateTimePicker"), m = v("VListItemTitle"), c = v("VListItem"), f = v("VList"), d = v("VMenu"), b = v("VBtn"), w = v("VDivider"), k = v("VTooltip");
14768
14745
  return g(), S("div", Ph, [
14769
14746
  s("div", {
14770
14747
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
@@ -14778,10 +14755,10 @@ function Oh(t, e, o, i, a, r) {
14778
14755
  "day-about": a.dayAbout,
14779
14756
  "interval-hour": a.intervalHour
14780
14757
  }, t.$attrs, {
14781
- onCurrentTimestamp: e[0] || (e[0] = (C) => a.currentTimestamp = C),
14782
- onCurrentRealTime: e[1] || (e[1] = (C) => a.currentRealTime = C),
14783
- onMinTimestamp: e[2] || (e[2] = (C) => a.minTimestamp = C),
14784
- onMaxTimestamp: e[3] || (e[3] = (C) => a.maxTimestamp = C)
14758
+ onCurrentTimestamp: e[0] || (e[0] = (y) => a.currentTimestamp = y),
14759
+ onCurrentRealTime: e[1] || (e[1] = (y) => a.currentRealTime = y),
14760
+ onMinTimestamp: e[2] || (e[2] = (y) => a.minTimestamp = y),
14761
+ onMaxTimestamp: e[3] || (e[3] = (y) => a.maxTimestamp = y)
14785
14762
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
14786
14763
  p(b, {
14787
14764
  text: "",
@@ -14795,24 +14772,24 @@ function Oh(t, e, o, i, a, r) {
14795
14772
  default: u(() => [
14796
14773
  p(f, { class: "pa-1" }, {
14797
14774
  default: u(() => [
14798
- (g(!0), S(xe, null, ke(a.intervalOptions, (C, L) => (g(), A(m, {
14799
- key: L,
14800
- value: C,
14801
- variant: a.intervalHour === C ? "tonal" : "text",
14775
+ (g(!0), S(xe, null, ke(a.intervalOptions, (y, _) => (g(), A(c, {
14776
+ key: _,
14777
+ value: y,
14778
+ variant: a.intervalHour === y ? "tonal" : "text",
14802
14779
  color: "primary",
14803
14780
  rounded: "",
14804
- active: a.intervalHour === C,
14781
+ active: a.intervalHour === y,
14805
14782
  height: "30",
14806
14783
  "min-height": "30",
14807
14784
  "min-width": "30",
14808
14785
  class: "pa-0 text-center text-body-1"
14809
14786
  }, {
14810
14787
  default: u(() => [
14811
- p(c, {
14812
- onClick: (y) => a.intervalHour = C
14788
+ p(m, {
14789
+ onClick: (T) => a.intervalHour = y
14813
14790
  }, {
14814
14791
  default: u(() => [
14815
- K(n(C) + "h", 1)
14792
+ K(n(y) + "h", 1)
14816
14793
  ]),
14817
14794
  _: 2
14818
14795
  }, 1032, ["onClick"])
@@ -14829,7 +14806,7 @@ function Oh(t, e, o, i, a, r) {
14829
14806
  _: 1
14830
14807
  })
14831
14808
  ]),
14832
- p(v, {
14809
+ p(w, {
14833
14810
  vertical: "",
14834
14811
  class: "mx-2 my-3",
14835
14812
  style: { height: "16px" }
@@ -14902,23 +14879,23 @@ function Oh(t, e, o, i, a, r) {
14902
14879
  __: [14]
14903
14880
  }, 8, ["onClick"])
14904
14881
  ]),
14905
- p(v, {
14882
+ p(w, {
14906
14883
  vertical: "",
14907
14884
  class: "mx-2 my-3",
14908
14885
  style: { height: "16px" }
14909
14886
  }),
14910
14887
  s("div", Sh, [
14911
- p(z, {
14888
+ p(k, {
14912
14889
  text: t.$t("weather.windBarbs"),
14913
14890
  location: "top"
14914
14891
  }, {
14915
- activator: u(({ props: C }) => {
14916
- var L, y;
14892
+ activator: u(({ props: y }) => {
14893
+ var _, T;
14917
14894
  return [
14918
- p(b, j(C, {
14895
+ p(b, j(y, {
14919
14896
  class: "pa-1 d-flex",
14920
- color: (L = o.weatherCheckList) != null && L.includes("wind") ? "primary" : "",
14921
- variant: (y = o.weatherCheckList) != null && y.includes("wind") ? "elevated" : "text",
14897
+ color: (_ = o.weatherCheckList) != null && _.includes("wind") ? "primary" : "",
14898
+ variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
14922
14899
  height: "24",
14923
14900
  width: "24",
14924
14901
  "min-width": "24",
@@ -14934,24 +14911,24 @@ function Oh(t, e, o, i, a, r) {
14934
14911
  }),
14935
14912
  _: 1
14936
14913
  }, 8, ["text"]),
14937
- p(z, {
14914
+ p(k, {
14938
14915
  text: t.$t("weather.sigWaveHeight"),
14939
14916
  location: "top"
14940
14917
  }, {
14941
- activator: u(({ props: C }) => {
14942
- var L, y;
14918
+ activator: u(({ props: y }) => {
14919
+ var _, T;
14943
14920
  return [
14944
- p(b, j(C, {
14921
+ p(b, j(y, {
14945
14922
  class: "pa-1 d-flex",
14946
- color: (L = o.weatherCheckList) != null && L.includes("sig-wave-height") ? "primary" : "",
14947
- variant: (y = o.weatherCheckList) != null && y.includes("sig-wave-height") ? "elevated" : "text",
14923
+ color: (_ = o.weatherCheckList) != null && _.includes("sig-wave-height") ? "primary" : "",
14924
+ variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
14948
14925
  height: "24",
14949
14926
  width: "24",
14950
14927
  "min-width": "24",
14951
14928
  onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("sig-wave-height"))
14952
14929
  }), {
14953
14930
  default: u(() => [
14954
- s("i", j(C, { class: "iconfont icon-a-WaveHeight" }), null, 16)
14931
+ s("i", j(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
14955
14932
  ]),
14956
14933
  _: 2
14957
14934
  }, 1040, ["color", "variant"])
@@ -14959,24 +14936,24 @@ function Oh(t, e, o, i, a, r) {
14959
14936
  }),
14960
14937
  _: 1
14961
14938
  }, 8, ["text"]),
14962
- p(z, {
14939
+ p(k, {
14963
14940
  text: t.$t("weather.currentDirection"),
14964
14941
  location: "top"
14965
14942
  }, {
14966
- activator: u(({ props: C }) => {
14967
- var L, y;
14943
+ activator: u(({ props: y }) => {
14944
+ var _, T;
14968
14945
  return [
14969
- p(b, j(C, {
14946
+ p(b, j(y, {
14970
14947
  class: "pa-1 d-flex",
14971
- color: (L = o.weatherCheckList) != null && L.includes("current-direction") ? "primary" : "",
14972
- variant: (y = o.weatherCheckList) != null && y.includes("current-direction") ? "elevated" : "text",
14948
+ color: (_ = o.weatherCheckList) != null && _.includes("current-direction") ? "primary" : "",
14949
+ variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
14973
14950
  height: "24",
14974
14951
  width: "24",
14975
14952
  "min-width": "24",
14976
14953
  onClick: e[6] || (e[6] = (B) => r.handleClickFastWeather("current-direction"))
14977
14954
  }), {
14978
14955
  default: u(() => [
14979
- s("i", j(C, { class: "iconfont icon-Current" }), null, 16)
14956
+ s("i", j(y, { class: "iconfont icon-Current" }), null, 16)
14980
14957
  ]),
14981
14958
  _: 2
14982
14959
  }, 1040, ["color", "variant"])
@@ -14984,12 +14961,12 @@ function Oh(t, e, o, i, a, r) {
14984
14961
  }),
14985
14962
  _: 1
14986
14963
  }, 8, ["text"]),
14987
- p(z, {
14964
+ p(k, {
14988
14965
  text: t.$t("weather.weatherLayers"),
14989
14966
  location: "top"
14990
14967
  }, {
14991
- activator: u(({ props: C }) => [
14992
- p(b, j(C, {
14968
+ activator: u(({ props: y }) => [
14969
+ p(b, j(y, {
14993
14970
  class: "pa-1 d-flex",
14994
14971
  variant: "text",
14995
14972
  height: "24",
@@ -14998,7 +14975,7 @@ function Oh(t, e, o, i, a, r) {
14998
14975
  onClick: r.handleClickFastMore
14999
14976
  }), {
15000
14977
  default: u(() => [
15001
- s("i", j(C, { class: "iconfont icon-dots-align" }), null, 16)
14978
+ s("i", j(y, { class: "iconfont icon-dots-align" }), null, 16)
15002
14979
  ]),
15003
14980
  _: 2
15004
14981
  }, 1040, ["onClick"])
@@ -15006,7 +14983,7 @@ function Oh(t, e, o, i, a, r) {
15006
14983
  _: 1
15007
14984
  }, 8, ["text"])
15008
14985
  ]),
15009
- p(v, {
14986
+ p(w, {
15010
14987
  vertical: "",
15011
14988
  class: "mx-2 mr-3 my-3",
15012
14989
  style: { height: "16px" }
@@ -15017,7 +14994,7 @@ function Oh(t, e, o, i, a, r) {
15017
14994
  height: "30",
15018
14995
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
15019
14996
  color: a.source === "GFS" ? "primary" : "",
15020
- onClick: e[7] || (e[7] = (C) => a.source = "GFS")
14997
+ onClick: e[7] || (e[7] = (y) => a.source = "GFS")
15021
14998
  }, {
15022
14999
  default: u(() => e[16] || (e[16] = [
15023
15000
  K("NOAA", -1)
@@ -15030,7 +15007,7 @@ function Oh(t, e, o, i, a, r) {
15030
15007
  height: "30",
15031
15008
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
15032
15009
  color: a.source === "ECMWF" ? "primary" : "",
15033
- onClick: e[8] || (e[8] = (C) => a.source = "ECMWF")
15010
+ onClick: e[8] || (e[8] = (y) => a.source = "ECMWF")
15034
15011
  }, {
15035
15012
  default: u(() => e[17] || (e[17] = [
15036
15013
  K("ECMWF", -1)
@@ -15045,11 +15022,11 @@ function Oh(t, e, o, i, a, r) {
15045
15022
  style: ee({ right: a.right + "px" })
15046
15023
  }, [
15047
15024
  a.showTimezone ? (g(), S("div", Dh, [
15048
- (g(!0), S(xe, null, ke(a.offsets, (C) => (g(), S("div", {
15049
- key: C,
15025
+ (g(!0), S(xe, null, ke(a.offsets, (y) => (g(), S("div", {
15026
+ key: y,
15050
15027
  class: "item rounded text-body-2 hover-active",
15051
- onClick: (L) => a.timeZone = C
15052
- }, n(C < 0 ? C : "+" + C), 9, Ih))), 128))
15028
+ onClick: (_) => a.timeZone = y
15029
+ }, n(y < 0 ? y : "+" + y), 9, Ih))), 128))
15053
15030
  ])) : R("", !0),
15054
15031
  s("div", Rh, [
15055
15032
  p(b, {
@@ -15058,7 +15035,7 @@ function Oh(t, e, o, i, a, r) {
15058
15035
  height: "28",
15059
15036
  class: "pa-1 text-body-1",
15060
15037
  color: "primary",
15061
- onClick: e[9] || (e[9] = (C) => a.showTimezone = !a.showTimezone)
15038
+ onClick: e[9] || (e[9] = (y) => a.showTimezone = !a.showTimezone)
15062
15039
  }, {
15063
15040
  default: u(() => [
15064
15041
  K(" UTC " + n(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
@@ -15180,7 +15157,7 @@ const jh = {
15180
15157
  }
15181
15158
  }, Eh = { class: "timeline-box px-2 d-flex justify-center align-center rounded ga-1" };
15182
15159
  function Nh(t, e, o, i, a, r) {
15183
- const l = w("VBtn"), c = w("DateTimePicker");
15160
+ const l = v("VBtn"), m = v("DateTimePicker");
15184
15161
  return g(), S("div", {
15185
15162
  class: "idm-time-player-gl4 d-flex justify-center align-center",
15186
15163
  style: ee({ bottom: Object.values(a.show).includes(!0) ? o.playerBottom + "px" : "-100px" })
@@ -15216,7 +15193,7 @@ function Nh(t, e, o, i, a, r) {
15216
15193
  _: 1,
15217
15194
  __: [5]
15218
15195
  }, 8, ["onClick"]),
15219
- p(c, j({
15196
+ p(m, j({
15220
15197
  ref: "dateTimePicker",
15221
15198
  "date-time": a.currentDateTimeZ,
15222
15199
  "time-zone": a.timeZone,
@@ -15224,10 +15201,10 @@ function Nh(t, e, o, i, a, r) {
15224
15201
  "interval-hour": a.intervalHour,
15225
15202
  height: 32
15226
15203
  }, t.$attrs, {
15227
- onCurrentTimestamp: e[0] || (e[0] = (m) => a.currentTimestamp = m),
15228
- onCurrentRealTime: e[1] || (e[1] = (m) => a.currentRealTime = m),
15229
- onMinTimestamp: e[2] || (e[2] = (m) => a.minTimestamp = m),
15230
- onMaxTimestamp: e[3] || (e[3] = (m) => a.maxTimestamp = m)
15204
+ onCurrentTimestamp: e[0] || (e[0] = (c) => a.currentTimestamp = c),
15205
+ onCurrentRealTime: e[1] || (e[1] = (c) => a.currentRealTime = c),
15206
+ onMinTimestamp: e[2] || (e[2] = (c) => a.minTimestamp = c),
15207
+ onMaxTimestamp: e[3] || (e[3] = (c) => a.maxTimestamp = c)
15231
15208
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
15232
15209
  p(l, {
15233
15210
  size: "small",
@@ -15347,7 +15324,7 @@ const Ja = /* @__PURE__ */ X(jh, [["render", Nh]]), Fh = {
15347
15324
  class: "map-gl4-home"
15348
15325
  };
15349
15326
  function Gh(t, e, o, i, a, r) {
15350
- const l = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), m = w("IdmTropicals"), f = w("IdmMeasure"), d = w("IdmSpot"), b = w("IdmBottomBar"), v = w("IdmTimePlayer");
15327
+ const l = v("IdmOtherLayer"), m = v("IdmWeatherLayer"), c = v("IdmTropicals"), f = v("IdmMeasure"), d = v("IdmSpot"), b = v("IdmBottomBar"), w = v("IdmTimePlayer");
15351
15328
  return g(), S("div", Hh, [
15352
15329
  p(l, j({
15353
15330
  ref: "idmOtherLayers",
@@ -15361,11 +15338,11 @@ function Gh(t, e, o, i, a, r) {
15361
15338
  "forecast-model": o.forecastModel,
15362
15339
  "map-feather": o.mapFeather
15363
15340
  }, t.$attrs, {
15364
- onOtherCheckList: e[0] || (e[0] = (z) => {
15365
- a.otherCheckList = z, a.layerVersion = a.layerVersion + 1;
15341
+ onOtherCheckList: e[0] || (e[0] = (k) => {
15342
+ a.otherCheckList = k, a.layerVersion = a.layerVersion + 1;
15366
15343
  })
15367
15344
  }), null, 16, ["simple", "token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
15368
- p(c, j({
15345
+ p(m, j({
15369
15346
  ref: "idmWeatherLayers",
15370
15347
  simple: o.simple,
15371
15348
  map: o.map,
@@ -15377,14 +15354,14 @@ function Gh(t, e, o, i, a, r) {
15377
15354
  "forecast-model": o.forecastModel,
15378
15355
  "map-feather": o.mapFeather
15379
15356
  }, t.$attrs, {
15380
- onAutoActive: e[1] || (e[1] = (z) => {
15381
- a.autoActive = z, a.layerVersion = a.layerVersion + 1;
15357
+ onAutoActive: e[1] || (e[1] = (k) => {
15358
+ a.autoActive = k, a.layerVersion = a.layerVersion + 1;
15382
15359
  }),
15383
- onWeatherCheckList: e[2] || (e[2] = (z) => {
15384
- a.weatherCheckList = z, a.layerVersion = a.layerVersion + 1;
15360
+ onWeatherCheckList: e[2] || (e[2] = (k) => {
15361
+ a.weatherCheckList = k, a.layerVersion = a.layerVersion + 1;
15385
15362
  })
15386
15363
  }), null, 16, ["simple", "map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
15387
- p(m, j({
15364
+ p(c, j({
15388
15365
  simple: o.simple,
15389
15366
  map: o.map,
15390
15367
  token: o.token,
@@ -15418,7 +15395,7 @@ function Gh(t, e, o, i, a, r) {
15418
15395
  "weather-check-list": a.weatherCheckList,
15419
15396
  "map-feather": o.mapFeather
15420
15397
  }, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])),
15421
- o.simple ? (g(), A(v, j({
15398
+ o.simple ? (g(), A(w, j({
15422
15399
  key: 1,
15423
15400
  ref: "idmBottomBar",
15424
15401
  "weather-check-list": a.weatherCheckList,
@@ -15436,7 +15413,7 @@ class Uh {
15436
15413
  pe(this, "hi");
15437
15414
  pe(this, "td");
15438
15415
  pe(this, "windy");
15439
- var o, i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, ge, Re, U, fe, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, V, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Ao, Oo, Bo, jo, Eo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Jo, Qo, $o, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ta, Ca, Sa, Ma, Da, Ia, Ra, Aa, Oa, Ba, ja, Ea, Na, Fa, Ha, Ga, Wa, Ua;
15416
+ var o, i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re, U, ye, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, V, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Ao, Oo, Bo, jo, Eo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Jo, Qo, $o, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ta, Ca, Sa, Ma, Da, Ia, Ra, Aa, Oa, Ba, ja, Ea, Na, Fa, Ha, Ga, Wa, Ua;
15440
15417
  this.i4 = {
15441
15418
  source: {
15442
15419
  type: "raster",
@@ -34079,15 +34056,15 @@ class Uh {
34079
34056
  layers: [
34080
34057
  (i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((h) => h.id === "land"),
34081
34058
  (r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((h) => h.id === "water"),
34082
- (c = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : c.find((h) => h.id === "ice-area-fill"),
34083
- (f = (m = this.originStyle) == null ? void 0 : m.light.layers) == null ? void 0 : f.find((h) => h.id === "ice-area-line"),
34059
+ (m = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : m.find((h) => h.id === "ice-area-fill"),
34060
+ (f = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : f.find((h) => h.id === "ice-area-line"),
34084
34061
  (b = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : b.find((h) => h.id === "loadlines-label"),
34085
- (z = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : z.find((h) => h.id === "loadlines-fill"),
34086
- (L = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : L.find((h) => h.id === "empty-layer-0"),
34087
- (B = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
34088
- (P = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : P.find((h) => h.id === "country-boundaries"),
34089
- (x = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : x.find((h) => h.id === "water-outline"),
34090
- (_ = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : _.find((h) => h.id === "water-outline2"),
34062
+ (k = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : k.find((h) => h.id === "loadlines-fill"),
34063
+ (_ = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : _.find((h) => h.id === "empty-layer-0"),
34064
+ (B = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
34065
+ (x = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : x.find((h) => h.id === "country-boundaries"),
34066
+ (P = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : P.find((h) => h.id === "water-outline"),
34067
+ (z = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : z.find((h) => h.id === "water-outline2"),
34091
34068
  (F = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : F.find((h) => h.id === "empty-layer-2"),
34092
34069
  (Y = (G = this.originStyle) == null ? void 0 : G.light.layers) == null ? void 0 : Y.find((h) => h.id === "water-line-label"),
34093
34070
  (Q = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : Q.find((h) => h.id === "water-point-label"),
@@ -34102,9 +34079,9 @@ class Uh {
34102
34079
  (Ie = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : Ie.find((h) => h.id === "admin-0-boundary-disputed"),
34103
34080
  (H = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : H.find((h) => h.id === "country-label"),
34104
34081
  (He = (oe = this.originStyle) == null ? void 0 : oe.light.layers) == null ? void 0 : He.find((h) => h.id === "continent-label"),
34105
- (ge = (Oe = this.originStyle) == null ? void 0 : Oe.light.layers) == null ? void 0 : ge.find((h) => h.id === "tide-stations"),
34082
+ (fe = (Oe = this.originStyle) == null ? void 0 : Oe.light.layers) == null ? void 0 : fe.find((h) => h.id === "tide-stations"),
34106
34083
  (U = (Re = this.originStyle) == null ? void 0 : Re.light.layers) == null ? void 0 : U.find((h) => h.id === "empty-layer-3"),
34107
- (ae = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : ae.find((h) => h.id === "empty-layer-4")
34084
+ (ae = (ye = this.originStyle) == null ? void 0 : ye.light.layers) == null ? void 0 : ae.find((h) => h.id === "empty-layer-4")
34108
34085
  ]
34109
34086
  },
34110
34087
  dark: {
@@ -34414,7 +34391,7 @@ const Vh = {
34414
34391
  class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
34415
34392
  };
34416
34393
  function Kh(t, e, o, i, a, r) {
34417
- const l = w("VBtn");
34394
+ const l = v("VBtn");
34418
34395
  return g(), S("div", {
34419
34396
  class: "mapbox-initial-gl4",
34420
34397
  style: ee({ height: o.height, width: o.width })
@@ -34422,8 +34399,8 @@ function Kh(t, e, o, i, a, r) {
34422
34399
  e[6] || (e[6] = s("div", { id: "map" }, null, -1)),
34423
34400
  o.simple ? (g(), S("div", {
34424
34401
  key: 0,
34425
- class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1",
34426
- style: ee({ top: o.top + 268 + "px", right: a.right + "px", height: "40px" })
34402
+ class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
34403
+ style: ee({ top: o.top + 254 + "px", right: a.right + "px", height: "40px" })
34427
34404
  }, [
34428
34405
  s("div", Yh, [
34429
34406
  p(l, {
@@ -34444,7 +34421,7 @@ function Kh(t, e, o, i, a, r) {
34444
34421
  o.simple ? R("", !0) : (g(), S("div", {
34445
34422
  key: 1,
34446
34423
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
34447
- style: ee({ top: o.top + 268 + "px", right: a.right + "px" })
34424
+ style: ee({ top: o.top + 268 + "px", right: a.right + "px", height: "112px" })
34448
34425
  }, [
34449
34426
  s("div", Zh, [
34450
34427
  p(l, {