@idmwx/idmui-gl3 4.5.0 → 4.5.2

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,24 +1,24 @@
1
1
  var Ve = Object.defineProperty;
2
2
  var Ue = (a, e, t) => e in a ? Ve(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var R = (a, e, t) => (Ue(a, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { resolveComponent as P, openBlock as _, createElementBlock as C, createElementVNode as n, normalizeStyle as U, createVNode as k, withCtx as X, normalizeClass as W, Fragment as _e, renderList as Se, toDisplayString as S, createCommentVNode as B, createTextVNode as Ie, withDirectives as Pe, createStaticVNode as Ze, vShow as ze, mergeProps as I } from "vue";
5
- import * as x from "@turf/turf";
6
- import He from "@mapbox/sphericalmercator";
7
- import Z from "moment";
3
+ var E = (a, e, t) => (Ue(a, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { resolveComponent as P, openBlock as L, createElementBlock as x, createElementVNode as n, normalizeStyle as Z, createVNode as k, withCtx as H, normalizeClass as D, Fragment as Ie, renderList as Ae, toDisplayString as S, createCommentVNode as M, createTextVNode as De, withDirectives as We, createStaticVNode as Ze, vShow as Me, defineComponent as He, mergeProps as R } from "vue";
5
+ import * as C from "@turf/turf";
6
+ import Ge from "@mapbox/sphericalmercator";
7
+ import G from "moment";
8
8
  import ee from "mapbox-gl";
9
- import { TropicalHelper as Oe, LngLatHelper as D, LaneHelper as K } from "@idm-plugin/geo";
9
+ import { TropicalHelper as Ne, LngLatHelper as W, LaneHelper as K } from "@idm-plugin/geo";
10
10
  import oe from "axios";
11
- var Ge = Object.defineProperty, Je = (a, e, t) => e in a ? Ge(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, ge = (a, e, t) => (Je(a, typeof e != "symbol" ? e + "" : e, t), t);
12
- class Ce {
11
+ var Xe = Object.defineProperty, Je = (a, e, t) => e in a ? Xe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, ge = (a, e, t) => (Je(a, typeof e != "symbol" ? e + "" : e, t), t);
12
+ class Re {
13
13
  }
14
- ge(Ce, "LEVEL", {
14
+ ge(Re, "LEVEL", {
15
15
  Basic: 1,
16
16
  Prime: 2,
17
17
  Supper: 1024
18
18
  });
19
- class ke {
19
+ class Ee {
20
20
  }
21
- ge(ke, "WEATHER_LAYERS", [
21
+ ge(Ee, "WEATHER_LAYERS", [
22
22
  {
23
23
  weight: 1,
24
24
  name: "Wind",
@@ -243,7 +243,7 @@ ge(ke, "WEATHER_LAYERS", [
243
243
  type: "jpg"
244
244
  }
245
245
  ]), // 其它图层
246
- ge(ke, "OTHER_LAYERS", [
246
+ ge(Ee, "OTHER_LAYERS", [
247
247
  {
248
248
  weight: 1,
249
249
  name: "War Zones",
@@ -355,9 +355,9 @@ ge(ke, "OTHER_LAYERS", [
355
355
  type: "origin"
356
356
  }
357
357
  ]);
358
- class Ee {
358
+ class Oe {
359
359
  }
360
- ge(Ee, "WEATHER_TAG", [
360
+ ge(Oe, "WEATHER_TAG", [
361
361
  {
362
362
  weight: 4,
363
363
  // 2^2
@@ -383,7 +383,7 @@ ge(Ee, "WEATHER_TAG", [
383
383
  positive: !0
384
384
  }
385
385
  ]), // 航行相关标签, 2^11 <= weight <= 2^20
386
- ge(Ee, "SAILING_TAG", [
386
+ ge(Oe, "SAILING_TAG", [
387
387
  {
388
388
  weight: 2048,
389
389
  // 2^11
@@ -425,7 +425,7 @@ ge(Ee, "SAILING_TAG", [
425
425
  positive: !0
426
426
  }
427
427
  ]), // 其他标签, 2^21 <= weight <= 2^31
428
- ge(Ee, "OTHER_TAG", [
428
+ ge(Oe, "OTHER_TAG", [
429
429
  {
430
430
  weight: 2097152,
431
431
  // 2^21
@@ -480,7 +480,7 @@ const T = (a, e) => {
480
480
  for (const [r, i] of e)
481
481
  t[r] = i;
482
482
  return t;
483
- }, Xe = {
483
+ }, Ye = {
484
484
  name: "IdmGlLayer",
485
485
  props: {
486
486
  map: {
@@ -521,23 +521,25 @@ const T = (a, e) => {
521
521
  default: void 0
522
522
  }
523
523
  },
524
- emits: ["weather", "other", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion"],
524
+ emits: ["weather", "other", "toggleWindParticle", "toggleWindFeather", "toggleCurrentParticle", "toggleCurrentIsoband", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion"],
525
525
  data() {
526
526
  return {
527
527
  autoActive: !0,
528
528
  layers: {
529
529
  weather: [
530
- ...ke.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
530
+ ...Ee.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
531
531
  ],
532
- other: [...ke.OTHER_LAYERS.filter((a) => a.key !== "world12nm" && a.enabled)]
532
+ other: [...Ee.OTHER_LAYERS.filter((a) => a.key !== "world12nm" && a.enabled)]
533
533
  },
534
- weatherLayers: [],
535
- otherLayers: [],
536
- weatherLayersCache: "weatherLayersCache",
534
+ activeWeatherLayers: [],
535
+ activeOtherLayers: [],
537
536
  autoActiveCache: "autoActiveCache",
538
- otherLayersCache: "otherLayersCache",
537
+ activeWeatherLayersCache: "activeWeatherLayersCache",
538
+ activeOtherLayersCache: "activeOtherLayersCache",
539
539
  collectedLayerCache: "collectedLayerCache",
540
540
  sourceCache: "defaultSourceCache",
541
+ windFeatherCache: "windFeatherCache",
542
+ currentIsobandCache: "currentIsobandCache",
541
543
  showCoord: !1,
542
544
  showMeasure: !1,
543
545
  showPoint: !1,
@@ -577,63 +579,70 @@ const T = (a, e) => {
577
579
  handler(a, e) {
578
580
  a && e && a !== e && this.handleConfirm();
579
581
  }
580
- },
581
- showWindFeather: {
582
- handler() {
583
- !this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 });
584
- }
585
- },
586
- showWindParticle: {
587
- handler() {
588
- !this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 });
589
- }
590
- },
591
- showCurrentIsoband: {
592
- handler() {
593
- !this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 });
594
- }
595
- },
596
- showCurrentParticle: {
597
- handler() {
598
- !this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 });
599
- }
600
582
  }
601
583
  },
602
584
  mounted() {
603
- const a = localStorage.getItem(this.version.k);
604
- this.version.v !== a && (localStorage.removeItem(this.weatherLayersCache), localStorage.removeItem(this.collectedLayerCache), localStorage.removeItem(this.otherLayersCache), localStorage.removeItem("windFeatherCache"), localStorage.removeItem("currentJsonCache"), localStorage.setItem(this.version.k, this.version.v));
605
- let e = localStorage.getItem(this.autoActiveCache);
606
- this.autoActive = e !== "false", e = localStorage.getItem(this.collectedLayerCache);
607
- let t = JSON.parse(
608
- e || '[{"weight": 16, "name": "Sig Waves", "key": "sig-wave-height", "collected": true},{"weight": 1, "name": "Wind", "key": "wind", "h5": true, "collected": true},{"weight": 96, "name": "Current", "key": "current", "collected": true},{"weight": 256, "name": "Tropicals", "key": "tropicals", "collected": true},{"weight": 4096, "name": "Pressure", "h5": true, "key": "prmsl", "collected": true},{"weight": 6, "name": "Swell", "key": "swell", "collected": true}]'
609
- );
610
- this.layers.weather.forEach((r) => {
611
- r.collected = !!t.some((i) => i.key === r.key && i.collected);
612
- }), e = localStorage.getItem(this.weatherLayersCache), t = JSON.parse(
613
- e || '[{"weight":1,"name":"Wind","key":"wind","enabled":true,"type":"json","particle":true},{"weight":4096,"name":"Pressure","key":"prmsl","enabled":true,"type":"json"},{"weight":256,"name":"Tropicals","key":"tropicals","enabled":true,"type":"json"}]'
614
- ), this.autoActive && (this.weatherLayers = [...t]), e = localStorage.getItem(this.otherLayersCache), t = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'), this.otherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS", this.handleConfirm();
585
+ this.fetchCache(), this.handleConfirm();
615
586
  },
616
587
  methods: {
588
+ fetchCache() {
589
+ const a = localStorage.getItem(this.version.k);
590
+ this.version.v !== a && (localStorage.removeItem(this.activeWeatherLayersCache), localStorage.removeItem(this.collectedLayerCache), localStorage.removeItem(this.activeOtherLayersCache), localStorage.removeItem(this.windFeatherCache), localStorage.removeItem(this.currentIsobandCache), localStorage.setItem(this.version.k, this.version.v));
591
+ let e = localStorage.getItem(this.autoActiveCache);
592
+ this.autoActive = e !== "false", e = localStorage.getItem(this.collectedLayerCache);
593
+ let t = JSON.parse(
594
+ e || '[{"weight": 16, "name": "Sig Waves", "key": "sig-wave-height", "collected": true},{"weight": 1, "name": "Wind", "key": "wind", "h5": true, "collected": true},{"weight": 96, "name": "Current", "key": "current", "collected": true},{"weight": 6, "name": "Swell", "key": "swell", "collected": true}]'
595
+ );
596
+ this.layers.weather.forEach((r) => {
597
+ r.collected = !!t.some((i) => i.key === r.key && i.collected);
598
+ }), e = localStorage.getItem(this.activeWeatherLayersCache), t = JSON.parse(
599
+ e || '[{"weight":1,"name":"Wind","key":"wind","enabled":true,"type":"json","particle":true},{"weight":4096,"name":"Pressure","key":"prmsl","enabled":true,"type":"json"},{"weight":256,"name":"Tropicals","key":"tropicals","enabled":true,"type":"json"}]'
600
+ ), this.autoActive && (this.activeWeatherLayers = [...t]), t.some((r) => r.key === "wind" && r.particle) && this.$emit("toggleWindParticle", !0), localStorage.getItem(this.windFeatherCache) === "true" && this.$emit("toggleWindFeather", !0), t.some((r) => r.key === "current" && r.particle) && this.$emit("toggleCurrentParticle", !0), localStorage.getItem(this.currentIsobandCache) === "true" && this.$emit("toggleCurrentIsoband", !0), e = localStorage.getItem(this.activeOtherLayersCache), t = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'), this.activeOtherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS";
601
+ },
617
602
  handleConfirm() {
618
- this.$emit("weather", this.weatherLayers, this.source), this.$emit("other", this.otherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
603
+ this.$emit("weather", this.activeWeatherLayers, this.source), this.$emit("other", this.activeOtherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
619
604
  },
620
605
  handleWeatherLayerPick(a) {
621
606
  if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe" || !this.autoActive)
622
607
  return !1;
623
- ["wind", "current"].includes(a.key) && !this.showWindFeather && !this.showCurrentIsoband && (a.particle = !0), this.weatherLayers.some((e) => e.key === a.key) ? this.weatherLayers = this.weatherLayers.filter((e) => e.key !== a.key) : this.weatherLayers.length < 12 && a.enabled && (["png", "jpg"].includes(a.type) && (this.weatherLayers = this.weatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(a)), this.$emit("weather", this.weatherLayers, this.source), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), localStorage.setItem(this.sourceCache, this.source);
608
+ (a.key === "wind" && !this.showWindFeather || a.key === "current" && !this.showCurrentIsoband) && (a.particle = !0), this.activeWeatherLayers.some((e) => e.key === a.key) ? this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key) : this.activeWeatherLayers.length < 12 && a.enabled && (["png", "jpg"].includes(a.type) ? this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !e.particle) : a.particle && (this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(a.key) && e.particle))), this.activeWeatherLayers.push(a)), this.$emit("weather", this.activeWeatherLayers, this.source), localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify(this.activeWeatherLayers));
609
+ },
610
+ handleActiveWeatherLayerPick(a) {
611
+ if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
612
+ return !1;
613
+ if (this.activeWeatherLayers.some((e) => e.key === a.key))
614
+ this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key);
615
+ else if (a.enabled) {
616
+ this.activeWeatherLayers.push(a);
617
+ for (const e of this.activeWeatherLayers)
618
+ a.weight > e.weight && a.weight & e.weight && this.activeWeatherLayers.push(e);
619
+ }
620
+ this.handleWeatherLayerPick(a);
624
621
  },
625
622
  handleWeatherLayerCollect(a) {
626
623
  var e;
627
624
  !a.collected && ((e = this.layers.weather.filter((t) => t.collected)) == null ? void 0 : e.length) >= 6 && (this.layers.weather.filter((t) => t.collected)[0].collected = !1), a.collected = !a.collected, localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
628
625
  },
626
+ handleToggleWindParticle() {
627
+ !this.showWindFeather && this.showWindParticle ? this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }) : this.$emit("toggleWindParticle", !this.showWindParticle);
628
+ },
629
+ handleToggleWindFeather() {
630
+ this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }), this.$emit("toggleWindFeather", !this.showWindFeather), localStorage.setItem(this.windFeatherCache, !this.showWindFeather);
631
+ },
632
+ handleToggleCurrentParticle() {
633
+ !this.showCurrentIsoband && this.showCurrentParticle ? this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }) : this.$emit("toggleCurrentParticle", !this.showCurrentParticle);
634
+ },
635
+ handleToggleCurrentIsoband() {
636
+ this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }), this.$emit("toggleCurrentIsoband", !this.showCurrentIsoband), localStorage.setItem(this.currentIsobandCache, !this.showCurrentIsoband);
637
+ },
629
638
  handleOtherLayerPick(a) {
630
- this.otherLayers.some((e) => e.key === a.key) ? this.otherLayers = this.otherLayers.filter((e) => e.key !== a.key) : a.enabled && this.otherLayers.push(a), localStorage.setItem(this.otherLayersCache, JSON.stringify(this.otherLayers)), this.$emit("other", this.otherLayers);
639
+ this.activeOtherLayers.some((e) => e.key === a.key) ? this.activeOtherLayers = this.activeOtherLayers.filter((e) => e.key !== a.key) : a.enabled && this.activeOtherLayers.push(a), localStorage.setItem(this.activeOtherLayersCache, JSON.stringify(this.activeOtherLayers)), this.$emit("other", this.activeOtherLayers);
631
640
  },
632
641
  handleMenuToggle() {
633
642
  this.$emit("layerToggle", !this.layerToggle);
634
643
  },
635
644
  toggleAutoActive() {
636
- this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? this.$emit("weather", this.weatherLayers, this.source) : this.$emit("weather", [], this.source);
645
+ this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? this.$emit("weather", this.activeWeatherLayers, this.source) : this.$emit("weather", [], this.source);
637
646
  },
638
647
  handleCoordToggle() {
639
648
  this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
@@ -648,32 +657,62 @@ const T = (a, e) => {
648
657
  this.show3d = !this.show3d, this.$emit("3d", this.show3d);
649
658
  }
650
659
  }
651
- }, Ye = { class: "idm-gl3-layer" }, qe = { class: "bar-item layer-bars" }, Qe = { class: "bar-item tool-bars" }, Ke = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, et = ["onClick"], tt = { class: "header-box flex-between" }, at = { class: "weather-layers card-bg" }, it = { class: "layers-body" }, rt = ["onClick"], ot = ["onClick"], st = {
660
+ }, qe = { class: "idm-gl3-layer" }, Qe = { class: "bar-item layer-bars" }, Ke = { class: "bar-item tool-bars" }, et = { class: "flex-between" }, tt = {
661
+ key: 0,
662
+ class: "iconfont active"
663
+ }, at = {
664
+ key: 1,
665
+ class: "iconfont"
666
+ }, it = ["onClick"], rt = ["onClick"], ot = {
667
+ key: 0,
668
+ class: "flex-start"
669
+ }, st = {
670
+ key: 1,
671
+ class: "flex-start"
672
+ }, nt = { class: "header-box flex-between" }, lt = { class: "weather-layers card-bg" }, ct = { class: "layers-title flex-between" }, ht = {
652
673
  key: 0,
653
- class: "iconfont bookmark active"
654
- }, nt = {
674
+ class: "iconfont active"
675
+ }, dt = {
655
676
  key: 1,
656
- class: "iconfont bookmark inactive"
657
- }, lt = { class: "other-layers card-bg" }, ct = { class: "layers-body" }, ht = ["onClick"], dt = { class: "flex-start" }, pt = { class: "source-layers card-bg" }, mt = { class: "layers-body" };
658
- function ut(a, e, t, r, i, o) {
659
- const s = P("ElTooltip"), l = P("ElRadio"), h = P("ElRadioGroup"), d = P("ElScrollbar");
660
- return _(), C("div", Ye, [
677
+ class: "iconfont"
678
+ }, pt = { class: "layers-body" }, mt = { class: "flex-start" }, ut = ["onClick"], yt = ["onClick"], ft = {
679
+ key: 0,
680
+ class: "flex-start"
681
+ }, gt = {
682
+ key: 1,
683
+ class: "flex-start"
684
+ }, bt = ["onClick"], vt = {
685
+ key: 0,
686
+ class: "iconfont bookmark-icon active"
687
+ }, wt = {
688
+ key: 1,
689
+ class: "iconfont bookmark-icon inactive"
690
+ }, Lt = { class: "other-layers card-bg" }, xt = { class: "layers-body" }, _t = ["onClick"], Ct = { class: "flex-start" }, kt = { class: "switch flex-center" }, St = {
691
+ key: 0,
692
+ class: "iconfont active"
693
+ }, Pt = {
694
+ key: 1,
695
+ class: "iconfont"
696
+ }, zt = { class: "source-layers card-bg" }, Tt = { class: "layers-body" };
697
+ function It(a, e, t, r, i, o) {
698
+ const s = P("ElTooltip"), l = P("ElRadio"), h = P("ElRadioGroup"), p = P("ElScrollbar");
699
+ return L(), x("div", qe, [
661
700
  n("div", {
662
701
  class: "menu-bar-box",
663
- style: U({ top: t.top + 10 + "px", right: i.right + "px" })
702
+ style: Z({ top: t.top + 10 + "px", right: i.right + "px" })
664
703
  }, [
665
- n("div", qe, [
704
+ n("div", Qe, [
666
705
  k(s, {
667
706
  placement: "left",
668
707
  effect: "light",
669
708
  content: "Menu",
670
709
  "show-after": 1e3
671
710
  }, {
672
- default: X(() => [
711
+ default: H(() => [
673
712
  n("div", {
674
- class: W(t.layerToggle ? "menu-icon active" : "menu-icon"),
713
+ class: D(t.layerToggle ? "menu-icon active" : "menu-icon"),
675
714
  onClick: e[0] || (e[0] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
676
- }, e[9] || (e[9] = [
715
+ }, e[17] || (e[17] = [
677
716
  n("span", { class: "iconfont" }, "", -1)
678
717
  ]), 2)
679
718
  ]),
@@ -683,20 +722,20 @@ function ut(a, e, t, r, i, o) {
683
722
  ], 4),
684
723
  n("div", {
685
724
  class: "menu-bar-box",
686
- style: U({ top: t.top + 160 + "px", right: i.right + "px" })
725
+ style: Z({ top: t.top + 160 + "px", right: i.right + "px" })
687
726
  }, [
688
- n("div", Qe, [
727
+ n("div", Ke, [
689
728
  k(s, {
690
729
  placement: "left",
691
730
  effect: "light",
692
731
  content: "Measure",
693
732
  "show-after": 1e3
694
733
  }, {
695
- default: X(() => [
734
+ default: H(() => [
696
735
  n("div", {
697
- class: W(i.showMeasure ? "menu-icon active" : "menu-icon"),
736
+ class: D(i.showMeasure ? "menu-icon active" : "menu-icon"),
698
737
  onClick: e[1] || (e[1] = (...c) => o.handleMeasureToggle && o.handleMeasureToggle(...c))
699
- }, e[10] || (e[10] = [
738
+ }, e[18] || (e[18] = [
700
739
  n("span", { class: "iconfont" }, "", -1)
701
740
  ]), 2)
702
741
  ]),
@@ -708,11 +747,11 @@ function ut(a, e, t, r, i, o) {
708
747
  content: "Point Meteo",
709
748
  "show-after": 1e3
710
749
  }, {
711
- default: X(() => [
750
+ default: H(() => [
712
751
  n("div", {
713
- class: W(i.showPoint ? "menu-icon active" : "menu-icon"),
752
+ class: D(i.showPoint ? "menu-icon active" : "menu-icon"),
714
753
  onClick: e[2] || (e[2] = (...c) => o.handlePointToggle && o.handlePointToggle(...c))
715
- }, e[11] || (e[11] = [
754
+ }, e[19] || (e[19] = [
716
755
  n("span", { class: "iconfont" }, "", -1)
717
756
  ]), 2)
718
757
  ]),
@@ -724,11 +763,11 @@ function ut(a, e, t, r, i, o) {
724
763
  content: "Grid",
725
764
  "show-after": 1e3
726
765
  }, {
727
- default: X(() => [
766
+ default: H(() => [
728
767
  n("div", {
729
- class: W(i.showCoord ? "menu-icon active" : "menu-icon"),
768
+ class: D(i.showCoord ? "menu-icon active" : "menu-icon"),
730
769
  onClick: e[3] || (e[3] = (...c) => o.handleCoordToggle && o.handleCoordToggle(...c))
731
- }, e[12] || (e[12] = [
770
+ }, e[20] || (e[20] = [
732
771
  n("span", { class: "iconfont" }, "", -1)
733
772
  ]), 2)
734
773
  ]),
@@ -740,11 +779,11 @@ function ut(a, e, t, r, i, o) {
740
779
  content: "3D",
741
780
  "show-after": 1e3
742
781
  }, {
743
- default: X(() => [
782
+ default: H(() => [
744
783
  n("div", {
745
- class: W(i.show3d ? "menu-icon active" : "menu-icon"),
784
+ class: D(i.show3d ? "menu-icon active" : "menu-icon"),
746
785
  onClick: e[4] || (e[4] = (...c) => o.handle3DToggle && o.handle3DToggle(...c))
747
- }, e[13] || (e[13] = [
786
+ }, e[21] || (e[21] = [
748
787
  n("span", { class: "iconfont" }, "", -1)
749
788
  ]), 2)
750
789
  ]),
@@ -752,127 +791,174 @@ function ut(a, e, t, r, i, o) {
752
791
  })
753
792
  ])
754
793
  ], 4),
755
- o.hasCollectedLayers ? (_(), C("div", {
794
+ o.hasCollectedLayers ? (L(), x("div", {
756
795
  key: 0,
757
- class: W(["active-layers flex-between", i.autoActive ? "active" : ""]),
758
- style: U({ right: i.right + "px", bottom: "100px" })
796
+ class: "active-layers",
797
+ style: Z({ right: i.right + "px", bottom: "100px" })
759
798
  }, [
760
- n("div", Ke, [
761
- (_(!0), C(_e, null, Se(i.layers.weather.filter((c) => c.collected), (c) => (_(), C("div", {
762
- key: c.key,
763
- class: W(o.computeLayerClass(c, i.weatherLayers)),
764
- onClick: (p) => o.handleWeatherLayerPick(c)
799
+ n("div", et, [
800
+ e[22] || (e[22] = n("div", { style: { "margin-left": "5px" } }, "My Favorites", -1)),
801
+ n("div", {
802
+ class: "switch flex-center",
803
+ style: { "font-size": "28px", "margin-right": "0" },
804
+ onClick: e[5] || (e[5] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
765
805
  }, [
766
- e[14] || (e[14] = n("div", { class: "checkbox" }, null, -1)),
767
- n("span", null, S(c.name), 1)
768
- ], 10, et))), 128))
806
+ i.autoActive ? (L(), x("i", tt, "")) : (L(), x("i", at, ""))
807
+ ])
769
808
  ]),
770
- n("div", {
771
- class: "switch flex-center",
772
- style: { "margin-top": "4px", "align-self": "flex-start", "font-size": "28px" },
773
- onClick: e[5] || (e[5] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
774
- }, e[15] || (e[15] = [
775
- n("i", { class: "iconfont open" }, "", -1),
776
- n("i", { class: "iconfont close" }, "", -1)
777
- ]))
778
- ], 6)) : B("", !0),
809
+ (L(!0), x(Ie, null, Ae(i.layers.weather.filter((c) => c.collected), (c) => (L(), x("div", {
810
+ key: c.key,
811
+ class: D(o.computeLayerClass(c, i.activeWeatherLayers))
812
+ }, [
813
+ n("div", {
814
+ class: "checkbox",
815
+ onClick: (d) => o.handleWeatherLayerPick(c)
816
+ }, null, 8, it),
817
+ n("span", {
818
+ class: "name",
819
+ onClick: (d) => o.handleWeatherLayerPick(c)
820
+ }, S(c.name), 9, rt),
821
+ c.key === "wind" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", ot, [
822
+ n("i", {
823
+ class: D(["iconfont sub-layer-icon", t.showWindParticle ? "active" : ""]),
824
+ onClick: e[6] || (e[6] = (d) => o.handleToggleWindParticle())
825
+ }, "", 2),
826
+ n("i", {
827
+ class: D(["iconfont sub-layer-icon", t.showWindFeather ? "active" : ""]),
828
+ onClick: e[7] || (e[7] = (d) => o.handleToggleWindFeather())
829
+ }, "", 2)
830
+ ])) : M("", !0),
831
+ c.key === "current" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", st, [
832
+ n("i", {
833
+ class: D(["iconfont sub-layer-icon", t.showCurrentParticle ? "active" : ""]),
834
+ onClick: e[8] || (e[8] = (d) => o.handleToggleCurrentParticle())
835
+ }, "", 2),
836
+ n("i", {
837
+ class: D(["iconfont sub-layer-icon", t.showCurrentIsoband ? "active" : ""]),
838
+ onClick: e[9] || (e[9] = (d) => o.handleToggleCurrentIsoband())
839
+ }, "", 2)
840
+ ])) : M("", !0)
841
+ ], 2))), 128))
842
+ ], 4)) : M("", !0),
779
843
  n("div", {
780
844
  class: "available-layers flex-center",
781
- style: U({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
845
+ style: Z({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
782
846
  }, [
783
847
  n("div", {
784
- class: W(["list-box", t.layerToggle ? "right-bar" : ""])
848
+ class: D(["list-box", t.layerToggle ? "right-bar" : ""])
785
849
  }, [
786
- n("div", tt, [
787
- e[16] || (e[16] = n("div", null, "Layers", -1)),
850
+ n("div", nt, [
851
+ e[23] || (e[23] = n("div", null, "Layers", -1)),
788
852
  n("div", {
789
853
  class: "iconfont close-btn",
790
- onClick: e[6] || (e[6] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
854
+ onClick: e[10] || (e[10] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
791
855
  }, "")
792
856
  ]),
793
- k(d, { style: { flex: "1" } }, {
794
- default: X(() => [
795
- n("div", at, [
796
- n("div", {
797
- class: W(["layers-title flex-between", i.autoActive ? "active" : ""])
798
- }, [
799
- e[18] || (e[18] = n("div", null, "Weather Layers", -1)),
857
+ k(p, { style: { flex: "1" } }, {
858
+ default: H(() => [
859
+ n("div", lt, [
860
+ n("div", ct, [
861
+ e[24] || (e[24] = n("div", null, "Weather Layers", -1)),
800
862
  n("div", {
801
863
  class: "switch flex-center",
802
864
  style: { "margin-right": "0" },
803
- onClick: e[7] || (e[7] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
804
- }, e[17] || (e[17] = [
805
- n("i", { class: "iconfont open" }, "", -1),
806
- n("i", { class: "iconfont close" }, "", -1)
807
- ]))
808
- ], 2),
809
- n("div", it, [
810
- (_(!0), C(_e, null, Se(i.layers.weather, (c) => (_(), C(_e, {
865
+ onClick: e[11] || (e[11] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
866
+ }, [
867
+ i.autoActive ? (L(), x("i", ht, "")) : (L(), x("i", dt, ""))
868
+ ])
869
+ ]),
870
+ n("div", pt, [
871
+ (L(!0), x(Ie, null, Ae(i.layers.weather, (c) => (L(), x(Ie, {
811
872
  key: c.key
812
873
  }, [
813
- c.hide ? B("", !0) : (_(), C("div", {
874
+ c.hide ? M("", !0) : (L(), x("div", {
814
875
  key: 0,
815
- class: W(o.computeLayerClass(c, i.weatherLayers))
876
+ class: D(o.computeLayerClass(c, i.activeWeatherLayers))
816
877
  }, [
878
+ n("div", mt, [
879
+ n("div", {
880
+ class: "checkbox",
881
+ onClick: (d) => o.handleWeatherLayerPick(c)
882
+ }, null, 8, ut),
883
+ n("span", {
884
+ class: "name",
885
+ onClick: (d) => o.handleWeatherLayerPick(c)
886
+ }, S(c.name), 9, yt),
887
+ c.key === "wind" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", ft, [
888
+ n("i", {
889
+ class: D(["iconfont sub-layer-icon", t.showWindParticle ? "active" : ""]),
890
+ onClick: e[12] || (e[12] = (d) => o.handleToggleWindParticle())
891
+ }, "", 2),
892
+ n("i", {
893
+ class: D(["iconfont sub-layer-icon", t.showWindFeather ? "active" : ""]),
894
+ onClick: e[13] || (e[13] = (d) => o.handleToggleWindFeather())
895
+ }, "", 2)
896
+ ])) : M("", !0),
897
+ c.key === "current" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", gt, [
898
+ n("i", {
899
+ class: D(["iconfont sub-layer-icon", t.showCurrentParticle ? "active" : ""]),
900
+ onClick: e[14] || (e[14] = (d) => o.handleToggleCurrentParticle())
901
+ }, "", 2),
902
+ n("i", {
903
+ class: D(["iconfont sub-layer-icon", t.showCurrentIsoband ? "active" : ""]),
904
+ onClick: e[15] || (e[15] = (d) => o.handleToggleCurrentIsoband())
905
+ }, "", 2)
906
+ ])) : M("", !0)
907
+ ]),
817
908
  n("div", {
818
- class: "flex-start",
819
- onClick: (p) => o.handleWeatherLayerPick(c)
820
- }, [
821
- e[19] || (e[19] = n("div", { class: "checkbox" }, null, -1)),
822
- n("span", null, S(c.name), 1)
823
- ], 8, rt),
824
- n("div", {
825
- onClick: (p) => o.handleWeatherLayerCollect(c)
909
+ onClick: (d) => o.handleWeatherLayerCollect(c)
826
910
  }, [
827
- c.collected ? (_(), C("i", st, "")) : (_(), C("i", nt, ""))
828
- ], 8, ot)
911
+ c.collected ? (L(), x("i", vt, "")) : (L(), x("i", wt, ""))
912
+ ], 8, bt)
829
913
  ], 2))
830
914
  ], 64))), 128)),
831
- e[20] || (e[20] = n("div", { class: "tip flex-start" }, [
915
+ e[25] || (e[25] = n("div", { class: "tip flex-start" }, [
832
916
  n("i", {
833
- class: "iconfont bookmark",
917
+ class: "iconfont bookmark-icon",
834
918
  style: { "align-self": "flex-start", padding: "5px 5px 0 0" }
835
919
  }, ""),
836
- n("div", null, "Bookmark your favorite layer to homepage(Max 6)")
920
+ n("div", null, "You can add the layers to your favorites. (Max 6)")
837
921
  ], -1))
838
922
  ])
839
923
  ]),
840
- n("div", lt, [
841
- e[22] || (e[22] = n("div", { class: "layers-title" }, "Other Layers", -1)),
842
- n("div", ct, [
843
- (_(!0), C(_e, null, Se(i.layers.other, (c) => (_(), C("div", {
844
- key: c.key,
845
- class: W(o.computeLayerClass(c, i.otherLayers)),
846
- onClick: (p) => o.handleOtherLayerPick(c)
847
- }, [
848
- n("div", dt, [
849
- e[21] || (e[21] = n("div", { class: "switch flex-center" }, [
850
- n("i", { class: "iconfont open" }, ""),
851
- n("i", { class: "iconfont close" }, "")
852
- ], -1)),
853
- n("span", null, S(c.name), 1)
854
- ])
855
- ], 10, ht))), 128))
924
+ n("div", Lt, [
925
+ e[26] || (e[26] = n("div", { class: "layers-title" }, "Other Layers", -1)),
926
+ n("div", xt, [
927
+ (L(!0), x(Ie, null, Ae(i.layers.other, (c) => {
928
+ var d;
929
+ return L(), x("div", {
930
+ key: c.key,
931
+ class: D(["layer flex-between", o.computeLayerClass(c, i.activeOtherLayers)]),
932
+ onClick: (f) => o.handleOtherLayerPick(c)
933
+ }, [
934
+ n("div", Ct, [
935
+ n("div", kt, [
936
+ (d = o.computeLayerClass(c, i.activeOtherLayers)) != null && d.includes("active") ? (L(), x("i", St, "")) : (L(), x("i", Pt, ""))
937
+ ]),
938
+ n("span", null, S(c.name), 1)
939
+ ])
940
+ ], 10, _t);
941
+ }), 128))
856
942
  ])
857
943
  ]),
858
- n("div", pt, [
859
- e[25] || (e[25] = n("span", { class: "layers-title" }, "Forecast Model", -1)),
860
- n("div", mt, [
944
+ n("div", zt, [
945
+ e[29] || (e[29] = n("span", { class: "layers-title" }, "Forecast Model", -1)),
946
+ n("div", Tt, [
861
947
  k(h, {
862
948
  modelValue: i.source,
863
- "onUpdate:modelValue": e[8] || (e[8] = (c) => i.source = c),
949
+ "onUpdate:modelValue": e[16] || (e[16] = (c) => i.source = c),
864
950
  class: "layer-radio flex-col-center-start"
865
951
  }, {
866
- default: X(() => [
952
+ default: H(() => [
867
953
  k(l, { value: "GFS" }, {
868
- default: X(() => e[23] || (e[23] = [
869
- Ie("GFS")
954
+ default: H(() => e[27] || (e[27] = [
955
+ De("GFS")
870
956
  ])),
871
957
  _: 1
872
958
  }),
873
959
  k(l, { value: "CMEMS" }, {
874
- default: X(() => e[24] || (e[24] = [
875
- Ie("CMEMS")
960
+ default: H(() => e[28] || (e[28] = [
961
+ De("CMEMS")
876
962
  ])),
877
963
  _: 1
878
964
  })
@@ -888,8 +974,8 @@ function ut(a, e, t, r, i, o) {
888
974
  ], 4)
889
975
  ]);
890
976
  }
891
- const yt = /* @__PURE__ */ T(Xe, [["render", ut]]);
892
- const ft = {
977
+ const Rt = /* @__PURE__ */ T(Ye, [["render", It]]);
978
+ const Et = {
893
979
  name: "IdmWindBarb",
894
980
  props: {
895
981
  map: {
@@ -907,7 +993,11 @@ const ft = {
907
993
  mapProjection: {
908
994
  type: String
909
995
  },
910
- showParticle: {
996
+ showWindFeather: {
997
+ type: Boolean,
998
+ default: !1
999
+ },
1000
+ showWindParticle: {
911
1001
  type: Boolean,
912
1002
  default: !1
913
1003
  },
@@ -920,9 +1010,7 @@ const ft = {
920
1010
  return {
921
1011
  source: "wind-barb-source",
922
1012
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
923
- empty: x.featureCollection([]),
924
- showFeather: localStorage.getItem("windFeatherCache") === "true" || !1,
925
- windFeatherCache: "windFeatherCache",
1013
+ empty: C.featureCollection([]),
926
1014
  right: 10,
927
1015
  bottom: 125,
928
1016
  windBarbLoaded: !1
@@ -932,32 +1020,35 @@ const ft = {
932
1020
  "wind.version": {
933
1021
  handler() {
934
1022
  var a;
935
- (a = this.wind) != null && a.active && this.showFeather ? this.handleRender() : this.handleClear();
1023
+ (a = this.wind) != null && a.active && this.showWindFeather ? this.handleRender() : this.handleClear();
936
1024
  },
937
1025
  deep: !0
938
1026
  },
939
- showParticle: {
940
- handler() {
941
- },
942
- immediate: !0
943
- },
944
- showFeather: {
1027
+ showWindParticle: {
945
1028
  handler() {
946
- localStorage.setItem(this.windFeatherCache, this.showFeather), this.handleToggle(), this.$emit("showWindFeather", this.showFeather);
947
- },
948
- immediate: !0
1029
+ this.handleParticle();
1030
+ }
1031
+ // immediate: true,
949
1032
  },
950
- toggleVersion: {
1033
+ showWindFeather: {
951
1034
  handler() {
952
- var a, e, t, r;
953
- this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10, this.bottom = (e = this.current) != null && e.active ? (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 148 : (((r = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : r.clientHeight) || 0) + 110;
954
- },
955
- immediate: !0
1035
+ this.handleToggle();
1036
+ }
1037
+ // immediate: true,
956
1038
  }
1039
+ // toggleVersion: {
1040
+ // handler() {
1041
+ // this.right = (document.getElementsByClassName('right-bar')[0]?.clientWidth || 0) + 10
1042
+ // this.bottom = this.current?.active
1043
+ // ? (document.getElementsByClassName('active-layers')[0]?.clientHeight || 0) + 148
1044
+ // : (document.getElementsByClassName('active-layers')[0]?.clientHeight || 0) + 110
1045
+ // },
1046
+ // immediate: true,
1047
+ // },
957
1048
  },
958
1049
  methods: {
959
1050
  handleParticle() {
960
- this.$emit("particle", { particle: !this.showParticle, key: "wind", weight: 1 });
1051
+ this.$emit("particle", { particle: this.showWindParticle, key: "wind", weight: 1 });
961
1052
  },
962
1053
  handleRender() {
963
1054
  var a, e, t, r;
@@ -973,22 +1064,22 @@ const ft = {
973
1064
  else {
974
1065
  this.map.addSource(this.source, { type: "geojson", data: l });
975
1066
  for (let h = 0; h < (this.barbs ?? []).length - 1; h++) {
976
- const d = (this.barbs ?? [])[h] || 0, c = (this.barbs ?? [])[h + 1] || 0, p = d < 10 ? `00${d}kts` : d < 100 ? `0${d}kts` : `${d}kts`;
1067
+ const p = (this.barbs ?? [])[h] || 0, c = (this.barbs ?? [])[h + 1] || 0, d = p < 10 ? `00${p}kts` : p < 100 ? `0${p}kts` : `${p}kts`;
977
1068
  this.map.addLayer(
978
1069
  {
979
- id: p,
1070
+ id: d,
980
1071
  type: "symbol",
981
1072
  filter: [
982
1073
  "all",
983
1074
  // @ts-ignore
984
- [">=", "spd", d],
1075
+ [">=", "spd", p],
985
1076
  // @ts-ignore
986
1077
  ["<", "spd", c]
987
1078
  ],
988
1079
  source: this.source,
989
1080
  layout: {
990
1081
  "symbol-placement": "point",
991
- "icon-image": p,
1082
+ "icon-image": d,
992
1083
  // mapbox sprite
993
1084
  "icon-size": 0.14,
994
1085
  "icon-offset": [0, -20],
@@ -1020,7 +1111,7 @@ const ft = {
1020
1111
  else
1021
1112
  for (const a of this.barbs ?? []) {
1022
1113
  const e = a < 10 ? `00${a}kts` : a < 100 ? `0${a}kts` : `${a}kts`;
1023
- this.map.getLayer(e) && this.map.setLayoutProperty(e, "visibility", this.showFeather ? "visible" : "none");
1114
+ this.map.getLayer(e) && this.map.setLayoutProperty(e, "visibility", this.showWindFeather ? "visible" : "none");
1024
1115
  }
1025
1116
  },
1026
1117
  handleClear() {
@@ -1031,45 +1122,24 @@ const ft = {
1031
1122
  this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
1032
1123
  }
1033
1124
  }
1034
- }, gt = { key: 0 };
1035
- function bt(a, e, t, r, i, o) {
1125
+ }, At = { key: 0 };
1126
+ function Dt(a, e, t, r, i, o) {
1036
1127
  var s;
1037
- return (s = t.wind) != null && s.active ? (_(), C("div", gt, [
1038
- n("div", {
1039
- class: "flex-center wind-tool-bars",
1040
- style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
1041
- }, [
1042
- t.mapProjection === "mercator" ? (_(), C("div", {
1043
- key: 0,
1044
- class: W(["item-bar flex-start", t.showParticle ? "active" : "inactive"]),
1045
- onClick: e[0] || (e[0] = (...l) => o.handleParticle && o.handleParticle(...l))
1046
- }, e[2] || (e[2] = [
1047
- n("div", { class: "checkbox" }, null, -1),
1048
- n("span", null, "Wind Particles", -1)
1049
- ]), 2)) : B("", !0),
1050
- n("div", {
1051
- class: W(["item-bar flex-start", i.showFeather ? "active" : "inactive"]),
1052
- onClick: e[1] || (e[1] = (l) => i.showFeather = !i.showFeather)
1053
- }, e[3] || (e[3] = [
1054
- n("div", { class: "checkbox" }, null, -1),
1055
- n("span", null, "Wind Feather", -1)
1056
- ]), 2)
1057
- ], 4)
1058
- ])) : B("", !0);
1128
+ return (s = t.wind) != null && s.active ? (L(), x("div", At)) : M("", !0);
1059
1129
  }
1060
- const vt = /* @__PURE__ */ T(ft, [["render", bt]]);
1061
- class Re {
1130
+ const Wt = /* @__PURE__ */ T(Et, [["render", Dt]]);
1131
+ class Be {
1062
1132
  constructor(e) {
1063
- R(this, "map");
1064
- R(this, "mercator");
1065
- R(this, "rampColorLayer");
1066
- R(this, "rampColorSource");
1067
- R(this, "particleLayer");
1068
- R(this, "particleSource");
1069
- R(this, "rampColorCanvas");
1070
- R(this, "particleCanvas");
1071
- R(this, "ratio");
1072
- this.map = e, this.mercator = new He(), 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;
1133
+ E(this, "map");
1134
+ E(this, "mercator");
1135
+ E(this, "rampColorLayer");
1136
+ E(this, "rampColorSource");
1137
+ E(this, "particleLayer");
1138
+ E(this, "particleSource");
1139
+ E(this, "rampColorCanvas");
1140
+ E(this, "particleCanvas");
1141
+ E(this, "ratio");
1142
+ this.map = e, this.mercator = new Ge(), 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;
1073
1143
  }
1074
1144
  /**
1075
1145
  * 转换为[-180, 180]的经度,且包含转换次数
@@ -1103,8 +1173,8 @@ class Re {
1103
1173
  * @param [lb.x, lb.y, rt.x, rt.y]
1104
1174
  */
1105
1175
  getBoundPixel() {
1106
- const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, s] = this.convertNLng(r[0]), [l, h] = this.convertNLng(i[0]), [d, c] = this.mercator.px([o, r[1]], t), [p, f] = this.mercator.px([l, i[1]], t), m = Math.round(this.mercator.size * Math.pow(2, t) * (s + h));
1107
- return [p, f, d + m, c];
1176
+ const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, s] = this.convertNLng(r[0]), [l, h] = this.convertNLng(i[0]), [p, c] = this.mercator.px([o, r[1]], t), [d, f] = this.mercator.px([l, i[1]], t), m = Math.round(this.mercator.size * Math.pow(2, t) * (s + h));
1177
+ return [d, f, p + m, c];
1108
1178
  }
1109
1179
  /**
1110
1180
  * [视窗边界像素宽度]
@@ -1121,11 +1191,11 @@ class Re {
1121
1191
  getWorldCopy(e, t) {
1122
1192
  const r = 2 ** t, [i, o, s, l] = e.map((c) => ~~(c / (r * 256))), h = [];
1123
1193
  for (let c = l; c <= o; c++)
1124
- for (let p = i; p <= s; p++)
1125
- h.push([p, c]);
1194
+ for (let d = i; d <= s; d++)
1195
+ h.push([d, c]);
1126
1196
  return h.map((c) => {
1127
- const p = 2 ** t * 256;
1128
- return [c[0] * p, c[1] * p, p];
1197
+ const d = 2 ** t * 256;
1198
+ return [c[0] * d, c[1] * d, d];
1129
1199
  });
1130
1200
  }
1131
1201
  resize() {
@@ -1207,13 +1277,13 @@ class fe {
1207
1277
  if (i) {
1208
1278
  const o = { program: i }, s = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
1209
1279
  for (let h = 0; h < s; h++) {
1210
- const d = e.getActiveAttrib(i, h);
1211
- o[d.name] = e.getAttribLocation(i, d.name);
1280
+ const p = e.getActiveAttrib(i, h);
1281
+ o[p.name] = e.getAttribLocation(i, p.name);
1212
1282
  }
1213
1283
  const l = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
1214
1284
  for (let h = 0; h < l; h++) {
1215
- const d = e.getActiveUniform(i, h);
1216
- o[d.name] = e.getUniformLocation(i, d.name);
1285
+ const p = e.getActiveUniform(i, h);
1286
+ o[p.name] = e.getUniformLocation(i, p.name);
1217
1287
  }
1218
1288
  return o;
1219
1289
  }
@@ -1228,8 +1298,8 @@ class fe {
1228
1298
  const l = s.getContext("2d");
1229
1299
  if (l && e) {
1230
1300
  const h = l == null ? void 0 : l.createLinearGradient(0, 0, 256, 0);
1231
- return t.forEach(([d, c]) => {
1232
- h.addColorStop(d, c);
1301
+ return t.forEach(([p, c]) => {
1302
+ h.addColorStop(p, c);
1233
1303
  }), l.fillStyle = h, l.fillRect(0, 0, 256, 1), {
1234
1304
  canvas: s,
1235
1305
  texture: this.createTexture(
@@ -1251,8 +1321,8 @@ class fe {
1251
1321
  const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), h = new Float32Array(i);
1252
1322
  for (let c = 0; c < i; c++)
1253
1323
  h[c] = c;
1254
- const d = this.createDataBuffer(e, "array", h);
1255
- return { resolution: r, total: i, texture0: s, texture1: l, indexBuffer: d };
1324
+ const p = this.createDataBuffer(e, "array", h);
1325
+ return { resolution: r, total: i, texture0: s, texture1: l, indexBuffer: p };
1256
1326
  }
1257
1327
  bind(e, t, r) {
1258
1328
  const i = this.createProgram(e, t, r);
@@ -1267,23 +1337,23 @@ class fe {
1267
1337
  return {};
1268
1338
  }
1269
1339
  bindParticle(e, t, r, i, o, s) {
1270
- const l = this.createProgramWrapper(e, t, r), h = this.createProgramWrapper(e, i, o), d = this.createProgramWrapper(e, i, s), c = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
1271
- return { particle: l, screen: h, update: d, quadBuffer: c, frameBuffer: p };
1340
+ const l = this.createProgramWrapper(e, t, r), h = this.createProgramWrapper(e, i, o), p = this.createProgramWrapper(e, i, s), c = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
1341
+ return { particle: l, screen: h, update: p, quadBuffer: c, frameBuffer: d };
1272
1342
  }
1273
1343
  draw(e, t, r, i, o, s, l) {
1274
- var h, d;
1344
+ var h, p;
1275
1345
  if (t && r) {
1276
- e.resize(), t == null || t.viewport(0, 0, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.width, (d = t == null ? void 0 : t.canvas) == null ? void 0 : d.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
1346
+ e.resize(), t == null || t.viewport(0, 0, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.width, (p = t == null ? void 0 : t.canvas) == null ? void 0 : p.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
1277
1347
  try {
1278
- const c = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), f = t.getUniformLocation(r, "u_color");
1279
- if (t.useProgram(r), t.uniform2f(c, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(p, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(f, 1), l != null && l.uvRange && (l != null && l.sRange)) {
1348
+ const c = t.getUniformLocation(r, "u_resolution"), d = t.getUniformLocation(r, "u_image"), f = t.getUniformLocation(r, "u_color");
1349
+ if (t.useProgram(r), t.uniform2f(c, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(d, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(f, 1), l != null && l.uvRange && (l != null && l.sRange)) {
1280
1350
  const u = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
1281
1351
  t.uniform2f(u, l.uvRange[0], l.uvRange[1]), t.uniform2f(v, l.sRange[0], l.sRange[1]);
1282
1352
  }
1283
1353
  const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
1284
1354
  for (const u of y) {
1285
- const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, L = u[2] * e.ratio, [z, w, A, M] = [v, L + v, g, L + g], j = new Float32Array([z, A, w, A, z, M, z, M, w, A, w, M]);
1286
- t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, j, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
1355
+ const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, _ = u[2] * e.ratio, [z, w, A, j] = [v, _ + v, g, _ + g], O = new Float32Array([z, A, w, A, z, j, z, j, w, A, w, j]);
1356
+ t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, O, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
1287
1357
  }
1288
1358
  } catch (c) {
1289
1359
  console.log(`render failed...${c}`);
@@ -1331,10 +1401,10 @@ class fe {
1331
1401
  });
1332
1402
  }
1333
1403
  }
1334
- class N {
1404
+ class B {
1335
1405
  }
1336
1406
  // 顶点渲染
1337
- R(N, "vertexSchema", `
1407
+ E(B, "vertexSchema", `
1338
1408
  //canvas 坐标系上的坐标 (x, y)
1339
1409
  attribute vec2 a_position; //像素坐标
1340
1410
  attribute vec2 a_texCoord; //纹理坐标
@@ -1349,7 +1419,7 @@ R(N, "vertexSchema", `
1349
1419
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
1350
1420
  v_texCoord = a_texCoord;
1351
1421
  }`), // 类如风、流等u v双变量片元渲染
1352
- R(N, "uvFragmentSchema", `
1422
+ E(B, "uvFragmentSchema", `
1353
1423
  precision mediump float;
1354
1424
  uniform sampler2D u_image;
1355
1425
  uniform vec2 u_range_u_v;
@@ -1368,7 +1438,7 @@ R(N, "uvFragmentSchema", `
1368
1438
 
1369
1439
  gl_FragColor = color;
1370
1440
  }`), // 类如浪、气压等单变量片元渲染
1371
- R(N, "fragmentSchema", `
1441
+ E(B, "fragmentSchema", `
1372
1442
  precision mediump float;
1373
1443
  uniform sampler2D u_image; // 灰度
1374
1444
  uniform sampler2D u_color; // 色值映射
@@ -1379,9 +1449,9 @@ R(N, "fragmentSchema", `
1379
1449
  vec4 color = texture2D(u_color, vec2(rgba.r, 0));
1380
1450
  gl_FragColor = color;
1381
1451
  }`);
1382
- class V {
1452
+ class U {
1383
1453
  }
1384
- R(V, "vertexSchema", `
1454
+ E(U, "vertexSchema", `
1385
1455
  precision mediump float;
1386
1456
 
1387
1457
  attribute float a_index; // 索引
@@ -1405,7 +1475,7 @@ R(V, "vertexSchema", `
1405
1475
  gl_PointSize = 1.0;
1406
1476
  // gl_PointSize = u_point;
1407
1477
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
1408
- }`), R(V, "fragmentSchema", `
1478
+ }`), E(U, "fragmentSchema", `
1409
1479
  precision mediump float;
1410
1480
 
1411
1481
  uniform sampler2D u_factor;
@@ -1427,7 +1497,7 @@ R(V, "vertexSchema", `
1427
1497
 
1428
1498
  float f = 1.0 - uv.b;
1429
1499
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
1430
- }`), R(V, "quadVertSchema", `
1500
+ }`), E(U, "quadVertSchema", `
1431
1501
  precision mediump float;
1432
1502
 
1433
1503
  attribute vec2 a_pos;
@@ -1437,7 +1507,7 @@ R(V, "vertexSchema", `
1437
1507
  void main() {
1438
1508
  v_tex_pos = a_pos;
1439
1509
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
1440
- }`), R(V, "screenFragmentSchema", `
1510
+ }`), E(U, "screenFragmentSchema", `
1441
1511
  precision mediump float;
1442
1512
 
1443
1513
  uniform sampler2D u_screen;
@@ -1449,7 +1519,7 @@ R(V, "vertexSchema", `
1449
1519
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
1450
1520
  // a hack to guarantee opacity fade out even with a value close to 1.0
1451
1521
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
1452
- }`), R(V, "updateFragmentSchema", `
1522
+ }`), E(U, "updateFragmentSchema", `
1453
1523
  precision mediump float;
1454
1524
 
1455
1525
  uniform sampler2D u_particles;
@@ -1528,14 +1598,14 @@ R(V, "vertexSchema", `
1528
1598
  fract(pos * 255.0),
1529
1599
  floor(pos * 255.0) / 255.0);
1530
1600
  }`);
1531
- class wt {
1601
+ class Mt {
1532
1602
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
1533
- R(this, "token");
1534
- R(this, "mapboxCustomer");
1535
- R(this, "i4");
1536
- R(this, "hi");
1537
- R(this, "td");
1538
- R(this, "windy");
1603
+ E(this, "token");
1604
+ E(this, "mapboxCustomer");
1605
+ E(this, "i4");
1606
+ E(this, "hi");
1607
+ E(this, "td");
1608
+ E(this, "windy");
1539
1609
  this.token = e, this.mapboxCustomer = {
1540
1610
  source: this.initialOnlineStyle().sources.composite,
1541
1611
  layers: {
@@ -3132,14 +3202,14 @@ class wt {
3132
3202
  };
3133
3203
  }
3134
3204
  }
3135
- const Lt = {
3205
+ const jt = {
3136
3206
  name: "IdmWindParticle",
3137
3207
  props: {
3138
3208
  factor: {
3139
3209
  type: Object
3140
3210
  },
3141
3211
  viewport: {
3142
- type: Re
3212
+ type: Be
3143
3213
  },
3144
3214
  bottom: {
3145
3215
  type: String,
@@ -3246,7 +3316,7 @@ const Lt = {
3246
3316
  [1, "rgb(91, 136, 161)"]
3247
3317
  ];
3248
3318
  this.rampColor = this.webgl.setup(this.context, a);
3249
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3319
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.uvFragmentSchema);
3250
3320
  this.program = e, this.aPositionBuffer = t;
3251
3321
  }
3252
3322
  this.handleParticleSetup();
@@ -3260,11 +3330,11 @@ const Lt = {
3260
3330
  ];
3261
3331
  this.wrapper = this.webgl.bindParticle(
3262
3332
  this.particleContext,
3263
- V.vertexSchema,
3264
- V.fragmentSchema,
3265
- V.quadVertSchema,
3266
- V.screenFragmentSchema,
3267
- V.updateFragmentSchema
3333
+ U.vertexSchema,
3334
+ U.fragmentSchema,
3335
+ U.quadVertSchema,
3336
+ U.screenFragmentSchema,
3337
+ U.updateFragmentSchema
3268
3338
  ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
3269
3339
  }
3270
3340
  },
@@ -3294,13 +3364,13 @@ const Lt = {
3294
3364
  });
3295
3365
  }
3296
3366
  }
3297
- }, xt = { key: 0 };
3298
- function _t(a, e, t, r, i, o) {
3367
+ }, Ot = { key: 0 };
3368
+ function Bt(a, e, t, r, i, o) {
3299
3369
  var s;
3300
- return (s = t.factor) != null && s.active ? (_(), C("div", xt, [
3370
+ return (s = t.factor) != null && s.active ? (L(), x("div", Ot, [
3301
3371
  n("div", {
3302
3372
  class: "legend-bars flex-center",
3303
- style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3373
+ style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3304
3374
  }, e[0] || (e[0] = [
3305
3375
  n("span", null, "kts", -1),
3306
3376
  n("span", null, "0", -1),
@@ -3311,10 +3381,10 @@ function _t(a, e, t, r, i, o) {
3311
3381
  n("span", null, "40", -1),
3312
3382
  n("span", null, "60", -1)
3313
3383
  ]), 4)
3314
- ])) : B("", !0);
3384
+ ])) : M("", !0);
3315
3385
  }
3316
- const Ct = /* @__PURE__ */ T(Lt, [["render", _t], ["__scopeId", "data-v-64887571"]]);
3317
- const kt = {
3386
+ const Nt = /* @__PURE__ */ T(jt, [["render", Bt], ["__scopeId", "data-v-24e5434b"]]);
3387
+ const Ft = {
3318
3388
  name: "IdmCurrent",
3319
3389
  props: {
3320
3390
  map: {
@@ -3329,7 +3399,11 @@ const kt = {
3329
3399
  mapProjection: {
3330
3400
  type: String
3331
3401
  },
3332
- showParticle: {
3402
+ showCurrentParticle: {
3403
+ type: Boolean,
3404
+ default: !1
3405
+ },
3406
+ showCurrentIsoband: {
3333
3407
  type: Boolean,
3334
3408
  default: !1
3335
3409
  },
@@ -3341,16 +3415,14 @@ const kt = {
3341
3415
  type: Number
3342
3416
  }
3343
3417
  },
3344
- emits: ["particle", "showCurrentIsoband", "handleToggleVersion"],
3418
+ emits: ["particle", "handleToggleVersion"],
3345
3419
  data() {
3346
3420
  return {
3347
3421
  source: "current-source",
3348
3422
  directionLayer: "current-direction-layer",
3349
3423
  speedLayer: "current-speed-layer",
3350
3424
  speedLabelLayer: "current-speed-label-layer",
3351
- empty: x.featureCollection([]),
3352
- showJson: localStorage.getItem("currentJsonCache") === "true" || !1,
3353
- currentJsonCache: "currentJsonCache",
3425
+ empty: C.featureCollection([]),
3354
3426
  right: 10,
3355
3427
  bottom: 95
3356
3428
  };
@@ -3363,28 +3435,29 @@ const kt = {
3363
3435
  },
3364
3436
  deep: !0
3365
3437
  },
3366
- showParticle: {
3367
- handler() {
3368
- },
3369
- immediate: !0
3370
- },
3371
- showJson: {
3438
+ showCurrentParticle: {
3372
3439
  handler() {
3373
- this.showJson, localStorage.setItem(this.currentJsonCache, this.showJson), this.handleToggle(), this.$emit("showCurrentIsoband", this.showJson);
3374
- },
3375
- immediate: !0
3440
+ this.handleParticle();
3441
+ }
3442
+ // immediate: true,
3376
3443
  },
3377
- toggleVersion: {
3444
+ showCurrentIsoband: {
3378
3445
  handler() {
3379
- var a, e;
3380
- this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10, this.bottom = (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 110;
3381
- },
3382
- immediate: !0
3446
+ this.handleToggle();
3447
+ }
3448
+ // immediate: true,
3383
3449
  }
3450
+ // toggleVersion: {
3451
+ // handler() {
3452
+ // this.right = (document.getElementsByClassName('right-bar')[0]?.clientWidth || 0) + 10
3453
+ // this.bottom = (document.getElementsByClassName('active-layers')[0]?.clientHeight || 0) + 110
3454
+ // },
3455
+ // immediate: true,
3456
+ // },
3384
3457
  },
3385
3458
  methods: {
3386
- handleParticle(a) {
3387
- this.$emit("particle", { particle: a, key: "current", weight: 96 });
3459
+ handleParticle() {
3460
+ this.$emit("particle", { particle: this.showCurrentParticle, key: "current", weight: 96 });
3388
3461
  },
3389
3462
  handleRender() {
3390
3463
  var a, e;
@@ -3458,47 +3531,26 @@ const kt = {
3458
3531
  }
3459
3532
  },
3460
3533
  handleToggle() {
3461
- this.map.getLayer(this.speedLayer) && this.map.setLayoutProperty(this.speedLayer, "visibility", this.showJson ? "visible" : "none"), this.map.getLayer(this.speedLabelLayer) && this.map.setLayoutProperty(this.speedLabelLayer, "visibility", this.showJson ? "visible" : "none"), this.map.getLayer(this.directionLayer) && this.map.setLayoutProperty(this.directionLayer, "visibility", this.showJson ? "visible" : "none");
3534
+ this.map.getLayer(this.speedLayer) && this.map.setLayoutProperty(this.speedLayer, "visibility", this.showCurrentIsoband ? "visible" : "none"), this.map.getLayer(this.speedLabelLayer) && this.map.setLayoutProperty(this.speedLabelLayer, "visibility", this.showCurrentIsoband ? "visible" : "none"), this.map.getLayer(this.directionLayer) && this.map.setLayoutProperty(this.directionLayer, "visibility", this.showCurrentIsoband ? "visible" : "none");
3462
3535
  },
3463
3536
  handleClear() {
3464
3537
  this.map.getLayer(this.speedLayer) && this.map.removeLayer(this.speedLayer), this.map.getLayer(this.speedLabelLayer) && this.map.removeLayer(this.speedLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3465
3538
  }
3466
3539
  }
3467
- }, St = { key: 0 };
3468
- function Pt(a, e, t, r, i, o) {
3540
+ }, $t = { key: 0 };
3541
+ function Vt(a, e, t, r, i, o) {
3469
3542
  var s;
3470
- return (s = t.current) != null && s.active ? (_(), C("div", St, [
3471
- n("div", {
3472
- class: "flex-center current-tool-bars",
3473
- style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
3474
- }, [
3475
- t.mapProjection === "mercator" ? (_(), C("div", {
3476
- key: 0,
3477
- class: W(["flex-start item-bar", t.showParticle ? "active" : "inactive"]),
3478
- onClick: e[0] || (e[0] = (l) => o.handleParticle(!t.showParticle))
3479
- }, e[2] || (e[2] = [
3480
- n("div", { class: "checkbox" }, null, -1),
3481
- n("span", null, "Current Particles", -1)
3482
- ]), 2)) : B("", !0),
3483
- n("div", {
3484
- class: W(["flex-start item-bar", i.showJson ? "active" : "inactive"]),
3485
- onClick: e[1] || (e[1] = (l) => i.showJson = !i.showJson)
3486
- }, e[3] || (e[3] = [
3487
- n("div", { class: "checkbox" }, null, -1),
3488
- n("span", null, "Current Isoband", -1)
3489
- ]), 2)
3490
- ], 4)
3491
- ])) : B("", !0);
3543
+ return (s = t.current) != null && s.active ? (L(), x("div", $t)) : M("", !0);
3492
3544
  }
3493
- const zt = /* @__PURE__ */ T(kt, [["render", Pt]]);
3494
- const Tt = {
3545
+ const Ut = /* @__PURE__ */ T(Ft, [["render", Vt]]);
3546
+ const Zt = {
3495
3547
  name: "IdmCurrentParticle",
3496
3548
  props: {
3497
3549
  factor: {
3498
3550
  type: Object
3499
3551
  },
3500
3552
  viewport: {
3501
- type: Re
3553
+ type: Be
3502
3554
  },
3503
3555
  bottom: {
3504
3556
  type: String,
@@ -3596,7 +3648,7 @@ const Tt = {
3596
3648
  [1, "rgb(195,194,194)"]
3597
3649
  ];
3598
3650
  this.rampColor = this.webgl.setup(this.context, a);
3599
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3651
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.uvFragmentSchema);
3600
3652
  this.program = e, this.aPositionBuffer = t;
3601
3653
  }
3602
3654
  this.handleParticleSetup();
@@ -3610,11 +3662,11 @@ const Tt = {
3610
3662
  ];
3611
3663
  this.wrapper = this.webgl.bindParticle(
3612
3664
  this.particleContext,
3613
- V.vertexSchema,
3614
- V.fragmentSchema,
3615
- V.quadVertSchema,
3616
- V.screenFragmentSchema,
3617
- V.updateFragmentSchema
3665
+ U.vertexSchema,
3666
+ U.fragmentSchema,
3667
+ U.quadVertSchema,
3668
+ U.screenFragmentSchema,
3669
+ U.updateFragmentSchema
3618
3670
  ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
3619
3671
  ...this.wrapper,
3620
3672
  ...this.webgl.setupParticle(this.particleContext, 12e3),
@@ -3648,13 +3700,13 @@ const Tt = {
3648
3700
  });
3649
3701
  }
3650
3702
  }
3651
- }, Et = { key: 0 };
3652
- function It(a, e, t, r, i, o) {
3703
+ }, Ht = { key: 0 };
3704
+ function Gt(a, e, t, r, i, o) {
3653
3705
  var s;
3654
- return (s = t.factor) != null && s.active ? (_(), C("div", Et, [
3706
+ return (s = t.factor) != null && s.active ? (L(), x("div", Ht, [
3655
3707
  n("div", {
3656
3708
  class: "legend-bars flex-center",
3657
- style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3709
+ style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3658
3710
  }, e[0] || (e[0] = [
3659
3711
  n("span", null, "kts", -1),
3660
3712
  n("span", null, "0", -1),
@@ -3664,9 +3716,9 @@ function It(a, e, t, r, i, o) {
3664
3716
  n("span", null, "2", -1),
3665
3717
  n("span", null, "3.2", -1)
3666
3718
  ]), 4)
3667
- ])) : B("", !0);
3719
+ ])) : M("", !0);
3668
3720
  }
3669
- const Rt = /* @__PURE__ */ T(Tt, [["render", It], ["__scopeId", "data-v-6d4fd206"]]), At = {
3721
+ const Xt = /* @__PURE__ */ T(Zt, [["render", Gt], ["__scopeId", "data-v-6d4fd206"]]), Jt = {
3670
3722
  name: "IdmSigWave",
3671
3723
  props: {
3672
3724
  map: {
@@ -3687,21 +3739,14 @@ const Rt = /* @__PURE__ */ T(Tt, [["render", It], ["__scopeId", "data-v-6d4fd206
3687
3739
  source: "sig-wave-source",
3688
3740
  heightLayer: "sig-wave-height-layer",
3689
3741
  heightLabelLayer: "sig-wave-height-label-layer",
3690
- empty: x.featureCollection([])
3742
+ empty: C.featureCollection([])
3691
3743
  };
3692
3744
  },
3693
3745
  watch: {
3694
3746
  "sigWave.version": {
3695
3747
  handler() {
3696
3748
  var a;
3697
- (a = this.sigWave) != null && a.active ? this.handleRender() : this.handleClear();
3698
- },
3699
- deep: !0
3700
- },
3701
- activeWeatherLayers: {
3702
- handler() {
3703
- setTimeout(() => {
3704
- }, 200);
3749
+ (a = this.sigWave) != null && a.active ? (this.handleRender(), this.handleMove()) : this.handleClear();
3705
3750
  },
3706
3751
  deep: !0
3707
3752
  }
@@ -3732,9 +3777,9 @@ const Rt = /* @__PURE__ */ T(Tt, [["render", It], ["__scopeId", "data-v-6d4fd206
3732
3777
  "fill-color": [
3733
3778
  "step",
3734
3779
  ["get", "val"],
3735
- "rgba(186,247,237,0.5)",
3780
+ "rgba(186,247,199,0.4)",
3736
3781
  3,
3737
- "rgba(93,235,185,0.8)",
3782
+ "rgba(186,247,199,0.7)",
3738
3783
  4,
3739
3784
  "rgba(101,252,149,0.9)",
3740
3785
  5,
@@ -3782,15 +3827,20 @@ const Rt = /* @__PURE__ */ T(Tt, [["render", It], ["__scopeId", "data-v-6d4fd206
3782
3827
  ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[sig.wave] add elapsed: ", i, ", total: ", r += i));
3783
3828
  }
3784
3829
  },
3830
+ handleMove() {
3831
+ var a, e;
3832
+ (e = (a = this.map) == null ? void 0 : a.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "visible"), this.map.getLayer(this.heightLayer) && this.map.moveLayer(this.heightLayer, "country-boundaries"), this.map.getLayer(this.heightLabelLayer) && this.map.moveLayer(this.heightLabelLayer, "country-boundaries");
3833
+ },
3785
3834
  handleClear() {
3786
- this.map.getLayer(this.heightLayer) && this.map.removeLayer(this.heightLayer), this.map.getLayer(this.heightLabelLayer) && this.map.removeLayer(this.heightLabelLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3835
+ var a, e, t;
3836
+ ((a = this.activeWeatherLayers) == null ? void 0 : a.length) === 0 && ((t = (e = this.map) == null ? void 0 : e.getLayer("country-boundaries")) == null || t.setLayoutProperty("visibility", "none")), this.map.getLayer(this.heightLayer) && this.map.removeLayer(this.heightLayer), this.map.getLayer(this.heightLabelLayer) && this.map.removeLayer(this.heightLabelLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3787
3837
  }
3788
3838
  }
3789
3839
  };
3790
- function Dt(a, e, t, r, i, o) {
3791
- return _(), C("div");
3840
+ function Yt(a, e, t, r, i, o) {
3841
+ return L(), x("div");
3792
3842
  }
3793
- const Mt = /* @__PURE__ */ T(At, [["render", Dt]]), Wt = {
3843
+ const qt = /* @__PURE__ */ T(Jt, [["render", Yt]]), Qt = {
3794
3844
  name: "IdmSwell",
3795
3845
  props: {
3796
3846
  map: {
@@ -3812,23 +3862,25 @@ const Mt = /* @__PURE__ */ T(At, [["render", Dt]]), Wt = {
3812
3862
  directionLayer: "swell-direction-layer",
3813
3863
  heightLayer: "swell-height-layer",
3814
3864
  heightLabelLayer: "swell-height-label-layer",
3815
- empty: x.featureCollection([])
3865
+ empty: C.featureCollection([])
3816
3866
  };
3817
3867
  },
3818
3868
  watch: {
3819
3869
  "swell.version": {
3820
3870
  handler() {
3821
3871
  var a;
3822
- (a = this.swell) != null && a.active ? this.handleRender() : this.handleClear();
3872
+ (a = this.swell) != null && a.active ? (this.handleRender(), this.handleMove()) : this.handleClear();
3823
3873
  },
3824
3874
  deep: !0
3825
3875
  },
3826
3876
  activeWeatherLayers: {
3827
3877
  handler() {
3828
3878
  setTimeout(() => {
3829
- }, 300);
3879
+ this.activeWeatherLayers.length > 0 ? this.handleMove() : this.handleClear();
3880
+ }, 500);
3830
3881
  },
3831
- deep: !0
3882
+ deep: !0,
3883
+ immediate: !0
3832
3884
  }
3833
3885
  },
3834
3886
  methods: {
@@ -3933,15 +3985,20 @@ const Mt = /* @__PURE__ */ T(At, [["render", Dt]]), Wt = {
3933
3985
  ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i));
3934
3986
  }
3935
3987
  },
3988
+ handleMove() {
3989
+ var a, e;
3990
+ (e = (a = this.map) == null ? void 0 : a.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "visible"), this.map.getLayer(this.heightLayer) && this.map.moveLayer(this.heightLayer, "country-boundaries"), this.map.getLayer(this.directionLayer) && this.map.moveLayer(this.directionLayer, "country-boundaries"), this.map.getLayer(this.heightLabelLayer) && this.map.moveLayer(this.heightLabelLayer, "country-boundaries");
3991
+ },
3936
3992
  handleClear() {
3937
- this.map.getLayer(this.heightLayer) && this.map.removeLayer(this.heightLayer), this.map.getLayer(this.heightLabelLayer) && this.map.removeLayer(this.heightLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3993
+ var a, e;
3994
+ this.activeWeatherLayers.length === 0 && ((e = (a = this.map) == null ? void 0 : a.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "none")), this.map.getLayer(this.heightLayer) && this.map.removeLayer(this.heightLayer), this.map.getLayer(this.heightLabelLayer) && this.map.removeLayer(this.heightLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3938
3995
  }
3939
3996
  }
3940
3997
  };
3941
- function jt(a, e, t, r, i, o) {
3942
- return _(), C("div");
3998
+ function Kt(a, e, t, r, i, o) {
3999
+ return L(), x("div");
3943
4000
  }
3944
- const Bt = /* @__PURE__ */ T(Wt, [["render", jt]]), Nt = {
4001
+ const ea = /* @__PURE__ */ T(Qt, [["render", Kt]]), ta = {
3945
4002
  name: "IdmPrmsl",
3946
4003
  props: {
3947
4004
  map: {
@@ -3966,21 +4023,22 @@ const Bt = /* @__PURE__ */ T(Wt, [["render", jt]]), Nt = {
3966
4023
  layer: "prmsl-layer",
3967
4024
  labelLayer: "prmsl-label-layer",
3968
4025
  pointLabelLayer: "prmsl-point-label-layer",
3969
- empty: x.featureCollection([])
4026
+ empty: C.featureCollection([])
3970
4027
  };
3971
4028
  },
3972
4029
  watch: {
3973
4030
  "prmsl.version": {
3974
4031
  handler() {
3975
4032
  var a;
3976
- (a = this.prmsl) != null && a.active ? this.handleRender() : this.handleClear();
4033
+ (a = this.prmsl) != null && a.active ? (this.handleRender(), this.handleMove()) : this.handleClear();
3977
4034
  },
3978
4035
  deep: !0
3979
4036
  },
3980
4037
  activeWeatherLayers: {
3981
4038
  handler() {
3982
4039
  setTimeout(() => {
3983
- }, 300);
4040
+ this.activeWeatherLayers.length > 0 ? this.handleMove() : this.handleClear();
4041
+ }, 500);
3984
4042
  },
3985
4043
  deep: !0,
3986
4044
  immediate: !0
@@ -4064,7 +4122,7 @@ const Bt = /* @__PURE__ */ T(Wt, [["render", jt]]), Nt = {
4064
4122
  },
4065
4123
  this.beforeLayer
4066
4124
  );
4067
- }, 100), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] add elapsed: ", o, ", total: ", i += o));
4125
+ }, 0), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] add elapsed: ", o, ", total: ", i += o));
4068
4126
  }
4069
4127
  },
4070
4128
  handleMove() {
@@ -4077,10 +4135,10 @@ const Bt = /* @__PURE__ */ T(Wt, [["render", jt]]), Nt = {
4077
4135
  }
4078
4136
  }
4079
4137
  };
4080
- function Ot(a, e, t, r, i, o) {
4081
- return _(), C("div");
4138
+ function aa(a, e, t, r, i, o) {
4139
+ return L(), x("div");
4082
4140
  }
4083
- const Ft = /* @__PURE__ */ T(Nt, [["render", Ot]]), $t = {
4141
+ const ia = /* @__PURE__ */ T(ta, [["render", aa]]), ra = {
4084
4142
  name: "IdmIceberg",
4085
4143
  props: {
4086
4144
  map: {
@@ -4097,7 +4155,7 @@ const Ft = /* @__PURE__ */ T(Nt, [["render", Ot]]), $t = {
4097
4155
  return {
4098
4156
  source: "iceberg-source",
4099
4157
  layer: "iceberg-layer",
4100
- empty: x.featureCollection([])
4158
+ empty: C.featureCollection([])
4101
4159
  };
4102
4160
  },
4103
4161
  watch: {
@@ -4137,11 +4195,11 @@ const Ft = /* @__PURE__ */ T(Nt, [["render", Ot]]), $t = {
4137
4195
  }
4138
4196
  }
4139
4197
  };
4140
- function Vt(a, e, t, r, i, o) {
4141
- return _(), C("div");
4198
+ function oa(a, e, t, r, i, o) {
4199
+ return L(), x("div");
4142
4200
  }
4143
- const Ut = /* @__PURE__ */ T($t, [["render", Vt]]);
4144
- const Zt = {
4201
+ const sa = /* @__PURE__ */ T(ra, [["render", oa]]);
4202
+ const na = {
4145
4203
  name: "IdmTropicals",
4146
4204
  props: {
4147
4205
  map: {
@@ -4161,7 +4219,7 @@ const Zt = {
4161
4219
  emits: ["tropical", "tropicalProbability"],
4162
4220
  data() {
4163
4221
  return {
4164
- helper: Ce,
4222
+ helper: Re,
4165
4223
  source: "tropicals-source",
4166
4224
  clusterSource: "tropicals-cluster-source",
4167
4225
  historyLayer: "tropicals-history-layer",
@@ -4179,9 +4237,9 @@ const Zt = {
4179
4237
  showTropicals: !1,
4180
4238
  activeTropicals: void 0,
4181
4239
  activeTropicalsMarker: void 0,
4182
- empty: x.featureCollection([]),
4240
+ empty: C.featureCollection([]),
4183
4241
  circleSource: "circle-source",
4184
- circleSourceData: x.featureCollection([]),
4242
+ circleSourceData: C.featureCollection([]),
4185
4243
  circleLayer: "tropical-circle-layer"
4186
4244
  };
4187
4245
  },
@@ -4189,7 +4247,7 @@ const Zt = {
4189
4247
  computeTime() {
4190
4248
  return function(a) {
4191
4249
  if (a) {
4192
- const e = Z(a).utc().utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
4250
+ const e = G(a).utc().utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
4193
4251
  return `${e.format("MMM-DD,HHmm")}[ UTC ${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
4194
4252
  }
4195
4253
  return "-";
@@ -4226,29 +4284,29 @@ const Zt = {
4226
4284
  methods: {
4227
4285
  handleRefresh() {
4228
4286
  var r, i;
4229
- const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = Z().utc().hour(), t = [];
4287
+ const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = G().utc().hour(), t = [];
4230
4288
  a.forEach((o) => {
4231
4289
  var s, l, h;
4232
4290
  (s = o.properties) != null && s.name && !t.includes((l = o.properties) == null ? void 0 : l.name) && t.push((h = o.properties) == null ? void 0 : h.name);
4233
4291
  }), t.forEach((o) => {
4234
- var d;
4292
+ var p;
4235
4293
  let s = 0, l;
4236
4294
  const h = a.filter((c) => {
4237
- var p, f;
4238
- return ((f = (p = c.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
4295
+ var d, f;
4296
+ return ((f = (d = c.properties) == null ? void 0 : d.category) == null ? void 0 : f.split("-")[0]) === o;
4239
4297
  });
4240
- (d = h.filter((c) => {
4241
- var p, f;
4242
- return ((p = c.geometry) == null ? void 0 : p.type) === "LineString" && ((f = c.properties) == null ? void 0 : f.type) === "forecast";
4243
- })[0]) == null || d.properties.model, h.forEach((c, p) => {
4298
+ (p = h.filter((c) => {
4299
+ var d, f;
4300
+ return ((d = c.geometry) == null ? void 0 : d.type) === "LineString" && ((f = c.properties) == null ? void 0 : f.type) === "forecast";
4301
+ })[0]) == null || p.properties.model, h.forEach((c, d) => {
4244
4302
  var f, m, b, y, u, v;
4245
- ((f = c.geometry) == null ? void 0 : f.type) === "Point" && ((m = c.properties) == null ? void 0 : m.type) === "history" && (s = p, l = l === void 0 ? p : l), ((b = c.geometry) == null ? void 0 : b.type) === "Point" && ((y = c.properties) == null ? void 0 : y.type) === "forecast" && l === void 0 && (l = p), ((u = c.geometry) == null ? void 0 : u.type) === "LineString" && ((v = c.properties) == null || v.type);
4246
- }), h.map((c, p) => {
4303
+ ((f = c.geometry) == null ? void 0 : f.type) === "Point" && ((m = c.properties) == null ? void 0 : m.type) === "history" && (s = d, l = l === void 0 ? d : l), ((b = c.geometry) == null ? void 0 : b.type) === "Point" && ((y = c.properties) == null ? void 0 : y.type) === "forecast" && l === void 0 && (l = d), ((u = c.geometry) == null ? void 0 : u.type) === "LineString" && ((v = c.properties) == null || v.type);
4304
+ }), h.map((c, d) => {
4247
4305
  var f, m, b, y, u, v, g;
4248
- if (((f = c.geometry) == null ? void 0 : f.type) === "LineString" && ((m = c.properties) == null || m.type), ((b = c.geometry) == null ? void 0 : b.type) === "Point" && ((y = c.properties) == null ? void 0 : y.type) === "forecast" && (c.properties.name = o, c.properties.format = Z(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((u = c.geometry) == null ? void 0 : u.type) === "Point" && ((v = c.properties) == null ? void 0 : v.type) === "history") {
4249
- c.properties.format = Z(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
4250
- const L = Z((g = c.properties) == null ? void 0 : g.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
4251
- c.properties.showHistoryLabel = L || p === s, c.properties.showNameLabel = p === s, c.properties.name = o;
4306
+ if (((f = c.geometry) == null ? void 0 : f.type) === "LineString" && ((m = c.properties) == null || m.type), ((b = c.geometry) == null ? void 0 : b.type) === "Point" && ((y = c.properties) == null ? void 0 : y.type) === "forecast" && (c.properties.name = o, c.properties.format = G(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((u = c.geometry) == null ? void 0 : u.type) === "Point" && ((v = c.properties) == null ? void 0 : v.type) === "history") {
4307
+ c.properties.format = G(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
4308
+ const _ = G((g = c.properties) == null ? void 0 : g.date).utc().format("HHmm") === G().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
4309
+ c.properties.showHistoryLabel = _ || d === s, c.properties.showNameLabel = d === s, c.properties.name = o;
4252
4310
  }
4253
4311
  return c;
4254
4312
  });
@@ -4285,16 +4343,16 @@ const Zt = {
4285
4343
  ));
4286
4344
  },
4287
4345
  handleRender() {
4288
- var a, e, t, r, i, o, s, l, h, d;
4346
+ var a, e, t, r, i, o, s, l, h, p;
4289
4347
  if (!this.map)
4290
4348
  setTimeout(() => {
4291
4349
  this.handleRender();
4292
4350
  }, 500);
4293
4351
  else {
4294
4352
  if (this.tropicals) {
4295
- const p = (/* @__PURE__ */ new Date()).valueOf();
4353
+ const d = (/* @__PURE__ */ new Date()).valueOf();
4296
4354
  let f = 0, m = 0;
4297
- (a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropicals] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.source, {
4355
+ (a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropicals] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.source, {
4298
4356
  type: "geojson",
4299
4357
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
4300
4358
  }), this.map.addLayer({
@@ -4391,9 +4449,9 @@ const Zt = {
4391
4449
  ],
4392
4450
  "text-halo-width": 4
4393
4451
  }
4394
- }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.clusterSource, {
4452
+ }), m = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.clusterSource, {
4395
4453
  type: "geojson",
4396
- data: (h = this.tropicals) != null && h.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
4454
+ data: (h = this.tropicals) != null && h.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
4397
4455
  // cluster: true,
4398
4456
  // clusterRadius: 10, // 聚合半径
4399
4457
  }), this.map.addLayer({
@@ -4453,7 +4511,7 @@ const Zt = {
4453
4511
  source: this.clusterSource,
4454
4512
  filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "showHistoryLabel", !0], ["!=", "disabled", !0]],
4455
4513
  paint: {
4456
- "circle-radius": 8,
4514
+ "circle-radius": 7,
4457
4515
  "circle-color": "#fff"
4458
4516
  }
4459
4517
  }), this.map.addLayer({
@@ -4462,7 +4520,7 @@ const Zt = {
4462
4520
  source: this.clusterSource,
4463
4521
  filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "showHistoryLabel", !0], ["!=", "disabled", !0]],
4464
4522
  paint: {
4465
- "circle-radius": 6,
4523
+ "circle-radius": 5,
4466
4524
  "circle-color": "rgba(0,0,0,0.7)"
4467
4525
  }
4468
4526
  }), this.map.addLayer({
@@ -4471,7 +4529,7 @@ const Zt = {
4471
4529
  source: this.clusterSource,
4472
4530
  filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "showHistoryLabel", !0], ["!=", "disabled", !0]],
4473
4531
  paint: {
4474
- "circle-radius": 4,
4532
+ "circle-radius": 3,
4475
4533
  "circle-color": "#fff"
4476
4534
  }
4477
4535
  }), this.map.addLayer({
@@ -4508,11 +4566,11 @@ const Zt = {
4508
4566
  "text-halo-color": "#0033ff",
4509
4567
  "text-halo-width": 4
4510
4568
  }
4511
- }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
4569
+ }), m = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
4512
4570
  }
4513
4571
  this.handleDrawCircle();
4514
- const c = Oe.interpolate(this.tropicals, 1);
4515
- this.interpolateData = JSON.parse(JSON.stringify(c)), this.interpolateData.filter((p) => p.properties.name === "kristy" && p.properties.model === "ecmwf"), this.handleDateChange();
4572
+ const c = Ne.interpolate(this.tropicals, 1);
4573
+ this.interpolateData = JSON.parse(JSON.stringify(c)), this.interpolateData.filter((d) => d.properties.name === "kristy" && d.properties.model === "ecmwf"), this.handleDateChange();
4516
4574
  }
4517
4575
  },
4518
4576
  handleClear() {
@@ -4520,11 +4578,11 @@ const Zt = {
4520
4578
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
4521
4579
  },
4522
4580
  handleDateChange() {
4523
- var a, e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, j, O, F, H, se, ne, le, ce, he, de, pe, te;
4524
- if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
4525
- const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((E) => E.properties.date === G.format() && !E.properties.disabled), me = this.handleComputePolygons(Y), q = x.featureCollection([...Y]);
4526
- me.forEach((E) => {
4527
- q.features.push(E);
4581
+ var a, e, t, r, i, o, s, l, h, p, c, d, f, m, b, y, u, v, g, _, z, w, A, j, O, N, F, X, se, ne, le, ce, he, de, pe, te;
4582
+ if ((a = this.interpolateMarkers) == null || a.forEach((J) => J == null ? void 0 : J.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
4583
+ const J = G(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((I) => I.properties.date === J.format() && !I.properties.disabled), me = this.handleComputePolygons(Y), q = C.featureCollection([...Y]);
4584
+ me.forEach((I) => {
4585
+ q.features.push(I);
4528
4586
  }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(q) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
4529
4587
  type: "geojson",
4530
4588
  data: q
@@ -4539,10 +4597,10 @@ const Zt = {
4539
4597
  "line-width": 1
4540
4598
  }
4541
4599
  })), this.interpolateMarkers = [];
4542
- for (const E of Y)
4543
- if (!E.properties.disabled) {
4600
+ for (const I of Y)
4601
+ if (!I.properties.disabled) {
4544
4602
  let $ = "#f44336";
4545
- ((l = (s = E.properties) == null ? void 0 : s.wind) == null ? void 0 : l.spd) < 17.2 || !((d = (h = E.properties) == null ? void 0 : h.wind) != null && d.spd) ? $ = "#03f869" : ((p = (c = E.properties) == null ? void 0 : c.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? $ = "#f2f202" : ((y = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? $ = "#ff9100" : ((L = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : L.spd) >= 32.7 && ((w = (z = E.properties) == null ? void 0 : z.wind) == null ? void 0 : w.spd) < 41.5 ? $ = "#f44336" : ((M = (A = E.properties) == null ? void 0 : A.wind) == null ? void 0 : M.spd) >= 41.5 && ((O = (j = E.properties) == null ? void 0 : j.wind) == null ? void 0 : O.spd) < 51 ? $ = "#f903d0" : ((H = (F = E.properties) == null ? void 0 : F.wind) == null ? void 0 : H.spd) >= 51 ? $ = "#8702f9" : $ = "#f44336";
4603
+ ((l = (s = I.properties) == null ? void 0 : s.wind) == null ? void 0 : l.spd) < 17.2 || !((p = (h = I.properties) == null ? void 0 : h.wind) != null && p.spd) ? $ = "#03f869" : ((d = (c = I.properties) == null ? void 0 : c.wind) == null ? void 0 : d.spd) >= 17.2 && ((m = (f = I.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? $ = "#f2f202" : ((y = (b = I.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = I.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? $ = "#ff9100" : ((_ = (g = I.properties) == null ? void 0 : g.wind) == null ? void 0 : _.spd) >= 32.7 && ((w = (z = I.properties) == null ? void 0 : z.wind) == null ? void 0 : w.spd) < 41.5 ? $ = "#f44336" : ((j = (A = I.properties) == null ? void 0 : A.wind) == null ? void 0 : j.spd) >= 41.5 && ((N = (O = I.properties) == null ? void 0 : O.wind) == null ? void 0 : N.spd) < 51 ? $ = "#f903d0" : ((X = (F = I.properties) == null ? void 0 : F.wind) == null ? void 0 : X.spd) >= 51 ? $ = "#8702f9" : $ = "#f44336";
4546
4604
  const ue = `<svg t="1719918955501"
4547
4605
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4548
4606
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -4558,16 +4616,16 @@ const Zt = {
4558
4616
  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"
4559
4617
  fill="#ffffff" p-id="18386"></path>
4560
4618
  </svg>`, Q = document.createElement("div");
4561
- Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
4562
- const ye = new ee.Marker(Q).setLngLat(E.geometry.coordinates).addTo(this.map);
4563
- if (this.interpolateMarkers.push(ye), (se = E.properties) != null && se.showCircle) {
4564
- const ae = { radius: 100, coordinates: E.geometry.coordinates }, ie = { radius: 200, coordinates: E.geometry.coordinates }, re = { radius: 500, coordinates: E.geometry.coordinates };
4619
+ Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${I.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
4620
+ const ye = new ee.Marker(Q).setLngLat(I.geometry.coordinates).addTo(this.map);
4621
+ if (this.interpolateMarkers.push(ye), (se = I.properties) != null && se.showCircle) {
4622
+ const ae = { radius: 100, coordinates: I.geometry.coordinates }, ie = { radius: 200, coordinates: I.geometry.coordinates }, re = { radius: 500, coordinates: I.geometry.coordinates };
4565
4623
  (ne = this.circleSourceData) == null || ne.features.push(
4566
- x.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4624
+ C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4567
4625
  ), (le = this.circleSourceData) == null || le.features.push(
4568
- x.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4626
+ C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4569
4627
  ), (ce = this.circleSourceData) == null || ce.features.push(
4570
- x.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4628
+ C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4571
4629
  );
4572
4630
  }
4573
4631
  (de = (he = this.map) == null ? void 0 : he.getSource(this.circleSource)) == null || de.setData(this.circleSourceData);
@@ -4576,7 +4634,7 @@ const Zt = {
4576
4634
  (pe = this.map) != null && pe.getSource(this.interpolateSource) && ((te = this.map) == null || te.getSource(this.interpolateSource).setData(this.empty));
4577
4635
  },
4578
4636
  handleClick(a) {
4579
- var o, s, l, h, d, c, p, f;
4637
+ var o, s, l, h, p, c, d, f;
4580
4638
  const e = a.features[0], t = (s = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : s.features.filter(
4581
4639
  (m) => {
4582
4640
  var b;
@@ -4594,10 +4652,10 @@ const Zt = {
4594
4652
  }
4595
4653
  );
4596
4654
  this.activeTropicals = {
4597
- name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
4655
+ name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
4598
4656
  forecasts: t.map((m) => m.properties),
4599
4657
  history: (c = r[0]) == null ? void 0 : c.properties,
4600
- showCircle: (f = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
4658
+ showCircle: (f = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : f.showCircle
4601
4659
  }, this.showTropicals = !0;
4602
4660
  const i = document.getElementById("active-tropical");
4603
4661
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new ee.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -4606,11 +4664,11 @@ const Zt = {
4606
4664
  var r, i, o, s, l, h;
4607
4665
  a.disabled = !a.disabled;
4608
4666
  const e = `${a.name}-${a.model}`, t = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
4609
- t.forEach((d) => {
4610
- d.properties.category === e && (d.properties.disabled = a.disabled);
4611
- }), this.interpolateData.forEach((d) => {
4612
- d.properties.category === e && (d.properties.disabled = a.disabled);
4613
- }), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(x.featureCollection(t)), (h = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || h.setData(x.featureCollection(t)), this.handleDateChange();
4667
+ t.forEach((p) => {
4668
+ p.properties.category === e && (p.properties.disabled = a.disabled);
4669
+ }), this.interpolateData.forEach((p) => {
4670
+ p.properties.category === e && (p.properties.disabled = a.disabled);
4671
+ }), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(C.featureCollection(t)), (h = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || h.setData(C.featureCollection(t)), this.handleDateChange();
4614
4672
  },
4615
4673
  handleStrikeProbability(a) {
4616
4674
  this.$emit("tropicalProbability", a);
@@ -4667,92 +4725,92 @@ const Zt = {
4667
4725
  let h;
4668
4726
  switch (s) {
4669
4727
  case "ne":
4670
- h = x.lineArc(a, l * 1.852, 0, 90, { steps: l > 0 ? 64 : 1 });
4728
+ h = C.lineArc(a, l * 1.852, 0, 90, { steps: l > 0 ? 64 : 1 });
4671
4729
  break;
4672
4730
  case "se":
4673
- h = x.lineArc(a, l * 1.852, 90, 180, { steps: l > 0 ? 64 : 1 });
4731
+ h = C.lineArc(a, l * 1.852, 90, 180, { steps: l > 0 ? 64 : 1 });
4674
4732
  break;
4675
4733
  case "sw":
4676
- h = x.lineArc(a, l * 1.852, 180, 270, { steps: l > 0 ? 64 : 1 });
4734
+ h = C.lineArc(a, l * 1.852, 180, 270, { steps: l > 0 ? 64 : 1 });
4677
4735
  break;
4678
4736
  case "nw":
4679
- h = x.lineArc(a, l * 1.852, 270, 360, { steps: l > 0 ? 64 : 1 });
4737
+ h = C.lineArc(a, l * 1.852, 270, 360, { steps: l > 0 ? 64 : 1 });
4680
4738
  break;
4681
4739
  }
4682
4740
  r.push(...(o = h == null ? void 0 : h.geometry) == null ? void 0 : o.coordinates);
4683
4741
  }
4684
- const i = x.lineString(r);
4685
- return x.lineToPolygon(i, { properties: t });
4742
+ const i = C.lineString(r);
4743
+ return C.lineToPolygon(i, { properties: t });
4686
4744
  }
4687
4745
  }
4688
- }, Ht = {
4746
+ }, la = {
4689
4747
  id: "active-tropical",
4690
4748
  class: "active-tropical"
4691
- }, Gt = { class: "header-box" }, Jt = { class: "main" }, Xt = { key: 0 }, Yt = { class: "sub" }, qt = {
4749
+ }, ca = { class: "header-box" }, ha = { class: "main" }, da = { key: 0 }, pa = { class: "sub" }, ma = {
4692
4750
  id: "meteoBox",
4693
4751
  class: "main-box"
4694
- }, Qt = { class: "content" }, Kt = { class: "row" }, ea = {
4752
+ }, ua = { class: "content" }, ya = { class: "row" }, fa = {
4695
4753
  class: "col col-left",
4696
4754
  style: { "justify-content": "flex-start" }
4697
- }, ta = {
4755
+ }, ga = {
4698
4756
  class: "col col-right",
4699
4757
  style: { "justify-content": "flex-start" }
4700
- }, aa = { class: "row" }, ia = {
4758
+ }, ba = { class: "row" }, va = {
4701
4759
  class: "col col-24",
4702
4760
  style: { "justify-content": "flex-start" }
4703
- }, ra = { class: "forecast-models" }, oa = ["onClick"], sa = { class: "more" };
4704
- function na(a, e, t, r, i, o) {
4705
- var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z;
4706
- return Pe((_(), C("div", Ht, [
4707
- n("div", Gt, [
4761
+ }, wa = { class: "forecast-models" }, La = ["onClick"], xa = { class: "more" };
4762
+ function _a(a, e, t, r, i, o) {
4763
+ var s, l, h, p, c, d, f, m, b, y, u, v, g, _, z;
4764
+ return We((L(), x("div", la, [
4765
+ n("div", ca, [
4708
4766
  n("div", {
4709
4767
  class: "iconfont close-btn",
4710
4768
  onClick: e[0] || (e[0] = (w) => i.showTropicals = !1)
4711
4769
  }, ""),
4712
- n("div", Jt, [
4713
- (l = (s = i.activeTropicals) == null ? void 0 : s.history) != null && l.level ? (_(), C("span", Xt, S((d = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : d.level) + " , ", 1)) : B("", !0),
4714
- Ie(S((c = i.activeTropicals) == null ? void 0 : c.name), 1)
4770
+ n("div", ha, [
4771
+ (l = (s = i.activeTropicals) == null ? void 0 : s.history) != null && l.level ? (L(), x("span", da, S((p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) + " , ", 1)) : M("", !0),
4772
+ De(S((c = i.activeTropicals) == null ? void 0 : c.name), 1)
4715
4773
  ]),
4716
- n("div", Yt, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((w) => !w.disabled)[0]) == null ? void 0 : y.date))), 1)
4774
+ n("div", pa, " Last update: " + S(o.computeTime(((f = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((w) => !w.disabled)[0]) == null ? void 0 : y.date))), 1)
4717
4775
  ]),
4718
- n("div", qt, [
4719
- n("div", Qt, [
4720
- n("div", Kt, [
4721
- n("div", ea, [
4776
+ n("div", ma, [
4777
+ n("div", ua, [
4778
+ n("div", ya, [
4779
+ n("div", fa, [
4722
4780
  e[2] || (e[2] = n("label", null, "Wind speed : ", -1)),
4723
4781
  n("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
4724
4782
  ]),
4725
- n("div", ta, [
4783
+ n("div", ga, [
4726
4784
  e[3] || (e[3] = n("label", null, "Pressure : ", -1)),
4727
- n("span", null, S(((L = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : L.pressure) || "-") + "[hPa]", 1)
4785
+ n("span", null, S(((_ = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : _.pressure) || "-") + "[hPa]", 1)
4728
4786
  ])
4729
4787
  ]),
4730
- n("div", aa, [
4731
- n("div", ia, [
4788
+ n("div", ba, [
4789
+ n("div", va, [
4732
4790
  e[4] || (e[4] = n("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4733
- n("div", ra, [
4734
- (_(!0), C(_e, null, Se((z = i.activeTropicals) == null ? void 0 : z.forecasts, (w, A) => {
4735
- var M, j, O, F;
4736
- return _(), C("div", {
4791
+ n("div", wa, [
4792
+ (L(!0), x(Ie, null, Ae((z = i.activeTropicals) == null ? void 0 : z.forecasts, (w, A) => {
4793
+ var j, O, N, F;
4794
+ return L(), x("div", {
4737
4795
  key: A,
4738
- class: W([
4796
+ class: D([
4739
4797
  "model",
4740
4798
  w.disabled ? "" : "active",
4741
- A > 0 && A < ((j = (M = i.activeTropicals) == null ? void 0 : M.forecasts) == null ? void 0 : j.length) - 1 && ((F = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : F.length) > 2 ? "center-child" : ""
4799
+ A > 0 && A < ((O = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : O.length) - 1 && ((F = (N = i.activeTropicals) == null ? void 0 : N.forecasts) == null ? void 0 : F.length) > 2 ? "center-child" : ""
4742
4800
  ]),
4743
- onClick: (H) => o.handleForecastToggle(w)
4801
+ onClick: (X) => o.handleForecastToggle(w)
4744
4802
  }, [
4745
4803
  n("span", {
4746
- class: W(w.model)
4804
+ class: D(w.model)
4747
4805
  }, S(w.model), 3)
4748
- ], 10, oa);
4806
+ ], 10, La);
4749
4807
  }), 128))
4750
4808
  ])
4751
4809
  ])
4752
4810
  ]),
4753
- e[5] || (e[5] = Ze('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-f122450c></div><div class="row" style="padding:2px 10px;" data-v-f122450c><div class="legend" data-v-f122450c><div class="icon td" data-v-f122450c></div><div class="label" data-v-f122450c>TD</div></div><div class="legend" data-v-f122450c><div class="icon ts" data-v-f122450c></div><div class="label" data-v-f122450c>TS</div></div><div class="legend" data-v-f122450c><div class="icon sts" data-v-f122450c></div><div class="label" data-v-f122450c>STS</div></div><div class="legend" data-v-f122450c><div class="icon ty" data-v-f122450c></div><div class="label" data-v-f122450c>TY</div></div><div class="legend" data-v-f122450c><div class="icon sty" data-v-f122450c></div><div class="label" data-v-f122450c>STY</div></div><div class="legend" data-v-f122450c><div class="icon supper-ty" data-v-f122450c></div><div class="label" data-v-f122450c>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-f122450c><div class="legend" data-v-f122450c><div class="icon history" data-v-f122450c></div><div class="label" data-v-f122450c>History</div></div><div class="legend" data-v-f122450c><div class="icon r7" data-v-f122450c></div><div class="label" data-v-f122450c>35kts Radii</div></div><div class="legend" data-v-f122450c><div class="icon r10" data-v-f122450c></div><div class="label" data-v-f122450c>50kts Radii</div></div></div>', 3))
4811
+ e[5] || (e[5] = Ze('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-726fd7f6></div><div class="row" style="padding:2px 10px;" data-v-726fd7f6><div class="legend" data-v-726fd7f6><div class="icon td" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>TD</div></div><div class="legend" data-v-726fd7f6><div class="icon ts" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>TS</div></div><div class="legend" data-v-726fd7f6><div class="icon sts" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>STS</div></div><div class="legend" data-v-726fd7f6><div class="icon ty" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>TY</div></div><div class="legend" data-v-726fd7f6><div class="icon sty" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>STY</div></div><div class="legend" data-v-726fd7f6><div class="icon supper-ty" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-726fd7f6><div class="legend" data-v-726fd7f6><div class="icon history" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>History</div></div><div class="legend" data-v-726fd7f6><div class="icon r7" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>35kts Radii</div></div><div class="legend" data-v-726fd7f6><div class="icon r10" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>50kts Radii</div></div></div>', 3))
4754
4812
  ]),
4755
- n("div", sa, [
4813
+ n("div", xa, [
4756
4814
  n("div", {
4757
4815
  class: "button",
4758
4816
  onClick: e[1] || (e[1] = (w) => o.handleStrikeProbability(i.activeTropicals))
@@ -4760,11 +4818,11 @@ function na(a, e, t, r, i, o) {
4760
4818
  ])
4761
4819
  ])
4762
4820
  ], 512)), [
4763
- [ze, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4821
+ [Me, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4764
4822
  ]);
4765
4823
  }
4766
- const Fe = /* @__PURE__ */ T(Zt, [["render", na], ["__scopeId", "data-v-f122450c"]]);
4767
- const la = {
4824
+ const Fe = /* @__PURE__ */ T(na, [["render", _a], ["__scopeId", "data-v-726fd7f6"]]);
4825
+ const Ca = {
4768
4826
  name: "IdmPrecip3h",
4769
4827
  props: {
4770
4828
  factor: {
@@ -4852,7 +4910,7 @@ const la = {
4852
4910
  [1, "rgba(197,5,58,0.8)"]
4853
4911
  ];
4854
4912
  this.rampColor = this.webgl.setup(this.context, a);
4855
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4913
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
4856
4914
  this.program = e, this.aPositionBuffer = t;
4857
4915
  }
4858
4916
  },
@@ -4865,13 +4923,13 @@ const la = {
4865
4923
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4866
4924
  }
4867
4925
  }
4868
- }, ca = { key: 0 };
4869
- function ha(a, e, t, r, i, o) {
4926
+ }, ka = { key: 0 };
4927
+ function Sa(a, e, t, r, i, o) {
4870
4928
  var s;
4871
- return (s = t.factor) != null && s.active ? (_(), C("div", ca, [
4929
+ return (s = t.factor) != null && s.active ? (L(), x("div", ka, [
4872
4930
  n("div", {
4873
4931
  class: "legend-bars flex-center",
4874
- style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4932
+ style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4875
4933
  }, e[0] || (e[0] = [
4876
4934
  n("span", null, "mm", -1),
4877
4935
  n("span", null, "1.5", -1),
@@ -4882,10 +4940,10 @@ function ha(a, e, t, r, i, o) {
4882
4940
  n("span", null, "20", -1),
4883
4941
  n("span", null, "30", -1)
4884
4942
  ]), 4)
4885
- ])) : B("", !0);
4943
+ ])) : M("", !0);
4886
4944
  }
4887
- const da = /* @__PURE__ */ T(la, [["render", ha], ["__scopeId", "data-v-9708a7a3"]]);
4888
- const pa = {
4945
+ const Pa = /* @__PURE__ */ T(Ca, [["render", Sa], ["__scopeId", "data-v-9708a7a3"]]);
4946
+ const za = {
4889
4947
  name: "IdmVisibility",
4890
4948
  props: {
4891
4949
  factor: {
@@ -4966,7 +5024,7 @@ const pa = {
4966
5024
  [1, "rgba(144,144,144,0)"]
4967
5025
  ];
4968
5026
  this.rampColor = this.webgl.setup(this.context, a);
4969
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
5027
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
4970
5028
  this.program = e, this.aPositionBuffer = t;
4971
5029
  }
4972
5030
  },
@@ -4979,13 +5037,13 @@ const pa = {
4979
5037
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4980
5038
  }
4981
5039
  }
4982
- }, ma = { key: 0 };
4983
- function ua(a, e, t, r, i, o) {
5040
+ }, Ta = { key: 0 };
5041
+ function Ia(a, e, t, r, i, o) {
4984
5042
  var s;
4985
- return (s = t.factor) != null && s.active ? (_(), C("div", ma, [
5043
+ return (s = t.factor) != null && s.active ? (L(), x("div", Ta, [
4986
5044
  n("div", {
4987
5045
  class: "legend-bars flex-center",
4988
- style: U([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
5046
+ style: Z([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4989
5047
  }, e[0] || (e[0] = [
4990
5048
  n("span", null, "nm", -1),
4991
5049
  n("span", null, "0", -1),
@@ -4994,10 +5052,10 @@ function ua(a, e, t, r, i, o) {
4994
5052
  n("span", null, "3", -1),
4995
5053
  n("span", null, "9", -1)
4996
5054
  ]), 4)
4997
- ])) : B("", !0);
5055
+ ])) : M("", !0);
4998
5056
  }
4999
- const ya = /* @__PURE__ */ T(pa, [["render", ua], ["__scopeId", "data-v-f7b2fb08"]]);
5000
- const fa = {
5057
+ const Ra = /* @__PURE__ */ T(za, [["render", Ia], ["__scopeId", "data-v-f7b2fb08"]]);
5058
+ const Ea = {
5001
5059
  name: "IdmWaterTemp",
5002
5060
  props: {
5003
5061
  factor: {
@@ -5086,7 +5144,7 @@ const fa = {
5086
5144
  //
5087
5145
  ];
5088
5146
  this.rampColor = this.webgl.setup(this.context, a);
5089
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
5147
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
5090
5148
  this.program = e, this.aPositionBuffer = t;
5091
5149
  }
5092
5150
  },
@@ -5099,13 +5157,13 @@ const fa = {
5099
5157
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5100
5158
  }
5101
5159
  }
5102
- }, ga = { key: 0 };
5103
- function ba(a, e, t, r, i, o) {
5160
+ }, Aa = { key: 0 };
5161
+ function Da(a, e, t, r, i, o) {
5104
5162
  var s;
5105
- return (s = t.factor) != null && s.active ? (_(), C("div", ga, [
5163
+ return (s = t.factor) != null && s.active ? (L(), x("div", Aa, [
5106
5164
  n("div", {
5107
5165
  class: "legend-bars flex-center",
5108
- style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
5166
+ style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
5109
5167
  }, e[0] || (e[0] = [
5110
5168
  n("span", null, "°C", -1),
5111
5169
  n("span", null, "0", -1),
@@ -5114,10 +5172,10 @@ function ba(a, e, t, r, i, o) {
5114
5172
  n("span", null, "30", -1),
5115
5173
  n("span", null, "40", -1)
5116
5174
  ]), 4)
5117
- ])) : B("", !0);
5175
+ ])) : M("", !0);
5118
5176
  }
5119
- const va = /* @__PURE__ */ T(fa, [["render", ba], ["__scopeId", "data-v-7521f582"]]);
5120
- const wa = {
5177
+ const Wa = /* @__PURE__ */ T(Ea, [["render", Da], ["__scopeId", "data-v-7521f582"]]);
5178
+ const Ma = {
5121
5179
  name: "IdmTemp",
5122
5180
  props: {
5123
5181
  factor: {
@@ -5209,7 +5267,7 @@ const wa = {
5209
5267
  [1, "rgb(138, 43, 10)"]
5210
5268
  ];
5211
5269
  this.rampColor = this.webgl.setup(this.context, a);
5212
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
5270
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
5213
5271
  this.program = e, this.aPositionBuffer = t;
5214
5272
  }
5215
5273
  },
@@ -5222,13 +5280,13 @@ const wa = {
5222
5280
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5223
5281
  }
5224
5282
  }
5225
- }, La = { key: 0 };
5226
- function xa(a, e, t, r, i, o) {
5283
+ }, ja = { key: 0 };
5284
+ function Oa(a, e, t, r, i, o) {
5227
5285
  var s;
5228
- return (s = t.factor) != null && s.active ? (_(), C("div", La, [
5286
+ return (s = t.factor) != null && s.active ? (L(), x("div", ja, [
5229
5287
  n("div", {
5230
5288
  class: "legend-bars flex-center",
5231
- style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
5289
+ style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
5232
5290
  }, e[0] || (e[0] = [
5233
5291
  n("span", null, "°C", -1),
5234
5292
  n("span", null, "-20", -1),
@@ -5239,10 +5297,10 @@ function xa(a, e, t, r, i, o) {
5239
5297
  n("span", null, "30", -1),
5240
5298
  n("span", null, "40", -1)
5241
5299
  ]), 4)
5242
- ])) : B("", !0);
5300
+ ])) : M("", !0);
5243
5301
  }
5244
- const _a = /* @__PURE__ */ T(wa, [["render", xa], ["__scopeId", "data-v-25daaa82"]]);
5245
- const Ca = {
5302
+ const Ba = /* @__PURE__ */ T(Ma, [["render", Oa], ["__scopeId", "data-v-25daaa82"]]);
5303
+ const Na = {
5246
5304
  name: "IdmArctic",
5247
5305
  props: {
5248
5306
  factor: {
@@ -5325,7 +5383,7 @@ const Ca = {
5325
5383
  // 2m
5326
5384
  ];
5327
5385
  this.rampColor = this.webgl.setup(this.context, a);
5328
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
5386
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
5329
5387
  this.program = e, this.aPositionBuffer = t;
5330
5388
  }
5331
5389
  },
@@ -5338,13 +5396,13 @@ const Ca = {
5338
5396
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5339
5397
  }
5340
5398
  }
5341
- }, ka = { key: 0 };
5342
- function Sa(a, e, t, r, i, o) {
5399
+ }, Fa = { key: 0 };
5400
+ function $a(a, e, t, r, i, o) {
5343
5401
  var s;
5344
- return (s = t.factor) != null && s.active ? (_(), C("div", ka, [
5402
+ return (s = t.factor) != null && s.active ? (L(), x("div", Fa, [
5345
5403
  n("div", {
5346
5404
  class: "legend-bars flex-center",
5347
- style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
5405
+ style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
5348
5406
  }, e[0] || (e[0] = [
5349
5407
  n("span", null, "m", -1),
5350
5408
  n("span", null, "0", -1),
@@ -5353,11 +5411,28 @@ function Sa(a, e, t, r, i, o) {
5353
5411
  n("span", null, "1.5", -1),
5354
5412
  n("span", null, "2", -1)
5355
5413
  ]), 4)
5356
- ])) : B("", !0);
5414
+ ])) : M("", !0);
5357
5415
  }
5358
- const Pa = /* @__PURE__ */ T(Ca, [["render", Sa], ["__scopeId", "data-v-5bb73794"]]);
5359
- const za = {
5416
+ const Va = /* @__PURE__ */ T(Na, [["render", $a], ["__scopeId", "data-v-5bb73794"]]);
5417
+ /*! Element Plus Icons Vue v2.3.1 */
5418
+ var Ua = /* @__PURE__ */ He({
5419
+ name: "LocationFilled",
5420
+ __name: "location-filled",
5421
+ setup(a) {
5422
+ return (e, t) => (L(), x("svg", {
5423
+ xmlns: "http://www.w3.org/2000/svg",
5424
+ viewBox: "0 0 1024 1024"
5425
+ }, [
5426
+ n("path", {
5427
+ fill: "currentColor",
5428
+ d: "M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"
5429
+ })
5430
+ ]));
5431
+ }
5432
+ }), Za = Ua;
5433
+ const Ha = {
5360
5434
  name: "IdmPoint",
5435
+ components: { LocationFilled: Za },
5361
5436
  emits: ["point", "more"],
5362
5437
  props: {
5363
5438
  map: {
@@ -5376,9 +5451,9 @@ const za = {
5376
5451
  },
5377
5452
  data() {
5378
5453
  return {
5379
- showMeteo: !1,
5454
+ showMeteo: !0,
5380
5455
  meteoMarker: void 0,
5381
- helper: Ce
5456
+ helper: Re
5382
5457
  };
5383
5458
  },
5384
5459
  watch: {
@@ -5402,33 +5477,32 @@ const za = {
5402
5477
  computed: {
5403
5478
  computeTime() {
5404
5479
  return function(a) {
5405
- if (a) {
5406
- const e = Z(a).utc().utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
5407
- return `${e.format("MMM-DD,HHmm")} ( UTC ${t} )`;
5408
- }
5409
- return "-";
5480
+ return a ? `${G(a).utc().utcOffset(this.timeZone).format("MMM-DD,HHmm")}` : "-";
5410
5481
  };
5411
5482
  },
5483
+ computeTimeZone() {
5484
+ return `(UTC ${this.timeZone < 0 ? this.timeZone : "+" + this.timeZone})`;
5485
+ },
5412
5486
  computeLat() {
5413
5487
  return function(a, e = 4) {
5414
- return D.lat2pretty(a, e).pretty;
5488
+ return W.lat2pretty(a, e).pretty;
5415
5489
  };
5416
5490
  },
5417
5491
  computeLng() {
5418
5492
  return function(a, e = 4) {
5419
- return D.lng2pretty(a, e).pretty;
5493
+ return W.lng2pretty(a, e).pretty;
5420
5494
  };
5421
5495
  },
5422
5496
  roundPrecision() {
5423
5497
  return function(a, e = 4) {
5424
- return isNaN(a) ? "-" : D.roundPrecision(a, e);
5498
+ return isNaN(a) ? "-" : W.roundPrecision(a, e);
5425
5499
  };
5426
5500
  }
5427
5501
  },
5428
5502
  methods: {
5429
5503
  handleBind() {
5430
5504
  var a, e;
5431
- this.show ? (a = this.map) == null || a.on("click", this.handleClick) : ((e = this.map) == null || e.off("click", this.handleClick), this.showMeteo = !1);
5505
+ this.show ? ((a = this.map) == null || a.on("click", this.handleClick), this.map.getCanvas().style.cursor = "pointer") : ((e = this.map) == null || e.off("click", this.handleClick), this.map.getCanvas().style.cursor = "grab", this.showMeteo = !1);
5432
5506
  },
5433
5507
  handleClick(a) {
5434
5508
  a.originalEvent.stopPropagation();
@@ -5443,67 +5517,95 @@ const za = {
5443
5517
  }
5444
5518
  }
5445
5519
  }
5446
- }, Ta = {
5520
+ }, Ga = {
5447
5521
  id: "point-meteo",
5448
5522
  class: "point-meteo"
5449
- }, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Ra = { class: "main" }, Aa = { class: "sub" }, Da = { class: "main-box" }, Ma = { class: "flex-space" }, Wa = { class: "flex-space" }, ja = { class: "flex-space" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Oa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Va = { class: "flex-space" };
5450
- function Ua(a, e, t, r, i, o) {
5451
- var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, j, O, F, H, se, ne, le, ce, he, de, pe, te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe;
5452
- return Pe((_(), C("div", Ta, [
5453
- n("div", Ea, [
5454
- n("div", Ia, [
5523
+ }, Xa = { class: "meteo-box" }, Ja = { class: "header-box flex-between" }, Ya = { class: "flex-center" }, qa = { class: "lnglat" }, Qa = { class: "main-box" }, Ka = { class: "summary-row flex-between" }, ei = { class: "summary flex-center" }, ti = { class: "temp" }, ai = { class: "des info" }, ii = { class: "flex-start" }, ri = { class: "flex-start" }, oi = { class: "date flex-col-center-end" }, si = { class: "" }, ni = { class: "" }, li = { class: "row flex-space" }, ci = { class: "row flex-space" }, hi = { class: "row flex-space" }, di = { class: "row flex-space" }, pi = { class: "row flex-space" }, mi = { class: "row flex-space" }, ui = { class: "row flex-space" };
5524
+ function yi(a, e, t, r, i, o) {
5525
+ var h, p, c, d, f, m, b, y, u, v, g, _, z, w, A, j, O, N, F, X, se, ne, le, ce, he, de, pe, te, J, Y, me, q, I, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, _e, Ce, ke, Se, Pe, ze, Te;
5526
+ const s = P("LocationFilled"), l = P("ElIcon");
5527
+ return We((L(), x("div", Ga, [
5528
+ n("div", Xa, [
5529
+ n("div", Ja, [
5530
+ n("div", Ya, [
5531
+ k(l, { size: "22" }, {
5532
+ default: H(() => [
5533
+ k(s)
5534
+ ]),
5535
+ _: 1
5536
+ }),
5537
+ n("div", qa, S(o.computeLat((h = t.meteo) == null ? void 0 : h.lat)) + "," + S(o.computeLng((p = t.meteo) == null ? void 0 : p.lng)), 1)
5538
+ ]),
5455
5539
  n("div", {
5456
5540
  class: "iconfont close",
5457
- onClick: e[0] || (e[0] = (Te) => i.showMeteo = !1)
5458
- }, ""),
5459
- n("div", Ra, S(o.computeLat((s = t.meteo) == null ? void 0 : s.lat)) + "," + S(o.computeLng((l = t.meteo) == null ? void 0 : l.lng)), 1),
5460
- n("div", Aa, S(o.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
5541
+ onClick: e[0] || (e[0] = (je) => i.showMeteo = !1)
5542
+ }, "")
5461
5543
  ]),
5462
- n("div", Da, [
5463
- n("div", Ma, [
5464
- e[1] || (e[1] = n("label", null, "Wind", -1)),
5465
- n("span", null, S(((c = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : c.direction) || "-") + "/" + S(o.roundPrecision((f = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = t.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = t.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
5466
- ]),
5467
- n("div", Wa, [
5468
- e[2] || (e[2] = n("label", null, "Wind.Wave", -1)),
5469
- n("span", null, S(((L = (g = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : L.direction) || "-") + "/" + S(o.roundPrecision((A = (w = (z = t.meteo) == null ? void 0 : z.wave) == null ? void 0 : w.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((O = (j = (M = t.meteo) == null ? void 0 : M.wave) == null ? void 0 : j.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
5544
+ n("div", Qa, [
5545
+ n("div", Ka, [
5546
+ n("div", ei, [
5547
+ e[4] || (e[4] = n("div", {
5548
+ class: "iconfont icon",
5549
+ style: { "margin-right": "5px" }
5550
+ }, "", -1)),
5551
+ n("div", ti, [
5552
+ n("span", null, [
5553
+ De(S((b = (m = (f = (d = (c = t.meteo) == null ? void 0 : c.weather) == null ? void 0 : d[0]) == null ? void 0 : f.daily) == null ? void 0 : m.temperature_2m_min) == null ? void 0 : b[0]), 1),
5554
+ e[1] || (e[1] = n("span", { style: { "font-size": "14px" } }, "°C", -1))
5555
+ ])
5556
+ ]),
5557
+ n("div", ai, [
5558
+ n("div", ii, [
5559
+ e[2] || (e[2] = n("span", null, "Precip: ", -1)),
5560
+ n("span", null, S(o.roundPrecision((u = (y = t.meteo) == null ? void 0 : y.precip) == null ? void 0 : u.inter6h, 2)) + " mm", 1)
5561
+ ]),
5562
+ n("div", ri, [
5563
+ e[3] || (e[3] = n("span", null, "Visibility: ", -1)),
5564
+ n("span", null, S(o.roundPrecision(((v = t.meteo) == null ? void 0 : v.visibility) / 1852, 0)) + " nm", 1)
5565
+ ])
5566
+ ])
5567
+ ]),
5568
+ n("div", oi, [
5569
+ n("div", si, S(o.computeTime((g = t.meteo) == null ? void 0 : g.utc)), 1),
5570
+ n("div", ni, S(o.computeTimeZone), 1)
5571
+ ])
5470
5572
  ]),
5471
- n("div", ja, [
5472
- e[3] || (e[3] = n("label", null, "Swell", -1)),
5473
- n("span", null, S(((se = (H = (F = t.meteo) == null ? void 0 : F.wave) == null ? void 0 : H.swell) == null ? void 0 : se.direction) || "-") + "/" + S(o.roundPrecision((ce = (le = (ne = t.meteo) == null ? void 0 : ne.wave) == null ? void 0 : le.swell) == null ? void 0 : ce.height, 1)) + "[m]/" + S(o.roundPrecision((pe = (de = (he = t.meteo) == null ? void 0 : he.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.period, 1)) + "[s]", 1)
5573
+ n("div", li, [
5574
+ e[5] || (e[5] = n("label", null, "Wind", -1)),
5575
+ n("span", null, S(((z = (_ = t.meteo) == null ? void 0 : _.wind) == null ? void 0 : z.direction) || "-") + "/" + S(o.roundPrecision((A = (w = t.meteo) == null ? void 0 : w.wind) == null ? void 0 : A.kts, 1)) + "[kts]/" + S((O = (j = t.meteo) == null ? void 0 : j.wind) == null ? void 0 : O.scale) + "[BF]/" + S(o.roundPrecision((F = (N = t.meteo) == null ? void 0 : N.gusts) == null ? void 0 : F.kts, 1)) + "[kts]", 1)
5474
5576
  ]),
5475
- n("div", Ba, [
5476
- e[4] || (e[4] = n("label", null, "Sig.Wave", -1)),
5477
- n("span", null, S(((Y = (G = (te = t.meteo) == null ? void 0 : te.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((E = (q = (me = t.meteo) == null ? void 0 : me.wave) == null ? void 0 : q.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((Q = (ue = ($ = t.meteo) == null ? void 0 : $.wave) == null ? void 0 : ue.sig) == null ? void 0 : Q.period, 1)) + "[s]", 1)
5577
+ n("div", ci, [
5578
+ e[6] || (e[6] = n("label", null, "Wind.Wave", -1)),
5579
+ n("span", null, S(((ne = (se = (X = t.meteo) == null ? void 0 : X.wave) == null ? void 0 : se.wd) == null ? void 0 : ne.direction) || "-") + "/" + S(o.roundPrecision((he = (ce = (le = t.meteo) == null ? void 0 : le.wave) == null ? void 0 : ce.wd) == null ? void 0 : he.height, 1)) + "[m]/" + S(o.roundPrecision((te = (pe = (de = t.meteo) == null ? void 0 : de.wave) == null ? void 0 : pe.wd) == null ? void 0 : te.period, 1)) + "[s]", 1)
5478
5580
  ]),
5479
- n("div", Na, [
5480
- e[5] || (e[5] = n("label", null, "Current", -1)),
5481
- n("span", null, S(((ae = (ye = t.meteo) == null ? void 0 : ye.current) == null ? void 0 : ae.direction) || "-") + "/" + S(o.roundPrecision((re = (ie = t.meteo) == null ? void 0 : ie.current) == null ? void 0 : re.kts, 2)) + "[kts]", 1)
5581
+ n("div", hi, [
5582
+ e[7] || (e[7] = n("label", null, "Swell", -1)),
5583
+ n("span", null, S(((me = (Y = (J = t.meteo) == null ? void 0 : J.wave) == null ? void 0 : Y.swell) == null ? void 0 : me.direction) || "-") + "/" + S(o.roundPrecision(($ = (I = (q = t.meteo) == null ? void 0 : q.wave) == null ? void 0 : I.swell) == null ? void 0 : $.height, 1)) + "[m]/" + S(o.roundPrecision((ye = (Q = (ue = t.meteo) == null ? void 0 : ue.wave) == null ? void 0 : Q.swell) == null ? void 0 : ye.period, 1)) + "[s]", 1)
5482
5584
  ]),
5483
- n("div", Oa, [
5484
- e[6] || (e[6] = n("label", null, "Precip", -1)),
5485
- n("span", null, S(o.roundPrecision((ve = (be = t.meteo) == null ? void 0 : be.precip) == null ? void 0 : ve.inter6h, 2)) + "[mm]", 1)
5585
+ n("div", di, [
5586
+ e[8] || (e[8] = n("label", null, "Sig.Wave", -1)),
5587
+ n("span", null, S(((re = (ie = (ae = t.meteo) == null ? void 0 : ae.wave) == null ? void 0 : ie.sig) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((we = (ve = (be = t.meteo) == null ? void 0 : be.wave) == null ? void 0 : ve.sig) == null ? void 0 : we.height, 1)) + "[m]/" + S(o.roundPrecision((_e = (xe = (Le = t.meteo) == null ? void 0 : Le.wave) == null ? void 0 : xe.sig) == null ? void 0 : _e.period, 1)) + "[s]", 1)
5486
5588
  ]),
5487
- n("div", Fa, [
5488
- e[7] || (e[7] = n("label", null, "Visibility", -1)),
5489
- n("span", null, S(o.roundPrecision(((we = t.meteo) == null ? void 0 : we.visibility) / 1852, 0)) + "[nm]", 1)
5589
+ n("div", pi, [
5590
+ e[9] || (e[9] = n("label", null, "Current", -1)),
5591
+ n("span", null, S(((ke = (Ce = t.meteo) == null ? void 0 : Ce.current) == null ? void 0 : ke.direction) || "-") + "/" + S(o.roundPrecision((Pe = (Se = t.meteo) == null ? void 0 : Se.current) == null ? void 0 : Pe.kts, 2)) + "[kts]", 1)
5490
5592
  ]),
5491
- n("div", $a, [
5492
- e[8] || (e[8] = n("label", null, "Temp", -1)),
5493
- n("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.temp, 0)) + "[°C]", 1)
5593
+ n("div", mi, [
5594
+ e[10] || (e[10] = n("label", null, "Temp", -1)),
5595
+ n("span", null, S(o.roundPrecision((ze = t.meteo) == null ? void 0 : ze.temp, 0)) + "[°C]", 1)
5494
5596
  ]),
5495
- n("div", Va, [
5496
- e[9] || (e[9] = n("label", null, "Water Temp", -1)),
5497
- n("span", null, S(o.roundPrecision((xe = t.meteo) == null ? void 0 : xe.waterTemp, 2)) + "[°C]", 1)
5597
+ n("div", ui, [
5598
+ e[11] || (e[11] = n("label", null, "Water Temp", -1)),
5599
+ n("span", null, S(o.roundPrecision((Te = t.meteo) == null ? void 0 : Te.waterTemp, 2)) + "[°C]", 1)
5498
5600
  ])
5499
5601
  ]),
5500
- B("", !0)
5602
+ M("", !0)
5501
5603
  ])
5502
5604
  ], 512)), [
5503
- [ze, i.showMeteo]
5605
+ [Me, i.showMeteo]
5504
5606
  ]);
5505
5607
  }
5506
- const Za = /* @__PURE__ */ T(za, [["render", Ua], ["__scopeId", "data-v-efcf572f"]]), Ha = {
5608
+ const fi = /* @__PURE__ */ T(Ha, [["render", yi], ["__scopeId", "data-v-77ef2fb7"]]), gi = {
5507
5609
  name: "IdmWarZone",
5508
5610
  props: {
5509
5611
  map: {
@@ -5593,10 +5695,10 @@ const Za = /* @__PURE__ */ T(za, [["render", Ua], ["__scopeId", "data-v-efcf572f
5593
5695
  }
5594
5696
  }
5595
5697
  };
5596
- function Ga(a, e, t, r, i, o) {
5597
- return _(), C("div");
5698
+ function bi(a, e, t, r, i, o) {
5699
+ return L(), x("div");
5598
5700
  }
5599
- const Ja = /* @__PURE__ */ T(Ha, [["render", Ga]]), Xa = {
5701
+ const vi = /* @__PURE__ */ T(gi, [["render", bi]]), wi = {
5600
5702
  name: "IdmGmdssArea",
5601
5703
  props: {
5602
5704
  map: {
@@ -5716,10 +5818,10 @@ const Ja = /* @__PURE__ */ T(Ha, [["render", Ga]]), Xa = {
5716
5818
  }
5717
5819
  }
5718
5820
  };
5719
- function Ya(a, e, t, r, i, o) {
5720
- return _(), C("div");
5821
+ function Li(a, e, t, r, i, o) {
5822
+ return L(), x("div");
5721
5823
  }
5722
- const qa = /* @__PURE__ */ T(Xa, [["render", Ya]]), Qa = {
5824
+ const xi = /* @__PURE__ */ T(wi, [["render", Li]]), _i = {
5723
5825
  name: "IdmEcaZone",
5724
5826
  props: {
5725
5827
  map: {
@@ -5807,11 +5909,11 @@ const qa = /* @__PURE__ */ T(Xa, [["render", Ya]]), Qa = {
5807
5909
  }
5808
5910
  }
5809
5911
  };
5810
- function Ka(a, e, t, r, i, o) {
5811
- return _(), C("div");
5912
+ function Ci(a, e, t, r, i, o) {
5913
+ return L(), x("div");
5812
5914
  }
5813
- const ei = /* @__PURE__ */ T(Qa, [["render", Ka]]);
5814
- const ti = {
5915
+ const ki = /* @__PURE__ */ T(_i, [["render", Ci]]);
5916
+ const Si = {
5815
5917
  name: "IdmAlertZone",
5816
5918
  props: {
5817
5919
  map: {
@@ -5941,10 +6043,10 @@ const ti = {
5941
6043
  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);
5942
6044
  }
5943
6045
  }
5944
- }, ai = { id: "idm-gl3-zone-info" }, ii = ["innerHTML"];
5945
- function ri(a, e, t, r, i, o) {
6046
+ }, Pi = { id: "idm-gl3-zone-info" }, zi = ["innerHTML"];
6047
+ function Ti(a, e, t, r, i, o) {
5946
6048
  var s;
5947
- return Pe((_(), C("div", ai, [
6049
+ return We((L(), x("div", Pi, [
5948
6050
  n("div", {
5949
6051
  class: "iconfont close",
5950
6052
  onClick: e[0] || (e[0] = (l) => i.showZone = !1)
@@ -5952,13 +6054,13 @@ function ri(a, e, t, r, i, o) {
5952
6054
  n("div", {
5953
6055
  class: "rich-context",
5954
6056
  innerHTML: (s = i.form) == null ? void 0 : s.name
5955
- }, null, 8, ii)
6057
+ }, null, 8, zi)
5956
6058
  ], 512)), [
5957
- [ze, i.showZone]
6059
+ [Me, i.showZone]
5958
6060
  ]);
5959
6061
  }
5960
- const oi = /* @__PURE__ */ T(ti, [["render", ri]]);
5961
- const si = {
6062
+ const Ii = /* @__PURE__ */ T(Si, [["render", Ti]]);
6063
+ const Ri = {
5962
6064
  name: "IdmPort",
5963
6065
  props: {
5964
6066
  map: {
@@ -5984,12 +6086,12 @@ const si = {
5984
6086
  computed: {
5985
6087
  computeLat() {
5986
6088
  return function(a) {
5987
- return D.lat2pretty(a, 4).pretty;
6089
+ return W.lat2pretty(a, 4).pretty;
5988
6090
  };
5989
6091
  },
5990
6092
  computeLng() {
5991
6093
  return function(a) {
5992
- return D.lng2pretty(a, 4).pretty;
6094
+ return W.lng2pretty(a, 4).pretty;
5993
6095
  };
5994
6096
  }
5995
6097
  },
@@ -6050,41 +6152,41 @@ const si = {
6050
6152
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
6051
6153
  }
6052
6154
  }
6053
- }, ni = { id: "port-info" }, li = { class: "port-box" }, ci = { class: "flex-start" }, hi = { class: "flex-start" }, di = { class: "flex-start" }, pi = {
6155
+ }, Ei = { id: "port-info" }, Ai = { class: "port-box" }, Di = { class: "flex-start" }, Wi = { class: "flex-start" }, Mi = { class: "flex-start" }, ji = {
6054
6156
  class: "flex-start",
6055
6157
  style: { "align-items": "flex-start" }
6056
6158
  };
6057
- function mi(a, e, t, r, i, o) {
6058
- return Pe((_(), C("div", ni, [
6159
+ function Oi(a, e, t, r, i, o) {
6160
+ return We((L(), x("div", Ei, [
6059
6161
  n("div", {
6060
6162
  class: "close iconfont",
6061
6163
  onClick: e[0] || (e[0] = (s) => i.showPort = !1)
6062
6164
  }, ""),
6063
- n("div", li, [
6064
- n("div", ci, [
6165
+ n("div", Ai, [
6166
+ n("div", Di, [
6065
6167
  e[2] || (e[2] = n("label", null, "Name : ", -1)),
6066
6168
  n("span", {
6067
6169
  onClick: e[1] || (e[1] = (...s) => o.handleEmit && o.handleEmit(...s))
6068
6170
  }, S(i.form.name), 1)
6069
6171
  ]),
6070
- n("div", hi, [
6172
+ n("div", Wi, [
6071
6173
  e[3] || (e[3] = n("label", null, "Position : ", -1)),
6072
6174
  n("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
6073
6175
  ]),
6074
- n("div", di, [
6176
+ n("div", Mi, [
6075
6177
  e[4] || (e[4] = n("label", null, "LoCode : ", -1)),
6076
6178
  n("span", null, S(i.form.loCode || "-"), 1)
6077
6179
  ]),
6078
- n("div", pi, [
6180
+ n("div", ji, [
6079
6181
  e[5] || (e[5] = n("label", null, "Region : ", -1)),
6080
6182
  n("span", null, S(i.form.zoneName || "-"), 1)
6081
6183
  ])
6082
6184
  ])
6083
6185
  ], 512)), [
6084
- [ze, i.showPort]
6186
+ [Me, i.showPort]
6085
6187
  ]);
6086
6188
  }
6087
- const ui = /* @__PURE__ */ T(si, [["render", mi], ["__scopeId", "data-v-c07e4c45"]]), yi = {
6189
+ const Bi = /* @__PURE__ */ T(Ri, [["render", Oi], ["__scopeId", "data-v-c07e4c45"]]), Ni = {
6088
6190
  name: "IdmLoadLine",
6089
6191
  props: {
6090
6192
  map: {
@@ -6154,10 +6256,10 @@ const ui = /* @__PURE__ */ T(si, [["render", mi], ["__scopeId", "data-v-c07e4c45
6154
6256
  }
6155
6257
  }
6156
6258
  };
6157
- function fi(a, e, t, r, i, o) {
6158
- return _(), C("div");
6259
+ function Fi(a, e, t, r, i, o) {
6260
+ return L(), x("div");
6159
6261
  }
6160
- const gi = /* @__PURE__ */ T(yi, [["render", fi]]), bi = {
6262
+ const $i = /* @__PURE__ */ T(Ni, [["render", Fi]]), Vi = {
6161
6263
  name: "IdmTimezone",
6162
6264
  props: {
6163
6265
  map: {
@@ -6322,10 +6424,10 @@ const gi = /* @__PURE__ */ T(yi, [["render", fi]]), bi = {
6322
6424
  }
6323
6425
  }
6324
6426
  };
6325
- function vi(a, e, t, r, i, o) {
6326
- return _(), C("div");
6427
+ function Ui(a, e, t, r, i, o) {
6428
+ return L(), x("div");
6327
6429
  }
6328
- const wi = /* @__PURE__ */ T(bi, [["render", vi]]), Li = {
6430
+ const Zi = /* @__PURE__ */ T(Vi, [["render", Ui]]), Hi = {
6329
6431
  name: "IdmVoluntaryReportingArea",
6330
6432
  props: {
6331
6433
  map: {
@@ -6413,10 +6515,10 @@ const wi = /* @__PURE__ */ T(bi, [["render", vi]]), Li = {
6413
6515
  }
6414
6516
  }
6415
6517
  };
6416
- function xi(a, e, t, r, i, o) {
6417
- return _(), C("div");
6518
+ function Gi(a, e, t, r, i, o) {
6519
+ return L(), x("div");
6418
6520
  }
6419
- const _i = /* @__PURE__ */ T(Li, [["render", xi]]), Ci = {
6521
+ const Xi = /* @__PURE__ */ T(Hi, [["render", Gi]]), Ji = {
6420
6522
  name: "IdmSpecialArea",
6421
6523
  props: {
6422
6524
  map: {
@@ -6446,7 +6548,7 @@ const _i = /* @__PURE__ */ T(Li, [["render", xi]]), Ci = {
6446
6548
  methods: {
6447
6549
  handleRender() {
6448
6550
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
6449
- a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => D.convertToMonotonicLng2(e));
6551
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => W.convertToMonotonicLng2(e));
6450
6552
  }), this.map.addSource(this.source, {
6451
6553
  type: "geojson",
6452
6554
  data: this.area
@@ -6506,10 +6608,10 @@ const _i = /* @__PURE__ */ T(Li, [["render", xi]]), Ci = {
6506
6608
  }
6507
6609
  }
6508
6610
  };
6509
- function ki(a, e, t, r, i, o) {
6510
- return _(), C("div");
6611
+ function Yi(a, e, t, r, i, o) {
6612
+ return L(), x("div");
6511
6613
  }
6512
- const Si = /* @__PURE__ */ T(Ci, [["render", ki]]), Pi = {
6614
+ const qi = /* @__PURE__ */ T(Ji, [["render", Yi]]), Qi = {
6513
6615
  name: "IdmTerminator",
6514
6616
  props: {
6515
6617
  map: {
@@ -6558,11 +6660,11 @@ const Si = /* @__PURE__ */ T(Ci, [["render", ki]]), Pi = {
6558
6660
  }
6559
6661
  }
6560
6662
  };
6561
- function zi(a, e, t, r, i, o) {
6562
- return _(), C("div");
6663
+ function Ki(a, e, t, r, i, o) {
6664
+ return L(), x("div");
6563
6665
  }
6564
- const Ti = /* @__PURE__ */ T(Pi, [["render", zi]]);
6565
- const Ei = {
6666
+ const er = /* @__PURE__ */ T(Qi, [["render", Ki]]);
6667
+ const tr = {
6566
6668
  name: "IdmLatLng",
6567
6669
  props: {
6568
6670
  map: {
@@ -6620,7 +6722,7 @@ const Ei = {
6620
6722
  this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6621
6723
  },
6622
6724
  handleMouseMove(a) {
6623
- const e = a.lngLat, t = D.lng2pretty(e.lng, 2), r = D.lat2pretty(e.lat, 2);
6725
+ const e = a.lngLat, t = W.lng2pretty(e.lng, 2), r = W.lat2pretty(e.lat, 2);
6624
6726
  this.lngLat = { lng: t, lat: r };
6625
6727
  },
6626
6728
  handleComputeLatLngs() {
@@ -6669,7 +6771,7 @@ const Ei = {
6669
6771
  handleZoomEnd() {
6670
6772
  var e;
6671
6773
  const a = this.handleComputeLatLngs();
6672
- (e = this.map) == null || e.getSource(this.source).setData(x.featureCollection(a));
6774
+ (e = this.map) == null || e.getSource(this.source).setData(C.featureCollection(a));
6673
6775
  },
6674
6776
  handleRender() {
6675
6777
  if (this.map) {
@@ -6718,18 +6820,18 @@ const Ei = {
6718
6820
  }
6719
6821
  }
6720
6822
  };
6721
- function Ii(a, e, t, r, i, o) {
6722
- return i.lngLat ? (_(), C("div", {
6823
+ function ar(a, e, t, r, i, o) {
6824
+ return i.lngLat ? (L(), x("div", {
6723
6825
  key: 0,
6724
6826
  class: "lat-lng-tip",
6725
- style: U({ right: i.right + "px", bottom: t.bottom })
6827
+ style: Z({ right: i.right + "px", bottom: t.bottom })
6726
6828
  }, [
6727
6829
  n("span", null, S(i.lngLat.lat.pretty), 1),
6728
6830
  e[0] || (e[0] = n("span", null, ", ", -1)),
6729
6831
  n("span", null, S(i.lngLat.lng.pretty), 1)
6730
- ], 4)) : B("", !0);
6832
+ ], 4)) : M("", !0);
6731
6833
  }
6732
- const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7"]]), Ri = {
6834
+ const $e = /* @__PURE__ */ T(tr, [["render", ar], ["__scopeId", "data-v-73241fe7"]]), ir = {
6733
6835
  name: "IdmMeasure",
6734
6836
  props: {
6735
6837
  map: {
@@ -6770,11 +6872,11 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
6770
6872
  },
6771
6873
  methods: {
6772
6874
  handleBind() {
6773
- var a, e, t, r, i, o, s, l, h, d;
6875
+ var a, e, t, r, i, o, s, l, h, p;
6774
6876
  if (this.show)
6775
6877
  (a = this.map) == null || a.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (t = this.map) == null || t.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");
6776
6878
  else {
6777
- (o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (s = this.map) == null || s.off("mousemove", this.handleMove), (l = this.map) == null || l.off("dblclick", this.handleDblClick), (h = this.map) == null || h.off("click", this.handleClick), (d = this.map) == null || d.off("contextmenu", this.handleContextmenu);
6879
+ (o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (s = this.map) == null || s.off("mousemove", this.handleMove), (l = this.map) == null || l.off("dblclick", this.handleDblClick), (h = this.map) == null || h.off("click", this.handleClick), (p = this.map) == null || p.off("contextmenu", this.handleContextmenu);
6778
6880
  for (const c of this.geojson)
6779
6881
  this.handleClear(c, !0);
6780
6882
  this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
@@ -6788,7 +6890,7 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
6788
6890
  }
6789
6891
  },
6790
6892
  handleDrag(a) {
6791
- var t, r, i, o, s, l, h, d, c, p;
6893
+ var t, r, i, o, s, l, h, p, c, d;
6792
6894
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6793
6895
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6794
6896
  const f = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
@@ -6807,13 +6909,13 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
6807
6909
  this.handleTmpPointUpdate(
6808
6910
  f,
6809
6911
  y[b - 1],
6810
- { lng: (d = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : d.lng, lat: (p = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
6912
+ { lng: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, lat: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lat, properties: y[b].properties },
6811
6913
  b === y.length - 1 ? void 0 : y[b + 1]
6812
6914
  );
6813
6915
  }
6814
6916
  },
6815
6917
  handleDragEnd(a) {
6816
- var t, r, i, o, s, l, h, d, c, p;
6918
+ var t, r, i, o, s, l, h, p, c, d;
6817
6919
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6818
6920
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6819
6921
  const f = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
@@ -6822,7 +6924,7 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
6822
6924
  return ((u = y._element) == null ? void 0 : u.id) === e;
6823
6925
  })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (l = (s = a.target) == null ? void 0 : s._lngLat) == null ? void 0 : l.lat]);
6824
6926
  const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
6825
- b.geometry.coordinates = [(d = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : d.lng, (p = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6927
+ b.geometry.coordinates = [(p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6826
6928
  }
6827
6929
  },
6828
6930
  handleContextmenu(a) {
@@ -6831,9 +6933,9 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
6831
6933
  const e = (o = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
6832
6934
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6833
6935
  const l = this.geojson.filter((h) => h.id === e.split("-")[0])[0].features.filter((h) => h.geometry.type === "Point");
6834
- if (l.length > 2 && l.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6835
- const d = document.createElement("div");
6836
- d.className = "point-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ee.Marker(d).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6936
+ if (l.length > 2 && l.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6937
+ const p = document.createElement("div");
6938
+ p.className = "point-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ee.Marker(p).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6837
6939
  }
6838
6940
  }
6839
6941
  },
@@ -6842,15 +6944,15 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
6842
6944
  (t = this.contextmenu) == null || t.remove();
6843
6945
  const e = a.originalEvent.target.className;
6844
6946
  if (e === "marker-close") {
6845
- const l = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, h = this.geojson.filter((d) => d.id === l)[0];
6846
- h && this.handleClear(h, !0), this.geojson = this.geojson.filter((d) => d.id !== l);
6947
+ const l = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, h = this.geojson.filter((p) => p.id === l)[0];
6948
+ h && this.handleClear(h, !0), this.geojson = this.geojson.filter((p) => p.id !== l);
6847
6949
  } else if (e === "del-point") {
6848
- const l = (s = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : s.split("-"), h = this.geojson.filter((d) => d.id === l[0])[0];
6849
- h.features = h.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== l[1]), this.handlePointUpdate(h);
6950
+ const l = (s = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : s.split("-"), h = this.geojson.filter((p) => p.id === l[0])[0];
6951
+ h.features = h.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== l[1]), this.handlePointUpdate(h);
6850
6952
  } else if (e !== "marker-label") {
6851
6953
  let l = this.geojson.at(-1);
6852
- l || (l = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(l)), l.features = l.features.filter((d) => d.geometry.type === "Point");
6853
- const h = x.feature(
6954
+ l || (l = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(l)), l.features = l.features.filter((p) => p.geometry.type === "Point");
6955
+ const h = C.feature(
6854
6956
  {
6855
6957
  type: "Point",
6856
6958
  coordinates: [a.lngLat.lng, a.lngLat.lat]
@@ -6869,34 +6971,34 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
6869
6971
  let t = 0;
6870
6972
  const r = [];
6871
6973
  for (let i = 1; i < e.length; i++) {
6872
- const o = e[i - 1], s = e[i], l = o.properties, h = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, d = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, c = K.calculateDistance(h, d, l.mode === "RL", 2), p = K.calculateBearing(h, d, l.mode === "RL", 2);
6873
- t = D.roundPrecision(t + c, 2);
6974
+ const o = e[i - 1], s = e[i], l = o.properties, h = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, p = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, c = K.calculateDistance(h, p, l.mode === "RL", 2), d = K.calculateBearing(h, p, l.mode === "RL", 2);
6975
+ t = W.roundPrecision(t + c, 2);
6874
6976
  let f;
6875
- l.mode === "RL" ? f = D.convertToMonotonicLng([h, d]) : f = D.convertToMonotonicLng(K.interpolateCoordinates(h, d, 200));
6876
- const m = x.lineString(f.map((b) => [b.lng, b.lat]));
6877
- m.properties.dist = c, m.properties.bearing = p, m.properties.total = t, r.push(m);
6977
+ l.mode === "RL" ? f = W.convertToMonotonicLng([h, p]) : f = W.convertToMonotonicLng(K.interpolateCoordinates(h, p, 200));
6978
+ const m = C.lineString(f.map((b) => [b.lng, b.lat]));
6979
+ m.properties.dist = c, m.properties.bearing = d, m.properties.total = t, r.push(m);
6878
6980
  }
6879
6981
  e.push(...r), a.total = t;
6880
6982
  }
6881
6983
  return this.handleRender(a), a;
6882
6984
  },
6883
6985
  handleTmpPointUpdate(a, e, t, r) {
6884
- const i = x.featureCollection([]);
6986
+ const i = C.featureCollection([]);
6885
6987
  let o, s;
6886
6988
  if (e) {
6887
- const h = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, c = { lng: t.lng, lat: t.lat };
6888
- o = K.calculateDistance(d, c, h.mode === "RL", 2), s = K.calculateBearing(d, c, h.mode === "RL", 2);
6889
- let p;
6890
- h.mode === "RL" ? p = D.convertToMonotonicLng([d, c]) : p = D.convertToMonotonicLng(K.interpolateCoordinates(d, c, 200));
6891
- const f = x.lineString(p.map((m) => [m.lng, m.lat]));
6989
+ const h = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, c = { lng: t.lng, lat: t.lat };
6990
+ o = K.calculateDistance(p, c, h.mode === "RL", 2), s = K.calculateBearing(p, c, h.mode === "RL", 2);
6991
+ let d;
6992
+ h.mode === "RL" ? d = W.convertToMonotonicLng([p, c]) : d = W.convertToMonotonicLng(K.interpolateCoordinates(p, c, 200));
6993
+ const f = C.lineString(d.map((m) => [m.lng, m.lat]));
6892
6994
  f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
6893
6995
  }
6894
6996
  if (r) {
6895
- const h = t.properties, d = t, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6896
- o = K.calculateDistance(d, c, h.mode === "RL", 2), s = K.calculateBearing(d, c, h.mode === "RL", 2);
6897
- let p;
6898
- h.mode === "RL" ? p = D.convertToMonotonicLng([d, c]) : p = D.convertToMonotonicLng(K.interpolateCoordinates(d, c, 200));
6899
- const f = x.lineString(p.map((m) => [m.lng, m.lat]));
6997
+ const h = t.properties, p = t, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6998
+ o = K.calculateDistance(p, c, h.mode === "RL", 2), s = K.calculateBearing(p, c, h.mode === "RL", 2);
6999
+ let d;
7000
+ h.mode === "RL" ? d = W.convertToMonotonicLng([p, c]) : d = W.convertToMonotonicLng(K.interpolateCoordinates(p, c, 200));
7001
+ const f = C.lineString(d.map((m) => [m.lng, m.lat]));
6900
7002
  f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
6901
7003
  }
6902
7004
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
@@ -6937,7 +7039,7 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
6937
7039
  }
6938
7040
  });
6939
7041
  let l;
6940
- if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Tol distance: <b>${D.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${s}</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)
7042
+ if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Tol distance: <b>${W.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${s}</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)
6941
7043
  this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
6942
7044
  else {
6943
7045
  const h = document.createElement("div");
@@ -6947,14 +7049,14 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
6947
7049
  handleMove(a) {
6948
7050
  this.map.getCanvas().style.cursor = "crosshair";
6949
7051
  let e = this.geojson.at(-1);
6950
- e || (e = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
7052
+ e || (e = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
6951
7053
  const t = e.features.filter((r) => r.geometry.type === "Point");
6952
7054
  t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
6953
7055
  },
6954
7056
  handleDblClick(a) {
6955
7057
  a.preventDefault();
6956
7058
  let e = this.geojson.at(-1);
6957
- e.closed = !0, this.handleRender(e), e = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
7059
+ e.closed = !0, this.handleRender(e), e = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
6958
7060
  },
6959
7061
  handleRender(a) {
6960
7062
  var e;
@@ -7003,25 +7105,25 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
7003
7105
  h.on("drag", this.handleDrag), h.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(h) : this.pointMarkers[a.id] = [h];
7004
7106
  }
7005
7107
  if (a.closed) {
7006
- const s = o.at(-1), h = a.features.filter((c) => c.geometry.type === "LineString").at(-1), d = document.createElement("div");
7007
- d.className = "point-summary-marker", d.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${h.properties.total}nm</div>`, this.closeMarkers[a.id] = new ee.Marker(d).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
7108
+ const s = o.at(-1), h = a.features.filter((c) => c.geometry.type === "LineString").at(-1), p = document.createElement("div");
7109
+ p.className = "point-summary-marker", p.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${h.properties.total}nm</div>`, this.closeMarkers[a.id] = new ee.Marker(p).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
7008
7110
  }
7009
7111
  }
7010
7112
  },
7011
7113
  handleClear(a, e = !0) {
7012
- var o, s, l, h, d, c, p, f, m;
7114
+ var o, s, l, h, p, c, d, f, m;
7013
7115
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
7014
- (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (c = this.pointMarkers[a.id]) == null || c.forEach((b) => {
7116
+ (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (p = this.closeMarkers[a.id]) == null || p.remove(), this.closeMarkers[a.id] = void 0, (c = this.pointMarkers[a.id]) == null || c.forEach((b) => {
7015
7117
  b == null || b.remove();
7016
- }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(t)) && this.map.removeSource(t), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
7118
+ }), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(t)) && this.map.removeSource(t), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
7017
7119
  }
7018
7120
  }
7019
7121
  };
7020
- function Ai(a, e, t, r, i, o) {
7021
- return _(), C("div");
7122
+ function rr(a, e, t, r, i, o) {
7123
+ return L(), x("div");
7022
7124
  }
7023
- const Di = /* @__PURE__ */ T(Ri, [["render", Ai]]);
7024
- const Mi = {
7125
+ const or = /* @__PURE__ */ T(ir, [["render", rr]]);
7126
+ const sr = {
7025
7127
  name: "IdmENC",
7026
7128
  props: {
7027
7129
  map: {
@@ -7036,7 +7138,7 @@ const Mi = {
7036
7138
  },
7037
7139
  bottom: {
7038
7140
  type: String,
7039
- default: "260px"
7141
+ default: "280px"
7040
7142
  },
7041
7143
  token: {
7042
7144
  type: String,
@@ -7052,8 +7154,8 @@ const Mi = {
7052
7154
  emits: ["enc"],
7053
7155
  data() {
7054
7156
  return {
7055
- helper: Ce,
7056
- vendor: this.$attrs.permission & Ce.LEVEL.Supper ? "hi" : "i4",
7157
+ helper: Re,
7158
+ vendor: this.$attrs.permission & Re.LEVEL.Supper ? "hi" : "i4",
7057
7159
  right: 10
7058
7160
  };
7059
7161
  },
@@ -7073,24 +7175,24 @@ const Mi = {
7073
7175
  }
7074
7176
  },
7075
7177
  methods: {}
7076
- }, Wi = { key: 0 }, ji = { class: "bar-item" };
7077
- function Bi(a, e, t, r, i, o) {
7178
+ }, nr = { key: 0 }, lr = { class: "bar-item" };
7179
+ function cr(a, e, t, r, i, o) {
7078
7180
  const s = P("ElTooltip");
7079
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (_(), C("div", Wi, [
7181
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (L(), x("div", nr, [
7080
7182
  n("div", {
7081
7183
  class: "menu-bar-box",
7082
- style: U({ position: "absolute", right: i.right + "px", bottom: t.bottom })
7184
+ style: Z({ position: "absolute", right: i.right + "px", bottom: t.bottom })
7083
7185
  }, [
7084
- n("div", ji, [
7186
+ n("div", lr, [
7085
7187
  k(s, {
7086
7188
  placement: "left",
7087
7189
  effect: "light",
7088
7190
  content: "Hifleet",
7089
7191
  "show-after": 1e3
7090
7192
  }, {
7091
- default: X(() => [
7193
+ default: H(() => [
7092
7194
  n("div", {
7093
- class: W(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
7195
+ class: D(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
7094
7196
  onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
7095
7197
  }, e[2] || (e[2] = [
7096
7198
  n("span", { class: "iconfont" }, "HI", -1)
@@ -7104,9 +7206,9 @@ function Bi(a, e, t, r, i, o) {
7104
7206
  content: "I4insight",
7105
7207
  "show-after": 1e3
7106
7208
  }, {
7107
- default: X(() => [
7209
+ default: H(() => [
7108
7210
  n("div", {
7109
- class: W(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
7211
+ class: D(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
7110
7212
  onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
7111
7213
  }, e[3] || (e[3] = [
7112
7214
  n("span", { class: "iconfont" }, "I4", -1)
@@ -7116,42 +7218,42 @@ function Bi(a, e, t, r, i, o) {
7116
7218
  })
7117
7219
  ])
7118
7220
  ], 4)
7119
- ])) : B("", !0);
7221
+ ])) : M("", !0);
7120
7222
  }
7121
- const Ni = /* @__PURE__ */ T(Mi, [["render", Bi], ["__scopeId", "data-v-5873cc66"]]);
7122
- const Oi = {
7223
+ const hr = /* @__PURE__ */ T(sr, [["render", cr], ["__scopeId", "data-v-150235f7"]]);
7224
+ const dr = {
7123
7225
  name: "IdmGLV2",
7124
7226
  components: {
7125
- IdmGlLayer: yt,
7126
- IdmWindBarb: vt,
7127
- IdmWindParticle: Ct,
7128
- IdmCurrents: zt,
7129
- IdmCurrentParticle: Rt,
7130
- IdmSigWave: Mt,
7131
- IdmSwell: Bt,
7132
- IdmPrmsl: Ft,
7227
+ IdmGlLayer: Rt,
7228
+ IdmWindBarb: Wt,
7229
+ IdmWindParticle: Nt,
7230
+ IdmCurrents: Ut,
7231
+ IdmCurrentParticle: Xt,
7232
+ IdmSigWave: qt,
7233
+ IdmSwell: ea,
7234
+ IdmPrmsl: ia,
7133
7235
  // IdmIceEdge,
7134
- IdmIceberg: Ut,
7236
+ IdmIceberg: sa,
7135
7237
  IdmTropicals: Fe,
7136
- IdmPrecip3h: da,
7137
- IdmVisibility: ya,
7138
- IdmWaterTemp: va,
7139
- IdmTemp: _a,
7140
- IdmArctic: Pa,
7141
- IdmWarZone: Ja,
7142
- IdmGmdssArea: qa,
7143
- IdmEcaZone: ei,
7144
- IdmAlertZone: oi,
7145
- IdmPort: ui,
7146
- IdmLoadLine: gi,
7147
- IdmTimezone: wi,
7148
- IdmVRA: _i,
7149
- IdmSpecialArea: Si,
7150
- IdmTerminator: Ti,
7238
+ IdmPrecip3h: Pa,
7239
+ IdmVisibility: Ra,
7240
+ IdmWaterTemp: Wa,
7241
+ IdmTemp: Ba,
7242
+ IdmArctic: Va,
7243
+ IdmWarZone: vi,
7244
+ IdmGmdssArea: xi,
7245
+ IdmEcaZone: ki,
7246
+ IdmAlertZone: Ii,
7247
+ IdmPort: Bi,
7248
+ IdmLoadLine: $i,
7249
+ IdmTimezone: Zi,
7250
+ IdmVRA: Xi,
7251
+ IdmSpecialArea: qi,
7252
+ IdmTerminator: er,
7151
7253
  IdmLatLng: $e,
7152
- IdmMeasure: Di,
7153
- IdmPoint: Za,
7154
- IdmENC: Ni
7254
+ IdmMeasure: or,
7255
+ IdmPoint: fi,
7256
+ IdmENC: hr
7155
7257
  },
7156
7258
  props: {
7157
7259
  map: {
@@ -7186,7 +7288,7 @@ const Oi = {
7186
7288
  show3d: !1,
7187
7289
  meteo: void 0,
7188
7290
  source: "",
7189
- gateway: "https://cbe.idmwx.com",
7291
+ gateway: "https://cbe4test.idmwx.com",
7190
7292
  mapProjection: "mercator",
7191
7293
  zoom: 6,
7192
7294
  viewport: void 0,
@@ -7198,15 +7300,14 @@ const Oi = {
7198
7300
  showCurrentIsoband: !1,
7199
7301
  showCurrentParticle: !1,
7200
7302
  enc: "",
7201
- // enc: 'i4',
7202
7303
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
7203
- helper: new wt()
7304
+ helper: new Mt()
7204
7305
  };
7205
7306
  },
7206
7307
  watch: {
7207
7308
  ts: {
7208
7309
  handler(a, e) {
7209
- a && e && Z(a).utc().format("yyyy-MM-DD HH") !== Z(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
7310
+ a && e && G(a).utc().format("yyyy-MM-DD HH") !== G(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
7210
7311
  this.handleDateChange({ tropicals: !1 });
7211
7312
  });
7212
7313
  },
@@ -7214,22 +7315,22 @@ const Oi = {
7214
7315
  },
7215
7316
  map: {
7216
7317
  handler() {
7217
- this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Re(this.map), this.handleRampColorInitial());
7318
+ this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Be(this.map), this.handleRampColorInitial());
7218
7319
  },
7219
7320
  immediate: !0
7220
7321
  },
7221
7322
  enc: {
7222
7323
  handler(a, e) {
7223
- var t, r, i, o, s, l, h, d;
7224
- a ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((l = (s = this.map) == null ? void 0 : s.getLayer("i4")) == null || l.setLayoutProperty("visibility", "none"), (d = (h = this.map) == null ? void 0 : h.getLayer("hi")) == null || d.setLayoutProperty("visibility", "none"));
7324
+ var t, r, i, o, s, l, h, p;
7325
+ a ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((l = (s = this.map) == null ? void 0 : s.getLayer("i4")) == null || l.setLayoutProperty("visibility", "none"), (p = (h = this.map) == null ? void 0 : h.getLayer("hi")) == null || p.setLayoutProperty("visibility", "none"));
7225
7326
  }
7226
7327
  },
7227
7328
  activeWeatherLayers: {
7228
7329
  handler() {
7229
- var a, e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v;
7330
+ var a, e, t, r, i, o, s, l, h, p, c, d, f, m, b, y, u, v;
7230
7331
  if (!this.map)
7231
7332
  return !1;
7232
- this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((s = this.map) != null && s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((h = this.map) == null || h.moveLayer((l = this.viewport) == null ? void 0 : l.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (c = this.map) != null && c.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((m = this.map) == null || m.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((y = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (v = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
7333
+ this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((s = this.map) != null && s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((h = this.map) == null || h.moveLayer((l = this.viewport) == null ? void 0 : l.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (c = this.map) != null && c.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((m = this.map) == null || m.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((y = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (v = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
7233
7334
  },
7234
7335
  immediate: !0
7235
7336
  }
@@ -7276,13 +7377,13 @@ const Oi = {
7276
7377
  },
7277
7378
  methods: {
7278
7379
  async fetchWeatherLayers(a = { tropicals: !1 }) {
7279
- var i, o, s, l, h, d, c, p;
7380
+ var i, o, s, l, h, p, c, d;
7280
7381
  const e = (/* @__PURE__ */ new Date()).valueOf();
7281
7382
  let t = 0, r = 0;
7282
7383
  if (this.map) {
7283
7384
  const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), b = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
7284
- if (this.handleRampColorState(), this.particleFactor) {
7285
- const y = ke.WEATHER_LAYERS.find((u) => {
7385
+ if (this.particleFactor) {
7386
+ const y = Ee.WEATHER_LAYERS.find((u) => {
7286
7387
  var v;
7287
7388
  return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
7288
7389
  });
@@ -7297,9 +7398,9 @@ const Oi = {
7297
7398
  }
7298
7399
  });
7299
7400
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((s = v == null ? void 0 : v.data) == null ? void 0 : s.code) === 0) {
7300
- const g = (l = v == null ? void 0 : v.data) == null ? void 0 : l.data, L = [];
7401
+ const g = (l = v == null ? void 0 : v.data) == null ? void 0 : l.data, _ = [];
7301
7402
  for (const w in g)
7302
- w === "ice-edge" && (g[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" && L.push(
7403
+ w === "ice-edge" && (g[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" && _.push(
7303
7404
  oe.get(g[w], {
7304
7405
  headers: {
7305
7406
  Authorization: this.token || this.defaultMeteoToken,
@@ -7310,13 +7411,13 @@ const Oi = {
7310
7411
  console.log(`[${w}] fetch layer error: ${A}`);
7311
7412
  })
7312
7413
  );
7313
- const z = await Promise.all(L);
7414
+ const z = await Promise.all(_);
7314
7415
  this.weatherLayers = {}, z.map((w) => {
7315
- var j, O, F, H;
7316
- const A = ((j = w == null ? void 0 : w.data) == null ? void 0 : j.data) || (w == null ? void 0 : w.data), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7317
- M && A && (this.weatherLayers[M] = {
7416
+ var O, N, F, X;
7417
+ const A = ((O = w == null ? void 0 : w.data) == null ? void 0 : O.data) || (w == null ? void 0 : w.data), j = (F = (N = w == null ? void 0 : w.config) == null ? void 0 : N.headers) == null ? void 0 : F.key;
7418
+ j && A && (this.weatherLayers[j] = {
7318
7419
  raw: A,
7319
- type: ((H = w == null ? void 0 : w.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
7420
+ type: ((X = w == null ? void 0 : w.config) == null ? void 0 : X.responseType) === "blob" ? "image" : "json",
7320
7421
  etime: this.ts
7321
7422
  });
7322
7423
  }), g.tropicals && oe.get(g.tropicals, {
@@ -7325,9 +7426,9 @@ const Oi = {
7325
7426
  key: "tropicals"
7326
7427
  }
7327
7428
  }).then((w) => {
7328
- var j, O, F;
7329
- const A = Oe.convert2Geojson(((j = w == null ? void 0 : w.data) == null ? void 0 : j.data) || (w == null ? void 0 : w.data)), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7330
- this.weatherLayers[M] = {
7429
+ var O, N, F;
7430
+ const A = Ne.convert2Geojson(((O = w == null ? void 0 : w.data) == null ? void 0 : O.data) || (w == null ? void 0 : w.data)), j = (F = (N = w == null ? void 0 : w.config) == null ? void 0 : N.headers) == null ? void 0 : F.key;
7431
+ this.weatherLayers[j] = {
7331
7432
  data: A,
7332
7433
  active: !0,
7333
7434
  cached: !1,
@@ -7338,20 +7439,20 @@ const Oi = {
7338
7439
  });
7339
7440
  }
7340
7441
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
7341
- const g = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, L = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
7442
+ const g = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
7342
7443
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
7343
7444
  type: "json",
7344
7445
  direction: g,
7345
- height: { raw: L },
7446
+ height: { raw: _ },
7346
7447
  etime: this.ts
7347
7448
  };
7348
7449
  }
7349
7450
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
7350
- const g = (c = this.weatherLayers["current-direction"]) == null ? void 0 : c.raw, L = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
7451
+ const g = (c = this.weatherLayers["current-direction"]) == null ? void 0 : c.raw, _ = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
7351
7452
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
7352
7453
  type: "json",
7353
7454
  direction: g,
7354
- speed: { raw: L },
7455
+ speed: { raw: _ },
7355
7456
  etime: this.ts
7356
7457
  };
7357
7458
  }
@@ -7376,20 +7477,20 @@ const Oi = {
7376
7477
  }
7377
7478
  });
7378
7479
  if (((e = l == null ? void 0 : l.data) == null ? void 0 : e.code) === 0) {
7379
- const h = (t = l == null ? void 0 : l.data) == null ? void 0 : t.data, d = [];
7380
- for (const p in h)
7381
- d.push(
7382
- oe.get(h[p], {
7480
+ const h = (t = l == null ? void 0 : l.data) == null ? void 0 : t.data, p = [];
7481
+ for (const d in h)
7482
+ p.push(
7483
+ oe.get(h[d], {
7383
7484
  headers: {
7384
7485
  Authorization: this.token || this.defaultMeteoToken,
7385
- key: p
7486
+ key: d
7386
7487
  }
7387
7488
  })
7388
7489
  );
7389
- const c = await Promise.all(d);
7390
- this.otherLayers = { enc: s }, c.map((p) => {
7490
+ const c = await Promise.all(p);
7491
+ this.otherLayers = { enc: s }, c.map((d) => {
7391
7492
  var b, y, u;
7392
- const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
7493
+ const f = ((b = d == null ? void 0 : d.data) == null ? void 0 : b.data) || (d == null ? void 0 : d.data), m = (u = (y = d == null ? void 0 : d.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
7393
7494
  this.otherLayers[m] = f;
7394
7495
  });
7395
7496
  }
@@ -7400,19 +7501,19 @@ const Oi = {
7400
7501
  }
7401
7502
  });
7402
7503
  if (((r = l == null ? void 0 : l.data) == null ? void 0 : r.code) === 0) {
7403
- const h = (i = l == null ? void 0 : l.data) == null ? void 0 : i.data, d = [];
7404
- for (const p in h)
7405
- d.push(
7406
- oe.get(h[p], {
7504
+ const h = (i = l == null ? void 0 : l.data) == null ? void 0 : i.data, p = [];
7505
+ for (const d in h)
7506
+ p.push(
7507
+ oe.get(h[d], {
7407
7508
  headers: {
7408
7509
  Authorization: this.token || this.defaultMeteoToken,
7409
- key: p
7510
+ key: d
7410
7511
  }
7411
7512
  })
7412
7513
  );
7413
- (await Promise.all(d)).map((p) => {
7514
+ (await Promise.all(p)).map((d) => {
7414
7515
  var b, y, u;
7415
- const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
7516
+ const f = ((b = d == null ? void 0 : d.data) == null ? void 0 : b.data) || (d == null ? void 0 : d.data), m = (u = (y = d == null ? void 0 : d.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
7416
7517
  this.otherLayers[m] = f;
7417
7518
  });
7418
7519
  }
@@ -7427,14 +7528,14 @@ const Oi = {
7427
7528
  handleRampColorState() {
7428
7529
  var a;
7429
7530
  if (this.showRampColor = !1, this.showWindParticle = !1, this.showCurrentParticle = !1, (a = this.particleFactor) != null && a.particle)
7430
- this.showRampColor = !0, this.showWindParticle = this.particleFactor.key === "wind", this.showCurrentParticle = this.particleFactor.key === "current", this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json");
7531
+ this.showRampColor = !0, this.particleFactor.key === "wind" && (this.showWindParticle = !0), this.particleFactor.key === "current" && (this.showCurrentParticle = !0);
7431
7532
  else
7432
7533
  for (const e of this.activeWeatherLayers)
7433
7534
  ["png", "jpg"].includes(e.type) && (this.showRampColor = !0);
7434
7535
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
7435
7536
  },
7436
7537
  handleRampColorInitial() {
7437
- var a, e, t, r, i, o, s, l, h, d, c, p;
7538
+ var a, e, t, r, i, o, s, l, h, p, c, d;
7438
7539
  this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
7439
7540
  type: "canvas",
7440
7541
  canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
@@ -7455,11 +7556,11 @@ const Oi = {
7455
7556
  canvas: (h = this.viewport) == null ? void 0 : h.particleCanvas,
7456
7557
  animate: !0,
7457
7558
  coordinates: this.viewport.getBoundLngLat()
7458
- }), this.viewport.map.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) || this.viewport.map.addLayer(
7559
+ }), this.viewport.map.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) || this.viewport.map.addLayer(
7459
7560
  {
7460
7561
  type: "raster",
7461
7562
  id: (c = this.viewport) == null ? void 0 : c.particleLayer,
7462
- source: (p = this.viewport) == null ? void 0 : p.particleSource,
7563
+ source: (d = this.viewport) == null ? void 0 : d.particleSource,
7463
7564
  layout: {
7464
7565
  visibility: "none"
7465
7566
  }
@@ -7468,10 +7569,10 @@ const Oi = {
7468
7569
  );
7469
7570
  },
7470
7571
  handleDragEndWithZoom4Json() {
7471
- var d, c, p, f;
7572
+ var p, c, d, f;
7472
7573
  const a = (/* @__PURE__ */ new Date()).valueOf();
7473
7574
  let e = 0, t = 0;
7474
- const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), o = D.convertToStdLng(r._sw.lng), s = D.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), h = Math.ceil(r._ne.lat);
7575
+ const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), o = W.convertToStdLng(r._sw.lng), s = W.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), h = Math.ceil(r._ne.lat);
7475
7576
  for (const m in this.weatherLayers)
7476
7577
  if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
7477
7578
  this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
@@ -7481,21 +7582,21 @@ const Oi = {
7481
7582
  for (const u in y)
7482
7583
  if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7483
7584
  const v = y[u].lng;
7484
- o > s ? v.forEach((g, L) => {
7585
+ o > s ? v.forEach((g, _) => {
7485
7586
  var z;
7486
7587
  if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7487
- const w = x.point([g, u], {
7488
- val: y[u].val[L],
7489
- spd: (z = y[u].spd) == null ? void 0 : z[L]
7588
+ const w = C.point([g, u], {
7589
+ val: y[u].val[_],
7590
+ spd: (z = y[u].spd) == null ? void 0 : z[_]
7490
7591
  });
7491
7592
  b.push(w);
7492
7593
  }
7493
- }) : v.forEach((g, L) => {
7594
+ }) : v.forEach((g, _) => {
7494
7595
  var z;
7495
7596
  if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7496
- const w = x.point([g, u], {
7497
- val: y[u].val[L],
7498
- spd: (z = y[u].spd) == null ? void 0 : z[L]
7597
+ const w = C.point([g, u], {
7598
+ val: y[u].val[_],
7599
+ spd: (z = y[u].spd) == null ? void 0 : z[_]
7499
7600
  });
7500
7601
  b.push(w);
7501
7602
  }
@@ -7506,15 +7607,15 @@ const Oi = {
7506
7607
  if (u) {
7507
7608
  if (!u.data) {
7508
7609
  const v = [];
7509
- for (const g in (p = u.raw) == null ? void 0 : p.LineString) {
7510
- const L = u.raw.LineString[g];
7511
- for (const z of L)
7610
+ for (const g in (d = u.raw) == null ? void 0 : d.LineString) {
7611
+ const _ = u.raw.LineString[g];
7612
+ for (const z of _)
7512
7613
  v.push(
7513
- x.lineString(z, {
7614
+ C.lineString(z, {
7514
7615
  val: Number(g)
7515
7616
  })
7516
7617
  );
7517
- u.data = x.featureCollection(v);
7618
+ u.data = C.featureCollection(v);
7518
7619
  }
7519
7620
  }
7520
7621
  if (u.data) {
@@ -7529,16 +7630,16 @@ const Oi = {
7529
7630
  if (u) {
7530
7631
  if (!u.data) {
7531
7632
  const g = [];
7532
- for (const L in (f = u.raw) == null ? void 0 : f.Polygon) {
7533
- const z = u.raw.Polygon[L];
7633
+ for (const _ in (f = u.raw) == null ? void 0 : f.Polygon) {
7634
+ const z = u.raw.Polygon[_];
7534
7635
  for (const w of z)
7535
7636
  g.push(
7536
- x.polygon(w, {
7537
- val: Number(L)
7637
+ C.polygon(w, {
7638
+ val: Number(_)
7538
7639
  })
7539
7640
  );
7540
7641
  }
7541
- u.data = x.featureCollection(g);
7642
+ u.data = C.featureCollection(g);
7542
7643
  }
7543
7644
  const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
7544
7645
  b = b.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
@@ -7549,19 +7650,19 @@ const Oi = {
7549
7650
  for (const u in y)
7550
7651
  if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7551
7652
  const v = y[u].lng;
7552
- o > s ? v.forEach((g, L) => {
7653
+ o > s ? v.forEach((g, _) => {
7553
7654
  if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7554
- const z = x.point([g, u], {
7555
- val: y[u].val[L],
7556
- spd: y[u].spd[L]
7655
+ const z = C.point([g, u], {
7656
+ val: y[u].val[_],
7657
+ spd: y[u].spd[_]
7557
7658
  });
7558
7659
  b.push(z);
7559
7660
  }
7560
- }) : v.forEach((g, L) => {
7661
+ }) : v.forEach((g, _) => {
7561
7662
  if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7562
- const z = x.point([g, u], {
7563
- val: y[u].val[L],
7564
- spd: y[u].spd[L]
7663
+ const z = C.point([g, u], {
7664
+ val: y[u].val[_],
7665
+ spd: y[u].spd[_]
7565
7666
  });
7566
7667
  b.push(z);
7567
7668
  }
@@ -7577,18 +7678,18 @@ const Oi = {
7577
7678
  const u = [];
7578
7679
  for (const v in y.Polygon) {
7579
7680
  const g = y.Polygon[v];
7580
- for (const L of g)
7681
+ for (const _ of g)
7581
7682
  u.push(
7582
- x.polygon(L, {
7683
+ C.polygon(_, {
7583
7684
  val: Number(v)
7584
7685
  })
7585
7686
  );
7586
7687
  }
7587
7688
  for (const v in y.Point) {
7588
7689
  const g = y.Point[v];
7589
- for (const L of g)
7690
+ for (const _ of g)
7590
7691
  u.push(
7591
- ...x.points(L, {
7692
+ ...C.points(_, {
7592
7693
  val: Number(v)
7593
7694
  }).features
7594
7695
  );
@@ -7606,19 +7707,19 @@ const Oi = {
7606
7707
  const u = [];
7607
7708
  for (const v in y.LineString) {
7608
7709
  const g = y.LineString[v];
7609
- for (const L of g)
7710
+ for (const _ of g)
7610
7711
  u.push(
7611
- x.lineString(L, {
7712
+ C.lineString(_, {
7612
7713
  val: Number(v)
7613
7714
  })
7614
7715
  );
7615
7716
  }
7616
7717
  for (const v in y.Point)
7617
- y.Point[v].lng.forEach((g, L) => {
7618
- g = D.convertToStdLng(g), u.push(
7619
- x.point([g, v], {
7620
- val: y.Point[v].val[L],
7621
- type: y.Point[v].type[L]
7718
+ y.Point[v].lng.forEach((g, _) => {
7719
+ g = W.convertToStdLng(g), u.push(
7720
+ C.point([g, v], {
7721
+ val: y.Point[v].val[_],
7722
+ type: y.Point[v].type[_]
7622
7723
  })
7623
7724
  );
7624
7725
  });
@@ -7635,9 +7736,9 @@ const Oi = {
7635
7736
  const u = [];
7636
7737
  for (const v in y.LineString) {
7637
7738
  const g = y.LineString[v];
7638
- for (const L of g)
7739
+ for (const _ of g)
7639
7740
  u.push(
7640
- x.lineString(L, {
7741
+ C.lineString(_, {
7641
7742
  val: Number(v)
7642
7743
  })
7643
7744
  );
@@ -7647,7 +7748,7 @@ const Oi = {
7647
7748
  }
7648
7749
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e);
7649
7750
  }
7650
- console.log(m, " elapsed: ", t, ", total: ", e += t), b.length && (this.weatherLayers[m].data = x.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7751
+ console.log(m, " elapsed: ", t, ", total: ", e += t), b.length && (this.weatherLayers[m].data = C.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7651
7752
  }
7652
7753
  },
7653
7754
  handleDragEndWithZoom4Image() {
@@ -7655,14 +7756,14 @@ const Oi = {
7655
7756
  this.weatherLayers[a].active && this.weatherLayers[a].type === "image" && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1);
7656
7757
  },
7657
7758
  handleBboxClip(a, e) {
7658
- const t = [], r = D.convertToStdLng(e._sw.lng), i = D.convertToStdLng(e._ne.lng);
7759
+ const t = [], r = W.convertToStdLng(e._sw.lng), i = W.convertToStdLng(e._ne.lng);
7659
7760
  return a.features.forEach((o) => {
7660
7761
  if (o.geometry.type !== "Point")
7661
7762
  if (r > i) {
7662
- let s = [r, e._sw.lat, 180, e._ne.lat], l = x.bboxClip(o, s);
7663
- l.geometry.coordinates.length && t.push(l), s = [-180, e._sw.lat, i, e._ne.lat], l = x.bboxClip(o, s), l.geometry.coordinates.length && t.push(l);
7763
+ let s = [r, e._sw.lat, 180, e._ne.lat], l = C.bboxClip(o, s);
7764
+ l.geometry.coordinates.length && t.push(l), s = [-180, e._sw.lat, i, e._ne.lat], l = C.bboxClip(o, s), l.geometry.coordinates.length && t.push(l);
7664
7765
  } else {
7665
- const s = [r, e._sw.lat, i, e._ne.lat], l = x.bboxClip(o, s);
7766
+ const s = [r, e._sw.lat, i, e._ne.lat], l = C.bboxClip(o, s);
7666
7767
  l.geometry.coordinates.length && t.push(l);
7667
7768
  }
7668
7769
  else
@@ -7680,18 +7781,14 @@ const Oi = {
7680
7781
  this.handleBeforeLayerToggle();
7681
7782
  },
7682
7783
  handleBeforeLayerToggle() {
7683
- var a, e, t, r, i, o, s, l, h, d, c, p, f;
7684
- (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (s = this.otherLayers) != null && s["time-zones"] || (l = this.otherLayers) != null && l.pirates || (h = this.otherLayers) != null && h.ports || (d = this.otherLayers) != null && d.enc || (c = this.otherLayers) != null && c["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7784
+ var a, e, t, r, i, o, s, l, h, p, c, d, f;
7785
+ (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (s = this.otherLayers) != null && s["time-zones"] || (l = this.otherLayers) != null && l.pirates || (h = this.otherLayers) != null && h.ports || (p = this.otherLayers) != null && p.enc || (c = this.otherLayers) != null && c["voluntary-reporting-area"] || (d = this.otherLayers) != null && d["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7685
7786
  },
7686
7787
  handleDateChange(a = { tropicals: !1 }) {
7687
7788
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
7688
7789
  },
7689
7790
  handleWeatherLayerChange(a, e) {
7690
- if (!this.map)
7691
- setTimeout(() => {
7692
- this.handleWeatherLayerChange(a, e);
7693
- }, 500);
7694
- else {
7791
+ this.showWindParticle = !1, this.showCurrentParticle = !1, this.map ? setTimeout(() => {
7695
7792
  this.activeWeatherLayers = a;
7696
7793
  const t = this.activeWeatherLayers.some(
7697
7794
  (o) => {
@@ -7700,11 +7797,13 @@ const Oi = {
7700
7797
  }
7701
7798
  ), r = this.activeWeatherLayers.some((o) => ["png", "jpg"].includes(o.type));
7702
7799
  t && !r ? (this.activeWeatherLayers.forEach((o) => {
7703
- ["wind", "current"].includes(o.key) && (this.particleFactor = o);
7800
+ o.key === "wind" && o.particle && (this.particleFactor = o, this.showWindParticle = !0), o.key === "current" && o.particle && (this.particleFactor = o, this.showCurrentParticle = !0);
7704
7801
  }), this.particleFactor.particle = !0) : r && this.particleFactor && (this.particleFactor.particle = !1);
7705
7802
  const i = a == null ? void 0 : a.reduce((o, s) => o + (o & (s == null ? void 0 : s.weight) ? 0 : s == null ? void 0 : s.weight), 0);
7706
7803
  this.weatherWeight !== i || this.source !== e ? (this.source = e, this.weatherWeight = i, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
7707
- }
7804
+ }, 100) : setTimeout(() => {
7805
+ this.handleWeatherLayerChange(a, e);
7806
+ }, 500);
7708
7807
  },
7709
7808
  handleOtherLayerChange(a) {
7710
7809
  if (!this.map)
@@ -7717,26 +7816,25 @@ const Oi = {
7717
7816
  }
7718
7817
  },
7719
7818
  async handlePointChange(a) {
7720
- const e = this.ts ? Z(this.ts) : Z(), t = {
7819
+ var i, o;
7820
+ const e = this.ts ? G(this.ts) : G(), t = {
7721
7821
  lat: a.lat,
7722
7822
  lng: a.lng,
7723
- ts: e.utc().format(),
7724
- wt: !0,
7725
- src: this.source
7726
- }, r = await oe.get(`${this.gateway}/api/arc/meteo/query`, {
7727
- params: t,
7823
+ datetime: e.utc().format(),
7824
+ forecastDays: 7
7825
+ }, r = await oe.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, t, {
7728
7826
  headers: {
7729
7827
  Authorization: this.token || this.defaultMeteoToken
7730
7828
  }
7731
7829
  });
7732
- (r == null ? void 0 : r.status) === 200 && (this.meteo = {
7733
- ...r == null ? void 0 : r.data,
7830
+ ((i = r == null ? void 0 : r.data) == null ? void 0 : i.code) === 0 && (this.meteo = {
7831
+ ...(o = r == null ? void 0 : r.data) == null ? void 0 : o.data,
7734
7832
  ...a
7735
7833
  });
7736
7834
  },
7737
7835
  handle3dToggle(a) {
7738
- var e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v, g, L, z;
7739
- a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((c = this.map) == null || c.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (f = this.map) != null && f.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) && ((g = this.map) != null && g.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((z = this.map) == null || z.moveLayer((L = this.viewport) == null ? void 0 : L.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7836
+ var e, t, r, i, o, s, l, h, p, c, d, f, m, b, y, u, v, g, _, z;
7837
+ a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((c = this.map) == null || c.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (f = this.map) != null && f.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) && ((g = this.map) != null && g.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((z = this.map) == null || z.moveLayer((_ = this.viewport) == null ? void 0 : _.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7740
7838
  },
7741
7839
  handleParticle(a) {
7742
7840
  this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.forEach((r) => {
@@ -7752,15 +7850,15 @@ const Oi = {
7752
7850
  this.$emit("toggleVersion", Math.random());
7753
7851
  }
7754
7852
  }
7755
- }, Fi = {
7853
+ }, pr = {
7756
7854
  key: 0,
7757
7855
  className: "map-gl-home"
7758
7856
  };
7759
- function $i(a, e, t, r, i, o) {
7760
- var te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, Te, Ae, De, Me, We, je, Be, Ne;
7761
- const s = P("IdmGlLayer"), l = P("IdmENC"), h = P("IdmSigWave"), d = P("IdmSwell"), c = P("IdmPrmsl"), p = P("IdmIceberg"), f = P("IdmTropicals"), m = P("IdmCurrents"), b = P("IdmCurrentParticle"), y = P("IdmWindBarb"), u = P("IdmWindParticle"), v = P("IdmPrecip3h"), g = P("IdmVisibility"), L = P("IdmWaterTemp"), z = P("IdmTemp"), w = P("IdmArctic"), A = P("IdmWarZone"), M = P("IdmGmdssArea"), j = P("IdmEcaZone"), O = P("IdmAlertZone"), F = P("IdmPort"), H = P("IdmLoadLine"), se = P("IdmTimezone"), ne = P("IdmVRA"), le = P("IdmSpecialArea"), ce = P("IdmTerminator"), he = P("IdmLatLng"), de = P("IdmMeasure"), pe = P("IdmPoint");
7762
- return t.map ? (_(), C("div", Fi, [
7763
- k(s, I({
7857
+ function mr(a, e, t, r, i, o) {
7858
+ var te, J, Y, me, q, I, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, _e, Ce, ke, Se, Pe, ze, Te, je;
7859
+ const s = P("IdmGlLayer"), l = P("IdmENC"), h = P("IdmSigWave"), p = P("IdmSwell"), c = P("IdmPrmsl"), d = P("IdmIceberg"), f = P("IdmTropicals"), m = P("IdmCurrents"), b = P("IdmCurrentParticle"), y = P("IdmWindBarb"), u = P("IdmWindParticle"), v = P("IdmPrecip3h"), g = P("IdmVisibility"), _ = P("IdmWaterTemp"), z = P("IdmTemp"), w = P("IdmArctic"), A = P("IdmWarZone"), j = P("IdmGmdssArea"), O = P("IdmEcaZone"), N = P("IdmAlertZone"), F = P("IdmPort"), X = P("IdmLoadLine"), se = P("IdmTimezone"), ne = P("IdmVRA"), le = P("IdmSpecialArea"), ce = P("IdmTerminator"), he = P("IdmLatLng"), de = P("IdmMeasure"), pe = P("IdmPoint");
7860
+ return t.map ? (L(), x("div", pr, [
7861
+ k(s, R({
7764
7862
  ref: "layer",
7765
7863
  map: t.map,
7766
7864
  "toggle-version": t.toggleVersion,
@@ -7772,70 +7870,74 @@ function $i(a, e, t, r, i, o) {
7772
7870
  }, a.$attrs, {
7773
7871
  onWeather: o.handleWeatherLayerChange,
7774
7872
  onOther: o.handleOtherLayerChange,
7775
- onCoordinate: e[0] || (e[0] = (J) => i.showCoord = J),
7776
- onMeasure: e[1] || (e[1] = (J) => i.showMeasure = J),
7777
- onPoint: e[2] || (e[2] = (J) => i.showPoint = J),
7873
+ onToggleWindParticle: e[0] || (e[0] = (V) => i.showWindParticle = V),
7874
+ onToggleWindFeather: e[1] || (e[1] = (V) => i.showWindFeather = V),
7875
+ onToggleCurrentParticle: e[2] || (e[2] = (V) => i.showCurrentParticle = V),
7876
+ onToggleCurrentIsoband: e[3] || (e[3] = (V) => i.showCurrentIsoband = V),
7877
+ onCoordinate: e[4] || (e[4] = (V) => i.showCoord = V),
7878
+ onMeasure: e[5] || (e[5] = (V) => i.showMeasure = V),
7879
+ onPoint: e[6] || (e[6] = (V) => i.showPoint = V),
7778
7880
  on3d: o.handle3dToggle,
7779
7881
  onHandleToggleVersion: o.handleToggleVersion
7780
7882
  }), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
7781
- k(l, I({
7883
+ k(l, R({
7782
7884
  map: t.map,
7783
7885
  token: t.token,
7784
7886
  enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
7785
7887
  "toggle-version": t.toggleVersion
7786
7888
  }, a.$attrs, {
7787
- onEnc: e[3] || (e[3] = (J) => i.enc = J)
7889
+ onEnc: e[7] || (e[7] = (V) => i.enc = V)
7788
7890
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7789
- k(h, I({
7891
+ k(h, R({
7790
7892
  map: t.map,
7791
- "sig-wave": (G = i.weatherLayers) == null ? void 0 : G["sig-wave-height"],
7893
+ "sig-wave": (J = i.weatherLayers) == null ? void 0 : J["sig-wave-height"],
7792
7894
  "before-layer": t.beforeLayer,
7793
7895
  activeWeatherLayers: i.activeWeatherLayers
7794
7896
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
7795
- k(d, I({
7897
+ k(p, R({
7796
7898
  map: t.map,
7797
7899
  swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
7798
7900
  "before-layer": t.beforeLayer,
7799
7901
  activeWeatherLayers: i.activeWeatherLayers
7800
7902
  }, a.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
7801
- k(c, I({
7903
+ k(c, R({
7802
7904
  map: t.map,
7803
7905
  prmsl: (me = i.weatherLayers) == null ? void 0 : me.prmsl,
7804
7906
  "before-layer": t.beforeLayer,
7805
7907
  "active-weather-layers": i.activeWeatherLayers
7806
7908
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7807
- k(p, I({
7909
+ k(d, R({
7808
7910
  map: t.map,
7809
7911
  iceberg: (q = i.weatherLayers) == null ? void 0 : q.iceberg,
7810
7912
  "before-layer": t.beforeLayer
7811
7913
  }, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7812
- k(f, I({
7914
+ k(f, R({
7813
7915
  map: t.map,
7814
7916
  date: t.ts,
7815
- tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
7917
+ tropicals: (I = i.weatherLayers) == null ? void 0 : I.tropicals,
7816
7918
  "before-layer": t.beforeLayer
7817
7919
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7818
- k(m, I({
7920
+ k(m, R({
7819
7921
  map: t.map,
7820
7922
  "map-projection": i.mapProjection,
7821
7923
  current: ($ = i.weatherLayers) == null ? void 0 : $.current,
7822
7924
  "before-layer": t.beforeLayer,
7823
- "show-particle": i.showCurrentParticle,
7925
+ showCurrentIsoband: i.showCurrentIsoband,
7926
+ showCurrentParticle: i.showCurrentParticle,
7824
7927
  "margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
7825
7928
  "toggle-version": t.toggleVersion,
7826
7929
  "weather-layers": i.weatherLayers
7827
7930
  }, a.$attrs, {
7828
- onShowCurrentIsoband: e[4] || (e[4] = (J) => i.showCurrentIsoband = J),
7829
7931
  onParticle: o.handleParticle,
7830
7932
  onHandleToggleVersion: o.handleToggleVersion
7831
- }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
7832
- k(b, I({
7933
+ }), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
7934
+ k(b, R({
7833
7935
  viewport: i.viewport,
7834
7936
  factor: (ue = i.weatherLayers) == null ? void 0 : ue["current-particle"],
7835
7937
  "before-layer": t.beforeLayer,
7836
7938
  "toggle-version": t.toggleVersion
7837
7939
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7838
- k(y, I({
7940
+ k(y, R({
7839
7941
  ref: "windBarb",
7840
7942
  map: t.map,
7841
7943
  "map-projection": i.mapProjection,
@@ -7843,127 +7945,127 @@ function $i(a, e, t, r, i, o) {
7843
7945
  current: (ye = i.weatherLayers) == null ? void 0 : ye.current,
7844
7946
  "before-layer": t.beforeLayer,
7845
7947
  "margin-bottom": i.showRampColor ? "56px" : "30px",
7846
- "show-particle": i.showWindParticle
7948
+ showWindFeather: i.showWindFeather,
7949
+ showWindParticle: i.showWindParticle
7847
7950
  }, a.$attrs, {
7848
7951
  "toggle-version": t.toggleVersion,
7849
7952
  "weather-layers": i.weatherLayers,
7850
- onParticle: o.handleParticle,
7851
- onShowWindFeather: e[5] || (e[5] = (J) => i.showWindFeather = J)
7852
- }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
7853
- k(u, I({
7953
+ onParticle: o.handleParticle
7954
+ }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
7955
+ k(u, R({
7854
7956
  viewport: i.viewport,
7855
7957
  factor: (ae = i.weatherLayers) == null ? void 0 : ae["wind-particle"],
7856
7958
  "before-layer": t.beforeLayer,
7857
7959
  "toggle-version": t.toggleVersion
7858
7960
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7859
- k(v, I({
7961
+ k(v, R({
7860
7962
  viewport: i.viewport,
7861
7963
  factor: (ie = i.weatherLayers) == null ? void 0 : ie.precip3h,
7862
7964
  "before-layer": t.beforeLayer,
7863
7965
  "toggle-version": t.toggleVersion
7864
7966
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7865
- k(g, I({
7967
+ k(g, R({
7866
7968
  viewport: i.viewport,
7867
7969
  factor: (re = i.weatherLayers) == null ? void 0 : re.visibility,
7868
7970
  "before-layer": t.beforeLayer,
7869
7971
  "toggle-version": t.toggleVersion
7870
7972
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7871
- k(L, I({
7973
+ k(_, R({
7872
7974
  viewport: i.viewport,
7873
7975
  factor: (be = i.weatherLayers) == null ? void 0 : be["water-temp"],
7874
7976
  "before-layer": t.beforeLayer,
7875
7977
  "toggle-version": t.toggleVersion
7876
7978
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7877
- k(z, I({
7979
+ k(z, R({
7878
7980
  viewport: i.viewport,
7879
7981
  factor: (ve = i.weatherLayers) == null ? void 0 : ve.temp,
7880
7982
  "before-layer": t.beforeLayer,
7881
7983
  "toggle-version": t.toggleVersion
7882
7984
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7883
- k(w, I({
7985
+ k(w, R({
7884
7986
  viewport: i.viewport,
7885
7987
  factor: (we = i.weatherLayers) == null ? void 0 : we.arctic,
7886
7988
  "before-layer": t.beforeLayer,
7887
7989
  "toggle-version": t.toggleVersion
7888
7990
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7889
- k(A, I({
7991
+ k(A, R({
7890
7992
  map: t.map,
7891
7993
  zone: (Le = i.otherLayers) == null ? void 0 : Le["war-zones"],
7892
7994
  "before-layer": t.beforeLayer
7893
7995
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7894
- k(M, I({
7996
+ k(j, R({
7895
7997
  map: t.map,
7896
7998
  area: (xe = i.otherLayers) == null ? void 0 : xe["gmdss-areas"],
7897
7999
  "before-layer": t.beforeLayer
7898
8000
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7899
- k(j, I({
8001
+ k(O, R({
7900
8002
  map: t.map,
7901
- zone: (Te = i.otherLayers) == null ? void 0 : Te["eca-zones"],
8003
+ zone: (_e = i.otherLayers) == null ? void 0 : _e["eca-zones"],
7902
8004
  "before-layer": t.beforeLayer
7903
8005
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7904
- k(O, I({
8006
+ k(N, R({
7905
8007
  map: t.map,
7906
- zone: (Ae = i.otherLayers) == null ? void 0 : Ae["alert-zones"],
8008
+ zone: (Ce = i.otherLayers) == null ? void 0 : Ce["alert-zones"],
7907
8009
  "before-layer": t.beforeLayer
7908
8010
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7909
- k(F, I({
8011
+ k(F, R({
7910
8012
  map: t.map,
7911
- port: (De = i.otherLayers) == null ? void 0 : De.ports,
8013
+ port: (ke = i.otherLayers) == null ? void 0 : ke.ports,
7912
8014
  "before-layer": t.beforeLayer
7913
8015
  }, a.$attrs), null, 16, ["map", "port", "before-layer"]),
7914
- k(H, I({
8016
+ k(X, R({
7915
8017
  map: t.map,
7916
- line: (Me = i.otherLayers) == null ? void 0 : Me["load-lines"],
8018
+ line: (Se = i.otherLayers) == null ? void 0 : Se["load-lines"],
7917
8019
  "before-layer": t.beforeLayer
7918
8020
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7919
- k(se, I({
8021
+ k(se, R({
7920
8022
  map: t.map,
7921
- zone: (We = i.otherLayers) == null ? void 0 : We["time-zones"],
8023
+ zone: (Pe = i.otherLayers) == null ? void 0 : Pe["time-zones"],
7922
8024
  "before-layer": t.beforeLayer
7923
8025
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7924
- k(ne, I({
8026
+ k(ne, R({
7925
8027
  map: t.map,
7926
- area: (je = i.otherLayers) == null ? void 0 : je["voluntary-reporting-area"],
8028
+ area: (ze = i.otherLayers) == null ? void 0 : ze["voluntary-reporting-area"],
7927
8029
  "before-layer": t.beforeLayer
7928
8030
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7929
- k(le, I({
8031
+ k(le, R({
7930
8032
  map: t.map,
7931
- area: (Be = i.otherLayers) == null ? void 0 : Be["special-area"],
8033
+ area: (Te = i.otherLayers) == null ? void 0 : Te["special-area"],
7932
8034
  "before-layer": t.beforeLayer
7933
8035
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7934
- k(ce, I({
8036
+ k(ce, R({
7935
8037
  map: t.map,
7936
- area: (Ne = i.otherLayers) == null ? void 0 : Ne["day-night"]
8038
+ area: (je = i.otherLayers) == null ? void 0 : je["day-night"]
7937
8039
  }, a.$attrs), null, 16, ["map", "area"]),
7938
- k(he, I({
8040
+ k(he, R({
7939
8041
  map: t.map,
7940
8042
  show: i.showCoord,
7941
8043
  "toggle-version": t.toggleVersion
7942
8044
  }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
7943
- k(de, I({
8045
+ k(de, R({
7944
8046
  map: t.map,
7945
8047
  show: i.showMeasure
7946
8048
  }, a.$attrs), null, 16, ["map", "show"]),
7947
- k(pe, I({
8049
+ k(pe, R({
7948
8050
  map: t.map,
7949
8051
  show: i.showPoint,
7950
8052
  meteo: i.meteo
7951
8053
  }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7952
- ])) : B("", !0);
8054
+ ])) : M("", !0);
7953
8055
  }
7954
- const Vi = /* @__PURE__ */ T(Oi, [["render", $i]]), qi = {
8056
+ const ur = /* @__PURE__ */ T(dr, [["render", mr]]), xr = {
7955
8057
  install(a) {
7956
- a.component("MapboxGL", Vi), a.component("TropicalGL", Fe), a.component("LatLngGL", $e);
8058
+ a.component("MapboxGL", ur), a.component("TropicalGL", Fe), a.component("LatLngGL", $e);
7957
8059
  }
7958
8060
  };
7959
8061
  export {
7960
8062
  $e as LatLngGL,
7961
- Vi as MapboxGL,
7962
- qi as MapboxGLPlugin,
7963
- wt as MapboxHelper,
7964
- V as ParticleSchema,
8063
+ ur as MapboxGL,
8064
+ xr as MapboxGLPlugin,
8065
+ Mt as MapboxHelper,
8066
+ U as ParticleSchema,
7965
8067
  Fe as TropicalGL,
7966
- Re as Viewport,
8068
+ Be as Viewport,
7967
8069
  fe as WebGL,
7968
- N as WebGLSchema
8070
+ B as WebGLSchema
7969
8071
  };