@idmwx/idmui-gl3 4.9.7 → 4.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@ var K0 = Object.defineProperty;
2
2
  var J0 = (z, M, b) => M in z ? K0(z, M, { enumerable: !0, configurable: !0, writable: !0, value: b }) : z[M] = b;
3
3
  var K = (z, M, b) => (J0(z, typeof M != "symbol" ? M + "" : M, b), b);
4
4
  import { LayerHelper as I0, CompanyHelper as D0 } from "@idm-plugin/tag";
5
- import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as O0, createVNode as w, withCtx as e0, normalizeClass as J, Fragment as j, renderList as G, toDisplayString as T, createCommentVNode as _, createTextVNode as $, withDirectives as X0, createStaticVNode as Y0, vShow as w0, defineComponent as V0, withModifiers as E0, mergeProps as Q } from "vue";
6
- import * as C from "@turf/turf";
5
+ import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as O0, createVNode as C, withCtx as e0, normalizeClass as J, Fragment as j, renderList as G, toDisplayString as T, createCommentVNode as _, createTextVNode as $, withDirectives as X0, createStaticVNode as Y0, vShow as w0, defineComponent as V0, withModifiers as E0, mergeProps as Q } from "vue";
6
+ import * as v from "@turf/turf";
7
7
  import Z0 from "@mapbox/sphericalmercator";
8
8
  import M0 from "moment";
9
9
  import y0 from "mapbox-gl";
@@ -235,7 +235,7 @@ function T1(z, M, b, O, p, o) {
235
235
  style: O0({ top: b.top + 10 + "px", right: p.right + "px" })
236
236
  }, [
237
237
  c("div", b1, [
238
- w(A, {
238
+ C(A, {
239
239
  placement: "left",
240
240
  effect: "light",
241
241
  content: "Menu",
@@ -258,7 +258,7 @@ function T1(z, M, b, O, p, o) {
258
258
  style: O0({ top: b.top + 160 + "px", right: p.right + "px" })
259
259
  }, [
260
260
  c("div", z1, [
261
- w(A, {
261
+ C(A, {
262
262
  placement: "left",
263
263
  effect: "light",
264
264
  content: "Measure",
@@ -274,7 +274,7 @@ function T1(z, M, b, O, p, o) {
274
274
  ]),
275
275
  _: 1
276
276
  }),
277
- w(A, {
277
+ C(A, {
278
278
  placement: "left",
279
279
  effect: "light",
280
280
  content: "Point Meteo",
@@ -290,7 +290,7 @@ function T1(z, M, b, O, p, o) {
290
290
  ]),
291
291
  _: 1
292
292
  }),
293
- w(A, {
293
+ C(A, {
294
294
  placement: "left",
295
295
  effect: "light",
296
296
  content: "Grid",
@@ -306,7 +306,7 @@ function T1(z, M, b, O, p, o) {
306
306
  ]),
307
307
  _: 1
308
308
  }),
309
- w(A, {
309
+ C(A, {
310
310
  placement: "left",
311
311
  effect: "light",
312
312
  content: "3D",
@@ -387,7 +387,7 @@ function T1(z, M, b, O, p, o) {
387
387
  onClick: M[10] || (M[10] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
388
388
  }, "")
389
389
  ]),
390
- w(r, { style: { flex: "1" } }, {
390
+ C(r, { style: { flex: "1" } }, {
391
391
  default: e0(() => [
392
392
  c("div", q1, [
393
393
  c("div", i1, [
@@ -477,19 +477,19 @@ function T1(z, M, b, O, p, o) {
477
477
  c("div", C1, [
478
478
  M[29] || (M[29] = c("span", { class: "layers-title" }, "Forecast Model", -1)),
479
479
  c("div", v1, [
480
- w(q, {
480
+ C(q, {
481
481
  modelValue: p.source,
482
482
  "onUpdate:modelValue": M[16] || (M[16] = (a) => p.source = a),
483
483
  class: "layer-radio flex-col-center-start"
484
484
  }, {
485
485
  default: e0(() => [
486
- w(t, { value: "GFS" }, {
486
+ C(t, { value: "GFS" }, {
487
487
  default: e0(() => M[27] || (M[27] = [
488
488
  $("GFS")
489
489
  ])),
490
490
  _: 1
491
491
  }),
492
- w(t, { value: "CMEMS" }, {
492
+ C(t, { value: "CMEMS" }, {
493
493
  default: e0(() => M[28] || (M[28] = [
494
494
  $("CMEMS")
495
495
  ])),
@@ -543,7 +543,7 @@ const x1 = {
543
543
  return {
544
544
  source: "wind-barb-source",
545
545
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
546
- empty: C.featureCollection([]),
546
+ empty: v.featureCollection([]),
547
547
  right: 10,
548
548
  bottom: 125,
549
549
  windBarbLoaded: !1
@@ -880,12 +880,12 @@ class C0 {
880
880
  try {
881
881
  const a = b.getUniformLocation(O, "u_resolution"), n = b.getUniformLocation(O, "u_image"), s = b.getUniformLocation(O, "u_color");
882
882
  if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(n, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(s, 1), t != null && t.uvRange && (t != null && t.sRange)) {
883
- const W = b.getUniformLocation(O, "u_range_u_v"), h = b.getUniformLocation(O, "u_range_s");
884
- b.uniform2f(W, t.uvRange[0], t.uvRange[1]), b.uniform2f(h, t.sRange[0], t.sRange[1]);
883
+ const W = b.getUniformLocation(O, "u_range_u_v"), m = b.getUniformLocation(O, "u_range_s");
884
+ b.uniform2f(W, t.uvRange[0], t.uvRange[1]), b.uniform2f(m, t.sRange[0], t.sRange[1]);
885
885
  }
886
- const d = M.getBoundPixel(), m = M.map.getZoom() + 1, L = M.getWorldCopy(d, m);
887
- for (const W of L) {
888
- const h = (W[0] - d[0]) * M.ratio, R = (W[1] - d[3]) * M.ratio, y = W[2] * M.ratio, [E, N, H, U] = [h, y + h, R, y + R], Y = new Float32Array([E, H, N, H, E, U, E, U, N, H, N, U]);
886
+ const d = M.getBoundPixel(), B = M.map.getZoom() + 1, R = M.getWorldCopy(d, B);
887
+ for (const W of R) {
888
+ const m = (W[0] - d[0]) * M.ratio, h = (W[1] - d[3]) * M.ratio, X = W[2] * M.ratio, [E, y, H, U] = [m, X + m, h, X + h], Y = new Float32Array([E, H, y, H, E, U, E, U, y, H, y, U]);
889
889
  b.bindBuffer(b.ARRAY_BUFFER, A), b.bufferData(b.ARRAY_BUFFER, Y, b.STATIC_DRAW), b.drawArrays(b.TRIANGLES, 0, 6);
890
890
  }
891
891
  } catch (a) {
@@ -3056,7 +3056,7 @@ const j1 = {
3056
3056
  directionLayer: "current-direction-layer",
3057
3057
  speedLayer: "current-speed-layer",
3058
3058
  speedLabelLayer: "current-speed-label-layer",
3059
- empty: C.featureCollection([]),
3059
+ empty: v.featureCollection([]),
3060
3060
  right: 10,
3061
3061
  bottom: 95
3062
3062
  };
@@ -3373,7 +3373,7 @@ const V1 = /* @__PURE__ */ k(K1, [["render", Y1], ["__scopeId", "data-v-163d1f9a
3373
3373
  source: "sig-wave-source",
3374
3374
  heightLayer: "sig-wave-height-layer",
3375
3375
  heightLabelLayer: "sig-wave-height-label-layer",
3376
- empty: C.featureCollection([])
3376
+ empty: v.featureCollection([])
3377
3377
  };
3378
3378
  },
3379
3379
  watch: {
@@ -3496,7 +3496,7 @@ const M2 = /* @__PURE__ */ k(Z1, [["render", $1]]), b2 = {
3496
3496
  directionLayer: "swell-direction-layer",
3497
3497
  heightLayer: "swell-height-layer",
3498
3498
  heightLabelLayer: "swell-height-label-layer",
3499
- empty: C.featureCollection([])
3499
+ empty: v.featureCollection([])
3500
3500
  };
3501
3501
  },
3502
3502
  watch: {
@@ -3657,7 +3657,7 @@ const p2 = /* @__PURE__ */ k(b2, [["render", z2]]), O2 = {
3657
3657
  layer: "prmsl-layer",
3658
3658
  labelLayer: "prmsl-label-layer",
3659
3659
  pointLabelLayer: "prmsl-point-label-layer",
3660
- empty: C.featureCollection([])
3660
+ empty: v.featureCollection([])
3661
3661
  };
3662
3662
  },
3663
3663
  watch: {
@@ -3789,7 +3789,7 @@ const c2 = /* @__PURE__ */ k(O2, [["render", o2]]), A2 = {
3789
3789
  return {
3790
3790
  source: "iceberg-source",
3791
3791
  layer: "iceberg-layer",
3792
- empty: C.featureCollection([])
3792
+ empty: v.featureCollection([])
3793
3793
  };
3794
3794
  },
3795
3795
  watch: {
@@ -3871,9 +3871,9 @@ const a2 = {
3871
3871
  showTropicals: !1,
3872
3872
  activeTropicals: void 0,
3873
3873
  activeTropicalsMarker: void 0,
3874
- empty: C.featureCollection([]),
3874
+ empty: v.featureCollection([]),
3875
3875
  circleSource: "circle-source",
3876
- circleSourceData: C.featureCollection([]),
3876
+ circleSourceData: v.featureCollection([]),
3877
3877
  circleLayer: "tropical-circle-layer"
3878
3878
  };
3879
3879
  },
@@ -3933,14 +3933,14 @@ const a2 = {
3933
3933
  var n, s;
3934
3934
  return ((n = a.geometry) == null ? void 0 : n.type) === "LineString" && ((s = a.properties) == null ? void 0 : s.type) === "forecast";
3935
3935
  })[0]) == null || r.properties.model, q.forEach((a, n) => {
3936
- var s, d, m, L, W, h;
3937
- ((s = a.geometry) == null ? void 0 : s.type) === "Point" && ((d = a.properties) == null ? void 0 : d.type) === "history" && (A = n, t = t === void 0 ? n : t), ((m = a.geometry) == null ? void 0 : m.type) === "Point" && ((L = a.properties) == null ? void 0 : L.type) === "forecast" && t === void 0 && (t = n), ((W = a.geometry) == null ? void 0 : W.type) === "LineString" && ((h = a.properties) == null || h.type);
3936
+ var s, d, B, R, W, m;
3937
+ ((s = a.geometry) == null ? void 0 : s.type) === "Point" && ((d = a.properties) == null ? void 0 : d.type) === "history" && (A = n, t = t === void 0 ? n : t), ((B = a.geometry) == null ? void 0 : B.type) === "Point" && ((R = a.properties) == null ? void 0 : R.type) === "forecast" && t === void 0 && (t = n), ((W = a.geometry) == null ? void 0 : W.type) === "LineString" && ((m = a.properties) == null || m.type);
3938
3938
  }), q.map((a, n) => {
3939
- var s, d, m, L, W, h, R;
3940
- if (((s = a.geometry) == null ? void 0 : s.type) === "LineString" && ((d = a.properties) == null || d.type), ((m = a.geometry) == null ? void 0 : m.type) === "Point" && ((L = a.properties) == null ? void 0 : L.type) === "forecast" && (a.properties.name = o, a.properties.format = M0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((W = a.geometry) == null ? void 0 : W.type) === "Point" && ((h = a.properties) == null ? void 0 : h.type) === "history") {
3939
+ var s, d, B, R, W, m, h;
3940
+ if (((s = a.geometry) == null ? void 0 : s.type) === "LineString" && ((d = a.properties) == null || d.type), ((B = a.geometry) == null ? void 0 : B.type) === "Point" && ((R = a.properties) == null ? void 0 : R.type) === "forecast" && (a.properties.name = o, a.properties.format = M0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((W = a.geometry) == null ? void 0 : W.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
3941
3941
  a.properties.format = M0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3942
- const y = M0((R = a.properties) == null ? void 0 : R.date).utc().format("HHmm") === M0().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
3943
- a.properties.showHistoryLabel = y || n === A, a.properties.showNameLabel = n === A, a.properties.name = o;
3942
+ const X = M0((h = a.properties) == null ? void 0 : h.date).utc().format("HHmm") === M0().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
3943
+ a.properties.showHistoryLabel = X || n === A, a.properties.showNameLabel = n === A, a.properties.name = o;
3944
3944
  }
3945
3945
  return a;
3946
3946
  });
@@ -4212,9 +4212,9 @@ const a2 = {
4212
4212
  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), (z = this.interpolateMarkers) == null || z.forEach((M) => M == null ? void 0 : M.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
4213
4213
  },
4214
4214
  handleDateChange() {
4215
- var z, M, b, O, p, o, A, t, q, r, a, n, s, d, m, L, W, h, R, y, E, N, H, U, Y, g, v, A0, n0, R0, i0, f0, p0, h0, m0, u0;
4215
+ var z, M, b, O, p, o, A, t, q, r, a, n, s, d, B, R, W, m, h, X, E, y, H, U, Y, L, N, A0, n0, R0, i0, f0, p0, h0, m0, u0;
4216
4216
  if ((z = this.interpolateMarkers) == null || z.forEach((r0) => r0 == null ? void 0 : r0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
4217
- const r0 = M0(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((P) => P.properties.date === r0.format() && !P.properties.disabled), B0 = this.handleComputePolygons(d0), s0 = C.featureCollection([...d0]);
4217
+ const r0 = M0(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((P) => P.properties.date === r0.format() && !P.properties.disabled), B0 = this.handleComputePolygons(d0), s0 = v.featureCollection([...d0]);
4218
4218
  B0.forEach((P) => {
4219
4219
  s0.features.push(P);
4220
4220
  }), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(s0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
@@ -4234,7 +4234,7 @@ const a2 = {
4234
4234
  for (const P of d0)
4235
4235
  if (!P.properties.disabled) {
4236
4236
  let b0 = "#f44336";
4237
- ((t = (A = P.properties) == null ? void 0 : A.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? b0 = "#03f869" : ((n = (a = P.properties) == null ? void 0 : a.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (s = P.properties) == null ? void 0 : s.wind) == null ? void 0 : d.spd) < 24.5 ? b0 = "#f2f202" : ((L = (m = P.properties) == null ? void 0 : m.wind) == null ? void 0 : L.spd) >= 24.5 && ((h = (W = P.properties) == null ? void 0 : W.wind) == null ? void 0 : h.spd) < 32.7 ? b0 = "#ff9100" : ((y = (R = P.properties) == null ? void 0 : R.wind) == null ? void 0 : y.spd) >= 32.7 && ((N = (E = P.properties) == null ? void 0 : E.wind) == null ? void 0 : N.spd) < 41.5 ? b0 = "#f44336" : ((U = (H = P.properties) == null ? void 0 : H.wind) == null ? void 0 : U.spd) >= 41.5 && ((g = (Y = P.properties) == null ? void 0 : Y.wind) == null ? void 0 : g.spd) < 51 ? b0 = "#f903d0" : ((A0 = (v = P.properties) == null ? void 0 : v.wind) == null ? void 0 : A0.spd) >= 51 ? b0 = "#8702f9" : b0 = "#f44336";
4237
+ ((t = (A = P.properties) == null ? void 0 : A.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? b0 = "#03f869" : ((n = (a = P.properties) == null ? void 0 : a.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (s = P.properties) == null ? void 0 : s.wind) == null ? void 0 : d.spd) < 24.5 ? b0 = "#f2f202" : ((R = (B = P.properties) == null ? void 0 : B.wind) == null ? void 0 : R.spd) >= 24.5 && ((m = (W = P.properties) == null ? void 0 : W.wind) == null ? void 0 : m.spd) < 32.7 ? b0 = "#ff9100" : ((X = (h = P.properties) == null ? void 0 : h.wind) == null ? void 0 : X.spd) >= 32.7 && ((y = (E = P.properties) == null ? void 0 : E.wind) == null ? void 0 : y.spd) < 41.5 ? b0 = "#f44336" : ((U = (H = P.properties) == null ? void 0 : H.wind) == null ? void 0 : U.spd) >= 41.5 && ((L = (Y = P.properties) == null ? void 0 : Y.wind) == null ? void 0 : L.spd) < 51 ? b0 = "#f903d0" : ((A0 = (N = P.properties) == null ? void 0 : N.wind) == null ? void 0 : A0.spd) >= 51 ? b0 = "#8702f9" : b0 = "#f44336";
4238
4238
  const t0 = `<svg t="1719918955501"
4239
4239
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4240
4240
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -4255,11 +4255,11 @@ const a2 = {
4255
4255
  if (this.interpolateMarkers.push(z0), (n0 = P.properties) != null && n0.showCircle) {
4256
4256
  const W0 = { radius: 100, coordinates: P.geometry.coordinates }, l0 = { radius: 200, coordinates: P.geometry.coordinates }, L0 = { radius: 500, coordinates: P.geometry.coordinates };
4257
4257
  (R0 = this.circleSourceData) == null || R0.features.push(
4258
- C.circle(W0.coordinates, W0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4258
+ v.circle(W0.coordinates, W0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4259
4259
  ), (i0 = this.circleSourceData) == null || i0.features.push(
4260
- C.circle(l0.coordinates, l0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4260
+ v.circle(l0.coordinates, l0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4261
4261
  ), (f0 = this.circleSourceData) == null || f0.features.push(
4262
- C.circle(L0.coordinates, L0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4262
+ v.circle(L0.coordinates, L0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4263
4263
  );
4264
4264
  }
4265
4265
  (h0 = (p0 = this.map) == null ? void 0 : p0.getSource(this.circleSource)) == null || h0.setData(this.circleSourceData);
@@ -4271,18 +4271,18 @@ const a2 = {
4271
4271
  var o, A, t, q, r, a, n, s;
4272
4272
  const M = z.features[0], b = (A = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : A.features.filter(
4273
4273
  (d) => {
4274
- var m;
4275
- return d.geometry.type === "LineString" && d.properties.type === "forecast" && d.properties.name === ((m = M == null ? void 0 : M.properties) == null ? void 0 : m.name);
4274
+ var B;
4275
+ return d.geometry.type === "LineString" && d.properties.type === "forecast" && d.properties.name === ((B = M == null ? void 0 : M.properties) == null ? void 0 : B.name);
4276
4276
  }
4277
4277
  );
4278
- b.sort((d, m) => {
4279
- var L, W, h, R;
4280
- return ((L = d.properties) == null ? void 0 : L.model) === "cma" ? -1 : ((W = d.properties) == null ? void 0 : W.model) === "jma" ? ((h = m.properties) == null ? void 0 : h.model) === "cma" ? 1 : -1 : d.properties.model === "ecmwf" ? ["jma", "cma"].includes((R = m.properties) == null ? void 0 : R.model) ? 1 : -1 : 0;
4278
+ b.sort((d, B) => {
4279
+ var R, W, m, h;
4280
+ return ((R = d.properties) == null ? void 0 : R.model) === "cma" ? -1 : ((W = d.properties) == null ? void 0 : W.model) === "jma" ? ((m = B.properties) == null ? void 0 : m.model) === "cma" ? 1 : -1 : d.properties.model === "ecmwf" ? ["jma", "cma"].includes((h = B.properties) == null ? void 0 : h.model) ? 1 : -1 : 0;
4281
4281
  });
4282
4282
  const O = (q = (t = this.tropicals) == null ? void 0 : t.data) == null ? void 0 : q.features.filter(
4283
4283
  (d) => {
4284
- var m;
4285
- return d.geometry.type === "LineString" && d.properties.type === "history" && d.properties.name === ((m = M == null ? void 0 : M.properties) == null ? void 0 : m.name);
4284
+ var B;
4285
+ return d.geometry.type === "LineString" && d.properties.type === "history" && d.properties.name === ((B = M == null ? void 0 : M.properties) == null ? void 0 : B.name);
4286
4286
  }
4287
4287
  );
4288
4288
  this.activeTropicals = {
@@ -4302,7 +4302,7 @@ const a2 = {
4302
4302
  r.properties.category === M && (r.properties.disabled = z.disabled);
4303
4303
  }), this.interpolateData.forEach((r) => {
4304
4304
  r.properties.category === M && (r.properties.disabled = z.disabled);
4305
- }), (A = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || A.setData(C.featureCollection(b)), (q = (t = this.map) == null ? void 0 : t.getSource(this.clusterSource)) == null || q.setData(C.featureCollection(b)), this.handleDateChange();
4305
+ }), (A = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || A.setData(v.featureCollection(b)), (q = (t = this.map) == null ? void 0 : t.getSource(this.clusterSource)) == null || q.setData(v.featureCollection(b)), this.handleDateChange();
4306
4306
  },
4307
4307
  handleStrikeProbability(z) {
4308
4308
  this.$emit("tropicalProbability", z);
@@ -4359,22 +4359,22 @@ const a2 = {
4359
4359
  let q;
4360
4360
  switch (A) {
4361
4361
  case "ne":
4362
- q = C.lineArc(z, t * 1.852, 0, 90, { steps: t > 0 ? 64 : 1 });
4362
+ q = v.lineArc(z, t * 1.852, 0, 90, { steps: t > 0 ? 64 : 1 });
4363
4363
  break;
4364
4364
  case "se":
4365
- q = C.lineArc(z, t * 1.852, 90, 180, { steps: t > 0 ? 64 : 1 });
4365
+ q = v.lineArc(z, t * 1.852, 90, 180, { steps: t > 0 ? 64 : 1 });
4366
4366
  break;
4367
4367
  case "sw":
4368
- q = C.lineArc(z, t * 1.852, 180, 270, { steps: t > 0 ? 64 : 1 });
4368
+ q = v.lineArc(z, t * 1.852, 180, 270, { steps: t > 0 ? 64 : 1 });
4369
4369
  break;
4370
4370
  case "nw":
4371
- q = C.lineArc(z, t * 1.852, 270, 360, { steps: t > 0 ? 64 : 1 });
4371
+ q = v.lineArc(z, t * 1.852, 270, 360, { steps: t > 0 ? 64 : 1 });
4372
4372
  break;
4373
4373
  }
4374
4374
  O.push(...(o = q == null ? void 0 : q.geometry) == null ? void 0 : o.coordinates);
4375
4375
  }
4376
- const p = C.lineString(O);
4377
- return C.lineToPolygon(p, { properties: b });
4376
+ const p = v.lineString(O);
4377
+ return v.lineToPolygon(p, { properties: b });
4378
4378
  }
4379
4379
  }
4380
4380
  }, q2 = {
@@ -4394,49 +4394,49 @@ const a2 = {
4394
4394
  style: { "justify-content": "flex-start" }
4395
4395
  }, h2 = { class: "forecast-models" }, m2 = ["onClick"], B2 = { class: "more" };
4396
4396
  function g2(z, M, b, O, p, o) {
4397
- var A, t, q, r, a, n, s, d, m, L, W, h, R, y, E;
4397
+ var A, t, q, r, a, n, s, d, B, R, W, m, h, X, E;
4398
4398
  return X0((l(), f("div", q2, [
4399
4399
  c("div", i2, [
4400
4400
  c("div", {
4401
4401
  class: "iconfont close-btn",
4402
- onClick: M[0] || (M[0] = (N) => p.showTropicals = !1)
4402
+ onClick: M[0] || (M[0] = (y) => p.showTropicals = !1)
4403
4403
  }, ""),
4404
4404
  c("div", r2, [
4405
4405
  (t = (A = p.activeTropicals) == null ? void 0 : A.history) != null && t.level ? (l(), f("span", n2, T((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : _("", !0),
4406
4406
  $(T((a = p.activeTropicals) == null ? void 0 : a.name), 1)
4407
4407
  ]),
4408
- c("div", d2, " Last update: " + T(o.computeTime(((s = (n = p.activeTropicals) == null ? void 0 : n.history) == null ? void 0 : s.updated) || ((L = (m = (d = p.activeTropicals) == null ? void 0 : d.forecasts) == null ? void 0 : m.filter((N) => !N.disabled)[0]) == null ? void 0 : L.date))), 1)
4408
+ c("div", d2, " Last update: " + T(o.computeTime(((s = (n = p.activeTropicals) == null ? void 0 : n.history) == null ? void 0 : s.updated) || ((R = (B = (d = p.activeTropicals) == null ? void 0 : d.forecasts) == null ? void 0 : B.filter((y) => !y.disabled)[0]) == null ? void 0 : R.date))), 1)
4409
4409
  ]),
4410
4410
  c("div", s2, [
4411
4411
  c("div", W2, [
4412
4412
  c("div", l2, [
4413
4413
  c("div", f2, [
4414
4414
  M[2] || (M[2] = c("label", null, "Wind speed : ", -1)),
4415
- c("span", null, T(((h = (W = p.activeTropicals) == null ? void 0 : W.history) == null ? void 0 : h.kts) || "-") + "[kts]", 1)
4415
+ c("span", null, T(((m = (W = p.activeTropicals) == null ? void 0 : W.history) == null ? void 0 : m.kts) || "-") + "[kts]", 1)
4416
4416
  ]),
4417
4417
  c("div", u2, [
4418
4418
  M[3] || (M[3] = c("label", null, "Pressure : ", -1)),
4419
- c("span", null, T(((y = (R = p.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : y.pressure) || "-") + "[hPa]", 1)
4419
+ c("span", null, T(((X = (h = p.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : X.pressure) || "-") + "[hPa]", 1)
4420
4420
  ])
4421
4421
  ]),
4422
4422
  c("div", L2, [
4423
4423
  c("div", R2, [
4424
4424
  M[4] || (M[4] = c("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4425
4425
  c("div", h2, [
4426
- (l(!0), f(j, null, G((E = p.activeTropicals) == null ? void 0 : E.forecasts, (N, H) => {
4427
- var U, Y, g, v;
4426
+ (l(!0), f(j, null, G((E = p.activeTropicals) == null ? void 0 : E.forecasts, (y, H) => {
4427
+ var U, Y, L, N;
4428
4428
  return l(), f("div", {
4429
4429
  key: H,
4430
4430
  class: J([
4431
4431
  "model",
4432
- N.disabled ? "" : "active",
4433
- H > 0 && H < ((Y = (U = p.activeTropicals) == null ? void 0 : U.forecasts) == null ? void 0 : Y.length) - 1 && ((v = (g = p.activeTropicals) == null ? void 0 : g.forecasts) == null ? void 0 : v.length) > 2 ? "center-child" : ""
4432
+ y.disabled ? "" : "active",
4433
+ H > 0 && H < ((Y = (U = p.activeTropicals) == null ? void 0 : U.forecasts) == null ? void 0 : Y.length) - 1 && ((N = (L = p.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : N.length) > 2 ? "center-child" : ""
4434
4434
  ]),
4435
- onClick: (A0) => o.handleForecastToggle(N)
4435
+ onClick: (A0) => o.handleForecastToggle(y)
4436
4436
  }, [
4437
4437
  c("span", {
4438
- class: J(N.model)
4439
- }, T(N.model), 3)
4438
+ class: J(y.model)
4439
+ }, T(y.model), 3)
4440
4440
  ], 10, m2);
4441
4441
  }), 128))
4442
4442
  ])
@@ -4447,7 +4447,7 @@ function g2(z, M, b, O, p, o) {
4447
4447
  c("div", B2, [
4448
4448
  c("div", {
4449
4449
  class: "button",
4450
- onClick: M[1] || (M[1] = (N) => o.handleStrikeProbability(p.activeTropicals))
4450
+ onClick: M[1] || (M[1] = (y) => o.handleStrikeProbability(p.activeTropicals))
4451
4451
  }, "Strike Probability >>")
4452
4452
  ])
4453
4453
  ])
@@ -5086,42 +5086,42 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5086
5086
  return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48;
5087
5087
  }
5088
5088
  function d(e) {
5089
- var i = 0, u = e.split("."), B = u[0], X = u[1] || "", D = 1, V, S = 0, F = 1;
5090
- for (e.charCodeAt(0) === 45 && (i = 1, F = -1), i; i < B.length; i++)
5091
- V = s(B.charCodeAt(i)), S = 60 * S + V;
5092
- for (i = 0; i < X.length; i++)
5093
- D = D / 60, V = s(X.charCodeAt(i)), S += V * D;
5089
+ var i = 0, u = e.split("."), g = u[0], w = u[1] || "", D = 1, V, S = 0, F = 1;
5090
+ for (e.charCodeAt(0) === 45 && (i = 1, F = -1), i; i < g.length; i++)
5091
+ V = s(g.charCodeAt(i)), S = 60 * S + V;
5092
+ for (i = 0; i < w.length; i++)
5093
+ D = D / 60, V = s(w.charCodeAt(i)), S += V * D;
5094
5094
  return S * F;
5095
5095
  }
5096
- function m(e) {
5096
+ function B(e) {
5097
5097
  for (var i = 0; i < e.length; i++)
5098
5098
  e[i] = d(e[i]);
5099
5099
  }
5100
- function L(e, i) {
5100
+ function R(e, i) {
5101
5101
  for (var u = 0; u < i; u++)
5102
5102
  e[u] = Math.round((e[u - 1] || 0) + e[u] * 6e4);
5103
5103
  e[i - 1] = 1 / 0;
5104
5104
  }
5105
5105
  function W(e, i) {
5106
- var u = [], B;
5107
- for (B = 0; B < i.length; B++)
5108
- u[B] = e[i[B]];
5106
+ var u = [], g;
5107
+ for (g = 0; g < i.length; g++)
5108
+ u[g] = e[i[g]];
5109
5109
  return u;
5110
5110
  }
5111
- function h(e) {
5112
- var i = e.split("|"), u = i[2].split(" "), B = i[3].split(""), X = i[4].split(" ");
5113
- return m(u), m(B), m(X), L(X, B.length), {
5111
+ function m(e) {
5112
+ var i = e.split("|"), u = i[2].split(" "), g = i[3].split(""), w = i[4].split(" ");
5113
+ return B(u), B(g), B(w), R(w, g.length), {
5114
5114
  name: i[0],
5115
- abbrs: W(i[1].split(" "), B),
5116
- offsets: W(u, B),
5117
- untils: X,
5115
+ abbrs: W(i[1].split(" "), g),
5116
+ offsets: W(u, g),
5117
+ untils: w,
5118
5118
  population: i[5] | 0
5119
5119
  };
5120
5120
  }
5121
- function R(e) {
5122
- e && this._set(h(e));
5121
+ function h(e) {
5122
+ e && this._set(m(e));
5123
5123
  }
5124
- function y(e, i) {
5124
+ function X(e, i) {
5125
5125
  var u = i.length;
5126
5126
  if (e < i[0])
5127
5127
  return 0;
@@ -5129,18 +5129,18 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5129
5129
  return u - 1;
5130
5130
  if (e >= i[u - 1])
5131
5131
  return -1;
5132
- for (var B, X = 0, D = u - 1; D - X > 1; )
5133
- B = Math.floor((X + D) / 2), i[B] <= e ? X = B : D = B;
5132
+ for (var g, w = 0, D = u - 1; D - w > 1; )
5133
+ g = Math.floor((w + D) / 2), i[g] <= e ? w = g : D = g;
5134
5134
  return D;
5135
5135
  }
5136
- R.prototype = {
5136
+ h.prototype = {
5137
5137
  _set: function(e) {
5138
5138
  this.name = e.name, this.abbrs = e.abbrs, this.untils = e.untils, this.offsets = e.offsets, this.population = e.population;
5139
5139
  },
5140
5140
  _index: function(e) {
5141
- var i = +e, u = this.untils, B;
5142
- if (B = y(i, u), B >= 0)
5143
- return B;
5141
+ var i = +e, u = this.untils, g;
5142
+ if (g = X(i, u), g >= 0)
5143
+ return g;
5144
5144
  },
5145
5145
  countries: function() {
5146
5146
  var e = this.name;
@@ -5149,11 +5149,11 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5149
5149
  });
5150
5150
  },
5151
5151
  parse: function(e) {
5152
- var i = +e, u = this.offsets, B = this.untils, X = B.length - 1, D, V, S, F;
5153
- for (F = 0; F < X; F++)
5154
- if (D = u[F], V = u[F + 1], S = u[F && F - 1], D < V && I.moveAmbiguousForward ? D = V : D > S && I.moveInvalidForward && (D = S), i < B[F] - D * 6e4)
5152
+ var i = +e, u = this.offsets, g = this.untils, w = g.length - 1, D, V, S, F;
5153
+ for (F = 0; F < w; F++)
5154
+ if (D = u[F], V = u[F + 1], S = u[F && F - 1], D < V && I.moveAmbiguousForward ? D = V : D > S && I.moveInvalidForward && (D = S), i < g[F] - D * 6e4)
5155
5155
  return u[F];
5156
- return u[X];
5156
+ return u[w];
5157
5157
  },
5158
5158
  abbr: function(e) {
5159
5159
  return this.abbrs[this._index(e)];
@@ -5168,7 +5168,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5168
5168
  function E(e, i) {
5169
5169
  this.name = e, this.zones = i;
5170
5170
  }
5171
- function N(e) {
5171
+ function y(e) {
5172
5172
  var i = e.toTimeString(), u = i.match(/\([a-z ]+\)/i);
5173
5173
  u && u[0] ? (u = u[0].match(/[A-Z]/g), u = u ? u.join("") : void 0) : (u = i.match(/[A-Z]{3,5}/g), u = u ? u[0] : void 0), u === "GMT" && (u = void 0), this.at = +e, this.abbr = u, this.offset = e.getTimezoneOffset();
5174
5174
  }
@@ -5179,38 +5179,38 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5179
5179
  this.offsetScore += Math.abs(this.zone.utcOffset(e.at) - e.offset), this.zone.abbr(e.at).replace(/[^A-Z]/g, "") !== e.abbr && this.abbrScore++;
5180
5180
  };
5181
5181
  function U(e, i) {
5182
- for (var u, B; B = ((i.at - e.at) / 12e4 | 0) * 6e4; )
5183
- u = new N(new Date(e.at + B)), u.offset === e.offset ? e = u : i = u;
5182
+ for (var u, g; g = ((i.at - e.at) / 12e4 | 0) * 6e4; )
5183
+ u = new y(new Date(e.at + g)), u.offset === e.offset ? e = u : i = u;
5184
5184
  return e;
5185
5185
  }
5186
5186
  function Y() {
5187
- var e = (/* @__PURE__ */ new Date()).getFullYear() - 2, i = new N(new Date(e, 0, 1)), u = i.offset, B = [i], X, D, V, S;
5187
+ var e = (/* @__PURE__ */ new Date()).getFullYear() - 2, i = new y(new Date(e, 0, 1)), u = i.offset, g = [i], w, D, V, S;
5188
5188
  for (S = 1; S < 48; S++)
5189
- V = new Date(e, S, 1).getTimezoneOffset(), V !== u && (D = new N(new Date(e, S, 1)), X = U(i, D), B.push(X), B.push(new N(new Date(X.at + 6e4))), i = D, u = V);
5189
+ V = new Date(e, S, 1).getTimezoneOffset(), V !== u && (D = new y(new Date(e, S, 1)), w = U(i, D), g.push(w), g.push(new y(new Date(w.at + 6e4))), i = D, u = V);
5190
5190
  for (S = 0; S < 4; S++)
5191
- B.push(new N(new Date(e + S, 0, 1))), B.push(new N(new Date(e + S, 6, 1)));
5192
- return B;
5191
+ g.push(new y(new Date(e + S, 0, 1))), g.push(new y(new Date(e + S, 6, 1)));
5192
+ return g;
5193
5193
  }
5194
- function g(e, i) {
5194
+ function L(e, i) {
5195
5195
  return e.offsetScore !== i.offsetScore ? e.offsetScore - i.offsetScore : e.abbrScore !== i.abbrScore ? e.abbrScore - i.abbrScore : e.zone.population !== i.zone.population ? i.zone.population - e.zone.population : i.zone.name.localeCompare(e.zone.name);
5196
5196
  }
5197
- function v(e, i) {
5198
- var u, B;
5199
- for (m(i), u = 0; u < i.length; u++)
5200
- B = i[u], t[B] = t[B] || {}, t[B][e] = !0;
5197
+ function N(e, i) {
5198
+ var u, g;
5199
+ for (B(i), u = 0; u < i.length; u++)
5200
+ g = i[u], t[g] = t[g] || {}, t[g][e] = !0;
5201
5201
  }
5202
5202
  function A0(e) {
5203
- var i = e.length, u = {}, B = [], X = {}, D, V, S, F;
5203
+ var i = e.length, u = {}, g = [], w = {}, D, V, S, F;
5204
5204
  for (D = 0; D < i; D++)
5205
- if (S = e[D].offset, !X.hasOwnProperty(S)) {
5205
+ if (S = e[D].offset, !w.hasOwnProperty(S)) {
5206
5206
  F = t[S] || {};
5207
5207
  for (V in F)
5208
5208
  F.hasOwnProperty(V) && (u[V] = !0);
5209
- X[S] = !0;
5209
+ w[S] = !0;
5210
5210
  }
5211
5211
  for (D in u)
5212
- u.hasOwnProperty(D) && B.push(A[D]);
5213
- return B;
5212
+ u.hasOwnProperty(D) && g.push(A[D]);
5213
+ return g;
5214
5214
  }
5215
5215
  function n0() {
5216
5216
  try {
@@ -5223,13 +5223,13 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5223
5223
  }
5224
5224
  } catch {
5225
5225
  }
5226
- var u = Y(), B = u.length, X = A0(u), D = [], V, S, F;
5227
- for (S = 0; S < X.length; S++) {
5228
- for (V = new H(p0(X[S])), F = 0; F < B; F++)
5226
+ var u = Y(), g = u.length, w = A0(u), D = [], V, S, F;
5227
+ for (S = 0; S < w.length; S++) {
5228
+ for (V = new H(p0(w[S])), F = 0; F < g; F++)
5229
5229
  V.scoreOffsetAt(u[F]);
5230
5230
  D.push(V);
5231
5231
  }
5232
- return D.sort(g), D.length > 0 ? D[0].zone.name : void 0;
5232
+ return D.sort(L), D.length > 0 ? D[0].zone.name : void 0;
5233
5233
  }
5234
5234
  function R0(e) {
5235
5235
  return (!q || e) && (q = n0()), q;
@@ -5238,14 +5238,14 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5238
5238
  return (e || "").toLowerCase().replace(/\//g, "_");
5239
5239
  }
5240
5240
  function f0(e) {
5241
- var i, u, B, X;
5241
+ var i, u, g, w;
5242
5242
  for (typeof e == "string" && (e = [e]), i = 0; i < e.length; i++)
5243
- B = e[i].split("|"), u = B[0], X = i0(u), O[X] = e[i], A[X] = u, v(X, B[2].split(" "));
5243
+ g = e[i].split("|"), u = g[0], w = i0(u), O[w] = e[i], A[w] = u, N(w, g[2].split(" "));
5244
5244
  }
5245
5245
  function p0(e, i) {
5246
5246
  e = i0(e);
5247
- var u = O[e], B;
5248
- return u instanceof R ? u : typeof u == "string" ? (u = new R(u), O[e] = u, u) : p[e] && i !== p0 && (B = p0(p[e], p0)) ? (u = O[e] = new R(), u._set(B), u.name = A[e], u) : null;
5247
+ var u = O[e], g;
5248
+ return u instanceof h ? u : typeof u == "string" ? (u = new h(u), O[e] = u, u) : p[e] && i !== p0 && (g = p0(p[e], p0)) ? (u = O[e] = new h(), u._set(g), u.name = A[e], u) : null;
5249
5249
  }
5250
5250
  function h0() {
5251
5251
  var e, i = [];
@@ -5257,17 +5257,17 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5257
5257
  return Object.keys(o);
5258
5258
  }
5259
5259
  function u0(e) {
5260
- var i, u, B, X;
5260
+ var i, u, g, w;
5261
5261
  for (typeof e == "string" && (e = [e]), i = 0; i < e.length; i++)
5262
- u = e[i].split("|"), B = i0(u[0]), X = i0(u[1]), p[B] = X, A[B] = u[0], p[X] = B, A[X] = u[1];
5262
+ u = e[i].split("|"), g = i0(u[0]), w = i0(u[1]), p[g] = w, A[g] = u[0], p[w] = g, A[w] = u[1];
5263
5263
  }
5264
5264
  function r0(e) {
5265
- var i, u, B, X;
5265
+ var i, u, g, w;
5266
5266
  if (!(!e || !e.length))
5267
5267
  for (i = 0; i < e.length; i++)
5268
- X = e[i].split("|"), u = X[0].toUpperCase(), B = X[1].split(" "), o[u] = new E(
5268
+ w = e[i].split("|"), u = w[0].toUpperCase(), g = w[1].split(" "), o[u] = new E(
5269
5269
  u,
5270
- B
5270
+ g
5271
5271
  );
5272
5272
  }
5273
5273
  function d0(e) {
@@ -5277,11 +5277,11 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5277
5277
  if (e = d0(e), !e)
5278
5278
  return null;
5279
5279
  var u = e.zones.sort();
5280
- return i ? u.map(function(B) {
5281
- var X = p0(B);
5280
+ return i ? u.map(function(g) {
5281
+ var w = p0(g);
5282
5282
  return {
5283
- name: B,
5284
- offset: X.utcOffset(/* @__PURE__ */ new Date())
5283
+ name: g,
5284
+ offset: w.utcOffset(/* @__PURE__ */ new Date())
5285
5285
  };
5286
5286
  }) : u;
5287
5287
  }
@@ -5299,19 +5299,19 @@ var F0 = { exports: {} }, G0 = { exports: {} };
5299
5299
  typeof console < "u" && typeof console.error == "function" && console.error(e);
5300
5300
  }
5301
5301
  function I(e) {
5302
- var i = Array.prototype.slice.call(arguments, 0, -1), u = arguments[arguments.length - 1], B = M.utc.apply(null, i), X;
5303
- return !M.isMoment(e) && b0(B) && (X = p0(u)) && B.add(X.parse(B), "minutes"), B.tz(u), B;
5302
+ var i = Array.prototype.slice.call(arguments, 0, -1), u = arguments[arguments.length - 1], g = M.utc.apply(null, i), w;
5303
+ return !M.isMoment(e) && b0(g) && (w = p0(u)) && g.add(w.parse(g), "minutes"), g.tz(u), g;
5304
5304
  }
5305
- I.version = b, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = f0, I.link = u0, I.load = s0, I.zone = p0, I.zoneExists = P, I.guess = R0, I.names = h0, I.Zone = R, I.unpack = h, I.unpackBase60 = d, I.needsOffset = b0, I.moveInvalidForward = !0, I.moveAmbiguousForward = !1, I.countries = m0, I.zonesForCountry = B0;
5305
+ I.version = b, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = f0, I.link = u0, I.load = s0, I.zone = p0, I.zoneExists = P, I.guess = R0, I.names = h0, I.Zone = h, I.unpack = m, I.unpackBase60 = d, I.needsOffset = b0, I.moveInvalidForward = !0, I.moveAmbiguousForward = !1, I.countries = m0, I.zonesForCountry = B0;
5306
5306
  var z0 = M.fn;
5307
5307
  M.tz = I, M.defaultZone = null, M.updateOffset = function(e, i) {
5308
- var u = M.defaultZone, B;
5308
+ var u = M.defaultZone, g;
5309
5309
  if (e._z === void 0 && (u && b0(e) && !e._isUTC && e.isValid() && (e._d = M.utc(e._a)._d, e.utc().add(u.parse(e), "minutes")), e._z = u), e._z)
5310
- if (B = e._z.utcOffset(e), Math.abs(B) < 16 && (B = B / 60), e.utcOffset !== void 0) {
5311
- var X = e._z;
5312
- e.utcOffset(-B, i), e._z = X;
5310
+ if (g = e._z.utcOffset(e), Math.abs(g) < 16 && (g = g / 60), e.utcOffset !== void 0) {
5311
+ var w = e._z;
5312
+ e.utcOffset(-g, i), e._z = w;
5313
5313
  } else
5314
- e.zone(B, i);
5314
+ e.zone(g, i);
5315
5315
  }, z0.tz = function(e, i) {
5316
5316
  if (e) {
5317
5317
  if (typeof e != "string")
@@ -6281,7 +6281,7 @@ const cM = {
6281
6281
  if (this.showMeteo = !0, this.showMeteo && this.ts) {
6282
6282
  this.handleRender();
6283
6283
  const M = M0();
6284
- ((z = M0(this.ts)) == null ? void 0 : z.diff(M, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 15) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
6284
+ ((z = M0(this.ts)) == null ? void 0 : z.diff(M, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
6285
6285
  }
6286
6286
  }
6287
6287
  },
@@ -6294,7 +6294,7 @@ const cM = {
6294
6294
  const A = v0(this.ts).tz(this.positionGmt).add(3 * o, "h").format();
6295
6295
  return (t = x0.pickHourly(this.meteoData, A)) == null ? void 0 : t[0];
6296
6296
  });
6297
- this.meteoData && p ? this.initTableData(this.meteoData) : (this.loading || (b >= 0 ? await this.fetchMeteoData(this.point, this.ts, 15) : await this.fetchHistoryData(this.point, this.ts)), this.initTableData(this.meteoData));
6297
+ this.meteoData && p ? this.initTableData(this.meteoData) : (this.loading || (b >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts)), this.initTableData(this.meteoData));
6298
6298
  }
6299
6299
  }
6300
6300
  }
@@ -6326,8 +6326,6 @@ const cM = {
6326
6326
  };
6327
6327
  }
6328
6328
  },
6329
- mounted() {
6330
- },
6331
6329
  methods: {
6332
6330
  async fetchMeteoData(z, M, b) {
6333
6331
  this.point = z, this.loading = !0, this.meteoData = [];
@@ -6335,7 +6333,7 @@ const cM = {
6335
6333
  lat: z.lat,
6336
6334
  lng: z.lng,
6337
6335
  datetime: O,
6338
- forecastDays: b ?? 15
6336
+ forecastDays: b ?? 7
6339
6337
  }, o = await N0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, p, {
6340
6338
  headers: {
6341
6339
  Authorization: this.token || this.defaultMeteoToken
@@ -6361,14 +6359,14 @@ const cM = {
6361
6359
  initTableData(z) {
6362
6360
  var M, b, O, p, o, A, t;
6363
6361
  this.clearTable(), this.positionGmt = (b = (M = z == null ? void 0 : z.weather) == null ? void 0 : M[0]) == null ? void 0 : b.timezone, this.positionOffset = (p = (O = z == null ? void 0 : z.weather) == null ? void 0 : O[0]) == null ? void 0 : p.offset, this.localDate = (A = (o = v0(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : A.format("MMM-DD/HHmm[LT]"), this.currentHourData = (t = x0.pickHourly(z, M0(this.ts))) == null ? void 0 : t[0], this.$nextTick(() => {
6364
- var r, a, n, s, d, m, L, W, h, R, y, E, N, H, U, Y, g, v, A0, n0, R0, i0, f0, p0, h0, m0, u0, r0, d0, B0, s0, P, b0, t0, I, z0, W0, l0, L0;
6362
+ var r, a, n, s, d, B, R, W, m, h, X, E, y, H, U, Y, L, N, A0, n0, R0, i0, f0, p0, h0, m0, u0, r0, d0, B0, s0, P, b0, t0, I, z0, W0, l0, L0;
6365
6363
  const q = document.getElementById("meteoMainBox");
6366
6364
  if (!q)
6367
6365
  return !1;
6368
6366
  if (q.className = "main-box", q.style.backgroundImage = null, q.style.backgroundPosition = "top left", ((a = (r = this.currentHourData) == null ? void 0 : r.weather) == null ? void 0 : a.code) === 0 && ((s = (n = this.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : s.isDay) === 0)
6369
6367
  q.className = "main-box night-bg";
6370
6368
  else {
6371
- const o0 = (m = (d = this.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : m.bg;
6369
+ const o0 = (B = (d = this.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : B.bg;
6372
6370
  o0 ? (q.className = "main-box font-color-white", q.style.backgroundImage = `url(${o0})`, (o0 === "https://osshz.idmwx.com/asset/weather/bg2.png" || o0 === "https://osshz.idmwx.com/asset/weather/bg5.png") && (q.style.backgroundPosition = "right bottom")) : q.className = "main-box day-bg";
6373
6371
  }
6374
6372
  if (!this.currentHourData)
@@ -6376,8 +6374,8 @@ const cM = {
6376
6374
  for (let o0 = 0; o0 < 8; o0++) {
6377
6375
  const e = v0(this.ts).tz(this.positionGmt).add(3 * o0, "h").format();
6378
6376
  this.tableData.hours.push(e);
6379
- const i = ((L = x0.pickHourly(z, e)) == null ? void 0 : L[0]) || {};
6380
- this.tableData.temp.push(this.roundPrecision((W = i == null ? void 0 : i.weather) == null ? void 0 : W.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((R = (h = i == null ? void 0 : i.weather) == null ? void 0 : h.precip) == null ? void 0 : R.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (y = i == null ? void 0 : i.weather) == null ? void 0 : y.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((N = i == null ? void 0 : i.weather) == null ? void 0 : N.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((U = (H = i == null ? void 0 : i.weather) == null ? void 0 : H.wind) == null ? void 0 : U.kts, 1) ?? "-"), this.tableData.windDir.push((g = (Y = i == null ? void 0 : i.weather) == null ? void 0 : Y.wind) == null ? void 0 : g.bearing), this.tableData.windGust.push(this.roundPrecision((A0 = (v = i == null ? void 0 : i.weather) == null ? void 0 : v.wind) == null ? void 0 : A0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((R0 = (n0 = i == null ? void 0 : i.wave) == null ? void 0 : n0.sig) == null ? void 0 : R0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((f0 = (i0 = i == null ? void 0 : i.wave) == null ? void 0 : i0.sig) == null ? void 0 : f0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((h0 = (p0 = i == null ? void 0 : i.wave) == null ? void 0 : p0.wd) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.windwaveDir.push((u0 = (m0 = i == null ? void 0 : i.wave) == null ? void 0 : m0.wd) == null ? void 0 : u0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((d0 = (r0 = i == null ? void 0 : i.wave) == null ? void 0 : r0.wd) == null ? void 0 : d0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((s0 = (B0 = i == null ? void 0 : i.wave) == null ? void 0 : B0.swell) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.swellDir.push((b0 = (P = i == null ? void 0 : i.wave) == null ? void 0 : P.swell) == null ? void 0 : b0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((I = (t0 = i == null ? void 0 : i.wave) == null ? void 0 : t0.swell) == null ? void 0 : I.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((z0 = i == null ? void 0 : i.current) == null ? void 0 : z0.speed, 1) ?? "-"), this.tableData.currentDir.push((W0 = i == null ? void 0 : i.current) == null ? void 0 : W0.bearing), this.tableData.seaLevel.push(this.roundPrecision(i == null ? void 0 : i.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(i == null ? void 0 : i.sst, 0) ?? "-"), this.tableData.weatherUrls.push((l0 = i == null ? void 0 : i.weather) == null ? void 0 : l0.url), this.tableData.weatherNames.push(((L0 = i == null ? void 0 : i.weather) == null ? void 0 : L0.name) ?? "-");
6377
+ const i = ((R = x0.pickHourly(z, e)) == null ? void 0 : R[0]) || {};
6378
+ this.tableData.temp.push(this.roundPrecision((W = i == null ? void 0 : i.weather) == null ? void 0 : W.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((h = (m = i == null ? void 0 : i.weather) == null ? void 0 : m.precip) == null ? void 0 : h.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (X = i == null ? void 0 : i.weather) == null ? void 0 : X.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((y = i == null ? void 0 : i.weather) == null ? void 0 : y.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((U = (H = i == null ? void 0 : i.weather) == null ? void 0 : H.wind) == null ? void 0 : U.kts, 1) ?? "-"), this.tableData.windDir.push((L = (Y = i == null ? void 0 : i.weather) == null ? void 0 : Y.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((A0 = (N = i == null ? void 0 : i.weather) == null ? void 0 : N.wind) == null ? void 0 : A0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((R0 = (n0 = i == null ? void 0 : i.wave) == null ? void 0 : n0.sig) == null ? void 0 : R0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((f0 = (i0 = i == null ? void 0 : i.wave) == null ? void 0 : i0.sig) == null ? void 0 : f0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((h0 = (p0 = i == null ? void 0 : i.wave) == null ? void 0 : p0.wd) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.windwaveDir.push((u0 = (m0 = i == null ? void 0 : i.wave) == null ? void 0 : m0.wd) == null ? void 0 : u0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((d0 = (r0 = i == null ? void 0 : i.wave) == null ? void 0 : r0.wd) == null ? void 0 : d0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((s0 = (B0 = i == null ? void 0 : i.wave) == null ? void 0 : B0.swell) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.swellDir.push((b0 = (P = i == null ? void 0 : i.wave) == null ? void 0 : P.swell) == null ? void 0 : b0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((I = (t0 = i == null ? void 0 : i.wave) == null ? void 0 : t0.swell) == null ? void 0 : I.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((z0 = i == null ? void 0 : i.current) == null ? void 0 : z0.speed, 1) ?? "-"), this.tableData.currentDir.push((W0 = i == null ? void 0 : i.current) == null ? void 0 : W0.bearing), this.tableData.seaLevel.push(this.roundPrecision(i == null ? void 0 : i.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(i == null ? void 0 : i.sst, 0) ?? "-"), this.tableData.weatherUrls.push((l0 = i == null ? void 0 : i.weather) == null ? void 0 : l0.url), this.tableData.weatherNames.push(((L0 = i == null ? void 0 : i.weather) == null ? void 0 : L0.name) ?? "-");
6381
6379
  }
6382
6380
  });
6383
6381
  },
@@ -6416,26 +6414,23 @@ const cM = {
6416
6414
  this.show ? ((z = this.map) == null || z.on("click", this.handleClick), this.map.getCanvas().style.cursor = "pointer") : ((M = this.map) == null || M.off("click", this.handleClick), this.showMeteo = !1);
6417
6415
  },
6418
6416
  handleClick(z) {
6419
- z.originalEvent.stopPropagation();
6420
- const M = z.originalEvent.target.className;
6421
- if (M.indexOf("close") > -1)
6422
- this.showMeteo = !1;
6423
- else if (M === "more")
6424
- this.$emit("meteoMore", this.point);
6425
- else if (M === "mapboxgl-canvas")
6417
+ if (z.originalEvent.stopPropagation(), z.originalEvent.target.className === "mapboxgl-canvas")
6426
6418
  this.point = z.lngLat;
6427
6419
  else
6428
6420
  return !1;
6429
6421
  },
6422
+ handleMeteoMore() {
6423
+ this.$emit("meteoMore", this.point);
6424
+ },
6425
+ handleCloseMeteo() {
6426
+ this.showMeteo = !1;
6427
+ },
6430
6428
  handleRender() {
6431
6429
  this.$nextTick(() => {
6432
6430
  var M;
6433
6431
  const z = document.getElementById("point-meteo");
6434
6432
  this.point && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new y0.Marker(z).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
6435
6433
  });
6436
- },
6437
- handleCloseMeteo() {
6438
- this.showMeteo = !1;
6439
6434
  }
6440
6435
  }
6441
6436
  }, AM = {
@@ -6454,502 +6449,503 @@ const cM = {
6454
6449
  class: "main-box flex-center"
6455
6450
  };
6456
6451
  function bb(z, M, b, O, p, o) {
6457
- var r, a, n, s, d, m, L, W, h, R, y, E, N, H, U, Y;
6452
+ var r, a, n, s, d, B, R, W, m, h, X, E, y, H, U, Y;
6458
6453
  const A = x("LocationFilled"), t = x("ElIcon"), q = x("ElTooltip");
6459
- return l(), f("div", null, [
6460
- X0(c("div", AM, [
6461
- c("div", eM, [
6462
- c("div", tM, [
6463
- c("div", aM, [
6464
- w(t, { size: "22" }, {
6465
- default: e0(() => [
6466
- w(A)
6467
- ]),
6454
+ return X0((l(), f("div", AM, [
6455
+ c("div", eM, [
6456
+ c("div", tM, [
6457
+ c("div", aM, [
6458
+ C(t, { size: "22" }, {
6459
+ default: e0(() => [
6460
+ C(A)
6461
+ ]),
6462
+ _: 1
6463
+ }),
6464
+ c("div", qM, T(o.computeLat((r = p.point) == null ? void 0 : r.lat)) + "," + T(o.computeLng((a = p.point) == null ? void 0 : a.lng)), 1)
6465
+ ]),
6466
+ c("div", {
6467
+ class: "iconfont close",
6468
+ onClick: M[0] || (M[0] = (...L) => o.handleCloseMeteo && o.handleCloseMeteo(...L))
6469
+ }, "")
6470
+ ]),
6471
+ p.loading ? (l(), f("div", Mb, M[30] || (M[30] = [
6472
+ c("img", { src: oM }, null, -1)
6473
+ ]))) : (l(), f("div", iM, [
6474
+ c("div", rM, [
6475
+ c("div", nM, [
6476
+ C(q, {
6477
+ placement: "top",
6478
+ effect: "light",
6479
+ content: (s = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : s.name,
6480
+ "show-after": 1e3
6481
+ }, {
6482
+ default: e0(() => {
6483
+ var L, N, A0, n0;
6484
+ return [
6485
+ (N = (L = p.currentHourData) == null ? void 0 : L.weather) != null && N.url ? (l(), f("img", {
6486
+ key: 0,
6487
+ class: "iconfont icon",
6488
+ style: { "margin-right": "5px" },
6489
+ src: (n0 = (A0 = p.currentHourData) == null ? void 0 : A0.weather) == null ? void 0 : n0.url
6490
+ }, null, 8, dM)) : (l(), f("span", sM))
6491
+ ];
6492
+ }),
6468
6493
  _: 1
6469
- }),
6470
- c("div", qM, T(o.computeLat((r = p.point) == null ? void 0 : r.lat)) + "," + T(o.computeLng((a = p.point) == null ? void 0 : a.lng)), 1)
6494
+ }, 8, ["content"]),
6495
+ c("div", WM, [
6496
+ c("div", null, [
6497
+ $(T(o.roundPrecision((B = (d = p.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : B.temp, 0)), 1),
6498
+ M[5] || (M[5] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
6499
+ ])
6500
+ ]),
6501
+ c("div", lM, [
6502
+ c("div", fM, [
6503
+ M[6] || (M[6] = c("label", null, "Precip : ", -1)),
6504
+ c("span", null, T(o.roundPrecision((m = (W = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : W.precip) == null ? void 0 : m.sum, 0)) + " mm", 1)
6505
+ ]),
6506
+ c("div", uM, [
6507
+ M[7] || (M[7] = c("label", null, "Visibility : ", -1)),
6508
+ c("span", null, T(o.roundPrecision((X = (h = p.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : X.visibility, 0)) + " nm", 1)
6509
+ ]),
6510
+ c("div", LM, [
6511
+ M[8] || (M[8] = c("label", null, "Wind : ", -1)),
6512
+ c("span", null, T(o.roundPrecision((H = (y = (E = p.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : y.wind) == null ? void 0 : H.kts, 1)) + " kts", 1)
6513
+ ])
6514
+ ])
6471
6515
  ]),
6472
- c("div", {
6473
- class: "iconfont close",
6474
- onClick: M[0] || (M[0] = (...g) => o.handleCloseMeteo && o.handleCloseMeteo(...g))
6475
- }, "")
6516
+ c("div", RM, [
6517
+ c("div", hM, T(p.localDate), 1),
6518
+ c("div", mM, "( UTC " + T(p.positionOffset) + " )", 1)
6519
+ ])
6476
6520
  ]),
6477
- p.loading ? (l(), f("div", Mb, M[30] || (M[30] = [
6478
- c("img", { src: oM }, null, -1)
6479
- ]))) : (l(), f("div", iM, [
6480
- c("div", rM, [
6481
- c("div", nM, [
6482
- w(q, {
6483
- placement: "top",
6484
- effect: "light",
6485
- content: (s = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : s.name,
6486
- "show-after": 1e3
6487
- }, {
6488
- default: e0(() => {
6489
- var g, v, A0, n0;
6490
- return [
6491
- (v = (g = p.currentHourData) == null ? void 0 : g.weather) != null && v.url ? (l(), f("img", {
6521
+ X0(c("div", BM, [
6522
+ c("div", gM, [
6523
+ c("div", {
6524
+ class: J(["menu-item", p.activeIndex === 1 ? "active" : ""]),
6525
+ onClick: M[1] || (M[1] = E0((L) => o.handleSelectTab(1), ["prevent"]))
6526
+ }, "Basis", 2),
6527
+ c("div", {
6528
+ class: J(["menu-item", p.activeIndex === 2 ? "active" : ""]),
6529
+ onClick: M[2] || (M[2] = E0((L) => o.handleSelectTab(2), ["prevent"]))
6530
+ }, "Wave & Current", 2),
6531
+ c("div", {
6532
+ class: J(["menu-item", p.activeIndex === 3 ? "active" : ""]),
6533
+ onClick: M[3] || (M[3] = E0((L) => o.handleSelectTab(3), ["prevent"]))
6534
+ }, "Sea Surface", 2)
6535
+ ]),
6536
+ X0(c("table", NM, [
6537
+ c("tr", yM, [
6538
+ M[9] || (M[9] = c("th", {
6539
+ rowspan: "1",
6540
+ colspan: "1",
6541
+ class: "tr-title"
6542
+ }, [
6543
+ $("Hours"),
6544
+ c("span", { class: "unit" }, "(LT)")
6545
+ ], -1)),
6546
+ (l(!0), f(j, null, G(p.tableData.hours, (L) => (l(), f("th", {
6547
+ rowspan: "1",
6548
+ colspan: "1",
6549
+ key: `HourL${L}`
6550
+ }, T(o.computeHourL(L)), 1))), 128))
6551
+ ]),
6552
+ c("tr", XM, [
6553
+ M[10] || (M[10] = c("th", {
6554
+ rowspan: "1",
6555
+ colspan: "1",
6556
+ class: "tr-title"
6557
+ }, [
6558
+ $("UTC"),
6559
+ c("span", { class: "unit" })
6560
+ ], -1)),
6561
+ (l(!0), f(j, null, G(p.tableData.hours, (L) => (l(), f("th", {
6562
+ rowspan: "1",
6563
+ colspan: "1",
6564
+ key: `HourZ${L}`
6565
+ }, T(o.computeHourZ(L)), 1))), 128))
6566
+ ]),
6567
+ c("tr", wM, [
6568
+ M[11] || (M[11] = c("th", {
6569
+ rowspan: "1",
6570
+ colspan: "1",
6571
+ class: "tr-title"
6572
+ }, null, -1)),
6573
+ (l(!0), f(j, null, G(p.tableData.weatherUrls, (L, N) => (l(), f("th", {
6574
+ rowspan: "1",
6575
+ colspan: "1",
6576
+ key: `weatherUrls${N}${L}`
6577
+ }, [
6578
+ C(q, {
6579
+ placement: "top",
6580
+ effect: "light",
6581
+ content: p.tableData.weatherNames[N],
6582
+ "show-after": 500
6583
+ }, {
6584
+ default: e0(() => [
6585
+ L ? (l(), f("img", {
6492
6586
  key: 0,
6493
- class: "iconfont icon",
6494
- style: { "margin-right": "5px" },
6495
- src: (n0 = (A0 = p.currentHourData) == null ? void 0 : A0.weather) == null ? void 0 : n0.url
6496
- }, null, 8, dM)) : (l(), f("span", sM))
6497
- ];
6498
- }),
6499
- _: 1
6500
- }, 8, ["content"]),
6501
- c("div", WM, [
6502
- c("div", null, [
6503
- $(T(o.roundPrecision((m = (d = p.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : m.temp, 0)), 1),
6504
- M[4] || (M[4] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
6505
- ])
6506
- ]),
6507
- c("div", lM, [
6508
- c("div", fM, [
6509
- M[5] || (M[5] = c("label", null, "Precip : ", -1)),
6510
- c("span", null, T(o.roundPrecision((h = (W = (L = p.currentHourData) == null ? void 0 : L.weather) == null ? void 0 : W.precip) == null ? void 0 : h.sum, 0)) + " mm", 1)
6511
- ]),
6512
- c("div", uM, [
6513
- M[6] || (M[6] = c("label", null, "Visibility : ", -1)),
6514
- c("span", null, T(o.roundPrecision((y = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : y.visibility, 0)) + " nm", 1)
6515
- ]),
6516
- c("div", LM, [
6517
- M[7] || (M[7] = c("label", null, "Wind : ", -1)),
6518
- c("span", null, T(o.roundPrecision((H = (N = (E = p.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : N.wind) == null ? void 0 : H.kts, 1)) + " kts", 1)
6519
- ])
6520
- ])
6587
+ class: "iconfont weather-icon",
6588
+ src: L
6589
+ }, null, 8, CM)) : _("", !0)
6590
+ ]),
6591
+ _: 2
6592
+ }, 1032, ["content"])
6593
+ ]))), 128))
6594
+ ]),
6595
+ c("tr", vM, [
6596
+ M[12] || (M[12] = c("td", {
6597
+ rowspan: "1",
6598
+ colspan: "1",
6599
+ class: "tr-title"
6600
+ }, [
6601
+ $("Temp"),
6602
+ c("span", { class: "unit" }, "°C")
6603
+ ], -1)),
6604
+ (l(!0), f(j, null, G(p.tableData.temp, (L, N) => (l(), f("td", {
6605
+ rowspan: "1",
6606
+ colspan: "1",
6607
+ key: `weatherUrls${N}${L}`
6608
+ }, T(L), 1))), 128))
6521
6609
  ]),
6522
- c("div", RM, [
6523
- c("div", hM, T(p.localDate), 1),
6524
- c("div", mM, "( UTC " + T(p.positionOffset) + " )", 1)
6610
+ c("tr", TM, [
6611
+ M[13] || (M[13] = c("td", {
6612
+ rowspan: "1",
6613
+ colspan: "1",
6614
+ class: "tr-title"
6615
+ }, [
6616
+ $("Precip"),
6617
+ c("span", { class: "unit" }, "mm")
6618
+ ], -1)),
6619
+ (l(!0), f(j, null, G(p.tableData.precip1h, (L, N) => (l(), f("td", {
6620
+ rowspan: "1",
6621
+ colspan: "1",
6622
+ key: `precip1h${N}${L}`
6623
+ }, T(L), 1))), 128))
6624
+ ]),
6625
+ c("tr", EM, [
6626
+ M[14] || (M[14] = c("td", {
6627
+ rowspan: "1",
6628
+ colspan: "1",
6629
+ class: "tr-title"
6630
+ }, [
6631
+ $("Visibility"),
6632
+ c("span", { class: "unit" }, "nm")
6633
+ ], -1)),
6634
+ (l(!0), f(j, null, G(p.tableData.visibility, (L, N) => (l(), f("td", {
6635
+ rowspan: "1",
6636
+ colspan: "1",
6637
+ key: `visibility${N}${L}`
6638
+ }, T(L), 1))), 128))
6639
+ ]),
6640
+ c("tr", xM, [
6641
+ M[15] || (M[15] = c("td", {
6642
+ rowspan: "1",
6643
+ colspan: "1",
6644
+ class: "tr-title"
6645
+ }, [
6646
+ $("Wind"),
6647
+ c("span", { class: "unit" }, "kts")
6648
+ ], -1)),
6649
+ (l(!0), f(j, null, G(p.tableData.windSpeed, (L, N) => (l(), f("td", {
6650
+ rowspan: "1",
6651
+ colspan: "1",
6652
+ key: `windSpeed${N}${L}`
6653
+ }, [
6654
+ isNaN(p.tableData.windDir[N]) ? _("", !0) : (l(), f("span", {
6655
+ key: 0,
6656
+ class: "iconfont icon blue",
6657
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[N]}deg)` })
6658
+ }, "", 4)),
6659
+ c("span", null, T(L), 1)
6660
+ ]))), 128))
6525
6661
  ])
6662
+ ], 512), [
6663
+ [w0, p.activeIndex === 1]
6526
6664
  ]),
6527
- X0(c("div", BM, [
6528
- c("div", gM, [
6529
- c("div", {
6530
- class: J(["menu-item", p.activeIndex === 1 ? "active" : ""]),
6531
- onClick: M[1] || (M[1] = E0((g) => o.handleSelectTab(1), ["prevent"]))
6532
- }, "Basis", 2),
6533
- c("div", {
6534
- class: J(["menu-item", p.activeIndex === 2 ? "active" : ""]),
6535
- onClick: M[2] || (M[2] = E0((g) => o.handleSelectTab(2), ["prevent"]))
6536
- }, "Wave & Current", 2),
6537
- c("div", {
6538
- class: J(["menu-item", p.activeIndex === 3 ? "active" : ""]),
6539
- onClick: M[3] || (M[3] = E0((g) => o.handleSelectTab(3), ["prevent"]))
6540
- }, "Sea Surface", 2)
6665
+ X0(c("table", IM, [
6666
+ c("tr", DM, [
6667
+ M[16] || (M[16] = c("th", {
6668
+ rowspan: "1",
6669
+ colspan: "1",
6670
+ class: "tr-title"
6671
+ }, [
6672
+ $("Hours"),
6673
+ c("span", { class: "unit" }, "(LT)")
6674
+ ], -1)),
6675
+ (l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
6676
+ rowspan: "1",
6677
+ colspan: "1",
6678
+ key: `currenthoursL${N}${L}`
6679
+ }, T(o.computeHourL(L)), 1))), 128))
6541
6680
  ]),
6542
- X0(c("table", NM, [
6543
- c("tr", yM, [
6544
- M[8] || (M[8] = c("th", {
6545
- rowspan: "1",
6546
- colspan: "1",
6547
- class: "tr-title"
6548
- }, [
6549
- $("Hours"),
6550
- c("span", { class: "unit" }, "(LT)")
6551
- ], -1)),
6552
- (l(!0), f(j, null, G(p.tableData.hours, (g) => (l(), f("th", {
6553
- rowspan: "1",
6554
- colspan: "1",
6555
- key: Math.random()
6556
- }, T(o.computeHourL(g)), 1))), 128))
6557
- ]),
6558
- c("tr", XM, [
6559
- M[9] || (M[9] = c("th", {
6560
- rowspan: "1",
6561
- colspan: "1",
6562
- class: "tr-title"
6563
- }, [
6564
- $("UTC"),
6565
- c("span", { class: "unit" })
6566
- ], -1)),
6567
- (l(!0), f(j, null, G(p.tableData.hours, (g) => (l(), f("th", {
6568
- rowspan: "1",
6569
- colspan: "1",
6570
- key: Math.random()
6571
- }, T(o.computeHourZ(g)), 1))), 128))
6572
- ]),
6573
- c("tr", wM, [
6574
- M[10] || (M[10] = c("th", {
6575
- rowspan: "1",
6576
- colspan: "1",
6577
- class: "tr-title"
6578
- }, null, -1)),
6579
- (l(!0), f(j, null, G(p.tableData.weatherUrls, (g, v) => (l(), f("th", {
6580
- rowspan: "1",
6581
- colspan: "1",
6582
- key: Math.random()
6583
- }, [
6584
- w(q, {
6585
- placement: "top",
6586
- effect: "light",
6587
- content: p.tableData.weatherNames[v],
6588
- "show-after": 500
6589
- }, {
6590
- default: e0(() => [
6591
- g ? (l(), f("img", {
6592
- key: 0,
6593
- class: "iconfont weather-icon",
6594
- src: g
6595
- }, null, 8, CM)) : _("", !0)
6596
- ]),
6597
- _: 2
6598
- }, 1032, ["content"])
6599
- ]))), 128))
6600
- ]),
6601
- c("tr", vM, [
6602
- M[11] || (M[11] = c("td", {
6603
- rowspan: "1",
6604
- colspan: "1",
6605
- class: "tr-title"
6606
- }, [
6607
- $("Temp"),
6608
- c("span", { class: "unit" }, "°C")
6609
- ], -1)),
6610
- (l(!0), f(j, null, G(p.tableData.temp, (g) => (l(), f("td", {
6611
- rowspan: "1",
6612
- colspan: "1",
6613
- key: Math.random()
6614
- }, T(g), 1))), 128))
6615
- ]),
6616
- c("tr", TM, [
6617
- M[12] || (M[12] = c("td", {
6618
- rowspan: "1",
6619
- colspan: "1",
6620
- class: "tr-title"
6621
- }, [
6622
- $("Precip"),
6623
- c("span", { class: "unit" }, "mm")
6624
- ], -1)),
6625
- (l(!0), f(j, null, G(p.tableData.precip1h, (g) => (l(), f("td", {
6626
- rowspan: "1",
6627
- colspan: "1",
6628
- key: Math.random()
6629
- }, T(g), 1))), 128))
6630
- ]),
6631
- c("tr", EM, [
6632
- M[13] || (M[13] = c("td", {
6633
- rowspan: "1",
6634
- colspan: "1",
6635
- class: "tr-title"
6636
- }, [
6637
- $("Visibility"),
6638
- c("span", { class: "unit" }, "nm")
6639
- ], -1)),
6640
- (l(!0), f(j, null, G(p.tableData.visibility, (g) => (l(), f("td", {
6641
- rowspan: "1",
6642
- colspan: "1",
6643
- key: Math.random()
6644
- }, T(g), 1))), 128))
6645
- ]),
6646
- c("tr", xM, [
6647
- M[14] || (M[14] = c("td", {
6648
- rowspan: "1",
6649
- colspan: "1",
6650
- class: "tr-title"
6651
- }, [
6652
- $("Wind"),
6653
- c("span", { class: "unit" }, "kts")
6654
- ], -1)),
6655
- (l(!0), f(j, null, G(p.tableData.windSpeed, (g, v) => (l(), f("td", {
6656
- rowspan: "1",
6657
- colspan: "1",
6658
- key: Math.random()
6659
- }, [
6660
- isNaN(p.tableData.windDir[v]) ? _("", !0) : (l(), f("span", {
6661
- key: 0,
6662
- class: "iconfont icon blue",
6663
- style: O0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[v]}deg)` })
6664
- }, "", 4)),
6665
- c("span", null, T(g), 1)
6666
- ]))), 128))
6667
- ])
6668
- ], 512), [
6669
- [w0, p.activeIndex === 1]
6681
+ c("tr", PM, [
6682
+ M[17] || (M[17] = c("th", {
6683
+ rowspan: "1",
6684
+ colspan: "1",
6685
+ class: "tr-title"
6686
+ }, [
6687
+ $("UTC"),
6688
+ c("span", { class: "unit" })
6689
+ ], -1)),
6690
+ (l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
6691
+ rowspan: "1",
6692
+ colspan: "1",
6693
+ key: `currenthoursZ${N}${L}`
6694
+ }, T(o.computeHourZ(L)), 1))), 128))
6670
6695
  ]),
6671
- X0(c("table", IM, [
6672
- c("tr", DM, [
6673
- M[15] || (M[15] = c("th", {
6674
- rowspan: "1",
6675
- colspan: "1",
6676
- class: "tr-title"
6677
- }, [
6678
- $("Hours"),
6679
- c("span", { class: "unit" }, "(LT)")
6680
- ], -1)),
6681
- (l(!0), f(j, null, G(p.tableData.hours, (g) => (l(), f("th", {
6682
- rowspan: "1",
6683
- colspan: "1",
6684
- key: Math.random()
6685
- }, T(o.computeHourL(g)), 1))), 128))
6686
- ]),
6687
- c("tr", PM, [
6688
- M[16] || (M[16] = c("th", {
6689
- rowspan: "1",
6690
- colspan: "1",
6691
- class: "tr-title"
6692
- }, [
6693
- $("UTC"),
6694
- c("span", { class: "unit" })
6695
- ], -1)),
6696
- (l(!0), f(j, null, G(p.tableData.hours, (g) => (l(), f("th", {
6697
- rowspan: "1",
6698
- colspan: "1",
6699
- key: Math.random()
6700
- }, T(o.computeHourZ(g)), 1))), 128))
6701
- ]),
6702
- c("tr", SM, [
6703
- M[17] || (M[17] = c("th", {
6704
- rowspan: "1",
6705
- colspan: "1"
6706
- }, null, -1)),
6707
- (l(!0), f(j, null, G(p.tableData.weatherUrls, (g, v) => (l(), f("th", {
6708
- rowspan: "1",
6709
- colspan: "1",
6710
- key: Math.random()
6711
- }, [
6712
- w(q, {
6713
- placement: "top",
6714
- effect: "light",
6715
- content: p.tableData.weatherNames[v],
6716
- "show-after": 500
6717
- }, {
6718
- default: e0(() => [
6719
- g ? (l(), f("img", {
6720
- key: 0,
6721
- class: "iconfont weather-icon",
6722
- src: g
6723
- }, null, 8, kM)) : _("", !0)
6724
- ]),
6725
- _: 2
6726
- }, 1032, ["content"])
6727
- ]))), 128))
6728
- ]),
6729
- c("tr", QM, [
6730
- M[18] || (M[18] = c("td", {
6731
- rowspan: "1",
6732
- colspan: "1",
6733
- class: "tr-title"
6734
- }, [
6735
- $("Sig Wave"),
6736
- c("span", { class: "unit" }, "m")
6737
- ], -1)),
6738
- (l(!0), f(j, null, G(p.tableData.sigwaveHeight, (g, v) => (l(), f("td", {
6739
- rowspan: "1",
6740
- colspan: "1",
6741
- key: Math.random()
6742
- }, [
6743
- isNaN(p.tableData.sigwaveDir[v]) ? _("", !0) : (l(), f("span", {
6744
- key: 0,
6745
- class: "iconfont icon blue",
6746
- style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[v]}deg)` })
6747
- }, "", 4)),
6748
- c("span", null, T(g), 1)
6749
- ]))), 128))
6750
- ]),
6751
- c("tr", HM, [
6752
- M[19] || (M[19] = c("td", {
6753
- rowspan: "1",
6754
- colspan: "1",
6755
- class: "tr-title"
6756
- }, [
6757
- $("Wind Wave"),
6758
- c("span", { class: "unit" }, "m")
6759
- ], -1)),
6760
- (l(!0), f(j, null, G(p.tableData.windwaveHeight, (g, v) => (l(), f("td", {
6761
- rowspan: "1",
6762
- colspan: "1",
6763
- key: Math.random()
6764
- }, [
6765
- isNaN(p.tableData.sigwaveDir[v]) ? _("", !0) : (l(), f("span", {
6766
- key: 0,
6767
- class: "iconfont icon orange",
6768
- style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[v]}deg)` })
6769
- }, "", 4)),
6770
- c("span", null, T(g), 1)
6771
- ]))), 128))
6772
- ]),
6773
- c("tr", _M, [
6774
- M[20] || (M[20] = c("td", {
6775
- rowspan: "1",
6776
- colspan: "1",
6777
- class: "tr-title"
6778
- }, [
6779
- $("Swell"),
6780
- c("span", { class: "unit" }, "m")
6781
- ], -1)),
6782
- (l(!0), f(j, null, G(p.tableData.swellHeight, (g, v) => (l(), f("td", {
6783
- rowspan: "1",
6784
- colspan: "1",
6785
- key: Math.random()
6786
- }, [
6787
- isNaN(p.tableData.swellDir[v]) ? _("", !0) : (l(), f("span", {
6788
- key: 0,
6789
- class: "iconfont icon orange",
6790
- style: O0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[v]}deg)` })
6791
- }, "", 4)),
6792
- c("span", null, T(g), 1)
6793
- ]))), 128))
6794
- ]),
6795
- c("tr", jM, [
6796
- M[21] || (M[21] = c("td", {
6797
- rowspan: "1",
6798
- colspan: "1",
6799
- class: "tr-title"
6800
- }, [
6801
- $("Current"),
6802
- c("span", { class: "unit" }, "kts")
6803
- ], -1)),
6804
- (l(!0), f(j, null, G(p.tableData.currentSpeed, (g, v) => (l(), f("td", {
6805
- rowspan: "1",
6806
- colspan: "1",
6807
- key: Math.random()
6808
- }, [
6809
- isNaN(p.tableData.currentDir[v]) ? _("", !0) : (l(), f("span", {
6810
- key: 0,
6811
- class: "iconfont icon gray",
6812
- id: "meteoGrayIcon",
6813
- style: O0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[v]}deg)` })
6814
- }, "", 4)),
6815
- c("span", null, T(g), 1)
6816
- ]))), 128))
6817
- ])
6818
- ], 512), [
6819
- [w0, p.activeIndex === 2]
6696
+ c("tr", SM, [
6697
+ M[18] || (M[18] = c("th", {
6698
+ rowspan: "1",
6699
+ colspan: "1"
6700
+ }, null, -1)),
6701
+ (l(!0), f(j, null, G(p.tableData.weatherUrls, (L, N) => (l(), f("th", {
6702
+ rowspan: "1",
6703
+ colspan: "1",
6704
+ key: `currentweatherUrls${N}${L}`
6705
+ }, [
6706
+ C(q, {
6707
+ placement: "top",
6708
+ effect: "light",
6709
+ content: p.tableData.weatherNames[N],
6710
+ "show-after": 500
6711
+ }, {
6712
+ default: e0(() => [
6713
+ L ? (l(), f("img", {
6714
+ key: 0,
6715
+ class: "iconfont weather-icon",
6716
+ src: L
6717
+ }, null, 8, kM)) : _("", !0)
6718
+ ]),
6719
+ _: 2
6720
+ }, 1032, ["content"])
6721
+ ]))), 128))
6820
6722
  ]),
6821
- X0(c("table", FM, [
6822
- c("tr", GM, [
6823
- M[22] || (M[22] = c("th", {
6824
- rowspan: "1",
6825
- colspan: "1",
6826
- class: "tr-title"
6827
- }, [
6828
- $("Hours"),
6829
- c("span", { class: "unit" }, "(LT)")
6830
- ], -1)),
6831
- (l(!0), f(j, null, G(p.tableData.hours, (g) => (l(), f("th", {
6832
- rowspan: "1",
6833
- colspan: "1",
6834
- key: Math.random()
6835
- }, T(o.computeHourL(g)), 1))), 128))
6836
- ]),
6837
- c("tr", UM, [
6838
- M[23] || (M[23] = c("th", {
6839
- rowspan: "1",
6840
- colspan: "1",
6841
- class: "tr-title"
6842
- }, [
6843
- $("UTC"),
6844
- c("span", { class: "unit" })
6845
- ], -1)),
6846
- (l(!0), f(j, null, G(p.tableData.hours, (g) => (l(), f("th", {
6847
- rowspan: "1",
6848
- colspan: "1",
6849
- key: Math.random()
6850
- }, T(o.computeHourZ(g)), 1))), 128))
6851
- ]),
6852
- c("tr", KM, [
6853
- M[24] || (M[24] = c("th", {
6854
- rowspan: "1",
6855
- colspan: "1",
6856
- class: "tr-title"
6857
- }, null, -1)),
6858
- (l(!0), f(j, null, G(p.tableData.weatherUrls, (g, v) => (l(), f("th", {
6859
- rowspan: "1",
6860
- colspan: "1",
6861
- key: Math.random()
6862
- }, [
6863
- w(q, {
6864
- placement: "top",
6865
- effect: "light",
6866
- content: p.tableData.weatherNames[v],
6867
- "show-after": 500
6868
- }, {
6869
- default: e0(() => [
6870
- g ? (l(), f("img", {
6871
- key: 0,
6872
- class: "iconfont weather-icon",
6873
- src: g
6874
- }, null, 8, JM)) : _("", !0)
6875
- ]),
6876
- _: 2
6877
- }, 1032, ["content"])
6878
- ]))), 128))
6879
- ]),
6880
- c("tr", YM, [
6881
- M[25] || (M[25] = c("td", {
6882
- rowspan: "1",
6883
- colspan: "1",
6884
- class: "tr-title"
6885
- }, [
6886
- $("SeaLevel"),
6887
- c("span", { class: "unit" }, "m")
6888
- ], -1)),
6889
- (l(!0), f(j, null, G(p.tableData.seaLevel, (g) => (l(), f("td", {
6890
- rowspan: "1",
6891
- colspan: "1",
6892
- key: Math.random()
6893
- }, T(g), 1))), 128))
6894
- ]),
6895
- c("tr", VM, [
6896
- M[26] || (M[26] = c("td", {
6897
- rowspan: "1",
6898
- colspan: "1",
6899
- class: "tr-title"
6900
- }, [
6901
- $("SeaTemp"),
6902
- c("span", { class: "unit" }, "°C")
6903
- ], -1)),
6904
- (l(!0), f(j, null, G(p.tableData.seaTemp, (g) => (l(), f("td", {
6905
- rowspan: "1",
6906
- colspan: "1",
6907
- key: Math.random()
6908
- }, T(g), 1))), 128))
6909
- ]),
6910
- c("tr", ZM, [
6911
- M[27] || (M[27] = c("td", {
6912
- rowspan: "1",
6913
- colspan: "1",
6914
- class: "tr-title"
6915
- }, [
6916
- c("span", { class: "unit" })
6917
- ], -1)),
6918
- (l(!0), f(j, null, G(p.tableData.seaTemp, (g) => (l(), f("td", {
6919
- rowspan: "1",
6920
- colspan: "1",
6921
- key: Math.random()
6922
- }))), 128))
6923
- ]),
6924
- c("tr", $M, [
6925
- M[28] || (M[28] = c("td", {
6926
- rowspan: "1",
6927
- colspan: "1",
6928
- class: "tr-title"
6929
- }, [
6930
- c("span", { class: "unit" })
6931
- ], -1)),
6932
- (l(!0), f(j, null, G(p.tableData.seaTemp, (g) => (l(), f("td", {
6933
- rowspan: "1",
6934
- colspan: "1",
6935
- key: Math.random()
6936
- }))), 128))
6937
- ])
6938
- ], 512), [
6939
- [w0, p.activeIndex === 3]
6723
+ c("tr", QM, [
6724
+ M[19] || (M[19] = c("td", {
6725
+ rowspan: "1",
6726
+ colspan: "1",
6727
+ class: "tr-title"
6728
+ }, [
6729
+ $("Sig Wave"),
6730
+ c("span", { class: "unit" }, "m")
6731
+ ], -1)),
6732
+ (l(!0), f(j, null, G(p.tableData.sigwaveHeight, (L, N) => (l(), f("td", {
6733
+ rowspan: "1",
6734
+ colspan: "1",
6735
+ key: `sigwaveHeight${N}${L}`
6736
+ }, [
6737
+ isNaN(p.tableData.sigwaveDir[N]) ? _("", !0) : (l(), f("span", {
6738
+ key: 0,
6739
+ class: "iconfont icon blue",
6740
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[N]}deg)` })
6741
+ }, "", 4)),
6742
+ c("span", null, T(L), 1)
6743
+ ]))), 128))
6744
+ ]),
6745
+ c("tr", HM, [
6746
+ M[20] || (M[20] = c("td", {
6747
+ rowspan: "1",
6748
+ colspan: "1",
6749
+ class: "tr-title"
6750
+ }, [
6751
+ $("Wind Wave"),
6752
+ c("span", { class: "unit" }, "m")
6753
+ ], -1)),
6754
+ (l(!0), f(j, null, G(p.tableData.windwaveHeight, (L, N) => (l(), f("td", {
6755
+ rowspan: "1",
6756
+ colspan: "1",
6757
+ key: `windwaveHeight${N}${L}`
6758
+ }, [
6759
+ isNaN(p.tableData.sigwaveDir[N]) ? _("", !0) : (l(), f("span", {
6760
+ key: 0,
6761
+ class: "iconfont icon orange",
6762
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[N]}deg)` })
6763
+ }, "", 4)),
6764
+ c("span", null, T(L), 1)
6765
+ ]))), 128))
6766
+ ]),
6767
+ c("tr", _M, [
6768
+ M[21] || (M[21] = c("td", {
6769
+ rowspan: "1",
6770
+ colspan: "1",
6771
+ class: "tr-title"
6772
+ }, [
6773
+ $("Swell"),
6774
+ c("span", { class: "unit" }, "m")
6775
+ ], -1)),
6776
+ (l(!0), f(j, null, G(p.tableData.swellHeight, (L, N) => (l(), f("td", {
6777
+ rowspan: "1",
6778
+ colspan: "1",
6779
+ key: `swellHeight${N}${L}`
6780
+ }, [
6781
+ isNaN(p.tableData.swellDir[N]) ? _("", !0) : (l(), f("span", {
6782
+ key: 0,
6783
+ class: "iconfont icon orange",
6784
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[N]}deg)` })
6785
+ }, "", 4)),
6786
+ c("span", null, T(L), 1)
6787
+ ]))), 128))
6788
+ ]),
6789
+ c("tr", jM, [
6790
+ M[22] || (M[22] = c("td", {
6791
+ rowspan: "1",
6792
+ colspan: "1",
6793
+ class: "tr-title"
6794
+ }, [
6795
+ $("Current"),
6796
+ c("span", { class: "unit" }, "kts")
6797
+ ], -1)),
6798
+ (l(!0), f(j, null, G(p.tableData.currentSpeed, (L, N) => (l(), f("td", {
6799
+ rowspan: "1",
6800
+ colspan: "1",
6801
+ key: `currentSpeed${N}${L}`
6802
+ }, [
6803
+ isNaN(p.tableData.currentDir[N]) ? _("", !0) : (l(), f("span", {
6804
+ key: 0,
6805
+ class: "iconfont icon gray",
6806
+ id: "meteoGrayIcon",
6807
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[N]}deg)` })
6808
+ }, "", 4)),
6809
+ c("span", null, T(L), 1)
6810
+ ]))), 128))
6940
6811
  ])
6941
6812
  ], 512), [
6942
- [w0, ((Y = (U = p.tableData) == null ? void 0 : U.hours) == null ? void 0 : Y.length) > 0]
6813
+ [w0, p.activeIndex === 2]
6943
6814
  ]),
6944
- M[29] || (M[29] = c("div", { class: "more" }, "More >>", -1))
6945
- ]))
6946
- ])
6947
- ], 512), [
6948
- [w0, p.showMeteo]
6815
+ X0(c("table", FM, [
6816
+ c("tr", GM, [
6817
+ M[23] || (M[23] = c("th", {
6818
+ rowspan: "1",
6819
+ colspan: "1",
6820
+ class: "tr-title"
6821
+ }, [
6822
+ $("Hours"),
6823
+ c("span", { class: "unit" }, "(LT)")
6824
+ ], -1)),
6825
+ (l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
6826
+ rowspan: "1",
6827
+ colspan: "1",
6828
+ key: `seahoursL${N}${L}`
6829
+ }, T(o.computeHourL(L)), 1))), 128))
6830
+ ]),
6831
+ c("tr", UM, [
6832
+ M[24] || (M[24] = c("th", {
6833
+ rowspan: "1",
6834
+ colspan: "1",
6835
+ class: "tr-title"
6836
+ }, [
6837
+ $("UTC"),
6838
+ c("span", { class: "unit" })
6839
+ ], -1)),
6840
+ (l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
6841
+ rowspan: "1",
6842
+ colspan: "1",
6843
+ key: `seahoursZ${N}${L}`
6844
+ }, T(o.computeHourZ(L)), 1))), 128))
6845
+ ]),
6846
+ c("tr", KM, [
6847
+ M[25] || (M[25] = c("th", {
6848
+ rowspan: "1",
6849
+ colspan: "1",
6850
+ class: "tr-title"
6851
+ }, null, -1)),
6852
+ (l(!0), f(j, null, G(p.tableData.weatherUrls, (L, N) => (l(), f("th", {
6853
+ rowspan: "1",
6854
+ colspan: "1",
6855
+ key: `seaweatherUrls${N}${L}`
6856
+ }, [
6857
+ C(q, {
6858
+ placement: "top",
6859
+ effect: "light",
6860
+ content: p.tableData.weatherNames[N],
6861
+ "show-after": 500
6862
+ }, {
6863
+ default: e0(() => [
6864
+ L ? (l(), f("img", {
6865
+ key: 0,
6866
+ class: "iconfont weather-icon",
6867
+ src: L
6868
+ }, null, 8, JM)) : _("", !0)
6869
+ ]),
6870
+ _: 2
6871
+ }, 1032, ["content"])
6872
+ ]))), 128))
6873
+ ]),
6874
+ c("tr", YM, [
6875
+ M[26] || (M[26] = c("td", {
6876
+ rowspan: "1",
6877
+ colspan: "1",
6878
+ class: "tr-title"
6879
+ }, [
6880
+ $("SeaLevel"),
6881
+ c("span", { class: "unit" }, "m")
6882
+ ], -1)),
6883
+ (l(!0), f(j, null, G(p.tableData.seaLevel, (L, N) => (l(), f("td", {
6884
+ rowspan: "1",
6885
+ colspan: "1",
6886
+ key: `SeaLevel${N}${L}`
6887
+ }, T(L), 1))), 128))
6888
+ ]),
6889
+ c("tr", VM, [
6890
+ M[27] || (M[27] = c("td", {
6891
+ rowspan: "1",
6892
+ colspan: "1",
6893
+ class: "tr-title"
6894
+ }, [
6895
+ $("SeaTemp"),
6896
+ c("span", { class: "unit" }, "°C")
6897
+ ], -1)),
6898
+ (l(!0), f(j, null, G(p.tableData.seaTemp, (L, N) => (l(), f("td", {
6899
+ rowspan: "1",
6900
+ colspan: "1",
6901
+ key: `SeaTemp${N}${L}`
6902
+ }, T(L), 1))), 128))
6903
+ ]),
6904
+ c("tr", ZM, [
6905
+ M[28] || (M[28] = c("td", {
6906
+ rowspan: "1",
6907
+ colspan: "1",
6908
+ class: "tr-title"
6909
+ }, [
6910
+ c("span", { class: "unit" })
6911
+ ], -1)),
6912
+ (l(!0), f(j, null, G(p.tableData.seaTemp, (L, N) => (l(), f("td", {
6913
+ rowspan: "1",
6914
+ colspan: "1",
6915
+ key: `seaTemp-${N}${L}`
6916
+ }))), 128))
6917
+ ]),
6918
+ c("tr", $M, [
6919
+ M[29] || (M[29] = c("td", {
6920
+ rowspan: "1",
6921
+ colspan: "1",
6922
+ class: "tr-title"
6923
+ }, [
6924
+ c("span", { class: "unit" })
6925
+ ], -1)),
6926
+ (l(!0), f(j, null, G(p.tableData.seaTemp, (L, N) => (l(), f("td", {
6927
+ rowspan: "1",
6928
+ colspan: "1",
6929
+ key: `seaTemp--${N}${L}`
6930
+ }))), 128))
6931
+ ])
6932
+ ], 512), [
6933
+ [w0, p.activeIndex === 3]
6934
+ ])
6935
+ ], 512), [
6936
+ [w0, ((Y = (U = p.tableData) == null ? void 0 : U.hours) == null ? void 0 : Y.length) > 0]
6937
+ ]),
6938
+ c("div", {
6939
+ class: "more",
6940
+ onClick: M[4] || (M[4] = (...L) => o.handleMeteoMore && o.handleMeteoMore(...L))
6941
+ }, "More >>")
6942
+ ]))
6949
6943
  ])
6944
+ ], 512)), [
6945
+ [w0, p.showMeteo]
6950
6946
  ]);
6951
6947
  }
6952
- const zb = /* @__PURE__ */ k(cM, [["render", bb], ["__scopeId", "data-v-a48a15fa"]]), pb = {
6948
+ const zb = /* @__PURE__ */ k(cM, [["render", bb], ["__scopeId", "data-v-a0922901"]]), pb = {
6953
6949
  name: "IdmWarZone",
6954
6950
  props: {
6955
6951
  map: {
@@ -7417,7 +7413,7 @@ const Wb = {
7417
7413
  type: String
7418
7414
  }
7419
7415
  },
7420
- emits: ["port", "handleIdmPoint"],
7416
+ emits: ["handleIdmPoint"],
7421
7417
  data() {
7422
7418
  return {
7423
7419
  source: "port-source",
@@ -7460,9 +7456,6 @@ const Wb = {
7460
7456
  this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new y0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
7461
7457
  }
7462
7458
  },
7463
- handleEmit() {
7464
- this.$emit("port", this.form);
7465
- },
7466
7459
  handleRender() {
7467
7460
  var z;
7468
7461
  this.map ? this.port && (this.map.getSource(this.source) ? (z = this.map) == null || z.getSource(this.source).setData(this.port) : (this.map.addSource(this.source, {
@@ -7514,26 +7507,24 @@ function Bb(z, M, b, O, p, o) {
7514
7507
  }, ""),
7515
7508
  c("div", fb, [
7516
7509
  c("div", ub, [
7517
- M[3] || (M[3] = c("label", null, "Name : ", -1)),
7518
- c("span", {
7519
- onClick: M[1] || (M[1] = (...A) => o.handleEmit && o.handleEmit(...A))
7520
- }, T(p.form.name), 1)
7510
+ M[2] || (M[2] = c("label", null, "Name : ", -1)),
7511
+ c("span", null, T(p.form.name), 1)
7521
7512
  ]),
7522
7513
  c("div", Lb, [
7523
- M[4] || (M[4] = c("label", null, "Position : ", -1)),
7514
+ M[3] || (M[3] = c("label", null, "Position : ", -1)),
7524
7515
  c("span", null, T(o.computeLat(p.form.lat)) + ", " + T(o.computeLng(p.form.lng)), 1)
7525
7516
  ]),
7526
7517
  c("div", Rb, [
7527
- M[5] || (M[5] = c("label", null, "LoCode : ", -1)),
7518
+ M[4] || (M[4] = c("label", null, "LoCode : ", -1)),
7528
7519
  c("span", null, T(p.form.loCode || "-"), 1)
7529
7520
  ]),
7530
7521
  c("div", hb, [
7531
- M[6] || (M[6] = c("label", null, "Region : ", -1)),
7522
+ M[5] || (M[5] = c("label", null, "Region : ", -1)),
7532
7523
  c("span", null, T(p.form.zoneName || "-"), 1)
7533
7524
  ]),
7534
7525
  c("div", mb, [
7535
7526
  c("span", {
7536
- onClick: M[2] || (M[2] = (A) => o.handleClickMeteo(p.form))
7527
+ onClick: M[1] || (M[1] = (A) => o.handleClickMeteo(p.form))
7537
7528
  }, "Meteo Forecast")
7538
7529
  ])
7539
7530
  ])
@@ -7541,7 +7532,7 @@ function Bb(z, M, b, O, p, o) {
7541
7532
  [w0, p.showPort]
7542
7533
  ]);
7543
7534
  }
7544
- const gb = /* @__PURE__ */ k(Wb, [["render", Bb], ["__scopeId", "data-v-e2c5d4d8"]]), Nb = {
7535
+ const gb = /* @__PURE__ */ k(Wb, [["render", Bb], ["__scopeId", "data-v-56879f0c"]]), Nb = {
7545
7536
  name: "IdmLoadLine",
7546
7537
  props: {
7547
7538
  map: {
@@ -8126,7 +8117,7 @@ const Hb = {
8126
8117
  handleZoomEnd() {
8127
8118
  var M;
8128
8119
  const z = this.handleComputeLatLngs();
8129
- (M = this.map) == null || M.getSource(this.source).setData(C.featureCollection(z));
8120
+ (M = this.map) == null || M.getSource(this.source).setData(v.featureCollection(z));
8130
8121
  },
8131
8122
  handleRender() {
8132
8123
  if (this.map) {
@@ -8250,22 +8241,22 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
8250
8241
  if ((M == null ? void 0 : M.split("-").length) === 2) {
8251
8242
  const s = this.geojson.filter((W) => W.id === M.split("-")[0])[0];
8252
8243
  this.pointMarkers[s.id].filter((W) => {
8253
- var h;
8254
- return ((h = W._element) == null ? void 0 : h.id) === M;
8244
+ var m;
8245
+ return ((m = W._element) == null ? void 0 : m.id) === M;
8255
8246
  })[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (A = z.target) == null ? void 0 : A._lngLat) == null ? void 0 : t.lat]);
8256
- let m;
8257
- s.features.forEach((W, h) => {
8247
+ let B;
8248
+ s.features.forEach((W, m) => {
8258
8249
  if (W.geometry.type === "Point" && W.properties.id == M.split("-")[1]) {
8259
- m = h;
8250
+ B = m;
8260
8251
  return;
8261
8252
  }
8262
8253
  });
8263
- const L = s.features.filter((W) => W.geometry.type === "Point");
8254
+ const R = s.features.filter((W) => W.geometry.type === "Point");
8264
8255
  this.handleTmpPointUpdate(
8265
8256
  s,
8266
- L[m - 1],
8267
- { lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat, properties: L[m].properties },
8268
- m === L.length - 1 ? void 0 : L[m + 1]
8257
+ R[B - 1],
8258
+ { lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat, properties: R[B].properties },
8259
+ B === R.length - 1 ? void 0 : R[B + 1]
8269
8260
  );
8270
8261
  }
8271
8262
  },
@@ -8273,13 +8264,13 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
8273
8264
  var b, O, p, o, A, t, q, r, a, n;
8274
8265
  const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
8275
8266
  if ((M == null ? void 0 : M.split("-").length) === 2) {
8276
- const s = this.geojson.filter((L) => L.id === M.split("-")[0])[0];
8277
- this.pointMarkers[s.id].filter((L) => {
8267
+ const s = this.geojson.filter((R) => R.id === M.split("-")[0])[0];
8268
+ this.pointMarkers[s.id].filter((R) => {
8278
8269
  var W;
8279
- return ((W = L._element) == null ? void 0 : W.id) === M;
8270
+ return ((W = R._element) == null ? void 0 : W.id) === M;
8280
8271
  })[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (A = z.target) == null ? void 0 : A._lngLat) == null ? void 0 : t.lat]);
8281
- const m = s.features.filter((L) => L.geometry.type === "Point" && L.properties.id == M.split("-")[1])[0];
8282
- m.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat], s.features = s.features.filter((L) => L.geometry.type === "Point"), this.handlePointUpdate(s);
8272
+ const B = s.features.filter((R) => R.geometry.type === "Point" && R.properties.id == M.split("-")[1])[0];
8273
+ B.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat], s.features = s.features.filter((R) => R.geometry.type === "Point"), this.handlePointUpdate(s);
8283
8274
  }
8284
8275
  },
8285
8276
  handleContextmenu(z) {
@@ -8306,8 +8297,8 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
8306
8297
  q.features = q.features.filter((r) => r.geometry.type === "Point" && r.properties.id !== t[1]), this.handlePointUpdate(q);
8307
8298
  } else if (M !== "marker-label") {
8308
8299
  let t = this.geojson.at(-1);
8309
- t || (t = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(t)), t.features = t.features.filter((r) => r.geometry.type === "Point");
8310
- const q = C.feature(
8300
+ t || (t = v.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(t)), t.features = t.features.filter((r) => r.geometry.type === "Point");
8301
+ const q = v.feature(
8311
8302
  {
8312
8303
  type: "Point",
8313
8304
  coordinates: [z.lngLat.lng, z.lngLat.lat]
@@ -8330,7 +8321,7 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
8330
8321
  b = Z.roundPrecision(b + a, 2);
8331
8322
  let s;
8332
8323
  t.mode === "RL" ? s = Z.convertToMonotonicLng([q, r]) : s = Z.convertToMonotonicLng(g0.interpolateCoordinates(q, r, 200));
8333
- const d = C.lineString(s.map((m) => [m.lng, m.lat]));
8324
+ const d = v.lineString(s.map((B) => [B.lng, B.lat]));
8334
8325
  d.properties.dist = a, d.properties.bearing = n, d.properties.total = b, O.push(d);
8335
8326
  }
8336
8327
  M.push(...O), z.total = b;
@@ -8338,14 +8329,14 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
8338
8329
  return this.handleRender(z), z;
8339
8330
  },
8340
8331
  handleTmpPointUpdate(z, M, b, O) {
8341
- const p = C.featureCollection([]);
8332
+ const p = v.featureCollection([]);
8342
8333
  let o, A;
8343
8334
  if (M) {
8344
8335
  const q = M.properties, r = { lng: M.geometry.coordinates[0], lat: M.geometry.coordinates[1] }, a = { lng: b.lng, lat: b.lat };
8345
8336
  o = g0.calculateDistance(r, a, q.mode === "RL", 2), A = g0.calculateBearing(r, a, q.mode === "RL", 2);
8346
8337
  let n;
8347
8338
  q.mode === "RL" ? n = Z.convertToMonotonicLng([r, a]) : n = Z.convertToMonotonicLng(g0.interpolateCoordinates(r, a, 200));
8348
- const s = C.lineString(n.map((d) => [d.lng, d.lat]));
8339
+ const s = v.lineString(n.map((d) => [d.lng, d.lat]));
8349
8340
  s.properties.dist = o, s.properties.bearing = A, p.features.push(s);
8350
8341
  }
8351
8342
  if (O) {
@@ -8353,7 +8344,7 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
8353
8344
  o = g0.calculateDistance(r, a, q.mode === "RL", 2), A = g0.calculateBearing(r, a, q.mode === "RL", 2);
8354
8345
  let n;
8355
8346
  q.mode === "RL" ? n = Z.convertToMonotonicLng([r, a]) : n = Z.convertToMonotonicLng(g0.interpolateCoordinates(r, a, 200));
8356
- const s = C.lineString(n.map((d) => [d.lng, d.lat]));
8347
+ const s = v.lineString(n.map((d) => [d.lng, d.lat]));
8357
8348
  s.properties.dist = o, s.properties.bearing = A, p.features.push(s);
8358
8349
  }
8359
8350
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(p) : this.map.addSource(this.tmpSource, {
@@ -8404,14 +8395,14 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
8404
8395
  handleMove(z) {
8405
8396
  this.map.getCanvas().style.cursor = "crosshair";
8406
8397
  let M = this.geojson.at(-1);
8407
- M || (M = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M));
8398
+ M || (M = v.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M));
8408
8399
  const b = M.features.filter((O) => O.geometry.type === "Point");
8409
8400
  b != null && b.length && this.handleTmpPointUpdate(M, b.at(-1), { lng: z.lngLat.lng, lat: z.lngLat.lat });
8410
8401
  },
8411
8402
  handleDblClick(z) {
8412
8403
  z.preventDefault();
8413
8404
  let M = this.geojson.at(-1);
8414
- M.closed = !0, this.handleRender(M), M = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M);
8405
+ M.closed = !0, this.handleRender(M), M = v.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M);
8415
8406
  },
8416
8407
  handleRender(z) {
8417
8408
  var M;
@@ -8468,8 +8459,8 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
8468
8459
  handleClear(z, M = !0) {
8469
8460
  var o, A, t, q, r, a, n, s, d;
8470
8461
  const b = `${z.id}-${this.source}`, O = `${z.id}-${this.layer}`, p = `${z.id}-${this.labelLayer}`;
8471
- (o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (A = this.map) != null && A.getLayer(p) && this.map.removeLayer(p), (t = this.map) != null && t.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (r = this.closeMarkers[z.id]) == null || r.remove(), this.closeMarkers[z.id] = void 0, (a = this.pointMarkers[z.id]) == null || a.forEach((m) => {
8472
- m == null || m.remove();
8462
+ (o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (A = this.map) != null && A.getLayer(p) && this.map.removeLayer(p), (t = this.map) != null && t.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (r = this.closeMarkers[z.id]) == null || r.remove(), this.closeMarkers[z.id] = void 0, (a = this.pointMarkers[z.id]) == null || a.forEach((B) => {
8463
+ B == null || B.remove();
8473
8464
  }), this.pointMarkers[z.id] = [], (n = this.tipMarker) == null || n.remove(), this.tipMarker = void 0, M && ((s = this.map) != null && s.getSource(b)) && this.map.removeSource(b), M && ((d = this.map) != null && d.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8474
8465
  }
8475
8466
  }
@@ -8539,7 +8530,7 @@ function Yb(z, M, b, O, p, o) {
8539
8530
  style: O0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
8540
8531
  }, [
8541
8532
  c("div", Jb, [
8542
- w(A, {
8533
+ C(A, {
8543
8534
  placement: "left",
8544
8535
  effect: "light",
8545
8536
  content: "Hifleet",
@@ -8555,7 +8546,7 @@ function Yb(z, M, b, O, p, o) {
8555
8546
  ]),
8556
8547
  _: 1
8557
8548
  }),
8558
- w(A, {
8549
+ C(A, {
8559
8550
  placement: "left",
8560
8551
  effect: "light",
8561
8552
  content: "I4insight",
@@ -8802,53 +8793,53 @@ const bz = {
8802
8793
  const M = (/* @__PURE__ */ new Date()).valueOf();
8803
8794
  let b = 0, O = 0;
8804
8795
  if (this.map) {
8805
- const s = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, d = (o = this.map) == null ? void 0 : o.getBounds(), m = `${d._sw.lng},${d._sw.lat},${d._ne.lng},${d._ne.lat}`;
8796
+ const s = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, d = (o = this.map) == null ? void 0 : o.getBounds(), B = `${d._sw.lng},${d._sw.lat},${d._ne.lng},${d._ne.lat}`;
8806
8797
  if (this.particleFactor) {
8807
- const L = I0.WEATHER_LAYERS.find((W) => {
8808
- var h;
8809
- return ((h = W.peer) == null ? void 0 : h.weight) === this.particleFactor.weight;
8798
+ const R = I0.WEATHER_LAYERS.find((W) => {
8799
+ var m;
8800
+ return ((m = W.peer) == null ? void 0 : m.weight) === this.particleFactor.weight;
8810
8801
  });
8811
- this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight : this.weatherWeight + L.weight : this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight - L.weight : this.weatherWeight;
8802
+ this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & R.weight ? this.weatherWeight : this.weatherWeight + R.weight : this.weatherWeight = this.weatherWeight & R.weight ? this.weatherWeight - R.weight : this.weatherWeight;
8812
8803
  }
8813
8804
  if (this.weatherWeight > 0) {
8814
- let L = this.weatherWeight, W;
8815
- if (z.tropicals || this.weatherWeight & 256 && (W = this.weatherLayers.tropicals, W && (L -= 256, W.version = Math.random() + 1)), L > 0) {
8816
- const h = await N0.get(`${this.gateway}/api/arc/weather/layers/links?l=${L}&v=${this.source}&z=${s}&bbox=${m}&t=${this.ts}`, {
8805
+ let R = this.weatherWeight, W;
8806
+ if (z.tropicals || this.weatherWeight & 256 && (W = this.weatherLayers.tropicals, W && (R -= 256, W.version = Math.random() + 1)), R > 0) {
8807
+ const m = await N0.get(`${this.gateway}/api/arc/weather/layers/links?l=${R}&v=${this.source}&z=${s}&bbox=${B}&t=${this.ts}`, {
8817
8808
  headers: {
8818
8809
  Authorization: this.token || this.defaultMeteoToken
8819
8810
  }
8820
8811
  });
8821
- if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather links elapsed: ", O, ", total: ", b += O), ((A = h == null ? void 0 : h.data) == null ? void 0 : A.code) === 0) {
8822
- const R = (t = h == null ? void 0 : h.data) == null ? void 0 : t.data, y = [];
8823
- for (const N in R)
8824
- N === "ice-edge" && (R[N] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), N !== "tropicals" && y.push(
8825
- N0.get(R[N], {
8812
+ if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather links elapsed: ", O, ", total: ", b += O), ((A = m == null ? void 0 : m.data) == null ? void 0 : A.code) === 0) {
8813
+ const h = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data, X = [];
8814
+ for (const y in h)
8815
+ y === "ice-edge" && (h[y] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), y !== "tropicals" && X.push(
8816
+ N0.get(h[y], {
8826
8817
  headers: {
8827
8818
  Authorization: this.token || this.defaultMeteoToken,
8828
- key: N
8819
+ key: y
8829
8820
  },
8830
- responseType: /\.(jpg|png)$/.test(R[N]) ? "blob" : "json"
8821
+ responseType: /\.(jpg|png)$/.test(h[y]) ? "blob" : "json"
8831
8822
  }).catch((H) => {
8832
- console.log(`[${N}] fetch layer error: ${H}`);
8823
+ console.log(`[${y}] fetch layer error: ${H}`);
8833
8824
  })
8834
8825
  );
8835
- const E = await Promise.all(y);
8836
- this.weatherLayers = {}, E.map((N) => {
8837
- var Y, g, v, A0;
8838
- const H = ((Y = N == null ? void 0 : N.data) == null ? void 0 : Y.data) || (N == null ? void 0 : N.data), U = (v = (g = N == null ? void 0 : N.config) == null ? void 0 : g.headers) == null ? void 0 : v.key;
8826
+ const E = await Promise.all(X);
8827
+ this.weatherLayers = {}, E.map((y) => {
8828
+ var Y, L, N, A0;
8829
+ const H = ((Y = y == null ? void 0 : y.data) == null ? void 0 : Y.data) || (y == null ? void 0 : y.data), U = (N = (L = y == null ? void 0 : y.config) == null ? void 0 : L.headers) == null ? void 0 : N.key;
8839
8830
  U && H && (this.weatherLayers[U] = {
8840
8831
  raw: H,
8841
- type: ((A0 = N == null ? void 0 : N.config) == null ? void 0 : A0.responseType) === "blob" ? "image" : "json",
8832
+ type: ((A0 = y == null ? void 0 : y.config) == null ? void 0 : A0.responseType) === "blob" ? "image" : "json",
8842
8833
  etime: this.ts
8843
8834
  });
8844
- }), R.tropicals && N0.get(R.tropicals, {
8835
+ }), h.tropicals && N0.get(h.tropicals, {
8845
8836
  headers: {
8846
8837
  Authorization: this.token || this.defaultMeteoToken,
8847
8838
  key: "tropicals"
8848
8839
  }
8849
- }).then((N) => {
8850
- var Y, g, v;
8851
- const H = _0.convert2Geojson(((Y = N == null ? void 0 : N.data) == null ? void 0 : Y.data) || (N == null ? void 0 : N.data)), U = (v = (g = N == null ? void 0 : N.config) == null ? void 0 : g.headers) == null ? void 0 : v.key;
8840
+ }).then((y) => {
8841
+ var Y, L, N;
8842
+ const H = _0.convert2Geojson(((Y = y == null ? void 0 : y.data) == null ? void 0 : Y.data) || (y == null ? void 0 : y.data)), U = (N = (L = y == null ? void 0 : y.config) == null ? void 0 : L.headers) == null ? void 0 : N.key;
8852
8843
  this.weatherLayers[U] = {
8853
8844
  data: H,
8854
8845
  active: !0,
@@ -8860,20 +8851,20 @@ const bz = {
8860
8851
  });
8861
8852
  }
8862
8853
  if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather layers elapsed: ", O, ", total: ", b += O), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
8863
- const R = (q = this.weatherLayers["swell-direction"]) == null ? void 0 : q.raw, y = (r = this.weatherLayers["swell-height"]) == null ? void 0 : r.raw;
8854
+ const h = (q = this.weatherLayers["swell-direction"]) == null ? void 0 : q.raw, X = (r = this.weatherLayers["swell-height"]) == null ? void 0 : r.raw;
8864
8855
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
8865
8856
  type: "json",
8866
- direction: R,
8867
- height: { raw: y },
8857
+ direction: h,
8858
+ height: { raw: X },
8868
8859
  etime: this.ts
8869
8860
  };
8870
8861
  }
8871
8862
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
8872
- const R = (a = this.weatherLayers["current-direction"]) == null ? void 0 : a.raw, y = (n = this.weatherLayers["current-speed"]) == null ? void 0 : n.raw;
8863
+ const h = (a = this.weatherLayers["current-direction"]) == null ? void 0 : a.raw, X = (n = this.weatherLayers["current-speed"]) == null ? void 0 : n.raw;
8873
8864
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
8874
8865
  type: "json",
8875
- direction: R,
8876
- speed: { raw: y },
8866
+ direction: h,
8867
+ speed: { raw: X },
8877
8868
  etime: this.ts
8878
8869
  };
8879
8870
  }
@@ -8910,9 +8901,9 @@ const bz = {
8910
8901
  );
8911
8902
  const n = await Promise.all(a);
8912
8903
  this.otherLayers = { enc: A, world12nm: t }, n.map((s) => {
8913
- var L, W, h;
8914
- const d = ((L = s == null ? void 0 : s.data) == null ? void 0 : L.data) || (s == null ? void 0 : s.data), m = (h = (W = s == null ? void 0 : s.config) == null ? void 0 : W.headers) == null ? void 0 : h.key;
8915
- this.otherLayers[m] = d;
8904
+ var R, W, m;
8905
+ const d = ((R = s == null ? void 0 : s.data) == null ? void 0 : R.data) || (s == null ? void 0 : s.data), B = (m = (W = s == null ? void 0 : s.config) == null ? void 0 : W.headers) == null ? void 0 : m.key;
8906
+ this.otherLayers[B] = d;
8916
8907
  });
8917
8908
  }
8918
8909
  } else if (z.dayNight && o & 1024) {
@@ -8933,9 +8924,9 @@ const bz = {
8933
8924
  })
8934
8925
  );
8935
8926
  (await Promise.all(a)).map((s) => {
8936
- var L, W, h;
8937
- const d = ((L = s == null ? void 0 : s.data) == null ? void 0 : L.data) || (s == null ? void 0 : s.data), m = (h = (W = s == null ? void 0 : s.config) == null ? void 0 : W.headers) == null ? void 0 : h.key;
8938
- this.otherLayers[m] = d;
8927
+ var R, W, m;
8928
+ const d = ((R = s == null ? void 0 : s.data) == null ? void 0 : R.data) || (s == null ? void 0 : s.data), B = (m = (W = s == null ? void 0 : s.config) == null ? void 0 : W.headers) == null ? void 0 : m.key;
8929
+ this.otherLayers[B] = d;
8939
8930
  });
8940
8931
  }
8941
8932
  }
@@ -8997,29 +8988,29 @@ const bz = {
8997
8988
  for (const d in this.weatherLayers)
8998
8989
  if (this.weatherLayers[d].active && this.weatherLayers[d].type === "json") {
8999
8990
  this.weatherLayers[d].active = !1, this.weatherLayers[d].version = Math.random() + 1;
9000
- let m = [];
8991
+ let B = [];
9001
8992
  if (["swell", "current"].includes(d)) {
9002
- const L = ((a = this.weatherLayers[d]) == null ? void 0 : a.direction) || {};
9003
- for (const W in L)
8993
+ const R = ((a = this.weatherLayers[d]) == null ? void 0 : a.direction) || {};
8994
+ for (const W in R)
9004
8995
  if (W > t && W < q && (!(p <= this.zoom) || W % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9005
- const h = L[W].lng;
9006
- o > A ? h.forEach((R, y) => {
8996
+ const m = R[W].lng;
8997
+ o > A ? m.forEach((h, X) => {
9007
8998
  var E;
9008
- if ((R >= o && R <= 180 || R >= -180 && R <= A) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9009
- const N = C.point([R, W], {
9010
- val: L[W].val[y],
9011
- spd: (E = L[W].spd) == null ? void 0 : E[y]
8999
+ if ((h >= o && h <= 180 || h >= -180 && h <= A) && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9000
+ const y = v.point([h, W], {
9001
+ val: R[W].val[X],
9002
+ spd: (E = R[W].spd) == null ? void 0 : E[X]
9012
9003
  });
9013
- m.push(N);
9004
+ B.push(y);
9014
9005
  }
9015
- }) : h.forEach((R, y) => {
9006
+ }) : m.forEach((h, X) => {
9016
9007
  var E;
9017
- if (R >= o && R <= A && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9018
- const N = C.point([R, W], {
9019
- val: L[W].val[y],
9020
- spd: (E = L[W].spd) == null ? void 0 : E[y]
9008
+ if (h >= o && h <= A && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9009
+ const y = v.point([h, W], {
9010
+ val: R[W].val[X],
9011
+ spd: (E = R[W].spd) == null ? void 0 : E[X]
9021
9012
  });
9022
- m.push(N);
9013
+ B.push(y);
9023
9014
  }
9024
9015
  });
9025
9016
  }
@@ -9027,21 +9018,21 @@ const bz = {
9027
9018
  const W = this.weatherLayers[d].height;
9028
9019
  if (W) {
9029
9020
  if (!W.data) {
9030
- const h = [];
9031
- for (const R in (n = W.raw) == null ? void 0 : n.LineString) {
9032
- const y = W.raw.LineString[R];
9033
- for (const E of y)
9034
- h.push(
9035
- C.lineString(E, {
9036
- val: Number(R)
9021
+ const m = [];
9022
+ for (const h in (n = W.raw) == null ? void 0 : n.LineString) {
9023
+ const X = W.raw.LineString[h];
9024
+ for (const E of X)
9025
+ m.push(
9026
+ v.lineString(E, {
9027
+ val: Number(h)
9037
9028
  })
9038
9029
  );
9039
- W.data = C.featureCollection(h);
9030
+ W.data = v.featureCollection(m);
9040
9031
  }
9041
9032
  }
9042
9033
  if (W.data) {
9043
- const h = this.handleBboxClip(W.data, O);
9044
- m = m.concat(h);
9034
+ const m = this.handleBboxClip(W.data, O);
9035
+ B = B.concat(m);
9045
9036
  }
9046
9037
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("height elapsed: ", b, ", total: ", M += b);
9047
9038
  }
@@ -9050,126 +9041,126 @@ const bz = {
9050
9041
  const W = this.weatherLayers[d].speed;
9051
9042
  if (W) {
9052
9043
  if (!W.data) {
9053
- const R = [];
9054
- for (const y in (s = W.raw) == null ? void 0 : s.Polygon) {
9055
- const E = W.raw.Polygon[y];
9056
- for (const N of E)
9057
- R.push(
9058
- C.polygon(N, {
9059
- val: Number(y)
9044
+ const h = [];
9045
+ for (const X in (s = W.raw) == null ? void 0 : s.Polygon) {
9046
+ const E = W.raw.Polygon[X];
9047
+ for (const y of E)
9048
+ h.push(
9049
+ v.polygon(y, {
9050
+ val: Number(X)
9060
9051
  })
9061
9052
  );
9062
9053
  }
9063
- W.data = C.featureCollection(R);
9054
+ W.data = v.featureCollection(h);
9064
9055
  }
9065
- const h = p < this.zoom ? W.data.features.filter((R) => R.properties.val > 0.5) : W.data.features;
9066
- m = m.concat(h), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
9056
+ const m = p < this.zoom ? W.data.features.filter((h) => h.properties.val > 0.5) : W.data.features;
9057
+ B = B.concat(m), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
9067
9058
  }
9068
9059
  }
9069
9060
  } else if (d === "wind") {
9070
- const L = this.weatherLayers.wind.raw;
9071
- for (const W in L)
9061
+ const R = this.weatherLayers.wind.raw;
9062
+ for (const W in R)
9072
9063
  if (W > t && W < q && (!(p <= this.zoom) || W % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9073
- const h = L[W].lng;
9074
- o > A ? h.forEach((R, y) => {
9075
- if ((R >= o && R <= 180 || R >= -180 && R <= A) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9076
- const E = C.point([R, W], {
9077
- val: L[W].val[y],
9078
- spd: L[W].spd[y]
9064
+ const m = R[W].lng;
9065
+ o > A ? m.forEach((h, X) => {
9066
+ if ((h >= o && h <= 180 || h >= -180 && h <= A) && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9067
+ const E = v.point([h, W], {
9068
+ val: R[W].val[X],
9069
+ spd: R[W].spd[X]
9079
9070
  });
9080
- m.push(E);
9071
+ B.push(E);
9081
9072
  }
9082
- }) : h.forEach((R, y) => {
9083
- if (R >= o && R <= A && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9084
- const E = C.point([R, W], {
9085
- val: L[W].val[y],
9086
- spd: L[W].spd[y]
9073
+ }) : m.forEach((h, X) => {
9074
+ if (h >= o && h <= A && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9075
+ const E = v.point([h, W], {
9076
+ val: R[W].val[X],
9077
+ spd: R[W].spd[X]
9087
9078
  });
9088
- m.push(E);
9079
+ B.push(E);
9089
9080
  }
9090
9081
  });
9091
9082
  }
9092
9083
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("wind barb elapsed: ", b, ", total: ", M += b);
9093
9084
  } else if (d === "sig-wave-height") {
9094
9085
  if (this.weatherLayers[d].data)
9095
- m = this.weatherLayers[d].data;
9086
+ B = this.weatherLayers[d].data;
9096
9087
  else {
9097
- const L = this.weatherLayers[d].raw;
9098
- if (L) {
9088
+ const R = this.weatherLayers[d].raw;
9089
+ if (R) {
9099
9090
  const W = [];
9100
- for (const h in L.Polygon) {
9101
- const R = L.Polygon[h];
9102
- for (const y of R)
9091
+ for (const m in R.Polygon) {
9092
+ const h = R.Polygon[m];
9093
+ for (const X of h)
9103
9094
  W.push(
9104
- C.polygon(y, {
9105
- val: Number(h)
9095
+ v.polygon(X, {
9096
+ val: Number(m)
9106
9097
  })
9107
9098
  );
9108
9099
  }
9109
- for (const h in L.Point) {
9110
- const R = L.Point[h];
9111
- for (const y of R)
9100
+ for (const m in R.Point) {
9101
+ const h = R.Point[m];
9102
+ for (const X of h)
9112
9103
  W.push(
9113
- ...C.points(y, {
9114
- val: Number(h)
9104
+ ...v.points(X, {
9105
+ val: Number(m)
9115
9106
  }).features
9116
9107
  );
9117
9108
  }
9118
- m = m.concat(W);
9109
+ B = B.concat(W);
9119
9110
  }
9120
9111
  }
9121
9112
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("sigWave elapsed: ", b, ", total: ", M += b);
9122
9113
  } else if (d === "prmsl") {
9123
9114
  if (this.weatherLayers[d].data)
9124
- m = this.weatherLayers[d].data;
9115
+ B = this.weatherLayers[d].data;
9125
9116
  else {
9126
- const L = this.weatherLayers[d].raw;
9127
- if (L) {
9117
+ const R = this.weatherLayers[d].raw;
9118
+ if (R) {
9128
9119
  const W = [];
9129
- for (const h in L.LineString) {
9130
- const R = L.LineString[h];
9131
- for (const y of R)
9120
+ for (const m in R.LineString) {
9121
+ const h = R.LineString[m];
9122
+ for (const X of h)
9132
9123
  W.push(
9133
- C.lineString(y, {
9134
- val: Number(h)
9124
+ v.lineString(X, {
9125
+ val: Number(m)
9135
9126
  })
9136
9127
  );
9137
9128
  }
9138
- for (const h in L.Point)
9139
- L.Point[h].lng.forEach((R, y) => {
9140
- R = Z.convertToStdLng(R), W.push(
9141
- C.point([R, h], {
9142
- val: L.Point[h].val[y],
9143
- type: L.Point[h].type[y]
9129
+ for (const m in R.Point)
9130
+ R.Point[m].lng.forEach((h, X) => {
9131
+ h = Z.convertToStdLng(h), W.push(
9132
+ v.point([h, m], {
9133
+ val: R.Point[m].val[X],
9134
+ type: R.Point[m].type[X]
9144
9135
  })
9145
9136
  );
9146
9137
  });
9147
- m = m.concat(W);
9138
+ B = B.concat(W);
9148
9139
  }
9149
9140
  }
9150
9141
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("prmsl elapsed: ", b, ", total: ", M += b);
9151
9142
  } else if (d === "arctic" || d === "iceberg") {
9152
9143
  if (this.weatherLayers[d].data)
9153
- m = this.weatherLayers[d].data;
9144
+ B = this.weatherLayers[d].data;
9154
9145
  else {
9155
- const L = this.weatherLayers[d].raw;
9156
- if (L) {
9146
+ const R = this.weatherLayers[d].raw;
9147
+ if (R) {
9157
9148
  const W = [];
9158
- for (const h in L.LineString) {
9159
- const R = L.LineString[h];
9160
- for (const y of R)
9149
+ for (const m in R.LineString) {
9150
+ const h = R.LineString[m];
9151
+ for (const X of h)
9161
9152
  W.push(
9162
- C.lineString(y, {
9163
- val: Number(h)
9153
+ v.lineString(X, {
9154
+ val: Number(m)
9164
9155
  })
9165
9156
  );
9166
9157
  }
9167
- m = m.concat(W);
9158
+ B = B.concat(W);
9168
9159
  }
9169
9160
  }
9170
9161
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M);
9171
9162
  }
9172
- console.log(d, " elapsed: ", b, ", total: ", M += b), m.length && (this.weatherLayers[d].data = C.featureCollection(m)), this.weatherLayers[d].active = !0, this.weatherLayers[d].version = Math.random() + 1;
9163
+ console.log(d, " elapsed: ", b, ", total: ", M += b), B.length && (this.weatherLayers[d].data = v.featureCollection(B)), this.weatherLayers[d].active = !0, this.weatherLayers[d].version = Math.random() + 1;
9173
9164
  }
9174
9165
  },
9175
9166
  handleDragEndWithZoom4Image() {
@@ -9181,10 +9172,10 @@ const bz = {
9181
9172
  return z.features.forEach((o) => {
9182
9173
  if (o.geometry.type !== "Point")
9183
9174
  if (O > p) {
9184
- let A = [O, M._sw.lat, 180, M._ne.lat], t = C.bboxClip(o, A);
9185
- t.geometry.coordinates.length && b.push(t), A = [-180, M._sw.lat, p, M._ne.lat], t = C.bboxClip(o, A), t.geometry.coordinates.length && b.push(t);
9175
+ let A = [O, M._sw.lat, 180, M._ne.lat], t = v.bboxClip(o, A);
9176
+ t.geometry.coordinates.length && b.push(t), A = [-180, M._sw.lat, p, M._ne.lat], t = v.bboxClip(o, A), t.geometry.coordinates.length && b.push(t);
9186
9177
  } else {
9187
- const A = [O, M._sw.lat, p, M._ne.lat], t = C.bboxClip(o, A);
9178
+ const A = [O, M._sw.lat, p, M._ne.lat], t = v.bboxClip(o, A);
9188
9179
  t.geometry.coordinates.length && b.push(t);
9189
9180
  }
9190
9181
  else
@@ -9237,8 +9228,8 @@ const bz = {
9237
9228
  }
9238
9229
  },
9239
9230
  handle3dToggle(z) {
9240
- var M, b, O, p, o, A, t, q, r, a, n, s, d, m, L, W, h, R, y, E;
9241
- z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((A = this.viewport) == null ? void 0 : A.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((L = this.map) == null || L.moveLayer((m = this.viewport) == null ? void 0 : m.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (h = this.map) != null && h.getLayer((W = this.viewport) == null ? void 0 : W.particleLayer) && ((R = this.map) != null && R.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((E = this.map) == null || E.moveLayer((y = this.viewport) == null ? void 0 : y.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9231
+ var M, b, O, p, o, A, t, q, r, a, n, s, d, B, R, W, m, h, X, E;
9232
+ z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((A = this.viewport) == null ? void 0 : A.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((R = this.map) == null || R.moveLayer((B = this.viewport) == null ? void 0 : B.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((W = this.viewport) == null ? void 0 : W.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((E = this.map) == null || E.moveLayer((X = this.viewport) == null ? void 0 : X.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9242
9233
  },
9243
9234
  handleParticle(z) {
9244
9235
  this.particleFactor = z, this.weatherLayers[z.key] && (this.weatherLayers[z.key].particle = z.particle), this.activeWeatherLayers.map((O) => {
@@ -9265,10 +9256,10 @@ const bz = {
9265
9256
  className: "map-gl-home"
9266
9257
  };
9267
9258
  function pz(z, M, b, O, p, o) {
9268
- var r0, d0, B0, s0, P, b0, t0, I, z0, W0, l0, L0, o0, e, i, u, B, X, D, V, S, F, T0, S0, k0, Q0, H0;
9269
- const A = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), a = x("IdmSwell"), n = x("IdmPrmsl"), s = x("IdmIceberg"), d = x("IdmTropicals"), m = x("IdmCurrents"), L = x("IdmCurrentParticle"), W = x("IdmWindBarb"), h = x("IdmWindParticle"), R = x("IdmPrecip3h"), y = x("IdmVisibility"), E = x("IdmWaterTemp"), N = x("IdmTemp"), H = x("IdmArctic"), U = x("IdmWarZone"), Y = x("IdmGmdssArea"), g = x("IdmEcaZone"), v = x("IdmAlertZone"), A0 = x("IdmPort"), n0 = x("IdmLoadLine"), R0 = x("IdmTimezone"), i0 = x("IdmVRA"), f0 = x("IdmSpecialArea"), p0 = x("IdmTerminator"), h0 = x("IdmLatLng"), m0 = x("IdmMeasure"), u0 = x("IdmPoint");
9259
+ var r0, d0, B0, s0, P, b0, t0, I, z0, W0, l0, L0, o0, e, i, u, g, w, D, V, S, F, T0, S0, k0, Q0, H0;
9260
+ const A = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), a = x("IdmSwell"), n = x("IdmPrmsl"), s = x("IdmIceberg"), d = x("IdmTropicals"), B = x("IdmCurrents"), R = x("IdmCurrentParticle"), W = x("IdmWindBarb"), m = x("IdmWindParticle"), h = x("IdmPrecip3h"), X = x("IdmVisibility"), E = x("IdmWaterTemp"), y = x("IdmTemp"), H = x("IdmArctic"), U = x("IdmWarZone"), Y = x("IdmGmdssArea"), L = x("IdmEcaZone"), N = x("IdmAlertZone"), A0 = x("IdmPort"), n0 = x("IdmLoadLine"), R0 = x("IdmTimezone"), i0 = x("IdmVRA"), f0 = x("IdmSpecialArea"), p0 = x("IdmTerminator"), h0 = x("IdmLatLng"), m0 = x("IdmMeasure"), u0 = x("IdmPoint");
9270
9261
  return b.map ? (l(), f("div", zz, [
9271
- w(A, Q({
9262
+ C(A, Q({
9272
9263
  ref: "layer",
9273
9264
  map: b.map,
9274
9265
  "toggle-version": b.toggleVersion,
@@ -9290,7 +9281,7 @@ function pz(z, M, b, O, p, o) {
9290
9281
  on3d: o.handle3dToggle,
9291
9282
  onHandleToggleVersion: o.handleToggleVersion
9292
9283
  }), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
9293
- w(t, Q({
9284
+ C(t, Q({
9294
9285
  map: b.map,
9295
9286
  token: b.token,
9296
9287
  enabled: (r0 = p.otherLayers) == null ? void 0 : r0.enc,
@@ -9298,42 +9289,42 @@ function pz(z, M, b, O, p, o) {
9298
9289
  }, z.$attrs, {
9299
9290
  onEnc: M[7] || (M[7] = (a0) => p.enc = a0)
9300
9291
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
9301
- w(q, Q({
9292
+ C(q, Q({
9302
9293
  map: b.map,
9303
9294
  token: b.token,
9304
9295
  "weather-layers": p.weatherLayers,
9305
9296
  enabled: (d0 = p.otherLayers) == null ? void 0 : d0.world12nm
9306
9297
  }, z.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9307
- w(r, Q({
9298
+ C(r, Q({
9308
9299
  map: b.map,
9309
9300
  "sig-wave": (B0 = p.weatherLayers) == null ? void 0 : B0["sig-wave-height"],
9310
9301
  "before-layer": b.beforeLayer,
9311
9302
  activeWeatherLayers: p.activeWeatherLayers
9312
9303
  }, z.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
9313
- w(a, Q({
9304
+ C(a, Q({
9314
9305
  map: b.map,
9315
9306
  swell: (s0 = p.weatherLayers) == null ? void 0 : s0.swell,
9316
9307
  "before-layer": b.beforeLayer,
9317
9308
  activeWeatherLayers: p.activeWeatherLayers
9318
9309
  }, z.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
9319
- w(n, Q({
9310
+ C(n, Q({
9320
9311
  map: b.map,
9321
9312
  prmsl: (P = p.weatherLayers) == null ? void 0 : P.prmsl,
9322
9313
  "before-layer": b.beforeLayer,
9323
9314
  "active-weather-layers": p.activeWeatherLayers
9324
9315
  }, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
9325
- w(s, Q({
9316
+ C(s, Q({
9326
9317
  map: b.map,
9327
9318
  iceberg: (b0 = p.weatherLayers) == null ? void 0 : b0.iceberg,
9328
9319
  "before-layer": b.beforeLayer
9329
9320
  }, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
9330
- w(d, Q({
9321
+ C(d, Q({
9331
9322
  map: b.map,
9332
9323
  date: b.ts,
9333
9324
  tropicals: (t0 = p.weatherLayers) == null ? void 0 : t0.tropicals,
9334
9325
  "before-layer": b.beforeLayer
9335
9326
  }, z.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
9336
- w(m, Q({
9327
+ C(B, Q({
9337
9328
  map: b.map,
9338
9329
  "map-projection": p.mapProjection,
9339
9330
  current: (I = p.weatherLayers) == null ? void 0 : I.current,
@@ -9347,13 +9338,13 @@ function pz(z, M, b, O, p, o) {
9347
9338
  onParticle: o.handleParticle,
9348
9339
  onHandleToggleVersion: o.handleToggleVersion
9349
9340
  }), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
9350
- w(L, Q({
9341
+ C(R, Q({
9351
9342
  viewport: p.viewport,
9352
9343
  factor: (z0 = p.weatherLayers) == null ? void 0 : z0["current-particle"],
9353
9344
  "before-layer": b.beforeLayer,
9354
9345
  "toggle-version": b.toggleVersion
9355
9346
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9356
- w(W, Q({
9347
+ C(W, Q({
9357
9348
  ref: "windBarb",
9358
9349
  map: b.map,
9359
9350
  "map-projection": p.mapProjection,
@@ -9368,101 +9359,101 @@ function pz(z, M, b, O, p, o) {
9368
9359
  "weather-layers": p.weatherLayers,
9369
9360
  onParticle: o.handleParticle
9370
9361
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
9371
- w(h, Q({
9362
+ C(m, Q({
9372
9363
  viewport: p.viewport,
9373
9364
  factor: (L0 = p.weatherLayers) == null ? void 0 : L0["wind-particle"],
9374
9365
  "before-layer": b.beforeLayer,
9375
9366
  "toggle-version": b.toggleVersion
9376
9367
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9377
- w(R, Q({
9368
+ C(h, Q({
9378
9369
  viewport: p.viewport,
9379
9370
  factor: (o0 = p.weatherLayers) == null ? void 0 : o0.precip3h,
9380
9371
  "before-layer": b.beforeLayer,
9381
9372
  "toggle-version": b.toggleVersion
9382
9373
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9383
- w(y, Q({
9374
+ C(X, Q({
9384
9375
  viewport: p.viewport,
9385
9376
  factor: (e = p.weatherLayers) == null ? void 0 : e.visibility,
9386
9377
  "before-layer": b.beforeLayer,
9387
9378
  "toggle-version": b.toggleVersion
9388
9379
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9389
- w(E, Q({
9380
+ C(E, Q({
9390
9381
  viewport: p.viewport,
9391
9382
  factor: (i = p.weatherLayers) == null ? void 0 : i["water-temp"],
9392
9383
  "before-layer": b.beforeLayer,
9393
9384
  "toggle-version": b.toggleVersion
9394
9385
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9395
- w(N, Q({
9386
+ C(y, Q({
9396
9387
  viewport: p.viewport,
9397
9388
  factor: (u = p.weatherLayers) == null ? void 0 : u.temp,
9398
9389
  "before-layer": b.beforeLayer,
9399
9390
  "toggle-version": b.toggleVersion
9400
9391
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9401
- w(H, Q({
9392
+ C(H, Q({
9402
9393
  viewport: p.viewport,
9403
- factor: (B = p.weatherLayers) == null ? void 0 : B.arctic,
9394
+ factor: (g = p.weatherLayers) == null ? void 0 : g.arctic,
9404
9395
  "before-layer": b.beforeLayer,
9405
9396
  "toggle-version": b.toggleVersion
9406
9397
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9407
- w(U, Q({
9398
+ C(U, Q({
9408
9399
  map: b.map,
9409
- zone: (X = p.otherLayers) == null ? void 0 : X["war-zones"],
9400
+ zone: (w = p.otherLayers) == null ? void 0 : w["war-zones"],
9410
9401
  "before-layer": b.beforeLayer
9411
9402
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9412
- w(Y, Q({
9403
+ C(Y, Q({
9413
9404
  map: b.map,
9414
9405
  area: (D = p.otherLayers) == null ? void 0 : D["gmdss-areas"],
9415
9406
  "before-layer": b.beforeLayer
9416
9407
  }, z.$attrs), null, 16, ["map", "area", "before-layer"]),
9417
- w(g, Q({
9408
+ C(L, Q({
9418
9409
  map: b.map,
9419
9410
  zone: (V = p.otherLayers) == null ? void 0 : V["eca-zones"],
9420
9411
  "before-layer": b.beforeLayer
9421
9412
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9422
- w(v, Q({
9413
+ C(N, Q({
9423
9414
  map: b.map,
9424
9415
  zone: (S = p.otherLayers) == null ? void 0 : S["alert-zones"],
9425
9416
  "before-layer": b.beforeLayer
9426
9417
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9427
- w(A0, Q({
9418
+ C(A0, Q({
9428
9419
  map: b.map,
9429
9420
  port: (F = p.otherLayers) == null ? void 0 : F.ports,
9430
9421
  "before-layer": b.beforeLayer
9431
9422
  }, z.$attrs, { onHandleIdmPoint: o.handleIdmPoint }), null, 16, ["map", "port", "before-layer", "onHandleIdmPoint"]),
9432
- w(n0, Q({
9423
+ C(n0, Q({
9433
9424
  map: b.map,
9434
9425
  line: (T0 = p.otherLayers) == null ? void 0 : T0["load-lines"],
9435
9426
  "before-layer": b.beforeLayer
9436
9427
  }, z.$attrs), null, 16, ["map", "line", "before-layer"]),
9437
- w(R0, Q({
9428
+ C(R0, Q({
9438
9429
  map: b.map,
9439
9430
  zone: (S0 = p.otherLayers) == null ? void 0 : S0["time-zones"],
9440
9431
  "before-layer": b.beforeLayer
9441
9432
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9442
- w(i0, Q({
9433
+ C(i0, Q({
9443
9434
  map: b.map,
9444
9435
  area: (k0 = p.otherLayers) == null ? void 0 : k0["voluntary-reporting-area"],
9445
9436
  "before-layer": b.beforeLayer
9446
9437
  }, z.$attrs), null, 16, ["map", "area", "before-layer"]),
9447
- w(f0, Q({
9438
+ C(f0, Q({
9448
9439
  map: b.map,
9449
9440
  area: (Q0 = p.otherLayers) == null ? void 0 : Q0["special-area"],
9450
9441
  "before-layer": b.beforeLayer
9451
9442
  }, z.$attrs), null, 16, ["map", "area", "before-layer"]),
9452
- w(p0, Q({
9443
+ C(p0, Q({
9453
9444
  map: b.map,
9454
9445
  area: (H0 = p.otherLayers) == null ? void 0 : H0["day-night"]
9455
9446
  }, z.$attrs), null, 16, ["map", "area"]),
9456
- w(h0, Q({
9447
+ C(h0, Q({
9457
9448
  map: b.map,
9458
9449
  show: p.showCoord,
9459
9450
  "toggle-version": b.toggleVersion
9460
9451
  }, z.$attrs), null, 16, ["map", "show", "toggle-version"]),
9461
- w(m0, Q({
9452
+ C(m0, Q({
9462
9453
  map: b.map,
9463
9454
  show: p.showMeasure
9464
9455
  }, z.$attrs), null, 16, ["map", "show"]),
9465
- w(u0, Q({
9456
+ C(u0, Q({
9466
9457
  ref: "idmPoint",
9467
9458
  map: b.map,
9468
9459
  show: p.showPoint,