@idmwx/idmui-gl3 3.6.3 → 3.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -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 E = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
4
- import { LayerHelper as Ve, CompanyHelper as Me, LngLatHelper as K, convertToMonotonicLng2 as st, calculateDistance as Oe, calculateBearing as je, convertToMonotonicLng as pe, interpolateCoordinates as Fe, 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 U, popScopeId as G, withDirectives as $e, vShow as Be, createStaticVNode as lt, mergeProps as I } from "vue";
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";
6
6
  import * as C from "@turf/turf";
7
7
  import ct from "@mapbox/sphericalmercator";
8
- import Q from "moment";
9
- import ie from "mapbox-gl";
8
+ import ee from "moment";
9
+ import ne from "mapbox-gl";
10
10
  import { TropicalHelper as et } from "@idm-plugin/geo";
11
- import ae from "axios";
11
+ import se 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: [...Ve.WEATHER_LAYERS],
50
- other: [...Ve.OTHER_LAYERS]
49
+ weather: [...Ue.WEATHER_LAYERS],
50
+ other: [...Ue.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) => (U("data-v-6938e629"), 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 = [
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 = [
145
145
  mt
146
146
  ], yt = { class: "bar-item tool-bars" }, ft = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
147
147
  ft
@@ -276,7 +276,7 @@ function Ft(t, e, a, r, i, o) {
276
276
  ], 4)
277
277
  ]);
278
278
  }
279
- const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-6938e629"]]);
279
+ const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-cb712a44"]]);
280
280
  const Ut = {
281
281
  name: "IdmWindBarb",
282
282
  props: {
@@ -383,22 +383,22 @@ const Ut = {
383
383
  else {
384
384
  this.map.addSource(this.source, { type: "geojson", data: s });
385
385
  for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
386
- const h = (this.barbs ?? [])[c] || 0, p = (this.barbs ?? [])[c + 1] || 0, d = h < 10 ? `00${h}kts` : h < 100 ? `0${h}kts` : `${h}kts`;
386
+ const h = (this.barbs ?? [])[c] || 0, d = (this.barbs ?? [])[c + 1] || 0, p = h < 10 ? `00${h}kts` : h < 100 ? `0${h}kts` : `${h}kts`;
387
387
  this.map.addLayer(
388
388
  {
389
- id: d,
389
+ id: p,
390
390
  type: "symbol",
391
391
  filter: [
392
392
  "all",
393
393
  // @ts-ignore
394
394
  [">=", "spd", h],
395
395
  // @ts-ignore
396
- ["<", "spd", p]
396
+ ["<", "spd", d]
397
397
  ],
398
398
  source: this.source,
399
399
  layout: {
400
400
  "symbol-placement": "point",
401
- "icon-image": d,
401
+ "icon-image": p,
402
402
  // mapbox sprite
403
403
  "icon-size": 0.14,
404
404
  "icon-offset": [0, -20],
@@ -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 Ue {
488
+ class Ge {
489
489
  constructor(e) {
490
- E(this, "map");
491
- E(this, "mercator");
492
- E(this, "rampColorLayer");
493
- E(this, "rampColorSource");
494
- E(this, "particleLayer");
495
- E(this, "particleSource");
496
- E(this, "rampColorCanvas");
497
- E(this, "particleCanvas");
498
- E(this, "ratio");
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");
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
  /**
@@ -530,8 +530,8 @@ class Ue {
530
530
  * @param [lb.x, lb.y, rt.x, rt.y]
531
531
  */
532
532
  getBoundPixel() {
533
- const e = this.map.getBounds(), a = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, p] = this.mercator.px([o, r[1]], a), [d, y] = this.mercator.px([s, i[1]], a), u = Math.round(this.mercator.size * Math.pow(2, a) * (n + c));
534
- return [d, y, h + u, p];
533
+ const e = this.map.getBounds(), a = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, d] = this.mercator.px([o, r[1]], a), [p, y] = this.mercator.px([s, i[1]], a), m = Math.round(this.mercator.size * Math.pow(2, a) * (n + c));
534
+ return [p, y, h + m, d];
535
535
  }
536
536
  /**
537
537
  * [视窗边界像素宽度]
@@ -546,13 +546,13 @@ class Ue {
546
546
  * @param zoom
547
547
  */
548
548
  getWorldCopy(e, a) {
549
- const r = 2 ** a, [i, o, n, s] = e.map((p) => ~~(p / (r * 256))), c = [];
550
- for (let p = s; p <= o; p++)
551
- for (let d = i; d <= n; d++)
552
- c.push([d, p]);
553
- return c.map((p) => {
554
- const d = 2 ** a * 256;
555
- return [p[0] * d, p[1] * d, d];
549
+ const r = 2 ** a, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
550
+ for (let d = s; d <= o; d++)
551
+ for (let p = i; p <= n; p++)
552
+ c.push([p, d]);
553
+ return c.map((d) => {
554
+ const p = 2 ** a * 256;
555
+ return [d[0] * p, d[1] * p, p];
556
556
  });
557
557
  }
558
558
  resize() {
@@ -568,7 +568,7 @@ class Ue {
568
568
  a !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
569
569
  }
570
570
  }
571
- class le {
571
+ class ve {
572
572
  /**
573
573
  * 创建着色器
574
574
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -655,8 +655,8 @@ class le {
655
655
  const s = n.getContext("2d");
656
656
  if (s && e) {
657
657
  const c = s == null ? void 0 : s.createLinearGradient(0, 0, 256, 0);
658
- return a.forEach(([h, p]) => {
659
- c.addColorStop(h, p);
658
+ return a.forEach(([h, d]) => {
659
+ c.addColorStop(h, d);
660
660
  }), s.fillStyle = c, s.fillRect(0, 0, 256, 1), {
661
661
  canvas: n,
662
662
  texture: this.createTexture(
@@ -673,11 +673,11 @@ class le {
673
673
  }
674
674
  setupParticle(e, a = 1e3) {
675
675
  const r = Math.ceil(Math.sqrt(a)), i = r * r, o = new Uint8Array(i * 4);
676
- for (let p = 0; p < o.length; p++)
677
- o[p] = Math.floor(Math.random() * 256);
676
+ for (let d = 0; d < o.length; d++)
677
+ o[d] = Math.floor(Math.random() * 256);
678
678
  const n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), c = new Float32Array(i);
679
- for (let p = 0; p < i; p++)
680
- c[p] = p;
679
+ for (let d = 0; d < i; d++)
680
+ c[d] = d;
681
681
  const h = this.createDataBuffer(e, "array", c);
682
682
  return { resolution: r, total: i, texture0: n, texture1: s, indexBuffer: h };
683
683
  }
@@ -694,26 +694,26 @@ class le {
694
694
  return {};
695
695
  }
696
696
  bindParticle(e, a, r, i, o, n) {
697
- const s = this.createProgramWrapper(e, a, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
698
- return { particle: s, screen: c, update: h, quadBuffer: p, frameBuffer: d };
697
+ const s = this.createProgramWrapper(e, a, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
698
+ return { particle: s, screen: c, update: h, quadBuffer: d, frameBuffer: p };
699
699
  }
700
700
  draw(e, a, r, i, o, n, s) {
701
701
  var c, h;
702
702
  if (a && r) {
703
703
  e.resize(), a == null || a.viewport(0, 0, (c = a == null ? void 0 : a.canvas) == null ? void 0 : c.width, (h = a == null ? void 0 : a.canvas) == null ? void 0 : h.height), a.clearColor(0, 0, 0, 0), a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT);
704
704
  try {
705
- const p = a.getUniformLocation(r, "u_resolution"), d = a.getUniformLocation(r, "u_image"), y = a.getUniformLocation(r, "u_color");
706
- if (a.useProgram(r), a.uniform2f(p, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), a.uniform1i(d, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), a.uniform1i(y, 1), s != null && s.uvRange && (s != null && s.sRange)) {
707
- const m = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
708
- a.uniform2f(m, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
705
+ const d = a.getUniformLocation(r, "u_resolution"), p = a.getUniformLocation(r, "u_image"), y = a.getUniformLocation(r, "u_color");
706
+ if (a.useProgram(r), a.uniform2f(d, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), a.uniform1i(p, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), a.uniform1i(y, 1), s != null && s.uvRange && (s != null && s.sRange)) {
707
+ const u = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
708
+ a.uniform2f(u, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
709
709
  }
710
- const u = e.getBoundPixel(), g = e.map.getZoom() + 1, f = e.getWorldCopy(u, g);
711
- for (const m of f) {
712
- const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, _, A, D] = [v, w + v, b, w + b], $ = new Float32Array([k, A, _, A, k, D, k, D, _, A, _, D]);
710
+ const m = e.getBoundPixel(), g = e.map.getZoom() + 1, f = e.getWorldCopy(m, g);
711
+ for (const u of f) {
712
+ const v = (u[0] - m[0]) * e.ratio, b = (u[1] - m[3]) * e.ratio, w = u[2] * e.ratio, [k, _, I, D] = [v, w + v, b, w + b], $ = new Float32Array([k, I, _, I, k, D, k, D, _, I, _, 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
- } catch (p) {
716
- console.log(`render failed...${p}`);
715
+ } catch (d) {
716
+ console.log(`render failed...${d}`);
717
717
  }
718
718
  }
719
719
  }
@@ -761,7 +761,7 @@ class le {
761
761
  class B {
762
762
  }
763
763
  // 顶点渲染
764
- E(B, "vertexSchema", `
764
+ A(B, "vertexSchema", `
765
765
  //canvas 坐标系上的坐标 (x, y)
766
766
  attribute vec2 a_position; //像素坐标
767
767
  attribute vec2 a_texCoord; //纹理坐标
@@ -776,7 +776,7 @@ E(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
- E(B, "uvFragmentSchema", `
779
+ A(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 @@ E(B, "uvFragmentSchema", `
795
795
 
796
796
  gl_FragColor = color;
797
797
  }`), // 类如浪、气压等单变量片元渲染
798
- E(B, "fragmentSchema", `
798
+ A(B, "fragmentSchema", `
799
799
  precision mediump float;
800
800
  uniform sampler2D u_image; // 灰度
801
801
  uniform sampler2D u_color; // 色值映射
@@ -806,9 +806,9 @@ E(B, "fragmentSchema", `
806
806
  vec4 color = texture2D(u_color, vec2(rgba.r, 0));
807
807
  gl_FragColor = color;
808
808
  }`);
809
- class F {
809
+ class V {
810
810
  }
811
- E(F, "vertexSchema", `
811
+ A(V, "vertexSchema", `
812
812
  precision mediump float;
813
813
 
814
814
  attribute float a_index; // 索引
@@ -832,7 +832,7 @@ E(F, "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
- }`), E(F, "fragmentSchema", `
835
+ }`), A(V, "fragmentSchema", `
836
836
  precision mediump float;
837
837
 
838
838
  uniform sampler2D u_factor;
@@ -854,7 +854,7 @@ E(F, "vertexSchema", `
854
854
 
855
855
  float f = 1.0 - uv.b;
856
856
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
857
- }`), E(F, "quadVertSchema", `
857
+ }`), A(V, "quadVertSchema", `
858
858
  precision mediump float;
859
859
 
860
860
  attribute vec2 a_pos;
@@ -864,7 +864,7 @@ E(F, "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
- }`), E(F, "screenFragmentSchema", `
867
+ }`), A(V, "screenFragmentSchema", `
868
868
  precision mediump float;
869
869
 
870
870
  uniform sampler2D u_screen;
@@ -876,7 +876,7 @@ E(F, "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
- }`), E(F, "updateFragmentSchema", `
879
+ }`), A(V, "updateFragmentSchema", `
880
880
  precision mediump float;
881
881
 
882
882
  uniform sampler2D u_particles;
@@ -957,12 +957,12 @@ E(F, "vertexSchema", `
957
957
  }`);
958
958
  class Qt {
959
959
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
960
- E(this, "token");
961
- E(this, "mapboxCustomer");
962
- E(this, "i4");
963
- E(this, "hi");
964
- E(this, "td");
965
- E(this, "windy");
960
+ A(this, "token");
961
+ A(this, "mapboxCustomer");
962
+ A(this, "i4");
963
+ A(this, "hi");
964
+ A(this, "td");
965
+ A(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: Ue
2569
+ type: Ge
2570
2570
  },
2571
2571
  bottom: {
2572
2572
  type: String,
@@ -2583,7 +2583,7 @@ const Kt = {
2583
2583
  texture: void 0,
2584
2584
  rampColor: void 0,
2585
2585
  aPositionBuffer: void 0,
2586
- webgl: new le(),
2586
+ webgl: new ve(),
2587
2587
  etime: void 0,
2588
2588
  wrapper: void 0,
2589
2589
  animation: void 0,
@@ -2687,11 +2687,11 @@ const Kt = {
2687
2687
  ];
2688
2688
  this.wrapper = this.webgl.bindParticle(
2689
2689
  this.particleContext,
2690
- F.vertexSchema,
2691
- F.fragmentSchema,
2692
- F.quadVertSchema,
2693
- F.screenFragmentSchema,
2694
- F.updateFragmentSchema
2690
+ V.vertexSchema,
2691
+ V.fragmentSchema,
2692
+ V.quadVertSchema,
2693
+ V.screenFragmentSchema,
2694
+ V.updateFragmentSchema
2695
2695
  ), this.wrapper.color = this.webgl.setup(this.particleContext, t, !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);
2696
2696
  }
2697
2697
  },
@@ -2721,7 +2721,7 @@ const Kt = {
2721
2721
  });
2722
2722
  }
2723
2723
  }
2724
- }, re = (t) => (U("data-v-41a686d0"), t = t(), G(), t), ea = { key: 0 }, ta = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "kts", -1)), aa = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "0", -1)), ia = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "5", -1)), ra = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "10", -1)), oa = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "20", -1)), sa = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "30", -1)), na = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "40", -1)), la = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "60", -1)), ca = [
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 = [
2725
2725
  ta,
2726
2726
  aa,
2727
2727
  ia,
@@ -2957,7 +2957,7 @@ const _a = {
2957
2957
  type: Object
2958
2958
  },
2959
2959
  viewport: {
2960
- type: Ue
2960
+ type: Ge
2961
2961
  },
2962
2962
  // right: {
2963
2963
  // type: String,
@@ -2978,7 +2978,7 @@ const _a = {
2978
2978
  texture: void 0,
2979
2979
  rampColor: void 0,
2980
2980
  aPositionBuffer: void 0,
2981
- webgl: new le(),
2981
+ webgl: new ve(),
2982
2982
  etime: void 0,
2983
2983
  wrapper: void 0,
2984
2984
  animation: void 0,
@@ -3073,11 +3073,11 @@ const _a = {
3073
3073
  ];
3074
3074
  this.wrapper = this.webgl.bindParticle(
3075
3075
  this.particleContext,
3076
- F.vertexSchema,
3077
- F.fragmentSchema,
3078
- F.quadVertSchema,
3079
- F.screenFragmentSchema,
3080
- F.updateFragmentSchema
3076
+ V.vertexSchema,
3077
+ V.fragmentSchema,
3078
+ V.quadVertSchema,
3079
+ V.screenFragmentSchema,
3080
+ V.updateFragmentSchema
3081
3081
  ), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
3082
3082
  ...this.wrapper,
3083
3083
  ...this.webgl.setupParticle(this.particleContext, 12e3),
@@ -3111,7 +3111,7 @@ const _a = {
3111
3111
  });
3112
3112
  }
3113
3113
  }
3114
- }, ce = (t) => (U("data-v-a182db4f"), t = t(), G(), t), wa = { key: 0 }, La = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "kts", -1)), xa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Ca = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Sa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0.8", -1)), ka = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.6", -1)), za = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), Pa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ta = [
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 = [
3115
3115
  La,
3116
3116
  xa,
3117
3117
  Ca,
@@ -3610,14 +3610,17 @@ const Ua = {
3610
3610
  showTropicals: !1,
3611
3611
  activeTropicals: void 0,
3612
3612
  activeTropicalsMarker: void 0,
3613
- empty: C.featureCollection([])
3613
+ empty: C.featureCollection([]),
3614
+ circleSource: "circle-source",
3615
+ circleSourceData: C.featureCollection([]),
3616
+ circleLayer: "tropical-circle-layer"
3614
3617
  };
3615
3618
  },
3616
3619
  computed: {
3617
3620
  computeTime() {
3618
3621
  return function(t) {
3619
3622
  if (t) {
3620
- const e = Q(t).utc();
3623
+ const e = ee(t).utc();
3621
3624
  return `${e.format("MMM-DD,HHmm[Z]")} (${e == null ? void 0 : e.fromNow()})`;
3622
3625
  }
3623
3626
  return "-";
@@ -3640,30 +3643,30 @@ const Ua = {
3640
3643
  "tropicals.version": {
3641
3644
  handler() {
3642
3645
  var r, i;
3643
- const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = Q().utc().hour(), a = [];
3646
+ const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = ee().utc().hour(), a = [];
3644
3647
  t.forEach((o) => {
3645
3648
  var n, s, c;
3646
3649
  (n = o.properties) != null && n.name && !a.includes((s = o.properties) == null ? void 0 : s.name) && a.push((c = o.properties) == null ? void 0 : c.name);
3647
3650
  }), a.forEach((o) => {
3648
3651
  var h;
3649
3652
  let n = 0, s;
3650
- const c = t.filter((p) => {
3651
- var d, y;
3652
- return ((y = (d = p.properties) == null ? void 0 : d.category) == null ? void 0 : y.split("-")[0]) === o;
3653
+ const c = t.filter((d) => {
3654
+ var p, y;
3655
+ return ((y = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : y.split("-")[0]) === o;
3653
3656
  });
3654
- (h = c.filter((p) => {
3655
- var d, y;
3656
- return ((d = p.geometry) == null ? void 0 : d.type) === "LineString" && ((y = p.properties) == null ? void 0 : y.type) === "forecast";
3657
- })[0]) == null || h.properties.model, c.forEach((p, d) => {
3658
- var y, u, g, f, m, v;
3659
- ((y = p.geometry) == null ? void 0 : y.type) === "Point" && ((u = p.properties) == null ? void 0 : u.type) === "history" && (n = d, s = s === void 0 ? d : s), ((g = p.geometry) == null ? void 0 : g.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = d), ((m = p.geometry) == null ? void 0 : m.type) === "LineString" && ((v = p.properties) == null || v.type);
3660
- }), c.map((p, d) => {
3661
- var y, u, g, f, m, v, b, w;
3662
- if (((y = p.geometry) == null ? void 0 : y.type) === "LineString" && ((u = p.properties) == null || u.type), ((g = p.geometry) == null ? void 0 : g.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && (p.properties.name = o), ((m = p.geometry) == null ? void 0 : m.type) === "Point" && ((v = p.properties) == null ? void 0 : v.type) === "history") {
3663
- const k = ((w = (b = p.properties) == null ? void 0 : b.format) == null ? void 0 : w.slice(7, 12)) === Q().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
3664
- p.properties.showHistoryLabel = k || d === n, p.properties.showNameLabel = d === n, p.properties.name = o;
3657
+ (h = c.filter((d) => {
3658
+ var p, y;
3659
+ return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((y = d.properties) == null ? void 0 : y.type) === "forecast";
3660
+ })[0]) == null || h.properties.model, c.forEach((d, p) => {
3661
+ var y, m, g, f, u, v;
3662
+ ((y = d.geometry) == null ? void 0 : y.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" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
3663
+ }), c.map((d, p) => {
3664
+ var y, m, g, f, u, v, b, w;
3665
+ if (((y = d.geometry) == null ? void 0 : y.type) === "LineString" && ((m = d.properties) == null || m.type), ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((f = d.properties) == null ? void 0 : f.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 = (b = d.properties) == null ? void 0 : b.format) == null ? void 0 : w.slice(7, 12)) === ee().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
3667
+ d.properties.showHistoryLabel = k || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
3665
3668
  }
3666
- return p;
3669
+ return d;
3667
3670
  });
3668
3671
  }), this.handleInit();
3669
3672
  }
@@ -3701,16 +3704,16 @@ const Ua = {
3701
3704
  ));
3702
3705
  },
3703
3706
  handleRender() {
3704
- var t, e, a, r, i, o, n, s, c, h, p;
3707
+ var t, e, a, r, i, o, n, s, c, h, d;
3705
3708
  if (!this.map)
3706
3709
  setTimeout(() => {
3707
3710
  this.handleRender();
3708
3711
  }, 500);
3709
3712
  else {
3710
3713
  if (this.tropicals) {
3711
- const d = (/* @__PURE__ */ new Date()).valueOf();
3712
- let y = 0, u = 0;
3713
- (t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), u = (/* @__PURE__ */ new Date()).valueOf() - (d + y), console.log("[tropicals] update elapsed: ", u, ", total: ", y += u)) : (this.map.addSource(this.source, {
3714
+ const p = (/* @__PURE__ */ new Date()).valueOf();
3715
+ let y = 0, m = 0;
3716
+ (t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropicals] update elapsed: ", m, ", total: ", y += m)) : (this.map.addSource(this.source, {
3714
3717
  type: "geojson",
3715
3718
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
3716
3719
  }), this.map.addLayer({
@@ -3807,7 +3810,7 @@ const Ua = {
3807
3810
  ],
3808
3811
  "text-halo-width": 4
3809
3812
  }
3810
- }), u = (/* @__PURE__ */ new Date()).valueOf() - (d + y), console.log("[tropical] add elapsed: ", u, ", total: ", y += u)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((s = this.map) == null || s.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), u = (/* @__PURE__ */ new Date()).valueOf() - (d + y), console.log("[tropical] update elapsed: ", u, ", total: ", y += u)) : (this.map.addSource(this.clusterSource, {
3813
+ }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", m, ", total: ", y += m)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((s = this.map) == null || s.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] update elapsed: ", m, ", total: ", y += m)) : (this.map.addSource(this.clusterSource, {
3811
3814
  type: "geojson",
3812
3815
  data: (c = this.tropicals) != null && c.active ? (h = this.tropicals) == null ? void 0 : h.data : this.empty
3813
3816
  // cluster: true,
@@ -3922,22 +3925,22 @@ const Ua = {
3922
3925
  "text-halo-color": "#146bf5",
3923
3926
  "text-halo-width": 4
3924
3927
  }
3925
- }), u = (/* @__PURE__ */ new Date()).valueOf() - (d + y), console.log("[tropical] add elapsed: ", u, ", total: ", y += u));
3928
+ }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", m, ", total: ", y += m));
3926
3929
  }
3927
- if (!((p = this.tropicals) != null && p.cached)) {
3928
- const d = et.interpolate(this.tropicals, 1), y = JSON.parse(JSON.stringify(d)), u = [];
3930
+ if (this.handleDrawCircle(), !((d = this.tropicals) != null && d.cached)) {
3931
+ const p = et.interpolate(this.tropicals, 1), y = JSON.parse(JSON.stringify(p)), m = [];
3929
3932
  y.forEach((g) => {
3930
- var f, m, v;
3931
- (f = g.properties) != null && f.name && !u.includes((m = g.properties) == null ? void 0 : m.name) && u.push((v = g.properties) == null ? void 0 : v.name);
3932
- }), u.forEach((g) => {
3933
+ var f, u, v;
3934
+ (f = g.properties) != null && f.name && !m.includes((u = g.properties) == null ? void 0 : u.name) && m.push((v = g.properties) == null ? void 0 : v.name);
3935
+ }), m.forEach((g) => {
3933
3936
  var v;
3934
- const m = (v = y.filter((b) => {
3937
+ const u = (v = y.filter((b) => {
3935
3938
  var w;
3936
3939
  return ((w = b.properties) == null ? void 0 : w.name) === g;
3937
3940
  })[0]) == null ? void 0 : v.properties.model;
3938
3941
  y.map((b, w) => {
3939
3942
  var k, _;
3940
- return ((k = b.properties) == null ? void 0 : k.name) === g && (b.properties.disabled = ((_ = b.properties) == null ? void 0 : _.model) !== m), b;
3943
+ return ((k = b.properties) == null ? void 0 : k.name) === g && (b.properties.disabled = ((_ = b.properties) == null ? void 0 : _.model) !== u), b;
3941
3944
  });
3942
3945
  }), this.interpolateData = JSON.parse(JSON.stringify(y));
3943
3946
  }
@@ -3946,17 +3949,17 @@ const Ua = {
3946
3949
  },
3947
3950
  handleClear() {
3948
3951
  var t;
3949
- 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));
3952
+ 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));
3950
3953
  },
3951
3954
  handleDateChange() {
3952
- var t, e, a, r, i, o, n, s, c, h, p, d, y, u, g, f, m, v, b, w, k, _, A, D, $, W, O, H;
3953
- if ((t = this.interpolateMarkers) == null || t.forEach((X) => X == null ? void 0 : X.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3954
- const X = Q(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ee = this.interpolateData.filter((R) => R.properties.date === X.format() && !R.properties.disabled), he = this.handleComputePolygons(ee), te = C.featureCollection([...ee]);
3955
- he.forEach((R) => {
3956
- te.features.push(R);
3957
- }), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(te) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3955
+ var t, e, a, r, i, o, n, s, c, h, d, p, y, m, g, f, u, v, b, w, k, _, I, D, $, W, O, U, ae, de, pe, me, ue, ye;
3956
+ 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);
3960
+ }), (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, {
3958
3961
  type: "geojson",
3959
- data: te
3962
+ data: Y
3960
3963
  }), (o = this.map) == null || o.addLayer({
3961
3964
  id: this.interpolateLineLayer,
3962
3965
  type: "line",
@@ -3968,17 +3971,17 @@ const Ua = {
3968
3971
  "line-width": 2
3969
3972
  }
3970
3973
  })), this.interpolateMarkers = [];
3971
- for (const R of ee)
3974
+ for (const R of q)
3972
3975
  if (!R.properties.disabled) {
3973
- let V = "#f44336";
3974
- ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? V = "#03f869" : ((h = (c = R.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((d = (p = R.properties) == null ? void 0 : p.wind) == null ? void 0 : d.spd) < 24.5 ? V = "#f2f202" : ((u = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : u.spd) >= 24.5 && ((f = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : f.spd) < 32.7 ? V = "#ff9100" : ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) < 41.5 ? V = "#f44336" : ((_ = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (A = R.properties) == null ? void 0 : A.wind) == null ? void 0 : D.spd) < 51 ? V = "#c604a4" : ((W = ($ = R.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) >= 51 ? V = "#6b05bb" : V = "#f44336";
3975
- const de = `<svg t="1719918955501"
3976
+ 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 = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : m.spd) >= 24.5 && ((f = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : f.spd) < 32.7 ? F = "#ff9100" : ((v = (u = R.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (b = R.properties) == null ? void 0 : b.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";
3978
+ const ge = `<svg t="1719918955501"
3976
3979
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3977
3980
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
3978
3981
  <path
3979
3982
  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"
3980
- fill="${V}" p-id="18383"></path>
3981
- <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}"
3983
+ fill="${F}" p-id="18383"></path>
3984
+ <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="${F}"
3982
3985
  p-id="18384"></path>
3983
3986
  <path
3984
3987
  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"
@@ -3986,39 +3989,50 @@ const Ua = {
3986
3989
  <path
3987
3990
  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"
3988
3991
  fill="#ffffff" p-id="18386"></path>
3989
- </svg>`, q = document.createElement("div");
3990
- q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${de}</div>`;
3991
- const ne = new ie.Marker(q).setLngLat(R.geometry.coordinates).addTo(this.map);
3992
- this.interpolateMarkers.push(ne);
3992
+ </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(
3998
+ 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
+ ), (de = this.circleSourceData) == null || de.features.push(
4002
+ C.circle(oe.coordinates, oe.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4003
+ );
4004
+ }
4005
+ (me = (pe = this.map) == null ? void 0 : pe.getSource(this.circleSource)) == null || me.setData(this.circleSourceData);
3993
4006
  }
3994
4007
  } else
3995
- (O = this.map) != null && O.getSource(this.interpolateSource) && ((H = this.map) == null || H.getSource(this.interpolateSource).setData(this.empty));
4008
+ (ue = this.map) != null && ue.getSource(this.interpolateSource) && ((ye = this.map) == null || ye.getSource(this.interpolateSource).setData(this.empty));
3996
4009
  },
3997
4010
  handleClick(t) {
3998
- var o, n, s, c, h, p;
4011
+ var o, n, s, c, h, d, p, y;
3999
4012
  const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
4000
- (d) => {
4001
- var y;
4002
- return d.geometry.type === "LineString" && d.properties.type === "forecast" && d.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
4013
+ (m) => {
4014
+ var g;
4015
+ return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
4003
4016
  }
4004
4017
  );
4005
- a.sort((d, y) => {
4006
- var u, g, f, m;
4007
- return ((u = d.properties) == null ? void 0 : u.model) === "cma" ? -1 : ((g = d.properties) == null ? void 0 : g.model) === "jma" ? ((f = y.properties) == null ? void 0 : f.model) === "cma" ? 1 : -1 : d.properties.model === "ecmwf" ? ["jma", "cma"].includes((m = y.properties) == null ? void 0 : m.model) ? 1 : -1 : 0;
4018
+ a.sort((m, g) => {
4019
+ var f, u, v, b;
4020
+ return ((f = m.properties) == null ? void 0 : f.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;
4008
4021
  });
4009
4022
  const r = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
4010
- (d) => {
4011
- var y;
4012
- return d.geometry.type === "LineString" && d.properties.type === "history" && d.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
4023
+ (m) => {
4024
+ var g;
4025
+ return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
4013
4026
  }
4014
4027
  );
4015
4028
  this.activeTropicals = {
4016
4029
  name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
4017
- forecasts: a.map((d) => d.properties),
4018
- history: (p = r[0]) == null ? void 0 : p.properties
4030
+ forecasts: a.map((m) => m.properties),
4031
+ history: (d = r[0]) == null ? void 0 : d.properties,
4032
+ showCircle: (y = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : y.showCircle
4019
4033
  }, this.showTropicals = !0;
4020
4034
  const i = document.getElementById("active-tropical");
4021
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ie.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
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
4036
  },
4023
4037
  handleForecastToggle(t) {
4024
4038
  var r, i, o, n, s, c;
@@ -4033,6 +4047,30 @@ const Ua = {
4033
4047
  handleStrikeProbability(t) {
4034
4048
  this.$emit("tropicalProbability", t);
4035
4049
  },
4050
+ handleToggleCircles(t) {
4051
+ var e, a;
4052
+ t.showCircle = !t.showCircle, (a = (e = this.tropicals.data) == null ? void 0 : e.features) == null || a.forEach((r) => {
4053
+ r.properties.name === t.name && (r.properties.showCircle = t.showCircle);
4054
+ }), this.handleRender();
4055
+ },
4056
+ handleDrawCircle() {
4057
+ var t, e;
4058
+ (t = this.map) != null && t.getSource(this.circleSource) ? (e = this.map) == null || e.getSource(this.circleSource).setData(this.circleSourceData) : (this.map.addSource(this.circleSource, {
4059
+ type: "geojson",
4060
+ data: this.circleSourceData
4061
+ }), this.map.addLayer({
4062
+ id: this.circleLayer,
4063
+ type: "line",
4064
+ source: this.circleSource,
4065
+ filter: ["all", ["==", "$type", "Polygon"], ["==", "type", "tropicalCircle"]],
4066
+ paint: {
4067
+ "line-color": "#fff",
4068
+ "line-width": 2,
4069
+ "line-opacity": 1,
4070
+ "line-dasharray": [1, 1]
4071
+ }
4072
+ }));
4073
+ },
4036
4074
  handleComputePolygons(t) {
4037
4075
  const e = [];
4038
4076
  for (const a of t) {
@@ -4079,7 +4117,7 @@ const Ua = {
4079
4117
  return C.lineToPolygon(i, { properties: a });
4080
4118
  }
4081
4119
  }
4082
- }, Ge = (t) => (U("data-v-ef78324d"), t = t(), G(), t), Ga = {
4120
+ }, Ne = (t) => (G("data-v-26b44fd1"), t = t(), H(), t), Ga = {
4083
4121
  id: "active-tropical",
4084
4122
  class: "active-tropical"
4085
4123
  }, Ha = { class: "header-box" }, Za = { class: "main" }, Xa = { key: 0 }, Ja = { class: "sub" }, qa = {
@@ -4088,33 +4126,36 @@ const Ua = {
4088
4126
  }, Ya = { class: "content" }, Qa = { class: "row" }, Ka = {
4089
4127
  class: "col col-left",
4090
4128
  style: { "justify-content": "flex-start" }
4091
- }, ei = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), ti = {
4129
+ }, ei = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), ti = {
4092
4130
  class: "col col-right",
4093
4131
  style: { "justify-content": "flex-start" }
4094
- }, ai = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ii = { class: "row" }, ri = {
4132
+ }, ai = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ii = { class: "row" }, ri = {
4133
+ class: "col col-24",
4134
+ 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 = {
4095
4136
  class: "col col-24",
4096
4137
  style: { "justify-content": "flex-start" }
4097
- }, 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-ef78324d></div><div class="row" style="padding:2px 10px;" data-v-ef78324d><div class="legend" data-v-ef78324d><div class="icon td" data-v-ef78324d></div><div class="label" data-v-ef78324d>TD</div></div><div class="legend" data-v-ef78324d><div class="icon ts" data-v-ef78324d></div><div class="label" data-v-ef78324d>TS</div></div><div class="legend" data-v-ef78324d><div class="icon sts" data-v-ef78324d></div><div class="label" data-v-ef78324d>STS</div></div><div class="legend" data-v-ef78324d><div class="icon ty" data-v-ef78324d></div><div class="label" data-v-ef78324d>TY</div></div><div class="legend" data-v-ef78324d><div class="icon sty" data-v-ef78324d></div><div class="label" data-v-ef78324d>STY</div></div><div class="legend" data-v-ef78324d><div class="icon supper-ty" data-v-ef78324d></div><div class="label" data-v-ef78324d>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-ef78324d><div class="legend" data-v-ef78324d><div class="icon history" data-v-ef78324d></div><div class="label" data-v-ef78324d>History</div></div><div class="legend" data-v-ef78324d><div class="icon r7" data-v-ef78324d></div><div class="label" data-v-ef78324d>35kts Radii</div></div><div class="legend" data-v-ef78324d><div class="icon r10" data-v-ef78324d></div><div class="label" data-v-ef78324d>50kts Radii</div></div></div>', 3), ci = { class: "more" };
4098
- function hi(t, e, a, r, i, o) {
4099
- var n, s, c, h, p, d, y, u, g, f, m, v, b, w, k;
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-26b44fd1></div><div class="row" style="padding:2px 10px;" data-v-26b44fd1><div class="legend" data-v-26b44fd1><div class="icon td" data-v-26b44fd1></div><div class="label" data-v-26b44fd1>TD</div></div><div class="legend" data-v-26b44fd1><div class="icon ts" data-v-26b44fd1></div><div class="label" data-v-26b44fd1>TS</div></div><div class="legend" data-v-26b44fd1><div class="icon sts" data-v-26b44fd1></div><div class="label" data-v-26b44fd1>STS</div></div><div class="legend" data-v-26b44fd1><div class="icon ty" data-v-26b44fd1></div><div class="label" data-v-26b44fd1>TY</div></div><div class="legend" data-v-26b44fd1><div class="icon sty" data-v-26b44fd1></div><div class="label" data-v-26b44fd1>STY</div></div><div class="legend" data-v-26b44fd1><div class="icon supper-ty" data-v-26b44fd1></div><div class="label" data-v-26b44fd1>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-26b44fd1><div class="legend" data-v-26b44fd1><div class="icon history" data-v-26b44fd1></div><div class="label" data-v-26b44fd1>History</div></div><div class="legend" data-v-26b44fd1><div class="icon r7" data-v-26b44fd1></div><div class="label" data-v-26b44fd1>35kts Radii</div></div><div class="legend" data-v-26b44fd1><div class="icon r10" data-v-26b44fd1></div><div class="label" data-v-26b44fd1>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, y, m, g, f, u, v, b, w, k, _;
4100
4141
  return $e((L(), x("div", Ga, [
4101
4142
  l("div", Ha, [
4102
4143
  l("div", {
4103
4144
  class: "iconfont close-btn",
4104
- onClick: e[0] || (e[0] = (_) => i.showTropicals = !1)
4145
+ onClick: e[0] || (e[0] = (I) => i.showTropicals = !1)
4105
4146
  }, ""),
4106
4147
  l("div", Za, [
4107
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),
4108
- Ke(S((p = i.activeTropicals) == null ? void 0 : p.name), 1)
4149
+ Ke(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4109
4150
  ]),
4110
- l("div", Ja, " Last update: " + S(o.computeTime(((y = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : y.updated) || ((f = (g = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : g.filter((_) => !_.disabled)[0]) == null ? void 0 : f.date))), 1)
4151
+ l("div", Ja, " Last update: " + S(o.computeTime(((y = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : y.updated) || ((f = (g = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : g.filter((I) => !I.disabled)[0]) == null ? void 0 : f.date))), 1)
4111
4152
  ]),
4112
4153
  l("div", qa, [
4113
4154
  l("div", Ya, [
4114
4155
  l("div", Qa, [
4115
4156
  l("div", Ka, [
4116
4157
  ei,
4117
- l("span", null, S(((v = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
4158
+ l("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
4118
4159
  ]),
4119
4160
  l("div", ti, [
4120
4161
  ai,
@@ -4125,31 +4166,45 @@ function hi(t, e, a, r, i, o) {
4125
4166
  l("div", ri, [
4126
4167
  oi,
4127
4168
  l("div", si, [
4128
- (L(!0), x(Ae, null, De((k = i.activeTropicals) == null ? void 0 : k.forecasts, (_, A) => {
4129
- var D, $, W, O;
4169
+ (L(!0), x(Ae, null, De((k = i.activeTropicals) == null ? void 0 : k.forecasts, (I, D) => {
4170
+ var $, W, O, U;
4130
4171
  return L(), x("div", {
4131
- key: A,
4172
+ key: D,
4132
4173
  class: M([
4133
4174
  "model",
4134
- _.disabled ? "" : "active",
4135
- 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" : ""
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" : ""
4136
4177
  ]),
4137
- onClick: (H) => o.handleForecastToggle(_)
4178
+ onClick: (ae) => o.handleForecastToggle(I)
4138
4179
  }, [
4139
4180
  l("span", {
4140
- class: M(_.model)
4141
- }, S(_.model), 3)
4181
+ class: M(I.model)
4182
+ }, S(I.model), 3)
4142
4183
  ], 10, ni);
4143
4184
  }), 128))
4144
4185
  ])
4145
4186
  ])
4146
4187
  ]),
4147
- li
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
4148
4203
  ]),
4149
- l("div", ci, [
4204
+ l("div", pi, [
4150
4205
  l("div", {
4151
4206
  class: "button",
4152
- onClick: e[1] || (e[1] = (_) => o.handleStrikeProbability(i.activeTropicals))
4207
+ onClick: e[3] || (e[3] = (I) => o.handleStrikeProbability(i.activeTropicals))
4153
4208
  }, "Strike Probability >>")
4154
4209
  ])
4155
4210
  ])
@@ -4157,8 +4212,8 @@ function hi(t, e, a, r, i, o) {
4157
4212
  [Be, i.showTropicals && !t.$attrs.hideTropicalsLegend]
4158
4213
  ]);
4159
4214
  }
4160
- const tt = /* @__PURE__ */ T(Ua, [["render", hi], ["__scopeId", "data-v-ef78324d"]]);
4161
- const di = {
4215
+ const tt = /* @__PURE__ */ T(Ua, [["render", mi], ["__scopeId", "data-v-26b44fd1"]]);
4216
+ const ui = {
4162
4217
  name: "IdmPrecip3h",
4163
4218
  props: {
4164
4219
  factor: {
@@ -4186,7 +4241,7 @@ const di = {
4186
4241
  texture: void 0,
4187
4242
  rampColor: void 0,
4188
4243
  aPositionBuffer: void 0,
4189
- webgl: new le(),
4244
+ webgl: new ve(),
4190
4245
  etime: void 0,
4191
4246
  right: 10
4192
4247
  };
@@ -4259,27 +4314,27 @@ const di = {
4259
4314
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4260
4315
  }
4261
4316
  }
4262
- }, oe = (t) => (U("data-v-dec867b8"), t = t(), G(), t), pi = { key: 0 }, mi = /* @__PURE__ */ oe(() => /* @__PURE__ */ l("span", null, "mm", -1)), ui = /* @__PURE__ */ oe(() => /* @__PURE__ */ l("span", null, "1.5", -1)), yi = /* @__PURE__ */ oe(() => /* @__PURE__ */ l("span", null, "2", -1)), fi = /* @__PURE__ */ oe(() => /* @__PURE__ */ l("span", null, "3", -1)), gi = /* @__PURE__ */ oe(() => /* @__PURE__ */ l("span", null, "7", -1)), bi = /* @__PURE__ */ oe(() => /* @__PURE__ */ l("span", null, "10", -1)), vi = /* @__PURE__ */ oe(() => /* @__PURE__ */ l("span", null, "20", -1)), _i = /* @__PURE__ */ oe(() => /* @__PURE__ */ l("span", null, "30", -1)), wi = [
4263
- mi,
4264
- ui,
4265
- yi,
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 = [
4266
4318
  fi,
4267
4319
  gi,
4268
4320
  bi,
4269
4321
  vi,
4270
- _i
4322
+ _i,
4323
+ wi,
4324
+ Li,
4325
+ xi
4271
4326
  ];
4272
- function Li(t, e, a, r, i, o) {
4327
+ function Si(t, e, a, r, i, o) {
4273
4328
  var n;
4274
- return (n = a.factor) != null && n.active ? (L(), x("div", pi, [
4329
+ return (n = a.factor) != null && n.active ? (L(), x("div", yi, [
4275
4330
  l("div", {
4276
4331
  class: "legend-bars flex-center",
4277
4332
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4278
- }, wi, 4)
4333
+ }, Ci, 4)
4279
4334
  ])) : N("", !0);
4280
4335
  }
4281
- const xi = /* @__PURE__ */ T(di, [["render", Li], ["__scopeId", "data-v-dec867b8"]]);
4282
- const Ci = {
4336
+ const ki = /* @__PURE__ */ T(ui, [["render", Si], ["__scopeId", "data-v-dec867b8"]]);
4337
+ const zi = {
4283
4338
  name: "IdmVisibility",
4284
4339
  props: {
4285
4340
  factor: {
@@ -4307,7 +4362,7 @@ const Ci = {
4307
4362
  texture: void 0,
4308
4363
  rampColor: void 0,
4309
4364
  aPositionBuffer: void 0,
4310
- webgl: new le(),
4365
+ webgl: new ve(),
4311
4366
  etime: void 0
4312
4367
  };
4313
4368
  },
@@ -4373,25 +4428,25 @@ const Ci = {
4373
4428
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4374
4429
  }
4375
4430
  }
4376
- }, me = (t) => (U("data-v-952dee5c"), t = t(), G(), t), Si = { key: 0 }, ki = /* @__PURE__ */ me(() => /* @__PURE__ */ l("span", null, "nm", -1)), zi = /* @__PURE__ */ me(() => /* @__PURE__ */ l("span", null, "0", -1)), Pi = /* @__PURE__ */ me(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ti = /* @__PURE__ */ me(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Ii = /* @__PURE__ */ me(() => /* @__PURE__ */ l("span", null, "3", -1)), Ei = /* @__PURE__ */ me(() => /* @__PURE__ */ l("span", null, "9", -1)), Ri = [
4377
- ki,
4378
- zi,
4379
- Pi,
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 = [
4380
4432
  Ti,
4381
4433
  Ii,
4382
- Ei
4434
+ Ei,
4435
+ Ri,
4436
+ Ai,
4437
+ Di
4383
4438
  ];
4384
- function Ai(t, e, a, r, i, o) {
4439
+ function $i(t, e, a, r, i, o) {
4385
4440
  var n;
4386
- return (n = a.factor) != null && n.active ? (L(), x("div", Si, [
4441
+ return (n = a.factor) != null && n.active ? (L(), x("div", Pi, [
4387
4442
  l("div", {
4388
4443
  class: "legend-bars flex-center",
4389
4444
  style: j([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
4390
- }, Ri, 4)
4445
+ }, Mi, 4)
4391
4446
  ])) : N("", !0);
4392
4447
  }
4393
- const Di = /* @__PURE__ */ T(Ci, [["render", Ai], ["__scopeId", "data-v-952dee5c"]]);
4394
- const Mi = {
4448
+ const Bi = /* @__PURE__ */ T(zi, [["render", $i], ["__scopeId", "data-v-952dee5c"]]);
4449
+ const Ni = {
4395
4450
  name: "IdmWaterTemp",
4396
4451
  props: {
4397
4452
  factor: {
@@ -4419,7 +4474,7 @@ const Mi = {
4419
4474
  texture: void 0,
4420
4475
  rampColor: void 0,
4421
4476
  aPositionBuffer: void 0,
4422
- webgl: new le(),
4477
+ webgl: new ve(),
4423
4478
  etime: void 0,
4424
4479
  right: 10
4425
4480
  };
@@ -4493,25 +4548,25 @@ const Mi = {
4493
4548
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4494
4549
  }
4495
4550
  }
4496
- }, ue = (t) => (U("data-v-67e5094b"), t = t(), G(), t), $i = { key: 0 }, Bi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ni = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "0", -1)), Wi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "10", -1)), Oi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "20", -1)), ji = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "30", -1)), Fi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "40", -1)), Vi = [
4497
- Bi,
4498
- Ni,
4499
- Wi,
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 = [
4500
4552
  Oi,
4501
4553
  ji,
4502
- Fi
4554
+ Fi,
4555
+ Vi,
4556
+ Ui,
4557
+ Gi
4503
4558
  ];
4504
- function Ui(t, e, a, r, i, o) {
4559
+ function Zi(t, e, a, r, i, o) {
4505
4560
  var n;
4506
- return (n = a.factor) != null && n.active ? (L(), x("div", $i, [
4561
+ return (n = a.factor) != null && n.active ? (L(), x("div", Wi, [
4507
4562
  l("div", {
4508
4563
  class: "legend-bars flex-center",
4509
4564
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4510
- }, Vi, 4)
4565
+ }, Hi, 4)
4511
4566
  ])) : N("", !0);
4512
4567
  }
4513
- const Gi = /* @__PURE__ */ T(Mi, [["render", Ui], ["__scopeId", "data-v-67e5094b"]]);
4514
- const Hi = {
4568
+ const Xi = /* @__PURE__ */ T(Ni, [["render", Zi], ["__scopeId", "data-v-67e5094b"]]);
4569
+ const Ji = {
4515
4570
  name: "IdmTemp",
4516
4571
  props: {
4517
4572
  factor: {
@@ -4539,7 +4594,7 @@ const Hi = {
4539
4594
  texture: void 0,
4540
4595
  rampColor: void 0,
4541
4596
  aPositionBuffer: void 0,
4542
- webgl: new le(),
4597
+ webgl: new ve(),
4543
4598
  etime: void 0,
4544
4599
  right: 10
4545
4600
  };
@@ -4616,27 +4671,27 @@ const Hi = {
4616
4671
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4617
4672
  }
4618
4673
  }
4619
- }, se = (t) => (U("data-v-389ea886"), t = t(), G(), t), Zi = { key: 0 }, Xi = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ji = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "-20", -1)), qi = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "-10", -1)), Yi = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "0", -1)), Qi = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "10", -1)), Ki = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "20", -1)), er = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "30", -1)), tr = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "40", -1)), ar = [
4620
- Xi,
4621
- Ji,
4622
- qi,
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 = [
4623
4675
  Yi,
4624
4676
  Qi,
4625
4677
  Ki,
4626
4678
  er,
4627
- tr
4679
+ tr,
4680
+ ar,
4681
+ ir,
4682
+ rr
4628
4683
  ];
4629
- function ir(t, e, a, r, i, o) {
4684
+ function sr(t, e, a, r, i, o) {
4630
4685
  var n;
4631
- return (n = a.factor) != null && n.active ? (L(), x("div", Zi, [
4686
+ return (n = a.factor) != null && n.active ? (L(), x("div", qi, [
4632
4687
  l("div", {
4633
4688
  class: "legend-bars flex-center",
4634
4689
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4635
- }, ar, 4)
4690
+ }, or, 4)
4636
4691
  ])) : N("", !0);
4637
4692
  }
4638
- const rr = /* @__PURE__ */ T(Hi, [["render", ir], ["__scopeId", "data-v-389ea886"]]);
4639
- const or = {
4693
+ const nr = /* @__PURE__ */ T(Ji, [["render", sr], ["__scopeId", "data-v-389ea886"]]);
4694
+ const lr = {
4640
4695
  name: "IdmArctic",
4641
4696
  props: {
4642
4697
  factor: {
@@ -4664,7 +4719,7 @@ const or = {
4664
4719
  texture: void 0,
4665
4720
  rampColor: void 0,
4666
4721
  aPositionBuffer: void 0,
4667
- webgl: new le(),
4722
+ webgl: new ve(),
4668
4723
  etime: void 0,
4669
4724
  right: 10
4670
4725
  };
@@ -4732,25 +4787,25 @@ const or = {
4732
4787
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4733
4788
  }
4734
4789
  }
4735
- }, ye = (t) => (U("data-v-db805141"), t = t(), G(), t), sr = { key: 0 }, nr = /* @__PURE__ */ ye(() => /* @__PURE__ */ l("span", null, "m", -1)), lr = /* @__PURE__ */ ye(() => /* @__PURE__ */ l("span", null, "0", -1)), cr = /* @__PURE__ */ ye(() => /* @__PURE__ */ l("span", null, "0.5", -1)), hr = /* @__PURE__ */ ye(() => /* @__PURE__ */ l("span", null, "1", -1)), dr = /* @__PURE__ */ ye(() => /* @__PURE__ */ l("span", null, "1.5", -1)), pr = /* @__PURE__ */ ye(() => /* @__PURE__ */ l("span", null, "2", -1)), mr = [
4736
- nr,
4737
- lr,
4738
- cr,
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 = [
4739
4791
  hr,
4740
4792
  dr,
4741
- pr
4793
+ pr,
4794
+ mr,
4795
+ ur,
4796
+ yr
4742
4797
  ];
4743
- function ur(t, e, a, r, i, o) {
4798
+ function gr(t, e, a, r, i, o) {
4744
4799
  var n;
4745
- return (n = a.factor) != null && n.active ? (L(), x("div", sr, [
4800
+ return (n = a.factor) != null && n.active ? (L(), x("div", cr, [
4746
4801
  l("div", {
4747
4802
  class: "legend-bars flex-center",
4748
4803
  style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4749
- }, mr, 4)
4804
+ }, fr, 4)
4750
4805
  ])) : N("", !0);
4751
4806
  }
4752
- const yr = /* @__PURE__ */ T(or, [["render", ur], ["__scopeId", "data-v-db805141"]]);
4753
- const fr = {
4807
+ const br = /* @__PURE__ */ T(lr, [["render", gr], ["__scopeId", "data-v-db805141"]]);
4808
+ const vr = {
4754
4809
  name: "IdmPoint",
4755
4810
  emits: ["point", "more"],
4756
4811
  props: {
@@ -4792,22 +4847,22 @@ const fr = {
4792
4847
  computed: {
4793
4848
  computeTime() {
4794
4849
  return function(t) {
4795
- return t ? `${Q(t).utc().format("MMM-DD,HHmm[Z]")}` : "-";
4850
+ return t ? `${ee(t).utc().format("MMM-DD,HHmm[Z]")}` : "-";
4796
4851
  };
4797
4852
  },
4798
4853
  computeLat() {
4799
4854
  return function(t, e = 4) {
4800
- return K.lat2pretty(t, e).pretty;
4855
+ return te.lat2pretty(t, e).pretty;
4801
4856
  };
4802
4857
  },
4803
4858
  computeLng() {
4804
4859
  return function(t, e = 4) {
4805
- return K.lng2pretty(t, e).pretty;
4860
+ return te.lng2pretty(t, e).pretty;
4806
4861
  };
4807
4862
  },
4808
4863
  roundPrecision() {
4809
4864
  return function(t, e = 4) {
4810
- return isNaN(t) ? "-" : K.roundPrecision(t, e);
4865
+ return isNaN(t) ? "-" : te.roundPrecision(t, e);
4811
4866
  };
4812
4867
  }
4813
4868
  },
@@ -4825,77 +4880,77 @@ const fr = {
4825
4880
  var t;
4826
4881
  if (this.meteo) {
4827
4882
  const e = document.getElementById("point-meteo");
4828
- this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ie.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
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);
4829
4884
  }
4830
4885
  }
4831
4886
  }
4832
- }, J = (t) => (U("data-v-fb5b12d6"), t = t(), G(), t), gr = {
4887
+ }, J = (t) => (G("data-v-fb5b12d6"), t = t(), H(), t), _r = {
4833
4888
  id: "point-meteo",
4834
4889
  class: "point-meteo"
4835
- }, 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 = {
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 = {
4836
4891
  key: 0,
4837
4892
  class: "flex-space",
4838
4893
  style: { "justify-content": "flex-end" }
4839
- }, Fr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Vr = [
4840
- Fr
4894
+ }, Gr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Hr = [
4895
+ Gr
4841
4896
  ];
4842
- function Ur(t, e, a, r, i, o) {
4843
- var n, s, c, h, p, d, y, u, g, f, m, v, b, w, k, _, A, D, $, W, O, H, X, ee, he, te, R, V, de, q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee;
4844
- return $e((L(), x("div", gr, [
4845
- l("div", br, [
4846
- l("div", vr, [
4897
+ function Zr(t, e, a, r, i, o) {
4898
+ var n, s, c, h, d, p, y, m, g, f, u, v, b, 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, [
4847
4902
  l("div", {
4848
4903
  class: "iconfont close",
4849
- onClick: e[0] || (e[0] = (We) => i.showMeteo = !1)
4904
+ onClick: e[0] || (e[0] = (Oe) => i.showMeteo = !1)
4850
4905
  }, ""),
4851
- 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),
4852
- l("div", wr, S(o.computeTime((c = a.meteo) == null ? void 0 : c.utc)), 1)
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)
4853
4908
  ]),
4854
- l("div", Lr, [
4855
- l("div", xr, [
4856
- Cr,
4857
- l("span", null, S(((p = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : p.direction) || "-") + "/" + S(o.roundPrecision((y = (d = a.meteo) == null ? void 0 : d.wind) == null ? void 0 : y.kts, 1)) + "[kts]/" + S((g = (u = a.meteo) == null ? void 0 : u.wind) == null ? void 0 : g.scale) + "[BF]/" + S(o.roundPrecision((m = (f = a.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
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((y = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : y.kts, 1)) + "[kts]/" + S((g = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : g.scale) + "[BF]/" + S(o.roundPrecision((u = (f = a.meteo) == null ? void 0 : f.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
4858
4913
  ]),
4859
- l("div", Sr, [
4860
- kr,
4861
- l("span", null, S(((w = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.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)
4914
+ l("div", Pr, [
4915
+ Tr,
4916
+ l("span", null, S(((w = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.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)
4862
4917
  ]),
4863
- l("div", zr, [
4864
- Pr,
4865
- l("span", null, S(((X = (H = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : H.swell) == null ? void 0 : X.direction) || "-") + "/" + S(o.roundPrecision((te = (he = (ee = a.meteo) == null ? void 0 : ee.wave) == null ? void 0 : he.swell) == null ? void 0 : te.height, 1)) + "[m]/" + S(o.roundPrecision((de = (V = (R = a.meteo) == null ? void 0 : R.wave) == null ? void 0 : V.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
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)
4866
4921
  ]),
4867
- l("div", Tr, [
4868
- Ir,
4869
- l("span", null, S(((fe = (ne = (q = a.meteo) == null ? void 0 : q.wave) == null ? void 0 : ne.sig) == null ? void 0 : fe.direction) || "-") + "/" + S(o.roundPrecision((ve = (be = (ge = a.meteo) == null ? void 0 : ge.wave) == null ? void 0 : be.sig) == null ? void 0 : ve.height, 1)) + "[m]/" + S(o.roundPrecision((Le = (we = (_e = a.meteo) == null ? void 0 : _e.wave) == null ? void 0 : we.sig) == null ? void 0 : Le.period, 1)) + "[s]", 1)
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)
4870
4925
  ]),
4871
- l("div", Er, [
4872
- Rr,
4873
- l("span", null, S(((Ce = (xe = a.meteo) == null ? void 0 : xe.current) == null ? void 0 : Ce.direction) || "-") + "/" + S(o.roundPrecision((ke = (Se = a.meteo) == null ? void 0 : Se.current) == null ? void 0 : ke.kts, 2)) + "[kts]", 1)
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)
4874
4929
  ]),
4875
- l("div", Ar, [
4876
- Dr,
4930
+ l("div", $r, [
4931
+ Br,
4877
4932
  l("span", null, S(o.roundPrecision((Pe = (ze = a.meteo) == null ? void 0 : ze.precip) == null ? void 0 : Pe.inter6h, 2)) + "[mm]", 1)
4878
4933
  ]),
4879
- l("div", Mr, [
4880
- $r,
4934
+ l("div", Nr, [
4935
+ Wr,
4881
4936
  l("span", null, S(o.roundPrecision(((Te = a.meteo) == null ? void 0 : Te.visibility) / 1852, 0)) + "[nm]", 1)
4882
4937
  ]),
4883
- l("div", Br, [
4884
- Nr,
4938
+ l("div", Or, [
4939
+ jr,
4885
4940
  l("span", null, S(o.roundPrecision((Ie = a.meteo) == null ? void 0 : Ie.temp, 0)) + "[°C]", 1)
4886
4941
  ]),
4887
- l("div", Wr, [
4888
- Or,
4942
+ l("div", Fr, [
4943
+ Vr,
4889
4944
  l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
4890
4945
  ])
4891
4946
  ]),
4892
- t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", jr, Vr)) : N("", !0)
4947
+ t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", Ur, Hr)) : N("", !0)
4893
4948
  ])
4894
4949
  ], 512)), [
4895
4950
  [Be, i.showMeteo]
4896
4951
  ]);
4897
4952
  }
4898
- const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-fb5b12d6"]]), Hr = {
4953
+ const Xr = /* @__PURE__ */ T(vr, [["render", Zr], ["__scopeId", "data-v-fb5b12d6"]]), Jr = {
4899
4954
  name: "IdmWarZone",
4900
4955
  props: {
4901
4956
  map: {
@@ -4985,10 +5040,10 @@ const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-fb5b12d6
4985
5040
  }
4986
5041
  }
4987
5042
  };
4988
- function Zr(t, e, a, r, i, o) {
5043
+ function qr(t, e, a, r, i, o) {
4989
5044
  return L(), x("div");
4990
5045
  }
4991
- const Xr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Jr = {
5046
+ const Yr = /* @__PURE__ */ T(Jr, [["render", qr]]), Qr = {
4992
5047
  name: "IdmGmdssArea",
4993
5048
  props: {
4994
5049
  map: {
@@ -5108,10 +5163,10 @@ const Xr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Jr = {
5108
5163
  }
5109
5164
  }
5110
5165
  };
5111
- function qr(t, e, a, r, i, o) {
5166
+ function Kr(t, e, a, r, i, o) {
5112
5167
  return L(), x("div");
5113
5168
  }
5114
- const Yr = /* @__PURE__ */ T(Jr, [["render", qr]]), Qr = {
5169
+ const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
5115
5170
  name: "IdmEcaZone",
5116
5171
  props: {
5117
5172
  map: {
@@ -5199,11 +5254,11 @@ const Yr = /* @__PURE__ */ T(Jr, [["render", qr]]), Qr = {
5199
5254
  }
5200
5255
  }
5201
5256
  };
5202
- function Kr(t, e, a, r, i, o) {
5257
+ function ao(t, e, a, r, i, o) {
5203
5258
  return L(), x("div");
5204
5259
  }
5205
- const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]);
5206
- const to = {
5260
+ const io = /* @__PURE__ */ T(to, [["render", ao]]);
5261
+ const ro = {
5207
5262
  name: "IdmAlertZone",
5208
5263
  props: {
5209
5264
  map: {
@@ -5329,10 +5384,10 @@ const to = {
5329
5384
  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);
5330
5385
  }
5331
5386
  }
5332
- }, ao = { id: "zone-info" }, io = ["innerHTML"];
5333
- function ro(t, e, a, r, i, o) {
5387
+ }, oo = { id: "zone-info" }, so = ["innerHTML"];
5388
+ function no(t, e, a, r, i, o) {
5334
5389
  var n;
5335
- return $e((L(), x("div", ao, [
5390
+ return $e((L(), x("div", oo, [
5336
5391
  l("div", {
5337
5392
  class: "iconfont close",
5338
5393
  onClick: e[0] || (e[0] = (s) => i.showZone = !1)
@@ -5340,13 +5395,13 @@ function ro(t, e, a, r, i, o) {
5340
5395
  l("div", {
5341
5396
  class: "rich-context",
5342
5397
  innerHTML: (n = i.form) == null ? void 0 : n.name
5343
- }, null, 8, io)
5398
+ }, null, 8, so)
5344
5399
  ], 512)), [
5345
5400
  [Be, i.showZone]
5346
5401
  ]);
5347
5402
  }
5348
- const oo = /* @__PURE__ */ T(to, [["render", ro], ["__scopeId", "data-v-c0864afc"]]);
5349
- const so = {
5403
+ const lo = /* @__PURE__ */ T(ro, [["render", no], ["__scopeId", "data-v-c0864afc"]]);
5404
+ const co = {
5350
5405
  name: "IdmPort",
5351
5406
  props: {
5352
5407
  map: {
@@ -5372,12 +5427,12 @@ const so = {
5372
5427
  computed: {
5373
5428
  computeLat() {
5374
5429
  return function(t) {
5375
- return K.lat2pretty(t, 4).pretty;
5430
+ return te.lat2pretty(t, 4).pretty;
5376
5431
  };
5377
5432
  },
5378
5433
  computeLng() {
5379
5434
  return function(t) {
5380
- return K.lng2pretty(t, 4).pretty;
5435
+ return te.lng2pretty(t, 4).pretty;
5381
5436
  };
5382
5437
  }
5383
5438
  },
@@ -5399,7 +5454,7 @@ const so = {
5399
5454
  if (a) {
5400
5455
  this.showPort = !0, this.form = { ...a.properties }, this.form.lng = a.geometry.coordinates[0], this.form.lat = a.geometry.coordinates[1];
5401
5456
  const i = document.getElementById("port-info");
5402
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ie.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
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);
5403
5458
  }
5404
5459
  },
5405
5460
  handleEmit() {
@@ -5438,33 +5493,33 @@ const so = {
5438
5493
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5439
5494
  }
5440
5495
  }
5441
- }, 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 = {
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 = {
5442
5497
  class: "flex-start",
5443
5498
  style: { "align-items": "flex-start" }
5444
- }, go = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
5445
- function bo(t, e, a, r, i, o) {
5446
- return $e((L(), x("div", no, [
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, [
5447
5502
  l("div", {
5448
5503
  class: "close iconfont",
5449
5504
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
5450
5505
  }, ""),
5451
- l("div", lo, [
5452
- l("div", co, [
5453
- ho,
5506
+ l("div", po, [
5507
+ l("div", mo, [
5508
+ uo,
5454
5509
  l("span", {
5455
5510
  onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
5456
5511
  }, S(i.form.name), 1)
5457
5512
  ]),
5458
- l("div", po, [
5459
- mo,
5513
+ l("div", yo, [
5514
+ fo,
5460
5515
  l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
5461
5516
  ]),
5462
- l("div", uo, [
5463
- yo,
5517
+ l("div", go, [
5518
+ bo,
5464
5519
  l("span", null, S(i.form.loCode || "-"), 1)
5465
5520
  ]),
5466
- l("div", fo, [
5467
- go,
5521
+ l("div", vo, [
5522
+ _o,
5468
5523
  l("span", null, S(i.form.city || "-") + ", " + S(i.form.country || "-"), 1)
5469
5524
  ])
5470
5525
  ])
@@ -5472,7 +5527,7 @@ function bo(t, e, a, r, i, o) {
5472
5527
  [Be, i.showPort]
5473
5528
  ]);
5474
5529
  }
5475
- const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-30e545a2"]]), _o = {
5530
+ const Lo = /* @__PURE__ */ T(co, [["render", wo], ["__scopeId", "data-v-30e545a2"]]), xo = {
5476
5531
  name: "IdmLoadLine",
5477
5532
  props: {
5478
5533
  map: {
@@ -5542,10 +5597,10 @@ const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-30e545a2
5542
5597
  }
5543
5598
  }
5544
5599
  };
5545
- function wo(t, e, a, r, i, o) {
5600
+ function Co(t, e, a, r, i, o) {
5546
5601
  return L(), x("div");
5547
5602
  }
5548
- const Lo = /* @__PURE__ */ T(_o, [["render", wo]]), xo = {
5603
+ const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
5549
5604
  name: "IdmTimezone",
5550
5605
  props: {
5551
5606
  map: {
@@ -5710,10 +5765,10 @@ const Lo = /* @__PURE__ */ T(_o, [["render", wo]]), xo = {
5710
5765
  }
5711
5766
  }
5712
5767
  };
5713
- function Co(t, e, a, r, i, o) {
5768
+ function zo(t, e, a, r, i, o) {
5714
5769
  return L(), x("div");
5715
5770
  }
5716
- const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
5771
+ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
5717
5772
  name: "IdmVoluntaryReportingArea",
5718
5773
  props: {
5719
5774
  map: {
@@ -5801,10 +5856,10 @@ const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
5801
5856
  }
5802
5857
  }
5803
5858
  };
5804
- function zo(t, e, a, r, i, o) {
5859
+ function Io(t, e, a, r, i, o) {
5805
5860
  return L(), x("div");
5806
5861
  }
5807
- const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
5862
+ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
5808
5863
  name: "IdmSpecialArea",
5809
5864
  props: {
5810
5865
  map: {
@@ -5894,10 +5949,10 @@ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
5894
5949
  }
5895
5950
  }
5896
5951
  };
5897
- function Io(t, e, a, r, i, o) {
5952
+ function Ao(t, e, a, r, i, o) {
5898
5953
  return L(), x("div");
5899
5954
  }
5900
- const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
5955
+ const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
5901
5956
  name: "IdmTerminator",
5902
5957
  props: {
5903
5958
  map: {
@@ -5946,11 +6001,11 @@ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
5946
6001
  }
5947
6002
  }
5948
6003
  };
5949
- function Ao(t, e, a, r, i, o) {
6004
+ function $o(t, e, a, r, i, o) {
5950
6005
  return L(), x("div");
5951
6006
  }
5952
- const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]);
5953
- const Mo = {
6007
+ const Bo = /* @__PURE__ */ T(Mo, [["render", $o]]);
6008
+ const No = {
5954
6009
  name: "IdmLatLng",
5955
6010
  props: {
5956
6011
  map: {
@@ -6008,7 +6063,7 @@ const Mo = {
6008
6063
  this.show ? ((t = this.map) == null || t.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6009
6064
  },
6010
6065
  handleMouseMove(t) {
6011
- const e = t.lngLat, a = K.lng2pretty(e.lng, 2), r = K.lat2pretty(e.lat, 2);
6066
+ const e = t.lngLat, a = te.lng2pretty(e.lng, 2), r = te.lat2pretty(e.lat, 2);
6012
6067
  this.lngLat = { lng: a, lat: r };
6013
6068
  },
6014
6069
  handleComputeLatLngs() {
@@ -6105,19 +6160,19 @@ const Mo = {
6105
6160
  (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));
6106
6161
  }
6107
6162
  }
6108
- }, $o = (t) => (U("data-v-51cc4052"), t = t(), G(), t), Bo = /* @__PURE__ */ $o(() => /* @__PURE__ */ l("span", null, ", ", -1));
6109
- function No(t, e, a, r, i, o) {
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) {
6110
6165
  return i.lngLat ? (L(), x("div", {
6111
6166
  key: 0,
6112
6167
  class: "lat-lng-tip",
6113
6168
  style: j({ right: i.right + "px", bottom: a.bottom })
6114
6169
  }, [
6115
6170
  l("span", null, S(i.lngLat.lat.pretty), 1),
6116
- Bo,
6171
+ Oo,
6117
6172
  l("span", null, S(i.lngLat.lng.pretty), 1)
6118
6173
  ], 4)) : N("", !0);
6119
6174
  }
6120
- const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052"]]), Wo = {
6175
+ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052"]]), Fo = {
6121
6176
  name: "IdmMeasure",
6122
6177
  props: {
6123
6178
  map: {
@@ -6163,8 +6218,8 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
6163
6218
  (t = this.map) == null || t.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (a = this.map) == null || a.on("dblclick", this.handleDblClick), (r = this.map) == null || r.on("click", this.handleClick), (i = this.map) == null || i.on("contextmenu", this.handleContextmenu), this.map && (this.map.getCanvas().style.cursor = "crosshair");
6164
6219
  else {
6165
6220
  (o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (n = this.map) == null || n.off("mousemove", this.handleMove), (s = this.map) == null || s.off("dblclick", this.handleDblClick), (c = this.map) == null || c.off("click", this.handleClick), (h = this.map) == null || h.off("contextmenu", this.handleContextmenu);
6166
- for (const p of this.geojson)
6167
- this.handleClear(p, !0);
6221
+ for (const d of this.geojson)
6222
+ this.handleClear(d, !0);
6168
6223
  this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
6169
6224
  }
6170
6225
  },
@@ -6176,41 +6231,41 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
6176
6231
  }
6177
6232
  },
6178
6233
  handleDrag(t) {
6179
- var a, r, i, o, n, s, c, h, p, d;
6234
+ var a, r, i, o, n, s, c, h, d, p;
6180
6235
  const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
6181
6236
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6182
- const y = this.geojson.filter((m) => m.id === e.split("-")[0])[0];
6183
- this.pointMarkers[y.id].filter((m) => {
6237
+ const y = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
6238
+ this.pointMarkers[y.id].filter((u) => {
6184
6239
  var v;
6185
- return ((v = m._element) == null ? void 0 : v.id) === e;
6240
+ return ((v = u._element) == null ? void 0 : v.id) === e;
6186
6241
  })[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]);
6187
6242
  let g;
6188
- y.features.forEach((m, v) => {
6189
- if (m.geometry.type === "Point" && m.properties.id == e.split("-")[1]) {
6243
+ y.features.forEach((u, v) => {
6244
+ if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
6190
6245
  g = v;
6191
6246
  return;
6192
6247
  }
6193
6248
  });
6194
- const f = y.features.filter((m) => m.geometry.type === "Point");
6249
+ const f = y.features.filter((u) => u.geometry.type === "Point");
6195
6250
  this.handleTmpPointUpdate(
6196
6251
  y,
6197
6252
  f[g - 1],
6198
- { lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: f[g].properties },
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: f[g].properties },
6199
6254
  g === f.length - 1 ? void 0 : f[g + 1]
6200
6255
  );
6201
6256
  }
6202
6257
  },
6203
6258
  handleDragEnd(t) {
6204
- var a, r, i, o, n, s, c, h, p, d;
6259
+ var a, r, i, o, n, s, c, h, d, p;
6205
6260
  const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
6206
6261
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6207
6262
  const y = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
6208
6263
  this.pointMarkers[y.id].filter((f) => {
6209
- var m;
6210
- return ((m = f._element) == null ? void 0 : m.id) === e;
6264
+ var u;
6265
+ return ((u = f._element) == null ? void 0 : u.id) === e;
6211
6266
  })[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]);
6212
6267
  const g = y.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
6213
- g.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], y.features = y.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(y);
6268
+ 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], y.features = y.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(y);
6214
6269
  }
6215
6270
  },
6216
6271
  handleContextmenu(t) {
@@ -6221,7 +6276,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
6221
6276
  const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
6222
6277
  if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6223
6278
  const h = document.createElement("div");
6224
- h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ie.Marker(h).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
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);
6225
6280
  }
6226
6281
  }
6227
6282
  },
@@ -6257,12 +6312,12 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
6257
6312
  let a = 0;
6258
6313
  const r = [];
6259
6314
  for (let i = 1; i < e.length; i++) {
6260
- 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] }, p = Oe(c, h, s.mode === "RL", 2), d = je(c, h, s.mode === "RL", 2);
6261
- a = K.roundPrecision(a + p, 2);
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);
6316
+ a = te.roundPrecision(a + d, 2);
6262
6317
  let y;
6263
- s.mode === "RL" ? y = pe([c, h]) : y = pe(Fe(c, h, 200));
6264
- const u = C.lineString(y.map((g) => [g.lng, g.lat]));
6265
- u.properties.dist = p, u.properties.bearing = d, u.properties.total = a, r.push(u);
6318
+ s.mode === "RL" ? y = we([c, h]) : y = we(Ve(c, h, 200));
6319
+ const m = C.lineString(y.map((g) => [g.lng, g.lat]));
6320
+ m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
6266
6321
  }
6267
6322
  e.push(...r), t.total = a;
6268
6323
  }
@@ -6272,19 +6327,19 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
6272
6327
  const i = C.featureCollection([]);
6273
6328
  let o, n;
6274
6329
  if (e) {
6275
- const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: a.lng, lat: a.lat };
6276
- o = Oe(h, p, c.mode === "RL", 2), n = je(h, p, c.mode === "RL", 2);
6277
- let d;
6278
- c.mode === "RL" ? d = pe([h, p]) : d = pe(Fe(h, p, 200));
6279
- const y = C.lineString(d.map((u) => [u.lng, u.lat]));
6330
+ 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);
6332
+ let p;
6333
+ c.mode === "RL" ? p = we([h, d]) : p = we(Ve(h, d, 200));
6334
+ const y = C.lineString(p.map((m) => [m.lng, m.lat]));
6280
6335
  y.properties.dist = o, y.properties.bearing = n, i.features.push(y);
6281
6336
  }
6282
6337
  if (r) {
6283
- const c = a.properties, h = a, p = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6284
- o = Oe(h, p, c.mode === "RL", 2), n = je(h, p, c.mode === "RL", 2);
6285
- let d;
6286
- c.mode === "RL" ? d = pe([h, p]) : d = pe(Fe(h, p, 200));
6287
- const y = C.lineString(d.map((u) => [u.lng, u.lat]));
6338
+ 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);
6340
+ let p;
6341
+ c.mode === "RL" ? p = we([h, d]) : p = we(Ve(h, d, 200));
6342
+ const y = C.lineString(p.map((m) => [m.lng, m.lat]));
6288
6343
  y.properties.dist = o, y.properties.bearing = n, i.features.push(y);
6289
6344
  }
6290
6345
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
@@ -6325,11 +6380,11 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
6325
6380
  }
6326
6381
  });
6327
6382
  let s;
6328
- if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${K.roundPrecision((t.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)
6383
+ if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${te.roundPrecision((t.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)
6329
6384
  this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([a.lng, a.lat]);
6330
6385
  else {
6331
6386
  const c = document.createElement("div");
6332
- c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new ie.Marker(c).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
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);
6333
6388
  }
6334
6389
  },
6335
6390
  handleMove(t) {
@@ -6387,29 +6442,29 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
6387
6442
  for (const n of o) {
6388
6443
  const s = document.createElement("div");
6389
6444
  s.id = `${t.id}-${n.properties.id}`, s.className = `${t.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6390
- const c = new ie.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6445
+ const c = new ne.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6391
6446
  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];
6392
6447
  }
6393
6448
  if (t.closed) {
6394
- const n = o.at(-1), c = t.features.filter((p) => p.geometry.type === "LineString").at(-1), h = document.createElement("div");
6395
- 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 ie.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6449
+ 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);
6396
6451
  }
6397
6452
  }
6398
6453
  },
6399
6454
  handleClear(t, e = !0) {
6400
- var o, n, s, c, h, p, d, y, u;
6455
+ var o, n, s, c, h, d, p, y, m;
6401
6456
  const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
6402
- (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, (p = this.pointMarkers[t.id]) == null || p.forEach((g) => {
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((g) => {
6403
6458
  g == null || g.remove();
6404
- }), this.pointMarkers[t.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6459
+ }), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6405
6460
  }
6406
6461
  }
6407
6462
  };
6408
- function Oo(t, e, a, r, i, o) {
6463
+ function Vo(t, e, a, r, i, o) {
6409
6464
  return L(), x("div");
6410
6465
  }
6411
- const jo = /* @__PURE__ */ T(Wo, [["render", Oo]]);
6412
- const Fo = {
6466
+ const Uo = /* @__PURE__ */ T(Fo, [["render", Vo]]);
6467
+ const Go = {
6413
6468
  name: "IdmENC",
6414
6469
  props: {
6415
6470
  map: {
@@ -6461,32 +6516,32 @@ const Fo = {
6461
6516
  }
6462
6517
  },
6463
6518
  methods: {}
6464
- }, 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 = [
6465
- Go
6466
- ], Zo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Xo = [
6467
- Zo
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
6468
6523
  ];
6469
- function Jo(t, e, a, r, i, o) {
6470
- return a.enabled && a.permission & i.helper.LEVEL.Supper ? (L(), x("div", Vo, [
6524
+ function Qo(t, e, a, r, i, o) {
6525
+ return a.enabled && a.permission & i.helper.LEVEL.Supper ? (L(), x("div", Ho, [
6471
6526
  l("div", {
6472
6527
  class: "menu-bar-box",
6473
6528
  style: j({ position: "absolute", right: i.right + "px", bottom: a.bottom })
6474
6529
  }, [
6475
- l("div", Uo, [
6530
+ l("div", Zo, [
6476
6531
  l("div", {
6477
6532
  class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
6478
6533
  onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
6479
- }, Ho, 2),
6534
+ }, Jo, 2),
6480
6535
  l("div", {
6481
6536
  class: M(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
6482
6537
  onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
6483
- }, Xo, 2)
6538
+ }, Yo, 2)
6484
6539
  ])
6485
6540
  ], 4)
6486
6541
  ])) : N("", !0);
6487
6542
  }
6488
- const qo = /* @__PURE__ */ T(Fo, [["render", Jo], ["__scopeId", "data-v-ab627b83"]]);
6489
- const Yo = {
6543
+ const Ko = /* @__PURE__ */ T(Go, [["render", Qo], ["__scopeId", "data-v-ab627b83"]]);
6544
+ const es = {
6490
6545
  name: "IdmGLV2",
6491
6546
  components: {
6492
6547
  IdmGlLayer: Vt,
@@ -6500,25 +6555,25 @@ const Yo = {
6500
6555
  // IdmIceEdge,
6501
6556
  IdmIceberg: Va,
6502
6557
  IdmTropicals: tt,
6503
- IdmPrecip3h: xi,
6504
- IdmVisibility: Di,
6505
- IdmWaterTemp: Gi,
6506
- IdmTemp: rr,
6507
- IdmArctic: yr,
6508
- IdmWarZone: Xr,
6509
- IdmGmdssArea: Yr,
6510
- IdmEcaZone: eo,
6511
- IdmAlertZone: oo,
6512
- IdmPort: vo,
6513
- IdmLoadLine: Lo,
6514
- IdmTimezone: So,
6515
- IdmVRA: Po,
6516
- IdmSpecialArea: Eo,
6517
- IdmTerminator: Do,
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,
6518
6573
  IdmLatLng: at,
6519
- IdmMeasure: jo,
6520
- IdmPoint: Gr,
6521
- IdmENC: qo
6574
+ IdmMeasure: Uo,
6575
+ IdmPoint: Xr,
6576
+ IdmENC: Ko
6522
6577
  },
6523
6578
  props: {
6524
6579
  map: {
@@ -6566,7 +6621,7 @@ const Yo = {
6566
6621
  watch: {
6567
6622
  ts: {
6568
6623
  handler(t, e) {
6569
- t && e && Q(t).utc().format("yyyy-MM-DD HH") !== Q(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
6624
+ t && e && ee(t).utc().format("yyyy-MM-DD HH") !== ee(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
6570
6625
  this.handleDateChange({ tropicals: !1 });
6571
6626
  });
6572
6627
  },
@@ -6574,8 +6629,8 @@ const Yo = {
6574
6629
  },
6575
6630
  map: {
6576
6631
  handler() {
6577
- var t, e, a, r, i, o, n, s, c, h, p, d, y, u, g;
6578
- 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(), this.activeWeatherLayers.length > 0 ? ((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) && ((p = this.map) == null || p.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((y = (d = this.map) == null ? void 0 : d.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (g = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none")));
6632
+ var t, e, a, r, i, o, n, s, c, h, d, p, y, m, g;
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(), this.activeWeatherLayers.length > 0 ? ((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))) : ((y = (p = this.map) == null ? void 0 : p.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (g = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none")));
6579
6634
  },
6580
6635
  immediate: !0
6581
6636
  },
@@ -6587,10 +6642,10 @@ const Yo = {
6587
6642
  },
6588
6643
  activeWeatherLayers: {
6589
6644
  handler() {
6590
- var t, e, a, r, i, o, n, s, c, h, p, d, y, u, g;
6645
+ var t, e, a, r, i, o, n, s, c, h, d, p, y, m, g;
6591
6646
  if (!this.map)
6592
6647
  return !1;
6593
- this.activeWeatherLayers.length > 0 ? ((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) && ((p = this.map) == null || p.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((y = (d = this.map) == null ? void 0 : d.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (g = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none"));
6648
+ this.activeWeatherLayers.length > 0 ? ((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))) : ((y = (p = this.map) == null ? void 0 : p.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (g = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none"));
6594
6649
  },
6595
6650
  immediate: !0
6596
6651
  }
@@ -6637,22 +6692,22 @@ const Yo = {
6637
6692
  },
6638
6693
  methods: {
6639
6694
  async fetchWeatherLayers(t = { tropicals: !1 }) {
6640
- var i, o, n, s, c, h, p, d;
6695
+ var i, o, n, s, c, h, d, p;
6641
6696
  const e = (/* @__PURE__ */ new Date()).valueOf();
6642
6697
  let a = 0, r = 0;
6643
6698
  if (this.map) {
6644
- const y = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, u = (o = this.map) == null ? void 0 : o.getBounds(), g = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
6699
+ const y = ((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}`;
6645
6700
  if (this.handleRampColorState(), this.particleFactor) {
6646
- const f = Ve.WEATHER_LAYERS.find((m) => {
6701
+ const f = Ue.WEATHER_LAYERS.find((u) => {
6647
6702
  var v;
6648
- return ((v = m.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
6703
+ return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
6649
6704
  });
6650
6705
  this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & f.weight ? this.weatherWeight : this.weatherWeight + f.weight : this.weatherWeight = this.weatherWeight & f.weight ? this.weatherWeight - f.weight : this.weatherWeight;
6651
6706
  }
6652
6707
  if (this.weatherWeight > 0) {
6653
- let f = this.weatherWeight, m;
6654
- if (t.tropicals || this.weatherWeight & 256 && (m = this.weatherLayers.tropicals, m && (f -= 256, m.version = Math.random() + 1)), f > 0) {
6655
- const v = await ae.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${y}&bbox=${g}&t=${this.ts}`, {
6708
+ let f = this.weatherWeight, u;
6709
+ if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (f -= 256, u.version = Math.random() + 1)), f > 0) {
6710
+ const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${y}&bbox=${g}&t=${this.ts}`, {
6656
6711
  headers: {
6657
6712
  Authorization: this.token || this.defaultMeteoToken
6658
6713
  }
@@ -6661,35 +6716,35 @@ const Yo = {
6661
6716
  const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6662
6717
  for (const _ in b)
6663
6718
  _ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
6664
- ae.get(b[_], {
6719
+ se.get(b[_], {
6665
6720
  headers: {
6666
6721
  Authorization: this.token || this.defaultMeteoToken,
6667
6722
  key: _
6668
6723
  },
6669
6724
  responseType: /\.(jpg|png)$/.test(b[_]) ? "blob" : "json"
6670
- }).catch((A) => {
6671
- console.log(`[${_}] fetch layer error: ${A}`);
6725
+ }).catch((I) => {
6726
+ console.log(`[${_}] fetch layer error: ${I}`);
6672
6727
  })
6673
6728
  );
6674
6729
  const k = await Promise.all(w);
6675
6730
  this.weatherLayers = {}, k.map((_) => {
6676
- var $, W, O, H;
6677
- 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;
6678
- D && A && (this.weatherLayers[D] = {
6679
- raw: A,
6680
- type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
6731
+ var $, W, O, U;
6732
+ 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;
6733
+ D && I && (this.weatherLayers[D] = {
6734
+ raw: I,
6735
+ type: ((U = _ == null ? void 0 : _.config) == null ? void 0 : U.responseType) === "blob" ? "image" : "json",
6681
6736
  etime: this.ts
6682
6737
  });
6683
- }), b.tropicals && ae.get(b.tropicals, {
6738
+ }), b.tropicals && se.get(b.tropicals, {
6684
6739
  headers: {
6685
6740
  Authorization: this.token || this.defaultMeteoToken,
6686
6741
  key: "tropicals"
6687
6742
  }
6688
6743
  }).then((_) => {
6689
6744
  var $, W, O;
6690
- 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;
6745
+ 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;
6691
6746
  this.weatherLayers[D] = {
6692
- data: A,
6747
+ data: I,
6693
6748
  active: !0,
6694
6749
  cached: !1,
6695
6750
  type: "json",
@@ -6708,7 +6763,7 @@ const Yo = {
6708
6763
  };
6709
6764
  }
6710
6765
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
6711
- const b = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, w = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
6766
+ const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
6712
6767
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
6713
6768
  type: "json",
6714
6769
  direction: b,
@@ -6717,7 +6772,7 @@ const Yo = {
6717
6772
  };
6718
6773
  }
6719
6774
  }
6720
- m && (m.etime = this.ts, m.cached = !0, this.weatherLayers.tropicals = m);
6775
+ u && (u.etime = this.ts, u.cached = !0, this.weatherLayers.tropicals = u);
6721
6776
  }
6722
6777
  this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
6723
6778
  }
@@ -6731,50 +6786,50 @@ const Yo = {
6731
6786
  let n = !1;
6732
6787
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
6733
6788
  if (t.all) {
6734
- const s = await ae.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6789
+ const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6735
6790
  headers: {
6736
6791
  Authorization: this.token || this.defaultMeteoToken
6737
6792
  }
6738
6793
  });
6739
6794
  if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 0) {
6740
6795
  const c = (a = s == null ? void 0 : s.data) == null ? void 0 : a.data, h = [];
6741
- for (const d in c)
6796
+ for (const p in c)
6742
6797
  h.push(
6743
- ae.get(c[d], {
6798
+ se.get(c[p], {
6744
6799
  headers: {
6745
6800
  Authorization: this.token || this.defaultMeteoToken,
6746
- key: d
6801
+ key: p
6747
6802
  }
6748
6803
  })
6749
6804
  );
6750
- const p = await Promise.all(h);
6751
- this.otherLayers = { enc: n }, p.map((d) => {
6752
- var g, f, m;
6753
- const y = ((g = d == null ? void 0 : d.data) == null ? void 0 : g.data) || (d == null ? void 0 : d.data), u = (m = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6754
- this.otherLayers[u] = y;
6805
+ const d = await Promise.all(h);
6806
+ this.otherLayers = { enc: n }, d.map((p) => {
6807
+ var g, f, u;
6808
+ const y = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : u.key;
6809
+ this.otherLayers[m] = y;
6755
6810
  });
6756
6811
  }
6757
6812
  } else if (t.dayNight && o & 1024) {
6758
- const s = await ae.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6813
+ const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6759
6814
  headers: {
6760
6815
  Authorization: this.token || this.defaultMeteoToken
6761
6816
  }
6762
6817
  });
6763
6818
  if (((r = s == null ? void 0 : s.data) == null ? void 0 : r.code) === 0) {
6764
6819
  const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
6765
- for (const d in c)
6820
+ for (const p in c)
6766
6821
  h.push(
6767
- ae.get(c[d], {
6822
+ se.get(c[p], {
6768
6823
  headers: {
6769
6824
  Authorization: this.token || this.defaultMeteoToken,
6770
- key: d
6825
+ key: p
6771
6826
  }
6772
6827
  })
6773
6828
  );
6774
- (await Promise.all(h)).map((d) => {
6775
- var g, f, m;
6776
- const y = ((g = d == null ? void 0 : d.data) == null ? void 0 : g.data) || (d == null ? void 0 : d.data), u = (m = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6777
- this.otherLayers[u] = y;
6829
+ (await Promise.all(h)).map((p) => {
6830
+ var g, f, u;
6831
+ const y = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : u.key;
6832
+ this.otherLayers[m] = y;
6778
6833
  });
6779
6834
  }
6780
6835
  }
@@ -6795,7 +6850,7 @@ const Yo = {
6795
6850
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
6796
6851
  },
6797
6852
  handleRampColorInitial() {
6798
- var t, e, a, r, i, o, n, s, c, h, p, d;
6853
+ var t, e, a, r, i, o, n, s, c, h, d, p;
6799
6854
  this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
6800
6855
  type: "canvas",
6801
6856
  canvas: (a = this.viewport) == null ? void 0 : a.rampColorCanvas,
@@ -6819,8 +6874,8 @@ const Yo = {
6819
6874
  }), this.viewport.map.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) || this.viewport.map.addLayer(
6820
6875
  {
6821
6876
  type: "raster",
6822
- id: (p = this.viewport) == null ? void 0 : p.particleLayer,
6823
- source: (d = this.viewport) == null ? void 0 : d.particleSource,
6877
+ id: (d = this.viewport) == null ? void 0 : d.particleLayer,
6878
+ source: (p = this.viewport) == null ? void 0 : p.particleSource,
6824
6879
  layout: {
6825
6880
  visibility: "none"
6826
6881
  }
@@ -6829,69 +6884,69 @@ const Yo = {
6829
6884
  );
6830
6885
  },
6831
6886
  handleDragEndWithZoom4Json() {
6832
- var h, p, d, y;
6887
+ var h, d, p, y;
6833
6888
  const t = (/* @__PURE__ */ new Date()).valueOf();
6834
6889
  let e = 0, a = 0;
6835
6890
  const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = Re(r._sw.lng), n = Re(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
6836
- for (const u in this.weatherLayers)
6837
- if (this.weatherLayers[u].active && this.weatherLayers[u].type === "json") {
6838
- this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
6891
+ for (const m in this.weatherLayers)
6892
+ if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
6893
+ this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
6839
6894
  let g = [];
6840
- if (["swell", "current"].includes(u)) {
6841
- const f = ((p = this.weatherLayers[u]) == null ? void 0 : p.direction) || {};
6842
- for (const m in f)
6843
- if (m > s && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6844
- const v = f[m].lng;
6895
+ if (["swell", "current"].includes(m)) {
6896
+ const f = ((d = this.weatherLayers[m]) == null ? void 0 : d.direction) || {};
6897
+ for (const u in f)
6898
+ if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6899
+ const v = f[u].lng;
6845
6900
  o > n ? v.forEach((b, w) => {
6846
6901
  var k;
6847
6902
  if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6848
- const _ = C.point([b, m], {
6849
- val: f[m].val[w],
6850
- spd: (k = f[m].spd) == null ? void 0 : k[w]
6903
+ const _ = C.point([b, u], {
6904
+ val: f[u].val[w],
6905
+ spd: (k = f[u].spd) == null ? void 0 : k[w]
6851
6906
  });
6852
6907
  g.push(_);
6853
6908
  }
6854
6909
  }) : v.forEach((b, w) => {
6855
6910
  var k;
6856
6911
  if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6857
- const _ = C.point([b, m], {
6858
- val: f[m].val[w],
6859
- spd: (k = f[m].spd) == null ? void 0 : k[w]
6912
+ const _ = C.point([b, u], {
6913
+ val: f[u].val[w],
6914
+ spd: (k = f[u].spd) == null ? void 0 : k[w]
6860
6915
  });
6861
6916
  g.push(_);
6862
6917
  }
6863
6918
  });
6864
6919
  }
6865
- if (a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("direction elapsed: ", a, ", total: ", e += a), u === "swell") {
6866
- const m = this.weatherLayers[u].height;
6867
- if (m) {
6868
- if (!m.data) {
6920
+ if (a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("direction elapsed: ", a, ", total: ", e += a), m === "swell") {
6921
+ const u = this.weatherLayers[m].height;
6922
+ if (u) {
6923
+ if (!u.data) {
6869
6924
  const v = [];
6870
- for (const b in (d = m.raw) == null ? void 0 : d.LineString) {
6871
- const w = m.raw.LineString[b];
6925
+ for (const b in (p = u.raw) == null ? void 0 : p.LineString) {
6926
+ const w = u.raw.LineString[b];
6872
6927
  for (const k of w)
6873
6928
  v.push(
6874
6929
  C.lineString(k, {
6875
6930
  val: Number(b)
6876
6931
  })
6877
6932
  );
6878
- m.data = C.featureCollection(v);
6933
+ u.data = C.featureCollection(v);
6879
6934
  }
6880
6935
  }
6881
- if (m.data) {
6882
- const v = this.handleBboxClip(m.data, r);
6936
+ if (u.data) {
6937
+ const v = this.handleBboxClip(u.data, r);
6883
6938
  g = g.concat(v);
6884
6939
  }
6885
6940
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
6886
6941
  }
6887
6942
  }
6888
- if (u === "current") {
6889
- const m = this.weatherLayers[u].speed;
6890
- if (m) {
6891
- if (!m.data) {
6943
+ if (m === "current") {
6944
+ const u = this.weatherLayers[m].speed;
6945
+ if (u) {
6946
+ if (!u.data) {
6892
6947
  const b = [];
6893
- for (const w in (y = m.raw) == null ? void 0 : y.Polygon) {
6894
- const k = m.raw.Polygon[w];
6948
+ for (const w in (y = u.raw) == null ? void 0 : y.Polygon) {
6949
+ const k = u.raw.Polygon[w];
6895
6950
  for (const _ of k)
6896
6951
  b.push(
6897
6952
  C.polygon(_, {
@@ -6899,67 +6954,67 @@ const Yo = {
6899
6954
  })
6900
6955
  );
6901
6956
  }
6902
- m.data = C.featureCollection(b);
6957
+ u.data = C.featureCollection(b);
6903
6958
  }
6904
- const v = i < this.zoom ? m.data.features.filter((b) => b.properties.val > 0.5) : m.data.features;
6959
+ const v = i < this.zoom ? u.data.features.filter((b) => b.properties.val > 0.5) : u.data.features;
6905
6960
  g = g.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
6906
6961
  }
6907
6962
  }
6908
- } else if (u === "wind") {
6963
+ } else if (m === "wind") {
6909
6964
  const f = this.weatherLayers.wind.raw;
6910
- for (const m in f)
6911
- if (m > s && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6912
- const v = f[m].lng;
6965
+ for (const u in f)
6966
+ if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6967
+ const v = f[u].lng;
6913
6968
  o > n ? v.forEach((b, w) => {
6914
6969
  if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6915
- const k = C.point([b, m], {
6916
- val: f[m].val[w],
6917
- spd: f[m].spd[w]
6970
+ const k = C.point([b, u], {
6971
+ val: f[u].val[w],
6972
+ spd: f[u].spd[w]
6918
6973
  });
6919
6974
  g.push(k);
6920
6975
  }
6921
6976
  }) : v.forEach((b, w) => {
6922
6977
  if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6923
- const k = C.point([b, m], {
6924
- val: f[m].val[w],
6925
- spd: f[m].spd[w]
6978
+ const k = C.point([b, u], {
6979
+ val: f[u].val[w],
6980
+ spd: f[u].spd[w]
6926
6981
  });
6927
6982
  g.push(k);
6928
6983
  }
6929
6984
  });
6930
6985
  }
6931
6986
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
6932
- } else if (u === "sig-wave-height") {
6933
- if (this.weatherLayers[u].data)
6934
- g = this.weatherLayers[u].data;
6987
+ } else if (m === "sig-wave-height") {
6988
+ if (this.weatherLayers[m].data)
6989
+ g = this.weatherLayers[m].data;
6935
6990
  else {
6936
- const f = this.weatherLayers[u].raw;
6991
+ const f = this.weatherLayers[m].raw;
6937
6992
  if (f) {
6938
- const m = [];
6993
+ const u = [];
6939
6994
  for (const v in f.Polygon) {
6940
6995
  const b = f.Polygon[v];
6941
6996
  for (const w of b)
6942
- m.push(
6997
+ u.push(
6943
6998
  C.polygon(w, {
6944
6999
  val: Number(v)
6945
7000
  })
6946
7001
  );
6947
7002
  }
6948
- g = g.concat(m);
7003
+ g = g.concat(u);
6949
7004
  }
6950
7005
  }
6951
7006
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
6952
- } else if (u === "prmsl") {
6953
- if (this.weatherLayers[u].data)
6954
- g = this.weatherLayers[u].data;
7007
+ } else if (m === "prmsl") {
7008
+ if (this.weatherLayers[m].data)
7009
+ g = this.weatherLayers[m].data;
6955
7010
  else {
6956
- const f = this.weatherLayers[u].raw;
7011
+ const f = this.weatherLayers[m].raw;
6957
7012
  if (f) {
6958
- const m = [];
7013
+ const u = [];
6959
7014
  for (const v in f.LineString) {
6960
7015
  const b = f.LineString[v];
6961
7016
  for (const w of b)
6962
- m.push(
7017
+ u.push(
6963
7018
  C.lineString(w, {
6964
7019
  val: Number(v)
6965
7020
  })
@@ -6967,39 +7022,39 @@ const Yo = {
6967
7022
  }
6968
7023
  for (const v in f.Point)
6969
7024
  f.Point[v].lng.forEach((b, w) => {
6970
- b = Re(b), m.push(
7025
+ b = Re(b), u.push(
6971
7026
  C.point([b, v], {
6972
7027
  val: f.Point[v].val[w],
6973
7028
  type: f.Point[v].type[w]
6974
7029
  })
6975
7030
  );
6976
7031
  });
6977
- g = g.concat(m);
7032
+ g = g.concat(u);
6978
7033
  }
6979
7034
  }
6980
7035
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
6981
- } else if (u === "arctic" || u === "iceberg") {
6982
- if (this.weatherLayers[u].data)
6983
- g = this.weatherLayers[u].data;
7036
+ } else if (m === "arctic" || m === "iceberg") {
7037
+ if (this.weatherLayers[m].data)
7038
+ g = this.weatherLayers[m].data;
6984
7039
  else {
6985
- const f = this.weatherLayers[u].raw;
7040
+ const f = this.weatherLayers[m].raw;
6986
7041
  if (f) {
6987
- const m = [];
7042
+ const u = [];
6988
7043
  for (const v in f.LineString) {
6989
7044
  const b = f.LineString[v];
6990
7045
  for (const w of b)
6991
- m.push(
7046
+ u.push(
6992
7047
  C.lineString(w, {
6993
7048
  val: Number(v)
6994
7049
  })
6995
7050
  );
6996
7051
  }
6997
- g = g.concat(m);
7052
+ g = g.concat(u);
6998
7053
  }
6999
7054
  }
7000
7055
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e);
7001
7056
  }
7002
- console.log(u, " elapsed: ", a, ", total: ", e += a), g.length && (this.weatherLayers[u].data = C.featureCollection(g)), this.weatherLayers[u].active = !0, this.weatherLayers[u].version = Math.random() + 1;
7057
+ 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;
7003
7058
  }
7004
7059
  },
7005
7060
  handleDragEndWithZoom4Image() {
@@ -7032,8 +7087,8 @@ const Yo = {
7032
7087
  this.handleBeforeLayerToggle();
7033
7088
  },
7034
7089
  handleBeforeLayerToggle() {
7035
- var t, e, a, r, i, o, n, s, c, h, p, d, y;
7036
- (t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (p = this.otherLayers) != null && p["voluntary-reporting-area"] || (d = this.otherLayers) != null && d["eca-zones"] || (y = this.otherLayers) != null && y["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7090
+ var t, e, a, r, i, o, n, s, c, h, d, p, y;
7091
+ (t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (d = this.otherLayers) != null && d["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (y = this.otherLayers) != null && y["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7037
7092
  },
7038
7093
  handleDateChange(t = { tropicals: !1 }) {
7039
7094
  this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
@@ -7062,13 +7117,13 @@ const Yo = {
7062
7117
  }
7063
7118
  },
7064
7119
  async handlePointChange(t) {
7065
- const e = this.ts ? Q(this.ts) : Q(), a = {
7120
+ const e = this.ts ? ee(this.ts) : ee(), a = {
7066
7121
  lat: t.lat,
7067
7122
  lng: t.lng,
7068
7123
  ts: e.utc().format(),
7069
7124
  wt: !0,
7070
7125
  src: this.source
7071
- }, r = await ae.get(`${this.gateway}/api/arc/meteo/query`, {
7126
+ }, r = await se.get(`${this.gateway}/api/arc/meteo/query`, {
7072
7127
  params: a,
7073
7128
  headers: {
7074
7129
  Authorization: this.token || this.defaultMeteoToken
@@ -7086,82 +7141,82 @@ const Yo = {
7086
7141
  this.particleFactor = t, this.fetchWeatherLayers({ tropicals: !1 });
7087
7142
  }
7088
7143
  }
7089
- }, Qo = {
7144
+ }, ts = {
7090
7145
  key: 0,
7091
7146
  className: "map-gl-home"
7092
7147
  };
7093
- function Ko(t, e, a, r, i, o) {
7094
- var q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee, We, He, Ze, Xe, Je, qe, Ye, Qe;
7095
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), p = z("IdmPrmsl"), d = z("IdmIceberg"), y = z("IdmTropicals"), u = z("IdmCurrents"), g = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), A = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), H = z("IdmLoadLine"), X = z("IdmTimezone"), ee = z("IdmVRA"), he = z("IdmSpecialArea"), te = z("IdmTerminator"), R = z("IdmLatLng"), V = z("IdmMeasure"), de = z("IdmPoint");
7096
- return a.map ? (L(), x("div", Qo, [
7097
- P(n, I({
7148
+ function as(t, e, a, r, i, o) {
7149
+ 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;
7150
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), y = z("IdmTropicals"), m = z("IdmCurrents"), g = z("IdmCurrentParticle"), f = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = 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");
7151
+ return a.map ? (L(), x("div", ts, [
7152
+ P(n, E({
7098
7153
  ref: "layer",
7099
7154
  map: a.map,
7100
7155
  "toggle-version": i.toggleVersion
7101
7156
  }, t.$attrs, {
7102
7157
  onWeather: o.handleWeatherLayerChange,
7103
7158
  onOther: o.handleOtherLayerChange,
7104
- onCoordinate: e[0] || (e[0] = (Y) => i.showCoord = Y),
7105
- onMeasure: e[1] || (e[1] = (Y) => i.showMeasure = Y),
7106
- onPoint: e[2] || (e[2] = (Y) => i.showPoint = Y),
7159
+ onCoordinate: e[0] || (e[0] = (K) => i.showCoord = K),
7160
+ onMeasure: e[1] || (e[1] = (K) => i.showMeasure = K),
7161
+ onPoint: e[2] || (e[2] = (K) => i.showPoint = K),
7107
7162
  on3d: o.handle3dToggle,
7108
- onToggleVersion: e[3] || (e[3] = (Y) => i.toggleVersion = Y)
7163
+ onToggleVersion: e[3] || (e[3] = (K) => i.toggleVersion = K)
7109
7164
  }), null, 16, ["map", "toggle-version", "onWeather", "onOther", "on3d"]),
7110
- P(s, I({
7165
+ P(s, E({
7111
7166
  map: a.map,
7112
7167
  token: a.token,
7113
7168
  enabled: (q = i.otherLayers) == null ? void 0 : q.enc,
7114
7169
  "toggle-version": i.toggleVersion
7115
7170
  }, t.$attrs, {
7116
- onEnc: e[4] || (e[4] = (Y) => i.enc = Y)
7171
+ onEnc: e[4] || (e[4] = (K) => i.enc = K)
7117
7172
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7118
- P(c, I({
7173
+ P(c, E({
7119
7174
  map: a.map,
7120
- "sig-wave": (ne = i.weatherLayers) == null ? void 0 : ne["sig-wave-height"],
7175
+ "sig-wave": (fe = i.weatherLayers) == null ? void 0 : fe["sig-wave-height"],
7121
7176
  "before-layer": a.beforeLayer
7122
7177
  }, t.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7123
- P(h, I({
7178
+ P(h, E({
7124
7179
  map: a.map,
7125
- swell: (fe = i.weatherLayers) == null ? void 0 : fe.swell,
7180
+ swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
7126
7181
  "before-layer": a.beforeLayer
7127
7182
  }, t.$attrs), null, 16, ["map", "swell", "before-layer"]),
7128
- P(p, I({
7183
+ P(d, E({
7129
7184
  map: a.map,
7130
- prmsl: (ge = i.weatherLayers) == null ? void 0 : ge.prmsl,
7185
+ prmsl: (R = i.weatherLayers) == null ? void 0 : R.prmsl,
7131
7186
  "before-layer": a.beforeLayer,
7132
7187
  "active-weather-layers": i.activeWeatherLayers
7133
7188
  }, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7134
- P(d, I({
7189
+ P(p, E({
7135
7190
  map: a.map,
7136
- iceberg: (be = i.weatherLayers) == null ? void 0 : be.iceberg,
7191
+ iceberg: (F = i.weatherLayers) == null ? void 0 : F.iceberg,
7137
7192
  "before-layer": a.beforeLayer
7138
7193
  }, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7139
- P(y, I({
7194
+ P(y, E({
7140
7195
  map: a.map,
7141
7196
  date: a.ts,
7142
- tropicals: (ve = i.weatherLayers) == null ? void 0 : ve.tropicals,
7197
+ tropicals: (ge = i.weatherLayers) == null ? void 0 : ge.tropicals,
7143
7198
  "before-layer": a.beforeLayer
7144
7199
  }, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7145
- P(u, I({
7200
+ P(m, E({
7146
7201
  map: a.map,
7147
- current: (_e = i.weatherLayers) == null ? void 0 : _e.current,
7202
+ current: (Q = i.weatherLayers) == null ? void 0 : Q.current,
7148
7203
  "before-layer": a.beforeLayer,
7149
7204
  "show-particle": i.showCurrentParticle,
7150
7205
  "margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
7151
7206
  "toggle-version": i.toggleVersion,
7152
7207
  "weather-layers": i.weatherLayers
7153
7208
  }, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7154
- P(g, I({
7209
+ P(g, E({
7155
7210
  viewport: i.viewport,
7156
- factor: (we = i.weatherLayers) == null ? void 0 : we["current-particle"],
7211
+ factor: (be = i.weatherLayers) == null ? void 0 : be["current-particle"],
7157
7212
  "before-layer": a.beforeLayer,
7158
7213
  "toggle-version": i.toggleVersion
7159
7214
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7160
- P(f, I({
7215
+ P(f, E({
7161
7216
  ref: "windBarb",
7162
7217
  map: a.map,
7163
- wind: (Le = i.weatherLayers) == null ? void 0 : Le.wind,
7164
- current: (xe = i.weatherLayers) == null ? void 0 : xe.current,
7218
+ wind: (ie = i.weatherLayers) == null ? void 0 : ie.wind,
7219
+ current: (re = i.weatherLayers) == null ? void 0 : re.current,
7165
7220
  "before-layer": a.beforeLayer,
7166
7221
  "margin-bottom": i.showRampColor ? "56px" : "30px",
7167
7222
  "show-particle": i.showWindParticle
@@ -7170,120 +7225,120 @@ function Ko(t, e, a, r, i, o) {
7170
7225
  "weather-layers": i.weatherLayers,
7171
7226
  onParticle: o.handleParticle
7172
7227
  }), null, 16, ["map", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
7173
- P(m, I({
7228
+ P(u, E({
7174
7229
  viewport: i.viewport,
7175
- factor: (Ce = i.weatherLayers) == null ? void 0 : Ce["wind-particle"],
7230
+ factor: (oe = i.weatherLayers) == null ? void 0 : oe["wind-particle"],
7176
7231
  "before-layer": a.beforeLayer,
7177
7232
  "toggle-version": i.toggleVersion
7178
7233
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7179
- P(v, I({
7234
+ P(v, E({
7180
7235
  viewport: i.viewport,
7181
7236
  factor: (Se = i.weatherLayers) == null ? void 0 : Se.precip3h,
7182
7237
  "before-layer": a.beforeLayer,
7183
7238
  "toggle-version": i.toggleVersion
7184
7239
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7185
- P(b, I({
7240
+ P(b, E({
7186
7241
  viewport: i.viewport,
7187
7242
  factor: (ke = i.weatherLayers) == null ? void 0 : ke.visibility,
7188
7243
  "before-layer": a.beforeLayer,
7189
7244
  "toggle-version": i.toggleVersion
7190
7245
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7191
- P(w, I({
7246
+ P(w, E({
7192
7247
  viewport: i.viewport,
7193
7248
  factor: (ze = i.weatherLayers) == null ? void 0 : ze["water-temp"],
7194
7249
  "before-layer": a.beforeLayer,
7195
7250
  "toggle-version": i.toggleVersion
7196
7251
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7197
- P(k, I({
7252
+ P(k, E({
7198
7253
  viewport: i.viewport,
7199
7254
  factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.temp,
7200
7255
  "before-layer": a.beforeLayer,
7201
7256
  "toggle-version": i.toggleVersion
7202
7257
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7203
- P(_, I({
7258
+ P(_, E({
7204
7259
  viewport: i.viewport,
7205
7260
  factor: (Te = i.weatherLayers) == null ? void 0 : Te.arctic,
7206
7261
  "before-layer": a.beforeLayer,
7207
7262
  "toggle-version": i.toggleVersion
7208
7263
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7209
- P(A, I({
7264
+ P(I, E({
7210
7265
  map: a.map,
7211
7266
  zone: (Ie = i.otherLayers) == null ? void 0 : Ie["war-zones"],
7212
7267
  "before-layer": a.beforeLayer
7213
7268
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7214
- P(D, I({
7269
+ P(D, E({
7215
7270
  map: a.map,
7216
7271
  area: (Ee = i.otherLayers) == null ? void 0 : Ee["gmdss-areas"],
7217
7272
  "before-layer": a.beforeLayer
7218
7273
  }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7219
- P($, I({
7274
+ P($, E({
7220
7275
  map: a.map,
7221
- zone: (We = i.otherLayers) == null ? void 0 : We["eca-zones"],
7276
+ zone: (Oe = i.otherLayers) == null ? void 0 : Oe["eca-zones"],
7222
7277
  "before-layer": a.beforeLayer
7223
7278
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7224
- P(W, I({
7279
+ P(W, E({
7225
7280
  map: a.map,
7226
7281
  zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
7227
7282
  "before-layer": a.beforeLayer
7228
7283
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7229
- P(O, I({
7284
+ P(O, E({
7230
7285
  map: a.map,
7231
7286
  port: (Ze = i.otherLayers) == null ? void 0 : Ze.ports,
7232
7287
  "before-layer": a.beforeLayer
7233
7288
  }, t.$attrs), null, 16, ["map", "port", "before-layer"]),
7234
- P(H, I({
7289
+ P(U, E({
7235
7290
  map: a.map,
7236
7291
  line: (Xe = i.otherLayers) == null ? void 0 : Xe["load-lines"],
7237
7292
  "before-layer": a.beforeLayer
7238
7293
  }, t.$attrs), null, 16, ["map", "line", "before-layer"]),
7239
- P(X, I({
7294
+ P(ae, E({
7240
7295
  map: a.map,
7241
7296
  zone: (Je = i.otherLayers) == null ? void 0 : Je["time-zones"],
7242
7297
  "before-layer": a.beforeLayer
7243
7298
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7244
- P(ee, I({
7299
+ P(de, E({
7245
7300
  map: a.map,
7246
7301
  area: (qe = i.otherLayers) == null ? void 0 : qe["voluntary-reporting-area"],
7247
7302
  "before-layer": a.beforeLayer
7248
7303
  }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7249
- P(he, I({
7304
+ P(pe, E({
7250
7305
  map: a.map,
7251
7306
  area: (Ye = i.otherLayers) == null ? void 0 : Ye["special-area"],
7252
7307
  "before-layer": a.beforeLayer
7253
7308
  }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7254
- P(te, I({
7309
+ P(me, E({
7255
7310
  map: a.map,
7256
7311
  area: (Qe = i.otherLayers) == null ? void 0 : Qe["day-night"]
7257
7312
  }, t.$attrs), null, 16, ["map", "area"]),
7258
- P(R, I({
7313
+ P(ue, E({
7259
7314
  map: a.map,
7260
7315
  show: i.showCoord,
7261
7316
  "toggle-version": i.toggleVersion
7262
7317
  }, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
7263
- P(V, I({
7318
+ P(ye, E({
7264
7319
  map: a.map,
7265
7320
  show: i.showMeasure
7266
7321
  }, t.$attrs), null, 16, ["map", "show"]),
7267
- P(de, I({
7322
+ P(X, E({
7268
7323
  map: a.map,
7269
7324
  show: i.showPoint,
7270
7325
  meteo: i.meteo
7271
7326
  }, t.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7272
7327
  ])) : N("", !0);
7273
7328
  }
7274
- const es = /* @__PURE__ */ T(Yo, [["render", Ko]]), cs = {
7329
+ const is = /* @__PURE__ */ T(es, [["render", as]]), ps = {
7275
7330
  install(t) {
7276
- t.component("MapboxGL", es), t.component("TropicalGL", tt), t.component("LatLngGL", at);
7331
+ t.component("MapboxGL", is), t.component("TropicalGL", tt), t.component("LatLngGL", at);
7277
7332
  }
7278
7333
  };
7279
7334
  export {
7280
7335
  at as LatLngGL,
7281
- es as MapboxGL,
7282
- cs as MapboxGLPlugin,
7336
+ is as MapboxGL,
7337
+ ps as MapboxGLPlugin,
7283
7338
  Qt as MapboxHelper,
7284
- F as ParticleSchema,
7339
+ V as ParticleSchema,
7285
7340
  tt as TropicalGL,
7286
- Ue as Viewport,
7287
- le as WebGL,
7341
+ Ge as Viewport,
7342
+ ve as WebGL,
7288
7343
  B as WebGLSchema
7289
7344
  };