@idmwx/idmui-gl3 4.3.8 → 4.4.0

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
- var Fe = Object.defineProperty;
2
- var $e = (a, e, t) => e in a ? Fe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var I = (a, e, t) => ($e(a, typeof e != "symbol" ? e + "" : e, t), t);
1
+ var $e = Object.defineProperty;
2
+ var Fe = (a, e, t) => e in a ? $e(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var I = (a, e, t) => (Fe(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { LayerHelper as Pe, CompanyHelper as Ce, convertToStandardLng as we } from "@idmwx/idmwx-base";
5
- import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ue, createTextVNode as Ne, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ve, vShow as ke, mergeProps as R } from "vue";
5
+ import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as F, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ve, createTextVNode as Oe, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ue, vShow as ke, mergeProps as E } from "vue";
6
6
  import * as C from "@turf/turf";
7
7
  import Ze from "@mapbox/sphericalmercator";
8
8
  import Z from "moment";
9
- import K from "mapbox-gl";
10
- import { TropicalHelper as We, LngLatHelper as F, LaneHelper as Q } from "@idm-plugin/geo";
11
- import re from "axios";
9
+ import Q from "mapbox-gl";
10
+ import { TropicalHelper as Ne, LngLatHelper as $, LaneHelper as Y } from "@idm-plugin/geo";
11
+ import ie from "axios";
12
12
  const T = (a, e) => {
13
13
  const t = a.__vccOpts || a;
14
14
  for (const [r, i] of e)
@@ -39,7 +39,7 @@ const T = (a, e) => {
39
39
  default: void 0
40
40
  }
41
41
  },
42
- emits: ["weather", "other", "coordinate", "measure", "point", "3d", "toggleVersion", "menu", "showLayers"],
42
+ emits: ["weather", "other", "coordinate", "measure", "point", "3d", "handleToggleVersion", "menu", "showLayers"],
43
43
  data() {
44
44
  return {
45
45
  showLayers: !1,
@@ -80,16 +80,22 @@ const T = (a, e) => {
80
80
  showLayers: {
81
81
  handler() {
82
82
  this.$nextTick(() => {
83
- var a, e;
84
- this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
83
+ this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("handleToggleVersion");
85
84
  });
86
85
  }
87
86
  },
88
87
  toggleMenu: {
89
88
  handler() {
90
89
  this.$nextTick(() => {
91
- var a, e;
92
- this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
90
+ this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("handleToggleVersion");
91
+ });
92
+ }
93
+ },
94
+ toggleVersion: {
95
+ handler() {
96
+ this.$nextTick(() => {
97
+ var a;
98
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
93
99
  });
94
100
  }
95
101
  }
@@ -138,7 +144,7 @@ const T = (a, e) => {
138
144
  this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
139
145
  },
140
146
  handlePointToggle() {
141
- this.isLogin ? (this.showPoint = !this.showPoint, this.$emit("point", this.showPoint)) : this.$emit("toggleVersion", Math.random());
147
+ this.isLogin ? (this.showPoint = !this.showPoint, this.$emit("point", this.showPoint)) : this.$emit("handleToggleVersion");
142
148
  },
143
149
  handleMeasureToggle() {
144
150
  this.showMeasure = !this.showMeasure, this.$emit("measure", this.showMeasure);
@@ -159,7 +165,7 @@ function nt(a, e, t, r, i, o) {
159
165
  return x(), _("div", Ge, [
160
166
  l("div", {
161
167
  class: "menu-bar-box",
162
- style: $({ top: t.top + 10 + "px", right: i.right + "px" })
168
+ style: F({ top: t.top + 10 + "px", right: i.right + "px" })
163
169
  }, [
164
170
  l("div", Je, [
165
171
  l("div", {
@@ -172,7 +178,7 @@ function nt(a, e, t, r, i, o) {
172
178
  ], 4),
173
179
  l("div", {
174
180
  class: "menu-bar-box",
175
- style: $({ top: t.top + 160 + "px", right: i.right + "px" })
181
+ style: F({ top: t.top + 160 + "px", right: i.right + "px" })
176
182
  }, [
177
183
  l("div", Xe, [
178
184
  l("div", {
@@ -203,7 +209,7 @@ function nt(a, e, t, r, i, o) {
203
209
  ], 4),
204
210
  l("div", {
205
211
  class: "active-layers",
206
- style: $({ right: i.right + "px", bottom: "100px" })
212
+ style: F({ right: i.right + "px", bottom: "100px" })
207
213
  }, [
208
214
  (x(!0), _(xe, null, _e(i.weatherLayers, (s) => (x(), _("div", {
209
215
  key: s.key,
@@ -216,24 +222,24 @@ function nt(a, e, t, r, i, o) {
216
222
  ], 4),
217
223
  l("div", {
218
224
  class: "available-layers flex-center",
219
- style: $({ top: t.top + "px", right: i.showLayers ? "0px" : "-240px" })
225
+ style: F({ top: t.top + "px", right: i.showLayers ? "0px" : "-240px" })
220
226
  }, [
221
227
  l("div", {
222
228
  class: "side-bar",
223
- style: $({ right: i.showLayers ? "0px" : "-240px" }),
229
+ style: F({ right: i.showLayers ? "0px" : "-240px" }),
224
230
  onClick: e[5] || (e[5] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
225
231
  }, e[14] || (e[14] = [
226
232
  l("i", { class: "iconfont" }, "", -1)
227
233
  ]), 4),
228
234
  l("div", {
229
- class: M(["list-box", i.showLayers ? "available-layers-show" : ""])
235
+ class: M(["list-box", i.showLayers ? "right-bar" : ""])
230
236
  }, [
231
237
  P(n, { style: { flex: "1" } }, {
232
- default: Ue(() => [
238
+ default: Ve(() => [
233
239
  l("div", Ye, [
234
240
  l("div", Qe, [
235
241
  l("div", null, [
236
- e[15] || (e[15] = Ne(" Weather Layers ")),
242
+ e[15] || (e[15] = Oe(" Weather Layers ")),
237
243
  l("span", Ke, "(" + S(i.weatherLayers.length) + "/12)", 1)
238
244
  ])
239
245
  ]),
@@ -349,8 +355,8 @@ const ct = {
349
355
  },
350
356
  toggleVersion: {
351
357
  handler() {
352
- var a, e;
353
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
358
+ var a;
359
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
354
360
  },
355
361
  immediate: !0
356
362
  },
@@ -463,7 +469,7 @@ function yt(a, e, t, r, i, o) {
463
469
  return (n = t.wind) != null && n.active ? (x(), _("div", ht, [
464
470
  l("div", {
465
471
  class: "flex-center tool-bars",
466
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
472
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
467
473
  }, [
468
474
  t.mapProjection === "mercator" ? (x(), _("div", {
469
475
  key: 0,
@@ -489,7 +495,7 @@ function yt(a, e, t, r, i, o) {
489
495
  ], 4)
490
496
  ])) : B("", !0);
491
497
  }
492
- const ft = /* @__PURE__ */ T(ct, [["render", yt], ["__scopeId", "data-v-b6fb74d9"]]);
498
+ const ft = /* @__PURE__ */ T(ct, [["render", yt], ["__scopeId", "data-v-8af725eb"]]);
493
499
  class Te {
494
500
  constructor(e) {
495
501
  I(this, "map");
@@ -714,8 +720,8 @@ class ye {
714
720
  }
715
721
  const u = e.getBoundPixel(), y = e.map.getZoom() + 1, f = e.getWorldCopy(u, y);
716
722
  for (const m of f) {
717
- const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, L, D, A] = [v, w + v, b, w + b], N = new Float32Array([k, D, L, D, k, A, k, A, L, D, L, A]);
718
- t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, N, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
723
+ const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, L, D, A] = [v, w + v, b, w + b], O = new Float32Array([k, D, L, D, k, A, k, A, L, D, L, A]);
724
+ t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, O, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
719
725
  }
720
726
  } catch (d) {
721
727
  console.log(`render failed...${d}`);
@@ -763,10 +769,10 @@ class ye {
763
769
  });
764
770
  }
765
771
  }
766
- class W {
772
+ class N {
767
773
  }
768
774
  // 顶点渲染
769
- I(W, "vertexSchema", `
775
+ I(N, "vertexSchema", `
770
776
  //canvas 坐标系上的坐标 (x, y)
771
777
  attribute vec2 a_position; //像素坐标
772
778
  attribute vec2 a_texCoord; //纹理坐标
@@ -781,7 +787,7 @@ I(W, "vertexSchema", `
781
787
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
782
788
  v_texCoord = a_texCoord;
783
789
  }`), // 类如风、流等u v双变量片元渲染
784
- I(W, "uvFragmentSchema", `
790
+ I(N, "uvFragmentSchema", `
785
791
  precision mediump float;
786
792
  uniform sampler2D u_image;
787
793
  uniform vec2 u_range_u_v;
@@ -800,7 +806,7 @@ I(W, "uvFragmentSchema", `
800
806
 
801
807
  gl_FragColor = color;
802
808
  }`), // 类如浪、气压等单变量片元渲染
803
- I(W, "fragmentSchema", `
809
+ I(N, "fragmentSchema", `
804
810
  precision mediump float;
805
811
  uniform sampler2D u_image; // 灰度
806
812
  uniform sampler2D u_color; // 色值映射
@@ -811,9 +817,9 @@ I(W, "fragmentSchema", `
811
817
  vec4 color = texture2D(u_color, vec2(rgba.r, 0));
812
818
  gl_FragColor = color;
813
819
  }`);
814
- class V {
820
+ class U {
815
821
  }
816
- I(V, "vertexSchema", `
822
+ I(U, "vertexSchema", `
817
823
  precision mediump float;
818
824
 
819
825
  attribute float a_index; // 索引
@@ -837,7 +843,7 @@ I(V, "vertexSchema", `
837
843
  gl_PointSize = 1.0;
838
844
  // gl_PointSize = u_point;
839
845
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
840
- }`), I(V, "fragmentSchema", `
846
+ }`), I(U, "fragmentSchema", `
841
847
  precision mediump float;
842
848
 
843
849
  uniform sampler2D u_factor;
@@ -859,7 +865,7 @@ I(V, "vertexSchema", `
859
865
 
860
866
  float f = 1.0 - uv.b;
861
867
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
862
- }`), I(V, "quadVertSchema", `
868
+ }`), I(U, "quadVertSchema", `
863
869
  precision mediump float;
864
870
 
865
871
  attribute vec2 a_pos;
@@ -869,7 +875,7 @@ I(V, "vertexSchema", `
869
875
  void main() {
870
876
  v_tex_pos = a_pos;
871
877
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
872
- }`), I(V, "screenFragmentSchema", `
878
+ }`), I(U, "screenFragmentSchema", `
873
879
  precision mediump float;
874
880
 
875
881
  uniform sampler2D u_screen;
@@ -881,7 +887,7 @@ I(V, "vertexSchema", `
881
887
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
882
888
  // a hack to guarantee opacity fade out even with a value close to 1.0
883
889
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
884
- }`), I(V, "updateFragmentSchema", `
890
+ }`), I(U, "updateFragmentSchema", `
885
891
  precision mediump float;
886
892
 
887
893
  uniform sampler2D u_particles;
@@ -2623,8 +2629,8 @@ const bt = {
2623
2629
  },
2624
2630
  toggleVersion: {
2625
2631
  handler() {
2626
- var a, e;
2627
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2632
+ var a;
2633
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
2628
2634
  },
2629
2635
  immediate: !0
2630
2636
  }
@@ -2678,7 +2684,7 @@ const bt = {
2678
2684
  [1, "rgb(91, 136, 161)"]
2679
2685
  ];
2680
2686
  this.rampColor = this.webgl.setup(this.context, a);
2681
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
2687
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
2682
2688
  this.program = e, this.aPositionBuffer = t;
2683
2689
  }
2684
2690
  this.handleParticleSetup();
@@ -2692,11 +2698,11 @@ const bt = {
2692
2698
  ];
2693
2699
  this.wrapper = this.webgl.bindParticle(
2694
2700
  this.particleContext,
2695
- V.vertexSchema,
2696
- V.fragmentSchema,
2697
- V.quadVertSchema,
2698
- V.screenFragmentSchema,
2699
- V.updateFragmentSchema
2701
+ U.vertexSchema,
2702
+ U.fragmentSchema,
2703
+ U.quadVertSchema,
2704
+ U.screenFragmentSchema,
2705
+ U.updateFragmentSchema
2700
2706
  ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
2701
2707
  }
2702
2708
  },
@@ -2732,7 +2738,7 @@ function Lt(a, e, t, r, i, o) {
2732
2738
  return (n = t.factor) != null && n.active ? (x(), _("div", vt, [
2733
2739
  l("div", {
2734
2740
  class: "legend-bars flex-center",
2735
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2741
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2736
2742
  }, e[0] || (e[0] = [
2737
2743
  l("span", null, "kts", -1),
2738
2744
  l("span", null, "0", -1),
@@ -2745,7 +2751,7 @@ function Lt(a, e, t, r, i, o) {
2745
2751
  ]), 4)
2746
2752
  ])) : B("", !0);
2747
2753
  }
2748
- const wt = /* @__PURE__ */ T(bt, [["render", Lt], ["__scopeId", "data-v-41a686d0"]]);
2754
+ const wt = /* @__PURE__ */ T(bt, [["render", Lt], ["__scopeId", "data-v-a3cc30c6"]]);
2749
2755
  const xt = {
2750
2756
  name: "IdmCurrent",
2751
2757
  props: {
@@ -2811,8 +2817,8 @@ const xt = {
2811
2817
  },
2812
2818
  toggleVersion: {
2813
2819
  handler() {
2814
- var a, e;
2815
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2820
+ var a;
2821
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
2816
2822
  },
2817
2823
  immediate: !0
2818
2824
  },
@@ -2924,7 +2930,7 @@ function Pt(a, e, t, r, i, o) {
2924
2930
  return (n = t.current) != null && n.active ? (x(), _("div", _t, [
2925
2931
  l("div", {
2926
2932
  class: "flex-center tool-bars",
2927
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
2933
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
2928
2934
  }, [
2929
2935
  t.mapProjection === "mercator" ? (x(), _("div", {
2930
2936
  key: 0,
@@ -2950,8 +2956,8 @@ function Pt(a, e, t, r, i, o) {
2950
2956
  ], 4)
2951
2957
  ])) : B("", !0);
2952
2958
  }
2953
- const Tt = /* @__PURE__ */ T(xt, [["render", Pt], ["__scopeId", "data-v-ae630f43"]]);
2954
- const Et = {
2959
+ const Tt = /* @__PURE__ */ T(xt, [["render", Pt], ["__scopeId", "data-v-83a51e73"]]);
2960
+ const Rt = {
2955
2961
  name: "IdmCurrentParticle",
2956
2962
  props: {
2957
2963
  factor: {
@@ -3010,8 +3016,8 @@ const Et = {
3010
3016
  },
3011
3017
  toggleVersion: {
3012
3018
  handler() {
3013
- var a, e;
3014
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
3019
+ var a;
3020
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
3015
3021
  },
3016
3022
  immediate: !0
3017
3023
  }
@@ -3056,7 +3062,7 @@ const Et = {
3056
3062
  [1, "rgb(195,194,194)"]
3057
3063
  ];
3058
3064
  this.rampColor = this.webgl.setup(this.context, a);
3059
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
3065
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3060
3066
  this.program = e, this.aPositionBuffer = t;
3061
3067
  }
3062
3068
  this.handleParticleSetup();
@@ -3070,11 +3076,11 @@ const Et = {
3070
3076
  ];
3071
3077
  this.wrapper = this.webgl.bindParticle(
3072
3078
  this.particleContext,
3073
- V.vertexSchema,
3074
- V.fragmentSchema,
3075
- V.quadVertSchema,
3076
- V.screenFragmentSchema,
3077
- V.updateFragmentSchema
3079
+ U.vertexSchema,
3080
+ U.fragmentSchema,
3081
+ U.quadVertSchema,
3082
+ U.screenFragmentSchema,
3083
+ U.updateFragmentSchema
3078
3084
  ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
3079
3085
  ...this.wrapper,
3080
3086
  ...this.webgl.setupParticle(this.particleContext, 12e3),
@@ -3108,13 +3114,13 @@ const Et = {
3108
3114
  });
3109
3115
  }
3110
3116
  }
3111
- }, Rt = { key: 0 };
3117
+ }, Et = { key: 0 };
3112
3118
  function It(a, e, t, r, i, o) {
3113
3119
  var n;
3114
- return (n = t.factor) != null && n.active ? (x(), _("div", Rt, [
3120
+ return (n = t.factor) != null && n.active ? (x(), _("div", Et, [
3115
3121
  l("div", {
3116
3122
  class: "legend-bars flex-center",
3117
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3123
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3118
3124
  }, e[0] || (e[0] = [
3119
3125
  l("span", null, "kts", -1),
3120
3126
  l("span", null, "0", -1),
@@ -3126,7 +3132,7 @@ function It(a, e, t, r, i, o) {
3126
3132
  ]), 4)
3127
3133
  ])) : B("", !0);
3128
3134
  }
3129
- const Dt = /* @__PURE__ */ T(Et, [["render", It], ["__scopeId", "data-v-9115889b"]]), At = {
3135
+ const Dt = /* @__PURE__ */ T(Rt, [["render", It], ["__scopeId", "data-v-13f659b1"]]), At = {
3130
3136
  name: "IdmSigWave",
3131
3137
  props: {
3132
3138
  map: {
@@ -3240,7 +3246,7 @@ const Dt = /* @__PURE__ */ T(Et, [["render", It], ["__scopeId", "data-v-9115889b
3240
3246
  function Mt(a, e, t, r, i, o) {
3241
3247
  return x(), _("div");
3242
3248
  }
3243
- const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Nt = {
3249
+ const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Ot = {
3244
3250
  name: "IdmSwell",
3245
3251
  props: {
3246
3252
  map: {
@@ -3378,10 +3384,10 @@ const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Nt = {
3378
3384
  }
3379
3385
  }
3380
3386
  };
3381
- function Wt(a, e, t, r, i, o) {
3387
+ function Nt(a, e, t, r, i, o) {
3382
3388
  return x(), _("div");
3383
3389
  }
3384
- const Ot = /* @__PURE__ */ T(Nt, [["render", Wt]]), jt = {
3390
+ const jt = /* @__PURE__ */ T(Ot, [["render", Nt]]), Wt = {
3385
3391
  name: "IdmPrmsl",
3386
3392
  props: {
3387
3393
  map: {
@@ -3506,10 +3512,10 @@ const Ot = /* @__PURE__ */ T(Nt, [["render", Wt]]), jt = {
3506
3512
  }
3507
3513
  }
3508
3514
  };
3509
- function Ft(a, e, t, r, i, o) {
3515
+ function $t(a, e, t, r, i, o) {
3510
3516
  return x(), _("div");
3511
3517
  }
3512
- const $t = /* @__PURE__ */ T(jt, [["render", Ft]]), Ut = {
3518
+ const Ft = /* @__PURE__ */ T(Wt, [["render", $t]]), Vt = {
3513
3519
  name: "IdmIceberg",
3514
3520
  props: {
3515
3521
  map: {
@@ -3566,10 +3572,10 @@ const $t = /* @__PURE__ */ T(jt, [["render", Ft]]), Ut = {
3566
3572
  }
3567
3573
  }
3568
3574
  };
3569
- function Vt(a, e, t, r, i, o) {
3575
+ function Ut(a, e, t, r, i, o) {
3570
3576
  return x(), _("div");
3571
3577
  }
3572
- const Zt = /* @__PURE__ */ T(Ut, [["render", Vt]]);
3578
+ const Zt = /* @__PURE__ */ T(Vt, [["render", Ut]]);
3573
3579
  const Ht = {
3574
3580
  name: "IdmTropicals",
3575
3581
  props: {
@@ -3940,7 +3946,7 @@ const Ht = {
3940
3946
  }), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y));
3941
3947
  }
3942
3948
  this.handleDrawCircle();
3943
- const d = We.interpolate(this.tropicals, 1);
3949
+ const d = Ne.interpolate(this.tropicals, 1);
3944
3950
  this.interpolateData = JSON.parse(JSON.stringify(d));
3945
3951
  const p = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
3946
3952
  console.log(p), this.handleDateChange();
@@ -3951,11 +3957,11 @@ const Ht = {
3951
3957
  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), (a = this.interpolateMarkers) == null || a.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));
3952
3958
  },
3953
3959
  handleDateChange() {
3954
- var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, ee;
3960
+ var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, re, oe, se, ne, le, ce, he, K;
3955
3961
  if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3956
- const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((E) => E.properties.date === G.format() && !E.properties.disabled), pe = this.handleComputePolygons(J), X = C.featureCollection([...J]);
3957
- pe.forEach((E) => {
3958
- X.features.push(E);
3962
+ const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((R) => R.properties.date === G.format() && !R.properties.disabled), de = this.handleComputePolygons(J), X = C.featureCollection([...J]);
3963
+ de.forEach((R) => {
3964
+ X.features.push(R);
3959
3965
  }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(X) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3960
3966
  type: "geojson",
3961
3967
  data: X
@@ -3970,17 +3976,17 @@ const Ht = {
3970
3976
  "line-width": 1
3971
3977
  }
3972
3978
  })), this.interpolateMarkers = [];
3973
- for (const E of J)
3974
- if (!E.properties.disabled) {
3975
- let U = "#f44336";
3976
- ((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? U = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? U = "#f2f202" : ((f = (y = E.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = E.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? U = "#ff9100" : ((w = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? U = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((O = (N = E.properties) == null ? void 0 : N.wind) == null ? void 0 : O.spd) < 51 ? U = "#f903d0" : ((H = (j = E.properties) == null ? void 0 : j.wind) == null ? void 0 : H.spd) >= 51 ? U = "#8702f9" : U = "#f44336";
3977
- const me = `<svg t="1719918955501"
3979
+ for (const R of J)
3980
+ if (!R.properties.disabled) {
3981
+ let V = "#f44336";
3982
+ ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = R.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((p = (d = R.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? V = "#f2f202" : ((f = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? V = "#ff9100" : ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? V = "#f44336" : ((A = (D = R.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((j = (O = R.properties) == null ? void 0 : O.wind) == null ? void 0 : j.spd) < 51 ? V = "#f903d0" : ((H = (W = R.properties) == null ? void 0 : W.wind) == null ? void 0 : H.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
3983
+ const pe = `<svg t="1719918955501"
3978
3984
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3979
3985
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
3980
3986
  <path
3981
3987
  d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
3982
- fill="${U}" p-id="18383"></path>
3983
- <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${U}"
3988
+ fill="${V}" p-id="18383"></path>
3989
+ <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${V}"
3984
3990
  p-id="18384"></path>
3985
3991
  <path
3986
3992
  d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
@@ -3989,22 +3995,22 @@ const Ht = {
3989
3995
  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"
3990
3996
  fill="#ffffff" p-id="18386"></path>
3991
3997
  </svg>`, q = document.createElement("div");
3992
- q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${me}</div>`;
3993
- const ue = new K.Marker(q).setLngLat(E.geometry.coordinates).addTo(this.map);
3994
- if (this.interpolateMarkers.push(ue), (oe = E.properties) != null && oe.showCircle) {
3995
- const te = { radius: 100, coordinates: E.geometry.coordinates }, ae = { radius: 200, coordinates: E.geometry.coordinates }, ie = { radius: 500, coordinates: E.geometry.coordinates };
3996
- (se = this.circleSourceData) == null || se.features.push(
3998
+ q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${pe}</div>`;
3999
+ const me = new Q.Marker(q).setLngLat(R.geometry.coordinates).addTo(this.map);
4000
+ if (this.interpolateMarkers.push(me), (re = R.properties) != null && re.showCircle) {
4001
+ const ee = { radius: 100, coordinates: R.geometry.coordinates }, te = { radius: 200, coordinates: R.geometry.coordinates }, ae = { radius: 500, coordinates: R.geometry.coordinates };
4002
+ (oe = this.circleSourceData) == null || oe.features.push(
4003
+ C.circle(ee.coordinates, ee.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4004
+ ), (se = this.circleSourceData) == null || se.features.push(
3997
4005
  C.circle(te.coordinates, te.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3998
4006
  ), (ne = this.circleSourceData) == null || ne.features.push(
3999
4007
  C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4000
- ), (le = this.circleSourceData) == null || le.features.push(
4001
- C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4002
4008
  );
4003
4009
  }
4004
- (he = (ce = this.map) == null ? void 0 : ce.getSource(this.circleSource)) == null || he.setData(this.circleSourceData);
4010
+ (ce = (le = this.map) == null ? void 0 : le.getSource(this.circleSource)) == null || ce.setData(this.circleSourceData);
4005
4011
  }
4006
4012
  } else
4007
- (de = this.map) != null && de.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
4013
+ (he = this.map) != null && he.getSource(this.interpolateSource) && ((K = this.map) == null || K.getSource(this.interpolateSource).setData(this.empty));
4008
4014
  },
4009
4015
  handleClick(a) {
4010
4016
  var o, n, s, c, h, d, p, g;
@@ -4031,7 +4037,7 @@ const Ht = {
4031
4037
  showCircle: (g = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : g.showCircle
4032
4038
  }, this.showTropicals = !0;
4033
4039
  const i = document.getElementById("active-tropical");
4034
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4040
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4035
4041
  },
4036
4042
  handleForecastToggle(a) {
4037
4043
  var r, i, o, n, s, c;
@@ -4142,7 +4148,7 @@ function la(a, e, t, r, i, o) {
4142
4148
  }, ""),
4143
4149
  l("div", Xt, [
4144
4150
  (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (x(), _("span", qt, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : B("", !0),
4145
- Ne(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4151
+ Oe(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4146
4152
  ]),
4147
4153
  l("div", Yt, " Last update: " + S(o.computeTime(((g = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((L) => !L.disabled)[0]) == null ? void 0 : f.date))), 1)
4148
4154
  ]),
@@ -4163,13 +4169,13 @@ function la(a, e, t, r, i, o) {
4163
4169
  e[4] || (e[4] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4164
4170
  l("div", oa, [
4165
4171
  (x(!0), _(xe, null, _e((k = i.activeTropicals) == null ? void 0 : k.forecasts, (L, D) => {
4166
- var A, N, O, j;
4172
+ var A, O, j, W;
4167
4173
  return x(), _("div", {
4168
4174
  key: D,
4169
4175
  class: M([
4170
4176
  "model",
4171
4177
  L.disabled ? "" : "active",
4172
- D > 0 && D < ((N = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : N.length) - 1 && ((j = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : j.length) > 2 ? "center-child" : ""
4178
+ D > 0 && D < ((O = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : O.length) - 1 && ((W = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
4173
4179
  ]),
4174
4180
  onClick: (H) => o.handleForecastToggle(L)
4175
4181
  }, [
@@ -4181,7 +4187,7 @@ function la(a, e, t, r, i, o) {
4181
4187
  ])
4182
4188
  ])
4183
4189
  ]),
4184
- e[5] || (e[5] = Ve('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b521de47></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon td" data-v-b521de47></div><div class="label" data-v-b521de47>TD</div></div><div class="legend" data-v-b521de47><div class="icon ts" data-v-b521de47></div><div class="label" data-v-b521de47>TS</div></div><div class="legend" data-v-b521de47><div class="icon sts" data-v-b521de47></div><div class="label" data-v-b521de47>STS</div></div><div class="legend" data-v-b521de47><div class="icon ty" data-v-b521de47></div><div class="label" data-v-b521de47>TY</div></div><div class="legend" data-v-b521de47><div class="icon sty" data-v-b521de47></div><div class="label" data-v-b521de47>STY</div></div><div class="legend" data-v-b521de47><div class="icon supper-ty" data-v-b521de47></div><div class="label" data-v-b521de47>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon history" data-v-b521de47></div><div class="label" data-v-b521de47>History</div></div><div class="legend" data-v-b521de47><div class="icon r7" data-v-b521de47></div><div class="label" data-v-b521de47>35kts Radii</div></div><div class="legend" data-v-b521de47><div class="icon r10" data-v-b521de47></div><div class="label" data-v-b521de47>50kts Radii</div></div></div>', 3))
4190
+ e[5] || (e[5] = Ue('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b521de47></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon td" data-v-b521de47></div><div class="label" data-v-b521de47>TD</div></div><div class="legend" data-v-b521de47><div class="icon ts" data-v-b521de47></div><div class="label" data-v-b521de47>TS</div></div><div class="legend" data-v-b521de47><div class="icon sts" data-v-b521de47></div><div class="label" data-v-b521de47>STS</div></div><div class="legend" data-v-b521de47><div class="icon ty" data-v-b521de47></div><div class="label" data-v-b521de47>TY</div></div><div class="legend" data-v-b521de47><div class="icon sty" data-v-b521de47></div><div class="label" data-v-b521de47>STY</div></div><div class="legend" data-v-b521de47><div class="icon supper-ty" data-v-b521de47></div><div class="label" data-v-b521de47>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon history" data-v-b521de47></div><div class="label" data-v-b521de47>History</div></div><div class="legend" data-v-b521de47><div class="icon r7" data-v-b521de47></div><div class="label" data-v-b521de47>35kts Radii</div></div><div class="legend" data-v-b521de47><div class="icon r10" data-v-b521de47></div><div class="label" data-v-b521de47>50kts Radii</div></div></div>', 3))
4185
4191
  ]),
4186
4192
  l("div", na, [
4187
4193
  l("div", {
@@ -4194,7 +4200,7 @@ function la(a, e, t, r, i, o) {
4194
4200
  [ke, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4195
4201
  ]);
4196
4202
  }
4197
- const Oe = /* @__PURE__ */ T(Ht, [["render", la], ["__scopeId", "data-v-b521de47"]]);
4203
+ const je = /* @__PURE__ */ T(Ht, [["render", la], ["__scopeId", "data-v-b521de47"]]);
4198
4204
  const ca = {
4199
4205
  name: "IdmPrecip3h",
4200
4206
  props: {
@@ -4238,8 +4244,8 @@ const ca = {
4238
4244
  },
4239
4245
  toggleVersion: {
4240
4246
  handler() {
4241
- var a, e;
4242
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4247
+ var a;
4248
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4243
4249
  },
4244
4250
  immediate: !0
4245
4251
  }
@@ -4283,7 +4289,7 @@ const ca = {
4283
4289
  [1, "rgba(197,5,58,0.8)"]
4284
4290
  ];
4285
4291
  this.rampColor = this.webgl.setup(this.context, a);
4286
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4292
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4287
4293
  this.program = e, this.aPositionBuffer = t;
4288
4294
  }
4289
4295
  },
@@ -4302,7 +4308,7 @@ function da(a, e, t, r, i, o) {
4302
4308
  return (n = t.factor) != null && n.active ? (x(), _("div", ha, [
4303
4309
  l("div", {
4304
4310
  class: "legend-bars flex-center",
4305
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4311
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4306
4312
  }, e[0] || (e[0] = [
4307
4313
  l("span", null, "mm", -1),
4308
4314
  l("span", null, "1.5", -1),
@@ -4315,7 +4321,7 @@ function da(a, e, t, r, i, o) {
4315
4321
  ]), 4)
4316
4322
  ])) : B("", !0);
4317
4323
  }
4318
- const pa = /* @__PURE__ */ T(ca, [["render", da], ["__scopeId", "data-v-dec867b8"]]);
4324
+ const pa = /* @__PURE__ */ T(ca, [["render", da], ["__scopeId", "data-v-39b1d5ab"]]);
4319
4325
  const ma = {
4320
4326
  name: "IdmVisibility",
4321
4327
  props: {
@@ -4358,8 +4364,8 @@ const ma = {
4358
4364
  },
4359
4365
  toggleVersion: {
4360
4366
  handler() {
4361
- var a, e;
4362
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4367
+ var a;
4368
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4363
4369
  },
4364
4370
  immediate: !0
4365
4371
  }
@@ -4397,7 +4403,7 @@ const ma = {
4397
4403
  [1, "rgba(144,144,144,0)"]
4398
4404
  ];
4399
4405
  this.rampColor = this.webgl.setup(this.context, a);
4400
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4406
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4401
4407
  this.program = e, this.aPositionBuffer = t;
4402
4408
  }
4403
4409
  },
@@ -4416,7 +4422,7 @@ function ya(a, e, t, r, i, o) {
4416
4422
  return (n = t.factor) != null && n.active ? (x(), _("div", ua, [
4417
4423
  l("div", {
4418
4424
  class: "legend-bars flex-center",
4419
- style: $([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4425
+ style: F([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4420
4426
  }, e[0] || (e[0] = [
4421
4427
  l("span", null, "nm", -1),
4422
4428
  l("span", null, "0", -1),
@@ -4427,7 +4433,7 @@ function ya(a, e, t, r, i, o) {
4427
4433
  ]), 4)
4428
4434
  ])) : B("", !0);
4429
4435
  }
4430
- const fa = /* @__PURE__ */ T(ma, [["render", ya], ["__scopeId", "data-v-952dee5c"]]);
4436
+ const fa = /* @__PURE__ */ T(ma, [["render", ya], ["__scopeId", "data-v-b05a7795"]]);
4431
4437
  const ga = {
4432
4438
  name: "IdmWaterTemp",
4433
4439
  props: {
@@ -4471,8 +4477,8 @@ const ga = {
4471
4477
  },
4472
4478
  toggleVersion: {
4473
4479
  handler() {
4474
- var a, e;
4475
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4480
+ var a;
4481
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4476
4482
  },
4477
4483
  immediate: !0
4478
4484
  }
@@ -4517,7 +4523,7 @@ const ga = {
4517
4523
  //
4518
4524
  ];
4519
4525
  this.rampColor = this.webgl.setup(this.context, a);
4520
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4526
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4521
4527
  this.program = e, this.aPositionBuffer = t;
4522
4528
  }
4523
4529
  },
@@ -4536,7 +4542,7 @@ function va(a, e, t, r, i, o) {
4536
4542
  return (n = t.factor) != null && n.active ? (x(), _("div", ba, [
4537
4543
  l("div", {
4538
4544
  class: "legend-bars flex-center",
4539
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4545
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4540
4546
  }, e[0] || (e[0] = [
4541
4547
  l("span", null, "°C", -1),
4542
4548
  l("span", null, "0", -1),
@@ -4547,7 +4553,7 @@ function va(a, e, t, r, i, o) {
4547
4553
  ]), 4)
4548
4554
  ])) : B("", !0);
4549
4555
  }
4550
- const La = /* @__PURE__ */ T(ga, [["render", va], ["__scopeId", "data-v-67e5094b"]]);
4556
+ const La = /* @__PURE__ */ T(ga, [["render", va], ["__scopeId", "data-v-7653aa0c"]]);
4551
4557
  const wa = {
4552
4558
  name: "IdmTemp",
4553
4559
  props: {
@@ -4591,8 +4597,8 @@ const wa = {
4591
4597
  },
4592
4598
  toggleVersion: {
4593
4599
  handler() {
4594
- var a, e;
4595
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4600
+ var a;
4601
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4596
4602
  },
4597
4603
  immediate: !0
4598
4604
  }
@@ -4640,7 +4646,7 @@ const wa = {
4640
4646
  [1, "rgb(138, 43, 10)"]
4641
4647
  ];
4642
4648
  this.rampColor = this.webgl.setup(this.context, a);
4643
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4649
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4644
4650
  this.program = e, this.aPositionBuffer = t;
4645
4651
  }
4646
4652
  },
@@ -4659,7 +4665,7 @@ function _a(a, e, t, r, i, o) {
4659
4665
  return (n = t.factor) != null && n.active ? (x(), _("div", xa, [
4660
4666
  l("div", {
4661
4667
  class: "legend-bars flex-center",
4662
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4668
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4663
4669
  }, e[0] || (e[0] = [
4664
4670
  l("span", null, "°C", -1),
4665
4671
  l("span", null, "-20", -1),
@@ -4672,7 +4678,7 @@ function _a(a, e, t, r, i, o) {
4672
4678
  ]), 4)
4673
4679
  ])) : B("", !0);
4674
4680
  }
4675
- const Ca = /* @__PURE__ */ T(wa, [["render", _a], ["__scopeId", "data-v-389ea886"]]);
4681
+ const Ca = /* @__PURE__ */ T(wa, [["render", _a], ["__scopeId", "data-v-33206ed4"]]);
4676
4682
  const Sa = {
4677
4683
  name: "IdmArctic",
4678
4684
  props: {
@@ -4716,8 +4722,8 @@ const Sa = {
4716
4722
  },
4717
4723
  toggleVersion: {
4718
4724
  handler() {
4719
- var a, e;
4720
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4725
+ var a;
4726
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4721
4727
  },
4722
4728
  immediate: !0
4723
4729
  }
@@ -4756,7 +4762,7 @@ const Sa = {
4756
4762
  // 2m
4757
4763
  ];
4758
4764
  this.rampColor = this.webgl.setup(this.context, a);
4759
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4765
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4760
4766
  this.program = e, this.aPositionBuffer = t;
4761
4767
  }
4762
4768
  },
@@ -4775,7 +4781,7 @@ function za(a, e, t, r, i, o) {
4775
4781
  return (n = t.factor) != null && n.active ? (x(), _("div", ka, [
4776
4782
  l("div", {
4777
4783
  class: "legend-bars flex-center",
4778
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4784
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4779
4785
  }, e[0] || (e[0] = [
4780
4786
  l("span", null, "m", -1),
4781
4787
  l("span", null, "0", -1),
@@ -4786,7 +4792,7 @@ function za(a, e, t, r, i, o) {
4786
4792
  ]), 4)
4787
4793
  ])) : B("", !0);
4788
4794
  }
4789
- const Pa = /* @__PURE__ */ T(Sa, [["render", za], ["__scopeId", "data-v-db805141"]]);
4795
+ const Pa = /* @__PURE__ */ T(Sa, [["render", za], ["__scopeId", "data-v-76e7bf8f"]]);
4790
4796
  const Ta = {
4791
4797
  name: "IdmPoint",
4792
4798
  emits: ["point", "more"],
@@ -4842,17 +4848,17 @@ const Ta = {
4842
4848
  },
4843
4849
  computeLat() {
4844
4850
  return function(a, e = 4) {
4845
- return F.lat2pretty(a, e).pretty;
4851
+ return $.lat2pretty(a, e).pretty;
4846
4852
  };
4847
4853
  },
4848
4854
  computeLng() {
4849
4855
  return function(a, e = 4) {
4850
- return F.lng2pretty(a, e).pretty;
4856
+ return $.lng2pretty(a, e).pretty;
4851
4857
  };
4852
4858
  },
4853
4859
  roundPrecision() {
4854
4860
  return function(a, e = 4) {
4855
- return isNaN(a) ? "-" : F.roundPrecision(a, e);
4861
+ return isNaN(a) ? "-" : $.roundPrecision(a, e);
4856
4862
  };
4857
4863
  }
4858
4864
  },
@@ -4870,18 +4876,18 @@ const Ta = {
4870
4876
  var a;
4871
4877
  if (this.meteo) {
4872
4878
  const e = document.getElementById("point-meteo");
4873
- this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new K.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4879
+ this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new Q.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4874
4880
  }
4875
4881
  }
4876
4882
  }
4877
- }, Ea = {
4883
+ }, Ra = {
4878
4884
  id: "point-meteo",
4879
4885
  class: "point-meteo"
4880
- }, Ra = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Wa = { class: "flex-space" }, Oa = { class: "flex-space" }, ja = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Ua = { class: "flex-space" }, Va = { class: "flex-space" };
4886
+ }, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Oa = { class: "flex-space" }, Na = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, $a = { class: "flex-space" }, Fa = { class: "flex-space" }, Va = { class: "flex-space" }, Ua = { class: "flex-space" };
4881
4887
  function Za(a, e, t, r, i, o) {
4882
- var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, ee, G, J, pe, X, E, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le;
4883
- return Se((x(), _("div", Ea, [
4884
- l("div", Ra, [
4888
+ var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, re, oe, se, ne, le, ce, he, K, G, J, de, X, R, V, pe, q, me, ee, te, ae, fe, ge, be, ve, Le;
4889
+ return Se((x(), _("div", Ra, [
4890
+ l("div", Ea, [
4885
4891
  l("div", Ia, [
4886
4892
  l("div", {
4887
4893
  class: "iconfont close",
@@ -4895,35 +4901,35 @@ function Za(a, e, t, r, i, o) {
4895
4901
  e[1] || (e[1] = l("label", null, "Wind", -1)),
4896
4902
  l("span", null, S(((d = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((g = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
4897
4903
  ]),
4898
- l("div", Na, [
4904
+ l("div", Oa, [
4899
4905
  e[2] || (e[2] = l("label", null, "Wind.Wave", -1)),
4900
- l("span", null, S(((w = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (L = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : L.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((O = (N = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : N.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
4906
+ l("span", null, S(((w = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (L = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : L.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((j = (O = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : O.wd) == null ? void 0 : j.period, 1)) + "[s]", 1)
4901
4907
  ]),
4902
- l("div", Wa, [
4908
+ l("div", Na, [
4903
4909
  e[3] || (e[3] = l("label", null, "Swell", -1)),
4904
- l("span", null, S(((oe = (H = (j = t.meteo) == null ? void 0 : j.wave) == null ? void 0 : H.swell) == null ? void 0 : oe.direction) || "-") + "/" + S(o.roundPrecision((le = (ne = (se = t.meteo) == null ? void 0 : se.wave) == null ? void 0 : ne.swell) == null ? void 0 : le.height, 1)) + "[m]/" + S(o.roundPrecision((de = (he = (ce = t.meteo) == null ? void 0 : ce.wave) == null ? void 0 : he.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
4910
+ l("span", null, S(((re = (H = (W = t.meteo) == null ? void 0 : W.wave) == null ? void 0 : H.swell) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((ne = (se = (oe = t.meteo) == null ? void 0 : oe.wave) == null ? void 0 : se.swell) == null ? void 0 : ne.height, 1)) + "[m]/" + S(o.roundPrecision((he = (ce = (le = t.meteo) == null ? void 0 : le.wave) == null ? void 0 : ce.swell) == null ? void 0 : he.period, 1)) + "[s]", 1)
4905
4911
  ]),
4906
- l("div", Oa, [
4912
+ l("div", ja, [
4907
4913
  e[4] || (e[4] = l("label", null, "Sig.Wave", -1)),
4908
- l("span", null, S(((J = (G = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((E = (X = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : X.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((q = (me = (U = t.meteo) == null ? void 0 : U.wave) == null ? void 0 : me.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
4914
+ l("span", null, S(((J = (G = (K = t.meteo) == null ? void 0 : K.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((R = (X = (de = t.meteo) == null ? void 0 : de.wave) == null ? void 0 : X.sig) == null ? void 0 : R.height, 1)) + "[m]/" + S(o.roundPrecision((q = (pe = (V = t.meteo) == null ? void 0 : V.wave) == null ? void 0 : pe.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
4909
4915
  ]),
4910
- l("div", ja, [
4916
+ l("div", Wa, [
4911
4917
  e[5] || (e[5] = l("label", null, "Current", -1)),
4912
- l("span", null, S(((te = (ue = t.meteo) == null ? void 0 : ue.current) == null ? void 0 : te.direction) || "-") + "/" + S(o.roundPrecision((ie = (ae = t.meteo) == null ? void 0 : ae.current) == null ? void 0 : ie.kts, 2)) + "[kts]", 1)
4918
+ l("span", null, S(((ee = (me = t.meteo) == null ? void 0 : me.current) == null ? void 0 : ee.direction) || "-") + "/" + S(o.roundPrecision((ae = (te = t.meteo) == null ? void 0 : te.current) == null ? void 0 : ae.kts, 2)) + "[kts]", 1)
4913
4919
  ]),
4914
- l("div", Fa, [
4920
+ l("div", $a, [
4915
4921
  e[6] || (e[6] = l("label", null, "Precip", -1)),
4916
4922
  l("span", null, S(o.roundPrecision((ge = (fe = t.meteo) == null ? void 0 : fe.precip) == null ? void 0 : ge.inter6h, 2)) + "[mm]", 1)
4917
4923
  ]),
4918
- l("div", $a, [
4924
+ l("div", Fa, [
4919
4925
  e[7] || (e[7] = l("label", null, "Visibility", -1)),
4920
4926
  l("span", null, S(o.roundPrecision(((be = t.meteo) == null ? void 0 : be.visibility) / 1852, 0)) + "[nm]", 1)
4921
4927
  ]),
4922
- l("div", Ua, [
4928
+ l("div", Va, [
4923
4929
  e[8] || (e[8] = l("label", null, "Temp", -1)),
4924
4930
  l("span", null, S(o.roundPrecision((ve = t.meteo) == null ? void 0 : ve.temp, 0)) + "[°C]", 1)
4925
4931
  ]),
4926
- l("div", Va, [
4932
+ l("div", Ua, [
4927
4933
  e[9] || (e[9] = l("label", null, "Water Temp", -1)),
4928
4934
  l("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.waterTemp, 2)) + "[°C]", 1)
4929
4935
  ])
@@ -5285,7 +5291,7 @@ const ai = {
5285
5291
  if (t) {
5286
5292
  this.showZone = !0, this.form = { ...t.properties };
5287
5293
  const i = document.getElementById("idm-gl3-zone-info");
5288
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
5294
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
5289
5295
  }
5290
5296
  },
5291
5297
  handleRender() {
@@ -5415,12 +5421,12 @@ const ni = {
5415
5421
  computed: {
5416
5422
  computeLat() {
5417
5423
  return function(a) {
5418
- return F.lat2pretty(a, 4).pretty;
5424
+ return $.lat2pretty(a, 4).pretty;
5419
5425
  };
5420
5426
  },
5421
5427
  computeLng() {
5422
5428
  return function(a) {
5423
- return F.lng2pretty(a, 4).pretty;
5429
+ return $.lng2pretty(a, 4).pretty;
5424
5430
  };
5425
5431
  }
5426
5432
  },
@@ -5442,7 +5448,7 @@ const ni = {
5442
5448
  if (t) {
5443
5449
  this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
5444
5450
  const i = document.getElementById("port-info");
5445
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5451
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5446
5452
  }
5447
5453
  },
5448
5454
  handleEmit() {
@@ -5877,7 +5883,7 @@ const Ci = /* @__PURE__ */ T(xi, [["render", _i]]), Si = {
5877
5883
  methods: {
5878
5884
  handleRender() {
5879
5885
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
5880
- a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => F.convertToMonotonicLng2(e));
5886
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => $.convertToMonotonicLng2(e));
5881
5887
  }), this.map.addSource(this.source, {
5882
5888
  type: "geojson",
5883
5889
  data: this.area
@@ -5992,8 +5998,8 @@ const zi = /* @__PURE__ */ T(Si, [["render", ki]]), Pi = {
5992
5998
  function Ti(a, e, t, r, i, o) {
5993
5999
  return x(), _("div");
5994
6000
  }
5995
- const Ei = /* @__PURE__ */ T(Pi, [["render", Ti]]);
5996
- const Ri = {
6001
+ const Ri = /* @__PURE__ */ T(Pi, [["render", Ti]]);
6002
+ const Ei = {
5997
6003
  name: "IdmLatLng",
5998
6004
  props: {
5999
6005
  map: {
@@ -6039,8 +6045,8 @@ const Ri = {
6039
6045
  },
6040
6046
  toggleVersion: {
6041
6047
  handler() {
6042
- var a, e, t;
6043
- this.right = (((a = document.getElementsByClassName("legend-bars")[0]) == null ? void 0 : a.clientWidth) || -10) + (((e = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : e.clientWidth) || 0) + (((t = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : t.clientWidth) || 0) + 20;
6048
+ var a, e;
6049
+ this.right = (((a = document.getElementsByClassName("legend-bars")[0]) == null ? void 0 : a.clientWidth) || -10) + (((e = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : e.clientWidth) || 0) + 20;
6044
6050
  },
6045
6051
  immediate: !0
6046
6052
  }
@@ -6051,7 +6057,7 @@ const Ri = {
6051
6057
  this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6052
6058
  },
6053
6059
  handleMouseMove(a) {
6054
- const e = a.lngLat, t = F.lng2pretty(e.lng, 2), r = F.lat2pretty(e.lat, 2);
6060
+ const e = a.lngLat, t = $.lng2pretty(e.lng, 2), r = $.lat2pretty(e.lat, 2);
6055
6061
  this.lngLat = { lng: t, lat: r };
6056
6062
  },
6057
6063
  handleComputeLatLngs() {
@@ -6153,14 +6159,14 @@ function Ii(a, e, t, r, i, o) {
6153
6159
  return i.lngLat ? (x(), _("div", {
6154
6160
  key: 0,
6155
6161
  class: "lat-lng-tip",
6156
- style: $({ right: i.right + "px", bottom: t.bottom })
6162
+ style: F({ right: i.right + "px", bottom: t.bottom })
6157
6163
  }, [
6158
6164
  l("span", null, S(i.lngLat.lat.pretty), 1),
6159
6165
  e[0] || (e[0] = l("span", null, ", ", -1)),
6160
6166
  l("span", null, S(i.lngLat.lng.pretty), 1)
6161
6167
  ], 4)) : B("", !0);
6162
6168
  }
6163
- const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b"]]), Di = {
6169
+ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79"]]), Di = {
6164
6170
  name: "IdmMeasure",
6165
6171
  props: {
6166
6172
  map: {
@@ -6264,7 +6270,7 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6264
6270
  const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
6265
6271
  if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6266
6272
  const h = document.createElement("div");
6267
- h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new K.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6273
+ h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new Q.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6268
6274
  }
6269
6275
  }
6270
6276
  },
@@ -6300,10 +6306,10 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6300
6306
  let t = 0;
6301
6307
  const r = [];
6302
6308
  for (let i = 1; i < e.length; i++) {
6303
- 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 = Q.calculateDistance(c, h, s.mode === "RL", 2), p = Q.calculateBearing(c, h, s.mode === "RL", 2);
6304
- t = F.roundPrecision(t + d, 2);
6309
+ 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 = Y.calculateDistance(c, h, s.mode === "RL", 2), p = Y.calculateBearing(c, h, s.mode === "RL", 2);
6310
+ t = $.roundPrecision(t + d, 2);
6305
6311
  let g;
6306
- s.mode === "RL" ? g = F.convertToMonotonicLng([c, h]) : g = F.convertToMonotonicLng(Q.interpolateCoordinates(c, h, 200));
6312
+ s.mode === "RL" ? g = $.convertToMonotonicLng([c, h]) : g = $.convertToMonotonicLng(Y.interpolateCoordinates(c, h, 200));
6307
6313
  const u = C.lineString(g.map((y) => [y.lng, y.lat]));
6308
6314
  u.properties.dist = d, u.properties.bearing = p, u.properties.total = t, r.push(u);
6309
6315
  }
@@ -6316,17 +6322,17 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6316
6322
  let o, n;
6317
6323
  if (e) {
6318
6324
  const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
6319
- o = Q.calculateDistance(h, d, c.mode === "RL", 2), n = Q.calculateBearing(h, d, c.mode === "RL", 2);
6325
+ o = Y.calculateDistance(h, d, c.mode === "RL", 2), n = Y.calculateBearing(h, d, c.mode === "RL", 2);
6320
6326
  let p;
6321
- c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Q.interpolateCoordinates(h, d, 200));
6327
+ c.mode === "RL" ? p = $.convertToMonotonicLng([h, d]) : p = $.convertToMonotonicLng(Y.interpolateCoordinates(h, d, 200));
6322
6328
  const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6323
6329
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6324
6330
  }
6325
6331
  if (r) {
6326
6332
  const c = t.properties, h = t, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6327
- o = Q.calculateDistance(h, d, c.mode === "RL", 2), n = Q.calculateBearing(h, d, c.mode === "RL", 2);
6333
+ o = Y.calculateDistance(h, d, c.mode === "RL", 2), n = Y.calculateBearing(h, d, c.mode === "RL", 2);
6328
6334
  let p;
6329
- c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Q.interpolateCoordinates(h, d, 200));
6335
+ c.mode === "RL" ? p = $.convertToMonotonicLng([h, d]) : p = $.convertToMonotonicLng(Y.interpolateCoordinates(h, d, 200));
6330
6336
  const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6331
6337
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6332
6338
  }
@@ -6368,11 +6374,11 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6368
6374
  }
6369
6375
  });
6370
6376
  let s;
6371
- if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${F.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
6377
+ if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${$.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
6372
6378
  this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([t.lng, t.lat]);
6373
6379
  else {
6374
6380
  const c = document.createElement("div");
6375
- c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new K.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6381
+ c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new Q.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6376
6382
  }
6377
6383
  },
6378
6384
  handleMove(a) {
@@ -6430,12 +6436,12 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6430
6436
  for (const n of o) {
6431
6437
  const s = document.createElement("div");
6432
6438
  s.id = `${a.id}-${n.properties.id}`, s.className = `${a.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6433
- const c = new K.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6439
+ const c = new Q.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6434
6440
  c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
6435
6441
  }
6436
6442
  if (a.closed) {
6437
6443
  const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6438
- h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new K.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6444
+ h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new Q.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6439
6445
  }
6440
6446
  }
6441
6447
  },
@@ -6497,21 +6503,21 @@ const Bi = {
6497
6503
  },
6498
6504
  toggleVersion: {
6499
6505
  handler() {
6500
- var a, e;
6501
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
6506
+ var a;
6507
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
6502
6508
  },
6503
6509
  immediate: !0
6504
6510
  }
6505
6511
  },
6506
6512
  methods: {}
6507
- }, Ni = { key: 0 }, Wi = { class: "bar-item" };
6508
- function Oi(a, e, t, r, i, o) {
6509
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Ni, [
6513
+ }, Oi = { key: 0 }, Ni = { class: "bar-item" };
6514
+ function ji(a, e, t, r, i, o) {
6515
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Oi, [
6510
6516
  l("div", {
6511
6517
  class: "menu-bar-box",
6512
- style: $({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6518
+ style: F({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6513
6519
  }, [
6514
- l("div", Wi, [
6520
+ l("div", Ni, [
6515
6521
  l("div", {
6516
6522
  class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
6517
6523
  onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
@@ -6528,8 +6534,8 @@ function Oi(a, e, t, r, i, o) {
6528
6534
  ], 4)
6529
6535
  ])) : B("", !0);
6530
6536
  }
6531
- const ji = /* @__PURE__ */ T(Bi, [["render", Oi], ["__scopeId", "data-v-ab627b83"]]);
6532
- const Fi = {
6537
+ const Wi = /* @__PURE__ */ T(Bi, [["render", ji], ["__scopeId", "data-v-505264e4"]]);
6538
+ const $i = {
6533
6539
  name: "IdmGLV2",
6534
6540
  components: {
6535
6541
  IdmGlLayer: lt,
@@ -6538,11 +6544,11 @@ const Fi = {
6538
6544
  IdmCurrents: Tt,
6539
6545
  IdmCurrentParticle: Dt,
6540
6546
  IdmSigWave: Bt,
6541
- IdmSwell: Ot,
6542
- IdmPrmsl: $t,
6547
+ IdmSwell: jt,
6548
+ IdmPrmsl: Ft,
6543
6549
  // IdmIceEdge,
6544
6550
  IdmIceberg: Zt,
6545
- IdmTropicals: Oe,
6551
+ IdmTropicals: je,
6546
6552
  IdmPrecip3h: pa,
6547
6553
  IdmVisibility: fa,
6548
6554
  IdmWaterTemp: La,
@@ -6557,11 +6563,11 @@ const Fi = {
6557
6563
  IdmTimezone: wi,
6558
6564
  IdmVRA: Ci,
6559
6565
  IdmSpecialArea: zi,
6560
- IdmTerminator: Ei,
6561
- IdmLatLng: je,
6566
+ IdmTerminator: Ri,
6567
+ IdmLatLng: We,
6562
6568
  IdmMeasure: Mi,
6563
6569
  IdmPoint: Ha,
6564
- IdmENC: ji
6570
+ IdmENC: Wi
6565
6571
  },
6566
6572
  props: {
6567
6573
  map: {
@@ -6577,8 +6583,12 @@ const Fi = {
6577
6583
  beforeLayer: {
6578
6584
  type: String,
6579
6585
  default: ""
6586
+ },
6587
+ toggleVersion: {
6588
+ type: Number
6580
6589
  }
6581
6590
  },
6591
+ emits: ["toggleVersion"],
6582
6592
  data() {
6583
6593
  return {
6584
6594
  weatherLayers: {},
@@ -6601,7 +6611,6 @@ const Fi = {
6601
6611
  activeWindLayer: !1,
6602
6612
  showWindParticle: !1,
6603
6613
  showCurrentParticle: !1,
6604
- toggleVersion: 0,
6605
6614
  enc: "",
6606
6615
  // enc: 'i4',
6607
6616
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
@@ -6696,7 +6705,7 @@ const Fi = {
6696
6705
  if (this.weatherWeight > 0) {
6697
6706
  let f = this.weatherWeight, m;
6698
6707
  if (a.tropicals || this.weatherWeight & 256 && (m = this.weatherLayers.tropicals, m && (f -= 256, m.version = Math.random() + 1)), f > 0) {
6699
- const v = await re.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
6708
+ const v = await ie.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
6700
6709
  headers: {
6701
6710
  Authorization: this.token || this.defaultMeteoToken
6702
6711
  }
@@ -6705,7 +6714,7 @@ const Fi = {
6705
6714
  const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6706
6715
  for (const L in b)
6707
6716
  L === "ice-edge" && (b[L] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), L !== "tropicals" && w.push(
6708
- re.get(b[L], {
6717
+ ie.get(b[L], {
6709
6718
  headers: {
6710
6719
  Authorization: this.token || this.defaultMeteoToken,
6711
6720
  key: L
@@ -6717,21 +6726,21 @@ const Fi = {
6717
6726
  );
6718
6727
  const k = await Promise.all(w);
6719
6728
  this.weatherLayers = {}, k.map((L) => {
6720
- var N, O, j, H;
6721
- const D = ((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data), A = (j = (O = L == null ? void 0 : L.config) == null ? void 0 : O.headers) == null ? void 0 : j.key;
6729
+ var O, j, W, H;
6730
+ const D = ((O = L == null ? void 0 : L.data) == null ? void 0 : O.data) || (L == null ? void 0 : L.data), A = (W = (j = L == null ? void 0 : L.config) == null ? void 0 : j.headers) == null ? void 0 : W.key;
6722
6731
  A && D && (this.weatherLayers[A] = {
6723
6732
  raw: D,
6724
6733
  type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
6725
6734
  etime: this.ts
6726
6735
  });
6727
- }), b.tropicals && re.get(b.tropicals, {
6736
+ }), b.tropicals && ie.get(b.tropicals, {
6728
6737
  headers: {
6729
6738
  Authorization: this.token || this.defaultMeteoToken,
6730
6739
  key: "tropicals"
6731
6740
  }
6732
6741
  }).then((L) => {
6733
- var N, O, j;
6734
- const D = We.convert2Geojson(((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data)), A = (j = (O = L == null ? void 0 : L.config) == null ? void 0 : O.headers) == null ? void 0 : j.key;
6742
+ var O, j, W;
6743
+ const D = Ne.convert2Geojson(((O = L == null ? void 0 : L.data) == null ? void 0 : O.data) || (L == null ? void 0 : L.data)), A = (W = (j = L == null ? void 0 : L.config) == null ? void 0 : j.headers) == null ? void 0 : W.key;
6735
6744
  this.weatherLayers[A] = {
6736
6745
  data: D,
6737
6746
  active: !0,
@@ -6765,7 +6774,7 @@ const Fi = {
6765
6774
  }
6766
6775
  this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
6767
6776
  }
6768
- this.toggleVersion = Math.random();
6777
+ this.$emit("toggleVersion", Math.random());
6769
6778
  },
6770
6779
  async fetchOtherLayers(a = { all: !1, dayNight: !1, enc: !1 }) {
6771
6780
  var e, t, r, i;
@@ -6775,7 +6784,7 @@ const Fi = {
6775
6784
  let n = !1;
6776
6785
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
6777
6786
  if (a.all) {
6778
- const s = await re.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6787
+ const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6779
6788
  headers: {
6780
6789
  Authorization: this.token || this.defaultMeteoToken
6781
6790
  }
@@ -6784,7 +6793,7 @@ const Fi = {
6784
6793
  const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
6785
6794
  for (const p in c)
6786
6795
  h.push(
6787
- re.get(c[p], {
6796
+ ie.get(c[p], {
6788
6797
  headers: {
6789
6798
  Authorization: this.token || this.defaultMeteoToken,
6790
6799
  key: p
@@ -6799,7 +6808,7 @@ const Fi = {
6799
6808
  });
6800
6809
  }
6801
6810
  } else if (a.dayNight && o & 1024) {
6802
- const s = await re.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6811
+ const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6803
6812
  headers: {
6804
6813
  Authorization: this.token || this.defaultMeteoToken
6805
6814
  }
@@ -6808,7 +6817,7 @@ const Fi = {
6808
6817
  const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
6809
6818
  for (const p in c)
6810
6819
  h.push(
6811
- re.get(c[p], {
6820
+ ie.get(c[p], {
6812
6821
  headers: {
6813
6822
  Authorization: this.token || this.defaultMeteoToken,
6814
6823
  key: p
@@ -7121,7 +7130,7 @@ const Fi = {
7121
7130
  ts: e.utc().format(),
7122
7131
  wt: !0,
7123
7132
  src: this.source
7124
- }, r = await re.get(`${this.gateway}/api/arc/meteo/query`, {
7133
+ }, r = await ie.get(`${this.gateway}/api/arc/meteo/query`, {
7125
7134
  params: t,
7126
7135
  headers: {
7127
7136
  Authorization: this.token || this.defaultMeteoToken
@@ -7138,209 +7147,212 @@ const Fi = {
7138
7147
  },
7139
7148
  handleParticle(a) {
7140
7149
  this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
7150
+ },
7151
+ handleToggleVersion() {
7152
+ this.$emit("toggleVersion", Math.random());
7141
7153
  }
7142
7154
  }
7143
- }, $i = {
7155
+ }, Fi = {
7144
7156
  key: 0,
7145
7157
  className: "map-gl-home"
7146
7158
  };
7147
- function Ui(a, e, t, r, i, o) {
7148
- var ee, G, J, pe, X, E, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le, ze, Ee, Re, Ie, De, Ae, Me, Be;
7149
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), N = z("IdmEcaZone"), O = z("IdmAlertZone"), j = z("IdmPort"), H = z("IdmLoadLine"), oe = z("IdmTimezone"), se = z("IdmVRA"), ne = z("IdmSpecialArea"), le = z("IdmTerminator"), ce = z("IdmLatLng"), he = z("IdmMeasure"), de = z("IdmPoint");
7150
- return t.map ? (x(), _("div", $i, [
7151
- P(n, R({
7159
+ function Vi(a, e, t, r, i, o) {
7160
+ var K, G, J, de, X, R, V, pe, q, me, ee, te, ae, fe, ge, be, ve, Le, ze, Re, Ee, Ie, De, Ae, Me, Be;
7161
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), O = z("IdmEcaZone"), j = z("IdmAlertZone"), W = z("IdmPort"), H = z("IdmLoadLine"), re = z("IdmTimezone"), oe = z("IdmVRA"), se = z("IdmSpecialArea"), ne = z("IdmTerminator"), le = z("IdmLatLng"), ce = z("IdmMeasure"), he = z("IdmPoint");
7162
+ return t.map ? (x(), _("div", Fi, [
7163
+ P(n, E({
7152
7164
  ref: "layer",
7153
7165
  map: t.map,
7154
- "toggle-version": i.toggleVersion,
7166
+ "toggle-version": t.toggleVersion,
7155
7167
  "map-projection": i.mapProjection
7156
7168
  }, a.$attrs, {
7157
7169
  onWeather: o.handleWeatherLayerChange,
7158
7170
  onOther: o.handleOtherLayerChange,
7159
- onCoordinate: e[0] || (e[0] = (Y) => i.showCoord = Y),
7160
- onMeasure: e[1] || (e[1] = (Y) => i.showMeasure = Y),
7161
- onPoint: e[2] || (e[2] = (Y) => i.showPoint = Y),
7171
+ onCoordinate: e[0] || (e[0] = (ue) => i.showCoord = ue),
7172
+ onMeasure: e[1] || (e[1] = (ue) => i.showMeasure = ue),
7173
+ onPoint: e[2] || (e[2] = (ue) => i.showPoint = ue),
7162
7174
  on3d: o.handle3dToggle,
7163
- onToggleVersion: e[3] || (e[3] = (Y) => i.toggleVersion = Y)
7164
- }), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
7165
- P(s, R({
7175
+ onHandleToggleVersion: o.handleToggleVersion
7176
+ }), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
7177
+ P(s, E({
7166
7178
  map: t.map,
7167
7179
  token: t.token,
7168
- enabled: (ee = i.otherLayers) == null ? void 0 : ee.enc,
7169
- "toggle-version": i.toggleVersion
7180
+ enabled: (K = i.otherLayers) == null ? void 0 : K.enc,
7181
+ "toggle-version": t.toggleVersion
7170
7182
  }, a.$attrs, {
7171
- onEnc: e[4] || (e[4] = (Y) => i.enc = Y)
7183
+ onEnc: e[3] || (e[3] = (ue) => i.enc = ue)
7172
7184
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7173
- P(c, R({
7185
+ P(c, E({
7174
7186
  map: t.map,
7175
7187
  "sig-wave": (G = i.weatherLayers) == null ? void 0 : G["sig-wave-height"],
7176
7188
  "before-layer": t.beforeLayer
7177
7189
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7178
- P(h, R({
7190
+ P(h, E({
7179
7191
  map: t.map,
7180
7192
  swell: (J = i.weatherLayers) == null ? void 0 : J.swell,
7181
7193
  "before-layer": t.beforeLayer
7182
7194
  }, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
7183
- P(d, R({
7195
+ P(d, E({
7184
7196
  map: t.map,
7185
- prmsl: (pe = i.weatherLayers) == null ? void 0 : pe.prmsl,
7197
+ prmsl: (de = i.weatherLayers) == null ? void 0 : de.prmsl,
7186
7198
  "before-layer": t.beforeLayer,
7187
7199
  "active-weather-layers": i.activeWeatherLayers
7188
7200
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7189
- P(p, R({
7201
+ P(p, E({
7190
7202
  map: t.map,
7191
7203
  iceberg: (X = i.weatherLayers) == null ? void 0 : X.iceberg,
7192
7204
  "before-layer": t.beforeLayer
7193
7205
  }, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7194
- P(g, R({
7206
+ P(g, E({
7195
7207
  map: t.map,
7196
7208
  date: t.ts,
7197
- tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
7209
+ tropicals: (R = i.weatherLayers) == null ? void 0 : R.tropicals,
7198
7210
  "before-layer": t.beforeLayer
7199
7211
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7200
- P(u, R({
7212
+ P(u, E({
7201
7213
  map: t.map,
7202
7214
  "map-projection": i.mapProjection,
7203
- current: (U = i.weatherLayers) == null ? void 0 : U.current,
7215
+ current: (V = i.weatherLayers) == null ? void 0 : V.current,
7204
7216
  "before-layer": t.beforeLayer,
7205
7217
  "show-particle": i.showCurrentParticle,
7206
7218
  "margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
7207
- "toggle-version": i.toggleVersion,
7219
+ "toggle-version": t.toggleVersion,
7208
7220
  "weather-layers": i.weatherLayers
7209
7221
  }, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7210
- P(y, R({
7222
+ P(y, E({
7211
7223
  viewport: i.viewport,
7212
- factor: (me = i.weatherLayers) == null ? void 0 : me["current-particle"],
7224
+ factor: (pe = i.weatherLayers) == null ? void 0 : pe["current-particle"],
7213
7225
  "before-layer": t.beforeLayer,
7214
- "toggle-version": i.toggleVersion
7226
+ "toggle-version": t.toggleVersion
7215
7227
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7216
- P(f, R({
7228
+ P(f, E({
7217
7229
  ref: "windBarb",
7218
7230
  map: t.map,
7219
7231
  "map-projection": i.mapProjection,
7220
7232
  wind: (q = i.weatherLayers) == null ? void 0 : q.wind,
7221
- current: (ue = i.weatherLayers) == null ? void 0 : ue.current,
7233
+ current: (me = i.weatherLayers) == null ? void 0 : me.current,
7222
7234
  "before-layer": t.beforeLayer,
7223
7235
  "margin-bottom": i.showRampColor ? "56px" : "30px",
7224
7236
  "show-particle": i.showWindParticle
7225
7237
  }, a.$attrs, {
7226
- "toggle-version": i.toggleVersion,
7238
+ "toggle-version": t.toggleVersion,
7227
7239
  "weather-layers": i.weatherLayers,
7228
7240
  onParticle: o.handleParticle
7229
7241
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
7230
- P(m, R({
7242
+ P(m, E({
7231
7243
  viewport: i.viewport,
7232
- factor: (te = i.weatherLayers) == null ? void 0 : te["wind-particle"],
7244
+ factor: (ee = i.weatherLayers) == null ? void 0 : ee["wind-particle"],
7233
7245
  "before-layer": t.beforeLayer,
7234
- "toggle-version": i.toggleVersion
7246
+ "toggle-version": t.toggleVersion
7235
7247
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7236
- P(v, R({
7248
+ P(v, E({
7237
7249
  viewport: i.viewport,
7238
- factor: (ae = i.weatherLayers) == null ? void 0 : ae.precip3h,
7250
+ factor: (te = i.weatherLayers) == null ? void 0 : te.precip3h,
7239
7251
  "before-layer": t.beforeLayer,
7240
- "toggle-version": i.toggleVersion
7252
+ "toggle-version": t.toggleVersion
7241
7253
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7242
- P(b, R({
7254
+ P(b, E({
7243
7255
  viewport: i.viewport,
7244
- factor: (ie = i.weatherLayers) == null ? void 0 : ie.visibility,
7256
+ factor: (ae = i.weatherLayers) == null ? void 0 : ae.visibility,
7245
7257
  "before-layer": t.beforeLayer,
7246
- "toggle-version": i.toggleVersion
7258
+ "toggle-version": t.toggleVersion
7247
7259
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7248
- P(w, R({
7260
+ P(w, E({
7249
7261
  viewport: i.viewport,
7250
7262
  factor: (fe = i.weatherLayers) == null ? void 0 : fe["water-temp"],
7251
7263
  "before-layer": t.beforeLayer,
7252
- "toggle-version": i.toggleVersion
7264
+ "toggle-version": t.toggleVersion
7253
7265
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7254
- P(k, R({
7266
+ P(k, E({
7255
7267
  viewport: i.viewport,
7256
7268
  factor: (ge = i.weatherLayers) == null ? void 0 : ge.temp,
7257
7269
  "before-layer": t.beforeLayer,
7258
- "toggle-version": i.toggleVersion
7270
+ "toggle-version": t.toggleVersion
7259
7271
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7260
- P(L, R({
7272
+ P(L, E({
7261
7273
  viewport: i.viewport,
7262
7274
  factor: (be = i.weatherLayers) == null ? void 0 : be.arctic,
7263
7275
  "before-layer": t.beforeLayer,
7264
- "toggle-version": i.toggleVersion
7276
+ "toggle-version": t.toggleVersion
7265
7277
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7266
- P(D, R({
7278
+ P(D, E({
7267
7279
  map: t.map,
7268
7280
  zone: (ve = i.otherLayers) == null ? void 0 : ve["war-zones"],
7269
7281
  "before-layer": t.beforeLayer
7270
7282
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7271
- P(A, R({
7283
+ P(A, E({
7272
7284
  map: t.map,
7273
7285
  area: (Le = i.otherLayers) == null ? void 0 : Le["gmdss-areas"],
7274
7286
  "before-layer": t.beforeLayer
7275
7287
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7276
- P(N, R({
7288
+ P(O, E({
7277
7289
  map: t.map,
7278
7290
  zone: (ze = i.otherLayers) == null ? void 0 : ze["eca-zones"],
7279
7291
  "before-layer": t.beforeLayer
7280
7292
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7281
- P(O, R({
7293
+ P(j, E({
7282
7294
  map: t.map,
7283
- zone: (Ee = i.otherLayers) == null ? void 0 : Ee["alert-zones"],
7295
+ zone: (Re = i.otherLayers) == null ? void 0 : Re["alert-zones"],
7284
7296
  "before-layer": t.beforeLayer
7285
7297
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7286
- P(j, R({
7298
+ P(W, E({
7287
7299
  map: t.map,
7288
- port: (Re = i.otherLayers) == null ? void 0 : Re.ports,
7300
+ port: (Ee = i.otherLayers) == null ? void 0 : Ee.ports,
7289
7301
  "before-layer": t.beforeLayer
7290
7302
  }, a.$attrs), null, 16, ["map", "port", "before-layer"]),
7291
- P(H, R({
7303
+ P(H, E({
7292
7304
  map: t.map,
7293
7305
  line: (Ie = i.otherLayers) == null ? void 0 : Ie["load-lines"],
7294
7306
  "before-layer": t.beforeLayer
7295
7307
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7296
- P(oe, R({
7308
+ P(re, E({
7297
7309
  map: t.map,
7298
7310
  zone: (De = i.otherLayers) == null ? void 0 : De["time-zones"],
7299
7311
  "before-layer": t.beforeLayer
7300
7312
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7301
- P(se, R({
7313
+ P(oe, E({
7302
7314
  map: t.map,
7303
7315
  area: (Ae = i.otherLayers) == null ? void 0 : Ae["voluntary-reporting-area"],
7304
7316
  "before-layer": t.beforeLayer
7305
7317
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7306
- P(ne, R({
7318
+ P(se, E({
7307
7319
  map: t.map,
7308
7320
  area: (Me = i.otherLayers) == null ? void 0 : Me["special-area"],
7309
7321
  "before-layer": t.beforeLayer
7310
7322
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7311
- P(le, R({
7323
+ P(ne, E({
7312
7324
  map: t.map,
7313
7325
  area: (Be = i.otherLayers) == null ? void 0 : Be["day-night"]
7314
7326
  }, a.$attrs), null, 16, ["map", "area"]),
7315
- P(ce, R({
7327
+ P(le, E({
7316
7328
  map: t.map,
7317
7329
  show: i.showCoord,
7318
- "toggle-version": i.toggleVersion
7330
+ "toggle-version": t.toggleVersion
7319
7331
  }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
7320
- P(he, R({
7332
+ P(ce, E({
7321
7333
  map: t.map,
7322
7334
  show: i.showMeasure
7323
7335
  }, a.$attrs), null, 16, ["map", "show"]),
7324
- P(de, R({
7336
+ P(he, E({
7325
7337
  map: t.map,
7326
7338
  show: i.showPoint,
7327
7339
  meteo: i.meteo
7328
7340
  }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7329
7341
  ])) : B("", !0);
7330
7342
  }
7331
- const Vi = /* @__PURE__ */ T(Fi, [["render", Ui]]), Ki = {
7343
+ const Ui = /* @__PURE__ */ T($i, [["render", Vi]]), Ki = {
7332
7344
  install(a) {
7333
- a.component("MapboxGL", Vi), a.component("TropicalGL", Oe), a.component("LatLngGL", je);
7345
+ a.component("MapboxGL", Ui), a.component("TropicalGL", je), a.component("LatLngGL", We);
7334
7346
  }
7335
7347
  };
7336
7348
  export {
7337
- je as LatLngGL,
7338
- Vi as MapboxGL,
7349
+ We as LatLngGL,
7350
+ Ui as MapboxGL,
7339
7351
  Ki as MapboxGLPlugin,
7340
7352
  gt as MapboxHelper,
7341
- V as ParticleSchema,
7342
- Oe as TropicalGL,
7353
+ U as ParticleSchema,
7354
+ je as TropicalGL,
7343
7355
  Te as Viewport,
7344
7356
  ye as WebGL,
7345
- W as WebGLSchema
7357
+ N as WebGLSchema
7346
7358
  };