@idmwx/idmui-gl3 3.6.6 → 3.6.8

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
@@ -1,14 +1,14 @@
1
1
  var rt = Object.defineProperty;
2
2
  var ot = (t, e, a) => e in t ? rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
- var A = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
4
- import { LayerHelper as Ue, CompanyHelper as Me, LngLatHelper as te, convertToMonotonicLng2 as st, calculateDistance as je, calculateBearing as Fe, convertToMonotonicLng as we, interpolateCoordinates as Ve, convertToStandardLng as Re } from "@idmwx/idmwx-base";
5
- import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as Ae, renderList as De, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as N, pushScopeId as G, popScopeId as H, withDirectives as $e, vShow as Be, createStaticVNode as lt, mergeProps as E } from "vue";
3
+ var R = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
4
+ import { LayerHelper as Ve, CompanyHelper as Me, LngLatHelper as te, convertToMonotonicLng2 as st, calculateDistance as Oe, calculateBearing as je, convertToMonotonicLng as we, interpolateCoordinates as Fe, convertToStandardLng as Re } from "@idmwx/idmwx-base";
5
+ import { resolveComponent as z, openBlock as w, createElementBlock as L, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as Ae, renderList as De, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as N, pushScopeId as U, popScopeId as G, withDirectives as $e, vShow as Be, createStaticVNode as lt, mergeProps as I } from "vue";
6
6
  import * as C from "@turf/turf";
7
7
  import ct from "@mapbox/sphericalmercator";
8
8
  import ee from "moment";
9
- import ne from "mapbox-gl";
9
+ import se from "mapbox-gl";
10
10
  import { TropicalHelper as et } from "@idm-plugin/geo";
11
- import se from "axios";
11
+ import oe from "axios";
12
12
  const T = (t, e) => {
13
13
  const a = t.__vccOpts || t;
14
14
  for (const [r, i] of e)
@@ -46,8 +46,8 @@ const T = (t, e) => {
46
46
  autoActive: !0,
47
47
  otherLayers: [],
48
48
  layers: {
49
- weather: [...Ue.WEATHER_LAYERS],
50
- other: [...Ue.OTHER_LAYERS]
49
+ weather: [...Ve.WEATHER_LAYERS],
50
+ other: [...Ve.OTHER_LAYERS]
51
51
  },
52
52
  weatherLayersCache: "weatherLayersCache",
53
53
  autoActiveCache: "autoActiveCache",
@@ -141,7 +141,7 @@ const T = (t, e) => {
141
141
  this.source = t, this.handleConfirm();
142
142
  }
143
143
  }
144
- }, Z = (t) => (G("data-v-cb712a44"), t = t(), H(), t), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
144
+ }, Z = (t) => (U("data-v-cb712a44"), t = t(), G(), t), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
145
145
  mt
146
146
  ], yt = { class: "bar-item tool-bars" }, ft = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
147
147
  ft
@@ -159,7 +159,7 @@ const T = (t, e) => {
159
159
  }, It = { style: { "font-size": "12px" } }, Et = { class: "layers-body" }, Rt = ["onClick"], At = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Dt = { class: "other-layers" }, Mt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1)), $t = { class: "layers-body" }, Bt = ["onClick"], Nt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Wt = { class: "source-layers" }, Ot = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1)), jt = { class: "layers-body model-box" };
160
160
  function Ft(t, e, a, r, i, o) {
161
161
  const n = z("ElScrollbar");
162
- return L(), x("div", dt, [
162
+ return w(), L("div", dt, [
163
163
  l("div", {
164
164
  class: "menu-bar-box",
165
165
  style: j({ top: a.top + 10 + "px", right: i.right + "px" })
@@ -198,7 +198,7 @@ function Ft(t, e, a, r, i, o) {
198
198
  class: "active-layers",
199
199
  style: j({ right: i.right + "px", bottom: "100px" })
200
200
  }, [
201
- (L(!0), x(Ae, null, De(i.weatherLayers, (s) => (L(), x("div", {
201
+ (w(!0), L(Ae, null, De(i.weatherLayers, (s) => (w(), L("div", {
202
202
  key: s.key,
203
203
  class: M(o.computeLayerClass(s, i.activeWeatherLayers)),
204
204
  onClick: (c) => o.handleActiveWeatherLayerPick(s)
@@ -229,10 +229,10 @@ function Ft(t, e, a, r, i, o) {
229
229
  ])
230
230
  ]),
231
231
  l("div", Et, [
232
- (L(!0), x(Ae, null, De(i.layers.weather, (s) => (L(), x(Ae, {
232
+ (w(!0), L(Ae, null, De(i.layers.weather, (s) => (w(), L(Ae, {
233
233
  key: s.key
234
234
  }, [
235
- s.hide ? N("", !0) : (L(), x("div", {
235
+ s.hide ? N("", !0) : (w(), L("div", {
236
236
  key: 0,
237
237
  class: M(o.computeLayerClass(s, i.weatherLayers)),
238
238
  onClick: (c) => o.handleWeatherLayerPick(s)
@@ -246,7 +246,7 @@ function Ft(t, e, a, r, i, o) {
246
246
  l("div", Dt, [
247
247
  Mt,
248
248
  l("div", $t, [
249
- (L(!0), x(Ae, null, De(i.layers.other, (s) => (L(), x("div", {
249
+ (w(!0), L(Ae, null, De(i.layers.other, (s) => (w(), L("div", {
250
250
  key: s.key,
251
251
  class: M(o.computeLayerClass(s, i.otherLayers)),
252
252
  onClick: (c) => o.handleOtherLayerPick(s)
@@ -456,7 +456,7 @@ const Ut = {
456
456
  };
457
457
  function qt(t, e, a, r, i, o) {
458
458
  var n;
459
- return (n = a.wind) != null && n.active ? (L(), x("div", Gt, [
459
+ return (n = a.wind) != null && n.active ? (w(), L("div", Gt, [
460
460
  l("div", {
461
461
  class: "flex-center tool-bars",
462
462
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
@@ -465,18 +465,18 @@ function qt(t, e, a, r, i, o) {
465
465
  class: "flex-start",
466
466
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
467
467
  }, [
468
- a.showParticle ? (L(), x("i", Ht, "")) : (L(), x("i", Zt, "")),
468
+ a.showParticle ? (w(), L("i", Ht, "")) : (w(), L("i", Zt, "")),
469
469
  l("span", {
470
470
  class: M(a.showParticle ? "active" : "")
471
471
  }, "Wind Particles", 2)
472
472
  ]),
473
- a.showParticle ? (L(), x("div", {
473
+ a.showParticle ? (w(), L("div", {
474
474
  key: 0,
475
475
  class: "flex-start",
476
476
  style: { "margin-left": "16px" },
477
477
  onClick: e[1] || (e[1] = (s) => i.showFeather = !i.showFeather)
478
478
  }, [
479
- i.showFeather ? (L(), x("i", Xt, "")) : (L(), x("i", Jt, "")),
479
+ i.showFeather ? (w(), L("i", Xt, "")) : (w(), L("i", Jt, "")),
480
480
  l("span", {
481
481
  class: M(i.showFeather ? "active" : "")
482
482
  }, "Wind Feather", 2)
@@ -485,17 +485,17 @@ function qt(t, e, a, r, i, o) {
485
485
  ])) : N("", !0);
486
486
  }
487
487
  const Yt = /* @__PURE__ */ T(Ut, [["render", qt], ["__scopeId", "data-v-f285f28f"]]);
488
- class Ge {
488
+ class Ue {
489
489
  constructor(e) {
490
- A(this, "map");
491
- A(this, "mercator");
492
- A(this, "rampColorLayer");
493
- A(this, "rampColorSource");
494
- A(this, "particleLayer");
495
- A(this, "particleSource");
496
- A(this, "rampColorCanvas");
497
- A(this, "particleCanvas");
498
- A(this, "ratio");
490
+ R(this, "map");
491
+ R(this, "mercator");
492
+ R(this, "rampColorLayer");
493
+ R(this, "rampColorSource");
494
+ R(this, "particleLayer");
495
+ R(this, "particleSource");
496
+ R(this, "rampColorCanvas");
497
+ R(this, "particleCanvas");
498
+ R(this, "ratio");
499
499
  this.map = e, this.mercator = new ct(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
500
500
  }
501
501
  /**
@@ -707,9 +707,9 @@ class ve {
707
707
  const u = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
708
708
  a.uniform2f(u, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
709
709
  }
710
- const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
710
+ const m = e.getBoundPixel(), g = e.map.getZoom() + 1, y = e.getWorldCopy(m, g);
711
711
  for (const u of y) {
712
- const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, w = u[2] * e.ratio, [k, _, I, D] = [v, w + v, g, w + g], $ = new Float32Array([k, I, _, I, k, D, k, D, _, I, _, D]);
712
+ const v = (u[0] - m[0]) * e.ratio, b = (u[1] - m[3]) * e.ratio, x = u[2] * e.ratio, [k, _, A, D] = [v, x + v, b, x + b], $ = new Float32Array([k, A, _, A, k, D, k, D, _, A, _, D]);
713
713
  a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER, $, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
714
714
  }
715
715
  } catch (d) {
@@ -761,7 +761,7 @@ class ve {
761
761
  class B {
762
762
  }
763
763
  // 顶点渲染
764
- A(B, "vertexSchema", `
764
+ R(B, "vertexSchema", `
765
765
  //canvas 坐标系上的坐标 (x, y)
766
766
  attribute vec2 a_position; //像素坐标
767
767
  attribute vec2 a_texCoord; //纹理坐标
@@ -776,7 +776,7 @@ A(B, "vertexSchema", `
776
776
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
777
777
  v_texCoord = a_texCoord;
778
778
  }`), // 类如风、流等u v双变量片元渲染
779
- A(B, "uvFragmentSchema", `
779
+ R(B, "uvFragmentSchema", `
780
780
  precision mediump float;
781
781
  uniform sampler2D u_image;
782
782
  uniform vec2 u_range_u_v;
@@ -795,7 +795,7 @@ A(B, "uvFragmentSchema", `
795
795
 
796
796
  gl_FragColor = color;
797
797
  }`), // 类如浪、气压等单变量片元渲染
798
- A(B, "fragmentSchema", `
798
+ R(B, "fragmentSchema", `
799
799
  precision mediump float;
800
800
  uniform sampler2D u_image; // 灰度
801
801
  uniform sampler2D u_color; // 色值映射
@@ -808,7 +808,7 @@ A(B, "fragmentSchema", `
808
808
  }`);
809
809
  class V {
810
810
  }
811
- A(V, "vertexSchema", `
811
+ R(V, "vertexSchema", `
812
812
  precision mediump float;
813
813
 
814
814
  attribute float a_index; // 索引
@@ -832,7 +832,7 @@ A(V, "vertexSchema", `
832
832
  gl_PointSize = 1.0;
833
833
  // gl_PointSize = u_point;
834
834
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
835
- }`), A(V, "fragmentSchema", `
835
+ }`), R(V, "fragmentSchema", `
836
836
  precision mediump float;
837
837
 
838
838
  uniform sampler2D u_factor;
@@ -854,7 +854,7 @@ A(V, "vertexSchema", `
854
854
 
855
855
  float f = 1.0 - uv.b;
856
856
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
857
- }`), A(V, "quadVertSchema", `
857
+ }`), R(V, "quadVertSchema", `
858
858
  precision mediump float;
859
859
 
860
860
  attribute vec2 a_pos;
@@ -864,7 +864,7 @@ A(V, "vertexSchema", `
864
864
  void main() {
865
865
  v_tex_pos = a_pos;
866
866
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
867
- }`), A(V, "screenFragmentSchema", `
867
+ }`), R(V, "screenFragmentSchema", `
868
868
  precision mediump float;
869
869
 
870
870
  uniform sampler2D u_screen;
@@ -876,7 +876,7 @@ A(V, "vertexSchema", `
876
876
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
877
877
  // a hack to guarantee opacity fade out even with a value close to 1.0
878
878
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
879
- }`), A(V, "updateFragmentSchema", `
879
+ }`), R(V, "updateFragmentSchema", `
880
880
  precision mediump float;
881
881
 
882
882
  uniform sampler2D u_particles;
@@ -957,12 +957,12 @@ A(V, "vertexSchema", `
957
957
  }`);
958
958
  class Qt {
959
959
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
960
- A(this, "token");
961
- A(this, "mapboxCustomer");
962
- A(this, "i4");
963
- A(this, "hi");
964
- A(this, "td");
965
- A(this, "windy");
960
+ R(this, "token");
961
+ R(this, "mapboxCustomer");
962
+ R(this, "i4");
963
+ R(this, "hi");
964
+ R(this, "td");
965
+ R(this, "windy");
966
966
  this.token = e, this.mapboxCustomer = {
967
967
  source: this.initialOnlineStyle().sources.composite,
968
968
  layers: {
@@ -2566,7 +2566,7 @@ const Kt = {
2566
2566
  type: Object
2567
2567
  },
2568
2568
  viewport: {
2569
- type: Ge
2569
+ type: Ue
2570
2570
  },
2571
2571
  bottom: {
2572
2572
  type: String,
@@ -2721,7 +2721,7 @@ const Kt = {
2721
2721
  });
2722
2722
  }
2723
2723
  }
2724
- }, le = (t) => (G("data-v-41a686d0"), t = t(), H(), t), ea = { key: 0 }, ta = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), aa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), ia = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), ra = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), oa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), sa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), na = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), la = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ca = [
2724
+ }, ne = (t) => (U("data-v-41a686d0"), t = t(), G(), t), ea = { key: 0 }, ta = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "kts", -1)), aa = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "0", -1)), ia = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "5", -1)), ra = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "10", -1)), oa = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "20", -1)), sa = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "30", -1)), na = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "40", -1)), la = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "60", -1)), ca = [
2725
2725
  ta,
2726
2726
  aa,
2727
2727
  ia,
@@ -2733,7 +2733,7 @@ const Kt = {
2733
2733
  ];
2734
2734
  function ha(t, e, a, r, i, o) {
2735
2735
  var n;
2736
- return (n = a.factor) != null && n.active ? (L(), x("div", ea, [
2736
+ return (n = a.factor) != null && n.active ? (w(), L("div", ea, [
2737
2737
  l("div", {
2738
2738
  class: "legend-bars flex-center",
2739
2739
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
@@ -2921,7 +2921,7 @@ const pa = {
2921
2921
  };
2922
2922
  function ba(t, e, a, r, i, o) {
2923
2923
  var n;
2924
- return (n = a.current) != null && n.active ? (L(), x("div", ma, [
2924
+ return (n = a.current) != null && n.active ? (w(), L("div", ma, [
2925
2925
  l("div", {
2926
2926
  class: "flex-center tool-bars",
2927
2927
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
@@ -2930,18 +2930,18 @@ function ba(t, e, a, r, i, o) {
2930
2930
  class: "flex-start",
2931
2931
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
2932
2932
  }, [
2933
- a.showParticle ? (L(), x("i", ua, "")) : (L(), x("i", ya, "")),
2933
+ a.showParticle ? (w(), L("i", ua, "")) : (w(), L("i", ya, "")),
2934
2934
  l("span", {
2935
2935
  class: M(a.showParticle ? "active" : "")
2936
2936
  }, "Current Particles", 2)
2937
2937
  ]),
2938
- a.showParticle ? (L(), x("div", {
2938
+ a.showParticle ? (w(), L("div", {
2939
2939
  key: 0,
2940
2940
  class: "flex-start",
2941
2941
  style: { "margin-left": "16px" },
2942
2942
  onClick: e[1] || (e[1] = (s) => i.showJson = !i.showJson)
2943
2943
  }, [
2944
- i.showJson ? (L(), x("i", fa, "")) : (L(), x("i", ga, "")),
2944
+ i.showJson ? (w(), L("i", fa, "")) : (w(), L("i", ga, "")),
2945
2945
  l("span", {
2946
2946
  class: M(i.showJson ? "active" : "")
2947
2947
  }, "Current", 2)
@@ -2957,7 +2957,7 @@ const _a = {
2957
2957
  type: Object
2958
2958
  },
2959
2959
  viewport: {
2960
- type: Ge
2960
+ type: Ue
2961
2961
  },
2962
2962
  // right: {
2963
2963
  // type: String,
@@ -3111,7 +3111,7 @@ const _a = {
3111
3111
  });
3112
3112
  }
3113
3113
  }
3114
- }, _e = (t) => (G("data-v-a182db4f"), t = t(), H(), t), wa = { key: 0 }, La = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "kts", -1)), xa = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "0", -1)), Ca = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Sa = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "0.8", -1)), ka = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "1.6", -1)), za = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "2", -1)), Pa = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ta = [
3114
+ }, _e = (t) => (U("data-v-a182db4f"), t = t(), G(), t), wa = { key: 0 }, La = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "kts", -1)), xa = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "0", -1)), Ca = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Sa = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "0.8", -1)), ka = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "1.6", -1)), za = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "2", -1)), Pa = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ta = [
3115
3115
  La,
3116
3116
  xa,
3117
3117
  Ca,
@@ -3122,7 +3122,7 @@ const _a = {
3122
3122
  ];
3123
3123
  function Ia(t, e, a, r, i, o) {
3124
3124
  var n;
3125
- return (n = a.factor) != null && n.active ? (L(), x("div", wa, [
3125
+ return (n = a.factor) != null && n.active ? (w(), L("div", wa, [
3126
3126
  l("div", {
3127
3127
  class: "legend-bars flex-center",
3128
3128
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
@@ -3241,7 +3241,7 @@ const Ea = /* @__PURE__ */ T(_a, [["render", Ia], ["__scopeId", "data-v-a182db4f
3241
3241
  }
3242
3242
  };
3243
3243
  function Aa(t, e, a, r, i, o) {
3244
- return L(), x("div");
3244
+ return w(), L("div");
3245
3245
  }
3246
3246
  const Da = /* @__PURE__ */ T(Ra, [["render", Aa]]), Ma = {
3247
3247
  name: "IdmSwell",
@@ -3382,7 +3382,7 @@ const Da = /* @__PURE__ */ T(Ra, [["render", Aa]]), Ma = {
3382
3382
  }
3383
3383
  };
3384
3384
  function $a(t, e, a, r, i, o) {
3385
- return L(), x("div");
3385
+ return w(), L("div");
3386
3386
  }
3387
3387
  const Ba = /* @__PURE__ */ T(Ma, [["render", $a]]), Na = {
3388
3388
  name: "IdmPrmsl",
@@ -3513,7 +3513,7 @@ const Ba = /* @__PURE__ */ T(Ma, [["render", $a]]), Na = {
3513
3513
  }
3514
3514
  };
3515
3515
  function Wa(t, e, a, r, i, o) {
3516
- return L(), x("div");
3516
+ return w(), L("div");
3517
3517
  }
3518
3518
  const Oa = /* @__PURE__ */ T(Na, [["render", Wa]]), ja = {
3519
3519
  name: "IdmIceberg",
@@ -3573,7 +3573,7 @@ const Oa = /* @__PURE__ */ T(Na, [["render", Wa]]), ja = {
3573
3573
  }
3574
3574
  };
3575
3575
  function Fa(t, e, a, r, i, o) {
3576
- return L(), x("div");
3576
+ return w(), L("div");
3577
3577
  }
3578
3578
  const Va = /* @__PURE__ */ T(ja, [["render", Fa]]);
3579
3579
  const Ua = {
@@ -3658,12 +3658,12 @@ const Ua = {
3658
3658
  var p, f;
3659
3659
  return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((f = d.properties) == null ? void 0 : f.type) === "forecast";
3660
3660
  })[0]) == null || h.properties.model, c.forEach((d, p) => {
3661
- var f, m, b, y, u, v;
3662
- ((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
3661
+ var f, m, g, y, u, v;
3662
+ ((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
3663
3663
  }), c.map((d, p) => {
3664
- var f, m, b, y, u, v, g, w;
3665
- if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3666
- const k = ((w = (g = d.properties) == null ? void 0 : g.format) == null ? void 0 : w.slice(7, 12)) === ee().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
3664
+ var f, m, g, y, u, v, b, x;
3665
+ if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3666
+ const k = ((x = (b = d.properties) == null ? void 0 : b.format) == null ? void 0 : x.slice(7, 12)) === ee().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
3667
3667
  d.properties.showHistoryLabel = k || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
3668
3668
  }
3669
3669
  return d;
@@ -3788,7 +3788,7 @@ const Ua = {
3788
3788
  "#fff",
3789
3789
  "noaa-ep",
3790
3790
  "#fff",
3791
- "#fff"
3791
+ "#000"
3792
3792
  ],
3793
3793
  "text-opacity": 1,
3794
3794
  "text-halo-color": [
@@ -3928,21 +3928,8 @@ const Ua = {
3928
3928
  }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
3929
3929
  }
3930
3930
  if (this.handleDrawCircle(), !((d = this.tropicals) != null && d.cached)) {
3931
- const p = et.interpolate(this.tropicals, 1), f = JSON.parse(JSON.stringify(p)), m = [];
3932
- f.forEach((b) => {
3933
- var y, u, v;
3934
- (y = b.properties) != null && y.name && !m.includes((u = b.properties) == null ? void 0 : u.name) && m.push((v = b.properties) == null ? void 0 : v.name);
3935
- }), m.forEach((b) => {
3936
- var v;
3937
- const u = (v = f.filter((g) => {
3938
- var w;
3939
- return ((w = g.properties) == null ? void 0 : w.name) === b;
3940
- })[0]) == null ? void 0 : v.properties.model;
3941
- f.map((g, w) => {
3942
- var k, _;
3943
- return ((k = g.properties) == null ? void 0 : k.name) === b && (g.properties.disabled = ((_ = g.properties) == null ? void 0 : _.model) !== u), g;
3944
- });
3945
- }), this.interpolateData = JSON.parse(JSON.stringify(f));
3931
+ const p = et.interpolate(this.tropicals, 1);
3932
+ this.interpolateData = JSON.parse(JSON.stringify(p));
3946
3933
  }
3947
3934
  this.handleDateChange();
3948
3935
  }
@@ -3952,11 +3939,11 @@ const Ua = {
3952
3939
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((e) => e == null ? void 0 : e.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));
3953
3940
  },
3954
3941
  handleDateChange() {
3955
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, I, D, $, W, O, U, ae, de, pe, me, ue, ye;
3942
+ var t, e, a, r, i, o, n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, A, D, $, W, O, H, he, de, pe, me, ue, ye;
3956
3943
  if ((t = this.interpolateMarkers) == null || t.forEach((X) => X == null ? void 0 : X.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3957
- const X = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((R) => R.properties.date === X.format() && !R.properties.disabled), fe = this.handleComputePolygons(q), Y = C.featureCollection([...q]);
3958
- fe.forEach((R) => {
3959
- Y.features.push(R);
3944
+ const X = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((E) => E.properties.date === X.format() && !E.properties.disabled), fe = this.handleComputePolygons(q), Y = C.featureCollection([...q]);
3945
+ fe.forEach((E) => {
3946
+ Y.features.push(E);
3960
3947
  }), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(Y) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3961
3948
  type: "geojson",
3962
3949
  data: Y
@@ -3971,10 +3958,10 @@ const Ua = {
3971
3958
  "line-width": 2
3972
3959
  }
3973
3960
  })), this.interpolateMarkers = [];
3974
- for (const R of q)
3975
- if (!R.properties.disabled) {
3961
+ for (const E of q)
3962
+ if (!E.properties.disabled) {
3976
3963
  let F = "#f44336";
3977
- ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? F = "#03f869" : ((h = (c = R.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((p = (d = R.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) < 24.5 ? F = "#f2f202" : ((m = (f = R.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) >= 24.5 && ((y = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) < 32.7 ? F = "#ff9100" : ((v = (u = R.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : w.spd) < 41.5 ? F = "#f44336" : ((_ = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (I = R.properties) == null ? void 0 : I.wind) == null ? void 0 : D.spd) < 51 ? F = "#c604a4" : ((W = ($ = R.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) >= 51 ? F = "#6b05bb" : F = "#f44336";
3964
+ ((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? F = "#03f869" : ((h = (c = E.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) < 24.5 ? F = "#f2f202" : ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) >= 24.5 && ((y = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : y.spd) < 32.7 ? F = "#ff9100" : ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) >= 32.7 && ((x = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : x.spd) < 41.5 ? F = "#f44336" : ((_ = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (A = E.properties) == null ? void 0 : A.wind) == null ? void 0 : D.spd) < 51 ? F = "#c604a4" : ((W = ($ = E.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) >= 51 ? F = "#6b05bb" : F = "#f44336";
3978
3965
  const ge = `<svg t="1719918955501"
3979
3966
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3980
3967
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -3990,16 +3977,16 @@ const Ua = {
3990
3977
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
3991
3978
  fill="#ffffff" p-id="18386"></path>
3992
3979
  </svg>`, Q = document.createElement("div");
3993
- Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ge}</div>`;
3994
- const be = new ne.Marker(Q).setLngLat(R.geometry.coordinates).addTo(this.map);
3995
- if (this.interpolateMarkers.push(be), (O = R.properties) != null && O.showCircle) {
3996
- const ie = { radius: 100, coordinates: R.geometry.coordinates }, re = { radius: 200, coordinates: R.geometry.coordinates }, oe = { radius: 500, coordinates: R.geometry.coordinates };
3997
- (U = this.circleSourceData) == null || U.features.push(
3980
+ Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ge}</div>`;
3981
+ const be = new se.Marker(Q).setLngLat(E.geometry.coordinates).addTo(this.map);
3982
+ if (this.interpolateMarkers.push(be), (O = E.properties) != null && O.showCircle) {
3983
+ const ae = { radius: 100, coordinates: E.geometry.coordinates }, ie = { radius: 200, coordinates: E.geometry.coordinates }, re = { radius: 500, coordinates: E.geometry.coordinates };
3984
+ (H = this.circleSourceData) == null || H.features.push(
3985
+ C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3986
+ ), (he = this.circleSourceData) == null || he.features.push(
3998
3987
  C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3999
- ), (ae = this.circleSourceData) == null || ae.features.push(
4000
- C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4001
3988
  ), (de = this.circleSourceData) == null || de.features.push(
4002
- C.circle(oe.coordinates, oe.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3989
+ C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4003
3990
  );
4004
3991
  }
4005
3992
  (me = (pe = this.map) == null ? void 0 : pe.getSource(this.circleSource)) == null || me.setData(this.circleSourceData);
@@ -4011,18 +3998,18 @@ const Ua = {
4011
3998
  var o, n, s, c, h, d, p, f;
4012
3999
  const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
4013
4000
  (m) => {
4014
- var b;
4015
- return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
4001
+ var g;
4002
+ return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
4016
4003
  }
4017
4004
  );
4018
- a.sort((m, b) => {
4019
- var y, u, v, g;
4020
- return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = b.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((g = b.properties) == null ? void 0 : g.model) ? 1 : -1 : 0;
4005
+ a.sort((m, g) => {
4006
+ var y, u, v, b;
4007
+ return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = g.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((b = g.properties) == null ? void 0 : b.model) ? 1 : -1 : 0;
4021
4008
  });
4022
4009
  const r = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
4023
4010
  (m) => {
4024
- var b;
4025
- return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
4011
+ var g;
4012
+ return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
4026
4013
  }
4027
4014
  );
4028
4015
  this.activeTropicals = {
@@ -4032,7 +4019,7 @@ const Ua = {
4032
4019
  showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
4033
4020
  }, this.showTropicals = !0;
4034
4021
  const i = document.getElementById("active-tropical");
4035
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4022
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new se.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4036
4023
  },
4037
4024
  handleForecastToggle(t) {
4038
4025
  var r, i, o, n, s, c;
@@ -4117,7 +4104,7 @@ const Ua = {
4117
4104
  return C.lineToPolygon(i, { properties: a });
4118
4105
  }
4119
4106
  }
4120
- }, Ne = (t) => (G("data-v-6751acd3"), t = t(), H(), t), Ga = {
4107
+ }, Ge = (t) => (U("data-v-813afc6d"), t = t(), G(), t), Ga = {
4121
4108
  id: "active-tropical",
4122
4109
  class: "active-tropical"
4123
4110
  }, Ha = { class: "header-box" }, Za = { class: "main" }, Xa = { key: 0 }, Ja = { class: "sub" }, qa = {
@@ -4126,29 +4113,26 @@ const Ua = {
4126
4113
  }, Ya = { class: "content" }, Qa = { class: "row" }, Ka = {
4127
4114
  class: "col col-left",
4128
4115
  style: { "justify-content": "flex-start" }
4129
- }, ei = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), ti = {
4116
+ }, ei = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), ti = {
4130
4117
  class: "col col-right",
4131
4118
  style: { "justify-content": "flex-start" }
4132
- }, ai = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ii = { class: "row" }, ri = {
4119
+ }, ai = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ii = { class: "row" }, ri = {
4133
4120
  class: "col col-24",
4134
4121
  style: { "justify-content": "flex-start" }
4135
- }, oi = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = { class: "row" }, ci = {
4136
- class: "col col-24",
4137
- style: { "justify-content": "flex-start" }
4138
- }, hi = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "showCircles : ", -1)), di = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-6751acd3></div><div class="row" style="padding:2px 10px;" data-v-6751acd3><div class="legend" data-v-6751acd3><div class="icon td" data-v-6751acd3></div><div class="label" data-v-6751acd3>TD</div></div><div class="legend" data-v-6751acd3><div class="icon ts" data-v-6751acd3></div><div class="label" data-v-6751acd3>TS</div></div><div class="legend" data-v-6751acd3><div class="icon sts" data-v-6751acd3></div><div class="label" data-v-6751acd3>STS</div></div><div class="legend" data-v-6751acd3><div class="icon ty" data-v-6751acd3></div><div class="label" data-v-6751acd3>TY</div></div><div class="legend" data-v-6751acd3><div class="icon sty" data-v-6751acd3></div><div class="label" data-v-6751acd3>STY</div></div><div class="legend" data-v-6751acd3><div class="icon supper-ty" data-v-6751acd3></div><div class="label" data-v-6751acd3>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-6751acd3><div class="legend" data-v-6751acd3><div class="icon history" data-v-6751acd3></div><div class="label" data-v-6751acd3>History</div></div><div class="legend" data-v-6751acd3><div class="icon r7" data-v-6751acd3></div><div class="label" data-v-6751acd3>35kts Radii</div></div><div class="legend" data-v-6751acd3><div class="icon r10" data-v-6751acd3></div><div class="label" data-v-6751acd3>50kts Radii</div></div></div>', 3), pi = { class: "more" };
4139
- function mi(t, e, a, r, i, o) {
4140
- var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _;
4141
- return $e((L(), x("div", Ga, [
4122
+ }, oi = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-813afc6d></div><div class="row" style="padding:2px 10px;" data-v-813afc6d><div class="legend" data-v-813afc6d><div class="icon td" data-v-813afc6d></div><div class="label" data-v-813afc6d>TD</div></div><div class="legend" data-v-813afc6d><div class="icon ts" data-v-813afc6d></div><div class="label" data-v-813afc6d>TS</div></div><div class="legend" data-v-813afc6d><div class="icon sts" data-v-813afc6d></div><div class="label" data-v-813afc6d>STS</div></div><div class="legend" data-v-813afc6d><div class="icon ty" data-v-813afc6d></div><div class="label" data-v-813afc6d>TY</div></div><div class="legend" data-v-813afc6d><div class="icon sty" data-v-813afc6d></div><div class="label" data-v-813afc6d>STY</div></div><div class="legend" data-v-813afc6d><div class="icon supper-ty" data-v-813afc6d></div><div class="label" data-v-813afc6d>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-813afc6d><div class="legend" data-v-813afc6d><div class="icon history" data-v-813afc6d></div><div class="label" data-v-813afc6d>History</div></div><div class="legend" data-v-813afc6d><div class="icon r7" data-v-813afc6d></div><div class="label" data-v-813afc6d>35kts Radii</div></div><div class="legend" data-v-813afc6d><div class="icon r10" data-v-813afc6d></div><div class="label" data-v-813afc6d>50kts Radii</div></div></div>', 3), ci = { class: "more" };
4123
+ function hi(t, e, a, r, i, o) {
4124
+ var n, s, c, h, d, p, f, m, g, y, u, v, b, x, k;
4125
+ return $e((w(), L("div", Ga, [
4142
4126
  l("div", Ha, [
4143
4127
  l("div", {
4144
4128
  class: "iconfont close-btn",
4145
- onClick: e[0] || (e[0] = (I) => i.showTropicals = !1)
4129
+ onClick: e[0] || (e[0] = (_) => i.showTropicals = !1)
4146
4130
  }, ""),
4147
4131
  l("div", Za, [
4148
- (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (L(), x("span", Xa, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : N("", !0),
4132
+ (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (w(), L("span", Xa, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : N("", !0),
4149
4133
  Ke(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4150
4134
  ]),
4151
- l("div", Ja, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((I) => !I.disabled)[0]) == null ? void 0 : y.date))), 1)
4135
+ l("div", Ja, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (g = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : g.filter((_) => !_.disabled)[0]) == null ? void 0 : y.date))), 1)
4152
4136
  ]),
4153
4137
  l("div", qa, [
4154
4138
  l("div", Ya, [
@@ -4159,52 +4143,38 @@ function mi(t, e, a, r, i, o) {
4159
4143
  ]),
4160
4144
  l("div", ti, [
4161
4145
  ai,
4162
- l("span", null, S(((w = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
4146
+ l("span", null, S(((x = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : x.pressure) || "-") + "[hPa]", 1)
4163
4147
  ])
4164
4148
  ]),
4165
4149
  l("div", ii, [
4166
4150
  l("div", ri, [
4167
4151
  oi,
4168
4152
  l("div", si, [
4169
- (L(!0), x(Ae, null, De((k = i.activeTropicals) == null ? void 0 : k.forecasts, (I, D) => {
4170
- var $, W, O, U;
4171
- return L(), x("div", {
4172
- key: D,
4153
+ (w(!0), L(Ae, null, De((k = i.activeTropicals) == null ? void 0 : k.forecasts, (_, A) => {
4154
+ var D, $, W, O;
4155
+ return w(), L("div", {
4156
+ key: A,
4173
4157
  class: M([
4174
4158
  "model",
4175
- I.disabled ? "" : "active",
4176
- D > 0 && D < ((W = ($ = i.activeTropicals) == null ? void 0 : $.forecasts) == null ? void 0 : W.length) - 1 && ((U = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : U.length) > 2 ? "center-child" : ""
4159
+ _.disabled ? "" : "active",
4160
+ A > 0 && A < (($ = (D = i.activeTropicals) == null ? void 0 : D.forecasts) == null ? void 0 : $.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
4177
4161
  ]),
4178
- onClick: (ae) => o.handleForecastToggle(I)
4162
+ onClick: (H) => o.handleForecastToggle(_)
4179
4163
  }, [
4180
4164
  l("span", {
4181
- class: M(I.model)
4182
- }, S(I.model), 3)
4165
+ class: M(_.model)
4166
+ }, S(_.model), 3)
4183
4167
  ], 10, ni);
4184
4168
  }), 128))
4185
4169
  ])
4186
4170
  ])
4187
4171
  ]),
4188
- l("div", li, [
4189
- l("div", ci, [
4190
- hi,
4191
- (_ = i.activeTropicals) != null && _.showCircle ? (L(), x("i", {
4192
- key: 0,
4193
- class: "iconfont icon active",
4194
- onClick: e[1] || (e[1] = (I) => o.handleToggleCircles(i.activeTropicals))
4195
- }, "")) : (L(), x("i", {
4196
- key: 1,
4197
- class: "iconfont icon",
4198
- onClick: e[2] || (e[2] = (I) => o.handleToggleCircles(i.activeTropicals))
4199
- }, ""))
4200
- ])
4201
- ]),
4202
- di
4172
+ li
4203
4173
  ]),
4204
- l("div", pi, [
4174
+ l("div", ci, [
4205
4175
  l("div", {
4206
4176
  class: "button",
4207
- onClick: e[3] || (e[3] = (I) => o.handleStrikeProbability(i.activeTropicals))
4177
+ onClick: e[1] || (e[1] = (_) => o.handleStrikeProbability(i.activeTropicals))
4208
4178
  }, "Strike Probability >>")
4209
4179
  ])
4210
4180
  ])
@@ -4212,8 +4182,8 @@ function mi(t, e, a, r, i, o) {
4212
4182
  [Be, i.showTropicals && !t.$attrs.hideTropicalsLegend]
4213
4183
  ]);
4214
4184
  }
4215
- const tt = /* @__PURE__ */ T(Ua, [["render", mi], ["__scopeId", "data-v-6751acd3"]]);
4216
- const ui = {
4185
+ const tt = /* @__PURE__ */ T(Ua, [["render", hi], ["__scopeId", "data-v-813afc6d"]]);
4186
+ const di = {
4217
4187
  name: "IdmPrecip3h",
4218
4188
  props: {
4219
4189
  factor: {
@@ -4314,27 +4284,27 @@ const ui = {
4314
4284
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4315
4285
  }
4316
4286
  }
4317
- }, ce = (t) => (G("data-v-dec867b8"), t = t(), H(), t), yi = { key: 0 }, fi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), gi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), bi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), vi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), _i = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), wi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), Li = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), xi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), Ci = [
4287
+ }, le = (t) => (U("data-v-dec867b8"), t = t(), G(), t), pi = { key: 0 }, mi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "mm", -1)), ui = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "1.5", -1)), yi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "2", -1)), fi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "3", -1)), gi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "7", -1)), bi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), vi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), _i = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), wi = [
4288
+ mi,
4289
+ ui,
4290
+ yi,
4318
4291
  fi,
4319
4292
  gi,
4320
4293
  bi,
4321
4294
  vi,
4322
- _i,
4323
- wi,
4324
- Li,
4325
- xi
4295
+ _i
4326
4296
  ];
4327
- function Si(t, e, a, r, i, o) {
4297
+ function Li(t, e, a, r, i, o) {
4328
4298
  var n;
4329
- return (n = a.factor) != null && n.active ? (L(), x("div", yi, [
4299
+ return (n = a.factor) != null && n.active ? (w(), L("div", pi, [
4330
4300
  l("div", {
4331
4301
  class: "legend-bars flex-center",
4332
4302
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4333
- }, Ci, 4)
4303
+ }, wi, 4)
4334
4304
  ])) : N("", !0);
4335
4305
  }
4336
- const ki = /* @__PURE__ */ T(ui, [["render", Si], ["__scopeId", "data-v-dec867b8"]]);
4337
- const zi = {
4306
+ const xi = /* @__PURE__ */ T(di, [["render", Li], ["__scopeId", "data-v-dec867b8"]]);
4307
+ const Ci = {
4338
4308
  name: "IdmVisibility",
4339
4309
  props: {
4340
4310
  factor: {
@@ -4428,25 +4398,25 @@ const zi = {
4428
4398
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4429
4399
  }
4430
4400
  }
4431
- }, Le = (t) => (G("data-v-952dee5c"), t = t(), H(), t), Pi = { key: 0 }, Ti = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "nm", -1)), Ii = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), Ei = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ri = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Ai = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3", -1)), Di = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "9", -1)), Mi = [
4401
+ }, Le = (t) => (U("data-v-952dee5c"), t = t(), G(), t), Si = { key: 0 }, ki = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "nm", -1)), zi = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), Pi = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ti = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Ii = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3", -1)), Ei = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "9", -1)), Ri = [
4402
+ ki,
4403
+ zi,
4404
+ Pi,
4432
4405
  Ti,
4433
4406
  Ii,
4434
- Ei,
4435
- Ri,
4436
- Ai,
4437
- Di
4407
+ Ei
4438
4408
  ];
4439
- function $i(t, e, a, r, i, o) {
4409
+ function Ai(t, e, a, r, i, o) {
4440
4410
  var n;
4441
- return (n = a.factor) != null && n.active ? (L(), x("div", Pi, [
4411
+ return (n = a.factor) != null && n.active ? (w(), L("div", Si, [
4442
4412
  l("div", {
4443
4413
  class: "legend-bars flex-center",
4444
4414
  style: j([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
4445
- }, Mi, 4)
4415
+ }, Ri, 4)
4446
4416
  ])) : N("", !0);
4447
4417
  }
4448
- const Bi = /* @__PURE__ */ T(zi, [["render", $i], ["__scopeId", "data-v-952dee5c"]]);
4449
- const Ni = {
4418
+ const Di = /* @__PURE__ */ T(Ci, [["render", Ai], ["__scopeId", "data-v-952dee5c"]]);
4419
+ const Mi = {
4450
4420
  name: "IdmWaterTemp",
4451
4421
  props: {
4452
4422
  factor: {
@@ -4548,25 +4518,25 @@ const Ni = {
4548
4518
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4549
4519
  }
4550
4520
  }
4551
- }, xe = (t) => (G("data-v-67e5094b"), t = t(), H(), t), Wi = { key: 0 }, Oi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "°C", -1)), ji = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), Fi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "10", -1)), Vi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "20", -1)), Ui = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "30", -1)), Gi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "40", -1)), Hi = [
4521
+ }, xe = (t) => (U("data-v-67e5094b"), t = t(), G(), t), $i = { key: 0 }, Bi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ni = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), Wi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "10", -1)), Oi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "20", -1)), ji = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "30", -1)), Fi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "40", -1)), Vi = [
4522
+ Bi,
4523
+ Ni,
4524
+ Wi,
4552
4525
  Oi,
4553
4526
  ji,
4554
- Fi,
4555
- Vi,
4556
- Ui,
4557
- Gi
4527
+ Fi
4558
4528
  ];
4559
- function Zi(t, e, a, r, i, o) {
4529
+ function Ui(t, e, a, r, i, o) {
4560
4530
  var n;
4561
- return (n = a.factor) != null && n.active ? (L(), x("div", Wi, [
4531
+ return (n = a.factor) != null && n.active ? (w(), L("div", $i, [
4562
4532
  l("div", {
4563
4533
  class: "legend-bars flex-center",
4564
4534
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4565
- }, Hi, 4)
4535
+ }, Vi, 4)
4566
4536
  ])) : N("", !0);
4567
4537
  }
4568
- const Xi = /* @__PURE__ */ T(Ni, [["render", Zi], ["__scopeId", "data-v-67e5094b"]]);
4569
- const Ji = {
4538
+ const Gi = /* @__PURE__ */ T(Mi, [["render", Ui], ["__scopeId", "data-v-67e5094b"]]);
4539
+ const Hi = {
4570
4540
  name: "IdmTemp",
4571
4541
  props: {
4572
4542
  factor: {
@@ -4671,27 +4641,27 @@ const Ji = {
4671
4641
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4672
4642
  }
4673
4643
  }
4674
- }, he = (t) => (G("data-v-389ea886"), t = t(), H(), t), qi = { key: 0 }, Yi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), Qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), Ki = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), er = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), tr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), ar = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), ir = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), rr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), or = [
4644
+ }, ce = (t) => (U("data-v-389ea886"), t = t(), G(), t), Zi = { key: 0 }, Xi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ji = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "-20", -1)), qi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "-10", -1)), Yi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Qi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), Ki = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), er = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), tr = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "40", -1)), ar = [
4645
+ Xi,
4646
+ Ji,
4647
+ qi,
4675
4648
  Yi,
4676
4649
  Qi,
4677
4650
  Ki,
4678
4651
  er,
4679
- tr,
4680
- ar,
4681
- ir,
4682
- rr
4652
+ tr
4683
4653
  ];
4684
- function sr(t, e, a, r, i, o) {
4654
+ function ir(t, e, a, r, i, o) {
4685
4655
  var n;
4686
- return (n = a.factor) != null && n.active ? (L(), x("div", qi, [
4656
+ return (n = a.factor) != null && n.active ? (w(), L("div", Zi, [
4687
4657
  l("div", {
4688
4658
  class: "legend-bars flex-center",
4689
4659
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4690
- }, or, 4)
4660
+ }, ar, 4)
4691
4661
  ])) : N("", !0);
4692
4662
  }
4693
- const nr = /* @__PURE__ */ T(Ji, [["render", sr], ["__scopeId", "data-v-389ea886"]]);
4694
- const lr = {
4663
+ const rr = /* @__PURE__ */ T(Hi, [["render", ir], ["__scopeId", "data-v-389ea886"]]);
4664
+ const or = {
4695
4665
  name: "IdmArctic",
4696
4666
  props: {
4697
4667
  factor: {
@@ -4787,25 +4757,25 @@ const lr = {
4787
4757
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4788
4758
  }
4789
4759
  }
4790
- }, Ce = (t) => (G("data-v-db805141"), t = t(), H(), t), cr = { key: 0 }, hr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "m", -1)), dr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), pr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0.5", -1)), mr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1", -1)), ur = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), yr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "2", -1)), fr = [
4760
+ }, Ce = (t) => (U("data-v-db805141"), t = t(), G(), t), sr = { key: 0 }, nr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "m", -1)), lr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), cr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0.5", -1)), hr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1", -1)), dr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), pr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "2", -1)), mr = [
4761
+ nr,
4762
+ lr,
4763
+ cr,
4791
4764
  hr,
4792
4765
  dr,
4793
- pr,
4794
- mr,
4795
- ur,
4796
- yr
4766
+ pr
4797
4767
  ];
4798
- function gr(t, e, a, r, i, o) {
4768
+ function ur(t, e, a, r, i, o) {
4799
4769
  var n;
4800
- return (n = a.factor) != null && n.active ? (L(), x("div", cr, [
4770
+ return (n = a.factor) != null && n.active ? (w(), L("div", sr, [
4801
4771
  l("div", {
4802
4772
  class: "legend-bars flex-center",
4803
4773
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4804
- }, fr, 4)
4774
+ }, mr, 4)
4805
4775
  ])) : N("", !0);
4806
4776
  }
4807
- const br = /* @__PURE__ */ T(lr, [["render", gr], ["__scopeId", "data-v-db805141"]]);
4808
- const vr = {
4777
+ const yr = /* @__PURE__ */ T(or, [["render", ur], ["__scopeId", "data-v-db805141"]]);
4778
+ const fr = {
4809
4779
  name: "IdmPoint",
4810
4780
  emits: ["point", "more"],
4811
4781
  props: {
@@ -4880,77 +4850,77 @@ const vr = {
4880
4850
  var t;
4881
4851
  if (this.meteo) {
4882
4852
  const e = document.getElementById("point-meteo");
4883
- this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ne.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4853
+ this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new se.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4884
4854
  }
4885
4855
  }
4886
4856
  }
4887
- }, J = (t) => (G("data-v-fb5b12d6"), t = t(), H(), t), _r = {
4857
+ }, J = (t) => (U("data-v-fb5b12d6"), t = t(), G(), t), gr = {
4888
4858
  id: "point-meteo",
4889
4859
  class: "point-meteo"
4890
- }, wr = { class: "meteo-box" }, Lr = { class: "header-box" }, xr = { class: "main" }, Cr = { class: "sub" }, Sr = { class: "main-box" }, kr = { class: "flex-space" }, zr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Ir = { class: "flex-space" }, Er = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Rr = { class: "flex-space" }, Ar = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Dr = { class: "flex-space" }, Mr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Current", -1)), $r = { class: "flex-space" }, Br = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Nr = { class: "flex-space" }, Wr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Or = { class: "flex-space" }, jr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Fr = { class: "flex-space" }, Vr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), Ur = {
4860
+ }, br = { class: "meteo-box" }, vr = { class: "header-box" }, _r = { class: "main" }, wr = { class: "sub" }, Lr = { class: "main-box" }, xr = { class: "flex-space" }, Cr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Sr = { class: "flex-space" }, kr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), zr = { class: "flex-space" }, Pr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Tr = { class: "flex-space" }, Ir = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Er = { class: "flex-space" }, Rr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Current", -1)), Ar = { class: "flex-space" }, Dr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Mr = { class: "flex-space" }, $r = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Br = { class: "flex-space" }, Nr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Wr = { class: "flex-space" }, Or = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), jr = {
4891
4861
  key: 0,
4892
4862
  class: "flex-space",
4893
4863
  style: { "justify-content": "flex-end" }
4894
- }, Gr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Hr = [
4895
- Gr
4864
+ }, Fr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Vr = [
4865
+ Fr
4896
4866
  ];
4897
- function Zr(t, e, a, r, i, o) {
4898
- var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, I, D, $, W, O, U, ae, de, pe, me, ue, ye, X, q, fe, Y, R, F, ge, Q, be, ie, re, oe, Se, ke, ze, Pe, Te, Ie, Ee;
4899
- return $e((L(), x("div", _r, [
4900
- l("div", wr, [
4901
- l("div", Lr, [
4867
+ function Ur(t, e, a, r, i, o) {
4868
+ var n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, A, D, $, W, O, H, he, de, pe, me, ue, ye, X, q, fe, Y, E, F, ge, Q, be, ae, ie, re, Se, ke, ze, Pe, Te, Ie, Ee;
4869
+ return $e((w(), L("div", gr, [
4870
+ l("div", br, [
4871
+ l("div", vr, [
4902
4872
  l("div", {
4903
4873
  class: "iconfont close",
4904
- onClick: e[0] || (e[0] = (Oe) => i.showMeteo = !1)
4874
+ onClick: e[0] || (e[0] = (We) => i.showMeteo = !1)
4905
4875
  }, ""),
4906
- l("div", xr, S(o.computeLat((n = a.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = a.meteo) == null ? void 0 : s.lng)), 1),
4907
- l("div", Cr, S(o.computeTime((c = a.meteo) == null ? void 0 : c.utc)), 1)
4876
+ l("div", _r, S(o.computeLat((n = a.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = a.meteo) == null ? void 0 : s.lng)), 1),
4877
+ l("div", wr, S(o.computeTime((c = a.meteo) == null ? void 0 : c.utc)), 1)
4908
4878
  ]),
4909
- l("div", Sr, [
4910
- l("div", kr, [
4911
- zr,
4912
- l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = a.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
4879
+ l("div", Lr, [
4880
+ l("div", xr, [
4881
+ Cr,
4882
+ l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((g = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : g.scale) + "[BF]/" + S(o.roundPrecision((u = (y = a.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
4913
4883
  ]),
4914
- l("div", Pr, [
4915
- Tr,
4916
- l("span", null, S(((w = (g = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((I = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : I.height, 1)) + "[m]/" + S(o.roundPrecision((W = ($ = (D = a.meteo) == null ? void 0 : D.wave) == null ? void 0 : $.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4884
+ l("div", Sr, [
4885
+ kr,
4886
+ l("span", null, S(((x = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : x.direction) || "-") + "/" + S(o.roundPrecision((A = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((W = ($ = (D = a.meteo) == null ? void 0 : D.wave) == null ? void 0 : $.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4917
4887
  ]),
4918
- l("div", Ir, [
4919
- Er,
4920
- l("span", null, S(((ae = (U = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : U.swell) == null ? void 0 : ae.direction) || "-") + "/" + S(o.roundPrecision((me = (pe = (de = a.meteo) == null ? void 0 : de.wave) == null ? void 0 : pe.swell) == null ? void 0 : me.height, 1)) + "[m]/" + S(o.roundPrecision((X = (ye = (ue = a.meteo) == null ? void 0 : ue.wave) == null ? void 0 : ye.swell) == null ? void 0 : X.period, 1)) + "[s]", 1)
4888
+ l("div", zr, [
4889
+ Pr,
4890
+ l("span", null, S(((he = (H = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : H.swell) == null ? void 0 : he.direction) || "-") + "/" + S(o.roundPrecision((me = (pe = (de = a.meteo) == null ? void 0 : de.wave) == null ? void 0 : pe.swell) == null ? void 0 : me.height, 1)) + "[m]/" + S(o.roundPrecision((X = (ye = (ue = a.meteo) == null ? void 0 : ue.wave) == null ? void 0 : ye.swell) == null ? void 0 : X.period, 1)) + "[s]", 1)
4921
4891
  ]),
4922
- l("div", Rr, [
4923
- Ar,
4924
- l("span", null, S(((Y = (fe = (q = a.meteo) == null ? void 0 : q.wave) == null ? void 0 : fe.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((ge = (F = (R = a.meteo) == null ? void 0 : R.wave) == null ? void 0 : F.sig) == null ? void 0 : ge.height, 1)) + "[m]/" + S(o.roundPrecision((ie = (be = (Q = a.meteo) == null ? void 0 : Q.wave) == null ? void 0 : be.sig) == null ? void 0 : ie.period, 1)) + "[s]", 1)
4892
+ l("div", Tr, [
4893
+ Ir,
4894
+ l("span", null, S(((Y = (fe = (q = a.meteo) == null ? void 0 : q.wave) == null ? void 0 : fe.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((ge = (F = (E = a.meteo) == null ? void 0 : E.wave) == null ? void 0 : F.sig) == null ? void 0 : ge.height, 1)) + "[m]/" + S(o.roundPrecision((ae = (be = (Q = a.meteo) == null ? void 0 : Q.wave) == null ? void 0 : be.sig) == null ? void 0 : ae.period, 1)) + "[s]", 1)
4925
4895
  ]),
4926
- l("div", Dr, [
4927
- Mr,
4928
- l("span", null, S(((oe = (re = a.meteo) == null ? void 0 : re.current) == null ? void 0 : oe.direction) || "-") + "/" + S(o.roundPrecision((ke = (Se = a.meteo) == null ? void 0 : Se.current) == null ? void 0 : ke.kts, 2)) + "[kts]", 1)
4896
+ l("div", Er, [
4897
+ Rr,
4898
+ l("span", null, S(((re = (ie = a.meteo) == null ? void 0 : ie.current) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((ke = (Se = a.meteo) == null ? void 0 : Se.current) == null ? void 0 : ke.kts, 2)) + "[kts]", 1)
4929
4899
  ]),
4930
- l("div", $r, [
4931
- Br,
4900
+ l("div", Ar, [
4901
+ Dr,
4932
4902
  l("span", null, S(o.roundPrecision((Pe = (ze = a.meteo) == null ? void 0 : ze.precip) == null ? void 0 : Pe.inter6h, 2)) + "[mm]", 1)
4933
4903
  ]),
4934
- l("div", Nr, [
4935
- Wr,
4904
+ l("div", Mr, [
4905
+ $r,
4936
4906
  l("span", null, S(o.roundPrecision(((Te = a.meteo) == null ? void 0 : Te.visibility) / 1852, 0)) + "[nm]", 1)
4937
4907
  ]),
4938
- l("div", Or, [
4939
- jr,
4908
+ l("div", Br, [
4909
+ Nr,
4940
4910
  l("span", null, S(o.roundPrecision((Ie = a.meteo) == null ? void 0 : Ie.temp, 0)) + "[°C]", 1)
4941
4911
  ]),
4942
- l("div", Fr, [
4943
- Vr,
4912
+ l("div", Wr, [
4913
+ Or,
4944
4914
  l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
4945
4915
  ])
4946
4916
  ]),
4947
- t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", Ur, Hr)) : N("", !0)
4917
+ t.$attrs.permission & i.helper.LEVEL.Prime ? (w(), L("div", jr, Vr)) : N("", !0)
4948
4918
  ])
4949
4919
  ], 512)), [
4950
4920
  [Be, i.showMeteo]
4951
4921
  ]);
4952
4922
  }
4953
- const Xr = /* @__PURE__ */ T(vr, [["render", Zr], ["__scopeId", "data-v-fb5b12d6"]]), Jr = {
4923
+ const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-fb5b12d6"]]), Hr = {
4954
4924
  name: "IdmWarZone",
4955
4925
  props: {
4956
4926
  map: {
@@ -5040,10 +5010,10 @@ const Xr = /* @__PURE__ */ T(vr, [["render", Zr], ["__scopeId", "data-v-fb5b12d6
5040
5010
  }
5041
5011
  }
5042
5012
  };
5043
- function qr(t, e, a, r, i, o) {
5044
- return L(), x("div");
5013
+ function Zr(t, e, a, r, i, o) {
5014
+ return w(), L("div");
5045
5015
  }
5046
- const Yr = /* @__PURE__ */ T(Jr, [["render", qr]]), Qr = {
5016
+ const Xr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Jr = {
5047
5017
  name: "IdmGmdssArea",
5048
5018
  props: {
5049
5019
  map: {
@@ -5163,10 +5133,10 @@ const Yr = /* @__PURE__ */ T(Jr, [["render", qr]]), Qr = {
5163
5133
  }
5164
5134
  }
5165
5135
  };
5166
- function Kr(t, e, a, r, i, o) {
5167
- return L(), x("div");
5136
+ function qr(t, e, a, r, i, o) {
5137
+ return w(), L("div");
5168
5138
  }
5169
- const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
5139
+ const Yr = /* @__PURE__ */ T(Jr, [["render", qr]]), Qr = {
5170
5140
  name: "IdmEcaZone",
5171
5141
  props: {
5172
5142
  map: {
@@ -5254,11 +5224,11 @@ const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
5254
5224
  }
5255
5225
  }
5256
5226
  };
5257
- function ao(t, e, a, r, i, o) {
5258
- return L(), x("div");
5227
+ function Kr(t, e, a, r, i, o) {
5228
+ return w(), L("div");
5259
5229
  }
5260
- const io = /* @__PURE__ */ T(to, [["render", ao]]);
5261
- const ro = {
5230
+ const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]);
5231
+ const to = {
5262
5232
  name: "IdmAlertZone",
5263
5233
  props: {
5264
5234
  map: {
@@ -5384,10 +5354,10 @@ const ro = {
5384
5354
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5385
5355
  }
5386
5356
  }
5387
- }, oo = { id: "zone-info" }, so = ["innerHTML"];
5388
- function no(t, e, a, r, i, o) {
5357
+ }, ao = { id: "zone-info" }, io = ["innerHTML"];
5358
+ function ro(t, e, a, r, i, o) {
5389
5359
  var n;
5390
- return $e((L(), x("div", oo, [
5360
+ return $e((w(), L("div", ao, [
5391
5361
  l("div", {
5392
5362
  class: "iconfont close",
5393
5363
  onClick: e[0] || (e[0] = (s) => i.showZone = !1)
@@ -5395,13 +5365,13 @@ function no(t, e, a, r, i, o) {
5395
5365
  l("div", {
5396
5366
  class: "rich-context",
5397
5367
  innerHTML: (n = i.form) == null ? void 0 : n.name
5398
- }, null, 8, so)
5368
+ }, null, 8, io)
5399
5369
  ], 512)), [
5400
5370
  [Be, i.showZone]
5401
5371
  ]);
5402
5372
  }
5403
- const lo = /* @__PURE__ */ T(ro, [["render", no], ["__scopeId", "data-v-c0864afc"]]);
5404
- const co = {
5373
+ const oo = /* @__PURE__ */ T(to, [["render", ro], ["__scopeId", "data-v-c0864afc"]]);
5374
+ const so = {
5405
5375
  name: "IdmPort",
5406
5376
  props: {
5407
5377
  map: {
@@ -5454,7 +5424,7 @@ const co = {
5454
5424
  if (a) {
5455
5425
  this.showPort = !0, this.form = { ...a.properties }, this.form.lng = a.geometry.coordinates[0], this.form.lat = a.geometry.coordinates[1];
5456
5426
  const i = document.getElementById("port-info");
5457
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5427
+ this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new se.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5458
5428
  }
5459
5429
  },
5460
5430
  handleEmit() {
@@ -5493,33 +5463,33 @@ const co = {
5493
5463
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5494
5464
  }
5495
5465
  }
5496
- }, We = (t) => (G("data-v-30e545a2"), t = t(), H(), t), ho = { id: "port-info" }, po = { class: "port-box" }, mo = { class: "flex-start" }, uo = /* @__PURE__ */ We(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), yo = { class: "flex-start" }, fo = /* @__PURE__ */ We(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), go = { class: "flex-start" }, bo = /* @__PURE__ */ We(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), vo = {
5466
+ }, Ne = (t) => (U("data-v-30e545a2"), t = t(), G(), t), no = { id: "port-info" }, lo = { class: "port-box" }, co = { class: "flex-start" }, ho = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), po = { class: "flex-start" }, mo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), uo = { class: "flex-start" }, yo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), fo = {
5497
5467
  class: "flex-start",
5498
5468
  style: { "align-items": "flex-start" }
5499
- }, _o = /* @__PURE__ */ We(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
5500
- function wo(t, e, a, r, i, o) {
5501
- return $e((L(), x("div", ho, [
5469
+ }, go = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
5470
+ function bo(t, e, a, r, i, o) {
5471
+ return $e((w(), L("div", no, [
5502
5472
  l("div", {
5503
5473
  class: "close iconfont",
5504
5474
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
5505
5475
  }, ""),
5506
- l("div", po, [
5507
- l("div", mo, [
5508
- uo,
5476
+ l("div", lo, [
5477
+ l("div", co, [
5478
+ ho,
5509
5479
  l("span", {
5510
5480
  onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
5511
5481
  }, S(i.form.name), 1)
5512
5482
  ]),
5513
- l("div", yo, [
5514
- fo,
5483
+ l("div", po, [
5484
+ mo,
5515
5485
  l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
5516
5486
  ]),
5517
- l("div", go, [
5518
- bo,
5487
+ l("div", uo, [
5488
+ yo,
5519
5489
  l("span", null, S(i.form.loCode || "-"), 1)
5520
5490
  ]),
5521
- l("div", vo, [
5522
- _o,
5491
+ l("div", fo, [
5492
+ go,
5523
5493
  l("span", null, S(i.form.city || "-") + ", " + S(i.form.country || "-"), 1)
5524
5494
  ])
5525
5495
  ])
@@ -5527,7 +5497,7 @@ function wo(t, e, a, r, i, o) {
5527
5497
  [Be, i.showPort]
5528
5498
  ]);
5529
5499
  }
5530
- const Lo = /* @__PURE__ */ T(co, [["render", wo], ["__scopeId", "data-v-30e545a2"]]), xo = {
5500
+ const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-30e545a2"]]), _o = {
5531
5501
  name: "IdmLoadLine",
5532
5502
  props: {
5533
5503
  map: {
@@ -5597,10 +5567,10 @@ const Lo = /* @__PURE__ */ T(co, [["render", wo], ["__scopeId", "data-v-30e545a2
5597
5567
  }
5598
5568
  }
5599
5569
  };
5600
- function Co(t, e, a, r, i, o) {
5601
- return L(), x("div");
5570
+ function wo(t, e, a, r, i, o) {
5571
+ return w(), L("div");
5602
5572
  }
5603
- const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
5573
+ const Lo = /* @__PURE__ */ T(_o, [["render", wo]]), xo = {
5604
5574
  name: "IdmTimezone",
5605
5575
  props: {
5606
5576
  map: {
@@ -5765,10 +5735,10 @@ const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
5765
5735
  }
5766
5736
  }
5767
5737
  };
5768
- function zo(t, e, a, r, i, o) {
5769
- return L(), x("div");
5738
+ function Co(t, e, a, r, i, o) {
5739
+ return w(), L("div");
5770
5740
  }
5771
- const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
5741
+ const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
5772
5742
  name: "IdmVoluntaryReportingArea",
5773
5743
  props: {
5774
5744
  map: {
@@ -5856,10 +5826,10 @@ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
5856
5826
  }
5857
5827
  }
5858
5828
  };
5859
- function Io(t, e, a, r, i, o) {
5860
- return L(), x("div");
5829
+ function zo(t, e, a, r, i, o) {
5830
+ return w(), L("div");
5861
5831
  }
5862
- const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
5832
+ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
5863
5833
  name: "IdmSpecialArea",
5864
5834
  props: {
5865
5835
  map: {
@@ -5949,10 +5919,10 @@ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
5949
5919
  }
5950
5920
  }
5951
5921
  };
5952
- function Ao(t, e, a, r, i, o) {
5953
- return L(), x("div");
5922
+ function Io(t, e, a, r, i, o) {
5923
+ return w(), L("div");
5954
5924
  }
5955
- const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
5925
+ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
5956
5926
  name: "IdmTerminator",
5957
5927
  props: {
5958
5928
  map: {
@@ -6001,11 +5971,11 @@ const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
6001
5971
  }
6002
5972
  }
6003
5973
  };
6004
- function $o(t, e, a, r, i, o) {
6005
- return L(), x("div");
5974
+ function Ao(t, e, a, r, i, o) {
5975
+ return w(), L("div");
6006
5976
  }
6007
- const Bo = /* @__PURE__ */ T(Mo, [["render", $o]]);
6008
- const No = {
5977
+ const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]);
5978
+ const Mo = {
6009
5979
  name: "IdmLatLng",
6010
5980
  props: {
6011
5981
  map: {
@@ -6160,19 +6130,19 @@ const No = {
6160
6130
  (t = this.map) != null && t.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (a = this.map) != null && a.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
6161
6131
  }
6162
6132
  }
6163
- }, Wo = (t) => (G("data-v-51cc4052"), t = t(), H(), t), Oo = /* @__PURE__ */ Wo(() => /* @__PURE__ */ l("span", null, ", ", -1));
6164
- function jo(t, e, a, r, i, o) {
6165
- return i.lngLat ? (L(), x("div", {
6133
+ }, $o = (t) => (U("data-v-51cc4052"), t = t(), G(), t), Bo = /* @__PURE__ */ $o(() => /* @__PURE__ */ l("span", null, ", ", -1));
6134
+ function No(t, e, a, r, i, o) {
6135
+ return i.lngLat ? (w(), L("div", {
6166
6136
  key: 0,
6167
6137
  class: "lat-lng-tip",
6168
6138
  style: j({ right: i.right + "px", bottom: a.bottom })
6169
6139
  }, [
6170
6140
  l("span", null, S(i.lngLat.lat.pretty), 1),
6171
- Oo,
6141
+ Bo,
6172
6142
  l("span", null, S(i.lngLat.lng.pretty), 1)
6173
6143
  ], 4)) : N("", !0);
6174
6144
  }
6175
- const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052"]]), Fo = {
6145
+ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052"]]), Wo = {
6176
6146
  name: "IdmMeasure",
6177
6147
  props: {
6178
6148
  map: {
@@ -6239,19 +6209,19 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6239
6209
  var v;
6240
6210
  return ((v = u._element) == null ? void 0 : v.id) === e;
6241
6211
  })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6242
- let b;
6212
+ let g;
6243
6213
  f.features.forEach((u, v) => {
6244
6214
  if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
6245
- b = v;
6215
+ g = v;
6246
6216
  return;
6247
6217
  }
6248
6218
  });
6249
6219
  const y = f.features.filter((u) => u.geometry.type === "Point");
6250
6220
  this.handleTmpPointUpdate(
6251
6221
  f,
6252
- y[b - 1],
6253
- { lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
6254
- b === y.length - 1 ? void 0 : y[b + 1]
6222
+ y[g - 1],
6223
+ { lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[g].properties },
6224
+ g === y.length - 1 ? void 0 : y[g + 1]
6255
6225
  );
6256
6226
  }
6257
6227
  },
@@ -6264,8 +6234,8 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6264
6234
  var u;
6265
6235
  return ((u = y._element) == null ? void 0 : u.id) === e;
6266
6236
  })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6267
- const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
6268
- b.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6237
+ const g = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
6238
+ g.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6269
6239
  }
6270
6240
  },
6271
6241
  handleContextmenu(t) {
@@ -6276,7 +6246,7 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6276
6246
  const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
6277
6247
  if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6278
6248
  const h = document.createElement("div");
6279
- h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ne.Marker(h).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
6249
+ h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new se.Marker(h).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
6280
6250
  }
6281
6251
  }
6282
6252
  },
@@ -6312,11 +6282,11 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6312
6282
  let a = 0;
6313
6283
  const r = [];
6314
6284
  for (let i = 1; i < e.length; i++) {
6315
- const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = je(c, h, s.mode === "RL", 2), p = Fe(c, h, s.mode === "RL", 2);
6285
+ const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = Oe(c, h, s.mode === "RL", 2), p = je(c, h, s.mode === "RL", 2);
6316
6286
  a = te.roundPrecision(a + d, 2);
6317
6287
  let f;
6318
- s.mode === "RL" ? f = we([c, h]) : f = we(Ve(c, h, 200));
6319
- const m = C.lineString(f.map((b) => [b.lng, b.lat]));
6288
+ s.mode === "RL" ? f = we([c, h]) : f = we(Fe(c, h, 200));
6289
+ const m = C.lineString(f.map((g) => [g.lng, g.lat]));
6320
6290
  m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
6321
6291
  }
6322
6292
  e.push(...r), t.total = a;
@@ -6328,17 +6298,17 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6328
6298
  let o, n;
6329
6299
  if (e) {
6330
6300
  const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: a.lng, lat: a.lat };
6331
- o = je(h, d, c.mode === "RL", 2), n = Fe(h, d, c.mode === "RL", 2);
6301
+ o = Oe(h, d, c.mode === "RL", 2), n = je(h, d, c.mode === "RL", 2);
6332
6302
  let p;
6333
- c.mode === "RL" ? p = we([h, d]) : p = we(Ve(h, d, 200));
6303
+ c.mode === "RL" ? p = we([h, d]) : p = we(Fe(h, d, 200));
6334
6304
  const f = C.lineString(p.map((m) => [m.lng, m.lat]));
6335
6305
  f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
6336
6306
  }
6337
6307
  if (r) {
6338
6308
  const c = a.properties, h = a, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6339
- o = je(h, d, c.mode === "RL", 2), n = Fe(h, d, c.mode === "RL", 2);
6309
+ o = Oe(h, d, c.mode === "RL", 2), n = je(h, d, c.mode === "RL", 2);
6340
6310
  let p;
6341
- c.mode === "RL" ? p = we([h, d]) : p = we(Ve(h, d, 200));
6311
+ c.mode === "RL" ? p = we([h, d]) : p = we(Fe(h, d, 200));
6342
6312
  const f = C.lineString(p.map((m) => [m.lng, m.lat]));
6343
6313
  f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
6344
6314
  }
@@ -6384,7 +6354,7 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6384
6354
  this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([a.lng, a.lat]);
6385
6355
  else {
6386
6356
  const c = document.createElement("div");
6387
- c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new ne.Marker(c).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
6357
+ c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new se.Marker(c).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
6388
6358
  }
6389
6359
  },
6390
6360
  handleMove(t) {
@@ -6442,29 +6412,29 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6442
6412
  for (const n of o) {
6443
6413
  const s = document.createElement("div");
6444
6414
  s.id = `${t.id}-${n.properties.id}`, s.className = `${t.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6445
- const c = new ne.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6415
+ const c = new se.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6446
6416
  c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(c) : this.pointMarkers[t.id] = [c];
6447
6417
  }
6448
6418
  if (t.closed) {
6449
6419
  const n = o.at(-1), c = t.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6450
- h.className = "point-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[t.id] = new ne.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6420
+ h.className = "point-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[t.id] = new se.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6451
6421
  }
6452
6422
  }
6453
6423
  },
6454
6424
  handleClear(t, e = !0) {
6455
6425
  var o, n, s, c, h, d, p, f, m;
6456
6426
  const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
6457
- (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[t.id]) == null || h.remove(), this.closeMarkers[t.id] = void 0, (d = this.pointMarkers[t.id]) == null || d.forEach((b) => {
6458
- b == null || b.remove();
6427
+ (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[t.id]) == null || h.remove(), this.closeMarkers[t.id] = void 0, (d = this.pointMarkers[t.id]) == null || d.forEach((g) => {
6428
+ g == null || g.remove();
6459
6429
  }), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6460
6430
  }
6461
6431
  }
6462
6432
  };
6463
- function Vo(t, e, a, r, i, o) {
6464
- return L(), x("div");
6433
+ function Oo(t, e, a, r, i, o) {
6434
+ return w(), L("div");
6465
6435
  }
6466
- const Uo = /* @__PURE__ */ T(Fo, [["render", Vo]]);
6467
- const Go = {
6436
+ const jo = /* @__PURE__ */ T(Wo, [["render", Oo]]);
6437
+ const Fo = {
6468
6438
  name: "IdmENC",
6469
6439
  props: {
6470
6440
  map: {
@@ -6516,32 +6486,32 @@ const Go = {
6516
6486
  }
6517
6487
  },
6518
6488
  methods: {}
6519
- }, it = (t) => (G("data-v-ab627b83"), t = t(), H(), t), Ho = { key: 0 }, Zo = { class: "bar-item" }, Xo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Jo = [
6520
- Xo
6521
- ], qo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Yo = [
6522
- qo
6489
+ }, it = (t) => (U("data-v-ab627b83"), t = t(), G(), t), Vo = { key: 0 }, Uo = { class: "bar-item" }, Go = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Ho = [
6490
+ Go
6491
+ ], Zo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Xo = [
6492
+ Zo
6523
6493
  ];
6524
- function Qo(t, e, a, r, i, o) {
6525
- return a.enabled && a.permission & i.helper.LEVEL.Supper ? (L(), x("div", Ho, [
6494
+ function Jo(t, e, a, r, i, o) {
6495
+ return a.enabled && a.permission & i.helper.LEVEL.Supper ? (w(), L("div", Vo, [
6526
6496
  l("div", {
6527
6497
  class: "menu-bar-box",
6528
6498
  style: j({ position: "absolute", right: i.right + "px", bottom: a.bottom })
6529
6499
  }, [
6530
- l("div", Zo, [
6500
+ l("div", Uo, [
6531
6501
  l("div", {
6532
6502
  class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
6533
6503
  onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
6534
- }, Jo, 2),
6504
+ }, Ho, 2),
6535
6505
  l("div", {
6536
6506
  class: M(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
6537
6507
  onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
6538
- }, Yo, 2)
6508
+ }, Xo, 2)
6539
6509
  ])
6540
6510
  ], 4)
6541
6511
  ])) : N("", !0);
6542
6512
  }
6543
- const Ko = /* @__PURE__ */ T(Go, [["render", Qo], ["__scopeId", "data-v-ab627b83"]]);
6544
- const es = {
6513
+ const qo = /* @__PURE__ */ T(Fo, [["render", Jo], ["__scopeId", "data-v-ab627b83"]]);
6514
+ const Yo = {
6545
6515
  name: "IdmGLV2",
6546
6516
  components: {
6547
6517
  IdmGlLayer: Vt,
@@ -6555,25 +6525,25 @@ const es = {
6555
6525
  // IdmIceEdge,
6556
6526
  IdmIceberg: Va,
6557
6527
  IdmTropicals: tt,
6558
- IdmPrecip3h: ki,
6559
- IdmVisibility: Bi,
6560
- IdmWaterTemp: Xi,
6561
- IdmTemp: nr,
6562
- IdmArctic: br,
6563
- IdmWarZone: Yr,
6564
- IdmGmdssArea: eo,
6565
- IdmEcaZone: io,
6566
- IdmAlertZone: lo,
6567
- IdmPort: Lo,
6568
- IdmLoadLine: So,
6569
- IdmTimezone: Po,
6570
- IdmVRA: Eo,
6571
- IdmSpecialArea: Do,
6572
- IdmTerminator: Bo,
6528
+ IdmPrecip3h: xi,
6529
+ IdmVisibility: Di,
6530
+ IdmWaterTemp: Gi,
6531
+ IdmTemp: rr,
6532
+ IdmArctic: yr,
6533
+ IdmWarZone: Xr,
6534
+ IdmGmdssArea: Yr,
6535
+ IdmEcaZone: eo,
6536
+ IdmAlertZone: oo,
6537
+ IdmPort: vo,
6538
+ IdmLoadLine: Lo,
6539
+ IdmTimezone: So,
6540
+ IdmVRA: Po,
6541
+ IdmSpecialArea: Eo,
6542
+ IdmTerminator: Do,
6573
6543
  IdmLatLng: at,
6574
- IdmMeasure: Uo,
6575
- IdmPoint: Xr,
6576
- IdmENC: Ko
6544
+ IdmMeasure: jo,
6545
+ IdmPoint: Gr,
6546
+ IdmENC: qo
6577
6547
  },
6578
6548
  props: {
6579
6549
  map: {
@@ -6630,10 +6600,7 @@ const es = {
6630
6600
  },
6631
6601
  map: {
6632
6602
  handler() {
6633
- this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ge(this.map), this.handleRampColorInitial(), setTimeout(() => {
6634
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g;
6635
- this.activeWeatherLayers.length > 0 ? (console.log(1111, this.activeWeatherLayers.length, (e = this.map) == null ? void 0 : e.getLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer)), (r = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "none"), (o = (i = this.map) == null ? void 0 : i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || o.setLayoutProperty("visibility", "visible"), (n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((f = this.map) == null || f.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(2222, this.activeWeatherLayers.length, (b = this.map) == null ? void 0 : b.getLayer((m = this.viewport) == null ? void 0 : m.rampColorLayer)), (u = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible"), (g = (v = this.map) == null ? void 0 : v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none"));
6636
- }, 500));
6603
+ this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ue(this.map), this.handleRampColorInitial(), console.log(1111, "gl3-map-watch"));
6637
6604
  },
6638
6605
  immediate: !0
6639
6606
  },
@@ -6645,10 +6612,10 @@ const es = {
6645
6612
  },
6646
6613
  activeWeatherLayers: {
6647
6614
  handler() {
6648
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g;
6615
+ var t, e, a, r, i, o, n, s, c, h, d, p, f, m, g;
6649
6616
  if (!this.map)
6650
6617
  return !1;
6651
- this.activeWeatherLayers.length > 0 ? (console.log(3333, this.activeWeatherLayers.length, (e = this.map) == null ? void 0 : e.getLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer)), (r = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "none"), (o = (i = this.map) == null ? void 0 : i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || o.setLayoutProperty("visibility", "visible"), (n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((f = this.map) == null || f.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(444, this.activeWeatherLayers.length, (b = this.map) == null ? void 0 : b.getLayer((m = this.viewport) == null ? void 0 : m.rampColorLayer)), (u = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible"), (g = (v = this.map) == null ? void 0 : v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none"));
6618
+ this.activeWeatherLayers.length > 0 ? (console.log(3333, this.activeWeatherLayers.length), (e = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (a = this.map) == null ? void 0 : a.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((n = this.map) == null || n.moveLayer((o = this.viewport) == null ? void 0 : o.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (c = this.map) != null && c.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(444, this.activeWeatherLayers.length), (f = (p = this.map) == null ? void 0 : p.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (g = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none"));
6652
6619
  },
6653
6620
  immediate: !0
6654
6621
  }
@@ -6699,9 +6666,9 @@ const es = {
6699
6666
  const e = (/* @__PURE__ */ new Date()).valueOf();
6700
6667
  let a = 0, r = 0;
6701
6668
  if (this.map) {
6702
- const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), b = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
6669
+ const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), g = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
6703
6670
  if (this.handleRampColorState(), this.particleFactor) {
6704
- const y = Ue.WEATHER_LAYERS.find((u) => {
6671
+ const y = Ve.WEATHER_LAYERS.find((u) => {
6705
6672
  var v;
6706
6673
  return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
6707
6674
  });
@@ -6710,44 +6677,44 @@ const es = {
6710
6677
  if (this.weatherWeight > 0) {
6711
6678
  let y = this.weatherWeight, u;
6712
6679
  if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
6713
- const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${b}&t=${this.ts}`, {
6680
+ const v = await oe.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${g}&t=${this.ts}`, {
6714
6681
  headers: {
6715
6682
  Authorization: this.token || this.defaultMeteoToken
6716
6683
  }
6717
6684
  });
6718
6685
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
6719
- const g = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6720
- for (const _ in g)
6721
- _ === "ice-edge" && (g[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
6722
- se.get(g[_], {
6686
+ const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, x = [];
6687
+ for (const _ in b)
6688
+ _ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && x.push(
6689
+ oe.get(b[_], {
6723
6690
  headers: {
6724
6691
  Authorization: this.token || this.defaultMeteoToken,
6725
6692
  key: _
6726
6693
  },
6727
- responseType: /\.(jpg|png)$/.test(g[_]) ? "blob" : "json"
6728
- }).catch((I) => {
6729
- console.log(`[${_}] fetch layer error: ${I}`);
6694
+ responseType: /\.(jpg|png)$/.test(b[_]) ? "blob" : "json"
6695
+ }).catch((A) => {
6696
+ console.log(`[${_}] fetch layer error: ${A}`);
6730
6697
  })
6731
6698
  );
6732
- const k = await Promise.all(w);
6699
+ const k = await Promise.all(x);
6733
6700
  this.weatherLayers = {}, k.map((_) => {
6734
- var $, W, O, U;
6735
- const I = (($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6736
- D && I && (this.weatherLayers[D] = {
6737
- raw: I,
6738
- type: ((U = _ == null ? void 0 : _.config) == null ? void 0 : U.responseType) === "blob" ? "image" : "json",
6701
+ var $, W, O, H;
6702
+ const A = (($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6703
+ D && A && (this.weatherLayers[D] = {
6704
+ raw: A,
6705
+ type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
6739
6706
  etime: this.ts
6740
6707
  });
6741
- }), g.tropicals && se.get(g.tropicals, {
6708
+ }), b.tropicals && oe.get(b.tropicals, {
6742
6709
  headers: {
6743
6710
  Authorization: this.token || this.defaultMeteoToken,
6744
6711
  key: "tropicals"
6745
6712
  }
6746
6713
  }).then((_) => {
6747
6714
  var $, W, O;
6748
- const I = et.convert2Geojson((($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data)), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6715
+ const A = et.convert2Geojson((($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data)), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6749
6716
  this.weatherLayers[D] = {
6750
- data: I,
6717
+ data: A,
6751
6718
  active: !0,
6752
6719
  cached: !1,
6753
6720
  type: "json",
@@ -6757,20 +6724,20 @@ const es = {
6757
6724
  });
6758
6725
  }
6759
6726
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", r, ", total: ", a += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
6760
- const g = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
6727
+ const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, x = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
6761
6728
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
6762
6729
  type: "json",
6763
- direction: g,
6764
- height: { raw: w },
6730
+ direction: b,
6731
+ height: { raw: x },
6765
6732
  etime: this.ts
6766
6733
  };
6767
6734
  }
6768
6735
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
6769
- const g = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
6736
+ const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, x = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
6770
6737
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
6771
6738
  type: "json",
6772
- direction: g,
6773
- speed: { raw: w },
6739
+ direction: b,
6740
+ speed: { raw: x },
6774
6741
  etime: this.ts
6775
6742
  };
6776
6743
  }
@@ -6789,7 +6756,7 @@ const es = {
6789
6756
  let n = !1;
6790
6757
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
6791
6758
  if (t.all) {
6792
- const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6759
+ const s = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6793
6760
  headers: {
6794
6761
  Authorization: this.token || this.defaultMeteoToken
6795
6762
  }
@@ -6798,7 +6765,7 @@ const es = {
6798
6765
  const c = (a = s == null ? void 0 : s.data) == null ? void 0 : a.data, h = [];
6799
6766
  for (const p in c)
6800
6767
  h.push(
6801
- se.get(c[p], {
6768
+ oe.get(c[p], {
6802
6769
  headers: {
6803
6770
  Authorization: this.token || this.defaultMeteoToken,
6804
6771
  key: p
@@ -6807,13 +6774,13 @@ const es = {
6807
6774
  );
6808
6775
  const d = await Promise.all(h);
6809
6776
  this.otherLayers = { enc: n }, d.map((p) => {
6810
- var b, y, u;
6811
- const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
6777
+ var g, y, u;
6778
+ const f = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
6812
6779
  this.otherLayers[m] = f;
6813
6780
  });
6814
6781
  }
6815
6782
  } else if (t.dayNight && o & 1024) {
6816
- const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6783
+ const s = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6817
6784
  headers: {
6818
6785
  Authorization: this.token || this.defaultMeteoToken
6819
6786
  }
@@ -6822,7 +6789,7 @@ const es = {
6822
6789
  const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
6823
6790
  for (const p in c)
6824
6791
  h.push(
6825
- se.get(c[p], {
6792
+ oe.get(c[p], {
6826
6793
  headers: {
6827
6794
  Authorization: this.token || this.defaultMeteoToken,
6828
6795
  key: p
@@ -6830,8 +6797,8 @@ const es = {
6830
6797
  })
6831
6798
  );
6832
6799
  (await Promise.all(h)).map((p) => {
6833
- var b, y, u;
6834
- const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
6800
+ var g, y, u;
6801
+ const f = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
6835
6802
  this.otherLayers[m] = f;
6836
6803
  });
6837
6804
  }
@@ -6894,29 +6861,29 @@ const es = {
6894
6861
  for (const m in this.weatherLayers)
6895
6862
  if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
6896
6863
  this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
6897
- let b = [];
6864
+ let g = [];
6898
6865
  if (["swell", "current"].includes(m)) {
6899
6866
  const y = ((d = this.weatherLayers[m]) == null ? void 0 : d.direction) || {};
6900
6867
  for (const u in y)
6901
6868
  if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6902
6869
  const v = y[u].lng;
6903
- o > n ? v.forEach((g, w) => {
6870
+ o > n ? v.forEach((b, x) => {
6904
6871
  var k;
6905
- if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6906
- const _ = C.point([g, u], {
6907
- val: y[u].val[w],
6908
- spd: (k = y[u].spd) == null ? void 0 : k[w]
6872
+ if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6873
+ const _ = C.point([b, u], {
6874
+ val: y[u].val[x],
6875
+ spd: (k = y[u].spd) == null ? void 0 : k[x]
6909
6876
  });
6910
- b.push(_);
6877
+ g.push(_);
6911
6878
  }
6912
- }) : v.forEach((g, w) => {
6879
+ }) : v.forEach((b, x) => {
6913
6880
  var k;
6914
- if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6915
- const _ = C.point([g, u], {
6916
- val: y[u].val[w],
6917
- spd: (k = y[u].spd) == null ? void 0 : k[w]
6881
+ if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6882
+ const _ = C.point([b, u], {
6883
+ val: y[u].val[x],
6884
+ spd: (k = y[u].spd) == null ? void 0 : k[x]
6918
6885
  });
6919
- b.push(_);
6886
+ g.push(_);
6920
6887
  }
6921
6888
  });
6922
6889
  }
@@ -6925,12 +6892,12 @@ const es = {
6925
6892
  if (u) {
6926
6893
  if (!u.data) {
6927
6894
  const v = [];
6928
- for (const g in (p = u.raw) == null ? void 0 : p.LineString) {
6929
- const w = u.raw.LineString[g];
6930
- for (const k of w)
6895
+ for (const b in (p = u.raw) == null ? void 0 : p.LineString) {
6896
+ const x = u.raw.LineString[b];
6897
+ for (const k of x)
6931
6898
  v.push(
6932
6899
  C.lineString(k, {
6933
- val: Number(g)
6900
+ val: Number(b)
6934
6901
  })
6935
6902
  );
6936
6903
  u.data = C.featureCollection(v);
@@ -6938,7 +6905,7 @@ const es = {
6938
6905
  }
6939
6906
  if (u.data) {
6940
6907
  const v = this.handleBboxClip(u.data, r);
6941
- b = b.concat(v);
6908
+ g = g.concat(v);
6942
6909
  }
6943
6910
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
6944
6911
  }
@@ -6947,20 +6914,20 @@ const es = {
6947
6914
  const u = this.weatherLayers[m].speed;
6948
6915
  if (u) {
6949
6916
  if (!u.data) {
6950
- const g = [];
6951
- for (const w in (f = u.raw) == null ? void 0 : f.Polygon) {
6952
- const k = u.raw.Polygon[w];
6917
+ const b = [];
6918
+ for (const x in (f = u.raw) == null ? void 0 : f.Polygon) {
6919
+ const k = u.raw.Polygon[x];
6953
6920
  for (const _ of k)
6954
- g.push(
6921
+ b.push(
6955
6922
  C.polygon(_, {
6956
- val: Number(w)
6923
+ val: Number(x)
6957
6924
  })
6958
6925
  );
6959
6926
  }
6960
- u.data = C.featureCollection(g);
6927
+ u.data = C.featureCollection(b);
6961
6928
  }
6962
- const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
6963
- b = b.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
6929
+ const v = i < this.zoom ? u.data.features.filter((b) => b.properties.val > 0.5) : u.data.features;
6930
+ g = g.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
6964
6931
  }
6965
6932
  }
6966
6933
  } else if (m === "wind") {
@@ -6968,96 +6935,96 @@ const es = {
6968
6935
  for (const u in y)
6969
6936
  if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6970
6937
  const v = y[u].lng;
6971
- o > n ? v.forEach((g, w) => {
6972
- if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6973
- const k = C.point([g, u], {
6974
- val: y[u].val[w],
6975
- spd: y[u].spd[w]
6938
+ o > n ? v.forEach((b, x) => {
6939
+ if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6940
+ const k = C.point([b, u], {
6941
+ val: y[u].val[x],
6942
+ spd: y[u].spd[x]
6976
6943
  });
6977
- b.push(k);
6944
+ g.push(k);
6978
6945
  }
6979
- }) : v.forEach((g, w) => {
6980
- if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6981
- const k = C.point([g, u], {
6982
- val: y[u].val[w],
6983
- spd: y[u].spd[w]
6946
+ }) : v.forEach((b, x) => {
6947
+ if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6948
+ const k = C.point([b, u], {
6949
+ val: y[u].val[x],
6950
+ spd: y[u].spd[x]
6984
6951
  });
6985
- b.push(k);
6952
+ g.push(k);
6986
6953
  }
6987
6954
  });
6988
6955
  }
6989
6956
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
6990
6957
  } else if (m === "sig-wave-height") {
6991
6958
  if (this.weatherLayers[m].data)
6992
- b = this.weatherLayers[m].data;
6959
+ g = this.weatherLayers[m].data;
6993
6960
  else {
6994
6961
  const y = this.weatherLayers[m].raw;
6995
6962
  if (y) {
6996
6963
  const u = [];
6997
6964
  for (const v in y.Polygon) {
6998
- const g = y.Polygon[v];
6999
- for (const w of g)
6965
+ const b = y.Polygon[v];
6966
+ for (const x of b)
7000
6967
  u.push(
7001
- C.polygon(w, {
6968
+ C.polygon(x, {
7002
6969
  val: Number(v)
7003
6970
  })
7004
6971
  );
7005
6972
  }
7006
- b = b.concat(u);
6973
+ g = g.concat(u);
7007
6974
  }
7008
6975
  }
7009
6976
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
7010
6977
  } else if (m === "prmsl") {
7011
6978
  if (this.weatherLayers[m].data)
7012
- b = this.weatherLayers[m].data;
6979
+ g = this.weatherLayers[m].data;
7013
6980
  else {
7014
6981
  const y = this.weatherLayers[m].raw;
7015
6982
  if (y) {
7016
6983
  const u = [];
7017
6984
  for (const v in y.LineString) {
7018
- const g = y.LineString[v];
7019
- for (const w of g)
6985
+ const b = y.LineString[v];
6986
+ for (const x of b)
7020
6987
  u.push(
7021
- C.lineString(w, {
6988
+ C.lineString(x, {
7022
6989
  val: Number(v)
7023
6990
  })
7024
6991
  );
7025
6992
  }
7026
6993
  for (const v in y.Point)
7027
- y.Point[v].lng.forEach((g, w) => {
7028
- g = Re(g), u.push(
7029
- C.point([g, v], {
7030
- val: y.Point[v].val[w],
7031
- type: y.Point[v].type[w]
6994
+ y.Point[v].lng.forEach((b, x) => {
6995
+ b = Re(b), u.push(
6996
+ C.point([b, v], {
6997
+ val: y.Point[v].val[x],
6998
+ type: y.Point[v].type[x]
7032
6999
  })
7033
7000
  );
7034
7001
  });
7035
- b = b.concat(u);
7002
+ g = g.concat(u);
7036
7003
  }
7037
7004
  }
7038
7005
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
7039
7006
  } else if (m === "arctic" || m === "iceberg") {
7040
7007
  if (this.weatherLayers[m].data)
7041
- b = this.weatherLayers[m].data;
7008
+ g = this.weatherLayers[m].data;
7042
7009
  else {
7043
7010
  const y = this.weatherLayers[m].raw;
7044
7011
  if (y) {
7045
7012
  const u = [];
7046
7013
  for (const v in y.LineString) {
7047
- const g = y.LineString[v];
7048
- for (const w of g)
7014
+ const b = y.LineString[v];
7015
+ for (const x of b)
7049
7016
  u.push(
7050
- C.lineString(w, {
7017
+ C.lineString(x, {
7051
7018
  val: Number(v)
7052
7019
  })
7053
7020
  );
7054
7021
  }
7055
- b = b.concat(u);
7022
+ g = g.concat(u);
7056
7023
  }
7057
7024
  }
7058
7025
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e);
7059
7026
  }
7060
- console.log(m, " elapsed: ", a, ", total: ", e += a), b.length && (this.weatherLayers[m].data = C.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7027
+ console.log(m, " elapsed: ", a, ", total: ", e += a), g.length && (this.weatherLayers[m].data = C.featureCollection(g)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7061
7028
  }
7062
7029
  },
7063
7030
  handleDragEndWithZoom4Image() {
@@ -7126,7 +7093,7 @@ const es = {
7126
7093
  ts: e.utc().format(),
7127
7094
  wt: !0,
7128
7095
  src: this.source
7129
- }, r = await se.get(`${this.gateway}/api/arc/meteo/query`, {
7096
+ }, r = await oe.get(`${this.gateway}/api/arc/meteo/query`, {
7130
7097
  params: a,
7131
7098
  headers: {
7132
7099
  Authorization: this.token || this.defaultMeteoToken
@@ -7144,15 +7111,15 @@ const es = {
7144
7111
  this.particleFactor = t, this.fetchWeatherLayers({ tropicals: !1 });
7145
7112
  }
7146
7113
  }
7147
- }, ts = {
7114
+ }, Qo = {
7148
7115
  key: 0,
7149
7116
  className: "map-gl-home"
7150
7117
  };
7151
- function as(t, e, a, r, i, o) {
7152
- var q, fe, Y, R, F, ge, Q, be, ie, re, oe, Se, ke, ze, Pe, Te, Ie, Ee, Oe, He, Ze, Xe, Je, qe, Ye, Qe;
7153
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), b = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), g = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), I = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), U = z("IdmLoadLine"), ae = z("IdmTimezone"), de = z("IdmVRA"), pe = z("IdmSpecialArea"), me = z("IdmTerminator"), ue = z("IdmLatLng"), ye = z("IdmMeasure"), X = z("IdmPoint");
7154
- return a.map ? (L(), x("div", ts, [
7155
- P(n, E({
7118
+ function Ko(t, e, a, r, i, o) {
7119
+ var q, fe, Y, E, F, ge, Q, be, ae, ie, re, Se, ke, ze, Pe, Te, Ie, Ee, We, He, Ze, Xe, Je, qe, Ye, Qe;
7120
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), g = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), x = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), A = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), H = z("IdmLoadLine"), he = z("IdmTimezone"), de = z("IdmVRA"), pe = z("IdmSpecialArea"), me = z("IdmTerminator"), ue = z("IdmLatLng"), ye = z("IdmMeasure"), X = z("IdmPoint");
7121
+ return a.map ? (w(), L("div", Qo, [
7122
+ P(n, I({
7156
7123
  ref: "layer",
7157
7124
  map: a.map,
7158
7125
  "toggle-version": i.toggleVersion
@@ -7165,7 +7132,7 @@ function as(t, e, a, r, i, o) {
7165
7132
  on3d: o.handle3dToggle,
7166
7133
  onToggleVersion: e[3] || (e[3] = (K) => i.toggleVersion = K)
7167
7134
  }), null, 16, ["map", "toggle-version", "onWeather", "onOther", "on3d"]),
7168
- P(s, E({
7135
+ P(s, I({
7169
7136
  map: a.map,
7170
7137
  token: a.token,
7171
7138
  enabled: (q = i.otherLayers) == null ? void 0 : q.enc,
@@ -7173,34 +7140,34 @@ function as(t, e, a, r, i, o) {
7173
7140
  }, t.$attrs, {
7174
7141
  onEnc: e[4] || (e[4] = (K) => i.enc = K)
7175
7142
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7176
- P(c, E({
7143
+ P(c, I({
7177
7144
  map: a.map,
7178
7145
  "sig-wave": (fe = i.weatherLayers) == null ? void 0 : fe["sig-wave-height"],
7179
7146
  "before-layer": a.beforeLayer
7180
7147
  }, t.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7181
- P(h, E({
7148
+ P(h, I({
7182
7149
  map: a.map,
7183
7150
  swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
7184
7151
  "before-layer": a.beforeLayer
7185
7152
  }, t.$attrs), null, 16, ["map", "swell", "before-layer"]),
7186
- P(d, E({
7153
+ P(d, I({
7187
7154
  map: a.map,
7188
- prmsl: (R = i.weatherLayers) == null ? void 0 : R.prmsl,
7155
+ prmsl: (E = i.weatherLayers) == null ? void 0 : E.prmsl,
7189
7156
  "before-layer": a.beforeLayer,
7190
7157
  "active-weather-layers": i.activeWeatherLayers
7191
7158
  }, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7192
- P(p, E({
7159
+ P(p, I({
7193
7160
  map: a.map,
7194
7161
  iceberg: (F = i.weatherLayers) == null ? void 0 : F.iceberg,
7195
7162
  "before-layer": a.beforeLayer
7196
7163
  }, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7197
- P(f, E({
7164
+ P(f, I({
7198
7165
  map: a.map,
7199
7166
  date: a.ts,
7200
7167
  tropicals: (ge = i.weatherLayers) == null ? void 0 : ge.tropicals,
7201
7168
  "before-layer": a.beforeLayer
7202
7169
  }, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7203
- P(m, E({
7170
+ P(m, I({
7204
7171
  map: a.map,
7205
7172
  current: (Q = i.weatherLayers) == null ? void 0 : Q.current,
7206
7173
  "before-layer": a.beforeLayer,
@@ -7209,17 +7176,17 @@ function as(t, e, a, r, i, o) {
7209
7176
  "toggle-version": i.toggleVersion,
7210
7177
  "weather-layers": i.weatherLayers
7211
7178
  }, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7212
- P(b, E({
7179
+ P(g, I({
7213
7180
  viewport: i.viewport,
7214
7181
  factor: (be = i.weatherLayers) == null ? void 0 : be["current-particle"],
7215
7182
  "before-layer": a.beforeLayer,
7216
7183
  "toggle-version": i.toggleVersion
7217
7184
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7218
- P(y, E({
7185
+ P(y, I({
7219
7186
  ref: "windBarb",
7220
7187
  map: a.map,
7221
- wind: (ie = i.weatherLayers) == null ? void 0 : ie.wind,
7222
- current: (re = i.weatherLayers) == null ? void 0 : re.current,
7188
+ wind: (ae = i.weatherLayers) == null ? void 0 : ae.wind,
7189
+ current: (ie = i.weatherLayers) == null ? void 0 : ie.current,
7223
7190
  "before-layer": a.beforeLayer,
7224
7191
  "margin-bottom": i.showRampColor ? "56px" : "30px",
7225
7192
  "show-particle": i.showWindParticle
@@ -7228,120 +7195,120 @@ function as(t, e, a, r, i, o) {
7228
7195
  "weather-layers": i.weatherLayers,
7229
7196
  onParticle: o.handleParticle
7230
7197
  }), null, 16, ["map", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
7231
- P(u, E({
7198
+ P(u, I({
7232
7199
  viewport: i.viewport,
7233
- factor: (oe = i.weatherLayers) == null ? void 0 : oe["wind-particle"],
7200
+ factor: (re = i.weatherLayers) == null ? void 0 : re["wind-particle"],
7234
7201
  "before-layer": a.beforeLayer,
7235
7202
  "toggle-version": i.toggleVersion
7236
7203
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7237
- P(v, E({
7204
+ P(v, I({
7238
7205
  viewport: i.viewport,
7239
7206
  factor: (Se = i.weatherLayers) == null ? void 0 : Se.precip3h,
7240
7207
  "before-layer": a.beforeLayer,
7241
7208
  "toggle-version": i.toggleVersion
7242
7209
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7243
- P(g, E({
7210
+ P(b, I({
7244
7211
  viewport: i.viewport,
7245
7212
  factor: (ke = i.weatherLayers) == null ? void 0 : ke.visibility,
7246
7213
  "before-layer": a.beforeLayer,
7247
7214
  "toggle-version": i.toggleVersion
7248
7215
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7249
- P(w, E({
7216
+ P(x, I({
7250
7217
  viewport: i.viewport,
7251
7218
  factor: (ze = i.weatherLayers) == null ? void 0 : ze["water-temp"],
7252
7219
  "before-layer": a.beforeLayer,
7253
7220
  "toggle-version": i.toggleVersion
7254
7221
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7255
- P(k, E({
7222
+ P(k, I({
7256
7223
  viewport: i.viewport,
7257
7224
  factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.temp,
7258
7225
  "before-layer": a.beforeLayer,
7259
7226
  "toggle-version": i.toggleVersion
7260
7227
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7261
- P(_, E({
7228
+ P(_, I({
7262
7229
  viewport: i.viewport,
7263
7230
  factor: (Te = i.weatherLayers) == null ? void 0 : Te.arctic,
7264
7231
  "before-layer": a.beforeLayer,
7265
7232
  "toggle-version": i.toggleVersion
7266
7233
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7267
- P(I, E({
7234
+ P(A, I({
7268
7235
  map: a.map,
7269
7236
  zone: (Ie = i.otherLayers) == null ? void 0 : Ie["war-zones"],
7270
7237
  "before-layer": a.beforeLayer
7271
7238
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7272
- P(D, E({
7239
+ P(D, I({
7273
7240
  map: a.map,
7274
7241
  area: (Ee = i.otherLayers) == null ? void 0 : Ee["gmdss-areas"],
7275
7242
  "before-layer": a.beforeLayer
7276
7243
  }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7277
- P($, E({
7244
+ P($, I({
7278
7245
  map: a.map,
7279
- zone: (Oe = i.otherLayers) == null ? void 0 : Oe["eca-zones"],
7246
+ zone: (We = i.otherLayers) == null ? void 0 : We["eca-zones"],
7280
7247
  "before-layer": a.beforeLayer
7281
7248
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7282
- P(W, E({
7249
+ P(W, I({
7283
7250
  map: a.map,
7284
7251
  zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
7285
7252
  "before-layer": a.beforeLayer
7286
7253
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7287
- P(O, E({
7254
+ P(O, I({
7288
7255
  map: a.map,
7289
7256
  port: (Ze = i.otherLayers) == null ? void 0 : Ze.ports,
7290
7257
  "before-layer": a.beforeLayer
7291
7258
  }, t.$attrs), null, 16, ["map", "port", "before-layer"]),
7292
- P(U, E({
7259
+ P(H, I({
7293
7260
  map: a.map,
7294
7261
  line: (Xe = i.otherLayers) == null ? void 0 : Xe["load-lines"],
7295
7262
  "before-layer": a.beforeLayer
7296
7263
  }, t.$attrs), null, 16, ["map", "line", "before-layer"]),
7297
- P(ae, E({
7264
+ P(he, I({
7298
7265
  map: a.map,
7299
7266
  zone: (Je = i.otherLayers) == null ? void 0 : Je["time-zones"],
7300
7267
  "before-layer": a.beforeLayer
7301
7268
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7302
- P(de, E({
7269
+ P(de, I({
7303
7270
  map: a.map,
7304
7271
  area: (qe = i.otherLayers) == null ? void 0 : qe["voluntary-reporting-area"],
7305
7272
  "before-layer": a.beforeLayer
7306
7273
  }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7307
- P(pe, E({
7274
+ P(pe, I({
7308
7275
  map: a.map,
7309
7276
  area: (Ye = i.otherLayers) == null ? void 0 : Ye["special-area"],
7310
7277
  "before-layer": a.beforeLayer
7311
7278
  }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7312
- P(me, E({
7279
+ P(me, I({
7313
7280
  map: a.map,
7314
7281
  area: (Qe = i.otherLayers) == null ? void 0 : Qe["day-night"]
7315
7282
  }, t.$attrs), null, 16, ["map", "area"]),
7316
- P(ue, E({
7283
+ P(ue, I({
7317
7284
  map: a.map,
7318
7285
  show: i.showCoord,
7319
7286
  "toggle-version": i.toggleVersion
7320
7287
  }, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
7321
- P(ye, E({
7288
+ P(ye, I({
7322
7289
  map: a.map,
7323
7290
  show: i.showMeasure
7324
7291
  }, t.$attrs), null, 16, ["map", "show"]),
7325
- P(X, E({
7292
+ P(X, I({
7326
7293
  map: a.map,
7327
7294
  show: i.showPoint,
7328
7295
  meteo: i.meteo
7329
7296
  }, t.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7330
7297
  ])) : N("", !0);
7331
7298
  }
7332
- const is = /* @__PURE__ */ T(es, [["render", as]]), ps = {
7299
+ const es = /* @__PURE__ */ T(Yo, [["render", Ko]]), cs = {
7333
7300
  install(t) {
7334
- t.component("MapboxGL", is), t.component("TropicalGL", tt), t.component("LatLngGL", at);
7301
+ t.component("MapboxGL", es), t.component("TropicalGL", tt), t.component("LatLngGL", at);
7335
7302
  }
7336
7303
  };
7337
7304
  export {
7338
7305
  at as LatLngGL,
7339
- is as MapboxGL,
7340
- ps as MapboxGLPlugin,
7306
+ es as MapboxGL,
7307
+ cs as MapboxGLPlugin,
7341
7308
  Qt as MapboxHelper,
7342
7309
  V as ParticleSchema,
7343
7310
  tt as TropicalGL,
7344
- Ge as Viewport,
7311
+ Ue as Viewport,
7345
7312
  ve as WebGL,
7346
7313
  B as WebGLSchema
7347
7314
  };