@idmwx/idmui-gl4 1.7.4 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,15 +3,15 @@ var Ka = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var de = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Se from "axios";
5
5
  import { useTheme as ze } from "vuetify";
6
- import { openBlock as y, createElementBlock as S, resolveComponent as w, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as K, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
6
+ import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as K, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
7
7
  import ve from "mapbox-gl";
8
8
  import M from "moment";
9
9
  import { LngLatHelper as X, TropicalHelper as Va, LaneHelper as Ge } from "@idm-plugin/geo";
10
10
  import { Meteo2Assist as Co, TidesAssist as Ya } from "@idm-plugin/meteo";
11
11
  import * as So from "echarts";
12
12
  import * as H from "@turf/turf";
13
- import { LayerHelper as To, CompanyHelper as Qa } from "@idm-plugin/tag2";
14
- import Ja from "@mapbox/sphericalmercator";
13
+ import { LayerHelper as To, CompanyHelper as Ja } from "@idm-plugin/tag2";
14
+ import Qa from "@mapbox/sphericalmercator";
15
15
  import { LayerHelper as ei } from "@idm-plugin/tag";
16
16
  const Y = (t, e) => {
17
17
  const o = t.__vccOpts || t;
@@ -489,7 +489,7 @@ const mi = {
489
489
  }
490
490
  }, di = ["innerHTML"];
491
491
  function hi(t, e, o, i, a, r) {
492
- const l = w("VBtn"), c = w("v-card-text"), n = w("v-card");
492
+ const l = x("VBtn"), c = x("v-card-text"), n = x("v-card");
493
493
  return a.showMakerInfo ? (y(), R(n, {
494
494
  key: 0,
495
495
  class: "scroll",
@@ -1487,10 +1487,10 @@ const ui = {
1487
1487
  { label: "Swell", key: "weather.swell", unit: "m" },
1488
1488
  { label: "Current", key: "weather.current", unit: "kts" }
1489
1489
  ], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
1490
- var c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, W, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe;
1490
+ var c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe;
1491
1491
  let r = {};
1492
1492
  const l = ((c = Co.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
1493
- r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((z = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.precip) == null ? void 0 : z.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((k = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : k.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((W = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : W.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((J = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = l == null ? void 0 : l.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1493
+ r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((W = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : W.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((J = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = l == null ? void 0 : l.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1494
1494
  });
1495
1495
  },
1496
1496
  handleTide() {
@@ -1650,7 +1650,7 @@ const ui = {
1650
1650
  }, Ui = {
1651
1651
  key: 0,
1652
1652
  class: ""
1653
- }, Wi = { class: "px-1 text-center" }, Vi = ["src"], Zi = { key: 1 }, Yi = { class: "px-1 text-center" }, qi = ["src"], Xi = { key: 1 }, $i = { class: "px-1 text-center" }, Ki = ["src"], Qi = { key: 1 }, Ji = { class: "px-1 text-center" }, er = ["src"], tr = { key: 1 }, or = { class: "table-box w-100 mt-2 d-flex flex-column justify-start align-center" }, ar = { class: "w-100 d-flex justify-space-between align-center py-2" }, ir = { class: "d-flex justify-center align-center text-h6 ga-2" }, rr = {
1653
+ }, Wi = { class: "px-1 text-center" }, Vi = ["src"], Zi = { key: 1 }, Yi = { class: "px-1 text-center" }, qi = ["src"], Xi = { key: 1 }, $i = { class: "px-1 text-center" }, Ki = ["src"], Ji = { key: 1 }, Qi = { class: "px-1 text-center" }, er = ["src"], tr = { key: 1 }, or = { class: "table-box w-100 mt-2 d-flex flex-column justify-start align-center" }, ar = { class: "w-100 d-flex justify-space-between align-center py-2" }, ir = { class: "d-flex justify-center align-center text-h6 ga-2" }, rr = {
1654
1654
  class: "multi-color-icon",
1655
1655
  "aria-hidden": "true"
1656
1656
  }, sr = ["xlink:href"], lr = { class: "text-body-2 ga-2" }, nr = {
@@ -1675,10 +1675,10 @@ const ui = {
1675
1675
  width: "120"
1676
1676
  }, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
1677
1677
  function yr(t, e, o, i, a, r) {
1678
- const l = w("VBtn"), c = w("VCardTitle"), n = w("VDivider"), u = w("VIcon"), h = w("VBtnToggle"), b = w("VCard");
1678
+ const l = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), u = x("VIcon"), h = x("VBtnToggle"), b = x("VCard");
1679
1679
  return y(), R(b, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1680
1680
  default: f(() => {
1681
- var x, z;
1681
+ var w, _;
1682
1682
  return [
1683
1683
  p(c, { class: "w-100" }, {
1684
1684
  default: f(() => {
@@ -1781,7 +1781,7 @@ function yr(t, e, o, i, a, r) {
1781
1781
  s("div", Li, [
1782
1782
  s("div", Pi, [
1783
1783
  s("div", Ci, m(t.$t("port.region")), 1),
1784
- s("div", Ti, m(((x = o.port) == null ? void 0 : x.region) ?? ((z = o.port) == null ? void 0 : z.city) ?? "-"), 1)
1784
+ s("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((_ = o.port) == null ? void 0 : _.city) ?? "-"), 1)
1785
1785
  ]),
1786
1786
  s("div", Si, [
1787
1787
  s("div", Mi, m(t.$t("port.position")), 1),
@@ -1860,9 +1860,9 @@ function yr(t, e, o, i, a, r) {
1860
1860
  key: 0,
1861
1861
  src: g == null ? void 0 : g.value2,
1862
1862
  style: { height: "30px" }
1863
- }, null, 8, Ki)) : (y(), S("span", Qi, m((g == null ? void 0 : g.value2) ?? "-"), 1))
1863
+ }, null, 8, Ki)) : (y(), S("span", Ji, m((g == null ? void 0 : g.value2) ?? "-"), 1))
1864
1864
  ]),
1865
- s("td", Ji, [
1865
+ s("td", Qi, [
1866
1866
  g.img ? (y(), S("img", {
1867
1867
  key: 0,
1868
1868
  src: g == null ? void 0 : g.value3,
@@ -2038,7 +2038,7 @@ const br = {
2038
2038
  }
2039
2039
  }, wr = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, xr = { class: "d-flex justify-start align-center text-label" }, vr = { class: "d-flex justify-start align-center text-label" };
2040
2040
  function _r(t, e, o, i, a, r) {
2041
- const l = w("VCardText"), c = w("VCard"), n = w("PortDetail");
2041
+ const l = x("VCardText"), c = x("VCard"), n = x("PortDetail");
2042
2042
  return y(), S("div", null, [
2043
2043
  Ue(p(c, {
2044
2044
  id: "idmPortInfo",
@@ -2139,31 +2139,38 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
2139
2139
  return {
2140
2140
  source: "time-zone-source",
2141
2141
  zoneLayer: "time-zone-layer",
2142
+ zoneBorderLayer: "time-zone-border-layer",
2142
2143
  zoneLabelLayer: "time-zone-label-layer"
2143
2144
  };
2144
2145
  },
2145
2146
  watch: {
2146
2147
  zone: {
2147
2148
  handler() {
2148
- this.handleRender();
2149
+ var t, e, o, i;
2150
+ this.zone ? (this.handleRender(), (t = this.map) == null || t.on("mousemove", [this.zoneLayer], this.handleHover), (e = this.map) == null || e.on("mouseleave", [this.zoneLayer], this.handleLeave)) : (this.handleClear(), (o = this.map) == null || o.off("mousemove", [this.zoneLayer], this.handleHover), (i = this.map) == null || i.off("mouseleave", [this.zoneLayer], this.handleLeave));
2149
2151
  },
2150
2152
  immediate: !0
2151
2153
  }
2152
2154
  },
2153
2155
  methods: {
2154
2156
  handleRender() {
2155
- this.handleClear(), this.zone && (this.map.addSource(this.source, {
2157
+ var e;
2158
+ this.handleClear();
2159
+ let t = {
2160
+ features: [],
2161
+ type: "FeatureCollection"
2162
+ };
2163
+ t.features = (e = this.zone.features) == null ? void 0 : e.map((o) => (o.properties.opacity = 0, o.properties.textOpacity = 0, o.properties.lineOpacity = 0.3, o.properties.width = 1, o)), this.zone && (this.map.addSource(this.source, {
2156
2164
  type: "geojson",
2157
- data: this.zone
2165
+ data: t
2158
2166
  }), this.map.addLayer(
2159
2167
  {
2160
2168
  id: this.zoneLayer,
2161
2169
  type: "fill",
2162
2170
  source: this.source,
2163
- filter: ["==", "$type", "Polygon"],
2171
+ filter: ["all", ["==", "$type", "Polygon"]],
2164
2172
  paint: {
2165
- "fill-outline-color": "rgba(255, 255, 255, 0.5)",
2166
- "fill-opacity": 0.25,
2173
+ "fill-opacity": ["get", "opacity"],
2167
2174
  "fill-color": [
2168
2175
  "match",
2169
2176
  ["get", "offSet"],
@@ -2266,6 +2273,19 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
2266
2273
  }
2267
2274
  },
2268
2275
  this.beforeLayer
2276
+ ), this.map.addLayer(
2277
+ {
2278
+ id: this.zoneBorderLayer,
2279
+ type: "line",
2280
+ source: this.source,
2281
+ filter: ["==", "$type", "Polygon"],
2282
+ paint: {
2283
+ "line-color": "rgba(255, 255, 255, 1)",
2284
+ "line-opacity": ["get", "lineOpacity"],
2285
+ "line-width": ["get", "width"]
2286
+ }
2287
+ },
2288
+ this.beforeLayer
2269
2289
  ), this.map.addLayer(
2270
2290
  {
2271
2291
  id: this.zoneLabelLayer,
@@ -2274,21 +2294,46 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
2274
2294
  filter: ["==", "$type", "Point"],
2275
2295
  layout: {
2276
2296
  "symbol-placement": "point",
2277
- "text-field": "{offSet}",
2297
+ "text-field": "UTC {offSet}",
2278
2298
  "text-rotation-alignment": "viewport",
2279
- "text-size": 10,
2299
+ "text-size": 14,
2280
2300
  "text-offset": [0, 1],
2281
2301
  "text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
2282
2302
  },
2283
2303
  paint: {
2284
- "text-color": this.Theme.current.value.colors["on-surface"]
2304
+ "text-color": this.Theme.current.value.colors["on-surface"],
2305
+ "text-opacity": ["get", "textOpacity"]
2285
2306
  }
2286
2307
  },
2287
2308
  this.beforeLayer
2288
2309
  ));
2289
2310
  },
2290
2311
  handleClear() {
2291
- this.map.getLayer(this.zoneLayer) && this.map.removeLayer(this.zoneLayer), this.map.getLayer(this.zoneLabelLayer) && this.map.removeLayer(this.zoneLabelLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
2312
+ this.map.getLayer(this.zoneLayer) && this.map.removeLayer(this.zoneLayer), this.map.getLayer(this.zoneBorderLayer) && this.map.removeLayer(this.zoneBorderLayer), this.map.getLayer(this.zoneLabelLayer) && this.map.removeLayer(this.zoneLabelLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
2313
+ },
2314
+ handleHover(t) {
2315
+ var e, o;
2316
+ if (t.features.length) {
2317
+ let i = {
2318
+ features: [],
2319
+ type: "FeatureCollection"
2320
+ };
2321
+ i.features = (e = this.zone.features) == null ? void 0 : e.map((a) => {
2322
+ const r = JSON.parse(JSON.stringify(a));
2323
+ return r.properties.offSet === t.features[0].properties.offSet ? (r.properties.opacity = 0.25, r.properties.textOpacity = 1, r.properties.lineOpacity = 0.7, r.properties.width = 2) : (r.properties.opacity = 0, r.properties.textOpacity = 0, r.properties.lineOpacity = 0.3, r.properties.width = 1), r;
2324
+ }), (o = this.map.getSource(this.source)) == null || o.setData(i);
2325
+ }
2326
+ },
2327
+ handleLeave() {
2328
+ var e, o;
2329
+ let t = {
2330
+ features: [],
2331
+ type: "FeatureCollection"
2332
+ };
2333
+ t.features = (e = this.zone.features) == null ? void 0 : e.map((i) => {
2334
+ const a = JSON.parse(JSON.stringify(i));
2335
+ return a.properties.opacity = 0, a.properties.textOpacity = 0, a.properties.lineOpacity = 0.3, a.properties.width = 1, a;
2336
+ }), (o = this.map.getSource(this.source)) == null || o.setData(t);
2292
2337
  }
2293
2338
  }
2294
2339
  };
@@ -2915,7 +2960,7 @@ const qr = {
2915
2960
  this.$emit("close");
2916
2961
  }
2917
2962
  }
2918
- }, Xr = { class: "d-flex justify-space-between align-center" }, $r = { class: "d-flex justify-start text-h5 my-2" }, Kr = { class: "d-flex justify-start align-center text-body-1 text-label ga-3" }, Qr = { class: "w-100 px-5 pt-0 pb-0 overflow-y-auto scroll" }, Jr = { class: "summary-box w-100" }, es = { class: "d-flex justify-space-between align-center py-2" }, ts = { class: "d-flex justify-center align-center text-h6 ga-2" }, os = {
2963
+ }, Xr = { class: "d-flex justify-space-between align-center" }, $r = { class: "d-flex justify-start text-h5 my-2" }, Kr = { class: "d-flex justify-start align-center text-body-1 text-label ga-3" }, Jr = { class: "w-100 px-5 pt-0 pb-0 overflow-y-auto scroll" }, Qr = { class: "summary-box w-100" }, es = { class: "d-flex justify-space-between align-center py-2" }, ts = { class: "d-flex justify-center align-center text-h6 ga-2" }, os = {
2919
2964
  class: "multi-color-icon",
2920
2965
  "aria-hidden": "true"
2921
2966
  }, as = ["xlink:href"], is = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, rs = { class: "w-100 d-flex justify-start align-center" }, ss = { class: "w-30 text-label font-weight-400" }, ls = { class: "flex-1-1-0" }, ns = { class: "w-100 d-flex justify-start align-center" }, cs = { class: "w-30 text-label font-weight-400" }, ms = { class: "flex-1-1-0" }, ds = { class: "w-100 d-flex justify-start align-center" }, hs = { class: "w-30 text-label font-weight-400" }, ps = { class: "flex-1-1-0" }, us = { class: "table-box w-100 mt-2 mb-4 d-flex flex-column justify-start align-center" }, gs = { class: "w-100 d-flex justify-space-between align-center py-2" }, fs = { class: "d-flex justify-center align-center text-h6 ga-2" }, ys = {
@@ -2940,18 +2985,18 @@ const qr = {
2940
2985
  width: "120"
2941
2986
  }, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Cs = { class: "px-1 text-center" };
2942
2987
  function Ts(t, e, o, i, a, r) {
2943
- const l = w("VBtn"), c = w("v-card-title"), n = w("v-divider"), u = w("VBtnToggle"), h = w("v-card");
2988
+ const l = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), u = x("VBtnToggle"), h = x("v-card");
2944
2989
  return y(), R(h, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2945
2990
  default: f(() => {
2946
- var b, x;
2991
+ var b, w;
2947
2992
  return [
2948
2993
  p(c, { class: "w-100" }, {
2949
2994
  default: f(() => {
2950
- var z;
2995
+ var _;
2951
2996
  return [
2952
2997
  s("div", Xr, [
2953
2998
  s("div", $r, [
2954
- s("div", null, m((z = o.station) == null ? void 0 : z.name), 1)
2999
+ s("div", null, m((_ = o.station) == null ? void 0 : _.name), 1)
2955
3000
  ]),
2956
3001
  p(l, {
2957
3002
  icon: "",
@@ -2975,8 +3020,8 @@ function Ts(t, e, o, i, a, r) {
2975
3020
  _: 1
2976
3021
  }),
2977
3022
  p(n, { class: "w-100" }),
2978
- s("div", Qr, [
2979
- s("div", Jr, [
3023
+ s("div", Jr, [
3024
+ s("div", Qr, [
2980
3025
  s("div", es, [
2981
3026
  s("div", ts, [
2982
3027
  (y(), S("svg", os, [
@@ -2991,7 +3036,7 @@ function Ts(t, e, o, i, a, r) {
2991
3036
  s("div", is, [
2992
3037
  s("div", rs, [
2993
3038
  s("div", ss, m(t.$t("tide.region")), 1),
2994
- s("div", ls, m(((b = o.station) == null ? void 0 : b.Country) ?? ((x = o.station) == null ? void 0 : x.city) ?? "-"), 1)
3039
+ s("div", ls, m(((b = o.station) == null ? void 0 : b.Country) ?? ((w = o.station) == null ? void 0 : w.city) ?? "-"), 1)
2995
3040
  ]),
2996
3041
  s("div", ns, [
2997
3042
  s("div", cs, m(t.$t("tide.position")), 1),
@@ -3018,7 +3063,7 @@ function Ts(t, e, o, i, a, r) {
3018
3063
  s("div", ws, [
3019
3064
  p(u, {
3020
3065
  modelValue: a.currentIndex,
3021
- "onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentIndex = z),
3066
+ "onUpdate:modelValue": e[0] || (e[0] = (_) => a.currentIndex = _),
3022
3067
  class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
3023
3068
  density: "compact",
3024
3069
  group: "",
@@ -3027,15 +3072,15 @@ function Ts(t, e, o, i, a, r) {
3027
3072
  rounded: "1"
3028
3073
  }, {
3029
3074
  default: f(() => [
3030
- (y(!0), S(be, null, we(r.dateList, (z) => (y(), R(l, {
3075
+ (y(!0), S(be, null, we(r.dateList, (_) => (y(), R(l, {
3031
3076
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
3032
3077
  density: "compact",
3033
3078
  color: "primary",
3034
3079
  height: "26",
3035
- value: z.index
3080
+ value: _.index
3036
3081
  }, {
3037
3082
  default: f(() => [
3038
- K(m(z.label), 1)
3083
+ K(m(_.label), 1)
3039
3084
  ]),
3040
3085
  _: 2
3041
3086
  }, 1032, ["value"]))), 256))
@@ -3050,12 +3095,12 @@ function Ts(t, e, o, i, a, r) {
3050
3095
  s("th", ks, m(t.$t("time.time")) + " ( LT )", 1),
3051
3096
  s("th", zs, m(t.$t("tide.height")) + " ( m )", 1)
3052
3097
  ]),
3053
- (y(!0), S(be, null, we(a.tideTableData, (z, g) => {
3098
+ (y(!0), S(be, null, we(a.tideTableData, (_, g) => {
3054
3099
  var P;
3055
3100
  return y(), S("tr", { key: g }, [
3056
- s("td", Ls, m(t.$t(`tide.${(P = z == null ? void 0 : z.type) == null ? void 0 : P.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
3057
- s("td", Ps, m(r.computeLocalTime(z == null ? void 0 : z.date, o.station, "MM-DD HH:mm")), 1),
3058
- s("td", Cs, m((z == null ? void 0 : z.height) ?? "-") + " m", 1)
3101
+ s("td", Ls, m(t.$t(`tide.${(P = _ == null ? void 0 : _.type) == null ? void 0 : P.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
3102
+ s("td", Ps, m(r.computeLocalTime(_ == null ? void 0 : _.date, o.station, "MM-DD HH:mm")), 1),
3103
+ s("td", Cs, m((_ == null ? void 0 : _.height) ?? "-") + " m", 1)
3059
3104
  ]);
3060
3105
  }), 128))
3061
3106
  ])
@@ -3146,7 +3191,7 @@ const Ms = {
3146
3191
  }
3147
3192
  }, Is = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Ds = { class: "d-flex justify-start align-center" }, As = { class: "d-flex justify-start align-center" }, Rs = { class: "text-label" };
3148
3193
  function Os(t, e, o, i, a, r) {
3149
- const l = w("v-card-text"), c = w("v-card"), n = w("TideDetail");
3194
+ const l = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
3150
3195
  return y(), S("div", null, [
3151
3196
  Ue(p(c, { id: "idmTidalInfo" }, {
3152
3197
  default: f(() => [
@@ -4308,7 +4353,7 @@ const Gs = {
4308
4353
  }
4309
4354
  }, Us = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Ws = { class: "d-flex justify-start align-center text-label" }, Vs = { class: "d-flex justify-start align-center text-label" };
4310
4355
  function Zs(t, e, o, i, a, r) {
4311
- const l = w("v-card-text"), c = w("v-card"), n = w("PortDetail");
4356
+ const l = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
4312
4357
  return y(), S("div", null, [
4313
4358
  Ue(p(c, {
4314
4359
  id: "idmFollowPortInfo",
@@ -4455,13 +4500,13 @@ const qs = {
4455
4500
  if (e.properties) {
4456
4501
  const b = e.properties;
4457
4502
  b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
4458
- const x = M(), z = (o = M(this.realTime)) == null ? void 0 : o.diff(x, "d", !0), g = {
4503
+ const w = M(), _ = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
4459
4504
  lat: b.lat,
4460
4505
  lng: b.lng,
4461
4506
  datetime: this.realTime,
4462
4507
  forecastModel: this.forecastModel
4463
4508
  };
4464
- z >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchMeteoData(g) : (h = (u = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : u.idmSpot) == null || h.fetchHistoryData(g);
4509
+ _ >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchMeteoData(g) : (h = (u = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : u.idmSpot) == null || h.fetchHistoryData(g);
4465
4510
  }
4466
4511
  },
4467
4512
  handleHover(t) {
@@ -4483,8 +4528,8 @@ const qs = {
4483
4528
  key: 0,
4484
4529
  class: "d-flex justify-start align-center text-label"
4485
4530
  };
4486
- function Qs(t, e, o, i, a, r) {
4487
- const l = w("v-card-text"), c = w("v-card");
4531
+ function Js(t, e, o, i, a, r) {
4532
+ const l = x("v-card-text"), c = x("v-card");
4488
4533
  return Ue((y(), R(c, {
4489
4534
  id: "idmFollowPositionInfo",
4490
4535
  ref: "idmFollowPositionInfo"
@@ -4510,7 +4555,7 @@ function Qs(t, e, o, i, a, r) {
4510
4555
  [We, a.showInfo]
4511
4556
  ]);
4512
4557
  }
4513
- const Js = /* @__PURE__ */ Y(qs, [["render", Qs], ["__scopeId", "data-v-cd6c9f7e"]]);
4558
+ const Qs = /* @__PURE__ */ Y(qs, [["render", Js], ["__scopeId", "data-v-cd6c9f7e"]]);
4514
4559
  const el = {
4515
4560
  name: "IdmOtherLayerr",
4516
4561
  components: {
@@ -4531,7 +4576,7 @@ const el = {
4531
4576
  IdmIceAreas: Ns,
4532
4577
  IdmLatLng: qa,
4533
4578
  IdmFollowPort: Ys,
4534
- IdmFollowPosition: Js
4579
+ IdmFollowPosition: Qs
4535
4580
  },
4536
4581
  props: {
4537
4582
  map: {
@@ -4681,8 +4726,8 @@ const el = {
4681
4726
  })
4682
4727
  );
4683
4728
  (await Promise.all(l)).map((n) => {
4684
- var b, x, z;
4685
- const u = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (z = (x = n == null ? void 0 : n.config) == null ? void 0 : x.headers) == null ? void 0 : z.key;
4729
+ var b, w, _;
4730
+ const u = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (_ = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : _.key;
4686
4731
  this.otherLayers[h] = u;
4687
4732
  });
4688
4733
  }
@@ -4720,8 +4765,8 @@ const el = {
4720
4765
  class: "border rounded-sm"
4721
4766
  }, dl = { class: "text-body-2 text-center pt-1" };
4722
4767
  function hl(t, e, o, i, a, r) {
4723
- var $, ne, se, J, ae, he, ce, pe, ge;
4724
- const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), h = w("VCheckbox"), b = w("VCardText"), x = w("VCard"), z = w("IdmLatLng"), g = w("IdmTerminator"), P = w("IdmTimezone"), T = w("IdmPort"), O = w("IdmAlertZone"), I = w("IdmTideStations"), L = w("IdmEcaZone"), k = w("IdmWarZone"), v = w("IdmGmdssArea"), C = w("IdmLoadLine"), _ = w("IdmWorldMarine"), A = w("IdmVRA"), N = w("IdmSpecialArea"), V = w("IdmWorld12nm"), Z = w("IdmChinaRoute"), W = w("IdmIceAreas"), ee = w("IdmFollowPort"), Q = w("IdmFollowPosition");
4768
+ var $, ne, se, Q, ae, he, ce, pe, ge;
4769
+ const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VCardItem"), h = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), _ = x("IdmLatLng"), g = x("IdmTerminator"), P = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), z = x("IdmWarZone"), v = x("IdmGmdssArea"), C = x("IdmLoadLine"), k = x("IdmWorldMarine"), A = x("IdmVRA"), N = x("IdmSpecialArea"), V = x("IdmWorld12nm"), Z = x("IdmChinaRoute"), W = x("IdmIceAreas"), ee = x("IdmFollowPort"), J = x("IdmFollowPosition");
4725
4770
  return y(), S("div", tl, [
4726
4771
  s("div", {
4727
4772
  class: "menu-bar-box transition px-1 rounded",
@@ -4770,7 +4815,7 @@ function hl(t, e, o, i, a, r) {
4770
4815
  }, 8, ["onClick"])
4771
4816
  ]),
4772
4817
  s("div", il, [
4773
- p(x, {
4818
+ p(w, {
4774
4819
  class: "block-bg mx-auto mb-3",
4775
4820
  elevation: "0"
4776
4821
  }, {
@@ -4823,7 +4868,7 @@ function hl(t, e, o, i, a, r) {
4823
4868
  ]),
4824
4869
  _: 1
4825
4870
  }),
4826
- p(x, {
4871
+ p(w, {
4827
4872
  class: "block-bg mx-auto mb-3",
4828
4873
  elevation: "0"
4829
4874
  }, {
@@ -4862,7 +4907,7 @@ function hl(t, e, o, i, a, r) {
4862
4907
  ]),
4863
4908
  _: 1
4864
4909
  }),
4865
- p(x, {
4910
+ p(w, {
4866
4911
  class: "block-bg mx-auto mb-3",
4867
4912
  elevation: "0"
4868
4913
  }, {
@@ -4901,7 +4946,7 @@ function hl(t, e, o, i, a, r) {
4901
4946
  ]),
4902
4947
  _: 1
4903
4948
  }),
4904
- p(x, {
4949
+ p(w, {
4905
4950
  class: "block-bg mx-auto mb-3",
4906
4951
  elevation: "0"
4907
4952
  }, {
@@ -4952,7 +4997,7 @@ function hl(t, e, o, i, a, r) {
4952
4997
  })
4953
4998
  ])
4954
4999
  ], 6),
4955
- o.map ? (y(), R(z, B({
5000
+ o.map ? (y(), R(_, B({
4956
5001
  key: 0,
4957
5002
  map: o.map,
4958
5003
  "menu-toggle": o.menuToggle,
@@ -4962,12 +5007,12 @@ function hl(t, e, o, i, a, r) {
4962
5007
  key: 1,
4963
5008
  map: o.map,
4964
5009
  area: ($ = a.otherLayers) == null ? void 0 : $["day-night"]
4965
- }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5010
+ }, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : D("", !0),
4966
5011
  o.map ? (y(), R(P, B({
4967
5012
  key: 2,
4968
5013
  map: o.map,
4969
5014
  zone: (ne = a.otherLayers) == null ? void 0 : ne["time-zones"]
4970
- }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5015
+ }, t.$attrs, { beforeLayer: "empty-layer-2" }), null, 16, ["map", "zone"])) : D("", !0),
4971
5016
  o.map ? (y(), R(T, B({
4972
5017
  key: 3,
4973
5018
  ref: "idmPorts",
@@ -4981,7 +5026,7 @@ function hl(t, e, o, i, a, r) {
4981
5026
  o.map ? (y(), R(O, B({
4982
5027
  key: 4,
4983
5028
  map: o.map,
4984
- zone: (J = a.otherLayers) == null ? void 0 : J["alert-zones"]
5029
+ zone: (Q = a.otherLayers) == null ? void 0 : Q["alert-zones"]
4985
5030
  }, t.$attrs, {
4986
5031
  "before-layer": "empty-layer-3",
4987
5032
  theme: o.theme
@@ -5003,7 +5048,7 @@ function hl(t, e, o, i, a, r) {
5003
5048
  map: o.map,
5004
5049
  zone: (ae = a.otherLayers) == null ? void 0 : ae["eca-zones"]
5005
5050
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5006
- o.map ? (y(), R(k, B({
5051
+ o.map ? (y(), R(z, B({
5007
5052
  key: 7,
5008
5053
  map: o.map,
5009
5054
  zone: (he = a.otherLayers) == null ? void 0 : he["war-zones"]
@@ -5018,7 +5063,7 @@ function hl(t, e, o, i, a, r) {
5018
5063
  map: o.map,
5019
5064
  show: a.checkList.includes("load-lines")
5020
5065
  }, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
5021
- o.map ? (y(), R(_, B({
5066
+ o.map ? (y(), R(k, B({
5022
5067
  key: 10,
5023
5068
  map: o.map,
5024
5069
  token: o.token,
@@ -5061,7 +5106,7 @@ function hl(t, e, o, i, a, r) {
5061
5106
  "forecast-model": o.forecastModel,
5062
5107
  realTime: o.realTime
5063
5108
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
5064
- o.map ? (y(), R(Q, B({
5109
+ o.map ? (y(), R(J, B({
5065
5110
  key: 17,
5066
5111
  ref: "idmFollowPosition",
5067
5112
  map: o.map,
@@ -5083,7 +5128,7 @@ class Io {
5083
5128
  de(this, "rampColorCanvas");
5084
5129
  de(this, "particleCanvas");
5085
5130
  de(this, "ratio");
5086
- this.map = e, this.mercator = new Ja(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
5131
+ this.map = e, this.mercator = new Qa(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
5087
5132
  }
5088
5133
  /**
5089
5134
  * 转换为[-180, 180]的经度,且包含转换次数
@@ -5122,8 +5167,8 @@ class Io {
5122
5167
  const e = (g = this.map) == null ? void 0 : g.getBounds();
5123
5168
  if (!e)
5124
5169
  return [];
5125
- const o = ((P = this.map) == null ? void 0 : P.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [u, h] = this.mercator.px([r, i[1]], o), [b, x] = this.mercator.px([c, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (l + n));
5126
- return [b, x, u + z, h];
5170
+ const o = ((P = this.map) == null ? void 0 : P.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [u, h] = this.mercator.px([r, i[1]], o), [b, w] = this.mercator.px([c, a[1]], o), _ = Math.round(this.mercator.size * Math.pow(2, o) * (l + n));
5171
+ return [b, w, u + _, h];
5127
5172
  }
5128
5173
  /**
5129
5174
  * [视窗边界像素宽度]
@@ -5306,9 +5351,9 @@ class Fe {
5306
5351
  sRange: o.getUniformLocation(i, "u_range_s")
5307
5352
  };
5308
5353
  h.resolution && o.uniform2f(h.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), h.image && o.uniform1i(h.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), h.color && o.uniform1i(h.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (h.uvRange && o.uniform2f(h.uvRange, c.uvRange[0], c.uvRange[1]), h.sRange && o.uniform2f(h.sRange, c.sRange[0], c.sRange[1])), h.scale && o.uniform1f(h.scale, (c == null ? void 0 : c.scale) || 1);
5309
- const b = e.getBoundPixel(), x = e.map.getZoom() + 1, z = e.getWorldCopy(b, x);
5310
- for (const g of z) {
5311
- const P = (g[0] - b[0]) * e.ratio, T = (g[1] - b[3]) * e.ratio, O = g[2] * e.ratio, [I, L, k, v] = [P, O + P, T, O + T], C = new Float32Array([I, k, L, k, I, v, I, v, L, k, L, v]);
5354
+ const b = e.getBoundPixel(), w = e.map.getZoom() + 1, _ = e.getWorldCopy(b, w);
5355
+ for (const g of _) {
5356
+ const P = (g[0] - b[0]) * e.ratio, T = (g[1] - b[3]) * e.ratio, O = g[2] * e.ratio, [I, L, z, v] = [P, O + P, T, O + T], C = new Float32Array([I, z, L, z, I, v, I, v, L, z, L, v]);
5312
5357
  o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
5313
5358
  }
5314
5359
  } catch (h) {
@@ -6013,8 +6058,8 @@ const vl = /* @__PURE__ */ Y(bl, [["render", xl]]), _l = {
6013
6058
  n.src = "data:image/svg+xml;base64," + window.btoa(u);
6014
6059
  const h = [n];
6015
6060
  let b = 0;
6016
- h.forEach((x) => {
6017
- x.onload = () => {
6061
+ h.forEach((w) => {
6062
+ w.onload = () => {
6018
6063
  b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", n), b === 1 && this.map.addLayer(
6019
6064
  {
6020
6065
  id: this.directionLayer,
@@ -6783,7 +6828,7 @@ const Nl = /* @__PURE__ */ Y(Bl, [["render", jl], ["__scopeId", "data-v-d47b8b5c
6783
6828
  };
6784
6829
  function Gl(t, e, o, i, a, r) {
6785
6830
  var n;
6786
- const l = w("VBtn"), c = w("VTooltip");
6831
+ const l = x("VBtn"), c = x("VTooltip");
6787
6832
  return (n = o.prmsl) != null && n.active ? (y(), S("div", Hl, [
6788
6833
  s("div", {
6789
6834
  class: "menu-bar-box pa-1 rounded",
@@ -7044,7 +7089,7 @@ function $l(t, e, o, i, a, r) {
7044
7089
  ])) : D("", !0);
7045
7090
  }
7046
7091
  const Kl = /* @__PURE__ */ Y(ql, [["render", $l], ["__scopeId", "data-v-dcedee39"]]);
7047
- const Ql = {
7092
+ const Jl = {
7048
7093
  name: "IdmThickness",
7049
7094
  props: {
7050
7095
  factor: {
@@ -7140,10 +7185,10 @@ const Ql = {
7140
7185
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
7141
7186
  }
7142
7187
  }
7143
- }, Jl = { key: 0 };
7188
+ }, Ql = { key: 0 };
7144
7189
  function en(t, e, o, i, a, r) {
7145
7190
  var l;
7146
- return (l = o.factor) != null && l.active ? (y(), S("div", Jl, [
7191
+ return (l = o.factor) != null && l.active ? (y(), S("div", Ql, [
7147
7192
  s("div", {
7148
7193
  class: "legend-bars-gl4 ice-thickness",
7149
7194
  style: ie({ right: a.right + "px" })
@@ -7158,7 +7203,7 @@ function en(t, e, o, i, a, r) {
7158
7203
  ]), 4)
7159
7204
  ])) : D("", !0);
7160
7205
  }
7161
- const tn = /* @__PURE__ */ Y(Ql, [["render", en]]);
7206
+ const tn = /* @__PURE__ */ Y(Jl, [["render", en]]);
7162
7207
  const on = {
7163
7208
  name: "IdmPrecip3h",
7164
7209
  props: {
@@ -7876,11 +7921,11 @@ const wn = {
7876
7921
  (t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
7877
7922
  },
7878
7923
  async fetchWeatherLayers(t = {}) {
7879
- var a, r, l, c, n, u, h, b, x;
7924
+ var a, r, l, c, n, u, h, b, w;
7880
7925
  const e = (/* @__PURE__ */ new Date()).valueOf();
7881
7926
  let o = 0, i = 0;
7882
7927
  if (this.map) {
7883
- const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), P = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
7928
+ const _ = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), P = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
7884
7929
  if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
7885
7930
  const T = To.WEATHER_LAYERS.find((O) => {
7886
7931
  var I;
@@ -7892,7 +7937,7 @@ const wn = {
7892
7937
  let T = this.weatherWeight;
7893
7938
  if (T > 0) {
7894
7939
  const O = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
7895
- `${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${z}&bbox=${P}&t=${this.realTime}`,
7940
+ `${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${_}&bbox=${P}&t=${this.realTime}`,
7896
7941
  {
7897
7942
  headers: {
7898
7943
  Authorization: this.defaultMeteoToken
@@ -7900,46 +7945,46 @@ const wn = {
7900
7945
  }
7901
7946
  );
7902
7947
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
7903
- const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, k = [];
7948
+ const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, z = [];
7904
7949
  for (const C in L)
7905
- k.push(
7950
+ z.push(
7906
7951
  Se.get(L[C], {
7907
7952
  headers: {
7908
7953
  Authorization: this.defaultMeteoToken,
7909
7954
  key: C
7910
7955
  },
7911
7956
  responseType: /\.(jpg|png)$/.test(L[C]) ? "blob" : "json"
7912
- }).catch((_) => {
7913
- console.log(`[${C}] fetch layer error: ${_}`);
7957
+ }).catch((k) => {
7958
+ console.log(`[${C}] fetch layer error: ${k}`);
7914
7959
  })
7915
7960
  );
7916
- const v = await Promise.all(k);
7961
+ const v = await Promise.all(z);
7917
7962
  this.weatherLayers = {}, v.map((C) => {
7918
7963
  var N, V, Z, W;
7919
- const _ = ((N = C == null ? void 0 : C.data) == null ? void 0 : N.data) || (C == null ? void 0 : C.data);
7964
+ const k = ((N = C == null ? void 0 : C.data) == null ? void 0 : N.data) || (C == null ? void 0 : C.data);
7920
7965
  let A = (Z = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : Z.key;
7921
- A && _ && (this.weatherLayers[A] = {
7922
- raw: _,
7966
+ A && k && (this.weatherLayers[A] = {
7967
+ raw: k,
7923
7968
  type: ((W = C == null ? void 0 : C.config) == null ? void 0 : W.responseType) === "blob" ? "image" : "json",
7924
7969
  etime: I.data.etime
7925
7970
  });
7926
7971
  });
7927
7972
  }
7928
7973
  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"]) {
7929
- const L = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, k = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
7974
+ const L = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, z = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
7930
7975
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
7931
7976
  type: "json",
7932
7977
  direction: L,
7933
- height: { raw: k },
7978
+ height: { raw: z },
7934
7979
  etime: I.data.etime
7935
7980
  };
7936
7981
  }
7937
7982
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
7938
- const L = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, k = (x = this.weatherLayers["current-speed"]) == null ? void 0 : x.raw;
7983
+ const L = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, z = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
7939
7984
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
7940
7985
  type: "json",
7941
7986
  direction: L,
7942
- speed: { raw: k },
7987
+ speed: { raw: z },
7943
7988
  etime: I.data.etime
7944
7989
  };
7945
7990
  }
@@ -7996,253 +8041,256 @@ const wn = {
7996
8041
  );
7997
8042
  },
7998
8043
  handleDrawWeather4Json() {
7999
- var u, h, b, x, z, g, P;
8044
+ var r, l, c, n, u, h, b;
8000
8045
  const t = (/* @__PURE__ */ new Date()).valueOf();
8001
8046
  let e = 0, o = 0;
8002
- const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (h = this.map) == null ? void 0 : h.getZoom(), r = X.convertToStdLng(i._sw.lng), l = X.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
8003
- for (const T in this.weatherLayers) {
8004
- let O = !1;
8005
- if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
8006
- let I = [];
8007
- if (T === "swell") {
8008
- O = !0;
8009
- const L = ((b = this.weatherLayers[T]) == null ? void 0 : b.direction) || {};
8010
- for (const v in L)
8011
- if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8012
- const C = L[v].lng;
8013
- r > l ? C.forEach((_, A) => {
8014
- var N, V, Z, W, ee, Q;
8015
- if (a < 2) {
8016
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
8017
- const $ = H.point([_, v], {
8018
- val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
8019
- spd: (Z = L[v].spd) == null ? void 0 : Z[A]
8047
+ const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
8048
+ if (i && a) {
8049
+ const w = X.convertToStdLng(i._sw.lng), _ = X.convertToStdLng(i._ne.lng), g = Math.floor(i._sw.lat), P = Math.ceil(i._ne.lat);
8050
+ for (const T in this.weatherLayers) {
8051
+ let O = !1;
8052
+ if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
8053
+ let I = [];
8054
+ if (T === "swell") {
8055
+ O = !0;
8056
+ const L = ((c = this.weatherLayers[T]) == null ? void 0 : c.direction) || {};
8057
+ for (const v in L)
8058
+ if (v > g && v < P && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8059
+ const C = L[v].lng;
8060
+ w > _ ? C.forEach((k, A) => {
8061
+ var N, V, Z, W, ee, J;
8062
+ if (a < 2) {
8063
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8064
+ const $ = H.point([k, v], {
8065
+ val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
8066
+ spd: (Z = L[v].spd) == null ? void 0 : Z[A]
8067
+ });
8068
+ I.push($);
8069
+ }
8070
+ } else if ((k >= w && k <= 180 || k >= -180 && k <= _) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8071
+ const $ = H.point([k, v], {
8072
+ val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8073
+ spd: (J = L[v].spd) == null ? void 0 : J[A]
8020
8074
  });
8021
8075
  I.push($);
8022
8076
  }
8023
- } else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= l) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8024
- const $ = H.point([_, v], {
8025
- val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8026
- spd: (Q = L[v].spd) == null ? void 0 : Q[A]
8027
- });
8028
- I.push($);
8029
- }
8030
- }) : C.forEach((_, A) => {
8031
- var N, V, Z, W, ee, Q;
8032
- if (r < 2) {
8033
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
8034
- const $ = H.point([_, v], {
8035
- val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
8036
- spd: (Z = L[v].spd) == null ? void 0 : Z[A]
8077
+ }) : C.forEach((k, A) => {
8078
+ var N, V, Z, W, ee, J;
8079
+ if (w < 2) {
8080
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8081
+ const $ = H.point([k, v], {
8082
+ val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
8083
+ spd: (Z = L[v].spd) == null ? void 0 : Z[A]
8084
+ });
8085
+ I.push($);
8086
+ }
8087
+ } else if (k >= w && k <= _ && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8088
+ const $ = H.point([k, v], {
8089
+ val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8090
+ spd: (J = L[v].spd) == null ? void 0 : J[A]
8037
8091
  });
8038
8092
  I.push($);
8039
8093
  }
8040
- } else if (_ >= r && _ <= l && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8041
- const $ = H.point([_, v], {
8042
- val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8043
- spd: (Q = L[v].spd) == null ? void 0 : Q[A]
8044
- });
8045
- I.push($);
8094
+ });
8095
+ }
8096
+ o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
8097
+ const z = this.weatherLayers[T].height;
8098
+ if (z) {
8099
+ if (!z.data) {
8100
+ const v = [];
8101
+ for (const C in (n = z.raw) == null ? void 0 : n.LineString) {
8102
+ const k = z.raw.LineString[C];
8103
+ for (const A of k)
8104
+ v.push(
8105
+ H.lineString(A, {
8106
+ val: Number(C)
8107
+ })
8108
+ );
8109
+ z.data = H.featureCollection(v);
8046
8110
  }
8047
- });
8048
- }
8049
- o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
8050
- const k = this.weatherLayers[T].height;
8051
- if (k) {
8052
- if (!k.data) {
8053
- const v = [];
8054
- for (const C in (x = k.raw) == null ? void 0 : x.LineString) {
8055
- const _ = k.raw.LineString[C];
8056
- for (const A of _)
8057
- v.push(
8058
- H.lineString(A, {
8059
- val: Number(C)
8060
- })
8061
- );
8062
- k.data = H.featureCollection(v);
8063
8111
  }
8112
+ if (z.data) {
8113
+ const v = this.handleBboxClip(z.data, i);
8114
+ I = I.concat(v);
8115
+ }
8116
+ o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
8064
8117
  }
8065
- if (k.data) {
8066
- const v = this.handleBboxClip(k.data, i);
8067
- I = I.concat(v);
8068
- }
8069
- o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
8070
- }
8071
- } else if (T === "current") {
8072
- O = !0;
8073
- const L = ((z = this.weatherLayers[T]) == null ? void 0 : z.direction) || {};
8074
- for (const v in L)
8075
- if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8076
- const C = L[v].lng;
8077
- r > l ? C.forEach((_, A) => {
8078
- var N, V, Z, W, ee, Q;
8079
- if (a < 2) {
8080
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
8081
- const $ = H.point([_, v], {
8082
- val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
8083
- spd: (Z = L[v].spd) == null ? void 0 : Z[A]
8118
+ } else if (T === "current") {
8119
+ O = !0;
8120
+ const L = ((u = this.weatherLayers[T]) == null ? void 0 : u.direction) || {};
8121
+ for (const v in L)
8122
+ if (v > g && v < P && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8123
+ const C = L[v].lng;
8124
+ w > _ ? C.forEach((k, A) => {
8125
+ var N, V, Z, W, ee, J;
8126
+ if (a < 2) {
8127
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8128
+ const $ = H.point([k, v], {
8129
+ val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
8130
+ spd: (Z = L[v].spd) == null ? void 0 : Z[A]
8131
+ });
8132
+ I.push($);
8133
+ }
8134
+ } else if ((k >= w && k <= 180 || k >= -180 && k <= _) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8135
+ const $ = H.point([k, v], {
8136
+ val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8137
+ spd: (J = L[v].spd) == null ? void 0 : J[A]
8084
8138
  });
8085
8139
  I.push($);
8086
8140
  }
8087
- } else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= l) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8088
- const $ = H.point([_, v], {
8089
- val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8090
- spd: (Q = L[v].spd) == null ? void 0 : Q[A]
8091
- });
8092
- I.push($);
8093
- }
8094
- }) : C.forEach((_, A) => {
8095
- var N, V, Z, W, ee, Q;
8096
- if (r < 2) {
8097
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
8098
- const $ = H.point([_, v], {
8099
- val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
8100
- spd: (Z = L[v].spd) == null ? void 0 : Z[A]
8141
+ }) : C.forEach((k, A) => {
8142
+ var N, V, Z, W, ee, J;
8143
+ if (w < 2) {
8144
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8145
+ const $ = H.point([k, v], {
8146
+ val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
8147
+ spd: (Z = L[v].spd) == null ? void 0 : Z[A]
8148
+ });
8149
+ I.push($);
8150
+ }
8151
+ } else if (k >= w && k <= _ && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8152
+ const $ = H.point([k, v], {
8153
+ val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8154
+ spd: (J = L[v].spd) == null ? void 0 : J[A]
8101
8155
  });
8102
8156
  I.push($);
8103
8157
  }
8104
- } else if (_ >= r && _ <= l && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8105
- const $ = H.point([_, v], {
8106
- val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8107
- spd: (Q = L[v].spd) == null ? void 0 : Q[A]
8108
- });
8109
- I.push($);
8158
+ });
8159
+ }
8160
+ o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
8161
+ const z = this.weatherLayers[T].speed;
8162
+ if (z) {
8163
+ if (!z.data) {
8164
+ const C = [];
8165
+ for (const k in (h = z.raw) == null ? void 0 : h.Polygon) {
8166
+ const A = z.raw.Polygon[k];
8167
+ for (const N of A)
8168
+ C.push(
8169
+ H.polygon(N, {
8170
+ val: Number(k)
8171
+ })
8172
+ );
8110
8173
  }
8111
- });
8112
- }
8113
- o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
8114
- const k = this.weatherLayers[T].speed;
8115
- if (k) {
8116
- if (!k.data) {
8117
- const C = [];
8118
- for (const _ in (g = k.raw) == null ? void 0 : g.Polygon) {
8119
- const A = k.raw.Polygon[_];
8120
- for (const N of A)
8121
- C.push(
8122
- H.polygon(N, {
8123
- val: Number(_)
8124
- })
8125
- );
8174
+ z.data = H.featureCollection(C);
8126
8175
  }
8127
- k.data = H.featureCollection(C);
8176
+ const v = a < this.zoom ? z.data.features.filter((C) => C.properties.val > 0.5) : z.data.features;
8177
+ I = I.concat(v), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
8128
8178
  }
8129
- const v = a < this.zoom ? k.data.features.filter((C) => C.properties.val > 0.5) : k.data.features;
8130
- I = I.concat(v), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
8131
- }
8132
- } else if (T === "wind") {
8133
- O = !0;
8134
- const L = this.weatherLayers.wind.raw;
8135
- for (const k in L)
8136
- if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8137
- const v = L[k].lng;
8138
- r > l ? v.forEach((C, _) => {
8139
- var A, N, V, Z;
8140
- if (a < 2) {
8141
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8142
- const W = H.point([C, k], {
8143
- dir: ((A = L[k].val) == null ? void 0 : A[_]) || ((N = L[k].dir) == null ? void 0 : N[_]),
8144
- spd: L[k].spd[_]
8179
+ } else if (T === "wind") {
8180
+ O = !0;
8181
+ const L = this.weatherLayers.wind.raw;
8182
+ for (const z in L)
8183
+ if (z > g && z < P && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8184
+ const v = L[z].lng;
8185
+ w > _ ? v.forEach((C, k) => {
8186
+ var A, N, V, Z;
8187
+ if (a < 2) {
8188
+ if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8189
+ const W = H.point([C, z], {
8190
+ dir: ((A = L[z].val) == null ? void 0 : A[k]) || ((N = L[z].dir) == null ? void 0 : N[k]),
8191
+ spd: L[z].spd[k]
8192
+ });
8193
+ I.push(W);
8194
+ }
8195
+ } else if ((C >= w && C <= 180 || C >= -180 && C <= _) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8196
+ const W = H.point([C, z], {
8197
+ dir: ((V = L[z].val) == null ? void 0 : V[k]) || ((Z = L[z].dir) == null ? void 0 : Z[k]),
8198
+ spd: L[z].spd[k]
8145
8199
  });
8146
8200
  I.push(W);
8147
8201
  }
8148
- } else if ((C >= r && C <= 180 || C >= -180 && C <= l) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8149
- const W = H.point([C, k], {
8150
- dir: ((V = L[k].val) == null ? void 0 : V[_]) || ((Z = L[k].dir) == null ? void 0 : Z[_]),
8151
- spd: L[k].spd[_]
8152
- });
8153
- I.push(W);
8154
- }
8155
- }) : v.forEach((C, _) => {
8156
- var A, N, V, Z;
8157
- if (a < 2) {
8158
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8159
- const W = H.point([C, k], {
8160
- dir: ((A = L[k].val) == null ? void 0 : A[_]) || ((N = L[k].dir) == null ? void 0 : N[_]),
8161
- spd: L[k].spd[_]
8202
+ }) : v.forEach((C, k) => {
8203
+ var A, N, V, Z;
8204
+ if (a < 2) {
8205
+ if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8206
+ const W = H.point([C, z], {
8207
+ dir: ((A = L[z].val) == null ? void 0 : A[k]) || ((N = L[z].dir) == null ? void 0 : N[k]),
8208
+ spd: L[z].spd[k]
8209
+ });
8210
+ I.push(W);
8211
+ }
8212
+ } else if (C >= w && C <= _ && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8213
+ const W = H.point([C, z], {
8214
+ dir: ((V = L[z].val) == null ? void 0 : V[k]) || ((Z = L[z].dir) == null ? void 0 : Z[k]),
8215
+ spd: L[z].spd[k]
8162
8216
  });
8163
8217
  I.push(W);
8164
8218
  }
8165
- } else if (C >= r && C <= l && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8166
- const W = H.point([C, k], {
8167
- dir: ((V = L[k].val) == null ? void 0 : V[_]) || ((Z = L[k].dir) == null ? void 0 : Z[_]),
8168
- spd: L[k].spd[_]
8169
- });
8170
- I.push(W);
8171
- }
8172
- });
8173
- }
8174
- o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
8175
- } else if (T === "sig-wave-height") {
8176
- if (this.weatherLayers[T].data)
8177
- I = this.weatherLayers[T].data;
8178
- else {
8179
- O = !0;
8180
- const L = this.weatherLayers[T].raw;
8181
- if (L) {
8182
- const k = [];
8183
- for (const v in L.Polygon) {
8184
- const C = L.Polygon[v];
8185
- for (const _ of C)
8186
- k.push(
8187
- H.polygon(_, {
8188
- val: Number(v)
8189
- })
8190
- );
8191
- }
8192
- for (const v in L.MultiPolygon) {
8193
- const C = L.MultiPolygon[v];
8194
- for (const _ of C)
8195
- k.push(
8196
- H.multiPolygon(_, {
8197
- val: Number(v)
8198
- })
8199
- );
8219
+ });
8200
8220
  }
8201
- for (const v in L.Point) {
8202
- const C = L.Point[v];
8203
- for (let _ = 0; _ < ((P = C.lng) == null ? void 0 : P.length); _++)
8204
- k.push(
8205
- H.point([C.lng[_], v], {
8206
- val: Number(C.val[_])
8207
- })
8208
- );
8221
+ o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
8222
+ } else if (T === "sig-wave-height") {
8223
+ if (this.weatherLayers[T].data)
8224
+ I = this.weatherLayers[T].data;
8225
+ else {
8226
+ O = !0;
8227
+ const L = this.weatherLayers[T].raw;
8228
+ if (L) {
8229
+ const z = [];
8230
+ for (const v in L.Polygon) {
8231
+ const C = L.Polygon[v];
8232
+ for (const k of C)
8233
+ z.push(
8234
+ H.polygon(k, {
8235
+ val: Number(v)
8236
+ })
8237
+ );
8238
+ }
8239
+ for (const v in L.MultiPolygon) {
8240
+ const C = L.MultiPolygon[v];
8241
+ for (const k of C)
8242
+ z.push(
8243
+ H.multiPolygon(k, {
8244
+ val: Number(v)
8245
+ })
8246
+ );
8247
+ }
8248
+ for (const v in L.Point) {
8249
+ const C = L.Point[v];
8250
+ for (let k = 0; k < ((b = C.lng) == null ? void 0 : b.length); k++)
8251
+ z.push(
8252
+ H.point([C.lng[k], v], {
8253
+ val: Number(C.val[k])
8254
+ })
8255
+ );
8256
+ }
8257
+ I = I.concat(z);
8209
8258
  }
8210
- I = I.concat(k);
8211
8259
  }
8212
- }
8213
- o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
8214
- } else if (T === "prmsl") {
8215
- if (this.weatherLayers[T].data)
8216
- I = this.weatherLayers[T].data;
8217
- else {
8218
- O = !0;
8219
- const L = this.weatherLayers[T].raw;
8220
- if (L) {
8221
- const k = [];
8222
- for (const v in L.LineString) {
8223
- const C = L.LineString[v];
8224
- for (const _ of C)
8225
- k.push(
8226
- H.lineString(_, {
8227
- val: Number(v)
8228
- })
8229
- );
8260
+ o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
8261
+ } else if (T === "prmsl") {
8262
+ if (this.weatherLayers[T].data)
8263
+ I = this.weatherLayers[T].data;
8264
+ else {
8265
+ O = !0;
8266
+ const L = this.weatherLayers[T].raw;
8267
+ if (L) {
8268
+ const z = [];
8269
+ for (const v in L.LineString) {
8270
+ const C = L.LineString[v];
8271
+ for (const k of C)
8272
+ z.push(
8273
+ H.lineString(k, {
8274
+ val: Number(v)
8275
+ })
8276
+ );
8277
+ }
8278
+ for (const v in L.Point)
8279
+ L.Point[v].lng.forEach((C, k) => {
8280
+ C = X.convertToStdLng(C), z.push(
8281
+ H.point([C, v], {
8282
+ val: L.Point[v].val[k],
8283
+ type: L.Point[v].type[k]
8284
+ })
8285
+ );
8286
+ });
8287
+ I = I.concat(z);
8230
8288
  }
8231
- for (const v in L.Point)
8232
- L.Point[v].lng.forEach((C, _) => {
8233
- C = X.convertToStdLng(C), k.push(
8234
- H.point([C, v], {
8235
- val: L.Point[v].val[_],
8236
- type: L.Point[v].type[_]
8237
- })
8238
- );
8239
- });
8240
- I = I.concat(k);
8241
8289
  }
8290
+ o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
8242
8291
  }
8243
- o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
8292
+ I.length && (this.weatherLayers[T].data = H.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
8244
8293
  }
8245
- I.length && (this.weatherLayers[T].data = H.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
8246
8294
  }
8247
8295
  }
8248
8296
  },
@@ -8282,10 +8330,10 @@ const wn = {
8282
8330
  }, Rn = {
8283
8331
  key: 1,
8284
8332
  class: "d-flex justify-start align-center ga-4 pl-6"
8285
- }, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" }, Jn = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
8333
+ }, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" }, Qn = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
8286
8334
  function ic(t, e, o, i, a, r) {
8287
- var J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e;
8288
- const l = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), b = w("VDivider"), x = w("VCard"), z = w("VSwitch"), g = w("VCardTitle"), P = w("VCardItem"), T = w("VCheckbox"), O = w("VRadio"), I = w("VBtnToggle"), L = w("IdmWindBarb"), k = w("IdmSigWaveHeight"), v = w("IdmCurrentDirection"), C = w("IdmPrmsl"), _ = w("IdmWindParticle"), A = w("IdmCurrentParticle"), N = w("IdmWave"), V = w("IdmSwell"), Z = w("IdmIceEdge"), W = w("IdmIceCover"), ee = w("IdmIceThickness"), Q = w("IdmPrecip3h"), $ = w("IdmVisibility"), ne = w("IdmWaterTemp"), se = w("IdmTemp");
8335
+ var Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e;
8336
+ const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), u = x("VRow"), h = x("VCardText"), b = x("VDivider"), w = x("VCard"), _ = x("VSwitch"), g = x("VCardTitle"), P = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), z = x("IdmSigWaveHeight"), v = x("IdmCurrentDirection"), C = x("IdmPrmsl"), k = x("IdmWindParticle"), A = x("IdmCurrentParticle"), N = x("IdmWave"), V = x("IdmSwell"), Z = x("IdmIceEdge"), W = x("IdmIceCover"), ee = x("IdmIceThickness"), J = x("IdmPrecip3h"), $ = x("IdmVisibility"), ne = x("IdmWaterTemp"), se = x("IdmTemp");
8289
8337
  return y(), S("div", xn, [
8290
8338
  s("div", {
8291
8339
  class: "menu-bar-box transition pa-1",
@@ -8340,7 +8388,7 @@ function ic(t, e, o, i, a, r) {
8340
8388
  _: 1
8341
8389
  })
8342
8390
  ], 4),
8343
- a.legendToggle ? (y(), R(x, {
8391
+ a.legendToggle ? (y(), R(w, {
8344
8392
  key: 0,
8345
8393
  width: "435",
8346
8394
  elevation: "16",
@@ -8453,7 +8501,7 @@ function ic(t, e, o, i, a, r) {
8453
8501
  s("div", Mn, [
8454
8502
  s("div", In, [
8455
8503
  s("div", Dn, m(t.$t("weather.weather")), 1),
8456
- p(z, {
8504
+ p(_, {
8457
8505
  modelValue: a.autoActive,
8458
8506
  "onUpdate:modelValue": e[1] || (e[1] = (G) => a.autoActive = G),
8459
8507
  class: "small-switch",
@@ -8480,7 +8528,7 @@ function ic(t, e, o, i, a, r) {
8480
8528
  s("div", {
8481
8529
  class: Ne(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
8482
8530
  }, [
8483
- p(x, {
8531
+ p(w, {
8484
8532
  class: "block-bg mx-auto mb-3",
8485
8533
  elevation: "0"
8486
8534
  }, {
@@ -8520,7 +8568,7 @@ function ic(t, e, o, i, a, r) {
8520
8568
  ]),
8521
8569
  _: 1
8522
8570
  }),
8523
- p(x, {
8571
+ p(w, {
8524
8572
  class: "block-bg mx-auto mb-3",
8525
8573
  elevation: "0"
8526
8574
  }, {
@@ -8559,7 +8607,7 @@ function ic(t, e, o, i, a, r) {
8559
8607
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
8560
8608
  a.renderKey === "wind-particle" && G.key === "wind-particle" ? (y(), S("div", An, [
8561
8609
  s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
8562
- p(z, {
8610
+ p(_, {
8563
8611
  modelValue: a.showWindParticle,
8564
8612
  "onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
8565
8613
  label: "",
@@ -8574,7 +8622,7 @@ function ic(t, e, o, i, a, r) {
8574
8622
  ])) : D("", !0),
8575
8623
  a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), S("div", Rn, [
8576
8624
  s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
8577
- p(z, {
8625
+ p(_, {
8578
8626
  modelValue: a.showCurrentParticle,
8579
8627
  "onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
8580
8628
  label: "",
@@ -8680,7 +8728,7 @@ function ic(t, e, o, i, a, r) {
8680
8728
  ]),
8681
8729
  _: 1
8682
8730
  }),
8683
- p(x, {
8731
+ p(w, {
8684
8732
  class: "block-bg mx-auto mb-3",
8685
8733
  elevation: "0"
8686
8734
  }, {
@@ -8701,33 +8749,33 @@ function ic(t, e, o, i, a, r) {
8701
8749
  }),
8702
8750
  p(h, { class: "" }, {
8703
8751
  default: f(() => {
8704
- var G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Qe, Je, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
8752
+ var G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
8705
8753
  return [
8706
8754
  s("div", On, m(t.$t("weather.atmospheric")), 1),
8707
8755
  s("div", Bn, m((He = (te = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : te.NOAA) == null ? void 0 : He.source) + " " + m((fe = (ue = (Me = a.models) == null ? void 0 : Me.weather) == null ? void 0 : ue.NOAA) == null ? void 0 : fe.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (oe = (Ce = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : oe.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
8708
8756
  s("div", En, m(t.$t("weather.source")) + ": NOAA", 1),
8709
8757
  s("div", jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((Ie = (ye = (j = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : j.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Ie.availabilityTime)), 1),
8710
- s("div", Nn, m(t.$t("weather.initialTime")) + ": " + m(r.computeDateZ((q = (E = (Ee = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.NOAA) == null ? void 0 : E.meta) == null ? void 0 : q.initialisationTime)), 1),
8711
- s("div", Fn, m((Ye = (Ze = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : Ze.ECMWF) == null ? void 0 : Ye.source) + " " + m((Xe = (qe = (Te = a.models) == null ? void 0 : Te.weather) == null ? void 0 : qe.ECMWF) == null ? void 0 : Xe.spatialResolution) + m(t.$t("units.km")) + " " + m((Je = (Qe = (Ke = ($e = a.models) == null ? void 0 : $e.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.days) + m(t.$t("units.days")), 1),
8758
+ s("div", Nn, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((q = (E = (Ee = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.NOAA) == null ? void 0 : E.meta) == null ? void 0 : q.initialisationTime)), 1),
8759
+ s("div", Fn, m((Ye = (Ze = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : Ze.ECMWF) == null ? void 0 : Ye.source) + " " + m((Xe = (qe = (Te = a.models) == null ? void 0 : Te.weather) == null ? void 0 : qe.ECMWF) == null ? void 0 : Xe.spatialResolution) + m(t.$t("units.km")) + " " + m((Qe = (Je = (Ke = ($e = a.models) == null ? void 0 : $e.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.days) + m(t.$t("units.days")), 1),
8712
8760
  s("div", Hn, m(t.$t("weather.source")) + ": ECMWF", 1),
8713
8761
  s("div", Gn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
8714
- s("div", Un, m(t.$t("weather.initialTime")) + ": " + m(r.computeDateZ((lt = (st = (rt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : st.meta) == null ? void 0 : lt.initialisationTime)), 1),
8762
+ s("div", Un, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((lt = (st = (rt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : st.meta) == null ? void 0 : lt.initialisationTime)), 1),
8715
8763
  p(b),
8716
8764
  s("div", Wn, m(t.$t("weather.wave")), 1),
8717
8765
  s("div", Vn, m((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.source) + " " + m((gt = (ut = (pt = (ht = a.models) == null ? void 0 : ht.marine) == null ? void 0 : pt.wave) == null ? void 0 : ut.NOAA) == null ? void 0 : gt.spatialResolution) + m(t.$t("units.km")) + " " + m((xt = (wt = (bt = (yt = (ft = a.models) == null ? void 0 : ft.marine) == null ? void 0 : yt.wave) == null ? void 0 : bt.NOAA) == null ? void 0 : wt.meta) == null ? void 0 : xt.days) + m(t.$t("units.days")), 1),
8718
8766
  s("div", Zn, m(t.$t("weather.source")) + ": NOAA", 1),
8719
8767
  s("div", Yn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((Lt = (zt = (kt = (_t = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : zt.meta) == null ? void 0 : Lt.availabilityTime)), 1),
8720
- s("div", qn, m(t.$t("weather.initialTime")) + ": " + m(r.computeDateZ((Mt = (St = (Tt = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.NOAA) == null ? void 0 : St.meta) == null ? void 0 : Mt.initialisationTime)), 1),
8768
+ s("div", qn, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((Mt = (St = (Tt = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.NOAA) == null ? void 0 : St.meta) == null ? void 0 : Mt.initialisationTime)), 1),
8721
8769
  s("div", Xn, m((Rt = (At = (Dt = (It = a.models) == null ? void 0 : It.marine) == null ? void 0 : Dt.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Rt.source) + " " + m((jt = (Et = (Bt = (Ot = a.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.wave) == null ? void 0 : Et.ECMWF) == null ? void 0 : jt.spatialResolution) + m(t.$t("units.km")) + " " + m((Ut = (Gt = (Ht = (Ft = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ft.wave) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Gt.meta) == null ? void 0 : Ut.days) + m(t.$t("units.days")), 1),
8722
8770
  s("div", $n, m(t.$t("weather.source")) + ": ECMWF", 1),
8723
8771
  s("div", Kn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((qt = (Yt = (Zt = (Vt = (Wt = a.models) == null ? void 0 : Wt.marine) == null ? void 0 : Vt.wave) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.availabilityTime)), 1),
8724
- s("div", Qn, m(t.$t("weather.initialTime")) + ": " + m(r.computeDateZ((eo = (Jt = (Qt = (Kt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Kt.wave) == null ? void 0 : Qt.ECMWF) == null ? void 0 : Jt.meta) == null ? void 0 : eo.initialisationTime)), 1),
8772
+ s("div", Jn, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((eo = (Qt = (Jt = (Kt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Kt.wave) == null ? void 0 : Jt.ECMWF) == null ? void 0 : Qt.meta) == null ? void 0 : eo.initialisationTime)), 1),
8725
8773
  p(b),
8726
- s("div", Jn, m(t.$t("weather.currents")), 1),
8774
+ s("div", Qn, m(t.$t("weather.currents")), 1),
8727
8775
  s("div", ec, m((io = (ao = (oo = (to = a.models) == null ? void 0 : to.marine) == null ? void 0 : oo.current) == null ? void 0 : ao.ECMWF) == null ? void 0 : io.source) + " " + m((no = (lo = (so = (ro = a.models) == null ? void 0 : ro.marine) == null ? void 0 : so.current) == null ? void 0 : lo.ECMWF) == null ? void 0 : no.spatialResolution) + m(t.$t("units.km")) + " " + m((uo = (po = (ho = (mo = (co = a.models) == null ? void 0 : co.marine) == null ? void 0 : mo.current) == null ? void 0 : ho.ECMWF) == null ? void 0 : po.meta) == null ? void 0 : uo.days) + m(t.$t("units.days")), 1),
8728
8776
  s("div", tc, m(t.$t("weather.source")) + ": ECMWF", 1),
8729
8777
  s("div", oc, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((wo = (bo = (yo = (fo = (go = a.models) == null ? void 0 : go.marine) == null ? void 0 : fo.current) == null ? void 0 : yo.ECMWF) == null ? void 0 : bo.meta) == null ? void 0 : wo.availabilityTime)), 1),
8730
- s("div", ac, m(t.$t("weather.initialTime")) + ": " + m(r.computeDateZ((zo = (ko = (_o = (vo = (xo = a.models) == null ? void 0 : xo.marine) == null ? void 0 : vo.current) == null ? void 0 : _o.ECMWF) == null ? void 0 : ko.meta) == null ? void 0 : zo.initialisationTime)), 1)
8778
+ s("div", ac, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((zo = (ko = (_o = (vo = (xo = a.models) == null ? void 0 : xo.marine) == null ? void 0 : vo.current) == null ? void 0 : _o.ECMWF) == null ? void 0 : ko.meta) == null ? void 0 : zo.initialisationTime)), 1)
8731
8779
  ];
8732
8780
  }),
8733
8781
  _: 1
@@ -8743,10 +8791,10 @@ function ic(t, e, o, i, a, r) {
8743
8791
  map: o.map,
8744
8792
  "map-feather": o.mapFeather,
8745
8793
  "before-layer": "empty-layer-3",
8746
- wind: (J = a.weatherLayers) == null ? void 0 : J.wind,
8794
+ wind: (Q = a.weatherLayers) == null ? void 0 : Q.wind,
8747
8795
  "menu-toggle": o.menuToggle
8748
8796
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
8749
- o.map ? (y(), R(k, B({
8797
+ o.map ? (y(), R(z, B({
8750
8798
  key: 2,
8751
8799
  map: o.map,
8752
8800
  "before-layer": "empty-layer-2",
@@ -8770,7 +8818,7 @@ function ic(t, e, o, i, a, r) {
8770
8818
  "menu-toggle": o.menuToggle,
8771
8819
  "active-weather-layers": a.activeWeatherLayers
8772
8820
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
8773
- o.map ? (y(), R(_, B({
8821
+ o.map ? (y(), R(k, B({
8774
8822
  key: 5,
8775
8823
  viewport: a.viewport,
8776
8824
  factor: (pe = a.weatherLayers) == null ? void 0 : pe["wind-particle"],
@@ -8814,7 +8862,7 @@ function ic(t, e, o, i, a, r) {
8814
8862
  factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
8815
8863
  "menu-toggle": o.menuToggle
8816
8864
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8817
- o.map ? (y(), R(Q, B({
8865
+ o.map ? (y(), R(J, B({
8818
8866
  key: 12,
8819
8867
  viewport: a.viewport,
8820
8868
  factor: (De = a.weatherLayers) == null ? void 0 : De.precip3h,
@@ -9158,18 +9206,18 @@ class Za {
9158
9206
  const a = e.toLowerCase().split(","), r = [], l = [];
9159
9207
  for (const c of a) {
9160
9208
  let n = Lo.find((h) => {
9161
- var b, x, z;
9162
- return ((b = h.models) == null ? void 0 : b.includes(c)) || ((x = h.alias) == null ? void 0 : x.toLowerCase()) === c || ((z = h.name) == null ? void 0 : z.toLowerCase()) === c;
9209
+ var b, w, _;
9210
+ return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((_ = h.name) == null ? void 0 : _.toLowerCase()) === c;
9163
9211
  }), u = Po.find((h) => {
9164
- var b, x, z;
9165
- return ((b = h.models) == null ? void 0 : b.includes(c)) || ((x = h.alias) == null ? void 0 : x.toLowerCase()) === c || ((z = h.name) == null ? void 0 : z.toLowerCase()) === c;
9212
+ var b, w, _;
9213
+ return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((_ = h.name) == null ? void 0 : _.toLowerCase()) === c;
9166
9214
  });
9167
9215
  n = n || Lo.find((h) => {
9168
- var b, x;
9169
- return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((x = u == null ? void 0 : u.alias) == null ? void 0 : x.toLowerCase());
9216
+ var b, w;
9217
+ return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = u == null ? void 0 : u.alias) == null ? void 0 : w.toLowerCase());
9170
9218
  }), u = u || Po.find((h) => {
9171
- var b, x;
9172
- return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((x = n == null ? void 0 : n.alias) == null ? void 0 : x.toLowerCase());
9219
+ var b, w;
9220
+ return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
9173
9221
  }), n = n || Lo[0], u = u || Po[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), l.push((i = u.models) != null && i.includes(c) ? c : u.model);
9174
9222
  }
9175
9223
  return {
@@ -9187,7 +9235,7 @@ class Za {
9187
9235
  }), a;
9188
9236
  }
9189
9237
  static pickHourly(e, o) {
9190
- var i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, W, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
9238
+ var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
9191
9239
  const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), re = Ce.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), Oe = [];
9192
9240
  if (ue.isBetween(oe, re, "millisecond", "[]")) {
9193
9241
  const j = ue.utc().diff(oe, "h", !1);
@@ -9199,9 +9247,9 @@ class Za {
9199
9247
  for (let Te = j - (j - 1) % 3; Te <= j; Te++)
9200
9248
  Be += (b = q == null ? void 0 : q.precipitation) == null ? void 0 : b.at(Te);
9201
9249
  for (let Te = j - (j - 1) % 6; Te <= j; Te++)
9202
- Ee += (x = q == null ? void 0 : q.precipitation) == null ? void 0 : x.at(Te);
9250
+ Ee += (w = q == null ? void 0 : q.precipitation) == null ? void 0 : w.at(Te);
9203
9251
  ye = {
9204
- temp: (z = q == null ? void 0 : q.temperature_2m) == null ? void 0 : z.at(j),
9252
+ temp: (_ = q == null ? void 0 : q.temperature_2m) == null ? void 0 : _.at(j),
9205
9253
  apparentTemp: (g = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : g.at(j),
9206
9254
  rh: (P = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : P.at(j),
9207
9255
  dp: (T = q == null ? void 0 : q.dew_point_2m) == null ? void 0 : T.at(j),
@@ -9212,11 +9260,11 @@ class Za {
9212
9260
  sum6Hours: Math.round(Ee * 100) / 100
9213
9261
  },
9214
9262
  pmsl: (L = q == null ? void 0 : q.pressure_msl) == null ? void 0 : L.at(j),
9215
- psurf: (k = q == null ? void 0 : q.surface_pressure) == null ? void 0 : k.at(j),
9263
+ psurf: (z = q == null ? void 0 : q.surface_pressure) == null ? void 0 : z.at(j),
9216
9264
  code: (v = q == null ? void 0 : q.weather_code) == null ? void 0 : v.at(j),
9217
9265
  visibility: this.m2nm((C = q == null ? void 0 : q.visibility) == null ? void 0 : C.at(j)),
9218
9266
  wind: {
9219
- speed: (_ = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : _.at(j),
9267
+ speed: (k = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : k.at(j),
9220
9268
  kts: (A = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : A.at(j),
9221
9269
  degree: (N = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : N.at(j),
9222
9270
  bearing: ((V = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : V.at(j)) !== null ? (((Z = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : Z.at(j)) + 180) % 360 : null,
@@ -9239,10 +9287,10 @@ class Za {
9239
9287
  Ie = {
9240
9288
  wave: {
9241
9289
  sig: {
9242
- height: (Q = E == null ? void 0 : E.wave_height) == null ? void 0 : Q.at(j),
9290
+ height: (J = E == null ? void 0 : E.wave_height) == null ? void 0 : J.at(j),
9243
9291
  degree: ($ = E == null ? void 0 : E.wave_direction) == null ? void 0 : $.at(j),
9244
9292
  bearing: ((ne = E == null ? void 0 : E.wave_direction) == null ? void 0 : ne.at(j)) !== null ? (((se = E == null ? void 0 : E.wave_direction) == null ? void 0 : se.at(j)) + 180) % 360 : null,
9245
- period: (J = E == null ? void 0 : E.wave_period) == null ? void 0 : J.at(j)
9293
+ period: (Q = E == null ? void 0 : E.wave_period) == null ? void 0 : Q.at(j)
9246
9294
  },
9247
9295
  swell: {
9248
9296
  height: (ae = E == null ? void 0 : E.swell_wave_height) == null ? void 0 : ae.at(j),
@@ -9296,7 +9344,7 @@ class Za {
9296
9344
  };
9297
9345
  }
9298
9346
  static pickDaily(e, o) {
9299
- var i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, W, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae;
9347
+ var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae;
9300
9348
  const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((n = (c = (l = _e == null ? void 0 : _e[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
9301
9349
  if (Re.isBetween(te, He, "millisecond", "[]")) {
9302
9350
  let ue, fe;
@@ -9309,10 +9357,10 @@ class Za {
9309
9357
  temp: {
9310
9358
  max: (h = oe.temperature_2m_max) == null ? void 0 : h.at(U),
9311
9359
  min: (b = oe.temperature_2m_min) == null ? void 0 : b.at(U),
9312
- mean: (x = oe.temperature_2m_mean) == null ? void 0 : x.at(U)
9360
+ mean: (w = oe.temperature_2m_mean) == null ? void 0 : w.at(U)
9313
9361
  },
9314
9362
  apparentTemp: {
9315
- max: (z = oe.apparent_temperature_max) == null ? void 0 : z.at(U),
9363
+ max: (_ = oe.apparent_temperature_max) == null ? void 0 : _.at(U),
9316
9364
  min: (g = oe.apparent_temperature_min) == null ? void 0 : g.at(U)
9317
9365
  },
9318
9366
  precip: {
@@ -9321,12 +9369,12 @@ class Za {
9321
9369
  snowfallSum: (O = oe.snowfall_sum) == null ? void 0 : O.at(U),
9322
9370
  showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(U),
9323
9371
  hours: (L = oe.precipitation_hours) == null ? void 0 : L.at(U),
9324
- probability: (k = oe.precipitation_probability_max) == null ? void 0 : k.at(U)
9372
+ probability: (z = oe.precipitation_probability_max) == null ? void 0 : z.at(U)
9325
9373
  },
9326
9374
  rh: {
9327
9375
  max: (v = oe.relative_humidity_2m_max) == null ? void 0 : v.at(U),
9328
9376
  min: (C = oe.relative_humidity_2m_min) == null ? void 0 : C.at(U),
9329
- mean: (_ = oe.relative_humidity_2m_mean) == null ? void 0 : _.at(U)
9377
+ mean: (k = oe.relative_humidity_2m_mean) == null ? void 0 : k.at(U)
9330
9378
  },
9331
9379
  wind: {
9332
9380
  speed: (A = oe.wind_speed_10m_max) == null ? void 0 : A.at(U),
@@ -9350,10 +9398,10 @@ class Za {
9350
9398
  fe = {
9351
9399
  wave: {
9352
9400
  sig: {
9353
- height: (Q = re.wave_height_max) == null ? void 0 : Q.at(U),
9401
+ height: (J = re.wave_height_max) == null ? void 0 : J.at(U),
9354
9402
  degree: ($ = re.wave_direction_dominant) == null ? void 0 : $.at(U),
9355
9403
  period: (ne = re.wave_period_max) == null ? void 0 : ne.at(U),
9356
- bearing: ((se = re.wave_direction_dominant) == null ? void 0 : se.at(U)) !== null ? (((J = re.wave_direction_dominant) == null ? void 0 : J.at(U)) + 180) % 360 : null
9404
+ bearing: ((se = re.wave_direction_dominant) == null ? void 0 : se.at(U)) !== null ? (((Q = re.wave_direction_dominant) == null ? void 0 : Q.at(U)) + 180) % 360 : null
9357
9405
  },
9358
9406
  swell: {
9359
9407
  height: (ae = re.swell_wave_height_max) == null ? void 0 : ae.at(U),
@@ -9831,7 +9879,7 @@ const sc = {
9831
9879
  return {
9832
9880
  right: 10,
9833
9881
  toggle: !1,
9834
- helper: Qa,
9882
+ helper: Ja,
9835
9883
  tropicals: void 0,
9836
9884
  tropicalCacheKey: "tropicalCacheGL4",
9837
9885
  source: "tropicals-source",
@@ -9983,8 +10031,8 @@ const sc = {
9983
10031
  },
9984
10032
  responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
9985
10033
  }).then((h) => {
9986
- var z, g, P;
9987
- const b = Va.convert2Geojson(((z = h == null ? void 0 : h.data) == null ? void 0 : z.data) || (h == null ? void 0 : h.data));
10034
+ var _, g, P;
10035
+ const b = Va.convert2Geojson(((_ = h == null ? void 0 : h.data) == null ? void 0 : _.data) || (h == null ? void 0 : h.data));
9988
10036
  ((P = (g = h == null ? void 0 : h.config) == null ? void 0 : g.headers) == null ? void 0 : P.key) && b && (this.tropicals = {
9989
10037
  data: b,
9990
10038
  active: !0,
@@ -10003,7 +10051,7 @@ const sc = {
10003
10051
  handleRefresh() {
10004
10052
  var e, o;
10005
10053
  (((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
10006
- var a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k;
10054
+ var a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z;
10007
10055
  if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
10008
10056
  let v = "";
10009
10057
  switch (!0) {
@@ -10016,10 +10064,10 @@ const sc = {
10016
10064
  case (((u = i.properties.wind) == null ? void 0 : u.kts) < 63 || ((h = i.properties) == null ? void 0 : h.kts) < 63):
10017
10065
  v = "STS";
10018
10066
  break;
10019
- case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((x = i.properties) == null ? void 0 : x.kts) < 79):
10067
+ case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((w = i.properties) == null ? void 0 : w.kts) < 79):
10020
10068
  v = "TY";
10021
10069
  break;
10022
- case (((z = i.properties.wind) == null ? void 0 : z.kts) < 94 || ((g = i.properties) == null ? void 0 : g.kts) < 94):
10070
+ case (((_ = i.properties.wind) == null ? void 0 : _.kts) < 94 || ((g = i.properties) == null ? void 0 : g.kts) < 94):
10023
10071
  v = "STY";
10024
10072
  break;
10025
10073
  case (((P = i.properties.wind) == null ? void 0 : P.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
@@ -10031,7 +10079,7 @@ const sc = {
10031
10079
  }
10032
10080
  i.properties.level = v;
10033
10081
  }
10034
- ((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (k = (L = M(i.properties.date)) == null ? void 0 : L.utcOffset(this.timeZone)) == null ? void 0 : k.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
10082
+ ((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (z = (L = M(i.properties.date)) == null ? void 0 : L.utcOffset(this.timeZone)) == null ? void 0 : z.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
10035
10083
  }), this.handleInit();
10036
10084
  },
10037
10085
  handleInit() {
@@ -10042,8 +10090,8 @@ const sc = {
10042
10090
  var t, e, o, i, a, r, l, c, n, u;
10043
10091
  if (this.tropicals && this.map) {
10044
10092
  const h = (/* @__PURE__ */ new Date()).valueOf();
10045
- let b = 0, x = 0;
10046
- (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), x = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropicals] update elapsed: ", x, ", total: ", b += x)) : (this.map.addSource(this.source, {
10093
+ let b = 0, w = 0;
10094
+ (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() - (h + b), console.log("[tropicals] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.source, {
10047
10095
  type: "geojson",
10048
10096
  data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
10049
10097
  }), this.map.addLayer({
@@ -10140,7 +10188,7 @@ const sc = {
10140
10188
  ],
10141
10189
  "text-halo-width": 4
10142
10190
  }
10143
- }, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), x = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] update elapsed: ", x, ", total: ", b += x)) : (this.map.addSource(this.clusterSource, {
10191
+ }, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.clusterSource, {
10144
10192
  type: "geojson",
10145
10193
  data: (n = this.tropicals) != null && n.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
10146
10194
  // cluster: true,
@@ -10256,9 +10304,9 @@ const sc = {
10256
10304
  "text-halo-color": "#ffffff",
10257
10305
  "text-halo-width": 1
10258
10306
  }
10259
- }, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x));
10260
- const z = Va.interpolate(this.tropicals, 1);
10261
- this.interpolateData = JSON.parse(JSON.stringify(z)), this.handleDateChange();
10307
+ }, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w));
10308
+ const _ = Va.interpolate(this.tropicals, 1);
10309
+ this.interpolateData = JSON.parse(JSON.stringify(_)), this.handleDateChange();
10262
10310
  }
10263
10311
  },
10264
10312
  handleClear() {
@@ -10266,11 +10314,11 @@ const sc = {
10266
10314
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
10267
10315
  },
10268
10316
  handleDateChange() {
10269
- var t, e, o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, W, ee;
10270
- if ((t = this.interpolateMarkers) == null || t.forEach((Q) => Q == null ? void 0 : Q.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10271
- const Q = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), $ = this.interpolateData.filter((J) => J.properties.date === (Q == null ? void 0 : Q.format()) && !J.properties.disabled), ne = this.handleComputePolygons($), se = H.featureCollection([...$]);
10272
- ne.forEach((J) => {
10273
- se.features.push(J);
10317
+ var t, e, o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee;
10318
+ if ((t = this.interpolateMarkers) == null || t.forEach((J) => J == null ? void 0 : J.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10319
+ const J = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), $ = this.interpolateData.filter((Q) => Q.properties.date === (J == null ? void 0 : J.format()) && !Q.properties.disabled), ne = this.handleComputePolygons($), se = H.featureCollection([...$]);
10320
+ ne.forEach((Q) => {
10321
+ se.features.push(Q);
10274
10322
  }), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(se) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
10275
10323
  type: "geojson",
10276
10324
  data: se
@@ -10285,10 +10333,10 @@ const sc = {
10285
10333
  "line-width": 1
10286
10334
  }
10287
10335
  }, "empty-layer-3")), this.interpolateMarkers = [];
10288
- for (const J of $)
10289
- if (!J.properties.disabled) {
10336
+ for (const Q of $)
10337
+ if (!Q.properties.disabled) {
10290
10338
  let ae = "#f44336";
10291
- ((c = (l = J.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = J.properties) == null ? void 0 : n.wind) != null && u.kts) ? ae = "#03f869" : ((b = (h = J.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((z = (x = J.properties) == null ? void 0 : x.wind) == null ? void 0 : z.kts) < 47 ? ae = "#f2f202" : ((P = (g = J.properties) == null ? void 0 : g.wind) == null ? void 0 : P.kts) >= 47 && ((O = (T = J.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((L = (I = J.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((v = (k = J.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) < 79 ? ae = "#f44336" : ((_ = (C = J.properties) == null ? void 0 : C.wind) == null ? void 0 : _.kts) >= 79 && ((N = (A = J.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ae = "#f903d0" : ((Z = (V = J.properties) == null ? void 0 : V.wind) == null ? void 0 : Z.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
10339
+ ((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = Q.properties) == null ? void 0 : n.wind) != null && u.kts) ? ae = "#03f869" : ((b = (h = Q.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((_ = (w = Q.properties) == null ? void 0 : w.wind) == null ? void 0 : _.kts) < 47 ? ae = "#f2f202" : ((P = (g = Q.properties) == null ? void 0 : g.wind) == null ? void 0 : P.kts) >= 47 && ((O = (T = Q.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((L = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((v = (z = Q.properties) == null ? void 0 : z.wind) == null ? void 0 : v.kts) < 79 ? ae = "#f44336" : ((k = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : k.kts) >= 79 && ((N = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ae = "#f903d0" : ((Z = (V = Q.properties) == null ? void 0 : V.wind) == null ? void 0 : Z.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
10292
10340
  const he = `<svg t="1719918955501"
10293
10341
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
10294
10342
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -10304,35 +10352,35 @@ const sc = {
10304
10352
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
10305
10353
  fill="#ffffff" p-id="18386"></path>
10306
10354
  </svg>`, ce = document.createElement("div");
10307
- ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${J.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
10308
- const pe = new ve.Marker(ce).setLngLat(J.geometry.coordinates).addTo(this.map);
10355
+ ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${Q.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
10356
+ const pe = new ve.Marker(ce).setLngLat(Q.geometry.coordinates).addTo(this.map);
10309
10357
  this.interpolateMarkers.push(pe);
10310
10358
  }
10311
10359
  } else
10312
10360
  (W = this.map) != null && W.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
10313
10361
  },
10314
10362
  handleClick(t) {
10315
- var a, r, l, c, n, u, h, b, x;
10363
+ var a, r, l, c, n, u, h, b, w;
10316
10364
  const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
10317
- (z) => {
10365
+ (_) => {
10318
10366
  var g;
10319
- return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
10367
+ return _.geometry.type === "LineString" && _.properties.type === "forecast" && _.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
10320
10368
  }
10321
10369
  ), i = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
10322
- (z) => {
10370
+ (_) => {
10323
10371
  var g;
10324
- return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
10372
+ return _.geometry.type === "LineString" && _.properties.type === "history" && _.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
10325
10373
  }
10326
10374
  );
10327
10375
  this.activeTropicals = {
10328
10376
  name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
10329
10377
  nameCn: (u = e == null ? void 0 : e.properties) == null ? void 0 : u.nameCn,
10330
- forecasts: o.map((z) => z.properties),
10378
+ forecasts: o.map((_) => _.properties),
10331
10379
  history: (h = i[0]) == null ? void 0 : h.properties,
10332
- showCircle: (x = (b = o[0]) == null ? void 0 : b.properties) == null ? void 0 : x.showCircle
10380
+ showCircle: (w = (b = o[0]) == null ? void 0 : b.properties) == null ? void 0 : w.showCircle
10333
10381
  }, this.showTropicalsInfo = !0, this.$nextTick(() => {
10334
- const z = document.getElementById("idm-tropical-gl4-info");
10335
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(z).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
10382
+ const _ = document.getElementById("idm-tropical-gl4-info");
10383
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(_).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
10336
10384
  });
10337
10385
  },
10338
10386
  handleCloseInfoMarker() {
@@ -10477,9 +10525,9 @@ const sc = {
10477
10525
  }, $c = { class: "text-label pr-1" }, Kc = {
10478
10526
  key: 7,
10479
10527
  class: "d-flex justify-start align-center"
10480
- }, Qc = { class: "text-label pr-1" }, Jc = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
10528
+ }, Jc = { class: "text-label pr-1" }, Qc = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
10481
10529
  function tm(t, e, o, i, a, r) {
10482
- const l = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), u = w("VDivider"), h = w("VCardActions"), b = w("VCard"), x = w("v-card-title"), z = w("v-divider");
10530
+ const l = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), u = x("VDivider"), h = x("VCardActions"), b = x("VCard"), w = x("v-card-title"), _ = x("v-divider");
10483
10531
  return y(), S("div", lc, [
10484
10532
  s("div", {
10485
10533
  class: "menu-bar-box transition pa-1",
@@ -10516,7 +10564,7 @@ function tm(t, e, o, i, a, r) {
10516
10564
  default: f(() => [
10517
10565
  p(n, null, {
10518
10566
  default: f(() => {
10519
- var g, P, T, O, I, L, k, v, C, _, A;
10567
+ var g, P, T, O, I, L, z, v, C, k, A;
10520
10568
  return [
10521
10569
  s("div", cc, [
10522
10570
  s("span", mc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (P = a.activeTropicals) == null ? void 0 : P.nameCn), 1),
@@ -10537,7 +10585,7 @@ function tm(t, e, o, i, a, r) {
10537
10585
  }, 8, ["onClick"]),
10538
10586
  s("div", hc, [
10539
10587
  s("span", pc, m(t.$t("actions.lastUpdate")) + ": ", 1),
10540
- s("span", null, m(r.computeTime(((v = (k = a.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : v.updated) || ((A = (_ = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : _.filter((N) => !N.disabled)[0]) == null ? void 0 : A.date), o.timeZone)), 1)
10588
+ s("span", null, m(r.computeTime(((v = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : v.updated) || ((A = (k = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : k.filter((N) => !N.disabled)[0]) == null ? void 0 : A.date), o.timeZone)), 1)
10541
10589
  ])
10542
10590
  ];
10543
10591
  }),
@@ -10546,7 +10594,7 @@ function tm(t, e, o, i, a, r) {
10546
10594
  p(u),
10547
10595
  p(n, { class: "text-body-1" }, {
10548
10596
  default: f(() => {
10549
- var g, P, T, O, I, L, k, v, C;
10597
+ var g, P, T, O, I, L, z, v, C;
10550
10598
  return [
10551
10599
  s("div", uc, [
10552
10600
  s("div", gc, [
@@ -10562,7 +10610,7 @@ function tm(t, e, o, i, a, r) {
10562
10610
  s("div", wc, [
10563
10611
  s("div", xc, [
10564
10612
  s("label", vc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
10565
- s("span", null, m(((k = r.computeMovement(a.activeTropicals)) == null ? void 0 : k.kts) || "-") + " kts", 1)
10613
+ s("span", null, m(((z = r.computeMovement(a.activeTropicals)) == null ? void 0 : z.kts) || "-") + " kts", 1)
10566
10614
  ]),
10567
10615
  s("div", _c, [
10568
10616
  s("label", kc, m(t.$t("tropical.moveDir")) + " : ", 1),
@@ -10572,17 +10620,17 @@ function tm(t, e, o, i, a, r) {
10572
10620
  s("div", zc, [
10573
10621
  s("label", Lc, m(t.$t("weather.forecastModels")) + " : ", 1),
10574
10622
  s("div", Pc, [
10575
- (y(!0), S(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (_, A) => (y(), R(l, {
10623
+ (y(!0), S(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (k, A) => (y(), R(l, {
10576
10624
  key: A,
10577
10625
  density: "compact",
10578
- variant: _.disabled ? "text" : "flat",
10579
- color: _.disabled ? "" : "primary",
10626
+ variant: k.disabled ? "text" : "flat",
10627
+ color: k.disabled ? "" : "primary",
10580
10628
  "min-width": 30,
10581
- class: Ne(["model text-none text-body-1 px-1", _.disabled ? "btn-border-1 btn-bg-1" : ""]),
10582
- onClick: je((N) => r.handleForecastToggle(_), ["stop"])
10629
+ class: Ne(["model text-none text-body-1 px-1", k.disabled ? "btn-border-1 btn-bg-1" : ""]),
10630
+ onClick: je((N) => r.handleForecastToggle(k), ["stop"])
10583
10631
  }, {
10584
10632
  default: f(() => [
10585
- K(m(_.model), 1)
10633
+ K(m(k.model), 1)
10586
10634
  ]),
10587
10635
  _: 2
10588
10636
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -10712,7 +10760,7 @@ function tm(t, e, o, i, a, r) {
10712
10760
  "max-width": "280"
10713
10761
  }, {
10714
10762
  default: f(() => [
10715
- p(x, null, {
10763
+ p(w, null, {
10716
10764
  default: f(() => {
10717
10765
  var g, P, T;
10718
10766
  return [
@@ -10724,10 +10772,10 @@ function tm(t, e, o, i, a, r) {
10724
10772
  }),
10725
10773
  _: 1
10726
10774
  }),
10727
- p(z),
10775
+ p(_),
10728
10776
  p(n, { class: "text-body-1" }, {
10729
10777
  default: f(() => {
10730
- var g, P, T, O, I, L, k, v, C, _, A, N, V, Z, W, ee, Q, $, ne, se;
10778
+ var g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se;
10731
10779
  return [
10732
10780
  s("div", Rc, [
10733
10781
  ((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), S("div", Oc, [
@@ -10742,13 +10790,13 @@ function tm(t, e, o, i, a, r) {
10742
10790
  s("label", Fc, m(t.$t("tropical.forecast")) + " : ", 1),
10743
10791
  s("span", null, m(r.computeTzTime((L = a.hoverPoint) == null ? void 0 : L.date, o.timeZone)), 1)
10744
10792
  ])) : D("", !0),
10745
- ((k = a.hoverPoint) == null ? void 0 : k.type) === "forecast" ? (y(), S("div", Hc, [
10793
+ ((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (y(), S("div", Hc, [
10746
10794
  s("label", Gc, m(t.$t("tropical.model")) + " : ", 1),
10747
10795
  s("span", null, m(((v = a.hoverPoint) == null ? void 0 : v.model) ?? "-"), 1)
10748
10796
  ])) : D("", !0),
10749
10797
  ((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (y(), S("div", Uc, [
10750
10798
  s("label", Wc, m(t.$t("weather.wind")) + " : ", 1),
10751
- s("span", null, m(((A = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : A.kts) ?? "-") + " kts", 1)
10799
+ s("span", null, m(((A = JSON.parse((k = a.hoverPoint) == null ? void 0 : k.wind)) == null ? void 0 : A.kts) ?? "-") + " kts", 1)
10752
10800
  ])) : D("", !0),
10753
10801
  ((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), S("div", Vc, [
10754
10802
  s("label", Zc, m(t.$t("weather.wind")) + " : ", 1),
@@ -10760,13 +10808,13 @@ function tm(t, e, o, i, a, r) {
10760
10808
  ]),
10761
10809
  ((W = a.hoverPoint) == null ? void 0 : W.type) === "history" ? (y(), S("div", Xc, [
10762
10810
  s("label", $c, m(t.$t("tropical.moveSpeed")) + " : ", 1),
10763
- s("span", null, m(((Q = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
10811
+ s("span", null, m(((J = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : J.kts) ?? "-") + " kts", 1)
10764
10812
  ])) : D("", !0),
10765
10813
  (($ = a.hoverPoint) == null ? void 0 : $.type) === "history" ? (y(), S("div", Kc, [
10766
- s("label", Qc, m(t.$t("tropical.moveDir")) + " : ", 1),
10814
+ s("label", Jc, m(t.$t("tropical.moveDir")) + " : ", 1),
10767
10815
  s("span", null, m(((se = JSON.parse((ne = a.hoverPoint) == null ? void 0 : ne.movement)) == null ? void 0 : se.deg) ?? "-") + " °", 1)
10768
10816
  ])) : D("", !0),
10769
- s("div", Jc, [
10817
+ s("div", Qc, [
10770
10818
  s("label", em, m(t.$t("tropical.position")) + " : ", 1),
10771
10819
  s("span", null, m(r.computePosition(a.hoverPoint)), 1)
10772
10820
  ])
@@ -10951,7 +10999,7 @@ const om = {
10951
10999
  style: { height: "56px" }
10952
11000
  };
10953
11001
  function lm(t, e, o, i, a, r) {
10954
- const l = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), u = w("VListItemTitle"), h = w("VListItem"), b = w("VList"), x = w("VCardText"), z = w("VCardActions"), g = w("VCard");
11002
+ const l = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), u = x("VListItemTitle"), h = x("VListItem"), b = x("VList"), w = x("VCardText"), _ = x("VCardActions"), g = x("VCard");
10955
11003
  return y(), S("div", am, [
10956
11004
  p(l, {
10957
11005
  text: "",
@@ -10970,7 +11018,7 @@ function lm(t, e, o, i, a, r) {
10970
11018
  class: Ne(["card-box d-flex flex-column", o.position])
10971
11019
  }, {
10972
11020
  default: f(() => [
10973
- p(x, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
11021
+ p(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
10974
11022
  default: f(() => [
10975
11023
  s("div", im, [
10976
11024
  p(c, {
@@ -11025,7 +11073,7 @@ function lm(t, e, o, i, a, r) {
11025
11073
  _: 1
11026
11074
  }),
11027
11075
  p(n),
11028
- p(z, {
11076
+ p(_, {
11029
11077
  class: "justify-end pa-0 pr-4",
11030
11078
  style: { height: "50px" }
11031
11079
  }, {
@@ -11303,10 +11351,10 @@ const nm = {
11303
11351
  (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;
11304
11352
  },
11305
11353
  initTableData(t) {
11306
- var o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, W, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe;
11354
+ var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe;
11307
11355
  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;
11308
11356
  const e = ((l = Co.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
11309
- 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((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((x = e == null ? void 0 : e.weather) == null ? void 0 : x.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.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((k = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((W = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : W.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((J = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.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;
11357
+ 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((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.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((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((W = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : W.height, 1) ?? "-", this.currentHourData.windwaveDir = (J = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.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;
11310
11358
  },
11311
11359
  handleBind() {
11312
11360
  var t, e;
@@ -11415,7 +11463,7 @@ const nm = {
11415
11463
  "aria-hidden": "true"
11416
11464
  }, qm = ["xlink:href"];
11417
11465
  function Xm(t, e, o, i, a, r) {
11418
- const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VDivider"), h = w("VTextField"), b = w("VCol"), x = w("VRow"), z = w("DateTimePicker"), g = w("VBtnToggle"), P = w("VCardText"), T = w("VCardActions"), O = w("VForm"), I = w("VCard"), L = w("VIcon");
11466
+ const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VDivider"), h = x("VTextField"), b = x("VCol"), w = x("VRow"), _ = x("DateTimePicker"), g = x("VBtnToggle"), P = x("VCardText"), T = x("VCardActions"), O = x("VForm"), I = x("VCard"), L = x("VIcon");
11419
11467
  return y(), S("div", cm, [
11420
11468
  s("div", {
11421
11469
  class: "menu-bar-box transition pa-1",
@@ -11425,8 +11473,8 @@ function Xm(t, e, o, i, a, r) {
11425
11473
  text: t.$t("spot.spotsMeteo"),
11426
11474
  location: "left"
11427
11475
  }, {
11428
- activator: f(({ props: k }) => [
11429
- p(l, B(k, {
11476
+ activator: f(({ props: z }) => [
11477
+ p(l, B(z, {
11430
11478
  "min-width": "32",
11431
11479
  width: "32",
11432
11480
  height: "32",
@@ -11488,7 +11536,7 @@ function Xm(t, e, o, i, a, r) {
11488
11536
  ])),
11489
11537
  s("div", null, m(t.$t("spot.lng")), 1)
11490
11538
  ]),
11491
- p(x, { class: "ma-0" }, {
11539
+ p(w, { class: "ma-0" }, {
11492
11540
  default: f(() => [
11493
11541
  p(b, {
11494
11542
  cols: "4",
@@ -11497,7 +11545,7 @@ function Xm(t, e, o, i, a, r) {
11497
11545
  default: f(() => [
11498
11546
  p(h, {
11499
11547
  modelValue: a.form.lngDegree,
11500
- "onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
11548
+ "onUpdate:modelValue": e[0] || (e[0] = (z) => a.form.lngDegree = z),
11501
11549
  rules: a.formRules.lngDegree,
11502
11550
  density: "compact",
11503
11551
  variant: "outlined",
@@ -11517,7 +11565,7 @@ function Xm(t, e, o, i, a, r) {
11517
11565
  default: f(() => [
11518
11566
  p(h, {
11519
11567
  modelValue: a.form.lngMinute,
11520
- "onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
11568
+ "onUpdate:modelValue": e[1] || (e[1] = (z) => a.form.lngMinute = z),
11521
11569
  rules: a.formRules.lngMinute,
11522
11570
  label: "",
11523
11571
  density: "compact",
@@ -11544,7 +11592,7 @@ function Xm(t, e, o, i, a, r) {
11544
11592
  height: "32",
11545
11593
  class: "text-body-1 btn-bg-1",
11546
11594
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
11547
- onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
11595
+ onClick: e[2] || (e[2] = (z) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
11548
11596
  }, {
11549
11597
  default: f(() => [
11550
11598
  K(m(a.form.lngDirection), 1)
@@ -11565,7 +11613,7 @@ function Xm(t, e, o, i, a, r) {
11565
11613
  ])),
11566
11614
  s("div", null, m(t.$t("spot.lat")), 1)
11567
11615
  ]),
11568
- p(x, { class: "ma-0" }, {
11616
+ p(w, { class: "ma-0" }, {
11569
11617
  default: f(() => [
11570
11618
  p(b, {
11571
11619
  cols: "4",
@@ -11574,7 +11622,7 @@ function Xm(t, e, o, i, a, r) {
11574
11622
  default: f(() => [
11575
11623
  p(h, {
11576
11624
  modelValue: a.form.latDegree,
11577
- "onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
11625
+ "onUpdate:modelValue": e[3] || (e[3] = (z) => a.form.latDegree = z),
11578
11626
  rules: a.formRules.latDegree,
11579
11627
  label: "",
11580
11628
  density: "compact",
@@ -11597,7 +11645,7 @@ function Xm(t, e, o, i, a, r) {
11597
11645
  default: f(() => [
11598
11646
  p(h, {
11599
11647
  modelValue: a.form.latMinute,
11600
- "onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
11648
+ "onUpdate:modelValue": e[4] || (e[4] = (z) => a.form.latMinute = z),
11601
11649
  rules: a.formRules.latMinute,
11602
11650
  label: "",
11603
11651
  density: "compact",
@@ -11624,7 +11672,7 @@ function Xm(t, e, o, i, a, r) {
11624
11672
  height: "32",
11625
11673
  class: "text-body-1 btn-bg-1",
11626
11674
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
11627
- onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
11675
+ onClick: e[5] || (e[5] = (z) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
11628
11676
  }, {
11629
11677
  default: f(() => [
11630
11678
  K(m(a.form.latDirection), 1)
@@ -11645,18 +11693,18 @@ function Xm(t, e, o, i, a, r) {
11645
11693
  ])),
11646
11694
  s("div", null, m(t.$t("spot.dateTime")), 1)
11647
11695
  ]),
11648
- p(x, { class: "ma-0 mb-4" }, {
11696
+ p(w, { class: "ma-0 mb-4" }, {
11649
11697
  default: f(() => [
11650
11698
  p(b, {
11651
11699
  cols: "12",
11652
11700
  class: "pa-0"
11653
11701
  }, {
11654
11702
  default: f(() => [
11655
- p(z, B({
11703
+ p(_, B({
11656
11704
  "date-time": a.form.dateTime,
11657
11705
  "time-zone": o.timeZone
11658
11706
  }, t.$attrs, {
11659
- onDateTime: e[6] || (e[6] = (k) => a.form.dateTime = k)
11707
+ onDateTime: e[6] || (e[6] = (z) => a.form.dateTime = z)
11660
11708
  }), null, 16, ["date-time", "time-zone"])
11661
11709
  ]),
11662
11710
  _: 1
@@ -11672,7 +11720,7 @@ function Xm(t, e, o, i, a, r) {
11672
11720
  ])),
11673
11721
  s("div", null, m(t.$t("weather.forecastModel")), 1)
11674
11722
  ]),
11675
- p(x, { class: "ma-0 mb-2" }, {
11723
+ p(w, { class: "ma-0 mb-2" }, {
11676
11724
  default: f(() => [
11677
11725
  p(b, {
11678
11726
  cols: "12",
@@ -11681,7 +11729,7 @@ function Xm(t, e, o, i, a, r) {
11681
11729
  default: f(() => [
11682
11730
  p(g, {
11683
11731
  modelValue: a.form.forecastModel,
11684
- "onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
11732
+ "onUpdate:modelValue": e[7] || (e[7] = (z) => a.form.forecastModel = z),
11685
11733
  class: "w-100",
11686
11734
  rounded: "",
11687
11735
  height: "30",
@@ -11801,11 +11849,11 @@ function Xm(t, e, o, i, a, r) {
11801
11849
  p(u),
11802
11850
  p(P, { class: "text-body-1 px-0 py-1" }, {
11803
11851
  default: f(() => {
11804
- var k, v;
11852
+ var z, v;
11805
11853
  return [
11806
11854
  s("div", Pm, [
11807
11855
  s("div", Cm, m(t.$t("time.time")), 1),
11808
- s("div", Tm, m(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
11856
+ s("div", Tm, m(r.computedTzTime((z = a.currentHourData) == null ? void 0 : z.utc)), 1)
11809
11857
  ]),
11810
11858
  s("div", Sm, [
11811
11859
  e[18] || (e[18] = s("div", {
@@ -11839,9 +11887,9 @@ function Xm(t, e, o, i, a, r) {
11839
11887
  p(u),
11840
11888
  p(T, { class: "d-flex justify-space-between align-center" }, {
11841
11889
  default: f(() => [
11842
- o.followList.some((k) => {
11890
+ o.followList.some((z) => {
11843
11891
  var v, C;
11844
- return ((v = k == null ? void 0 : k.coordinate) == null ? void 0 : v.lng) === a.form.lng && ((C = k == null ? void 0 : k.coordinate) == null ? void 0 : C.lat) === a.form.lat;
11892
+ return ((v = z == null ? void 0 : z.coordinate) == null ? void 0 : v.lng) === a.form.lng && ((C = z == null ? void 0 : z.coordinate) == null ? void 0 : C.lat) === a.form.lat;
11845
11893
  }) ? (y(), R(l, {
11846
11894
  key: 0,
11847
11895
  class: "text-none text-body-1",
@@ -12004,21 +12052,21 @@ const Km = {
12004
12052
  var o, i, a, r, l, c, n, u, h, b;
12005
12053
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12006
12054
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12007
- const x = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
12008
- this.pointMarkers[x.id].filter((T) => {
12055
+ const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
12056
+ this.pointMarkers[w.id].filter((T) => {
12009
12057
  var O;
12010
12058
  return ((O = T._element) == null ? void 0 : O.id) === e;
12011
12059
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
12012
12060
  let g;
12013
- x.features.forEach((T, O) => {
12061
+ w.features.forEach((T, O) => {
12014
12062
  if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
12015
12063
  g = O;
12016
12064
  return;
12017
12065
  }
12018
12066
  });
12019
- const P = x.features.filter((T) => T.geometry.type === "Point");
12067
+ const P = w.features.filter((T) => T.geometry.type === "Point");
12020
12068
  this.handleTmpPointUpdate(
12021
- x,
12069
+ w,
12022
12070
  P[g - 1],
12023
12071
  { lng: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, lat: (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat, properties: P[g].properties },
12024
12072
  g === P.length - 1 ? void 0 : P[g + 1]
@@ -12029,13 +12077,13 @@ const Km = {
12029
12077
  var o, i, a, r, l, c, n, u, h, b;
12030
12078
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12031
12079
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12032
- const x = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
12033
- this.pointMarkers[x.id].filter((P) => {
12080
+ const w = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
12081
+ this.pointMarkers[w.id].filter((P) => {
12034
12082
  var T;
12035
12083
  return ((T = P._element) == null ? void 0 : T.id) === e;
12036
12084
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
12037
- const g = x.features.filter((P) => P.geometry.type === "Point" && P.properties.id === e.split("-")[1])[0];
12038
- g.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat], x.features = x.features.filter((P) => P.geometry.type === "Point"), this.handlePointUpdate(x);
12085
+ const g = w.features.filter((P) => P.geometry.type === "Point" && P.properties.id === e.split("-")[1])[0];
12086
+ g.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat], w.features = w.features.filter((P) => P.geometry.type === "Point"), this.handlePointUpdate(w);
12039
12087
  }
12040
12088
  },
12041
12089
  handleContextmenu(t) {
@@ -12085,10 +12133,10 @@ const Km = {
12085
12133
  for (let a = 1; a < e.length; a++) {
12086
12134
  const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, h = Ge.calculateDistance(n, u, c.mode === "RL", 4), b = Ge.calculateBearing(n, u, c.mode === "RL", 2);
12087
12135
  o = X.roundPrecision(o + h, 4);
12088
- let x;
12089
- c.mode === "RL" ? x = X.convertToMonotonicLng([n, u]) : x = X.convertToMonotonicLng(Ge.interpolateCoordinates(n, u, 200));
12090
- const z = H.lineString(x.map((P) => [P.lng, P.lat]));
12091
- z.properties.dist = h, z.properties.bearing = b, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
12136
+ let w;
12137
+ c.mode === "RL" ? w = X.convertToMonotonicLng([n, u]) : w = X.convertToMonotonicLng(Ge.interpolateCoordinates(n, u, 200));
12138
+ const _ = H.lineString(w.map((P) => [P.lng, P.lat]));
12139
+ _.properties.dist = h, _.properties.bearing = b, _.properties.total = o, _.properties.name = "Line " + this.currentLineIndex, i.push(_);
12092
12140
  const g = e[a];
12093
12141
  g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
12094
12142
  }
@@ -12104,16 +12152,16 @@ const Km = {
12104
12152
  r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
12105
12153
  let b;
12106
12154
  n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
12107
- const x = H.lineString(b.map((z) => [z.lng, z.lat]));
12108
- x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
12155
+ const w = H.lineString(b.map((_) => [_.lng, _.lat]));
12156
+ w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
12109
12157
  }
12110
12158
  if (i) {
12111
12159
  const n = o.properties, u = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12112
12160
  r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
12113
12161
  let b;
12114
12162
  n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
12115
- const x = H.lineString(b.map((z) => [z.lng, z.lat]));
12116
- x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
12163
+ const w = H.lineString(b.map((_) => [_.lng, _.lat]));
12164
+ w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
12117
12165
  }
12118
12166
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
12119
12167
  type: "geojson",
@@ -12254,17 +12302,17 @@ const Km = {
12254
12302
  }
12255
12303
  },
12256
12304
  handleClear(t, e = !0) {
12257
- var l, c, n, u, h, b, x, z, g, P;
12305
+ var l, c, n, u, h, b, w, _, g, P;
12258
12306
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
12259
- (l = this.map) != null && l.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), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (x = this.pointMarkers[t.id]) == null || x.forEach((T) => {
12307
+ (l = this.map) != null && l.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), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
12260
12308
  T == null || T.remove();
12261
- }), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((P = this.map) != null && P.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12309
+ }), this.pointMarkers[t.id] = [], (_ = this.tipMarker) == null || _.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((P = this.map) != null && P.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12262
12310
  }
12263
12311
  }
12264
- }, Qm = { class: "idm-gl4-measure" };
12265
- function Jm(t, e, o, i, a, r) {
12266
- const l = w("VBtn"), c = w("VTooltip");
12267
- return y(), S("div", Qm, [
12312
+ }, Jm = { class: "idm-gl4-measure" };
12313
+ function Qm(t, e, o, i, a, r) {
12314
+ const l = x("VBtn"), c = x("VTooltip");
12315
+ return y(), S("div", Jm, [
12268
12316
  s("div", {
12269
12317
  class: "menu-bar-box transition pa-1",
12270
12318
  style: ie({ top: o.top + 214 + "px", right: a.right + "px" })
@@ -12293,7 +12341,7 @@ function Jm(t, e, o, i, a, r) {
12293
12341
  ], 4)
12294
12342
  ]);
12295
12343
  }
12296
- const ed = /* @__PURE__ */ Y(Km, [["render", Jm]]);
12344
+ const ed = /* @__PURE__ */ Y(Km, [["render", Qm]]);
12297
12345
  const td = {
12298
12346
  name: "IdmBottomBar",
12299
12347
  components: { DateTimePicker: Do },
@@ -12424,7 +12472,7 @@ const td = {
12424
12472
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
12425
12473
  }, nd = ["onClick"], cd = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, md = { class: "text-body-1" };
12426
12474
  function dd(t, e, o, i, a, r) {
12427
- const l = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), u = w("VList"), h = w("VMenu"), b = w("VBtn"), x = w("VDivider"), z = w("VTooltip");
12475
+ const l = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), u = x("VList"), h = x("VMenu"), b = x("VBtn"), w = x("VDivider"), _ = x("VTooltip");
12428
12476
  return y(), S("div", od, [
12429
12477
  s("div", {
12430
12478
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
@@ -12489,7 +12537,7 @@ function dd(t, e, o, i, a, r) {
12489
12537
  _: 1
12490
12538
  })
12491
12539
  ]),
12492
- p(x, {
12540
+ p(w, {
12493
12541
  vertical: "",
12494
12542
  class: "mx-2 my-3",
12495
12543
  style: { height: "16px" }
@@ -12562,13 +12610,13 @@ function dd(t, e, o, i, a, r) {
12562
12610
  __: [14]
12563
12611
  }, 8, ["onClick"])
12564
12612
  ]),
12565
- p(x, {
12613
+ p(w, {
12566
12614
  vertical: "",
12567
12615
  class: "mx-2 my-3",
12568
12616
  style: { height: "16px" }
12569
12617
  }),
12570
12618
  s("div", rd, [
12571
- p(z, {
12619
+ p(_, {
12572
12620
  text: t.$t("weather.windBarbs"),
12573
12621
  location: "top"
12574
12622
  }, {
@@ -12594,7 +12642,7 @@ function dd(t, e, o, i, a, r) {
12594
12642
  }),
12595
12643
  _: 1
12596
12644
  }, 8, ["text"]),
12597
- p(z, {
12645
+ p(_, {
12598
12646
  text: t.$t("weather.sigWaveHeight"),
12599
12647
  location: "top"
12600
12648
  }, {
@@ -12619,7 +12667,7 @@ function dd(t, e, o, i, a, r) {
12619
12667
  }),
12620
12668
  _: 1
12621
12669
  }, 8, ["text"]),
12622
- p(z, {
12670
+ p(_, {
12623
12671
  text: t.$t("weather.currentDirection"),
12624
12672
  location: "top"
12625
12673
  }, {
@@ -12644,7 +12692,7 @@ function dd(t, e, o, i, a, r) {
12644
12692
  }),
12645
12693
  _: 1
12646
12694
  }, 8, ["text"]),
12647
- p(z, {
12695
+ p(_, {
12648
12696
  text: t.$t("weather.weatherLayers"),
12649
12697
  location: "top"
12650
12698
  }, {
@@ -12666,7 +12714,7 @@ function dd(t, e, o, i, a, r) {
12666
12714
  _: 1
12667
12715
  }, 8, ["text"])
12668
12716
  ]),
12669
- p(x, {
12717
+ p(w, {
12670
12718
  vertical: "",
12671
12719
  class: "mx-2 mr-3 my-3",
12672
12720
  style: { height: "16px" }
@@ -12781,7 +12829,7 @@ const hd = /* @__PURE__ */ Y(td, [["render", dd]]), pd = {
12781
12829
  layerVersion: {
12782
12830
  handler() {
12783
12831
  if (this.map) {
12784
- const t = this.autoActive && this.weatherCheckList.some((i) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp"].some((a) => a === i)), e = this.otherCheckList.some((i) => ["time-zones", "navareas", "eca-zones", "load-lines", "voluntary-reporting-area", "war-zones", "special-area", "ice-areas"].some((a) => a === i)), o = t || e;
12832
+ const t = this.autoActive && this.weatherCheckList.some((i) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp"].some((a) => a === i)), e = this.otherCheckList.some((i) => ["navareas", "eca-zones", "load-lines", "voluntary-reporting-area", "war-zones", "special-area", "ice-areas"].some((a) => a === i)), o = t || e;
12785
12833
  this.mapFeather === "nautical" ? t ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "none"), this.map.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "none"), this.map.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "visible"), this.map.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "visible"), this.map.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "visible"), this.map.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "visible"), this.map.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "visible")) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "visible"), this.map.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "visible"), this.map.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "none"), this.map.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "none"), this.map.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "none"), this.map.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "none"), this.map.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "none")) : this.mapFeather === "satellite" ? t ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "visible"), this.map.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "country-boundaries"), this.map.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "country-boundaries")) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "none")) : o ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible"), t && (this.map.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-0"), this.map.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "empty-layer-0"))) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "none"));
12786
12834
  }
12787
12835
  },
@@ -12794,7 +12842,7 @@ const hd = /* @__PURE__ */ Y(td, [["render", dd]]), pd = {
12794
12842
  class: "map-gl4-home"
12795
12843
  };
12796
12844
  function gd(t, e, o, i, a, r) {
12797
- const l = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), u = w("IdmMeasure"), h = w("IdmSpot"), b = w("IdmBottomBar");
12845
+ const l = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), u = x("IdmMeasure"), h = x("IdmSpot"), b = x("IdmBottomBar");
12798
12846
  return y(), S("div", ud, [
12799
12847
  p(l, B({
12800
12848
  ref: "idmOtherLayers",
@@ -12807,8 +12855,8 @@ function gd(t, e, o, i, a, r) {
12807
12855
  "forecast-model": o.forecastModel,
12808
12856
  "map-feather": o.mapFeather
12809
12857
  }, t.$attrs, {
12810
- onOtherCheckList: e[0] || (e[0] = (x) => {
12811
- a.otherCheckList = x, a.layerVersion = a.layerVersion + 1;
12858
+ onOtherCheckList: e[0] || (e[0] = (w) => {
12859
+ a.otherCheckList = w, a.layerVersion = a.layerVersion + 1;
12812
12860
  })
12813
12861
  }), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
12814
12862
  p(c, B({
@@ -12822,11 +12870,11 @@ function gd(t, e, o, i, a, r) {
12822
12870
  "forecast-model": o.forecastModel,
12823
12871
  "map-feather": o.mapFeather
12824
12872
  }, t.$attrs, {
12825
- onAutoActive: e[1] || (e[1] = (x) => {
12826
- a.autoActive = x, a.layerVersion = a.layerVersion + 1;
12873
+ onAutoActive: e[1] || (e[1] = (w) => {
12874
+ a.autoActive = w, a.layerVersion = a.layerVersion + 1;
12827
12875
  }),
12828
- onWeatherCheckList: e[2] || (e[2] = (x) => {
12829
- a.weatherCheckList = x, a.layerVersion = a.layerVersion + 1;
12876
+ onWeatherCheckList: e[2] || (e[2] = (w) => {
12877
+ a.weatherCheckList = w, a.layerVersion = a.layerVersion + 1;
12830
12878
  })
12831
12879
  }), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
12832
12880
  p(n, B({
@@ -12869,7 +12917,7 @@ class yd {
12869
12917
  de(this, "hi");
12870
12918
  de(this, "td");
12871
12919
  de(this, "windy");
12872
- var o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, W, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Qe, Je, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Qo, Jo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Ua, Wa;
12920
+ var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Ua, Wa;
12873
12921
  this.i4 = {
12874
12922
  source: {
12875
12923
  type: "raster",
@@ -31515,18 +31563,18 @@ class yd {
31515
31563
  (c = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
31516
31564
  (u = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : u.find((d) => d.id === "ice-area-line"),
31517
31565
  (b = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : b.find((d) => d.id === "loadlines-label"),
31518
- (z = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : z.find((d) => d.id === "loadlines-fill"),
31566
+ (_ = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : _.find((d) => d.id === "loadlines-fill"),
31519
31567
  (P = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : P.find((d) => d.id === "empty-layer-0"),
31520
31568
  (O = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : O.find((d) => d.id === "empty-layer-1"),
31521
31569
  (L = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : L.find((d) => d.id === "country-boundaries"),
31522
- (v = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline"),
31523
- (_ = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : _.find((d) => d.id === "water-outline2"),
31570
+ (v = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline"),
31571
+ (k = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : k.find((d) => d.id === "water-outline2"),
31524
31572
  (N = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : N.find((d) => d.id === "empty-layer-2"),
31525
31573
  (Z = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Z.find((d) => d.id === "water-line-label"),
31526
31574
  (ee = (W = this.originStyle) == null ? void 0 : W.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
31527
- ($ = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : $.find((d) => d.id === "world-12nm-v4-20231025"),
31575
+ ($ = (J = this.originStyle) == null ? void 0 : J.light.layers) == null ? void 0 : $.find((d) => d.id === "world-12nm-v4-20231025"),
31528
31576
  (se = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : se.find((d) => d.id === "ne-10m-outline"),
31529
- (ae = (J = this.originStyle) == null ? void 0 : J.light.layers) == null ? void 0 : ae.find((d) => d.id === "ne-10m-label"),
31577
+ (ae = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : ae.find((d) => d.id === "ne-10m-label"),
31530
31578
  (ce = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ce.find((d) => d.id === "china-route-line"),
31531
31579
  (ge = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ge.find((d) => d.id === "china-route-fill"),
31532
31580
  (me = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : me.find((d) => d.id === "china-route-label"),
@@ -31568,7 +31616,7 @@ class yd {
31568
31616
  (Te = (Ye = this.originStyle) == null ? void 0 : Ye.dark.layers) == null ? void 0 : Te.find((d) => d.id === "ice-area-line"),
31569
31617
  (Xe = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Xe.find((d) => d.id === "loadlines-label"),
31570
31618
  (Ke = ($e = this.originStyle) == null ? void 0 : $e.dark.layers) == null ? void 0 : Ke.find((d) => d.id === "loadlines-fill"),
31571
- (Je = (Qe = this.originStyle) == null ? void 0 : Qe.dark.layers) == null ? void 0 : Je.find((d) => d.id === "empty-layer-0"),
31619
+ (Qe = (Je = this.originStyle) == null ? void 0 : Je.dark.layers) == null ? void 0 : Qe.find((d) => d.id === "empty-layer-0"),
31572
31620
  (tt = (et = this.originStyle) == null ? void 0 : et.dark.layers) == null ? void 0 : tt.find((d) => d.id === "empty-layer-1"),
31573
31621
  (at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((d) => d.id === "country-boundaries"),
31574
31622
  (rt = (it = this.originStyle) == null ? void 0 : it.dark.layers) == null ? void 0 : rt.find((d) => d.id === "water-outline"),
@@ -31613,7 +31661,7 @@ class yd {
31613
31661
  layers: [
31614
31662
  (qt = (Yt = this.originStyle) == null ? void 0 : Yt.satellite.layers) == null ? void 0 : qt.find((d) => d.id === "background"),
31615
31663
  (Kt = (Xt = this.originStyle) == null ? void 0 : Xt.satellite.layers) == null ? void 0 : Kt.find((d) => d.id === "satellite"),
31616
- (Jt = (Qt = this.originStyle) == null ? void 0 : Qt.satellite.layers) == null ? void 0 : Jt.find((d) => d.id === "loadlines-label"),
31664
+ (Qt = (Jt = this.originStyle) == null ? void 0 : Jt.satellite.layers) == null ? void 0 : Qt.find((d) => d.id === "loadlines-label"),
31617
31665
  (to = (eo = this.originStyle) == null ? void 0 : eo.satellite.layers) == null ? void 0 : to.find((d) => d.id === "loadlines-fill"),
31618
31666
  (ao = (oo = this.originStyle) == null ? void 0 : oo.satellite.layers) == null ? void 0 : ao.find((d) => d.id === "empty-layer-0"),
31619
31667
  (ro = (io = this.originStyle) == null ? void 0 : io.satellite.layers) == null ? void 0 : ro.find((d) => d.id === "empty-layer-1"),
@@ -31695,8 +31743,8 @@ class yd {
31695
31743
  (qo = (Yo = this.originStyle) == null ? void 0 : Yo.light.layers) == null ? void 0 : qo.find((d) => d.id === "land"),
31696
31744
  ($o = (Xo = this.originStyle) == null ? void 0 : Xo.light.layers) == null ? void 0 : $o.find((d) => d.id === "water"),
31697
31745
  this.i4.layer,
31698
- (Qo = (Ko = this.originStyle) == null ? void 0 : Ko.light.layers) == null ? void 0 : Qo.find((d) => d.id === "ice-area-fill"),
31699
- (ea = (Jo = this.originStyle) == null ? void 0 : Jo.light.layers) == null ? void 0 : ea.find((d) => d.id === "ice-area-line"),
31746
+ (Jo = (Ko = this.originStyle) == null ? void 0 : Ko.light.layers) == null ? void 0 : Jo.find((d) => d.id === "ice-area-fill"),
31747
+ (ea = (Qo = this.originStyle) == null ? void 0 : Qo.light.layers) == null ? void 0 : ea.find((d) => d.id === "ice-area-line"),
31700
31748
  (oa = (ta = this.originStyle) == null ? void 0 : ta.light.layers) == null ? void 0 : oa.find((d) => d.id === "loadlines-label"),
31701
31749
  (ia = (aa = this.originStyle) == null ? void 0 : aa.light.layers) == null ? void 0 : ia.find((d) => d.id === "loadlines-fill"),
31702
31750
  (sa = (ra = this.originStyle) == null ? void 0 : ra.light.layers) == null ? void 0 : sa.find((d) => d.id === "empty-layer-0"),
@@ -31830,7 +31878,7 @@ const bd = {
31830
31878
  }
31831
31879
  }, wd = { class: "mapbox-initial-gl4" }, xd = { class: "v-btn--variant-elevated rounded" }, vd = { class: "zoom" }, _d = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70" };
31832
31880
  function kd(t, e, o, i, a, r) {
31833
- const l = w("VBtn");
31881
+ const l = x("VBtn");
31834
31882
  return y(), S("div", wd, [
31835
31883
  e[5] || (e[5] = s("div", { id: "map" }, null, -1)),
31836
31884
  s("div", {
@@ -32041,7 +32089,7 @@ const Ld = {
32041
32089
  ref: "idmGl4DatePicker"
32042
32090
  }, Cd = { class: "pa-0" };
32043
32091
  function Td(t, e, o, i, a, r) {
32044
- const l = w("VBtn"), c = w("VDatePicker"), n = w("VCardText"), u = w("VDivider"), h = w("VCardActions"), b = w("VCard");
32092
+ const l = x("VBtn"), c = x("VDatePicker"), n = x("VCardText"), u = x("VDivider"), h = x("VCardActions"), b = x("VCard");
32045
32093
  return y(), S("div", Pd, [
32046
32094
  p(l, {
32047
32095
  text: "",
@@ -32065,7 +32113,7 @@ function Td(t, e, o, i, a, r) {
32065
32113
  s("div", Cd, [
32066
32114
  p(c, {
32067
32115
  modelValue: a.dateRange,
32068
- "onUpdate:modelValue": e[0] || (e[0] = (x) => a.dateRange = x),
32116
+ "onUpdate:modelValue": e[0] || (e[0] = (w) => a.dateRange = w),
32069
32117
  min: a.minDate,
32070
32118
  max: a.maxDate,
32071
32119
  "mode-icon": () => r.currentYear,