@idmwx/idmui-gl4 1.4.3 → 1.4.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
@@ -9,7 +9,7 @@ import { LngLatHelper as X, TropicalHelper as Va, LaneHelper as Ue } from "@idm-
9
9
  import D from "moment";
10
10
  import { Meteo2Assist as ao, TidesAssist as qa } from "@idm-plugin/meteo";
11
11
  import * as ro from "echarts";
12
- import * as H from "@turf/turf";
12
+ import * as U from "@turf/turf";
13
13
  import { LayerHelper as io, CompanyHelper as Ja } from "@idm-plugin/tag2";
14
14
  import Qa from "@mapbox/sphericalmercator";
15
15
  import { LayerHelper as ei } from "@idm-plugin/tag";
@@ -385,8 +385,8 @@ const mi = {
385
385
  return ((c = s.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
386
386
  })[0];
387
387
  o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
388
- var n, g;
389
- const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (g = s == null ? void 0 : s.children[1]) == null ? void 0 : g.children[0];
388
+ var n, f;
389
+ const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (f = s == null ? void 0 : s.children[1]) == null ? void 0 : f.children[0];
390
390
  c && (c.onclick = () => {
391
391
  this.handleRemoveMarker();
392
392
  }), this.marker = new ve.Marker(s).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
@@ -498,7 +498,7 @@ function hi(t, e, o, i, a, r) {
498
498
  default: u(() => [
499
499
  h(c, null, {
500
500
  default: u(() => {
501
- var g;
501
+ var f;
502
502
  return [
503
503
  h(s, {
504
504
  icon: "",
@@ -515,7 +515,7 @@ function hi(t, e, o, i, a, r) {
515
515
  }, 8, ["onClick"]),
516
516
  l("div", {
517
517
  class: "rich-context",
518
- innerHTML: (g = a.form) == null ? void 0 : g.name
518
+ innerHTML: (f = a.form) == null ? void 0 : f.name
519
519
  }, null, 8, di)
520
520
  ];
521
521
  }),
@@ -1482,10 +1482,10 @@ const ui = {
1482
1482
  { label: "Swell", key: "weather.swell", unit: "m" },
1483
1483
  { label: "Current", key: "weather.current", unit: "kts" }
1484
1484
  ], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
1485
- var c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe;
1485
+ var c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe;
1486
1486
  let r = {};
1487
1487
  const s = ((c = ao.pickHourly(t, D(i))) == null ? void 0 : c[0]) || {};
1488
- r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((L = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : L.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = s == null ? void 0 : s.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Z = (U = s == null ? void 0 : s.wave) == null ? void 0 : U.sig) == null ? void 0 : Z.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (q = s == null ? void 0 : s.wave) == null ? void 0 : q.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (he = s == null ? void 0 : s.wave) == null ? void 0 : he.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ce = s == null ? void 0 : s.wave) == null ? void 0 : ce.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = s == null ? void 0 : s.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1488
+ r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((f = s == null ? void 0 : s.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((y = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : y.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = s == null ? void 0 : s.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Z = (H = s == null ? void 0 : s.wave) == null ? void 0 : H.sig) == null ? void 0 : Z.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (q = s == null ? void 0 : s.wave) == null ? void 0 : q.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (he = s == null ? void 0 : s.wave) == null ? void 0 : he.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ce = s == null ? void 0 : s.wave) == null ? void 0 : ce.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = s == null ? void 0 : s.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1489
1489
  });
1490
1490
  },
1491
1491
  handleTide() {
@@ -1670,19 +1670,19 @@ const ui = {
1670
1670
  width: "120"
1671
1671
  }, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
1672
1672
  function yr(t, e, o, i, a, r) {
1673
- const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), f = x("VCard");
1674
- return b(), R(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1673
+ const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), f = x("VIcon"), p = x("VBtnToggle"), y = x("VCard");
1674
+ return b(), R(y, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1675
1675
  default: u(() => {
1676
- var w, L;
1676
+ var w, k;
1677
1677
  return [
1678
1678
  h(c, { class: "w-100" }, {
1679
1679
  default: u(() => {
1680
- var y, k, T, O, I;
1680
+ var g, z, T, O, I;
1681
1681
  return [
1682
1682
  l("div", gi, [
1683
1683
  l("div", fi, [
1684
1684
  l("div", {
1685
- class: He(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (T = (k = o.port) == null ? void 0 : k.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1685
+ class: He(["fi mr-2 rounded elevation-4", `fi-${(g = o.port) != null && g.cntLoCode ? (T = (z = o.port) == null ? void 0 : z.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1686
1686
  style: { width: "36px", height: "24px" }
1687
1687
  }, null, 2),
1688
1688
  l("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
@@ -1714,9 +1714,9 @@ function yr(t, e, o, i, a, r) {
1714
1714
  }),
1715
1715
  h(n, { class: "w-100" }),
1716
1716
  l("div", bi, [
1717
- o.followList.some((y) => {
1718
- var k;
1719
- return ((k = y.port) == null ? void 0 : k.id) === o.portId;
1717
+ o.followList.some((g) => {
1718
+ var z;
1719
+ return ((z = g.port) == null ? void 0 : z.id) === o.portId;
1720
1720
  }) ? (b(), R(s, {
1721
1721
  key: 0,
1722
1722
  class: "text-none text-body-1 rounded flex-1-1-0",
@@ -1727,7 +1727,7 @@ function yr(t, e, o, i, a, r) {
1727
1727
  onClick: r.handleCancelFollow
1728
1728
  }, {
1729
1729
  prepend: u(() => [
1730
- h(g, { color: "warning" })
1730
+ h(f, { color: "warning" })
1731
1731
  ]),
1732
1732
  default: u(() => [
1733
1733
  j(" " + m(t.$t("actions.unfollow")), 1)
@@ -1776,7 +1776,7 @@ function yr(t, e, o, i, a, r) {
1776
1776
  l("div", Li, [
1777
1777
  l("div", Pi, [
1778
1778
  l("div", Ci, m(t.$t("port.region")), 1),
1779
- l("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((L = o.port) == null ? void 0 : L.city) ?? "-"), 1)
1779
+ l("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((k = o.port) == null ? void 0 : k.city) ?? "-"), 1)
1780
1780
  ]),
1781
1781
  l("div", Si, [
1782
1782
  l("div", Ii, m(t.$t("port.position")), 1),
@@ -1803,7 +1803,7 @@ function yr(t, e, o, i, a, r) {
1803
1803
  l("div", Fi, [
1804
1804
  h(p, {
1805
1805
  modelValue: a.currentIndex,
1806
- "onUpdate:modelValue": e[0] || (e[0] = (y) => a.currentIndex = y),
1806
+ "onUpdate:modelValue": e[0] || (e[0] = (g) => a.currentIndex = g),
1807
1807
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
1808
1808
  density: "compact",
1809
1809
  group: "",
@@ -1812,15 +1812,15 @@ function yr(t, e, o, i, a, r) {
1812
1812
  rounded: "1"
1813
1813
  }, {
1814
1814
  default: u(() => [
1815
- (b(!0), S(be, null, we(r.dateList, (y) => (b(), R(s, {
1815
+ (b(!0), S(be, null, we(r.dateList, (g) => (b(), R(s, {
1816
1816
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1817
1817
  density: "compact",
1818
1818
  color: "primary",
1819
1819
  height: "26",
1820
- value: y.index
1820
+ value: g.index
1821
1821
  }, {
1822
1822
  default: u(() => [
1823
- j(m(y.label), 1)
1823
+ j(m(g.label), 1)
1824
1824
  ]),
1825
1825
  _: 2
1826
1826
  }, 1032, ["value"]))), 256))
@@ -1829,40 +1829,40 @@ function yr(t, e, o, i, a, r) {
1829
1829
  }, 8, ["modelValue"]),
1830
1830
  l("table", Hi, [
1831
1831
  l("tbody", null, [
1832
- (b(!0), S(be, null, we(a.tableData, (y) => (b(), S("tr", {
1833
- key: y.id
1832
+ (b(!0), S(be, null, we(a.tableData, (g) => (b(), S("tr", {
1833
+ key: g.id
1834
1834
  }, [
1835
1835
  l("th", Ui, [
1836
- j(m(t.$t(`${y.key}`)) + " ", 1),
1837
- y.unit ? (b(), S("span", Wi, " ( " + m(y.unit) + " )", 1)) : M("", !0)
1836
+ j(m(t.$t(`${g.key}`)) + " ", 1),
1837
+ g.unit ? (b(), S("span", Wi, " ( " + m(g.unit) + " )", 1)) : M("", !0)
1838
1838
  ]),
1839
1839
  l("td", Gi, [
1840
- y.img ? (b(), S("img", {
1840
+ g.img ? (b(), S("img", {
1841
1841
  key: 0,
1842
- src: y == null ? void 0 : y.value0,
1842
+ src: g == null ? void 0 : g.value0,
1843
1843
  style: { height: "30px" }
1844
- }, null, 8, Vi)) : (b(), S("span", Zi, m((y == null ? void 0 : y.value0) ?? "-"), 1))
1844
+ }, null, 8, Vi)) : (b(), S("span", Zi, m((g == null ? void 0 : g.value0) ?? "-"), 1))
1845
1845
  ]),
1846
1846
  l("td", qi, [
1847
- y.img ? (b(), S("img", {
1847
+ g.img ? (b(), S("img", {
1848
1848
  key: 0,
1849
- src: y == null ? void 0 : y.value1,
1849
+ src: g == null ? void 0 : g.value1,
1850
1850
  style: { height: "30px" }
1851
- }, null, 8, Yi)) : (b(), S("span", Ki, m((y == null ? void 0 : y.value1) ?? "-"), 1))
1851
+ }, null, 8, Yi)) : (b(), S("span", Ki, m((g == null ? void 0 : g.value1) ?? "-"), 1))
1852
1852
  ]),
1853
1853
  l("td", Xi, [
1854
- y.img ? (b(), S("img", {
1854
+ g.img ? (b(), S("img", {
1855
1855
  key: 0,
1856
- src: y == null ? void 0 : y.value2,
1856
+ src: g == null ? void 0 : g.value2,
1857
1857
  style: { height: "30px" }
1858
- }, null, 8, $i)) : (b(), S("span", Ji, m((y == null ? void 0 : y.value2) ?? "-"), 1))
1858
+ }, null, 8, $i)) : (b(), S("span", Ji, m((g == null ? void 0 : g.value2) ?? "-"), 1))
1859
1859
  ]),
1860
1860
  l("td", Qi, [
1861
- y.img ? (b(), S("img", {
1861
+ g.img ? (b(), S("img", {
1862
1862
  key: 0,
1863
- src: y == null ? void 0 : y.value3,
1863
+ src: g == null ? void 0 : g.value3,
1864
1864
  style: { height: "30px" }
1865
- }, null, 8, er)) : (b(), S("span", tr, m((y == null ? void 0 : y.value3) ?? "-"), 1))
1865
+ }, null, 8, er)) : (b(), S("span", tr, m((g == null ? void 0 : g.value3) ?? "-"), 1))
1866
1866
  ])
1867
1867
  ]))), 128))
1868
1868
  ])
@@ -1886,7 +1886,7 @@ function yr(t, e, o, i, a, r) {
1886
1886
  density: "compact",
1887
1887
  variant: "plain",
1888
1888
  size: "small",
1889
- onClick: e[1] || (e[1] = (y) => a.showTideDetail = !1)
1889
+ onClick: e[1] || (e[1] = (g) => a.showTideDetail = !1)
1890
1890
  })) : (b(), R(s, {
1891
1891
  key: 1,
1892
1892
  icon: "mdi-eye-outline",
@@ -1906,12 +1906,12 @@ function yr(t, e, o, i, a, r) {
1906
1906
  l("th", hr, m(t.$t("time.time")) + " ( LT ) ", 1),
1907
1907
  l("th", pr, m(t.$t("tide.height")) + " ( m )", 1)
1908
1908
  ]),
1909
- (b(!0), S(be, null, we(a.tideTableData, (y, k) => {
1909
+ (b(!0), S(be, null, we(a.tideTableData, (g, z) => {
1910
1910
  var T;
1911
- return b(), S("tr", { key: k }, [
1912
- l("td", ur, m(t.$t(`tide.${(T = y == null ? void 0 : y.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
1913
- l("td", gr, m(r.computeLocalTime(y == null ? void 0 : y.date, o.port, "MM-DD HH:mm")), 1),
1914
- l("td", fr, m((y == null ? void 0 : y.height) ?? "-") + " m", 1)
1911
+ return b(), S("tr", { key: z }, [
1912
+ l("td", ur, m(t.$t(`tide.${(T = g == null ? void 0 : g.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
1913
+ l("td", gr, m(r.computeLocalTime(g == null ? void 0 : g.date, o.port, "MM-DD HH:mm")), 1),
1914
+ l("td", fr, m((g == null ? void 0 : g.height) ?? "-") + " m", 1)
1915
1915
  ]);
1916
1916
  }), 128))
1917
1917
  ])
@@ -2066,7 +2066,7 @@ function _r(t, e, o, i, a, r) {
2066
2066
  port: a.port,
2067
2067
  forecastModel: o.forecastModel,
2068
2068
  onClose: r.handleCloseDetail,
2069
- onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { ports: !0 }))
2069
+ onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { ports: !0 }))
2070
2070
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : M("", !0)
2071
2071
  ]);
2072
2072
  }
@@ -2935,18 +2935,18 @@ const Yr = {
2935
2935
  width: "120"
2936
2936
  }, Ll = { class: "px-1 text-center" }, Pl = { class: "px-1 text-center" }, Cl = { class: "px-1 text-center" };
2937
2937
  function Tl(t, e, o, i, a, r) {
2938
- const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), p = x("v-card");
2938
+ const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), f = x("VBtnToggle"), p = x("v-card");
2939
2939
  return b(), R(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2940
2940
  default: u(() => {
2941
- var f, w;
2941
+ var y, w;
2942
2942
  return [
2943
2943
  h(c, { class: "w-100" }, {
2944
2944
  default: u(() => {
2945
- var L;
2945
+ var k;
2946
2946
  return [
2947
2947
  l("div", Kr, [
2948
2948
  l("div", Xr, [
2949
- l("div", null, m((L = o.station) == null ? void 0 : L.name), 1)
2949
+ l("div", null, m((k = o.station) == null ? void 0 : k.name), 1)
2950
2950
  ]),
2951
2951
  h(s, {
2952
2952
  icon: "",
@@ -2986,7 +2986,7 @@ function Tl(t, e, o, i, a, r) {
2986
2986
  l("div", il, [
2987
2987
  l("div", rl, [
2988
2988
  l("div", ll, m(t.$t("tide.region")), 1),
2989
- l("div", sl, m(((f = o.station) == null ? void 0 : f.Country) ?? ((w = o.station) == null ? void 0 : w.city) ?? "-"), 1)
2989
+ l("div", sl, m(((y = o.station) == null ? void 0 : y.Country) ?? ((w = o.station) == null ? void 0 : w.city) ?? "-"), 1)
2990
2990
  ]),
2991
2991
  l("div", nl, [
2992
2992
  l("div", cl, m(t.$t("tide.position")), 1),
@@ -3011,9 +3011,9 @@ function Tl(t, e, o, i, a, r) {
3011
3011
  e[3] || (e[3] = l("div", { class: "text-body-2 text-success ga-2" }, null, -1))
3012
3012
  ]),
3013
3013
  l("div", wl, [
3014
- h(g, {
3014
+ h(f, {
3015
3015
  modelValue: a.currentIndex,
3016
- "onUpdate:modelValue": e[0] || (e[0] = (L) => a.currentIndex = L),
3016
+ "onUpdate:modelValue": e[0] || (e[0] = (k) => a.currentIndex = k),
3017
3017
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
3018
3018
  density: "compact",
3019
3019
  group: "",
@@ -3022,15 +3022,15 @@ function Tl(t, e, o, i, a, r) {
3022
3022
  rounded: "1"
3023
3023
  }, {
3024
3024
  default: u(() => [
3025
- (b(!0), S(be, null, we(r.dateList, (L) => (b(), R(s, {
3025
+ (b(!0), S(be, null, we(r.dateList, (k) => (b(), R(s, {
3026
3026
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
3027
3027
  density: "compact",
3028
3028
  color: "primary",
3029
3029
  height: "26",
3030
- value: L.index
3030
+ value: k.index
3031
3031
  }, {
3032
3032
  default: u(() => [
3033
- j(m(L.label), 1)
3033
+ j(m(k.label), 1)
3034
3034
  ]),
3035
3035
  _: 2
3036
3036
  }, 1032, ["value"]))), 256))
@@ -3045,12 +3045,12 @@ function Tl(t, e, o, i, a, r) {
3045
3045
  l("th", kl, m(t.$t("time.time")) + " ( LT )", 1),
3046
3046
  l("th", zl, m(t.$t("tide.height")) + " ( m )", 1)
3047
3047
  ]),
3048
- (b(!0), S(be, null, we(a.tideTableData, (L, y) => {
3049
- var k;
3050
- return b(), S("tr", { key: y }, [
3051
- l("td", Ll, m(t.$t(`tide.${(k = L == null ? void 0 : L.type) == null ? void 0 : k.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
3052
- l("td", Pl, m(r.computeLocalTime(L == null ? void 0 : L.date, o.station, "MM-DD HH:mm")), 1),
3053
- l("td", Cl, m((L == null ? void 0 : L.height) ?? "-") + " m", 1)
3048
+ (b(!0), S(be, null, we(a.tideTableData, (k, g) => {
3049
+ var z;
3050
+ return b(), S("tr", { key: g }, [
3051
+ l("td", Ll, m(t.$t(`tide.${(z = k == null ? void 0 : k.type) == null ? void 0 : z.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
3052
+ l("td", Pl, m(r.computeLocalTime(k == null ? void 0 : k.date, o.station, "MM-DD HH:mm")), 1),
3053
+ l("td", Cl, m((k == null ? void 0 : k.height) ?? "-") + " m", 1)
3054
3054
  ]);
3055
3055
  }), 128))
3056
3056
  ])
@@ -3147,12 +3147,12 @@ function Ol(t, e, o, i, a, r) {
3147
3147
  default: u(() => [
3148
3148
  h(s, { class: "pr-8 text-body-1" }, {
3149
3149
  default: u(() => {
3150
- var g, p;
3150
+ var f, p;
3151
3151
  return [
3152
3152
  l("div", Ml, [
3153
3153
  l("div", Al, m(t.$t("tide.tideStation")), 1),
3154
3154
  l("div", Dl, [
3155
- l("label", Rl, m((g = a.hoverStation) == null ? void 0 : g.name) + " , " + m(((p = a.hoverStation) == null ? void 0 : p.Country) || "-"), 1)
3155
+ l("label", Rl, m((f = a.hoverStation) == null ? void 0 : f.name) + " , " + m(((p = a.hoverStation) == null ? void 0 : p.Country) || "-"), 1)
3156
3156
  ])
3157
3157
  ])
3158
3158
  ];
@@ -3324,7 +3324,7 @@ const Fl = {
3324
3324
  handleZoomEnd() {
3325
3325
  var e;
3326
3326
  const t = this.handleComputeLatLngs();
3327
- (e = this.map) == null || e.getSource(this.source).setData(H.featureCollection(t));
3327
+ (e = this.map) == null || e.getSource(this.source).setData(U.featureCollection(t));
3328
3328
  },
3329
3329
  handleRender() {
3330
3330
  if (this.handleClear(), this.map) {
@@ -4335,7 +4335,7 @@ function Zl(t, e, o, i, a, r) {
4335
4335
  forecastModel: o.forecastModel,
4336
4336
  followList: o.followList,
4337
4337
  onClose: r.handleCloseDetail,
4338
- onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { followPort: !0 }))
4338
+ onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { followPort: !0 }))
4339
4339
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : M("", !0)
4340
4340
  ]);
4341
4341
  }
@@ -5223,18 +5223,18 @@ const Yl = {
5223
5223
  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.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave);
5224
5224
  },
5225
5225
  handleClick(t) {
5226
- var o, i, a, r, s, c, n, g, p;
5226
+ var o, i, a, r, s, c, n, f, p;
5227
5227
  const e = t.features[0];
5228
5228
  if (e.properties) {
5229
- const f = e.properties;
5230
- f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1];
5231
- const w = D(), L = (o = D(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), y = {
5232
- lat: f.lat,
5233
- lng: f.lng,
5229
+ const y = e.properties;
5230
+ y.lng = e.geometry.coordinates[0], y.lat = e.geometry.coordinates[1];
5231
+ const w = D(), k = (o = D(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
5232
+ lat: y.lat,
5233
+ lng: y.lng,
5234
5234
  datetime: this.realTime,
5235
5235
  forecastModel: this.forecastModel
5236
5236
  };
5237
- L >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(y) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(y);
5237
+ k >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(g) : (p = (f = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : f.idmSpot) == null || p.fetchHistoryData(g);
5238
5238
  }
5239
5239
  },
5240
5240
  handleHover(t) {
@@ -5454,9 +5454,9 @@ const es = {
5454
5454
  })
5455
5455
  );
5456
5456
  (await Promise.all(s)).map((n) => {
5457
- var f, w, L;
5458
- const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (L = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : L.key;
5459
- this.otherLayers[p] = g;
5457
+ var y, w, k;
5458
+ const f = ((y = n == null ? void 0 : n.data) == null ? void 0 : y.data) || (n == null ? void 0 : n.data), p = (k = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : k.key;
5459
+ this.otherLayers[p] = f;
5460
5460
  });
5461
5461
  }
5462
5462
  }
@@ -5494,7 +5494,7 @@ const es = {
5494
5494
  }, ds = { class: "text-body-2 text-center pt-1" };
5495
5495
  function hs(t, e, o, i, a, r) {
5496
5496
  var J, re, he, pe, ne, $, ae, ue, ce;
5497
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), L = x("IdmLatLng"), y = x("IdmTerminator"), k = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), z = x("IdmGmdssArea"), C = x("IdmLoadLine"), v = x("IdmWorldMarine"), A = x("IdmVRA"), U = x("IdmSpecialArea"), Z = x("IdmWorld12nm"), q = x("IdmChinaRoute"), V = x("IdmIceAreas"), Q = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5497
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), f = x("VCardItem"), p = x("VCheckbox"), y = x("VCardText"), w = x("VCard"), k = x("IdmLatLng"), g = x("IdmTerminator"), z = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), L = x("IdmGmdssArea"), C = x("IdmLoadLine"), v = x("IdmWorldMarine"), A = x("IdmVRA"), H = x("IdmSpecialArea"), Z = x("IdmWorld12nm"), q = x("IdmChinaRoute"), V = x("IdmIceAreas"), Q = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5498
5498
  return b(), S("div", ts, [
5499
5499
  l("div", {
5500
5500
  class: "menu-bar-box transition px-1 rounded",
@@ -5548,7 +5548,7 @@ function hs(t, e, o, i, a, r) {
5548
5548
  elevation: "0"
5549
5549
  }, {
5550
5550
  default: u(() => [
5551
- h(g, { class: "border-b-thin" }, {
5551
+ h(f, { class: "border-b-thin" }, {
5552
5552
  default: u(() => [
5553
5553
  h(n, {
5554
5554
  class: "text-subtitle-1 font-weight-medium",
@@ -5562,7 +5562,7 @@ function hs(t, e, o, i, a, r) {
5562
5562
  ]),
5563
5563
  _: 1
5564
5564
  }),
5565
- h(f, { class: "pb-2" }, {
5565
+ h(y, { class: "pb-2" }, {
5566
5566
  default: u(() => [
5567
5567
  l("div", rs, [
5568
5568
  (b(!0), S(be, null, we(a.mapFeathers, (F) => (b(), S("div", {
@@ -5601,7 +5601,7 @@ function hs(t, e, o, i, a, r) {
5601
5601
  elevation: "0"
5602
5602
  }, {
5603
5603
  default: u(() => [
5604
- h(g, { class: "border-b-thin" }, {
5604
+ h(f, { class: "border-b-thin" }, {
5605
5605
  default: u(() => [
5606
5606
  h(n, {
5607
5607
  class: "text-subtitle-1 font-weight-medium",
@@ -5615,7 +5615,7 @@ function hs(t, e, o, i, a, r) {
5615
5615
  ]),
5616
5616
  _: 1
5617
5617
  }),
5618
- h(f, { class: "py-2" }, {
5618
+ h(y, { class: "py-2" }, {
5619
5619
  default: u(() => [
5620
5620
  (b(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), R(p, {
5621
5621
  key: F.key,
@@ -5640,7 +5640,7 @@ function hs(t, e, o, i, a, r) {
5640
5640
  elevation: "0"
5641
5641
  }, {
5642
5642
  default: u(() => [
5643
- h(g, { class: "border-b-thin" }, {
5643
+ h(f, { class: "border-b-thin" }, {
5644
5644
  default: u(() => [
5645
5645
  h(n, {
5646
5646
  class: "text-subtitle-1 font-weight-medium",
@@ -5654,7 +5654,7 @@ function hs(t, e, o, i, a, r) {
5654
5654
  ]),
5655
5655
  _: 1
5656
5656
  }),
5657
- h(f, { class: "py-2" }, {
5657
+ h(y, { class: "py-2" }, {
5658
5658
  default: u(() => [
5659
5659
  (b(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), R(p, {
5660
5660
  key: F.key,
@@ -5679,7 +5679,7 @@ function hs(t, e, o, i, a, r) {
5679
5679
  elevation: "0"
5680
5680
  }, {
5681
5681
  default: u(() => [
5682
- h(g, { class: "border-b-thin" }, {
5682
+ h(f, { class: "border-b-thin" }, {
5683
5683
  default: u(() => [
5684
5684
  h(n, {
5685
5685
  class: "text-subtitle-1 font-weight-medium",
@@ -5693,7 +5693,7 @@ function hs(t, e, o, i, a, r) {
5693
5693
  ]),
5694
5694
  _: 1
5695
5695
  }),
5696
- h(f, { class: "py-2" }, {
5696
+ h(y, { class: "py-2" }, {
5697
5697
  default: u(() => [
5698
5698
  h(p, {
5699
5699
  modelValue: a.checkList,
@@ -5725,18 +5725,18 @@ function hs(t, e, o, i, a, r) {
5725
5725
  })
5726
5726
  ])
5727
5727
  ], 6),
5728
- o.map ? (b(), R(L, B({
5728
+ o.map ? (b(), R(k, B({
5729
5729
  key: 0,
5730
5730
  map: o.map,
5731
5731
  "menu-toggle": o.menuToggle,
5732
5732
  show: a.checkList.includes("graticule")
5733
5733
  }, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : M("", !0),
5734
- o.map ? (b(), R(y, B({
5734
+ o.map ? (b(), R(g, B({
5735
5735
  key: 1,
5736
5736
  map: o.map,
5737
5737
  area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
5738
5738
  }, t.$attrs), null, 16, ["map", "area"])) : M("", !0),
5739
- o.map ? (b(), R(k, B({
5739
+ o.map ? (b(), R(z, B({
5740
5740
  key: 2,
5741
5741
  map: o.map,
5742
5742
  zone: (re = a.otherLayers) == null ? void 0 : re["time-zones"]
@@ -5781,7 +5781,7 @@ function hs(t, e, o, i, a, r) {
5781
5781
  map: o.map,
5782
5782
  zone: ($ = a.otherLayers) == null ? void 0 : $["war-zones"]
5783
5783
  }, t.$attrs), null, 16, ["map", "zone"])) : M("", !0),
5784
- o.map ? (b(), R(z, B({
5784
+ o.map ? (b(), R(L, B({
5785
5785
  key: 8,
5786
5786
  map: o.map,
5787
5787
  area: (ae = a.otherLayers) == null ? void 0 : ae["gmdss-areas"]
@@ -5802,7 +5802,7 @@ function hs(t, e, o, i, a, r) {
5802
5802
  map: o.map,
5803
5803
  area: (ue = a.otherLayers) == null ? void 0 : ue["voluntary-reporting-area"]
5804
5804
  }, t.$attrs), null, 16, ["map", "area"])) : M("", !0),
5805
- o.map ? (b(), R(U, B({
5805
+ o.map ? (b(), R(H, B({
5806
5806
  key: 12,
5807
5807
  map: o.map,
5808
5808
  area: (ce = a.otherLayers) == null ? void 0 : ce["special-area"]
@@ -5891,12 +5891,12 @@ class so {
5891
5891
  * @param [lb.x, lb.y, rt.x, rt.y]
5892
5892
  */
5893
5893
  getBoundPixel() {
5894
- var y, k;
5895
- const e = (y = this.map) == null ? void 0 : y.getBounds();
5894
+ var g, z;
5895
+ const e = (g = this.map) == null ? void 0 : g.getBounds();
5896
5896
  if (!e)
5897
5897
  return [];
5898
- const o = ((k = this.map) == null ? void 0 : k.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [f, w] = this.mercator.px([c, a[1]], o), L = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
5899
- return [f, w, g + L, p];
5898
+ const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [f, p] = this.mercator.px([r, i[1]], o), [y, w] = this.mercator.px([c, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
5899
+ return [y, w, f + k, p];
5900
5900
  }
5901
5901
  /**
5902
5902
  * [视窗边界像素宽度]
@@ -5913,11 +5913,11 @@ class so {
5913
5913
  getWorldCopy(e, o) {
5914
5914
  const i = 2 ** o, [a, r, s, c] = e.map((p) => ~~(p / (i * 256))), n = [];
5915
5915
  for (let p = c; p <= r; p++)
5916
- for (let f = a; f <= s; f++)
5917
- n.push([f, p]);
5916
+ for (let y = a; y <= s; y++)
5917
+ n.push([y, p]);
5918
5918
  return n.map((p) => {
5919
- const f = 2 ** o * 256;
5920
- return [p[0] * f, p[1] * f, f];
5919
+ const y = 2 ** o * 256;
5920
+ return [p[0] * y, p[1] * y, y];
5921
5921
  });
5922
5922
  }
5923
5923
  resize() {
@@ -6001,13 +6001,13 @@ class je {
6001
6001
  if (a) {
6002
6002
  const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
6003
6003
  for (let n = 0; n < s; n++) {
6004
- const g = e.getActiveAttrib(a, n);
6005
- r[g.name] = e.getAttribLocation(a, g.name);
6004
+ const f = e.getActiveAttrib(a, n);
6005
+ r[f.name] = e.getAttribLocation(a, f.name);
6006
6006
  }
6007
6007
  const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
6008
6008
  for (let n = 0; n < c; n++) {
6009
- const g = e.getActiveUniform(a, n);
6010
- r[g.name] = e.getUniformLocation(a, g.name);
6009
+ const f = e.getActiveUniform(a, n);
6010
+ r[f.name] = e.getUniformLocation(a, f.name);
6011
6011
  }
6012
6012
  return r;
6013
6013
  }
@@ -6022,8 +6022,8 @@ class je {
6022
6022
  const c = s.getContext("2d");
6023
6023
  if (c && e) {
6024
6024
  const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
6025
- return o.forEach(([g, p]) => {
6026
- n.addColorStop(g, p);
6025
+ return o.forEach(([f, p]) => {
6026
+ n.addColorStop(f, p);
6027
6027
  }), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
6028
6028
  canvas: s,
6029
6029
  texture: this.createTexture(
@@ -6045,8 +6045,8 @@ class je {
6045
6045
  const s = 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), n = new Float32Array(a);
6046
6046
  for (let p = 0; p < a; p++)
6047
6047
  n[p] = p;
6048
- const g = this.createDataBuffer(e, "array", n);
6049
- return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: g };
6048
+ const f = this.createDataBuffer(e, "array", n);
6049
+ return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: f };
6050
6050
  }
6051
6051
  bind(e, o, i) {
6052
6052
  const a = this.createProgram(e, o, i);
@@ -6061,13 +6061,13 @@ class je {
6061
6061
  return {};
6062
6062
  }
6063
6063
  bindParticle(e, o, i, a, r, s) {
6064
- const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), g = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), f = e.createFramebuffer();
6065
- return { particle: c, screen: n, update: g, quadBuffer: p, frameBuffer: f };
6064
+ const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), f = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), y = e.createFramebuffer();
6065
+ return { particle: c, screen: n, update: f, quadBuffer: p, frameBuffer: y };
6066
6066
  }
6067
6067
  draw(e, o, i, a, r, s, c) {
6068
- var n, g;
6068
+ var n, f;
6069
6069
  if (o && i) {
6070
- e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (g = o == null ? void 0 : o.canvas) == null ? void 0 : g.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
6070
+ e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.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);
6071
6071
  try {
6072
6072
  o.useProgram(i);
6073
6073
  const p = {
@@ -6079,9 +6079,9 @@ class je {
6079
6079
  sRange: o.getUniformLocation(i, "u_range_s")
6080
6080
  };
6081
6081
  p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
6082
- const f = e.getBoundPixel(), w = e.map.getZoom() + 1, L = e.getWorldCopy(f, w);
6083
- for (const y of L) {
6084
- const k = (y[0] - f[0]) * e.ratio, T = (y[1] - f[3]) * e.ratio, O = y[2] * e.ratio, [I, P, _, z] = [k, O + k, T, O + T], C = new Float32Array([I, _, P, _, I, z, I, z, P, _, P, z]);
6082
+ const y = e.getBoundPixel(), w = e.map.getZoom() + 1, k = e.getWorldCopy(y, w);
6083
+ for (const g of k) {
6084
+ const z = (g[0] - y[0]) * e.ratio, T = (g[1] - y[3]) * e.ratio, O = g[2] * e.ratio, [I, P, _, L] = [z, O + z, T, O + T], C = new Float32Array([I, _, P, _, I, L, I, L, P, _, P, L]);
6085
6085
  o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
6086
6086
  }
6087
6087
  } catch (p) {
@@ -6384,7 +6384,7 @@ const us = {
6384
6384
  showCaption: !1,
6385
6385
  source: "wind-barb-source",
6386
6386
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
6387
- empty: H.featureCollection([]),
6387
+ empty: U.featureCollection([]),
6388
6388
  right: 10,
6389
6389
  bottom: 125,
6390
6390
  windBarbLoaded: !1,
@@ -6429,17 +6429,17 @@ const us = {
6429
6429
  else {
6430
6430
  this.map.addSource(this.source, { type: "geojson", data: r });
6431
6431
  for (let s = 0; s < (this.barbs ?? []).length - 1; s++) {
6432
- const c = (this.barbs ?? [])[s] || 0, n = (this.barbs ?? [])[s + 1] || 0, g = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, p = new Image(48, 48);
6433
- p.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[g]), p.onload = () => {
6434
- this.map.hasImage(g + "-icon") || this.map.addImage(g + "-icon", p), this.map.addLayer(
6432
+ const c = (this.barbs ?? [])[s] || 0, n = (this.barbs ?? [])[s + 1] || 0, f = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, p = new Image(48, 48);
6433
+ p.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[f]), p.onload = () => {
6434
+ this.map.hasImage(f + "-icon") || this.map.addImage(f + "-icon", p), this.map.addLayer(
6435
6435
  {
6436
- id: g,
6436
+ id: f,
6437
6437
  type: "symbol",
6438
6438
  filter: ["all", [">=", "spd", c], ["<", "spd", n]],
6439
6439
  source: this.source,
6440
6440
  layout: {
6441
6441
  "symbol-placement": "point",
6442
- "icon-image": g + "-icon",
6442
+ "icon-image": f + "-icon",
6443
6443
  // mapbox sprite
6444
6444
  "icon-size": 0.5,
6445
6445
  "icon-offset": [0, -20],
@@ -6703,7 +6703,7 @@ const vs = /* @__PURE__ */ K(bs, [["render", xs]]), _s = {
6703
6703
  directionLayer: "current-direction-layer",
6704
6704
  speedLayer: "current-speed-layer",
6705
6705
  speedLabelLayer: "current-speed-label-layer",
6706
- empty: H.featureCollection([])
6706
+ empty: U.featureCollection([])
6707
6707
  };
6708
6708
  },
6709
6709
  computed: {
@@ -6778,16 +6778,16 @@ const vs = /* @__PURE__ */ K(bs, [["render", xs]]), _s = {
6778
6778
  );
6779
6779
  const s = 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>';
6780
6780
  s.src = "data:image/svg+xml;base64," + window.btoa(c);
6781
- const n = new Image(48, 48), g = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6781
+ const n = new Image(48, 48), f = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6782
6782
  <path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6783
6783
  <path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6784
6784
  </svg>`;
6785
- n.src = "data:image/svg+xml;base64," + window.btoa(g);
6785
+ n.src = "data:image/svg+xml;base64," + window.btoa(f);
6786
6786
  const p = [n];
6787
- let f = 0;
6787
+ let y = 0;
6788
6788
  p.forEach((w) => {
6789
6789
  w.onload = () => {
6790
- f++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", n), f === 1 && this.map.addLayer(
6790
+ y++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", n), y === 1 && this.map.addLayer(
6791
6791
  {
6792
6792
  id: this.directionLayer,
6793
6793
  type: "symbol",
@@ -7155,7 +7155,7 @@ const As = /* @__PURE__ */ K(Ss, [["render", Ms], ["__scopeId", "data-v-7fffb2fc
7155
7155
  source: "sig-wave-height-source",
7156
7156
  heightLayer: "sig-wave-height-layer",
7157
7157
  heightLabelLayer: "sig-wave-height-label-layer",
7158
- empty: H.featureCollection([])
7158
+ empty: U.featureCollection([])
7159
7159
  };
7160
7160
  },
7161
7161
  watch: {
@@ -7433,7 +7433,7 @@ const js = /* @__PURE__ */ K(Bs, [["render", Es], ["__scopeId", "data-v-f2713d27
7433
7433
  layer: "prmsl-layer",
7434
7434
  labelLayer: "prmsl-label-layer",
7435
7435
  pointLabelLayer: "prmsl-point-label-layer",
7436
- empty: H.featureCollection([])
7436
+ empty: U.featureCollection([])
7437
7437
  };
7438
7438
  },
7439
7439
  watch: {
@@ -7564,8 +7564,8 @@ function Us(t, e, o, i, a, r) {
7564
7564
  text: "Map Layers",
7565
7565
  location: "left"
7566
7566
  }, {
7567
- activator: u(({ props: g }) => [
7568
- h(s, B(g, {
7567
+ activator: u(({ props: f }) => [
7568
+ h(s, B(f, {
7569
7569
  "min-width": "32",
7570
7570
  width: "32",
7571
7571
  height: "32",
@@ -8642,11 +8642,11 @@ const wn = {
8642
8642
  (t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
8643
8643
  },
8644
8644
  async fetchWeatherLayers(t = {}) {
8645
- var a, r, s, c, n, g, p, f, w;
8645
+ var a, r, s, c, n, f, p, y, w;
8646
8646
  const e = (/* @__PURE__ */ new Date()).valueOf();
8647
8647
  let o = 0, i = 0;
8648
8648
  if (this.map) {
8649
- const L = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), k = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
8649
+ const k = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), z = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
8650
8650
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
8651
8651
  const T = io.WEATHER_LAYERS.find((O) => {
8652
8652
  var I;
@@ -8658,7 +8658,7 @@ const wn = {
8658
8658
  let T = this.weatherWeight;
8659
8659
  if (T > 0) {
8660
8660
  const O = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8661
- `${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${L}&bbox=${k}&t=${this.realTime}`,
8661
+ `${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${k}&bbox=${z}&t=${this.realTime}`,
8662
8662
  {
8663
8663
  headers: {
8664
8664
  Authorization: this.defaultMeteoToken
@@ -8679,10 +8679,10 @@ const wn = {
8679
8679
  console.log(`[${C}] fetch layer error: ${v}`);
8680
8680
  })
8681
8681
  );
8682
- const z = await Promise.all(_);
8683
- this.weatherLayers = {}, z.map((C) => {
8684
- var U, Z, q, V;
8685
- const v = ((U = C == null ? void 0 : C.data) == null ? void 0 : U.data) || (C == null ? void 0 : C.data);
8682
+ const L = await Promise.all(_);
8683
+ this.weatherLayers = {}, L.map((C) => {
8684
+ var H, Z, q, V;
8685
+ const v = ((H = C == null ? void 0 : C.data) == null ? void 0 : H.data) || (C == null ? void 0 : C.data);
8686
8686
  let A = (q = (Z = C == null ? void 0 : C.config) == null ? void 0 : Z.headers) == null ? void 0 : q.key;
8687
8687
  A && v && (this.weatherLayers[A] = {
8688
8688
  raw: v,
@@ -8692,7 +8692,7 @@ const wn = {
8692
8692
  });
8693
8693
  }
8694
8694
  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"]) {
8695
- const P = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
8695
+ const P = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
8696
8696
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
8697
8697
  type: "json",
8698
8698
  direction: P,
@@ -8701,7 +8701,7 @@ const wn = {
8701
8701
  };
8702
8702
  }
8703
8703
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
8704
- const P = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8704
+ const P = (y = this.weatherLayers["current-direction"]) == null ? void 0 : y.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8705
8705
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
8706
8706
  type: "json",
8707
8707
  direction: P,
@@ -8728,7 +8728,7 @@ const wn = {
8728
8728
  t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
8729
8729
  },
8730
8730
  handleRampColorInitial() {
8731
- var t, e, o, i, a, r, s, c, n, g, p, f;
8731
+ var t, e, o, i, a, r, s, c, n, f, p, y;
8732
8732
  this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
8733
8733
  type: "canvas",
8734
8734
  canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
@@ -8749,11 +8749,11 @@ const wn = {
8749
8749
  canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
8750
8750
  animate: !0,
8751
8751
  coordinates: this.viewport.getBoundLngLat()
8752
- }), this.viewport.map.getLayer((g = this.viewport) == null ? void 0 : g.particleLayer) || this.viewport.map.addLayer(
8752
+ }), this.viewport.map.getLayer((f = this.viewport) == null ? void 0 : f.particleLayer) || this.viewport.map.addLayer(
8753
8753
  {
8754
8754
  type: "raster",
8755
8755
  id: (p = this.viewport) == null ? void 0 : p.particleLayer,
8756
- source: (f = this.viewport) == null ? void 0 : f.particleSource,
8756
+ source: (y = this.viewport) == null ? void 0 : y.particleSource,
8757
8757
  layout: {
8758
8758
  visibility: "none"
8759
8759
  }
@@ -8762,51 +8762,51 @@ const wn = {
8762
8762
  );
8763
8763
  },
8764
8764
  handleDrawWeather4Json() {
8765
- var g, p, f, w, L, y, k;
8765
+ var f, p, y, w, k, g, z;
8766
8766
  const t = (/* @__PURE__ */ new Date()).valueOf();
8767
8767
  let e = 0, o = 0;
8768
- const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = X.convertToStdLng(i._sw.lng), s = X.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
8768
+ const i = (f = this.map) == null ? void 0 : f.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = X.convertToStdLng(i._sw.lng), s = X.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
8769
8769
  for (const T in this.weatherLayers) {
8770
8770
  let O = !1;
8771
8771
  if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
8772
8772
  let I = [];
8773
8773
  if (T === "swell") {
8774
8774
  O = !0;
8775
- const P = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
8776
- for (const z in P)
8777
- if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8778
- const C = P[z].lng;
8775
+ const P = ((y = this.weatherLayers[T]) == null ? void 0 : y.direction) || {};
8776
+ for (const L in P)
8777
+ if (L > c && L < n && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8778
+ const C = P[L].lng;
8779
8779
  r > s ? C.forEach((v, A) => {
8780
- var U, Z, q, V, Q, ee;
8780
+ var H, Z, q, V, Q, ee;
8781
8781
  if (a < 2) {
8782
8782
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8783
- const J = H.point([v, z], {
8784
- val: ((U = P[z].val) == null ? void 0 : U[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8785
- spd: (q = P[z].spd) == null ? void 0 : q[A]
8783
+ const J = U.point([v, L], {
8784
+ val: ((H = P[L].val) == null ? void 0 : H[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
8785
+ spd: (q = P[L].spd) == null ? void 0 : q[A]
8786
8786
  });
8787
8787
  I.push(J);
8788
8788
  }
8789
8789
  } else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8790
- const J = H.point([v, z], {
8791
- val: ((V = P[z].val) == null ? void 0 : V[A]) || ((Q = P[z].dir) == null ? void 0 : Q[A]),
8792
- spd: (ee = P[z].spd) == null ? void 0 : ee[A]
8790
+ const J = U.point([v, L], {
8791
+ val: ((V = P[L].val) == null ? void 0 : V[A]) || ((Q = P[L].dir) == null ? void 0 : Q[A]),
8792
+ spd: (ee = P[L].spd) == null ? void 0 : ee[A]
8793
8793
  });
8794
8794
  I.push(J);
8795
8795
  }
8796
8796
  }) : C.forEach((v, A) => {
8797
- var U, Z, q, V, Q, ee;
8797
+ var H, Z, q, V, Q, ee;
8798
8798
  if (r < 2) {
8799
8799
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8800
- const J = H.point([v, z], {
8801
- val: ((U = P[z].val) == null ? void 0 : U[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8802
- spd: (q = P[z].spd) == null ? void 0 : q[A]
8800
+ const J = U.point([v, L], {
8801
+ val: ((H = P[L].val) == null ? void 0 : H[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
8802
+ spd: (q = P[L].spd) == null ? void 0 : q[A]
8803
8803
  });
8804
8804
  I.push(J);
8805
8805
  }
8806
8806
  } else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8807
- const J = H.point([v, z], {
8808
- val: ((V = P[z].val) == null ? void 0 : V[A]) || ((Q = P[z].dir) == null ? void 0 : Q[A]),
8809
- spd: (ee = P[z].spd) == null ? void 0 : ee[A]
8807
+ const J = U.point([v, L], {
8808
+ val: ((V = P[L].val) == null ? void 0 : V[A]) || ((Q = P[L].dir) == null ? void 0 : Q[A]),
8809
+ spd: (ee = P[L].spd) == null ? void 0 : ee[A]
8810
8810
  });
8811
8811
  I.push(J);
8812
8812
  }
@@ -8816,61 +8816,61 @@ const wn = {
8816
8816
  const _ = this.weatherLayers[T].height;
8817
8817
  if (_) {
8818
8818
  if (!_.data) {
8819
- const z = [];
8819
+ const L = [];
8820
8820
  for (const C in (w = _.raw) == null ? void 0 : w.LineString) {
8821
8821
  const v = _.raw.LineString[C];
8822
8822
  for (const A of v)
8823
- z.push(
8824
- H.lineString(A, {
8823
+ L.push(
8824
+ U.lineString(A, {
8825
8825
  val: Number(C)
8826
8826
  })
8827
8827
  );
8828
- _.data = H.featureCollection(z);
8828
+ _.data = U.featureCollection(L);
8829
8829
  }
8830
8830
  }
8831
8831
  if (_.data) {
8832
- const z = this.handleBboxClip(_.data, i);
8833
- I = I.concat(z);
8832
+ const L = this.handleBboxClip(_.data, i);
8833
+ I = I.concat(L);
8834
8834
  }
8835
8835
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
8836
8836
  }
8837
8837
  } else if (T === "current") {
8838
8838
  O = !0;
8839
- const P = ((L = this.weatherLayers[T]) == null ? void 0 : L.direction) || {};
8840
- for (const z in P)
8841
- if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8842
- const C = P[z].lng;
8839
+ const P = ((k = this.weatherLayers[T]) == null ? void 0 : k.direction) || {};
8840
+ for (const L in P)
8841
+ if (L > c && L < n && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8842
+ const C = P[L].lng;
8843
8843
  r > s ? C.forEach((v, A) => {
8844
- var U, Z, q, V, Q, ee;
8844
+ var H, Z, q, V, Q, ee;
8845
8845
  if (a < 2) {
8846
8846
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8847
- const J = H.point([v, z], {
8848
- val: ((U = P[z].val) == null ? void 0 : U[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8849
- spd: (q = P[z].spd) == null ? void 0 : q[A]
8847
+ const J = U.point([v, L], {
8848
+ val: ((H = P[L].val) == null ? void 0 : H[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
8849
+ spd: (q = P[L].spd) == null ? void 0 : q[A]
8850
8850
  });
8851
8851
  I.push(J);
8852
8852
  }
8853
8853
  } else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8854
- const J = H.point([v, z], {
8855
- val: ((V = P[z].val) == null ? void 0 : V[A]) || ((Q = P[z].dir) == null ? void 0 : Q[A]),
8856
- spd: (ee = P[z].spd) == null ? void 0 : ee[A]
8854
+ const J = U.point([v, L], {
8855
+ val: ((V = P[L].val) == null ? void 0 : V[A]) || ((Q = P[L].dir) == null ? void 0 : Q[A]),
8856
+ spd: (ee = P[L].spd) == null ? void 0 : ee[A]
8857
8857
  });
8858
8858
  I.push(J);
8859
8859
  }
8860
8860
  }) : C.forEach((v, A) => {
8861
- var U, Z, q, V, Q, ee;
8861
+ var H, Z, q, V, Q, ee;
8862
8862
  if (r < 2) {
8863
8863
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8864
- const J = H.point([v, z], {
8865
- val: ((U = P[z].val) == null ? void 0 : U[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8866
- spd: (q = P[z].spd) == null ? void 0 : q[A]
8864
+ const J = U.point([v, L], {
8865
+ val: ((H = P[L].val) == null ? void 0 : H[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
8866
+ spd: (q = P[L].spd) == null ? void 0 : q[A]
8867
8867
  });
8868
8868
  I.push(J);
8869
8869
  }
8870
8870
  } else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8871
- const J = H.point([v, z], {
8872
- val: ((V = P[z].val) == null ? void 0 : V[A]) || ((Q = P[z].dir) == null ? void 0 : Q[A]),
8873
- spd: (ee = P[z].spd) == null ? void 0 : ee[A]
8871
+ const J = U.point([v, L], {
8872
+ val: ((V = P[L].val) == null ? void 0 : V[A]) || ((Q = P[L].dir) == null ? void 0 : Q[A]),
8873
+ spd: (ee = P[L].spd) == null ? void 0 : ee[A]
8874
8874
  });
8875
8875
  I.push(J);
8876
8876
  }
@@ -8881,55 +8881,55 @@ const wn = {
8881
8881
  if (_) {
8882
8882
  if (!_.data) {
8883
8883
  const C = [];
8884
- for (const v in (y = _.raw) == null ? void 0 : y.Polygon) {
8884
+ for (const v in (g = _.raw) == null ? void 0 : g.Polygon) {
8885
8885
  const A = _.raw.Polygon[v];
8886
- for (const U of A)
8886
+ for (const H of A)
8887
8887
  C.push(
8888
- H.polygon(U, {
8888
+ U.polygon(H, {
8889
8889
  val: Number(v)
8890
8890
  })
8891
8891
  );
8892
8892
  }
8893
- _.data = H.featureCollection(C);
8893
+ _.data = U.featureCollection(C);
8894
8894
  }
8895
- const z = a < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
8896
- I = I.concat(z), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
8895
+ const L = a < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
8896
+ I = I.concat(L), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
8897
8897
  }
8898
8898
  } else if (T === "wind") {
8899
8899
  O = !0;
8900
8900
  const P = this.weatherLayers.wind.raw;
8901
8901
  for (const _ in P)
8902
8902
  if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8903
- const z = P[_].lng;
8904
- r > s ? z.forEach((C, v) => {
8905
- var A, U, Z, q;
8903
+ const L = P[_].lng;
8904
+ r > s ? L.forEach((C, v) => {
8905
+ var A, H, Z, q;
8906
8906
  if (a < 2) {
8907
8907
  if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8908
- const V = H.point([C, _], {
8909
- dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((U = P[_].dir) == null ? void 0 : U[v]),
8908
+ const V = U.point([C, _], {
8909
+ dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((H = P[_].dir) == null ? void 0 : H[v]),
8910
8910
  spd: P[_].spd[v]
8911
8911
  });
8912
8912
  I.push(V);
8913
8913
  }
8914
8914
  } else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8915
- const V = H.point([C, _], {
8915
+ const V = U.point([C, _], {
8916
8916
  dir: ((Z = P[_].val) == null ? void 0 : Z[v]) || ((q = P[_].dir) == null ? void 0 : q[v]),
8917
8917
  spd: P[_].spd[v]
8918
8918
  });
8919
8919
  I.push(V);
8920
8920
  }
8921
- }) : z.forEach((C, v) => {
8922
- var A, U, Z, q;
8921
+ }) : L.forEach((C, v) => {
8922
+ var A, H, Z, q;
8923
8923
  if (a < 2) {
8924
8924
  if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8925
- const V = H.point([C, _], {
8926
- dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((U = P[_].dir) == null ? void 0 : U[v]),
8925
+ const V = U.point([C, _], {
8926
+ dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((H = P[_].dir) == null ? void 0 : H[v]),
8927
8927
  spd: P[_].spd[v]
8928
8928
  });
8929
8929
  I.push(V);
8930
8930
  }
8931
8931
  } else if (C >= r && C <= s && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8932
- const V = H.point([C, _], {
8932
+ const V = U.point([C, _], {
8933
8933
  dir: ((Z = P[_].val) == null ? void 0 : Z[v]) || ((q = P[_].dir) == null ? void 0 : q[v]),
8934
8934
  spd: P[_].spd[v]
8935
8935
  });
@@ -8946,29 +8946,29 @@ const wn = {
8946
8946
  const P = this.weatherLayers[T].raw;
8947
8947
  if (P) {
8948
8948
  const _ = [];
8949
- for (const z in P.Polygon) {
8950
- const C = P.Polygon[z];
8949
+ for (const L in P.Polygon) {
8950
+ const C = P.Polygon[L];
8951
8951
  for (const v of C)
8952
8952
  _.push(
8953
- H.polygon(v, {
8954
- val: Number(z)
8953
+ U.polygon(v, {
8954
+ val: Number(L)
8955
8955
  })
8956
8956
  );
8957
8957
  }
8958
- for (const z in P.MultiPolygon) {
8959
- const C = P.MultiPolygon[z];
8958
+ for (const L in P.MultiPolygon) {
8959
+ const C = P.MultiPolygon[L];
8960
8960
  for (const v of C)
8961
8961
  _.push(
8962
- H.multiPolygon(v, {
8963
- val: Number(z)
8962
+ U.multiPolygon(v, {
8963
+ val: Number(L)
8964
8964
  })
8965
8965
  );
8966
8966
  }
8967
- for (const z in P.Point) {
8968
- const C = P.Point[z];
8969
- for (let v = 0; v < ((k = C.lng) == null ? void 0 : k.length); v++)
8967
+ for (const L in P.Point) {
8968
+ const C = P.Point[L];
8969
+ for (let v = 0; v < ((z = C.lng) == null ? void 0 : z.length); v++)
8970
8970
  _.push(
8971
- H.point([C.lng[v], z], {
8971
+ U.point([C.lng[v], L], {
8972
8972
  val: Number(C.val[v])
8973
8973
  })
8974
8974
  );
@@ -8985,21 +8985,21 @@ const wn = {
8985
8985
  const P = this.weatherLayers[T].raw;
8986
8986
  if (P) {
8987
8987
  const _ = [];
8988
- for (const z in P.LineString) {
8989
- const C = P.LineString[z];
8988
+ for (const L in P.LineString) {
8989
+ const C = P.LineString[L];
8990
8990
  for (const v of C)
8991
8991
  _.push(
8992
- H.lineString(v, {
8993
- val: Number(z)
8992
+ U.lineString(v, {
8993
+ val: Number(L)
8994
8994
  })
8995
8995
  );
8996
8996
  }
8997
- for (const z in P.Point)
8998
- P.Point[z].lng.forEach((C, v) => {
8997
+ for (const L in P.Point)
8998
+ P.Point[L].lng.forEach((C, v) => {
8999
8999
  C = X.convertToStdLng(C), _.push(
9000
- H.point([C, z], {
9001
- val: P.Point[z].val[v],
9002
- type: P.Point[z].type[v]
9000
+ U.point([C, L], {
9001
+ val: P.Point[L].val[v],
9002
+ type: P.Point[L].type[v]
9003
9003
  })
9004
9004
  );
9005
9005
  });
@@ -9008,7 +9008,7 @@ const wn = {
9008
9008
  }
9009
9009
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
9010
9010
  }
9011
- I.length && (this.weatherLayers[T].data = H.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
9011
+ I.length && (this.weatherLayers[T].data = U.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
9012
9012
  }
9013
9013
  }
9014
9014
  },
@@ -9022,10 +9022,10 @@ const wn = {
9022
9022
  return t.features.forEach((r) => {
9023
9023
  if (r.geometry.type !== "Point")
9024
9024
  if (i > a) {
9025
- let s = [i, e._sw.lat, 180, e._ne.lat], c = H.bboxClip(r, s);
9026
- c.geometry.coordinates.length && o.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c = H.bboxClip(r, s), c.geometry.coordinates.length && o.push(c);
9025
+ let s = [i, e._sw.lat, 180, e._ne.lat], c = U.bboxClip(r, s);
9026
+ c.geometry.coordinates.length && o.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c = U.bboxClip(r, s), c.geometry.coordinates.length && o.push(c);
9027
9027
  } else {
9028
- const s = [i, e._sw.lat, a, e._ne.lat], c = H.bboxClip(r, s);
9028
+ const s = [i, e._sw.lat, a, e._ne.lat], c = U.bboxClip(r, s);
9029
9029
  c.geometry.coordinates.length && o.push(c);
9030
9030
  }
9031
9031
  else
@@ -9051,7 +9051,7 @@ const wn = {
9051
9051
  }, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, Nn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Gn = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, qn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label mb-3" }, Kn = { class: "text-body-1 py-2" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" };
9052
9052
  function Qn(t, e, o, i, a, r) {
9053
9053
  var pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e;
9054
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), L = x("VSwitch"), y = x("VCardTitle"), k = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), z = x("IdmCurrentDirection"), C = x("IdmPrmsl"), v = x("IdmWindParticle"), A = x("IdmCurrentParticle"), U = x("IdmWave"), Z = x("IdmSwell"), q = x("IdmIceEdge"), V = x("IdmIceCover"), Q = x("IdmIceThickness"), ee = x("IdmPrecip3h"), J = x("IdmVisibility"), re = x("IdmWaterTemp"), he = x("IdmTemp");
9054
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), f = x("VRow"), p = x("VCardText"), y = x("VDivider"), w = x("VCard"), k = x("VSwitch"), g = x("VCardTitle"), z = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), L = x("IdmCurrentDirection"), C = x("IdmPrmsl"), v = x("IdmWindParticle"), A = x("IdmCurrentParticle"), H = x("IdmWave"), Z = x("IdmSwell"), q = x("IdmIceEdge"), V = x("IdmIceCover"), Q = x("IdmIceThickness"), ee = x("IdmPrecip3h"), J = x("IdmVisibility"), re = x("IdmWaterTemp"), he = x("IdmTemp");
9055
9055
  return b(), S("div", xn, [
9056
9056
  l("div", {
9057
9057
  class: "menu-bar-box transition pa-1",
@@ -9117,7 +9117,7 @@ function Qn(t, e, o, i, a, r) {
9117
9117
  h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
9118
9118
  default: u(() => [
9119
9119
  e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
9120
- h(g, { class: "ma-0 ml-n1 text-body-2" }, {
9120
+ h(f, { class: "ma-0 ml-n1 text-body-2" }, {
9121
9121
  default: u(() => [
9122
9122
  (b(!0), S(be, null, we(a.legend.barbs, (W, te) => (b(), R(n, {
9123
9123
  key: W,
@@ -9142,11 +9142,11 @@ function Qn(t, e, o, i, a, r) {
9142
9142
  _: 1,
9143
9143
  __: [10]
9144
9144
  }),
9145
- h(f, { vertical: "" }),
9145
+ h(y, { vertical: "" }),
9146
9146
  h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
9147
9147
  default: u(() => [
9148
9148
  e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
9149
- h(g, {
9149
+ h(f, {
9150
9150
  class: "ma-0 ml-1",
9151
9151
  style: { width: "100px" }
9152
9152
  }, {
@@ -9174,11 +9174,11 @@ function Qn(t, e, o, i, a, r) {
9174
9174
  _: 1,
9175
9175
  __: [11]
9176
9176
  }),
9177
- h(f, { vertical: "" }),
9177
+ h(y, { vertical: "" }),
9178
9178
  h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
9179
9179
  default: u(() => [
9180
9180
  e[12] || (e[12] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
9181
- h(g, {
9181
+ h(f, {
9182
9182
  class: "ma-0 ml-n5",
9183
9183
  style: { width: "110px" }
9184
9184
  }, {
@@ -9219,7 +9219,7 @@ function Qn(t, e, o, i, a, r) {
9219
9219
  l("div", In, [
9220
9220
  l("div", Mn, [
9221
9221
  l("div", An, m(t.$t("weather.weather")), 1),
9222
- h(L, {
9222
+ h(k, {
9223
9223
  modelValue: a.autoActive,
9224
9224
  "onUpdate:modelValue": e[1] || (e[1] = (W) => a.autoActive = W),
9225
9225
  class: "small-switch",
@@ -9250,9 +9250,9 @@ function Qn(t, e, o, i, a, r) {
9250
9250
  elevation: "0"
9251
9251
  }, {
9252
9252
  default: u(() => [
9253
- h(k, { class: "border-b-thin" }, {
9253
+ h(z, { class: "border-b-thin" }, {
9254
9254
  default: u(() => [
9255
- h(y, {
9255
+ h(g, {
9256
9256
  class: "text-subtitle-1 font-weight-medium",
9257
9257
  style: { "font-size": "16px !important" }
9258
9258
  }, {
@@ -9290,9 +9290,9 @@ function Qn(t, e, o, i, a, r) {
9290
9290
  elevation: "0"
9291
9291
  }, {
9292
9292
  default: u(() => [
9293
- h(k, { class: "border-b-thin" }, {
9293
+ h(z, { class: "border-b-thin" }, {
9294
9294
  default: u(() => [
9295
- h(y, {
9295
+ h(g, {
9296
9296
  class: "text-subtitle-1 font-weight-medium",
9297
9297
  style: { "font-size": "16px !important" }
9298
9298
  }, {
@@ -9324,7 +9324,7 @@ function Qn(t, e, o, i, a, r) {
9324
9324
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
9325
9325
  a.renderKey === "wind-particle" && W.key === "wind-particle" ? (b(), S("div", Dn, [
9326
9326
  l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
9327
- h(L, {
9327
+ h(k, {
9328
9328
  modelValue: a.showWindParticle,
9329
9329
  "onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
9330
9330
  label: "",
@@ -9338,7 +9338,7 @@ function Qn(t, e, o, i, a, r) {
9338
9338
  ])) : M("", !0),
9339
9339
  a.renderKey === "current-particle" && W.key === "current-particle" ? (b(), S("div", Rn, [
9340
9340
  l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
9341
- h(L, {
9341
+ h(k, {
9342
9342
  modelValue: a.showCurrentParticle,
9343
9343
  "onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
9344
9344
  label: "",
@@ -9448,9 +9448,9 @@ function Qn(t, e, o, i, a, r) {
9448
9448
  elevation: "0"
9449
9449
  }, {
9450
9450
  default: u(() => [
9451
- h(k, { class: "border-b-thin" }, {
9451
+ h(z, { class: "border-b-thin" }, {
9452
9452
  default: u(() => [
9453
- h(y, {
9453
+ h(g, {
9454
9454
  class: "text-subtitle-1 font-weight-medium",
9455
9455
  style: { "font-size": "16px !important" }
9456
9456
  }, {
@@ -9473,7 +9473,7 @@ function Qn(t, e, o, i, a, r) {
9473
9473
  l("div", jn, m((N = (Ne = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ne.ECMWF) == null ? void 0 : N.source) + " " + m((Ze = (Ve = (Y = a.models) == null ? void 0 : Y.weather) == null ? void 0 : Ve.ECMWF) == null ? void 0 : Ze.spatialResolution) + m(t.$t("units.km")) + " " + m((Ke = (Ye = (Te = (qe = a.models) == null ? void 0 : qe.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + m(t.$t("units.days")), 1),
9474
9474
  l("div", Fn, m(t.$t("weather.source")) + ": ECMWF", 1),
9475
9475
  l("div", Hn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Qe = (Je = ($e = (Xe = a.models) == null ? void 0 : Xe.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.initialisationTime)), 1),
9476
- h(f),
9476
+ h(y),
9477
9477
  l("div", Un, m(t.$t("weather.wave")), 1),
9478
9478
  l("div", Wn, m((at = (ot = (tt = (et = a.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : ot.NOAA) == null ? void 0 : at.source) + " " + m((st = (lt = (rt = (it = a.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + m(t.$t("units.km")) + " " + m((ht = (dt = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + m(t.$t("units.days")), 1),
9479
9479
  l("div", Gn, m(t.$t("weather.source")) + ": NOAA", 1),
@@ -9481,7 +9481,7 @@ function Qn(t, e, o, i, a, r) {
9481
9481
  l("div", Zn, m((vt = (xt = (wt = (bt = a.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + m((Lt = (zt = (kt = (_t = a.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + m(t.$t("units.km")) + " " + m((It = (St = (Tt = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : It.days) + m(t.$t("units.days")), 1),
9482
9482
  l("div", qn, m(t.$t("weather.source")) + ": ECMWF", 1),
9483
9483
  l("div", Yn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Ot = (Rt = (Dt = (At = (Mt = a.models) == null ? void 0 : Mt.marine) == null ? void 0 : At.wave) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
9484
- h(f),
9484
+ h(y),
9485
9485
  l("div", Kn, m(t.$t("weather.currents")), 1),
9486
9486
  l("div", Xn, m((jt = (Et = (Nt = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Nt.current) == null ? void 0 : Et.ECMWF) == null ? void 0 : jt.source) + " " + m((Wt = (Ut = (Ht = (Ft = a.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Ut.ECMWF) == null ? void 0 : Wt.spatialResolution) + m(t.$t("units.km")) + " " + m((Yt = (qt = (Zt = (Vt = (Gt = a.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : qt.meta) == null ? void 0 : Yt.days) + m(t.$t("units.days")), 1),
9487
9487
  l("div", $n, m(t.$t("weather.source")) + ": ECMWF", 1),
@@ -9512,7 +9512,7 @@ function Qn(t, e, o, i, a, r) {
9512
9512
  "menu-toggle": o.menuToggle,
9513
9513
  "active-weather-layers": a.activeWeatherLayers
9514
9514
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : M("", !0),
9515
- o.map ? (b(), R(z, B({
9515
+ o.map ? (b(), R(L, B({
9516
9516
  key: 3,
9517
9517
  map: o.map,
9518
9518
  "map-feather": o.mapFeather,
@@ -9540,7 +9540,7 @@ function Qn(t, e, o, i, a, r) {
9540
9540
  factor: (ce = a.weatherLayers) == null ? void 0 : ce["current-particle"],
9541
9541
  "menu-toggle": o.menuToggle
9542
9542
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : M("", !0),
9543
- o.map ? (b(), R(U, B({
9543
+ o.map ? (b(), R(H, B({
9544
9544
  key: 7,
9545
9545
  viewport: a.viewport,
9546
9546
  factor: (F = a.weatherLayers) == null ? void 0 : F["sig-wave"],
@@ -9916,19 +9916,19 @@ class Za {
9916
9916
  const a = e.toLowerCase().split(","), r = [], s = [];
9917
9917
  for (const c of a) {
9918
9918
  let n = to.find((p) => {
9919
- var f, w, L;
9920
- return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = p.name) == null ? void 0 : L.toLowerCase()) === c;
9921
- }), g = oo.find((p) => {
9922
- var f, w, L;
9923
- return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = p.name) == null ? void 0 : L.toLowerCase()) === c;
9919
+ var y, w, k;
9920
+ return ((y = p.models) == null ? void 0 : y.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((k = p.name) == null ? void 0 : k.toLowerCase()) === c;
9921
+ }), f = oo.find((p) => {
9922
+ var y, w, k;
9923
+ return ((y = p.models) == null ? void 0 : y.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((k = p.name) == null ? void 0 : k.toLowerCase()) === c;
9924
9924
  });
9925
9925
  n = n || to.find((p) => {
9926
- var f, w;
9927
- return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = g == null ? void 0 : g.alias) == null ? void 0 : w.toLowerCase());
9928
- }), g = g || oo.find((p) => {
9929
- var f, w;
9930
- return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
9931
- }), n = n || to[0], g = g || oo[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = g.models) != null && i.includes(c) ? c : g.model);
9926
+ var y, w;
9927
+ return ((y = p.alias) == null ? void 0 : y.toLowerCase()) === ((w = f == null ? void 0 : f.alias) == null ? void 0 : w.toLowerCase());
9928
+ }), f = f || oo.find((p) => {
9929
+ var y, w;
9930
+ return ((y = p.alias) == null ? void 0 : y.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
9931
+ }), n = n || to[0], f = f || oo[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = f.models) != null && i.includes(c) ? c : f.model);
9932
9932
  }
9933
9933
  return {
9934
9934
  weatherModels: r.join(","),
@@ -9945,8 +9945,8 @@ class Za {
9945
9945
  }), a;
9946
9946
  }
9947
9947
  static pickHourly(e, o) {
9948
- var i, a, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Ie;
9949
- const ge = typeof o == "string" ? D(o) : o, fe = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, Ce = D((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9948
+ var i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Ie;
9949
+ const ge = typeof o == "string" ? D(o) : o, fe = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, Ce = D((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (f = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : f.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9950
9950
  if (ge.isBetween(oe, le, "millisecond", "[]")) {
9951
9951
  const E = ge.utc().diff(oe, "h", !1);
9952
9952
  let ye, Me;
@@ -9955,13 +9955,13 @@ class Za {
9955
9955
  for (const N of fe) {
9956
9956
  const Y = N == null ? void 0 : N.hourly;
9957
9957
  for (let Te = E - (E - 1) % 3; Te <= E; Te++)
9958
- Be += (f = Y == null ? void 0 : Y.precipitation) == null ? void 0 : f.at(Te);
9958
+ Be += (y = Y == null ? void 0 : Y.precipitation) == null ? void 0 : y.at(Te);
9959
9959
  for (let Te = E - (E - 1) % 6; Te <= E; Te++)
9960
9960
  Ne += (w = Y == null ? void 0 : Y.precipitation) == null ? void 0 : w.at(Te);
9961
9961
  ye = {
9962
- temp: (L = Y == null ? void 0 : Y.temperature_2m) == null ? void 0 : L.at(E),
9963
- apparentTemp: (y = Y == null ? void 0 : Y.apparent_temperature) == null ? void 0 : y.at(E),
9964
- rh: (k = Y == null ? void 0 : Y.relative_humidity_2m) == null ? void 0 : k.at(E),
9962
+ temp: (k = Y == null ? void 0 : Y.temperature_2m) == null ? void 0 : k.at(E),
9963
+ apparentTemp: (g = Y == null ? void 0 : Y.apparent_temperature) == null ? void 0 : g.at(E),
9964
+ rh: (z = Y == null ? void 0 : Y.relative_humidity_2m) == null ? void 0 : z.at(E),
9965
9965
  dp: (T = Y == null ? void 0 : Y.dew_point_2m) == null ? void 0 : T.at(E),
9966
9966
  precip: {
9967
9967
  probability: (O = Y == null ? void 0 : Y.precipitation_probability) == null ? void 0 : O.at(E),
@@ -9971,12 +9971,12 @@ class Za {
9971
9971
  },
9972
9972
  pmsl: (P = Y == null ? void 0 : Y.pressure_msl) == null ? void 0 : P.at(E),
9973
9973
  psurf: (_ = Y == null ? void 0 : Y.surface_pressure) == null ? void 0 : _.at(E),
9974
- code: (z = Y == null ? void 0 : Y.weather_code) == null ? void 0 : z.at(E),
9974
+ code: (L = Y == null ? void 0 : Y.weather_code) == null ? void 0 : L.at(E),
9975
9975
  visibility: this.m2nm((C = Y == null ? void 0 : Y.visibility) == null ? void 0 : C.at(E)),
9976
9976
  wind: {
9977
9977
  speed: (v = Y == null ? void 0 : Y.wind_speed_10m) == null ? void 0 : v.at(E),
9978
9978
  kts: (A = Y == null ? void 0 : Y.wind_speed_10m) == null ? void 0 : A.at(E),
9979
- degree: (U = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : U.at(E),
9979
+ degree: (H = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : H.at(E),
9980
9980
  bearing: ((Z = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((q = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : q.at(E)) + 180) % 360 : null,
9981
9981
  gusts: (V = Y == null ? void 0 : Y.wind_gusts_10m) == null ? void 0 : V.at(E)
9982
9982
  },
@@ -10032,7 +10032,7 @@ class Za {
10032
10032
  return Oe;
10033
10033
  }
10034
10034
  static toLegacy(e) {
10035
- var o, i, a, r, s, c, n, g, p, f;
10035
+ var o, i, a, r, s, c, n, f, p, y;
10036
10036
  return {
10037
10037
  wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
10038
10038
  visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
@@ -10042,9 +10042,9 @@ class Za {
10042
10042
  kts: (c = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : c.gusts
10043
10043
  },
10044
10044
  precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
10045
- code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
10045
+ code: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.code,
10046
10046
  name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
10047
- url: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.url,
10047
+ url: (y = e == null ? void 0 : e.weather) == null ? void 0 : y.url,
10048
10048
  wave: e == null ? void 0 : e.wave,
10049
10049
  current: e == null ? void 0 : e.current,
10050
10050
  sst: e == null ? void 0 : e.sst,
@@ -10054,7 +10054,7 @@ class Za {
10054
10054
  };
10055
10055
  }
10056
10056
  static pickDaily(e, o) {
10057
- var i, a, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De;
10057
+ var i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De;
10058
10058
  const Re = typeof o == "string" ? D(o) : o, _e = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, te = D((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Fe = D((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
10059
10059
  if (Re.isBetween(te, Fe, "millisecond", "[]")) {
10060
10060
  let ge, fe;
@@ -10063,18 +10063,18 @@ class Za {
10063
10063
  for (const Ce of _e) {
10064
10064
  const oe = Ce.daily;
10065
10065
  ge = {
10066
- code: (g = oe.weather_code) == null ? void 0 : g.at(G),
10066
+ code: (f = oe.weather_code) == null ? void 0 : f.at(G),
10067
10067
  temp: {
10068
10068
  max: (p = oe.temperature_2m_max) == null ? void 0 : p.at(G),
10069
- min: (f = oe.temperature_2m_min) == null ? void 0 : f.at(G),
10069
+ min: (y = oe.temperature_2m_min) == null ? void 0 : y.at(G),
10070
10070
  mean: (w = oe.temperature_2m_mean) == null ? void 0 : w.at(G)
10071
10071
  },
10072
10072
  apparentTemp: {
10073
- max: (L = oe.apparent_temperature_max) == null ? void 0 : L.at(G),
10074
- min: (y = oe.apparent_temperature_min) == null ? void 0 : y.at(G)
10073
+ max: (k = oe.apparent_temperature_max) == null ? void 0 : k.at(G),
10074
+ min: (g = oe.apparent_temperature_min) == null ? void 0 : g.at(G)
10075
10075
  },
10076
10076
  precip: {
10077
- sum: (k = oe.precipitation_sum) == null ? void 0 : k.at(G),
10077
+ sum: (z = oe.precipitation_sum) == null ? void 0 : z.at(G),
10078
10078
  rainSum: (T = oe.rain_sum) == null ? void 0 : T.at(G),
10079
10079
  snowfallSum: (O = oe.snowfall_sum) == null ? void 0 : O.at(G),
10080
10080
  showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(G),
@@ -10082,13 +10082,13 @@ class Za {
10082
10082
  probability: (_ = oe.precipitation_probability_max) == null ? void 0 : _.at(G)
10083
10083
  },
10084
10084
  rh: {
10085
- max: (z = oe.relative_humidity_2m_max) == null ? void 0 : z.at(G),
10085
+ max: (L = oe.relative_humidity_2m_max) == null ? void 0 : L.at(G),
10086
10086
  min: (C = oe.relative_humidity_2m_min) == null ? void 0 : C.at(G),
10087
10087
  mean: (v = oe.relative_humidity_2m_mean) == null ? void 0 : v.at(G)
10088
10088
  },
10089
10089
  wind: {
10090
10090
  speed: (A = oe.wind_speed_10m_max) == null ? void 0 : A.at(G),
10091
- kts: (U = oe.wind_speed_10m_max) == null ? void 0 : U.at(G),
10091
+ kts: (H = oe.wind_speed_10m_max) == null ? void 0 : H.at(G),
10092
10092
  degree: (Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(G),
10093
10093
  gusts: (q = oe.wind_gusts_10m_max) == null ? void 0 : q.at(G),
10094
10094
  bearing: ((V = oe.wind_direction_10m_dominant) == null ? void 0 : V.at(G)) !== null ? (((Q = oe.wind_direction_10m_dominant) == null ? void 0 : Q.at(G)) + 180) % 360 : null
@@ -10540,6 +10540,9 @@ const tc = {
10540
10540
  permission: {
10541
10541
  type: Number
10542
10542
  },
10543
+ locale: {
10544
+ type: String
10545
+ },
10543
10546
  map: {
10544
10547
  type: Object
10545
10548
  },
@@ -10603,9 +10606,9 @@ const tc = {
10603
10606
  showTropicalsInfo: !1,
10604
10607
  activeTropicals: void 0,
10605
10608
  activeTropicalsMarker: void 0,
10606
- empty: H.featureCollection([]),
10609
+ empty: U.featureCollection([]),
10607
10610
  circleSource: "circle-source",
10608
- circleSourceData: H.featureCollection([]),
10611
+ circleSourceData: U.featureCollection([]),
10609
10612
  circleLayer: "tropical-circle-layer",
10610
10613
  showLegend: !1,
10611
10614
  showHoverPoint: !1,
@@ -10725,18 +10728,18 @@ const tc = {
10725
10728
  }
10726
10729
  });
10727
10730
  if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
10728
- const g = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
10729
- await Se.get(g.tropicals, {
10731
+ const f = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
10732
+ await Se.get(f.tropicals, {
10730
10733
  headers: {
10731
10734
  Authorization: this.token || this.defaultMeteoToken,
10732
10735
  key: "tropicals"
10733
10736
  },
10734
- responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
10737
+ responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
10735
10738
  }).then((p) => {
10736
- var L, y, k;
10737
- const f = Va.convert2Geojson(((L = p == null ? void 0 : p.data) == null ? void 0 : L.data) || (p == null ? void 0 : p.data));
10738
- ((k = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : k.key) && f && (this.tropicals = {
10739
- data: f,
10739
+ var k, g, z;
10740
+ const y = Va.convert2Geojson(((k = p == null ? void 0 : p.data) == null ? void 0 : k.data) || (p == null ? void 0 : p.data));
10741
+ ((z = (g = p == null ? void 0 : p.config) == null ? void 0 : g.headers) == null ? void 0 : z.key) && y && (this.tropicals = {
10742
+ data: y,
10740
10743
  active: !0,
10741
10744
  cached: !0,
10742
10745
  type: "json",
@@ -10753,47 +10756,47 @@ const tc = {
10753
10756
  handleRefresh() {
10754
10757
  var e, o;
10755
10758
  (((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
10756
- var a, r, s, c, n, g, p, f, w, L, y;
10759
+ var a, r, s, c, n, f, p, y, w, k, g;
10757
10760
  if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
10758
- let k = "";
10761
+ let z = "";
10759
10762
  switch (!0) {
10760
10763
  case ((r = i.properties.wind) == null ? void 0 : r.kts) < 32:
10761
- k = "TD";
10764
+ z = "TD";
10762
10765
  break;
10763
10766
  case ((s = i.properties.wind) == null ? void 0 : s.kts) < 47:
10764
- k = "TS";
10767
+ z = "TS";
10765
10768
  break;
10766
10769
  case ((c = i.properties.wind) == null ? void 0 : c.kts) < 63:
10767
- k = "STS";
10770
+ z = "STS";
10768
10771
  break;
10769
10772
  case ((n = i.properties.wind) == null ? void 0 : n.kts) < 79:
10770
- k = "TY";
10773
+ z = "TY";
10771
10774
  break;
10772
- case ((g = i.properties.wind) == null ? void 0 : g.kts) < 94:
10773
- k = "STY";
10775
+ case ((f = i.properties.wind) == null ? void 0 : f.kts) < 94:
10776
+ z = "STY";
10774
10777
  break;
10775
10778
  case ((p = i.properties.wind) == null ? void 0 : p.kts) >= 94:
10776
- k = "Super TY";
10779
+ z = "Super TY";
10777
10780
  break;
10778
10781
  default:
10779
- k = "Super TY";
10782
+ z = "Super TY";
10780
10783
  break;
10781
10784
  }
10782
- i.properties.level = k;
10785
+ i.properties.level = z;
10783
10786
  }
10784
- ((f = i.geometry) == null ? void 0 : f.type) === "Point" && ((w = i.properties) != null && w.important) && (i.properties.format = (y = (L = D(i.properties.date)) == null ? void 0 : L.utcOffset(this.timeZone)) == null ? void 0 : y.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
10787
+ ((y = i.geometry) == null ? void 0 : y.type) === "Point" && ((w = i.properties) != null && w.important) && (i.properties.format = (g = (k = D(i.properties.date)) == null ? void 0 : k.utcOffset(this.timeZone)) == null ? void 0 : g.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
10785
10788
  }), this.handleInit();
10786
10789
  },
10787
10790
  handleInit() {
10788
- var t, e, o, i, a, r, s, c, n, g, p, f;
10789
- 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 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (f = (p = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : p.idmBottomBar) == null || f.handleToggle("tropical", !1);
10791
+ var t, e, o, i, a, r, s, c, n, f, p, y;
10792
+ 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 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (y = (p = (f = this.$parent) == null ? void 0 : f.$refs) == null ? void 0 : p.idmBottomBar) == null || y.handleToggle("tropical", !1);
10790
10793
  },
10791
10794
  handleRender() {
10792
- var t, e, o, i, a, r, s, c, n, g;
10795
+ var t, e, o, i, a, r, s, c, n, f;
10793
10796
  if (this.tropicals && this.map) {
10794
10797
  const p = (/* @__PURE__ */ new Date()).valueOf();
10795
- let f = 0, w = 0;
10796
- (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() - (p + f), console.log("[tropicals] update elapsed: ", w, ", total: ", f += w)) : (this.map.addSource(this.source, {
10798
+ let y = 0, w = 0;
10799
+ (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() - (p + y), console.log("[tropicals] update elapsed: ", w, ", total: ", y += w)) : (this.map.addSource(this.source, {
10797
10800
  type: "geojson",
10798
10801
  data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
10799
10802
  }), this.map.addLayer({
@@ -10890,9 +10893,9 @@ const tc = {
10890
10893
  ],
10891
10894
  "text-halo-width": 4
10892
10895
  }
10893
- }), w = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", w, ", total: ", f += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] update elapsed: ", w, ", total: ", f += w)) : (this.map.addSource(this.clusterSource, {
10896
+ }), w = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", w, ", total: ", y += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] update elapsed: ", w, ", total: ", y += w)) : (this.map.addSource(this.clusterSource, {
10894
10897
  type: "geojson",
10895
- data: (n = this.tropicals) != null && n.active ? (g = this.tropicals) == null ? void 0 : g.data : this.empty
10898
+ data: (n = this.tropicals) != null && n.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
10896
10899
  // cluster: true,
10897
10900
  // clusterRadius: 10, // 聚合半径
10898
10901
  }), this.map.addLayer({
@@ -10993,7 +10996,7 @@ const tc = {
10993
10996
  source: this.clusterSource,
10994
10997
  filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["==", "important", !0]],
10995
10998
  layout: {
10996
- "text-field": ["get", "name"],
10999
+ "text-field": ["get", this.locale === "en" ? "name" : "nameCn"],
10997
11000
  "text-anchor": "bottom",
10998
11001
  "text-size": 16,
10999
11002
  "text-allow-overlap": !0,
@@ -11006,9 +11009,9 @@ const tc = {
11006
11009
  "text-halo-color": "#ffffff",
11007
11010
  "text-halo-width": 1
11008
11011
  }
11009
- }), w = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", w, ", total: ", f += w)), this.handleDrawCircle();
11010
- const L = Va.interpolate(this.tropicals, 1);
11011
- this.interpolateData = JSON.parse(JSON.stringify(L)), this.handleDateChange();
11012
+ }), w = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", w, ", total: ", y += w)), this.handleDrawCircle();
11013
+ const k = Va.interpolate(this.tropicals, 1);
11014
+ this.interpolateData = JSON.parse(JSON.stringify(k)), this.handleDateChange();
11012
11015
  }
11013
11016
  },
11014
11017
  handleClear() {
@@ -11016,9 +11019,9 @@ const tc = {
11016
11019
  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), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.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();
11017
11020
  },
11018
11021
  handleDateChange() {
11019
- var t, e, o, i, a, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J;
11022
+ var t, e, o, i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J;
11020
11023
  if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
11021
- const re = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(he), ne = H.featureCollection([...he]);
11024
+ const re = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(he), ne = U.featureCollection([...he]);
11022
11025
  pe.forEach(($) => {
11023
11026
  ne.features.push($);
11024
11027
  }), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(ne) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
@@ -11038,7 +11041,7 @@ const tc = {
11038
11041
  for (const $ of he)
11039
11042
  if (!$.properties.disabled) {
11040
11043
  let ae = "#f44336";
11041
- ((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((L = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : L.kts) < 47 ? ae = "#f2f202" : ((k = (y = $.properties) == null ? void 0 : y.wind) == null ? void 0 : k.kts) >= 47 && ((O = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((P = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((z = (_ = $.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? ae = "#f44336" : ((v = (C = $.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((U = (A = $.properties) == null ? void 0 : A.wind) == null ? void 0 : U.kts) < 94 ? ae = "#f903d0" : ((q = (Z = $.properties) == null ? void 0 : Z.wind) == null ? void 0 : q.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
11044
+ ((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((f = (n = $.properties) == null ? void 0 : n.wind) != null && f.kts) ? ae = "#03f869" : ((y = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : y.kts) >= 32 && ((k = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : k.kts) < 47 ? ae = "#f2f202" : ((z = (g = $.properties) == null ? void 0 : g.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((P = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((L = (_ = $.properties) == null ? void 0 : _.wind) == null ? void 0 : L.kts) < 79 ? ae = "#f44336" : ((v = (C = $.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((H = (A = $.properties) == null ? void 0 : A.wind) == null ? void 0 : H.kts) < 94 ? ae = "#f903d0" : ((q = (Z = $.properties) == null ? void 0 : Z.wind) == null ? void 0 : q.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
11042
11045
  const ue = `<svg t="1719918955501"
11043
11046
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
11044
11047
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -11062,26 +11065,27 @@ const tc = {
11062
11065
  (ee = this.map) != null && ee.getSource(this.interpolateSource) && ((J = this.map) == null || J.getSource(this.interpolateSource).setData(this.empty));
11063
11066
  },
11064
11067
  handleClick(t) {
11065
- var a, r, s, c, n, g, p, f;
11068
+ var a, r, s, c, n, f, p, y, w;
11066
11069
  const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
11067
- (w) => {
11068
- var L;
11069
- return w.geometry.type === "LineString" && w.properties.type === "forecast" && w.properties.name === ((L = e == null ? void 0 : e.properties) == null ? void 0 : L.name);
11070
+ (k) => {
11071
+ var g;
11072
+ return k.geometry.type === "LineString" && k.properties.type === "forecast" && k.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
11070
11073
  }
11071
11074
  ), i = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
11072
- (w) => {
11073
- var L;
11074
- return w.geometry.type === "LineString" && w.properties.type === "history" && w.properties.name === ((L = e == null ? void 0 : e.properties) == null ? void 0 : L.name);
11075
+ (k) => {
11076
+ var g;
11077
+ return k.geometry.type === "LineString" && k.properties.type === "history" && k.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
11075
11078
  }
11076
11079
  );
11077
11080
  this.activeTropicals = {
11078
11081
  name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
11079
- forecasts: o.map((w) => w.properties),
11080
- history: (g = i[0]) == null ? void 0 : g.properties,
11081
- showCircle: (f = (p = o[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
11082
+ nameCn: (f = e == null ? void 0 : e.properties) == null ? void 0 : f.nameCn,
11083
+ forecasts: o.map((k) => k.properties),
11084
+ history: (p = i[0]) == null ? void 0 : p.properties,
11085
+ showCircle: (w = (y = o[0]) == null ? void 0 : y.properties) == null ? void 0 : w.showCircle
11082
11086
  }, this.showTropicalsInfo = !0, this.$nextTick(() => {
11083
- const w = document.getElementById("idm-tropical-gl4-info");
11084
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
11087
+ const k = document.getElementById("idm-tropical-gl4-info");
11088
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(k).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
11085
11089
  });
11086
11090
  },
11087
11091
  handleCloseInfoMarker() {
@@ -11094,11 +11098,11 @@ const tc = {
11094
11098
  var i, a, r, s, c, n;
11095
11099
  t.disabled = !t.disabled;
11096
11100
  const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
11097
- o.forEach((g) => {
11098
- g.properties.category === e && (g.properties.disabled = t.disabled);
11099
- }), this.interpolateData.forEach((g) => {
11100
- g.properties.category === e && (g.properties.disabled = t.disabled);
11101
- }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(H.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(H.featureCollection(o)), this.handleDateChange();
11101
+ o.forEach((f) => {
11102
+ f.properties.category === e && (f.properties.disabled = t.disabled);
11103
+ }), this.interpolateData.forEach((f) => {
11104
+ f.properties.category === e && (f.properties.disabled = t.disabled);
11105
+ }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(U.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(U.featureCollection(o)), this.handleDateChange();
11102
11106
  },
11103
11107
  handleStrikeProbability(t) {
11104
11108
  this.$emit("tropicalProbability", t);
@@ -11157,22 +11161,22 @@ const tc = {
11157
11161
  let n;
11158
11162
  switch (s) {
11159
11163
  case "ne":
11160
- n = H.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11164
+ n = U.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11161
11165
  break;
11162
11166
  case "se":
11163
- n = H.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11167
+ n = U.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11164
11168
  break;
11165
11169
  case "sw":
11166
- n = H.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11170
+ n = U.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11167
11171
  break;
11168
11172
  case "nw":
11169
- n = H.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11173
+ n = U.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11170
11174
  break;
11171
11175
  }
11172
11176
  i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
11173
11177
  }
11174
- const a = H.lineString(i);
11175
- return H.lineToPolygon(a, { properties: o });
11178
+ const a = U.lineString(i);
11179
+ return U.lineToPolygon(a, { properties: o });
11176
11180
  },
11177
11181
  handleNotification(t) {
11178
11182
  this.$emit("tropicalNotification", t);
@@ -11235,7 +11239,7 @@ const tc = {
11235
11239
  class: "d-flex justify-start align-center"
11236
11240
  }, Vc = { class: "text-label pr-1" }, Zc = { class: "d-flex justify-start align-center" }, qc = { class: "text-label pr-1" };
11237
11241
  function Yc(t, e, o, i, a, r) {
11238
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), f = x("VCard"), w = x("v-card-title"), L = x("v-divider");
11242
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), f = x("VDivider"), p = x("VCardActions"), y = x("VCard"), w = x("v-card-title"), k = x("v-divider");
11239
11243
  return b(), S("div", oc, [
11240
11244
  l("div", {
11241
11245
  class: "menu-bar-box transition pa-1",
@@ -11245,8 +11249,8 @@ function Yc(t, e, o, i, a, r) {
11245
11249
  text: t.$t("tropical.tropicals"),
11246
11250
  location: "left"
11247
11251
  }, {
11248
- activator: u(({ props: y }) => [
11249
- h(s, B(y, {
11252
+ activator: u(({ props: g }) => [
11253
+ h(s, B(g, {
11250
11254
  "min-width": "32",
11251
11255
  width: "32",
11252
11256
  height: "32",
@@ -11264,7 +11268,7 @@ function Yc(t, e, o, i, a, r) {
11264
11268
  }, 8, ["text"])
11265
11269
  ], 4),
11266
11270
  a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (b(), S("div", ac, [
11267
- h(f, {
11271
+ h(y, {
11268
11272
  "min-width": "400",
11269
11273
  elevation: "16",
11270
11274
  "max-width": "500"
@@ -11272,11 +11276,11 @@ function Yc(t, e, o, i, a, r) {
11272
11276
  default: u(() => [
11273
11277
  h(n, null, {
11274
11278
  default: u(() => {
11275
- var y, k, T, O, I, P, _, z, C, v;
11279
+ var g, z, T, O, I, P, _, L, C, v, A;
11276
11280
  return [
11277
11281
  l("div", ic, [
11278
- l("span", rc, m((y = a.activeTropicals) == null ? void 0 : y.name), 1),
11279
- (T = (k = a.activeTropicals) == null ? void 0 : k.history) != null && T.level ? (b(), S("span", lc, ", " + m((I = (O = a.activeTropicals) == null ? void 0 : O.history) == null ? void 0 : I.level), 1)) : M("", !0)
11282
+ l("span", rc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (z = a.activeTropicals) == null ? void 0 : z.nameCn), 1),
11283
+ (O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (b(), S("span", lc, ", " + m((P = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : P.level), 1)) : M("", !0)
11280
11284
  ]),
11281
11285
  h(s, {
11282
11286
  icon: "",
@@ -11293,21 +11297,21 @@ function Yc(t, e, o, i, a, r) {
11293
11297
  }, 8, ["onClick"]),
11294
11298
  l("div", sc, [
11295
11299
  l("span", nc, m(t.$t("actions.lastUpdate")) + ": ", 1),
11296
- l("span", null, m(r.computeTime(((_ = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : _.updated) || ((v = (C = (z = a.activeTropicals) == null ? void 0 : z.forecasts) == null ? void 0 : C.filter((A) => !A.disabled)[0]) == null ? void 0 : v.date), o.timeZone)), 1)
11300
+ l("span", null, m(r.computeTime(((L = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : L.updated) || ((A = (v = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : v.filter((H) => !H.disabled)[0]) == null ? void 0 : A.date), o.timeZone)), 1)
11297
11301
  ])
11298
11302
  ];
11299
11303
  }),
11300
11304
  _: 1
11301
11305
  }),
11302
- h(g),
11306
+ h(f),
11303
11307
  h(n, { class: "text-body-1" }, {
11304
11308
  default: u(() => {
11305
- var y, k, T, O, I, P, _, z, C;
11309
+ var g, z, T, O, I, P, _, L, C;
11306
11310
  return [
11307
11311
  l("div", cc, [
11308
11312
  l("div", mc, [
11309
11313
  l("label", dc, m(t.$t("weather.windSpeed")) + " : ", 1),
11310
- l("span", null, m(((k = (y = a.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : k.kts) || "-") + " kts", 1),
11314
+ l("span", null, m(((z = (g = a.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
11311
11315
  l("span", null, ", BF " + m(r.computeBF(((O = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : O.kts) || "-")), 1)
11312
11316
  ]),
11313
11317
  l("div", hc, [
@@ -11322,7 +11326,7 @@ function Yc(t, e, o, i, a, r) {
11322
11326
  ]),
11323
11327
  l("div", yc, [
11324
11328
  l("label", bc, m(t.$t("tropical.moveDir")) + " : ", 1),
11325
- l("span", null, m(((z = r.computeMovement(a.activeTropicals)) == null ? void 0 : z.deg) || "-") + "°", 1)
11329
+ l("span", null, m(((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
11326
11330
  ])
11327
11331
  ]),
11328
11332
  l("div", wc, [
@@ -11335,7 +11339,7 @@ function Yc(t, e, o, i, a, r) {
11335
11339
  color: v.disabled ? "" : "primary",
11336
11340
  "min-width": 30,
11337
11341
  class: He(["model text-none text-body-1 px-1", v.disabled ? "" : "btn-border-2"]),
11338
- onClick: Ee((U) => r.handleForecastToggle(v), ["stop"])
11342
+ onClick: Ee((H) => r.handleForecastToggle(v), ["stop"])
11339
11343
  }, {
11340
11344
  default: u(() => [
11341
11345
  j(m(v.model), 1)
@@ -11348,7 +11352,7 @@ function Yc(t, e, o, i, a, r) {
11348
11352
  }),
11349
11353
  _: 1
11350
11354
  }),
11351
- h(g),
11355
+ h(f),
11352
11356
  h(p, { class: "d-flex justify-space-between" }, {
11353
11357
  default: u(() => [
11354
11358
  h(s, {
@@ -11357,7 +11361,7 @@ function Yc(t, e, o, i, a, r) {
11357
11361
  variant: "text",
11358
11362
  color: a.showLegend ? "primary" : "",
11359
11363
  class: "text-none text-body-1",
11360
- onClick: e[0] || (e[0] = Ee((y) => a.showLegend = !a.showLegend, ["stop"]))
11364
+ onClick: e[0] || (e[0] = Ee((g) => a.showLegend = !a.showLegend, ["stop"]))
11361
11365
  }, {
11362
11366
  prepend: u(() => e[5] || (e[5] = [
11363
11367
  l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
@@ -11373,7 +11377,7 @@ function Yc(t, e, o, i, a, r) {
11373
11377
  variant: "text",
11374
11378
  density: "compact",
11375
11379
  class: "text-none text-body-1",
11376
- onClick: e[1] || (e[1] = Ee((y) => r.handleNotification(a.activeTropicals), ["stop"]))
11380
+ onClick: e[1] || (e[1] = Ee((g) => r.handleNotification(a.activeTropicals), ["stop"]))
11377
11381
  }, {
11378
11382
  default: u(() => [
11379
11383
  j(m(t.$t("actions.notify")), 1)
@@ -11385,7 +11389,7 @@ function Yc(t, e, o, i, a, r) {
11385
11389
  density: "compact",
11386
11390
  "append-icon": "mdi-chevron-right",
11387
11391
  class: "text-none text-body-1",
11388
- onClick: e[2] || (e[2] = Ee((y) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
11392
+ onClick: e[2] || (e[2] = Ee((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
11389
11393
  }, {
11390
11394
  default: u(() => [
11391
11395
  j(m(t.$t("actions.viewReport")), 1)
@@ -11400,7 +11404,7 @@ function Yc(t, e, o, i, a, r) {
11400
11404
  _: 1
11401
11405
  }),
11402
11406
  l("div", kc, [
11403
- We(h(f, { elevation: "16" }, {
11407
+ We(h(y, { elevation: "16" }, {
11404
11408
  default: u(() => [
11405
11409
  h(n, null, {
11406
11410
  default: u(() => [
@@ -11462,7 +11466,7 @@ function Yc(t, e, o, i, a, r) {
11462
11466
  ])
11463
11467
  ])
11464
11468
  ])) : M("", !0),
11465
- We(h(f, {
11469
+ We(h(y, {
11466
11470
  id: "tropicalHoverMarkerInfo",
11467
11471
  elevation: "16",
11468
11472
  "max-width": "280"
@@ -11470,27 +11474,27 @@ function Yc(t, e, o, i, a, r) {
11470
11474
  default: u(() => [
11471
11475
  h(w, null, {
11472
11476
  default: u(() => {
11473
- var y, k;
11477
+ var g, z, T;
11474
11478
  return [
11475
11479
  l("div", Pc, [
11476
- l("span", Cc, m((y = a.hoverPoint) == null ? void 0 : y.name), 1),
11477
- l("span", Tc, "[ " + m((k = a.hoverPoint) == null ? void 0 : k.level) + " ]", 1)
11480
+ l("span", Cc, m(o.locale === "en" ? (g = a.hoverPoint) == null ? void 0 : g.name : (z = a.hoverPoint) == null ? void 0 : z.nameCn), 1),
11481
+ l("span", Tc, "[ " + m((T = a.hoverPoint) == null ? void 0 : T.level) + " ]", 1)
11478
11482
  ])
11479
11483
  ];
11480
11484
  }),
11481
11485
  _: 1
11482
11486
  }),
11483
- h(L),
11487
+ h(k),
11484
11488
  h(n, { class: "text-body-1" }, {
11485
11489
  default: u(() => {
11486
- var y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee;
11490
+ var g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee;
11487
11491
  return [
11488
11492
  l("div", Sc, [
11489
11493
  l("div", Ic, [
11490
11494
  l("label", Mc, m(t.$t("tropical.updated")) + " : ", 1),
11491
- l("span", null, m(r.computeTzTime((y = a.hoverPoint) == null ? void 0 : y.date, o.timeZone)), 1)
11495
+ l("span", null, m(r.computeTzTime((g = a.hoverPoint) == null ? void 0 : g.date, o.timeZone)), 1)
11492
11496
  ]),
11493
- ((k = a.hoverPoint) == null ? void 0 : k.type) === "forecast" ? (b(), S("div", Ac, [
11497
+ ((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (b(), S("div", Ac, [
11494
11498
  l("label", Dc, m(t.$t("tropical.forecast")) + " : ", 1),
11495
11499
  l("span", null, m(r.computeTzTime((T = a.hoverPoint) == null ? void 0 : T.date, o.timeZone)), 1)
11496
11500
  ])) : M("", !0),
@@ -11500,7 +11504,7 @@ function Yc(t, e, o, i, a, r) {
11500
11504
  ])) : M("", !0),
11501
11505
  ((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (b(), S("div", Bc, [
11502
11506
  l("label", Nc, m(t.$t("weather.wind")) + " : ", 1),
11503
- l("span", null, m(((z = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : z.kts) ?? "-") + " kts", 1)
11507
+ l("span", null, m(((L = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : L.kts) ?? "-") + " kts", 1)
11504
11508
  ])) : M("", !0),
11505
11509
  ((C = a.hoverPoint) == null ? void 0 : C.type) === "history" ? (b(), S("div", Ec, [
11506
11510
  l("label", jc, m(t.$t("weather.wind")) + " : ", 1),
@@ -11510,7 +11514,7 @@ function Yc(t, e, o, i, a, r) {
11510
11514
  l("label", Hc, m(t.$t("weather.pressure")) + " : ", 1),
11511
11515
  l("span", null, m(((A = a.hoverPoint) == null ? void 0 : A.pressure) ?? "-") + " kPa", 1)
11512
11516
  ]),
11513
- ((U = a.hoverPoint) == null ? void 0 : U.type) === "history" ? (b(), S("div", Uc, [
11517
+ ((H = a.hoverPoint) == null ? void 0 : H.type) === "history" ? (b(), S("div", Uc, [
11514
11518
  l("label", Wc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
11515
11519
  l("span", null, m(((q = JSON.parse((Z = a.hoverPoint) == null ? void 0 : Z.movement)) == null ? void 0 : q.kts) ?? "-") + " kts", 1)
11516
11520
  ])) : M("", !0),
@@ -11700,7 +11704,7 @@ const Kc = {
11700
11704
  style: { height: "56px" }
11701
11705
  };
11702
11706
  function em(t, e, o, i, a, r) {
11703
- const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), L = x("VCardActions"), y = x("VCard");
11707
+ const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), f = x("VListItemTitle"), p = x("VListItem"), y = x("VList"), w = x("VCardText"), k = x("VCardActions"), g = x("VCard");
11704
11708
  return b(), S("div", Xc, [
11705
11709
  h(s, {
11706
11710
  text: "",
@@ -11714,7 +11718,7 @@ function em(t, e, o, i, a, r) {
11714
11718
  ]),
11715
11719
  _: 1
11716
11720
  }, 8, ["height", "width", "onClick"]),
11717
- a.showDatePicker ? (b(), R(y, {
11721
+ a.showDatePicker ? (b(), R(g, {
11718
11722
  key: 0,
11719
11723
  class: He(["card-box d-flex flex-column", o.position])
11720
11724
  }, {
@@ -11724,7 +11728,7 @@ function em(t, e, o, i, a, r) {
11724
11728
  l("div", $c, [
11725
11729
  h(c, {
11726
11730
  modelValue: a.currentDate,
11727
- "onUpdate:modelValue": e[0] || (e[0] = (k) => a.currentDate = k),
11731
+ "onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentDate = z),
11728
11732
  min: a.dateRange[0],
11729
11733
  max: a.dateRange[1],
11730
11734
  "mode-icon": () => r.currentYear,
@@ -11742,24 +11746,24 @@ function em(t, e, o, i, a, r) {
11742
11746
  }),
11743
11747
  l("div", Jc, [
11744
11748
  l("div", Qc, m(a.currentTime), 1),
11745
- h(f, { class: "pa-0 flex-1-1-0" }, {
11749
+ h(y, { class: "pa-0 flex-1-1-0" }, {
11746
11750
  default: u(() => [
11747
- (b(!0), S(be, null, we(r.hourOptions, (k, T) => (b(), R(p, {
11751
+ (b(!0), S(be, null, we(r.hourOptions, (z, T) => (b(), R(p, {
11748
11752
  key: T,
11749
- value: k,
11753
+ value: z,
11750
11754
  color: "primary",
11751
- active: a.currentTime === k,
11755
+ active: a.currentTime === z,
11752
11756
  rounded: "",
11753
11757
  height: "26",
11754
11758
  "min-height": "26"
11755
11759
  }, {
11756
11760
  default: u(() => [
11757
- h(g, {
11761
+ h(f, {
11758
11762
  class: "text-body-2 text-center",
11759
- onClick: (O) => a.currentTime = k
11763
+ onClick: (O) => a.currentTime = z
11760
11764
  }, {
11761
11765
  default: u(() => [
11762
- j(m(k), 1)
11766
+ j(m(z), 1)
11763
11767
  ]),
11764
11768
  _: 2
11765
11769
  }, 1032, ["onClick"])
@@ -11774,7 +11778,7 @@ function em(t, e, o, i, a, r) {
11774
11778
  _: 1
11775
11779
  }),
11776
11780
  h(n),
11777
- h(L, {
11781
+ h(k, {
11778
11782
  class: "justify-end pa-0 pr-4",
11779
11783
  style: { height: "50px" }
11780
11784
  }, {
@@ -12047,10 +12051,10 @@ const tm = {
12047
12051
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
12048
12052
  },
12049
12053
  initTableData(t) {
12050
- var o, i, a, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe;
12054
+ var o, i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe;
12051
12055
  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;
12052
12056
  const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
12053
- 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((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.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 = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Z = (U = e == null ? void 0 : e.wave) == null ? void 0 : U.sig) == null ? void 0 : Z.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.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 = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
12057
+ 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 = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((y = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : y.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((g = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Z = (H = e == null ? void 0 : e.wave) == null ? void 0 : H.sig) == null ? void 0 : Z.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.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 = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
12054
12058
  },
12055
12059
  handleBind() {
12056
12060
  var t, e;
@@ -12120,7 +12124,7 @@ const tm = {
12120
12124
  "aria-hidden": "true"
12121
12125
  }, vm = ["xlink:href"];
12122
12126
  function _m(t, e, o, i, a, r) {
12123
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), L = x("DateTimePicker"), y = x("VBtnToggle"), k = x("VCardActions"), T = x("VForm"), O = x("VCardText"), I = x("VCard"), P = x("VIcon");
12127
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), f = x("VDivider"), p = x("VTextField"), y = x("VCol"), w = x("VRow"), k = x("DateTimePicker"), g = x("VBtnToggle"), z = x("VCardActions"), T = x("VForm"), O = x("VCardText"), I = x("VCard"), P = x("VIcon");
12124
12128
  return b(), S("div", om, [
12125
12129
  l("div", {
12126
12130
  class: "menu-bar-box transition pa-1",
@@ -12175,7 +12179,7 @@ function _m(t, e, o, i, a, r) {
12175
12179
  ]),
12176
12180
  _: 1
12177
12181
  }),
12178
- h(g),
12182
+ h(f),
12179
12183
  h(O, { class: "text-body-1 py-1" }, {
12180
12184
  default: u(() => [
12181
12185
  h(T, {
@@ -12195,7 +12199,7 @@ function _m(t, e, o, i, a, r) {
12195
12199
  ]),
12196
12200
  h(w, { class: "ma-0" }, {
12197
12201
  default: u(() => [
12198
- h(f, {
12202
+ h(y, {
12199
12203
  cols: "4",
12200
12204
  class: "pa-0 d-flex"
12201
12205
  }, {
@@ -12214,7 +12218,7 @@ function _m(t, e, o, i, a, r) {
12214
12218
  _: 1,
12215
12219
  __: [10]
12216
12220
  }),
12217
- h(f, {
12221
+ h(y, {
12218
12222
  cols: "6",
12219
12223
  class: "pa-0 d-flex"
12220
12224
  }, {
@@ -12234,7 +12238,7 @@ function _m(t, e, o, i, a, r) {
12234
12238
  _: 1,
12235
12239
  __: [11]
12236
12240
  }),
12237
- h(f, {
12241
+ h(y, {
12238
12242
  cols: "2",
12239
12243
  class: "pa-0"
12240
12244
  }, {
@@ -12270,7 +12274,7 @@ function _m(t, e, o, i, a, r) {
12270
12274
  ]),
12271
12275
  h(w, { class: "ma-0" }, {
12272
12276
  default: u(() => [
12273
- h(f, {
12277
+ h(y, {
12274
12278
  cols: "4",
12275
12279
  class: "pa-0 d-flex"
12276
12280
  }, {
@@ -12292,7 +12296,7 @@ function _m(t, e, o, i, a, r) {
12292
12296
  _: 1,
12293
12297
  __: [12]
12294
12298
  }),
12295
- h(f, {
12299
+ h(y, {
12296
12300
  cols: "6",
12297
12301
  class: "pa-0 d-flex"
12298
12302
  }, {
@@ -12312,7 +12316,7 @@ function _m(t, e, o, i, a, r) {
12312
12316
  _: 1,
12313
12317
  __: [13]
12314
12318
  }),
12315
- h(f, {
12319
+ h(y, {
12316
12320
  cols: "2",
12317
12321
  class: "pa-0"
12318
12322
  }, {
@@ -12348,12 +12352,12 @@ function _m(t, e, o, i, a, r) {
12348
12352
  ]),
12349
12353
  h(w, { class: "ma-0 mb-4" }, {
12350
12354
  default: u(() => [
12351
- h(f, {
12355
+ h(y, {
12352
12356
  cols: "12",
12353
12357
  class: "pa-0"
12354
12358
  }, {
12355
12359
  default: u(() => [
12356
- h(L, B({
12360
+ h(k, B({
12357
12361
  "date-time": a.form.dateTime,
12358
12362
  "time-zone": o.timeZone
12359
12363
  }, t.$attrs, {
@@ -12375,12 +12379,12 @@ function _m(t, e, o, i, a, r) {
12375
12379
  ]),
12376
12380
  h(w, { class: "ma-0 mb-2" }, {
12377
12381
  default: u(() => [
12378
- h(f, {
12382
+ h(y, {
12379
12383
  cols: "12",
12380
12384
  class: "pa-0"
12381
12385
  }, {
12382
12386
  default: u(() => [
12383
- h(y, {
12387
+ h(g, {
12384
12388
  modelValue: a.form.forecastModel,
12385
12389
  "onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
12386
12390
  class: "w-100",
@@ -12427,8 +12431,8 @@ function _m(t, e, o, i, a, r) {
12427
12431
  ]),
12428
12432
  _: 1
12429
12433
  }),
12430
- h(g),
12431
- h(k, { class: "d-flex justify-end align-center ga-4" }, {
12434
+ h(f),
12435
+ h(z, { class: "d-flex justify-end align-center ga-4" }, {
12432
12436
  default: u(() => [
12433
12437
  h(s, {
12434
12438
  size: "small",
@@ -12499,12 +12503,12 @@ function _m(t, e, o, i, a, r) {
12499
12503
  ]),
12500
12504
  _: 1
12501
12505
  }),
12502
- h(g),
12506
+ h(f),
12503
12507
  h(O, { class: "text-body-1 ml-n8" }, {
12504
12508
  default: u(() => [
12505
12509
  h(w, null, {
12506
12510
  default: u(() => [
12507
- h(f, {
12511
+ h(y, {
12508
12512
  cols: "3",
12509
12513
  class: "pa-2 pl-0 text-right opacity-50"
12510
12514
  }, {
@@ -12513,7 +12517,7 @@ function _m(t, e, o, i, a, r) {
12513
12517
  ]),
12514
12518
  _: 1
12515
12519
  }),
12516
- h(f, {
12520
+ h(y, {
12517
12521
  cols: "9",
12518
12522
  class: "pa-2 px-0"
12519
12523
  }, {
@@ -12530,7 +12534,7 @@ function _m(t, e, o, i, a, r) {
12530
12534
  }),
12531
12535
  h(w, null, {
12532
12536
  default: u(() => [
12533
- h(f, {
12537
+ h(y, {
12534
12538
  cols: "3",
12535
12539
  class: "pa-2 pl-0 text-right opacity-50"
12536
12540
  }, {
@@ -12540,7 +12544,7 @@ function _m(t, e, o, i, a, r) {
12540
12544
  _: 1,
12541
12545
  __: [18]
12542
12546
  }),
12543
- h(f, {
12547
+ h(y, {
12544
12548
  cols: "9",
12545
12549
  class: "pa-2 px-0"
12546
12550
  }, {
@@ -12557,7 +12561,7 @@ function _m(t, e, o, i, a, r) {
12557
12561
  }),
12558
12562
  h(w, null, {
12559
12563
  default: u(() => [
12560
- h(f, {
12564
+ h(y, {
12561
12565
  cols: "3",
12562
12566
  class: "pa-2 pl-0 text-right opacity-50"
12563
12567
  }, {
@@ -12566,7 +12570,7 @@ function _m(t, e, o, i, a, r) {
12566
12570
  ]),
12567
12571
  _: 1
12568
12572
  }),
12569
- h(f, {
12573
+ h(y, {
12570
12574
  cols: "4",
12571
12575
  class: "pa-2 px-0 text-left"
12572
12576
  }, {
@@ -12575,7 +12579,7 @@ function _m(t, e, o, i, a, r) {
12575
12579
  ]),
12576
12580
  _: 1
12577
12581
  }),
12578
- h(f, {
12582
+ h(y, {
12579
12583
  cols: "2",
12580
12584
  class: "pa-2 pl-0 ml-n4 text-right opacity-50"
12581
12585
  }, {
@@ -12584,7 +12588,7 @@ function _m(t, e, o, i, a, r) {
12584
12588
  ]),
12585
12589
  _: 1
12586
12590
  }),
12587
- h(f, {
12591
+ h(y, {
12588
12592
  cols: "3",
12589
12593
  class: "pa-2 px-0 text-left"
12590
12594
  }, {
@@ -12598,7 +12602,7 @@ function _m(t, e, o, i, a, r) {
12598
12602
  }),
12599
12603
  h(w, null, {
12600
12604
  default: u(() => [
12601
- h(f, {
12605
+ h(y, {
12602
12606
  cols: "3",
12603
12607
  class: "pa-2 pl-0 text-right opacity-50"
12604
12608
  }, {
@@ -12607,7 +12611,7 @@ function _m(t, e, o, i, a, r) {
12607
12611
  ]),
12608
12612
  _: 1
12609
12613
  }),
12610
- h(f, {
12614
+ h(y, {
12611
12615
  cols: "4",
12612
12616
  class: "pa-2 px-0 text-left"
12613
12617
  }, {
@@ -12616,7 +12620,7 @@ function _m(t, e, o, i, a, r) {
12616
12620
  ]),
12617
12621
  _: 1
12618
12622
  }),
12619
- h(f, {
12623
+ h(y, {
12620
12624
  cols: "2",
12621
12625
  class: "pa-2 pl-0 ml-n4 text-right opacity-50"
12622
12626
  }, {
@@ -12625,7 +12629,7 @@ function _m(t, e, o, i, a, r) {
12625
12629
  ]),
12626
12630
  _: 1
12627
12631
  }),
12628
- h(f, {
12632
+ h(y, {
12629
12633
  cols: "3",
12630
12634
  class: "pa-2 px-0 text-left"
12631
12635
  }, {
@@ -12639,7 +12643,7 @@ function _m(t, e, o, i, a, r) {
12639
12643
  }),
12640
12644
  h(w, null, {
12641
12645
  default: u(() => [
12642
- h(f, {
12646
+ h(y, {
12643
12647
  cols: "3",
12644
12648
  class: "pa-2 pl-0 text-right opacity-50"
12645
12649
  }, {
@@ -12648,7 +12652,7 @@ function _m(t, e, o, i, a, r) {
12648
12652
  ]),
12649
12653
  _: 1
12650
12654
  }),
12651
- h(f, {
12655
+ h(y, {
12652
12656
  cols: "4",
12653
12657
  class: "pa-2 px-0 text-left"
12654
12658
  }, {
@@ -12657,7 +12661,7 @@ function _m(t, e, o, i, a, r) {
12657
12661
  ]),
12658
12662
  _: 1
12659
12663
  }),
12660
- h(f, {
12664
+ h(y, {
12661
12665
  cols: "2",
12662
12666
  class: "pa-2 pl-0 ml-n4 text-right opacity-50"
12663
12667
  }, {
@@ -12666,7 +12670,7 @@ function _m(t, e, o, i, a, r) {
12666
12670
  ]),
12667
12671
  _: 1
12668
12672
  }),
12669
- h(f, {
12673
+ h(y, {
12670
12674
  cols: "3",
12671
12675
  class: "pa-2 px-0 text-left"
12672
12676
  }, {
@@ -12681,12 +12685,12 @@ function _m(t, e, o, i, a, r) {
12681
12685
  ]),
12682
12686
  _: 1
12683
12687
  }),
12684
- h(g),
12685
- h(k, { class: "d-flex justify-space-between align-center" }, {
12688
+ h(f),
12689
+ h(z, { class: "d-flex justify-space-between align-center" }, {
12686
12690
  default: u(() => [
12687
12691
  o.followList.some((_) => {
12688
- var z, C;
12689
- return ((z = _ == null ? void 0 : _.coordinate) == null ? void 0 : z.lng) === a.form.lng && ((C = _ == null ? void 0 : _.coordinate) == null ? void 0 : C.lat) === a.form.lat;
12692
+ var L, C;
12693
+ return ((L = _ == null ? void 0 : _.coordinate) == null ? void 0 : L.lng) === a.form.lng && ((C = _ == null ? void 0 : _.coordinate) == null ? void 0 : C.lat) === a.form.lat;
12690
12694
  }) ? (b(), R(s, {
12691
12695
  key: 0,
12692
12696
  class: "text-none text-body-1",
@@ -12806,7 +12810,7 @@ const zm = {
12806
12810
  else {
12807
12811
  (t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (o = this.map) == null || o.off("dblclick", this.handleDblClick), this.map;
12808
12812
  let i = this.geojson.find((a) => !a.closed);
12809
- i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
12813
+ i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
12810
12814
  }
12811
12815
  },
12812
12816
  immediate: !0
@@ -12840,7 +12844,7 @@ const zm = {
12840
12844
  }
12841
12845
  },
12842
12846
  handleDrag(t) {
12843
- var o, i, a, r, s, c, n, g, p, f;
12847
+ var o, i, a, r, s, c, n, f, p, y;
12844
12848
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12845
12849
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12846
12850
  const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
@@ -12848,33 +12852,33 @@ const zm = {
12848
12852
  var O;
12849
12853
  return ((O = T._element) == null ? void 0 : O.id) === e;
12850
12854
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12851
- let y;
12855
+ let g;
12852
12856
  w.features.forEach((T, O) => {
12853
12857
  if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
12854
- y = O;
12858
+ g = O;
12855
12859
  return;
12856
12860
  }
12857
12861
  });
12858
- const k = w.features.filter((T) => T.geometry.type === "Point");
12862
+ const z = w.features.filter((T) => T.geometry.type === "Point");
12859
12863
  this.handleTmpPointUpdate(
12860
12864
  w,
12861
- k[y - 1],
12862
- { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: k[y].properties },
12863
- y === k.length - 1 ? void 0 : k[y + 1]
12865
+ z[g - 1],
12866
+ { lng: (f = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : f.lng, lat: (y = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : y.lat, properties: z[g].properties },
12867
+ g === z.length - 1 ? void 0 : z[g + 1]
12864
12868
  );
12865
12869
  }
12866
12870
  },
12867
12871
  handleDragEnd(t) {
12868
- var o, i, a, r, s, c, n, g, p, f;
12872
+ var o, i, a, r, s, c, n, f, p, y;
12869
12873
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12870
12874
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12871
- const w = this.geojson.filter((k) => k.id === e.split("-")[0])[0];
12872
- this.pointMarkers[w.id].filter((k) => {
12875
+ const w = this.geojson.filter((z) => z.id === e.split("-")[0])[0];
12876
+ this.pointMarkers[w.id].filter((z) => {
12873
12877
  var T;
12874
- return ((T = k._element) == null ? void 0 : T.id) === e;
12878
+ return ((T = z._element) == null ? void 0 : T.id) === e;
12875
12879
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12876
- const y = w.features.filter((k) => k.geometry.type === "Point" && k.properties.id === e.split("-")[1])[0];
12877
- y.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((k) => k.geometry.type === "Point"), this.handlePointUpdate(w);
12880
+ const g = w.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
12881
+ g.geometry.coordinates = [(f = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : f.lng, (y = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : y.lat], w.features = w.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(w);
12878
12882
  }
12879
12883
  },
12880
12884
  handleContextmenu(t) {
@@ -12883,9 +12887,9 @@ const zm = {
12883
12887
  const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
12884
12888
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12885
12889
  const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
12886
- if (c.length > 2 && c.filter((g) => g.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
12887
- const g = document.createElement("div");
12888
- g.className = "idm-gl4-measure-contextmenu-marker", g.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(g).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12890
+ if (c.length > 2 && c.filter((f) => f.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
12891
+ const f = document.createElement("div");
12892
+ f.className = "idm-gl4-measure-contextmenu-marker", f.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(f).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12889
12893
  }
12890
12894
  }
12891
12895
  },
@@ -12894,15 +12898,15 @@ const zm = {
12894
12898
  (o = this.contextmenu) == null || o.remove();
12895
12899
  const e = t.originalEvent.target.className;
12896
12900
  if (e === "marker-close") {
12897
- const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, g = this.geojson.filter((p) => p.id === n)[0];
12898
- g && this.handleClear(g, !0), this.geojson = this.geojson.filter((p) => p.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
12901
+ const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, f = this.geojson.filter((p) => p.id === n)[0];
12902
+ f && this.handleClear(f, !0), this.geojson = this.geojson.filter((p) => p.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
12899
12903
  } else if (e === "del-point") {
12900
- const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), g = this.geojson.filter((p) => p.id === n[0])[0];
12901
- g.features = g.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(g);
12904
+ const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), f = this.geojson.filter((p) => p.id === n[0])[0];
12905
+ f.features = f.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(f);
12902
12906
  } else if (e !== "marker-label" && this.toggle) {
12903
12907
  let n = this.geojson.at(-1);
12904
- n || (n = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
12905
- const g = H.feature(
12908
+ n || (n = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
12909
+ const f = U.feature(
12906
12910
  {
12907
12911
  type: "Point",
12908
12912
  coordinates: [t.lngLat.lng, t.lngLat.lat]
@@ -12913,7 +12917,7 @@ const zm = {
12913
12917
  sumLabel: "Start"
12914
12918
  }
12915
12919
  );
12916
- n.features.push(g), this.handlePointUpdate(n);
12920
+ n.features.push(f), this.handlePointUpdate(n);
12917
12921
  }
12918
12922
  },
12919
12923
  handlePointUpdate(t) {
@@ -12922,36 +12926,36 @@ const zm = {
12922
12926
  let o = 0;
12923
12927
  const i = [];
12924
12928
  for (let a = 1; a < e.length; a++) {
12925
- const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Ue.calculateDistance(n, g, c.mode === "RL", 4), f = Ue.calculateBearing(n, g, c.mode === "RL", 2);
12929
+ const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, f = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Ue.calculateDistance(n, f, c.mode === "RL", 4), y = Ue.calculateBearing(n, f, c.mode === "RL", 2);
12926
12930
  o = X.roundPrecision(o + p, 4);
12927
12931
  let w;
12928
- c.mode === "RL" ? w = X.convertToMonotonicLng([n, g]) : w = X.convertToMonotonicLng(Ue.interpolateCoordinates(n, g, 200));
12929
- const L = H.lineString(w.map((k) => [k.lng, k.lat]));
12930
- L.properties.dist = p, L.properties.bearing = f, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
12931
- const y = e[a];
12932
- y.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
12932
+ c.mode === "RL" ? w = X.convertToMonotonicLng([n, f]) : w = X.convertToMonotonicLng(Ue.interpolateCoordinates(n, f, 200));
12933
+ const k = U.lineString(w.map((z) => [z.lng, z.lat]));
12934
+ k.properties.dist = p, k.properties.bearing = y, k.properties.total = o, k.properties.name = "Line " + this.currentLineIndex, i.push(k);
12935
+ const g = e[a];
12936
+ g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
12933
12937
  }
12934
12938
  e.push(...i), t.total = o;
12935
12939
  }
12936
12940
  return this.handleRender(t), t;
12937
12941
  },
12938
12942
  handleTmpPointUpdate(t, e, o, i) {
12939
- const a = H.featureCollection([]);
12943
+ const a = U.featureCollection([]);
12940
12944
  let r, s;
12941
12945
  if (e) {
12942
- const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
12943
- r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12944
- let f;
12945
- n.mode === "RL" ? f = X.convertToMonotonicLng([g, p]) : f = X.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12946
- const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12946
+ const n = e.properties, f = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
12947
+ r = Ue.calculateDistance(f, p, n.mode === "RL", 4), s = Ue.calculateBearing(f, p, n.mode === "RL", 2);
12948
+ let y;
12949
+ n.mode === "RL" ? y = X.convertToMonotonicLng([f, p]) : y = X.convertToMonotonicLng(Ue.interpolateCoordinates(f, p, 200));
12950
+ const w = U.lineString(y.map((k) => [k.lng, k.lat]));
12947
12951
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12948
12952
  }
12949
12953
  if (i) {
12950
- const n = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12951
- r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12952
- let f;
12953
- n.mode === "RL" ? f = X.convertToMonotonicLng([g, p]) : f = X.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12954
- const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12954
+ const n = o.properties, f = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12955
+ r = Ue.calculateDistance(f, p, n.mode === "RL", 4), s = Ue.calculateBearing(f, p, n.mode === "RL", 2);
12956
+ let y;
12957
+ n.mode === "RL" ? y = X.convertToMonotonicLng([f, p]) : y = X.convertToMonotonicLng(Ue.interpolateCoordinates(f, p, 200));
12958
+ const w = U.lineString(y.map((k) => [k.lng, k.lat]));
12955
12959
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12956
12960
  }
12957
12961
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
@@ -13013,14 +13017,14 @@ const zm = {
13013
13017
  handleMove(t) {
13014
13018
  this.map.getCanvas().style.cursor = "crosshair";
13015
13019
  let e = this.geojson.at(-1);
13016
- e || (e = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
13020
+ e || (e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
13017
13021
  const o = e.features.filter((i) => i.geometry.type === "Point");
13018
13022
  o != null && o.length && this.handleTmpPointUpdate(e, o.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
13019
13023
  },
13020
13024
  handleDblClick(t) {
13021
13025
  t.preventDefault();
13022
13026
  let e = this.geojson.at(-1);
13023
- e.closed = !0, this.handleRender(e), e = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
13027
+ e.closed = !0, this.handleRender(e), e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
13024
13028
  },
13025
13029
  handleRender(t) {
13026
13030
  var e;
@@ -13083,21 +13087,21 @@ const zm = {
13083
13087
  for (const c of s) {
13084
13088
  const n = document.createElement("div");
13085
13089
  n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
13086
- const g = new ve.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
13087
- g.on("drag", this.handleDrag), g.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(g) : this.pointMarkers[t.id] = [g];
13090
+ const f = new ve.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
13091
+ 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];
13088
13092
  }
13089
13093
  if (t.closed) {
13090
- const c = s.at(-1), g = t.features.filter((f) => f.geometry.type === "LineString").at(-1), p = document.createElement("div");
13091
- p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${g.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
13094
+ const c = s.at(-1), f = t.features.filter((y) => y.geometry.type === "LineString").at(-1), p = document.createElement("div");
13095
+ p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${f.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
13092
13096
  }
13093
13097
  }
13094
13098
  },
13095
13099
  handleClear(t, e = !0) {
13096
- var s, c, n, g, p, f, w, L, y, k;
13100
+ var s, c, n, f, p, y, w, k, g, z;
13097
13101
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
13098
- (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
13102
+ (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (y = this.closeMarkers[t.id]) == null || y.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
13099
13103
  T == null || T.remove();
13100
- }), this.pointMarkers[t.id] = [], (L = this.tipMarker) == null || L.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(o)) && this.map.removeSource(o), e && ((k = this.map) != null && k.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
13104
+ }), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((z = this.map) != null && z.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
13101
13105
  }
13102
13106
  }
13103
13107
  }, Lm = { class: "idm-gl4-measure" };
@@ -13263,7 +13267,7 @@ const Tm = {
13263
13267
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
13264
13268
  }, Om = ["onClick"], Bm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Nm = { class: "text-body-1" };
13265
13269
  function Em(t, e, o, i, a, r) {
13266
- const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), L = x("VTooltip");
13270
+ const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), f = x("VList"), p = x("VMenu"), y = x("VBtn"), w = x("VDivider"), k = x("VTooltip");
13267
13271
  return b(), S("div", Sm, [
13268
13272
  l("div", {
13269
13273
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
@@ -13277,11 +13281,11 @@ function Em(t, e, o, i, a, r) {
13277
13281
  "day-about": a.dayAbout,
13278
13282
  "interval-hour": a.intervalHour
13279
13283
  }, t.$attrs, {
13280
- onCurrentTimestamp: e[0] || (e[0] = (y) => a.currentTimestamp = y),
13281
- onCurrentRealTime: e[1] || (e[1] = (y) => a.currentRealTime = y),
13282
- onTimestampRange: e[2] || (e[2] = (y) => a.timestampRange = y)
13284
+ onCurrentTimestamp: e[0] || (e[0] = (g) => a.currentTimestamp = g),
13285
+ onCurrentRealTime: e[1] || (e[1] = (g) => a.currentRealTime = g),
13286
+ onTimestampRange: e[2] || (e[2] = (g) => a.timestampRange = g)
13283
13287
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
13284
- h(f, {
13288
+ h(y, {
13285
13289
  text: "",
13286
13290
  height: "30",
13287
13291
  class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
@@ -13291,15 +13295,15 @@ function Em(t, e, o, i, a, r) {
13291
13295
  j(m(a.intervalHour) + " h ", 1),
13292
13296
  h(p, { activator: "parent" }, {
13293
13297
  default: u(() => [
13294
- h(g, { class: "pa-1" }, {
13298
+ h(f, { class: "pa-1" }, {
13295
13299
  default: u(() => [
13296
- (b(!0), S(be, null, we(a.intervalOptions, (y, k) => (b(), R(n, {
13297
- key: k,
13298
- value: y,
13299
- variant: a.intervalHour === y ? "tonal" : "text",
13300
+ (b(!0), S(be, null, we(a.intervalOptions, (g, z) => (b(), R(n, {
13301
+ key: z,
13302
+ value: g,
13303
+ variant: a.intervalHour === g ? "tonal" : "text",
13300
13304
  color: "primary",
13301
13305
  rounded: "",
13302
- active: a.intervalHour === y,
13306
+ active: a.intervalHour === g,
13303
13307
  height: "30",
13304
13308
  "min-height": "30",
13305
13309
  "min-width": "30",
@@ -13307,10 +13311,10 @@ function Em(t, e, o, i, a, r) {
13307
13311
  }, {
13308
13312
  default: u(() => [
13309
13313
  h(c, {
13310
- onClick: (T) => a.intervalHour = y
13314
+ onClick: (T) => a.intervalHour = g
13311
13315
  }, {
13312
13316
  default: u(() => [
13313
- j(m(y) + "h", 1)
13317
+ j(m(g) + "h", 1)
13314
13318
  ]),
13315
13319
  _: 2
13316
13320
  }, 1032, ["onClick"])
@@ -13333,7 +13337,7 @@ function Em(t, e, o, i, a, r) {
13333
13337
  style: { height: "16px" }
13334
13338
  }),
13335
13339
  l("div", Mm, [
13336
- h(f, {
13340
+ h(y, {
13337
13341
  icon: "",
13338
13342
  size: "small",
13339
13343
  density: "comfortable",
@@ -13346,7 +13350,7 @@ function Em(t, e, o, i, a, r) {
13346
13350
  _: 1,
13347
13351
  __: [9]
13348
13352
  }, 8, ["onClick"]),
13349
- h(f, {
13353
+ h(y, {
13350
13354
  icon: "",
13351
13355
  size: "small",
13352
13356
  density: "comfortable",
@@ -13359,7 +13363,7 @@ function Em(t, e, o, i, a, r) {
13359
13363
  _: 1,
13360
13364
  __: [10]
13361
13365
  }, 8, ["onClick"]),
13362
- a.paused ? (b(), R(f, {
13366
+ a.paused ? (b(), R(y, {
13363
13367
  key: 0,
13364
13368
  icon: "",
13365
13369
  size: "small",
@@ -13372,7 +13376,7 @@ function Em(t, e, o, i, a, r) {
13372
13376
  ])),
13373
13377
  _: 1,
13374
13378
  __: [11]
13375
- }, 8, ["onClick"])) : (b(), R(f, {
13379
+ }, 8, ["onClick"])) : (b(), R(y, {
13376
13380
  key: 1,
13377
13381
  icon: "",
13378
13382
  size: "small",
@@ -13386,7 +13390,7 @@ function Em(t, e, o, i, a, r) {
13386
13390
  _: 1,
13387
13391
  __: [12]
13388
13392
  }, 8, ["onClick"])),
13389
- h(f, {
13393
+ h(y, {
13390
13394
  icon: "",
13391
13395
  size: "small",
13392
13396
  density: "comfortable",
@@ -13406,16 +13410,16 @@ function Em(t, e, o, i, a, r) {
13406
13410
  style: { height: "16px" }
13407
13411
  }),
13408
13412
  l("div", Am, [
13409
- h(L, {
13413
+ h(k, {
13410
13414
  text: t.$t("weather.windBarbs"),
13411
13415
  location: "top"
13412
13416
  }, {
13413
- activator: u(({ props: y }) => {
13414
- var k, T;
13417
+ activator: u(({ props: g }) => {
13418
+ var z, T;
13415
13419
  return [
13416
- h(f, B(y, {
13420
+ h(y, B(g, {
13417
13421
  class: "pa-1 d-flex",
13418
- color: (k = o.weatherCheckList) != null && k.includes("wind") ? "primary" : "",
13422
+ color: (z = o.weatherCheckList) != null && z.includes("wind") ? "primary" : "",
13419
13423
  variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
13420
13424
  height: "24",
13421
13425
  width: "24",
@@ -13432,16 +13436,16 @@ function Em(t, e, o, i, a, r) {
13432
13436
  }),
13433
13437
  _: 1
13434
13438
  }, 8, ["text"]),
13435
- h(L, {
13439
+ h(k, {
13436
13440
  text: t.$t("weather.sigWaveHeight"),
13437
13441
  location: "top"
13438
13442
  }, {
13439
- activator: u(({ props: y }) => {
13440
- var k, T;
13443
+ activator: u(({ props: g }) => {
13444
+ var z, T;
13441
13445
  return [
13442
- h(f, B(y, {
13446
+ h(y, B(g, {
13443
13447
  class: "pa-1 d-flex",
13444
- color: (k = o.weatherCheckList) != null && k.includes("sig-wave-height") ? "primary" : "",
13448
+ color: (z = o.weatherCheckList) != null && z.includes("sig-wave-height") ? "primary" : "",
13445
13449
  variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
13446
13450
  height: "24",
13447
13451
  width: "24",
@@ -13449,7 +13453,7 @@ function Em(t, e, o, i, a, r) {
13449
13453
  onClick: e[4] || (e[4] = (O) => r.handleClickFastWeather("sig-wave-height"))
13450
13454
  }), {
13451
13455
  default: u(() => [
13452
- l("i", B(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13456
+ l("i", B(g, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13453
13457
  ]),
13454
13458
  _: 2
13455
13459
  }, 1040, ["color", "variant"])
@@ -13457,16 +13461,16 @@ function Em(t, e, o, i, a, r) {
13457
13461
  }),
13458
13462
  _: 1
13459
13463
  }, 8, ["text"]),
13460
- h(L, {
13464
+ h(k, {
13461
13465
  text: t.$t("weather.currentDirection"),
13462
13466
  location: "top"
13463
13467
  }, {
13464
- activator: u(({ props: y }) => {
13465
- var k, T;
13468
+ activator: u(({ props: g }) => {
13469
+ var z, T;
13466
13470
  return [
13467
- h(f, B(y, {
13471
+ h(y, B(g, {
13468
13472
  class: "pa-1 d-flex",
13469
- color: (k = o.weatherCheckList) != null && k.includes("current-direction") ? "primary" : "",
13473
+ color: (z = o.weatherCheckList) != null && z.includes("current-direction") ? "primary" : "",
13470
13474
  variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
13471
13475
  height: "24",
13472
13476
  width: "24",
@@ -13474,7 +13478,7 @@ function Em(t, e, o, i, a, r) {
13474
13478
  onClick: e[5] || (e[5] = (O) => r.handleClickFastWeather("current-direction"))
13475
13479
  }), {
13476
13480
  default: u(() => [
13477
- l("i", B(y, { class: "iconfont icon-Current" }), null, 16)
13481
+ l("i", B(g, { class: "iconfont icon-Current" }), null, 16)
13478
13482
  ]),
13479
13483
  _: 2
13480
13484
  }, 1040, ["color", "variant"])
@@ -13482,12 +13486,12 @@ function Em(t, e, o, i, a, r) {
13482
13486
  }),
13483
13487
  _: 1
13484
13488
  }, 8, ["text"]),
13485
- h(L, {
13489
+ h(k, {
13486
13490
  text: t.$t("weather.weatherLayers"),
13487
13491
  location: "top"
13488
13492
  }, {
13489
- activator: u(({ props: y }) => [
13490
- h(f, B(y, {
13493
+ activator: u(({ props: g }) => [
13494
+ h(y, B(g, {
13491
13495
  class: "pa-1 d-flex",
13492
13496
  variant: "text",
13493
13497
  height: "24",
@@ -13496,7 +13500,7 @@ function Em(t, e, o, i, a, r) {
13496
13500
  onClick: r.handleClickFastMore
13497
13501
  }), {
13498
13502
  default: u(() => [
13499
- l("i", B(y, { class: "iconfont icon-dots-align" }), null, 16)
13503
+ l("i", B(g, { class: "iconfont icon-dots-align" }), null, 16)
13500
13504
  ]),
13501
13505
  _: 2
13502
13506
  }, 1040, ["onClick"])
@@ -13510,12 +13514,12 @@ function Em(t, e, o, i, a, r) {
13510
13514
  style: { height: "16px" }
13511
13515
  }),
13512
13516
  l("div", Dm, [
13513
- h(f, {
13517
+ h(y, {
13514
13518
  text: "",
13515
13519
  height: "30",
13516
13520
  class: "px-2 elevation-0 text-body-1 btn-border-2",
13517
13521
  color: a.source === "GFS" ? "primary" : "",
13518
- onClick: e[6] || (e[6] = (y) => a.source = "GFS")
13522
+ onClick: e[6] || (e[6] = (g) => a.source = "GFS")
13519
13523
  }, {
13520
13524
  default: u(() => e[15] || (e[15] = [
13521
13525
  j("NOAA", -1)
@@ -13523,12 +13527,12 @@ function Em(t, e, o, i, a, r) {
13523
13527
  _: 1,
13524
13528
  __: [15]
13525
13529
  }, 8, ["color"]),
13526
- h(f, {
13530
+ h(y, {
13527
13531
  text: "",
13528
13532
  height: "30",
13529
13533
  class: "px-2 elevation-0 text-body-1 btn-border-2",
13530
13534
  color: a.source === "ECMWF" ? "primary" : "",
13531
- onClick: e[7] || (e[7] = (y) => a.source = "ECMWF")
13535
+ onClick: e[7] || (e[7] = (g) => a.source = "ECMWF")
13532
13536
  }, {
13533
13537
  default: u(() => e[16] || (e[16] = [
13534
13538
  j("ECMWF", -1)
@@ -13543,20 +13547,20 @@ function Em(t, e, o, i, a, r) {
13543
13547
  style: ie({ right: a.right + "px" })
13544
13548
  }, [
13545
13549
  a.showTimezone ? (b(), S("div", Rm, [
13546
- (b(!0), S(be, null, we(a.offsets, (y) => (b(), S("div", {
13547
- key: y,
13550
+ (b(!0), S(be, null, we(a.offsets, (g) => (b(), S("div", {
13551
+ key: g,
13548
13552
  class: "item rounded text-body-2 hover-active",
13549
- onClick: (k) => a.timeZone = y
13550
- }, m(y < 0 ? y : "+" + y), 9, Om))), 128))
13553
+ onClick: (z) => a.timeZone = g
13554
+ }, m(g < 0 ? g : "+" + g), 9, Om))), 128))
13551
13555
  ])) : M("", !0),
13552
13556
  l("div", Bm, [
13553
- h(f, {
13557
+ h(y, {
13554
13558
  text: "",
13555
13559
  variant: "flat",
13556
13560
  height: "28",
13557
13561
  class: "pa-1 text-body-1",
13558
13562
  color: "primary",
13559
- onClick: e[8] || (e[8] = (y) => a.showTimezone = !a.showTimezone)
13563
+ onClick: e[8] || (e[8] = (g) => a.showTimezone = !a.showTimezone)
13560
13564
  }, {
13561
13565
  default: u(() => [
13562
13566
  j(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
@@ -13632,7 +13636,7 @@ const jm = /* @__PURE__ */ K(Tm, [["render", Em]]), Fm = {
13632
13636
  class: "map-gl4-home"
13633
13637
  };
13634
13638
  function Um(t, e, o, i, a, r) {
13635
- const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), f = x("IdmBottomBar");
13639
+ const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), f = x("IdmMeasure"), p = x("IdmSpot"), y = x("IdmBottomBar");
13636
13640
  return b(), S("div", Hm, [
13637
13641
  h(s, B({
13638
13642
  ref: "idmOtherLayers",
@@ -13678,7 +13682,7 @@ function Um(t, e, o, i, a, r) {
13678
13682
  "forecast-model": o.forecastModel,
13679
13683
  "map-feather": o.mapFeather
13680
13684
  }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
13681
- h(g, B({
13685
+ h(f, B({
13682
13686
  map: o.map,
13683
13687
  "map-feather": o.mapFeather
13684
13688
  }, t.$attrs), null, 16, ["map", "map-feather"]),
@@ -13690,7 +13694,7 @@ function Um(t, e, o, i, a, r) {
13690
13694
  "forecast-model": o.forecastModel,
13691
13695
  "map-feather": o.mapFeather
13692
13696
  }, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
13693
- h(f, B({
13697
+ h(y, B({
13694
13698
  ref: "idmBottomBar",
13695
13699
  "forecast-model": o.forecastModel,
13696
13700
  "weather-check-list": a.weatherCheckList,
@@ -13707,7 +13711,7 @@ class Gm {
13707
13711
  de(this, "hi");
13708
13712
  de(this, "td");
13709
13713
  de(this, "windy");
13710
- var o, i, a, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Ie, ge, fe, G, Ce, oe, le, Oe, E, ye, Me, Be, Ne, N, Y, Ve, Ze, qe, Te, Ye, Ke, Xe, $e, Je, Qe, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Jt, Qt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, No, Eo, jo, Fo, Ho, Uo, Wo, Go, Vo, Zo, qo, Yo, Ko, Xo, $o, Jo, Qo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Na, Ea, ja, Fa, Ha, Ua, Wa, Ga;
13714
+ var o, i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Ie, ge, fe, G, Ce, oe, le, Oe, E, ye, Me, Be, Ne, N, Y, Ve, Ze, qe, Te, Ye, Ke, Xe, $e, Je, Qe, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Jt, Qt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, No, Eo, jo, Fo, Ho, Uo, Wo, Go, Vo, Zo, qo, Yo, Ko, Xo, $o, Jo, Qo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Na, Ea, ja, Fa, Ha, Ua, Wa, Ga;
13711
13715
  this.i4 = {
13712
13716
  source: {
13713
13717
  type: "raster",
@@ -32302,15 +32306,15 @@ class Gm {
32302
32306
  (i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((d) => d.id === "land"),
32303
32307
  (r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((d) => d.id === "water"),
32304
32308
  (c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
32305
- (g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((d) => d.id === "ice-area-line"),
32306
- (f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((d) => d.id === "loadlines-label"),
32307
- (L = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : L.find((d) => d.id === "loadlines-fill"),
32308
- (k = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : k.find((d) => d.id === "empty-layer-0"),
32309
+ (f = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : f.find((d) => d.id === "ice-area-line"),
32310
+ (y = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : y.find((d) => d.id === "loadlines-label"),
32311
+ (k = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : k.find((d) => d.id === "loadlines-fill"),
32312
+ (z = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : z.find((d) => d.id === "empty-layer-0"),
32309
32313
  (O = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : O.find((d) => d.id === "empty-layer-1"),
32310
32314
  (P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((d) => d.id === "country-boundaries"),
32311
- (z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((d) => d.id === "water-outline"),
32315
+ (L = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : L.find((d) => d.id === "water-outline"),
32312
32316
  (v = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline2"),
32313
- (U = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : U.find((d) => d.id === "empty-layer-2"),
32317
+ (H = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : H.find((d) => d.id === "empty-layer-2"),
32314
32318
  (q = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : q.find((d) => d.id === "water-line-label"),
32315
32319
  (Q = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Q.find((d) => d.id === "water-point-label"),
32316
32320
  (J = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : J.find((d) => d.id === "world-12nm-v4-20231025"),
@@ -32575,7 +32579,7 @@ const Vm = {
32575
32579
  this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
32576
32580
  }
32577
32581
  }
32578
- }, Zm = { class: "mapbox-initial-gl4" }, qm = { class: "v-btn--variant-elevated rounded" }, Ym = { class: "zoom" }, Km = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" };
32582
+ }, Zm = { class: "mapbox-initial-gl4" }, qm = { class: "v-btn--variant-elevated rounded" }, Ym = { class: "zoom" }, Km = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70" };
32579
32583
  function Xm(t, e, o, i, a, r) {
32580
32584
  const s = x("VBtn");
32581
32585
  return b(), S("div", Zm, [