@idmwx/idmui-gl3 4.0.3 → 4.0.6

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,19 +1,19 @@
1
1
  var et = Object.defineProperty;
2
- var tt = (t, e, a) => e in t ? et(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
- var R = (t, e, a) => (tt(t, typeof e != "symbol" ? e + "" : e, a), a);
2
+ var tt = (a, e, t) => e in a ? et(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var R = (a, e, t) => (tt(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { LayerHelper as We, CompanyHelper as Ae, convertToStandardLng as Ie } from "@idmwx/idmwx-base";
5
- import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as F, normalizeClass as M, Fragment as Re, renderList as De, toDisplayString as S, createVNode as P, withCtx as at, createTextVNode as Xe, createCommentVNode as $, pushScopeId as G, popScopeId as H, withDirectives as Me, vShow as $e, createStaticVNode as it, mergeProps as I } from "vue";
5
+ import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as F, normalizeClass as M, Fragment as Re, renderList as De, toDisplayString as S, createVNode as P, withCtx as at, createTextVNode as Xe, createCommentVNode as $, pushScopeId as H, popScopeId as G, withDirectives as Me, vShow as $e, createStaticVNode as it, mergeProps as I } from "vue";
6
6
  import * as C from "@turf/turf";
7
7
  import rt from "@mapbox/sphericalmercator";
8
- import te from "moment";
8
+ import Z from "moment";
9
9
  import ne from "mapbox-gl";
10
- import { TropicalHelper as qe, LngLatHelper as j, LaneHelper as ee } from "@idm-plugin/geo";
10
+ import { TropicalHelper as qe, LngLatHelper as j, LaneHelper as te } from "@idm-plugin/geo";
11
11
  import se from "axios";
12
- const T = (t, e) => {
13
- const a = t.__vccOpts || t;
12
+ const T = (a, e) => {
13
+ const t = a.__vccOpts || a;
14
14
  for (const [r, i] of e)
15
- a[r] = i;
16
- return a;
15
+ t[r] = i;
16
+ return t;
17
17
  }, ot = {
18
18
  name: "IdmGlLayer",
19
19
  props: {
@@ -70,9 +70,9 @@ const T = (t, e) => {
70
70
  },
71
71
  computed: {
72
72
  computeLayerClass() {
73
- return function(t, e) {
74
- let a = "layer";
75
- return e.some((r) => r.key === t.key) && (a = "layer active"), (!t.enabled || this.rampColorLayers.includes(t.key) && this.mapProjection === "globe") && (a = "layer disabled"), a;
73
+ return function(a, e) {
74
+ let t = "layer";
75
+ return e.some((r) => r.key === a.key) && (t = "layer active"), (!a.enabled || this.rampColorLayers.includes(a.key) && this.mapProjection === "globe") && (t = "layer disabled"), t;
76
76
  };
77
77
  }
78
78
  },
@@ -80,56 +80,56 @@ const T = (t, e) => {
80
80
  showLayers: {
81
81
  handler() {
82
82
  this.$nextTick(() => {
83
- var t, e;
84
- this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("toggleVersion", Math.random()), this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
83
+ var a, e;
84
+ this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
85
85
  });
86
86
  }
87
87
  },
88
88
  toggleMenu: {
89
89
  handler() {
90
90
  this.$nextTick(() => {
91
- var t, e;
92
- this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("toggleVersion", Math.random()), this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
91
+ var a, e;
92
+ this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
93
93
  });
94
94
  }
95
95
  }
96
96
  },
97
97
  mounted() {
98
- const t = localStorage.getItem(this.version.k);
99
- this.version.v !== t && (localStorage.removeItem(this.weatherLayersCache), localStorage.setItem(this.version.k, this.version.v));
98
+ const a = localStorage.getItem(this.version.k);
99
+ this.version.v !== a && (localStorage.removeItem(this.weatherLayersCache), localStorage.setItem(this.version.k, this.version.v));
100
100
  let e = localStorage.getItem(this.autoActiveCache);
101
101
  this.autoActive = e !== "false", e = localStorage.getItem(this.weatherLayersCache);
102
- let a = JSON.parse(
102
+ let t = JSON.parse(
103
103
  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"}]'
104
104
  );
105
- this.weatherLayers = a, this.autoActive && (this.activeWeatherLayers = [...a]), e = localStorage.getItem(this.otherLayersCache), a = JSON.parse(
105
+ this.weatherLayers = t, this.autoActive && (this.activeWeatherLayers = [...t]), e = localStorage.getItem(this.otherLayersCache), t = JSON.parse(
106
106
  e || // '[{"weight":2048,"name":"ENC","key":"enc","enabled":true,"type":"json"},{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]',
107
107
  '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'
108
- ), this.otherLayers = a, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS", this.handleConfirm();
108
+ ), this.otherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS", this.handleConfirm();
109
109
  },
110
110
  methods: {
111
111
  handleConfirm() {
112
112
  this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source), this.$emit("other", this.otherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
113
113
  },
114
- handleWeatherLayerPick(t) {
115
- if (this.rampColorLayers.includes(t.key) && this.mapProjection === "globe")
114
+ handleWeatherLayerPick(a) {
115
+ if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
116
116
  return !1;
117
- this.weatherLayers.some((e) => e.key === t.key) ? (this.weatherLayers = this.weatherLayers.filter((e) => e.key !== t.key), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== t.key)) : this.weatherLayers.length < 12 && t.enabled && (["png", "jpg"].includes(t.type) && (this.weatherLayers = this.weatherLayers.filter((e) => e.type === "json"), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(t), this.activeWeatherLayers.push(t)), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
117
+ this.weatherLayers.some((e) => e.key === a.key) ? (this.weatherLayers = this.weatherLayers.filter((e) => e.key !== a.key), this.activeWeatherLayers = this.activeWeatherLayers.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.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(a), this.activeWeatherLayers.push(a)), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
118
118
  },
119
- handleActiveWeatherLayerPick(t) {
120
- if (this.rampColorLayers.includes(t.key) && this.mapProjection === "globe")
119
+ handleActiveWeatherLayerPick(a) {
120
+ if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
121
121
  return !1;
122
- if (this.activeWeatherLayers.some((e) => e.key === t.key))
123
- this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== t.key);
124
- else if (t.enabled) {
125
- this.activeWeatherLayers.push(t);
122
+ if (this.activeWeatherLayers.some((e) => e.key === a.key))
123
+ this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key);
124
+ else if (a.enabled) {
125
+ this.activeWeatherLayers.push(a);
126
126
  for (const e of this.weatherLayers)
127
- t.weight > e.weight && t.weight & e.weight && this.activeWeatherLayers.push(e);
127
+ a.weight > e.weight && a.weight & e.weight && this.activeWeatherLayers.push(e);
128
128
  }
129
129
  this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source);
130
130
  },
131
- handleOtherLayerPick(t) {
132
- this.otherLayers.some((e) => e.key === t.key) ? this.otherLayers = this.otherLayers.filter((e) => e.key !== t.key) : t.enabled && this.otherLayers.push(t), localStorage.setItem(this.otherLayersCache, JSON.stringify(this.otherLayers)), this.$emit("other", this.otherLayers);
131
+ handleOtherLayerPick(a) {
132
+ 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);
133
133
  },
134
134
  handleMenuToggle() {
135
135
  this.showLayers = !this.showLayers;
@@ -146,8 +146,8 @@ const T = (t, e) => {
146
146
  handle3DToggle() {
147
147
  this.show3d = !this.show3d, this.$emit("3d", this.show3d);
148
148
  },
149
- handleSourceToggle(t) {
150
- this.source = t, this.handleConfirm();
149
+ handleSourceToggle(a) {
150
+ this.source = a, this.handleConfirm();
151
151
  }
152
152
  }
153
153
  }, st = { class: "idm-gl3-layer" }, nt = { class: "bar-item layer-bars" }, lt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), ct = [
@@ -166,12 +166,12 @@ const T = (t, e) => {
166
166
  class: "layers-title",
167
167
  style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
168
168
  }, St = { style: { "font-size": "12px" } }, kt = { class: "layers-body" }, zt = ["onClick"], Pt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Tt = { class: "other-layers" }, Et = /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1), It = { class: "layers-body" }, Rt = ["onClick"], Dt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), At = { class: "source-layers" }, Mt = /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1), $t = { class: "layers-body model-box" };
169
- function Bt(t, e, a, r, i, o) {
169
+ function Bt(a, e, t, r, i, o) {
170
170
  const n = z("ElScrollbar");
171
171
  return L(), x("div", st, [
172
172
  l("div", {
173
173
  class: "menu-bar-box",
174
- style: F({ top: a.top + 10 + "px", right: i.right + "px" })
174
+ style: F({ top: t.top + 10 + "px", right: i.right + "px" })
175
175
  }, [
176
176
  l("div", nt, [
177
177
  l("div", {
@@ -182,7 +182,7 @@ function Bt(t, e, a, r, i, o) {
182
182
  ], 4),
183
183
  l("div", {
184
184
  class: "menu-bar-box",
185
- style: F({ top: a.top + 160 + "px", right: i.right + "px" })
185
+ style: F({ top: t.top + 160 + "px", right: i.right + "px" })
186
186
  }, [
187
187
  l("div", ht, [
188
188
  l("div", {
@@ -218,7 +218,7 @@ function Bt(t, e, a, r, i, o) {
218
218
  ], 4),
219
219
  l("div", {
220
220
  class: "available-layers flex-center",
221
- style: F({ top: a.top + "px", right: i.showLayers ? "0px" : "-240px" })
221
+ style: F({ top: t.top + "px", right: i.showLayers ? "0px" : "-240px" })
222
222
  }, [
223
223
  l("div", {
224
224
  class: "side-bar",
@@ -330,8 +330,8 @@ const Wt = {
330
330
  watch: {
331
331
  "wind.version": {
332
332
  handler() {
333
- var t;
334
- (t = this.wind) != null && t.active && this.showFeather ? this.handleRender() : this.handleClear();
333
+ var a;
334
+ (a = this.wind) != null && a.active && this.showFeather ? this.handleRender() : this.handleClear();
335
335
  },
336
336
  deep: !0
337
337
  },
@@ -349,22 +349,22 @@ const Wt = {
349
349
  },
350
350
  toggleVersion: {
351
351
  handler() {
352
- var t, e;
353
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
352
+ var a, e;
353
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
354
354
  },
355
355
  immediate: !0
356
356
  },
357
357
  "current.version": {
358
358
  handler() {
359
- var t, e, a;
360
- this.bottom = (t = this.current) != null && t.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((a = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : a.clientHeight) || 0) + 105;
359
+ var a, e, t;
360
+ this.bottom = (a = this.current) != null && a.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 105;
361
361
  },
362
362
  immediate: !0
363
363
  },
364
364
  weatherLayers: {
365
365
  handler() {
366
- var t, e, a;
367
- this.bottom = (t = this.current) != null && t.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((a = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : a.clientHeight) || 0) + 105;
366
+ var a, e, t;
367
+ this.bottom = (a = this.current) != null && a.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 105;
368
368
  },
369
369
  immediate: !0
370
370
  }
@@ -374,7 +374,7 @@ const Wt = {
374
374
  this.$emit("particle", { particle: !this.showParticle, key: "wind", weight: 1 });
375
375
  },
376
376
  handleRender() {
377
- var t, e, a, r;
377
+ var a, e, t, r;
378
378
  if (!this.map)
379
379
  setTimeout(() => {
380
380
  this.handleRender();
@@ -382,7 +382,7 @@ const Wt = {
382
382
  else if (this.wind) {
383
383
  const i = (/* @__PURE__ */ new Date()).valueOf();
384
384
  let o = 0, n = 0, s = this.empty;
385
- if ((t = this.wind) != null && t.active && (s = (e = this.wind) == null ? void 0 : e.data), (a = this.map) != null && a.getSource(this.source))
385
+ if ((a = this.wind) != null && a.active && (s = (e = this.wind) == null ? void 0 : e.data), (t = this.map) != null && t.getSource(this.source))
386
386
  (r = this.map) == null || r.getSource(this.source).setData(s), n = (/* @__PURE__ */ new Date()).valueOf() - (i + o), console.log("[wind] update elapsed: ", n, ", total: ", o += n);
387
387
  else {
388
388
  this.map.addSource(this.source, { type: "geojson", data: s });
@@ -432,14 +432,14 @@ const Wt = {
432
432
  if (!this.windBarbLoaded)
433
433
  this.handleRender();
434
434
  else
435
- for (const t of this.barbs ?? []) {
436
- const e = t < 10 ? `00${t}kts` : t < 100 ? `0${t}kts` : `${t}kts`;
435
+ for (const a of this.barbs ?? []) {
436
+ const e = a < 10 ? `00${a}kts` : a < 100 ? `0${a}kts` : `${a}kts`;
437
437
  this.map.getLayer(e) && this.map.setLayoutProperty(e, "visibility", this.showFeather ? "visible" : "none");
438
438
  }
439
439
  },
440
440
  handleClear() {
441
- for (const t of this.barbs ?? []) {
442
- const e = t < 10 ? `00${t}kts` : t < 100 ? `0${t}kts` : `${t}kts`;
441
+ for (const a of this.barbs ?? []) {
442
+ const e = a < 10 ? `00${a}kts` : a < 100 ? `0${a}kts` : `${a}kts`;
443
443
  this.map.getLayer(e) && this.map.removeLayer(e);
444
444
  }
445
445
  this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
@@ -458,24 +458,24 @@ const Wt = {
458
458
  key: 1,
459
459
  class: "iconfont"
460
460
  };
461
- function Gt(t, e, a, r, i, o) {
461
+ function Zt(a, e, t, r, i, o) {
462
462
  var n;
463
- return (n = a.wind) != null && n.active ? (L(), x("div", Ot, [
463
+ return (n = t.wind) != null && n.active ? (L(), x("div", Ot, [
464
464
  l("div", {
465
465
  class: "flex-center tool-bars",
466
466
  style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
467
467
  }, [
468
- a.mapProjection === "mercator" ? (L(), x("div", {
468
+ t.mapProjection === "mercator" ? (L(), x("div", {
469
469
  key: 0,
470
470
  class: "flex-start",
471
471
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
472
472
  }, [
473
- a.showParticle ? (L(), x("i", jt, "")) : (L(), x("i", Ft, "")),
473
+ t.showParticle ? (L(), x("i", jt, "")) : (L(), x("i", Ft, "")),
474
474
  l("span", {
475
- class: M(a.showParticle ? "active" : "")
475
+ class: M(t.showParticle ? "active" : "")
476
476
  }, "Wind Particles", 2)
477
477
  ])) : $("", !0),
478
- a.showParticle ? (L(), x("div", {
478
+ t.showParticle ? (L(), x("div", {
479
479
  key: 1,
480
480
  class: "flex-start",
481
481
  style: { "margin-left": "16px" },
@@ -489,7 +489,7 @@ function Gt(t, e, a, r, i, o) {
489
489
  ], 4)
490
490
  ])) : $("", !0);
491
491
  }
492
- const Ht = /* @__PURE__ */ T(Wt, [["render", Gt], ["__scopeId", "data-v-b6fb74d9"]]);
492
+ const Ht = /* @__PURE__ */ T(Wt, [["render", Zt], ["__scopeId", "data-v-b6fb74d9"]]);
493
493
  class Oe {
494
494
  constructor(e) {
495
495
  R(this, "map");
@@ -508,8 +508,8 @@ class Oe {
508
508
  * @param lng
509
509
  * @param n
510
510
  */
511
- convertNLng(e, a = 0) {
512
- return e > 180 ? this.convertNLng(e - 360, a + 1) : e < -180 ? this.convertNLng(e + 360, a + 1) : [e, a];
511
+ convertNLng(e, t = 0) {
512
+ return e > 180 ? this.convertNLng(e - 360, t + 1) : e < -180 ? this.convertNLng(e + 360, t + 1) : [e, t];
513
513
  }
514
514
  /**
515
515
  * [4326坐标]
@@ -535,28 +535,28 @@ class Oe {
535
535
  * @param [lb.x, lb.y, rt.x, rt.y]
536
536
  */
537
537
  getBoundPixel() {
538
- const e = this.map.getBounds(), a = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, d] = this.mercator.px([o, r[1]], a), [p, f] = this.mercator.px([s, i[1]], a), m = Math.round(this.mercator.size * Math.pow(2, a) * (n + c));
538
+ 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, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, d] = this.mercator.px([o, r[1]], t), [p, f] = this.mercator.px([s, i[1]], t), m = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
539
539
  return [p, f, h + m, d];
540
540
  }
541
541
  /**
542
542
  * [视窗边界像素宽度]
543
543
  */
544
544
  getBoundRange() {
545
- const e = this.map.getZoom() + 1, a = this.mercator.size * Math.pow(2, e), r = this.getBoundPixel();
546
- return [r[0] / a, r[2] / a, r[3] / a, r[1] / a];
545
+ const e = this.map.getZoom() + 1, t = this.mercator.size * Math.pow(2, e), r = this.getBoundPixel();
546
+ return [r[0] / t, r[2] / t, r[3] / t, r[1] / t];
547
547
  }
548
548
  /**
549
549
  * 获取视窗世界(多世界复本)
550
550
  * @param pixels
551
551
  * @param zoom
552
552
  */
553
- getWorldCopy(e, a) {
554
- const r = 2 ** a, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
553
+ getWorldCopy(e, t) {
554
+ const r = 2 ** t, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
555
555
  for (let d = s; d <= o; d++)
556
556
  for (let p = i; p <= n; p++)
557
557
  c.push([p, d]);
558
558
  return c.map((d) => {
559
- const p = 2 ** a * 256;
559
+ const p = 2 ** t * 256;
560
560
  return [d[0] * p, d[1] * p, p];
561
561
  });
562
562
  }
@@ -565,12 +565,12 @@ class Oe {
565
565
  e.setCoordinates(this.getBoundLngLat()), e = this.map.getSource(this.particleSource), e.setCoordinates(this.getBoundLngLat()), this.rampColorCanvas.width = this.map._canvas.clientWidth, this.rampColorCanvas.height = this.map._canvas.clientHeight, this.particleCanvas.width = this.map._canvas.clientWidth, this.particleCanvas.height = this.map._canvas.clientHeight;
566
566
  }
567
567
  toggle(e) {
568
- const a = this.map.getLayoutProperty(this.rampColorLayer, "visibility"), r = e ? "visible" : "none";
569
- a !== r && this.map.setLayoutProperty(this.rampColorLayer, "visibility", r);
568
+ const t = this.map.getLayoutProperty(this.rampColorLayer, "visibility"), r = e ? "visible" : "none";
569
+ t !== r && this.map.setLayoutProperty(this.rampColorLayer, "visibility", r);
570
570
  }
571
571
  toggleParticle(e) {
572
- const a = this.map.getLayoutProperty(this.particleLayer, "visibility"), r = e ? "visible" : "none";
573
- a !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
572
+ const t = this.map.getLayoutProperty(this.particleLayer, "visibility"), r = e ? "visible" : "none";
573
+ t !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
574
574
  }
575
575
  }
576
576
  class we {
@@ -581,8 +581,8 @@ class we {
581
581
  * @param type [VERTEX_SHADER, FRAGMENT_SHADER]
582
582
  * @param schema 着色器渲染代码[GLSL]
583
583
  */
584
- createShader(e, a, r) {
585
- const i = e.createShader(a);
584
+ createShader(e, t, r) {
585
+ const i = e.createShader(t);
586
586
  if (i && (e.shaderSource(i, r), e.compileShader(i), !e.getShaderParameter(i, e.COMPILE_STATUS)))
587
587
  throw new Error(e.getShaderInfoLog(i) || "error happened while create shader...");
588
588
  return i;
@@ -598,9 +598,9 @@ class we {
598
598
  * @param width??
599
599
  * @param height??
600
600
  */
601
- createTexture(e, a, r, i, o, n, s) {
601
+ createTexture(e, t, r, i, o, n, s) {
602
602
  const c = e.createTexture();
603
- return e.bindTexture(e.TEXTURE_2D, c), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, a), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, r), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, i), o instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, n, s, 0, e.RGBA, e.UNSIGNED_BYTE, o) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, o), e.bindTexture(e.TEXTURE_2D, null), c;
603
+ return e.bindTexture(e.TEXTURE_2D, c), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, t), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, r), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, i), o instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, n, s, 0, e.RGBA, e.UNSIGNED_BYTE, o) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, o), e.bindTexture(e.TEXTURE_2D, null), c;
604
604
  }
605
605
  /**
606
606
  * 创建数据资源
@@ -609,10 +609,10 @@ class we {
609
609
  * element: ELEMENT_ARRAY_BUFFER
610
610
  * @param resource 顶点数据
611
611
  */
612
- createDataBuffer(e, a, r) {
612
+ createDataBuffer(e, t, r) {
613
613
  if (e) {
614
614
  const i = e.createBuffer();
615
- return a === "array" ? (e.bindBuffer(e.ARRAY_BUFFER, i), r && e.bufferData(e.ARRAY_BUFFER, r, e.STATIC_DRAW)) : a === "element" && (e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, i), r && e.bufferData(e.ELEMENT_ARRAY_BUFFER, r, e.STATIC_DRAW)), i;
615
+ return t === "array" ? (e.bindBuffer(e.ARRAY_BUFFER, i), r && e.bufferData(e.ARRAY_BUFFER, r, e.STATIC_DRAW)) : t === "element" && (e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, i), r && e.bufferData(e.ELEMENT_ARRAY_BUFFER, r, e.STATIC_DRAW)), i;
616
616
  }
617
617
  return null;
618
618
  }
@@ -622,8 +622,8 @@ class we {
622
622
  * @param vertexSchema
623
623
  * @param fragmentSchema
624
624
  */
625
- createProgram(e, a, r) {
626
- const i = e.createProgram(), o = this.createShader(e, e.VERTEX_SHADER, a), n = this.createShader(e, e.FRAGMENT_SHADER, r);
625
+ createProgram(e, t, r) {
626
+ const i = e.createProgram(), o = this.createShader(e, e.VERTEX_SHADER, t), n = this.createShader(e, e.FRAGMENT_SHADER, r);
627
627
  if (i && o && n && (e.attachShader(i, o), e.attachShader(i, n), e.linkProgram(i), !e.getProgramParameter(i, e.LINK_STATUS)))
628
628
  throw new Error(e.getProgramInfoLog(i) || "error happened while creating ramp color program");
629
629
  return i;
@@ -634,8 +634,8 @@ class we {
634
634
  * @param vertexSchema
635
635
  * @param fragmentSchema
636
636
  */
637
- createProgramWrapper(e, a, r) {
638
- const i = this.createProgram(e, a, r);
637
+ createProgramWrapper(e, t, r) {
638
+ const i = this.createProgram(e, t, r);
639
639
  if (i) {
640
640
  const o = { program: i }, n = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
641
641
  for (let c = 0; c < n; c++) {
@@ -654,13 +654,13 @@ class we {
654
654
  * 初始化渐变色纹理
655
655
  * @param colors
656
656
  */
657
- setup(e, a, r = !1, i, o) {
657
+ setup(e, t, r = !1, i, o) {
658
658
  const n = document.createElement("canvas");
659
659
  n.width = 256, n.height = 1;
660
660
  const s = n.getContext("2d");
661
661
  if (s && e) {
662
662
  const c = s == null ? void 0 : s.createLinearGradient(0, 0, 256, 0);
663
- return a.forEach(([h, d]) => {
663
+ return t.forEach(([h, d]) => {
664
664
  c.addColorStop(h, d);
665
665
  }), s.fillStyle = c, s.fillRect(0, 0, 256, 1), {
666
666
  canvas: n,
@@ -676,8 +676,8 @@ class we {
676
676
  };
677
677
  }
678
678
  }
679
- setupParticle(e, a = 1e3) {
680
- const r = Math.ceil(Math.sqrt(a)), i = r * r, o = new Uint8Array(i * 4);
679
+ setupParticle(e, t = 1e3) {
680
+ const r = Math.ceil(Math.sqrt(t)), i = r * r, o = new Uint8Array(i * 4);
681
681
  for (let d = 0; d < o.length; d++)
682
682
  o[d] = Math.floor(Math.random() * 256);
683
683
  const n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), c = new Float32Array(i);
@@ -686,8 +686,8 @@ class we {
686
686
  const h = this.createDataBuffer(e, "array", c);
687
687
  return { resolution: r, total: i, texture0: n, texture1: s, indexBuffer: h };
688
688
  }
689
- bind(e, a, r) {
690
- const i = this.createProgram(e, a, r);
689
+ bind(e, t, r) {
690
+ const i = this.createProgram(e, t, r);
691
691
  if (i) {
692
692
  const o = this.createDataBuffer(e, "array", void 0), n = e.getAttribLocation(i, "a_position");
693
693
  e.enableVertexAttribArray(n), e.vertexAttribPointer(n, 2, e.FLOAT, !1, 0, 0);
@@ -698,68 +698,68 @@ class we {
698
698
  }
699
699
  return {};
700
700
  }
701
- bindParticle(e, a, r, i, o, n) {
702
- const s = this.createProgramWrapper(e, a, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
701
+ bindParticle(e, t, r, i, o, n) {
702
+ const s = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
703
703
  return { particle: s, screen: c, update: h, quadBuffer: d, frameBuffer: p };
704
704
  }
705
- draw(e, a, r, i, o, n, s) {
705
+ draw(e, t, r, i, o, n, s) {
706
706
  var c, h;
707
- if (a && r) {
708
- e.resize(), a == null || a.viewport(0, 0, (c = a == null ? void 0 : a.canvas) == null ? void 0 : c.width, (h = a == null ? void 0 : a.canvas) == null ? void 0 : h.height), a.clearColor(0, 0, 0, 0), a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT);
707
+ if (t && r) {
708
+ e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
709
709
  try {
710
- const d = a.getUniformLocation(r, "u_resolution"), p = a.getUniformLocation(r, "u_image"), f = a.getUniformLocation(r, "u_color");
711
- if (a.useProgram(r), a.uniform2f(d, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), a.uniform1i(p, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), a.uniform1i(f, 1), s != null && s.uvRange && (s != null && s.sRange)) {
712
- const u = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
713
- a.uniform2f(u, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
710
+ const d = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), f = t.getUniformLocation(r, "u_color");
711
+ if (t.useProgram(r), t.uniform2f(d, 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), s != null && s.uvRange && (s != null && s.sRange)) {
712
+ const u = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
713
+ t.uniform2f(u, s.uvRange[0], s.uvRange[1]), t.uniform2f(v, s.sRange[0], s.sRange[1]);
714
714
  }
715
715
  const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
716
716
  for (const u of y) {
717
717
  const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, w = u[2] * e.ratio, [k, _, D, A] = [v, w + v, g, w + g], B = new Float32Array([k, D, _, D, k, A, k, A, _, D, _, A]);
718
- a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER, B, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
718
+ t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, B, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
719
719
  }
720
720
  } catch (d) {
721
721
  console.log(`render failed...${d}`);
722
722
  }
723
723
  }
724
724
  }
725
- drawParticle(e, a, r, i, o) {
725
+ drawParticle(e, t, r, i, o) {
726
726
  var n, s;
727
- a && (a == null || a.viewport(0, 0, (n = a == null ? void 0 : a.canvas) == null ? void 0 : n.width, (s = a == null ? void 0 : a.canvas) == null ? void 0 : s.height), a.disable(a.DEPTH_TEST), a.disable(a.STENCIL_TEST), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, r), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, i.texture0), this.renderScreen(e, a, i, o), this.updateParticles(e, a, i, o));
727
+ t && (t == null || t.viewport(0, 0, (n = t == null ? void 0 : t.canvas) == null ? void 0 : n.width, (s = t == null ? void 0 : t.canvas) == null ? void 0 : s.height), t.disable(t.DEPTH_TEST), t.disable(t.STENCIL_TEST), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, r), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, i.texture0), this.renderScreen(e, t, i, o), this.updateParticles(e, t, i, o));
728
728
  }
729
- renderScreen(e, a, r, i) {
730
- a.bindFramebuffer(a.FRAMEBUFFER, r.frameBuffer), a.framebufferTexture2D(a.FRAMEBUFFER, a.COLOR_ATTACHMENT0, a.TEXTURE_2D, r.screenTexture, 0), a.viewport(0, 0, a.canvas.width, a.canvas.height), this.renderScreenTexture(a, r.backgroundTexture, r.screen, r.quadBuffer, 0.95), this.renderParticles(e, a, r, i), a.bindFramebuffer(a.FRAMEBUFFER, null), this.renderScreenTexture(a, r.screenTexture, r.screen, r.quadBuffer, 1);
729
+ renderScreen(e, t, r, i) {
730
+ t.bindFramebuffer(t.FRAMEBUFFER, r.frameBuffer), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r.screenTexture, 0), t.viewport(0, 0, t.canvas.width, t.canvas.height), this.renderScreenTexture(t, r.backgroundTexture, r.screen, r.quadBuffer, 0.95), this.renderParticles(e, t, r, i), t.bindFramebuffer(t.FRAMEBUFFER, null), this.renderScreenTexture(t, r.screenTexture, r.screen, r.quadBuffer, 1);
731
731
  const o = r.backgroundTexture;
732
732
  r.backgroundTexture = r.screenTexture, r.screenTexture = o;
733
733
  }
734
- renderScreenTexture(e, a, r, i, o) {
735
- e && (e.useProgram(r.program), e.bindBuffer(e.ARRAY_BUFFER, i), e.enableVertexAttribArray(r.a_pos), e.vertexAttribPointer(r.a_pos, 2, e.FLOAT, !1, 0, 0), e.activeTexture(e.TEXTURE2), e.bindTexture(e.TEXTURE_2D, a), e.uniform1i(r.u_screen, 2), e.uniform1f(r.u_opacity, o), e.drawArrays(e.TRIANGLES, 0, 6));
734
+ renderScreenTexture(e, t, r, i, o) {
735
+ e && (e.useProgram(r.program), e.bindBuffer(e.ARRAY_BUFFER, i), e.enableVertexAttribArray(r.a_pos), e.vertexAttribPointer(r.a_pos, 2, e.FLOAT, !1, 0, 0), e.activeTexture(e.TEXTURE2), e.bindTexture(e.TEXTURE_2D, t), e.uniform1i(r.u_screen, 2), e.uniform1f(r.u_opacity, o), e.drawArrays(e.TRIANGLES, 0, 6));
736
736
  }
737
- renderParticles(e, a, r, i) {
738
- if (a) {
739
- a.useProgram(r.particle.program), a.bindBuffer(a.ARRAY_BUFFER, r.indexBuffer), a.enableVertexAttribArray(r.particle.a_index), a.vertexAttribPointer(r.particle.a_index, 1, a.FLOAT, !1, 0, 0), a.activeTexture(a.TEXTURE2), a.bindTexture(a.TEXTURE_2D, r.color.texture), a.uniform1i(r.particle.u_factor, 0), a.uniform1i(r.particle.u_particles, 1), a.uniform1i(r.particle.u_color_ramp, 2), a.uniform1f(r.particle.u_particles_resolution, r.resolution * e.ratio), a.uniform1f(r.particle.u_point, e.ratio);
737
+ renderParticles(e, t, r, i) {
738
+ if (t) {
739
+ t.useProgram(r.particle.program), t.bindBuffer(t.ARRAY_BUFFER, r.indexBuffer), t.enableVertexAttribArray(r.particle.a_index), t.vertexAttribPointer(r.particle.a_index, 1, t.FLOAT, !1, 0, 0), t.activeTexture(t.TEXTURE2), t.bindTexture(t.TEXTURE_2D, r.color.texture), t.uniform1i(r.particle.u_factor, 0), t.uniform1i(r.particle.u_particles, 1), t.uniform1i(r.particle.u_color_ramp, 2), t.uniform1f(r.particle.u_particles_resolution, r.resolution * e.ratio), t.uniform1f(r.particle.u_point, e.ratio);
740
740
  const o = e.getBoundRange();
741
- a.uniform4f(r.particle.u_viewport, o[0], o[1], o[2], o[3]), a.uniform2f(r.particle.u_factor_min, i.uvRange[0], i.uvRange[0]), a.uniform2f(r.particle.u_factor_max, i.uvRange[1], i.uvRange[1]), a.drawArrays(a.POINTS, 0, r.total);
741
+ t.uniform4f(r.particle.u_viewport, o[0], o[1], o[2], o[3]), t.uniform2f(r.particle.u_factor_min, i.uvRange[0], i.uvRange[0]), t.uniform2f(r.particle.u_factor_max, i.uvRange[1], i.uvRange[1]), t.drawArrays(t.POINTS, 0, r.total);
742
742
  }
743
743
  }
744
- updateParticles(e, a, r, i) {
744
+ updateParticles(e, t, r, i) {
745
745
  var n, s;
746
- if (a) {
747
- a.bindFramebuffer(a.FRAMEBUFFER, r.frameBuffer), a.framebufferTexture2D(a.FRAMEBUFFER, a.COLOR_ATTACHMENT0, a.TEXTURE_2D, r.texture1, 0), a.viewport(0, 0, r.resolution, r.resolution), a.useProgram(r.update.program), a.bindBuffer(a.ARRAY_BUFFER, r.quadBuffer), a.enableVertexAttribArray(r.update.a_pos), a.vertexAttribPointer(r.update.a_pos, 2, a.FLOAT, !1, 0, 0), a.uniform1i(r.update.u_factor, 0), a.uniform1i(r.update.u_particles, 1);
746
+ if (t) {
747
+ t.bindFramebuffer(t.FRAMEBUFFER, r.frameBuffer), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r.texture1, 0), t.viewport(0, 0, r.resolution, r.resolution), t.useProgram(r.update.program), t.bindBuffer(t.ARRAY_BUFFER, r.quadBuffer), t.enableVertexAttribArray(r.update.a_pos), t.vertexAttribPointer(r.update.a_pos, 2, t.FLOAT, !1, 0, 0), t.uniform1i(r.update.u_factor, 0), t.uniform1i(r.update.u_particles, 1);
748
748
  const c = e.getBoundRange();
749
- a.uniform4f(r.update.u_viewport, c[0], c[1], c[2], c[3]), a.uniform1f(r.update.u_rand_seed, Math.random()), a.uniform2f(r.update.u_factor_res, (n = r == null ? void 0 : r.image) == null ? void 0 : n.width, (s = r == null ? void 0 : r.image) == null ? void 0 : s.height), a.uniform2f(r.update.u_factor_min, i.uvRange[0], i.uvRange[0]), a.uniform2f(r.update.u_factor_max, i.uvRange[1], i.uvRange[1]), a.uniform1f(r.update.u_speed_factor, i.speedFactor * e.ratio), a.uniform1f(r.update.u_drop_rate, i.dropRate), a.uniform1f(r.update.u_drop_rate_bump, i.dropRateBump), a.drawArrays(a.TRIANGLES, 0, 6);
749
+ t.uniform4f(r.update.u_viewport, c[0], c[1], c[2], c[3]), t.uniform1f(r.update.u_rand_seed, Math.random()), t.uniform2f(r.update.u_factor_res, (n = r == null ? void 0 : r.image) == null ? void 0 : n.width, (s = r == null ? void 0 : r.image) == null ? void 0 : s.height), t.uniform2f(r.update.u_factor_min, i.uvRange[0], i.uvRange[0]), t.uniform2f(r.update.u_factor_max, i.uvRange[1], i.uvRange[1]), t.uniform1f(r.update.u_speed_factor, i.speedFactor * e.ratio), t.uniform1f(r.update.u_drop_rate, i.dropRate), t.uniform1f(r.update.u_drop_rate_bump, i.dropRateBump), t.drawArrays(t.TRIANGLES, 0, 6);
750
750
  }
751
751
  const o = r.texture0;
752
752
  r.texture0 = r.texture1, r.texture1 = o;
753
753
  }
754
- resize(e, a) {
754
+ resize(e, t) {
755
755
  e.resize();
756
- const r = new Uint8Array(a.canvas.width * a.canvas.height * 4).fill(0, 0, a.canvas.width * a.canvas.height * 4), i = this.createTexture(a, a.NEAREST, a.NEAREST, a.CLAMP_TO_EDGE, r, a.canvas.width, a.canvas.height), o = this.createTexture(a, a.NEAREST, a.NEAREST, a.CLAMP_TO_EDGE, r, a.canvas.width, a.canvas.height);
756
+ const r = new Uint8Array(t.canvas.width * t.canvas.height * 4).fill(0, 0, t.canvas.width * t.canvas.height * 4), i = this.createTexture(t, t.NEAREST, t.NEAREST, t.CLAMP_TO_EDGE, r, t.canvas.width, t.canvas.height), o = this.createTexture(t, t.NEAREST, t.NEAREST, t.CLAMP_TO_EDGE, r, t.canvas.width, t.canvas.height);
757
757
  return { screenTexture: i, backgroundTexture: o };
758
758
  }
759
759
  async loadImg(e) {
760
- return new Promise((a) => {
760
+ return new Promise((t) => {
761
761
  const r = new Blob([e], { type: e.type }), i = URL.createObjectURL(r), o = new Image();
762
- o.crossOrigin = "anonymous", o.src = i, o.onload = () => a(o);
762
+ o.crossOrigin = "anonymous", o.src = i, o.onload = () => t(o);
763
763
  });
764
764
  }
765
765
  }
@@ -960,7 +960,7 @@ R(U, "vertexSchema", `
960
960
  fract(pos * 255.0),
961
961
  floor(pos * 255.0) / 255.0);
962
962
  }`);
963
- class Zt {
963
+ class Gt {
964
964
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
965
965
  R(this, "token");
966
966
  R(this, "mapboxCustomer");
@@ -2616,15 +2616,15 @@ const Jt = {
2616
2616
  watch: {
2617
2617
  "factor.version": {
2618
2618
  handler() {
2619
- var t;
2620
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
2619
+ var a;
2620
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
2621
2621
  },
2622
2622
  deep: !0
2623
2623
  },
2624
2624
  toggleVersion: {
2625
2625
  handler() {
2626
- var t, e;
2627
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2626
+ var a, e;
2627
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2628
2628
  },
2629
2629
  immediate: !0
2630
2630
  }
@@ -2636,19 +2636,19 @@ const Jt = {
2636
2636
  this.handleRender();
2637
2637
  }, 500);
2638
2638
  else if (this.factor) {
2639
- const t = (/* @__PURE__ */ new Date()).valueOf();
2640
- let e = 0, a = 0;
2641
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[wind-particle] add elapsed: ", a, ", total: ", e += a);
2639
+ const a = (/* @__PURE__ */ new Date()).valueOf();
2640
+ let e = 0, t = 0;
2641
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[wind-particle] add elapsed: ", t, ", total: ", e += t);
2642
2642
  }
2643
2643
  },
2644
2644
  handleClear() {
2645
- var t, e, a, r, i, o, n, s;
2646
- (t = this.viewport) == null || t.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (a = this.viewport) == null ? void 0 : a.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (s = (n = this.viewport) == null ? void 0 : n.map) == null || s.off("moveend", this.handlePlay), this.handlePause();
2645
+ var a, e, t, r, i, o, n, s;
2646
+ (a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (s = (n = this.viewport) == null ? void 0 : n.map) == null || s.off("moveend", this.handlePlay), this.handlePause();
2647
2647
  },
2648
2648
  handleSetup() {
2649
2649
  if (!this.context) {
2650
2650
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
2651
- const t = [
2651
+ const a = [
2652
2652
  [0, "rgb(98, 113, 184, 0.8)"],
2653
2653
  // 0
2654
2654
  [12 / 255, "rgb(98, 113, 184)"],
@@ -2677,16 +2677,16 @@ const Jt = {
2677
2677
  // 30m/s
2678
2678
  [1, "rgb(91, 136, 161)"]
2679
2679
  ];
2680
- this.rampColor = this.webgl.setup(this.context, t);
2681
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
2682
- this.program = e, this.aPositionBuffer = a;
2680
+ this.rampColor = this.webgl.setup(this.context, a);
2681
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
2682
+ this.program = e, this.aPositionBuffer = t;
2683
2683
  }
2684
2684
  this.handleParticleSetup();
2685
2685
  },
2686
2686
  handleParticleSetup() {
2687
2687
  if (!this.particleContext) {
2688
2688
  this.particleContext = this.viewport.particleCanvas.getContext("webgl");
2689
- const t = [
2689
+ const a = [
2690
2690
  [0, "rgb(183,224,224)"],
2691
2691
  [1, "rgb(217,220,220)"]
2692
2692
  ];
@@ -2697,20 +2697,20 @@ const Jt = {
2697
2697
  U.quadVertSchema,
2698
2698
  U.screenFragmentSchema,
2699
2699
  U.updateFragmentSchema
2700
- ), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
2700
+ ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
2701
2701
  }
2702
2702
  },
2703
2703
  async handleDraw() {
2704
2704
  if (this.handleSetup(), this.etime !== this.factor.etime) {
2705
2705
  this.etime = this.factor.etime;
2706
- const t = await this.webgl.loadImg(this.factor.raw);
2707
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t), this.particleTexture = this.webgl.createTexture(
2706
+ const a = await this.webgl.loadImg(this.factor.raw);
2707
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a), this.particleTexture = this.webgl.createTexture(
2708
2708
  this.particleContext,
2709
2709
  this.particleContext.NEAREST,
2710
2710
  this.particleContext.LINEAR,
2711
2711
  this.particleContext.CLAMP_TO_EDGE,
2712
- t
2713
- ), this.wrapper.image = t;
2712
+ a
2713
+ ), this.wrapper.image = a;
2714
2714
  }
2715
2715
  this.initial && (this.initial = !1, this.handlePlay()), this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer, this.particleOptions), this.viewport.toggle(!0);
2716
2716
  },
@@ -2726,7 +2726,7 @@ const Jt = {
2726
2726
  });
2727
2727
  }
2728
2728
  }
2729
- }, le = (t) => (G("data-v-41a686d0"), t = t(), H(), t), Xt = { key: 0 }, qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), Yt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), Qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), Kt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), ea = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), ta = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), aa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), ia = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ra = [
2729
+ }, le = (a) => (H("data-v-41a686d0"), a = a(), G(), a), Xt = { key: 0 }, qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), Yt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), Qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), Kt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), ea = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), ta = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), aa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), ia = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ra = [
2730
2730
  qt,
2731
2731
  Yt,
2732
2732
  Qt,
@@ -2736,12 +2736,12 @@ const Jt = {
2736
2736
  aa,
2737
2737
  ia
2738
2738
  ];
2739
- function oa(t, e, a, r, i, o) {
2739
+ function oa(a, e, t, r, i, o) {
2740
2740
  var n;
2741
- return (n = a.factor) != null && n.active ? (L(), x("div", Xt, [
2741
+ return (n = t.factor) != null && n.active ? (L(), x("div", Xt, [
2742
2742
  l("div", {
2743
2743
  class: "legend-bars flex-center",
2744
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
2744
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2745
2745
  }, ra, 4)
2746
2746
  ])) : $("", !0);
2747
2747
  }
@@ -2792,8 +2792,8 @@ const na = {
2792
2792
  watch: {
2793
2793
  "current.version": {
2794
2794
  handler() {
2795
- var t;
2796
- (t = this.current) != null && t.active ? this.handleRender() : this.handleClear();
2795
+ var a;
2796
+ (a = this.current) != null && a.active ? this.handleRender() : this.handleClear();
2797
2797
  },
2798
2798
  deep: !0
2799
2799
  },
@@ -2811,15 +2811,15 @@ const na = {
2811
2811
  },
2812
2812
  toggleVersion: {
2813
2813
  handler() {
2814
- var t, e;
2815
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2814
+ var a, e;
2815
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2816
2816
  },
2817
2817
  immediate: !0
2818
2818
  },
2819
2819
  weatherLayers: {
2820
2820
  handler() {
2821
- var t;
2822
- this.bottom = (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 105;
2821
+ var a;
2822
+ this.bottom = (((a = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : a.clientHeight) || 0) + 105;
2823
2823
  },
2824
2824
  immediate: !0
2825
2825
  }
@@ -2829,15 +2829,15 @@ const na = {
2829
2829
  this.$emit("particle", { particle: !this.showParticle, key: "current", weight: 96 });
2830
2830
  },
2831
2831
  handleRender() {
2832
- var t, e;
2832
+ var a, e;
2833
2833
  if (!this.map)
2834
2834
  setTimeout(() => {
2835
2835
  this.handleRender();
2836
2836
  }, 500);
2837
2837
  else if (this.current) {
2838
- const a = (/* @__PURE__ */ new Date()).valueOf();
2838
+ const t = (/* @__PURE__ */ new Date()).valueOf();
2839
2839
  let r = 0, i = 0, o = this.empty;
2840
- this.current.active && (o = this.current.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[current] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
2840
+ this.current.active && (o = this.current.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[current] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
2841
2841
  {
2842
2842
  id: this.speedLayer,
2843
2843
  type: "fill",
@@ -2896,7 +2896,7 @@ const na = {
2896
2896
  }
2897
2897
  },
2898
2898
  this.beforeLayer
2899
- ), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[current] add elapsed: ", i, ", total: ", r += i)), this.handleToggle();
2899
+ ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[current] add elapsed: ", i, ", total: ", r += i)), this.handleToggle();
2900
2900
  }
2901
2901
  },
2902
2902
  handleToggle() {
@@ -2919,24 +2919,24 @@ const na = {
2919
2919
  key: 1,
2920
2920
  class: "iconfont"
2921
2921
  };
2922
- function ma(t, e, a, r, i, o) {
2922
+ function ma(a, e, t, r, i, o) {
2923
2923
  var n;
2924
- return (n = a.current) != null && n.active ? (L(), x("div", la, [
2924
+ return (n = t.current) != null && n.active ? (L(), x("div", la, [
2925
2925
  l("div", {
2926
2926
  class: "flex-center tool-bars",
2927
2927
  style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
2928
2928
  }, [
2929
- a.mapProjection === "mercator" ? (L(), x("div", {
2929
+ t.mapProjection === "mercator" ? (L(), x("div", {
2930
2930
  key: 0,
2931
2931
  class: "flex-start",
2932
2932
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
2933
2933
  }, [
2934
- a.showParticle ? (L(), x("i", ca, "")) : (L(), x("i", ha, "")),
2934
+ t.showParticle ? (L(), x("i", ca, "")) : (L(), x("i", ha, "")),
2935
2935
  l("span", {
2936
- class: M(a.showParticle ? "active" : "")
2936
+ class: M(t.showParticle ? "active" : "")
2937
2937
  }, "Current Particles", 2)
2938
2938
  ])) : $("", !0),
2939
- a.showParticle ? (L(), x("div", {
2939
+ t.showParticle ? (L(), x("div", {
2940
2940
  key: 1,
2941
2941
  class: "flex-start",
2942
2942
  style: { "margin-left": "16px" },
@@ -3003,15 +3003,15 @@ const ya = {
3003
3003
  watch: {
3004
3004
  "factor.version": {
3005
3005
  handler() {
3006
- var t;
3007
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
3006
+ var a;
3007
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
3008
3008
  },
3009
3009
  deep: !0
3010
3010
  },
3011
3011
  toggleVersion: {
3012
3012
  handler() {
3013
- var t, e;
3014
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
3013
+ var a, e;
3014
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
3015
3015
  },
3016
3016
  immediate: !0
3017
3017
  }
@@ -3023,19 +3023,19 @@ const ya = {
3023
3023
  this.handleRender();
3024
3024
  }, 500);
3025
3025
  else if (this.factor) {
3026
- const t = (/* @__PURE__ */ new Date()).valueOf();
3027
- let e = 0, a = 0;
3028
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[current-particle] add elapsed: ", a, ", total: ", e += a);
3026
+ const a = (/* @__PURE__ */ new Date()).valueOf();
3027
+ let e = 0, t = 0;
3028
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[current-particle] add elapsed: ", t, ", total: ", e += t);
3029
3029
  }
3030
3030
  },
3031
3031
  handleClear() {
3032
- var t, e, a, r, i, o, n, s;
3033
- (t = this.viewport) == null || t.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (a = this.viewport) == null ? void 0 : a.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (s = (n = this.viewport) == null ? void 0 : n.map) == null || s.off("moveend", this.handlePlay), this.handlePause();
3032
+ var a, e, t, r, i, o, n, s;
3033
+ (a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (s = (n = this.viewport) == null ? void 0 : n.map) == null || s.off("moveend", this.handlePlay), this.handlePause();
3034
3034
  },
3035
3035
  handleSetup() {
3036
3036
  if (!this.context) {
3037
3037
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
3038
- const t = [
3038
+ const a = [
3039
3039
  [0 / 255, "rgba(95, 143, 197,1)"],
3040
3040
  [5 / 255, "rgba(64,127,115,1)"],
3041
3041
  [10 / 255, "rgb(58,164,58)"],
@@ -3055,16 +3055,16 @@ const ya = {
3055
3055
  // 2.54
3056
3056
  [1, "rgb(195,194,194)"]
3057
3057
  ];
3058
- this.rampColor = this.webgl.setup(this.context, t);
3059
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3060
- this.program = e, this.aPositionBuffer = a;
3058
+ this.rampColor = this.webgl.setup(this.context, a);
3059
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3060
+ this.program = e, this.aPositionBuffer = t;
3061
3061
  }
3062
3062
  this.handleParticleSetup();
3063
3063
  },
3064
3064
  handleParticleSetup() {
3065
3065
  if (!this.particleContext) {
3066
3066
  this.particleContext = this.viewport.particleCanvas.getContext("webgl");
3067
- const t = [
3067
+ const a = [
3068
3068
  [0, "rgb(183,224,224)"],
3069
3069
  [1, "rgb(199,202,202)"]
3070
3070
  ];
@@ -3075,7 +3075,7 @@ const ya = {
3075
3075
  U.quadVertSchema,
3076
3076
  U.screenFragmentSchema,
3077
3077
  U.updateFragmentSchema
3078
- ), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
3078
+ ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
3079
3079
  ...this.wrapper,
3080
3080
  ...this.webgl.setupParticle(this.particleContext, 12e3),
3081
3081
  ...this.webgl.resize(this.viewport, this.particleContext)
@@ -3085,14 +3085,14 @@ const ya = {
3085
3085
  async handleDraw() {
3086
3086
  if (this.handleSetup(), this.etime !== this.factor.etime) {
3087
3087
  this.etime = this.factor.etime;
3088
- const t = await this.webgl.loadImg(this.factor.raw);
3089
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t), this.particleTexture = this.webgl.createTexture(
3088
+ const a = await this.webgl.loadImg(this.factor.raw);
3089
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a), this.particleTexture = this.webgl.createTexture(
3090
3090
  this.particleContext,
3091
3091
  this.particleContext.NEAREST,
3092
3092
  this.particleContext.LINEAR,
3093
3093
  this.particleContext.CLAMP_TO_EDGE,
3094
- t
3095
- ), this.wrapper.image = t;
3094
+ a
3095
+ ), this.wrapper.image = a;
3096
3096
  }
3097
3097
  this.initial && (this.initial = !1, this.handlePlay()), this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer, this.particleOptions), this.viewport.toggle(!0);
3098
3098
  },
@@ -3108,7 +3108,7 @@ const ya = {
3108
3108
  });
3109
3109
  }
3110
3110
  }
3111
- }, Le = (t) => (G("data-v-9115889b"), t = t(), H(), t), fa = { key: 0 }, ga = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "kts", -1)), ba = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), va = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.4", -1)), _a = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.8", -1)), wa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.6", -1)), La = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "2", -1)), xa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ca = [
3111
+ }, Le = (a) => (H("data-v-9115889b"), a = a(), G(), a), fa = { key: 0 }, ga = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "kts", -1)), ba = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), va = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.4", -1)), _a = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.8", -1)), wa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.6", -1)), La = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "2", -1)), xa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ca = [
3112
3112
  ga,
3113
3113
  ba,
3114
3114
  va,
@@ -3117,12 +3117,12 @@ const ya = {
3117
3117
  La,
3118
3118
  xa
3119
3119
  ];
3120
- function Sa(t, e, a, r, i, o) {
3120
+ function Sa(a, e, t, r, i, o) {
3121
3121
  var n;
3122
- return (n = a.factor) != null && n.active ? (L(), x("div", fa, [
3122
+ return (n = t.factor) != null && n.active ? (L(), x("div", fa, [
3123
3123
  l("div", {
3124
3124
  class: "legend-bars flex-center",
3125
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
3125
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3126
3126
  }, Ca, 4)
3127
3127
  ])) : $("", !0);
3128
3128
  }
@@ -3150,23 +3150,23 @@ const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b
3150
3150
  watch: {
3151
3151
  "sigWave.version": {
3152
3152
  handler() {
3153
- var t;
3154
- (t = this.sigWave) != null && t.active ? this.handleRender() : this.handleClear();
3153
+ var a;
3154
+ (a = this.sigWave) != null && a.active ? this.handleRender() : this.handleClear();
3155
3155
  },
3156
3156
  deep: !0
3157
3157
  }
3158
3158
  },
3159
3159
  methods: {
3160
3160
  handleRender() {
3161
- var t, e;
3161
+ var a, e;
3162
3162
  if (!this.map)
3163
3163
  setTimeout(() => {
3164
3164
  this.handleRender();
3165
3165
  }, 500);
3166
3166
  else if (this.sigWave) {
3167
- const a = (/* @__PURE__ */ new Date()).valueOf();
3167
+ const t = (/* @__PURE__ */ new Date()).valueOf();
3168
3168
  let r = 0, i = 0, o = this.empty;
3169
- this.sigWave.active && (o = this.sigWave.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[sig.wave] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
3169
+ this.sigWave.active && (o = this.sigWave.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[sig.wave] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
3170
3170
  {
3171
3171
  id: this.heightLayer,
3172
3172
  type: "fill",
@@ -3178,31 +3178,33 @@ const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b
3178
3178
  },
3179
3179
  paint: {
3180
3180
  "fill-outline-color": "#888",
3181
- "fill-opacity": 0.5,
3181
+ "fill-opacity": 0.8,
3182
3182
  "fill-color": [
3183
3183
  "step",
3184
3184
  ["get", "val"],
3185
- "#ddf9dc",
3185
+ "rgba(111,248,201,0.6)",
3186
3186
  3,
3187
- "#c3f9ab",
3187
+ "#6ff8c9",
3188
3188
  4,
3189
- "#c2fb63",
3189
+ "#36cd9a",
3190
3190
  5,
3191
- "#ffff63",
3191
+ "#6bff6b",
3192
3192
  6,
3193
- "#fcd95a",
3193
+ "#fee600",
3194
3194
  7,
3195
- "#fca157",
3195
+ "#ffa200",
3196
3196
  8,
3197
- "#fc5d5d",
3197
+ "#ff6600",
3198
3198
  9,
3199
- "#f72f7a",
3199
+ "#e23304",
3200
3200
  10,
3201
- "#f83cc6",
3201
+ "#f80078",
3202
3202
  11,
3203
- "#cb1bcb",
3203
+ "#dc03d2",
3204
3204
  12,
3205
- "#9106b2"
3205
+ "#a603f8",
3206
+ 13,
3207
+ "#7102ab"
3206
3208
  ]
3207
3209
  }
3208
3210
  },
@@ -3227,7 +3229,7 @@ const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b
3227
3229
  }
3228
3230
  },
3229
3231
  this.beforeLayer
3230
- ), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[sig.wave] add elapsed: ", i, ", total: ", r += i));
3232
+ ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[sig.wave] add elapsed: ", i, ", total: ", r += i));
3231
3233
  }
3232
3234
  },
3233
3235
  handleClear() {
@@ -3235,7 +3237,7 @@ const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b
3235
3237
  }
3236
3238
  }
3237
3239
  };
3238
- function Pa(t, e, a, r, i, o) {
3240
+ function Pa(a, e, t, r, i, o) {
3239
3241
  return L(), x("div");
3240
3242
  }
3241
3243
  const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
@@ -3263,23 +3265,23 @@ const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
3263
3265
  watch: {
3264
3266
  "swell.version": {
3265
3267
  handler() {
3266
- var t;
3267
- (t = this.swell) != null && t.active ? this.handleRender() : this.handleClear();
3268
+ var a;
3269
+ (a = this.swell) != null && a.active ? this.handleRender() : this.handleClear();
3268
3270
  },
3269
3271
  deep: !0
3270
3272
  }
3271
3273
  },
3272
3274
  methods: {
3273
3275
  handleRender() {
3274
- var t, e;
3276
+ var a, e;
3275
3277
  if (!this.map)
3276
3278
  setTimeout(() => {
3277
3279
  this.handleRender();
3278
3280
  }, 500);
3279
3281
  else if (this.swell) {
3280
- const a = (/* @__PURE__ */ new Date()).valueOf();
3282
+ const t = (/* @__PURE__ */ new Date()).valueOf();
3281
3283
  let r = 0, i = 0, o = this.empty;
3282
- this.swell.active && (o = this.swell.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[swell] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
3284
+ this.swell.active && (o = this.swell.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
3283
3285
  {
3284
3286
  id: this.heightLayer,
3285
3287
  type: "line",
@@ -3368,7 +3370,7 @@ const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
3368
3370
  }
3369
3371
  },
3370
3372
  this.beforeLayer
3371
- ), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i));
3373
+ ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i));
3372
3374
  }
3373
3375
  },
3374
3376
  handleClear() {
@@ -3376,7 +3378,7 @@ const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
3376
3378
  }
3377
3379
  }
3378
3380
  };
3379
- function Ia(t, e, a, r, i, o) {
3381
+ function Ia(a, e, t, r, i, o) {
3380
3382
  return L(), x("div");
3381
3383
  }
3382
3384
  const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
@@ -3407,15 +3409,15 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3407
3409
  watch: {
3408
3410
  "prmsl.version": {
3409
3411
  handler() {
3410
- var t;
3411
- (t = this.prmsl) != null && t.active ? this.handleRender() : this.handleClear();
3412
+ var a;
3413
+ (a = this.prmsl) != null && a.active ? this.handleRender() : this.handleClear();
3412
3414
  },
3413
3415
  deep: !0
3414
3416
  }
3415
3417
  },
3416
3418
  methods: {
3417
3419
  handleRender() {
3418
- var t, e, a;
3420
+ var a, e, t;
3419
3421
  if (!this.map)
3420
3422
  setTimeout(() => {
3421
3423
  this.handleRender();
@@ -3423,7 +3425,7 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3423
3425
  else if (this.prmsl) {
3424
3426
  const r = (/* @__PURE__ */ new Date()).valueOf();
3425
3427
  let i = 0, o = 0, n = this.empty;
3426
- this.prmsl.active && (n = this.prmsl.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(n), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] update elapsed: ", o, ", total: ", i += o)) : (this.map.addSource(this.source, { type: "geojson", data: n }), this.map.addLayer(
3428
+ this.prmsl.active && (n = this.prmsl.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(n), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] update elapsed: ", o, ", total: ", i += o)) : (this.map.addSource(this.source, { type: "geojson", data: n }), this.map.addLayer(
3427
3429
  {
3428
3430
  id: this.layer,
3429
3431
  type: "line",
@@ -3436,7 +3438,7 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3436
3438
  }
3437
3439
  },
3438
3440
  this.beforeLayer
3439
- ), (a = this.map) == null || a.addLayer(
3441
+ ), (t = this.map) == null || t.addLayer(
3440
3442
  {
3441
3443
  id: this.labelLayer,
3442
3444
  type: "symbol",
@@ -3495,16 +3497,16 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3495
3497
  }
3496
3498
  },
3497
3499
  handleMove() {
3498
- var t, e;
3499
- (e = (t = this.map) == null ? void 0 : t.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "visible"), this.map.getLayer(this.pointLabelLayer) && this.map.moveLayer(this.pointLabelLayer, "country-boundaries"), this.map.getLayer(this.labelLayer) && this.map.moveLayer(this.labelLayer, "country-boundaries"), this.map.getLayer(this.layer) && this.map.moveLayer(this.layer, "country-boundaries");
3500
+ var a, e;
3501
+ (e = (a = this.map) == null ? void 0 : a.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "visible"), this.map.getLayer(this.pointLabelLayer) && this.map.moveLayer(this.pointLabelLayer, "country-boundaries"), this.map.getLayer(this.labelLayer) && this.map.moveLayer(this.labelLayer, "country-boundaries"), this.map.getLayer(this.layer) && this.map.moveLayer(this.layer, "country-boundaries");
3500
3502
  },
3501
3503
  handleClear() {
3502
- var t, e;
3503
- this.activeWeatherLayers.length === 0 && ((e = (t = this.map) == null ? void 0 : t.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "none")), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.labelLayer) && this.map.removeLayer(this.labelLayer), this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3504
+ var a, e;
3505
+ this.activeWeatherLayers.length === 0 && ((e = (a = this.map) == null ? void 0 : a.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "none")), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.labelLayer) && this.map.removeLayer(this.labelLayer), this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3504
3506
  }
3505
3507
  }
3506
3508
  };
3507
- function Aa(t, e, a, r, i, o) {
3509
+ function Aa(a, e, t, r, i, o) {
3508
3510
  return L(), x("div");
3509
3511
  }
3510
3512
  const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
@@ -3530,23 +3532,23 @@ const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
3530
3532
  watch: {
3531
3533
  "iceberg.version": {
3532
3534
  handler() {
3533
- var t;
3534
- (t = this.iceberg) != null && t.active ? this.handleRender() : this.handleClear();
3535
+ var a;
3536
+ (a = this.iceberg) != null && a.active ? this.handleRender() : this.handleClear();
3535
3537
  },
3536
3538
  deep: !0
3537
3539
  }
3538
3540
  },
3539
3541
  methods: {
3540
3542
  handleRender() {
3541
- var t, e;
3543
+ var a, e;
3542
3544
  if (!this.map)
3543
3545
  setTimeout(() => {
3544
3546
  this.handleRender();
3545
3547
  }, 500);
3546
3548
  else if (this.iceberg) {
3547
- const a = (/* @__PURE__ */ new Date()).valueOf();
3549
+ const t = (/* @__PURE__ */ new Date()).valueOf();
3548
3550
  let r = 0, i = 0, o = this.empty;
3549
- this.iceberg.active && (o = this.iceberg.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[iceberg] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer({
3551
+ this.iceberg.active && (o = this.iceberg.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[iceberg] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer({
3550
3552
  id: this.layer,
3551
3553
  type: "line",
3552
3554
  source: this.source,
@@ -3556,7 +3558,7 @@ const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
3556
3558
  "line-width": 2,
3557
3559
  "line-opacity": 1
3558
3560
  }
3559
- }), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[iceberg] add elapsed: ", i, ", total: ", r += i));
3561
+ }), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[iceberg] add elapsed: ", i, ", total: ", r += i));
3560
3562
  }
3561
3563
  },
3562
3564
  handleClear() {
@@ -3564,7 +3566,7 @@ const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
3564
3566
  }
3565
3567
  }
3566
3568
  };
3567
- function Ba(t, e, a, r, i, o) {
3569
+ function Ba(a, e, t, r, i, o) {
3568
3570
  return L(), x("div");
3569
3571
  }
3570
3572
  const Na = /* @__PURE__ */ T($a, [["render", Ba]]);
@@ -3579,6 +3581,10 @@ const Wa = {
3579
3581
  },
3580
3582
  date: {
3581
3583
  type: String
3584
+ },
3585
+ timeZone: {
3586
+ type: Number,
3587
+ default: 0
3582
3588
  }
3583
3589
  },
3584
3590
  emits: ["tropical", "tropicalProbability"],
@@ -3610,13 +3616,16 @@ const Wa = {
3610
3616
  },
3611
3617
  computed: {
3612
3618
  computeTime() {
3613
- return function(t) {
3614
- if (t) {
3615
- const e = te(t).utc();
3616
- return `${e.format("MMM-DD,HHmm[Z]")} (${e == null ? void 0 : e.fromNow()})`;
3619
+ return function(a) {
3620
+ if (a) {
3621
+ const e = Z(a).utc().utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
3622
+ return `${e.format("MMM-DD,HHmm")}[ UTC ${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
3617
3623
  }
3618
3624
  return "-";
3619
3625
  };
3626
+ },
3627
+ computeTimezone() {
3628
+ return this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
3620
3629
  }
3621
3630
  },
3622
3631
  watch: {
@@ -3634,40 +3643,49 @@ const Wa = {
3634
3643
  },
3635
3644
  "tropicals.version": {
3636
3645
  handler() {
3637
- var r, i;
3638
- const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = te().utc().hour(), a = [];
3639
- t.forEach((o) => {
3640
- var n, s, c;
3641
- (n = o.properties) != null && n.name && !a.includes((s = o.properties) == null ? void 0 : s.name) && a.push((c = o.properties) == null ? void 0 : c.name);
3642
- }), a.forEach((o) => {
3643
- var h;
3644
- let n = 0, s;
3645
- const c = t.filter((d) => {
3646
- var p, f;
3647
- return ((f = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
3648
- });
3649
- (h = c.filter((d) => {
3650
- var p, f;
3651
- return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((f = d.properties) == null ? void 0 : f.type) === "forecast";
3652
- })[0]) == null || h.properties.model, c.forEach((d, p) => {
3653
- var f, m, b, y, u, v;
3654
- ((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
3655
- }), c.map((d, p) => {
3656
- var f, m, b, y, u, v, g, w;
3657
- if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3658
- const k = ((w = (g = d.properties) == null ? void 0 : g.format) == null ? void 0 : w.slice(7, 12)) === te().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
3659
- d.properties.showHistoryLabel = k || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
3660
- }
3661
- return d;
3662
- });
3663
- }), this.handleInit();
3646
+ this.handleRefresh();
3647
+ }
3648
+ },
3649
+ timeZone: {
3650
+ handler() {
3651
+ this.handleRefresh();
3664
3652
  }
3665
3653
  }
3666
3654
  },
3667
3655
  methods: {
3656
+ handleRefresh() {
3657
+ var r, i;
3658
+ const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = Z().utc().hour(), t = [];
3659
+ a.forEach((o) => {
3660
+ var n, s, c;
3661
+ (n = o.properties) != null && n.name && !t.includes((s = o.properties) == null ? void 0 : s.name) && t.push((c = o.properties) == null ? void 0 : c.name);
3662
+ }), t.forEach((o) => {
3663
+ var h;
3664
+ let n = 0, s;
3665
+ const c = a.filter((d) => {
3666
+ var p, f;
3667
+ return ((f = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
3668
+ });
3669
+ (h = c.filter((d) => {
3670
+ var p, f;
3671
+ return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((f = d.properties) == null ? void 0 : f.type) === "forecast";
3672
+ })[0]) == null || h.properties.model, c.forEach((d, p) => {
3673
+ var f, m, b, y, u, v;
3674
+ ((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
3675
+ }), c.map((d, p) => {
3676
+ var f, m, b, y, u, v, g;
3677
+ if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o, d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3678
+ d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3679
+ const w = Z((g = d.properties) == null ? void 0 : g.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
3680
+ d.properties.showHistoryLabel = w || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
3681
+ }
3682
+ return d;
3683
+ });
3684
+ }), this.handleInit();
3685
+ },
3668
3686
  handleInit() {
3669
- var t, e;
3670
- this.tropicals && this.tropicals.active ? (this.handleRender(), (t = this.map) == null || t.on(
3687
+ var a, e;
3688
+ this.tropicals && this.tropicals.active ? (this.handleRender(), (a = this.map) == null || a.on(
3671
3689
  "click",
3672
3690
  [
3673
3691
  this.forecastNameLayer,
@@ -3696,7 +3714,7 @@ const Wa = {
3696
3714
  ));
3697
3715
  },
3698
3716
  handleRender() {
3699
- var t, e, a, r, i, o, n, s, c, h;
3717
+ var a, e, t, r, i, o, n, s, c, h;
3700
3718
  if (!this.map)
3701
3719
  setTimeout(() => {
3702
3720
  this.handleRender();
@@ -3705,7 +3723,7 @@ const Wa = {
3705
3723
  if (this.tropicals) {
3706
3724
  const p = (/* @__PURE__ */ new Date()).valueOf();
3707
3725
  let f = 0, m = 0;
3708
- (t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropicals] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.source, {
3726
+ (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, {
3709
3727
  type: "geojson",
3710
3728
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
3711
3729
  }), this.map.addLayer({
@@ -3927,18 +3945,18 @@ const Wa = {
3927
3945
  }
3928
3946
  },
3929
3947
  handleClear() {
3930
- var t;
3931
- this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
3948
+ var a;
3949
+ this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (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));
3932
3950
  },
3933
3951
  handleDateChange() {
3934
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, Z, de, pe, me, ue, ye, fe, ge, ae;
3935
- if ((t = this.interpolateMarkers) == null || t.forEach((J) => J == null ? void 0 : J.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3936
- const J = te(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((E) => E.properties.date === J.format() && !E.properties.disabled), be = this.handleComputePolygons(q), Y = C.featureCollection([...q]);
3952
+ var a, e, t, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, J, de, pe, me, ue, ye, fe, ge, ae;
3953
+ if ((a = this.interpolateMarkers) == null || a.forEach((X) => X == null ? void 0 : X.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3954
+ const X = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((E) => E.properties.date === X.format() && !E.properties.disabled), be = this.handleComputePolygons(Y), Q = C.featureCollection([...Y]);
3937
3955
  be.forEach((E) => {
3938
- Y.features.push(E);
3939
- }), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(Y) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3956
+ Q.features.push(E);
3957
+ }), (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, {
3940
3958
  type: "geojson",
3941
- data: Y
3959
+ data: Q
3942
3960
  }), (o = this.map) == null || o.addLayer({
3943
3961
  id: this.interpolateLineLayer,
3944
3962
  type: "line",
@@ -3950,10 +3968,10 @@ const Wa = {
3950
3968
  "line-width": 1
3951
3969
  }
3952
3970
  })), this.interpolateMarkers = [];
3953
- for (const E of q)
3971
+ for (const E of Y)
3954
3972
  if (!E.properties.disabled) {
3955
3973
  let V = "#f44336";
3956
- ((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? V = "#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 ? V = "#ff9100" : ((w = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : w.spd) >= 32.7 && ((_ = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) < 41.5 ? V = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((W = (B = E.properties) == null ? void 0 : B.wind) == null ? void 0 : W.spd) < 51 ? V = "#f903d0" : ((Z = (O = E.properties) == null ? void 0 : O.wind) == null ? void 0 : Z.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
3974
+ ((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? V = "#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 ? V = "#ff9100" : ((w = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : w.spd) >= 32.7 && ((_ = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) < 41.5 ? V = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((W = (B = E.properties) == null ? void 0 : B.wind) == null ? void 0 : W.spd) < 51 ? V = "#f903d0" : ((J = (O = E.properties) == null ? void 0 : O.wind) == null ? void 0 : J.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
3957
3975
  const ve = `<svg t="1719918955501"
3958
3976
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3959
3977
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -3968,9 +3986,9 @@ const Wa = {
3968
3986
  <path
3969
3987
  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"
3970
3988
  fill="#ffffff" p-id="18386"></path>
3971
- </svg>`, Q = document.createElement("div");
3972
- Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ve}</div>`;
3973
- const _e = new ne.Marker(Q).setLngLat(E.geometry.coordinates).addTo(this.map);
3989
+ </svg>`, K = document.createElement("div");
3990
+ K.className = "hurricane-hourly-marker", K.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ve}</div>`;
3991
+ const _e = new ne.Marker(K).setLngLat(E.geometry.coordinates).addTo(this.map);
3974
3992
  if (this.interpolateMarkers.push(_e), (de = E.properties) != null && de.showCircle) {
3975
3993
  const ie = { radius: 100, coordinates: E.geometry.coordinates }, re = { radius: 200, coordinates: E.geometry.coordinates }, oe = { radius: 500, coordinates: E.geometry.coordinates };
3976
3994
  (pe = this.circleSourceData) == null || pe.features.push(
@@ -3986,15 +4004,15 @@ const Wa = {
3986
4004
  } else
3987
4005
  (ge = this.map) != null && ge.getSource(this.interpolateSource) && ((ae = this.map) == null || ae.getSource(this.interpolateSource).setData(this.empty));
3988
4006
  },
3989
- handleClick(t) {
4007
+ handleClick(a) {
3990
4008
  var o, n, s, c, h, d, p, f;
3991
- const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
4009
+ const e = a.features[0], t = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
3992
4010
  (m) => {
3993
4011
  var b;
3994
4012
  return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
3995
4013
  }
3996
4014
  );
3997
- a.sort((m, b) => {
4015
+ t.sort((m, b) => {
3998
4016
  var y, u, v, g;
3999
4017
  return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = b.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((g = b.properties) == null ? void 0 : g.model) ? 1 : -1 : 0;
4000
4018
  });
@@ -4006,35 +4024,35 @@ const Wa = {
4006
4024
  );
4007
4025
  this.activeTropicals = {
4008
4026
  name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
4009
- forecasts: a.map((m) => m.properties),
4027
+ forecasts: t.map((m) => m.properties),
4010
4028
  history: (d = r[0]) == null ? void 0 : d.properties,
4011
- showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
4029
+ showCircle: (f = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
4012
4030
  }, this.showTropicals = !0;
4013
4031
  const i = document.getElementById("active-tropical");
4014
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4032
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new ne.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4015
4033
  },
4016
- handleForecastToggle(t) {
4034
+ handleForecastToggle(a) {
4017
4035
  var r, i, o, n, s, c;
4018
- t.disabled = !t.disabled;
4019
- const e = `${t.name}-${t.model}`, a = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
4020
- a.forEach((h) => {
4021
- h.properties.category === e && (h.properties.disabled = t.disabled);
4036
+ a.disabled = !a.disabled;
4037
+ const e = `${a.name}-${a.model}`, t = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
4038
+ t.forEach((h) => {
4039
+ h.properties.category === e && (h.properties.disabled = a.disabled);
4022
4040
  }), this.interpolateData.forEach((h) => {
4023
- h.properties.category === e && (h.properties.disabled = t.disabled);
4024
- }), (n = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || n.setData(C.featureCollection(a)), (c = (s = this.map) == null ? void 0 : s.getSource(this.clusterSource)) == null || c.setData(C.featureCollection(a)), this.handleDateChange();
4041
+ h.properties.category === e && (h.properties.disabled = a.disabled);
4042
+ }), (n = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || n.setData(C.featureCollection(t)), (c = (s = this.map) == null ? void 0 : s.getSource(this.clusterSource)) == null || c.setData(C.featureCollection(t)), this.handleDateChange();
4025
4043
  },
4026
- handleStrikeProbability(t) {
4027
- this.$emit("tropicalProbability", t);
4044
+ handleStrikeProbability(a) {
4045
+ this.$emit("tropicalProbability", a);
4028
4046
  },
4029
- handleToggleCircles(t) {
4030
- var e, a;
4031
- t.showCircle = !t.showCircle, (a = (e = this.tropicals.data) == null ? void 0 : e.features) == null || a.forEach((r) => {
4032
- r.properties.name === t.name && (r.properties.showCircle = t.showCircle);
4047
+ handleToggleCircles(a) {
4048
+ var e, t;
4049
+ a.showCircle = !a.showCircle, (t = (e = this.tropicals.data) == null ? void 0 : e.features) == null || t.forEach((r) => {
4050
+ r.properties.name === a.name && (r.properties.showCircle = a.showCircle);
4033
4051
  }), this.handleRender();
4034
4052
  },
4035
4053
  handleDrawCircle() {
4036
- var t, e;
4037
- (t = this.map) != null && t.getSource(this.circleSource) ? (e = this.map) == null || e.getSource(this.circleSource).setData(this.circleSourceData) : (this.map.addSource(this.circleSource, {
4054
+ var a, e;
4055
+ (a = this.map) != null && a.getSource(this.circleSource) ? (e = this.map) == null || e.getSource(this.circleSource).setData(this.circleSourceData) : (this.map.addSource(this.circleSource, {
4038
4056
  type: "geojson",
4039
4057
  data: this.circleSourceData
4040
4058
  }), this.map.addLayer({
@@ -4050,27 +4068,27 @@ const Wa = {
4050
4068
  }
4051
4069
  }));
4052
4070
  },
4053
- handleComputePolygons(t) {
4071
+ handleComputePolygons(a) {
4054
4072
  const e = [];
4055
- for (const a of t) {
4056
- const r = a.properties.wind, i = {
4073
+ for (const t of a) {
4074
+ const r = t.properties.wind, i = {
4057
4075
  ne: r.r7ne >= 0 ? r.r7ne : void 0,
4058
4076
  se: r.r7se >= 0 ? r.r7se : void 0,
4059
4077
  sw: r.r7sw >= 0 ? r.r7sw : void 0,
4060
4078
  nw: r.r7nw >= 0 ? r.r7nw : void 0
4061
- }, o = this.handleComputeArc(a.geometry.coordinates, i, { ...a.properties, level: 7 });
4079
+ }, o = this.handleComputeArc(t.geometry.coordinates, i, { ...t.properties, level: 7 });
4062
4080
  e.push(o);
4063
4081
  const n = {
4064
4082
  ne: r.r10ne >= 0 ? r.r10ne : void 0,
4065
4083
  se: r.r10se >= 0 ? r.r10se : void 0,
4066
4084
  sw: r.r10sw >= 0 ? r.r10sw : void 0,
4067
4085
  nw: r.r10nw >= 0 ? r.r10nw : void 0
4068
- }, s = this.handleComputeArc(a.geometry.coordinates, n, { ...a.properties, level: 10 });
4086
+ }, s = this.handleComputeArc(t.geometry.coordinates, n, { ...t.properties, level: 10 });
4069
4087
  e.push(s);
4070
4088
  }
4071
4089
  return e;
4072
4090
  },
4073
- handleComputeArc(t, e, a) {
4091
+ handleComputeArc(a, e, t) {
4074
4092
  var o;
4075
4093
  const r = [];
4076
4094
  for (const n in e) {
@@ -4078,31 +4096,31 @@ const Wa = {
4078
4096
  let c;
4079
4097
  switch (n) {
4080
4098
  case "ne":
4081
- c = C.lineArc(t, s * 1.852, 0, 90, { steps: s > 0 ? 64 : 1 });
4099
+ c = C.lineArc(a, s * 1.852, 0, 90, { steps: s > 0 ? 64 : 1 });
4082
4100
  break;
4083
4101
  case "se":
4084
- c = C.lineArc(t, s * 1.852, 90, 180, { steps: s > 0 ? 64 : 1 });
4102
+ c = C.lineArc(a, s * 1.852, 90, 180, { steps: s > 0 ? 64 : 1 });
4085
4103
  break;
4086
4104
  case "sw":
4087
- c = C.lineArc(t, s * 1.852, 180, 270, { steps: s > 0 ? 64 : 1 });
4105
+ c = C.lineArc(a, s * 1.852, 180, 270, { steps: s > 0 ? 64 : 1 });
4088
4106
  break;
4089
4107
  case "nw":
4090
- c = C.lineArc(t, s * 1.852, 270, 360, { steps: s > 0 ? 64 : 1 });
4108
+ c = C.lineArc(a, s * 1.852, 270, 360, { steps: s > 0 ? 64 : 1 });
4091
4109
  break;
4092
4110
  }
4093
4111
  r.push(...(o = c == null ? void 0 : c.geometry) == null ? void 0 : o.coordinates);
4094
4112
  }
4095
4113
  const i = C.lineString(r);
4096
- return C.lineToPolygon(i, { properties: a });
4114
+ return C.lineToPolygon(i, { properties: t });
4097
4115
  }
4098
4116
  }
4099
- }, je = (t) => (G("data-v-b5b42393"), t = t(), H(), t), Oa = {
4117
+ }, je = (a) => (H("data-v-08ecb5a5"), a = a(), G(), a), Oa = {
4100
4118
  id: "active-tropical",
4101
4119
  class: "active-tropical"
4102
- }, ja = { class: "header-box" }, Fa = { class: "main" }, Va = { key: 0 }, Ua = { class: "sub" }, Ga = {
4120
+ }, ja = { class: "header-box" }, Fa = { class: "main" }, Va = { key: 0 }, Ua = { class: "sub" }, Za = {
4103
4121
  id: "meteoBox",
4104
4122
  class: "main-box"
4105
- }, Ha = { class: "content" }, Za = { class: "row" }, Ja = {
4123
+ }, Ha = { class: "content" }, Ga = { class: "row" }, Ja = {
4106
4124
  class: "col col-left",
4107
4125
  style: { "justify-content": "flex-start" }
4108
4126
  }, Xa = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), qa = {
@@ -4111,8 +4129,8 @@ const Wa = {
4111
4129
  }, Ya = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), Qa = { class: "row" }, Ka = {
4112
4130
  class: "col col-24",
4113
4131
  style: { "justify-content": "flex-start" }
4114
- }, ei = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), ti = { class: "forecast-models" }, ai = ["onClick"], ii = /* @__PURE__ */ it('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b5b42393></div><div class="row" style="padding:2px 10px;" data-v-b5b42393><div class="legend" data-v-b5b42393><div class="icon td" data-v-b5b42393></div><div class="label" data-v-b5b42393>TD</div></div><div class="legend" data-v-b5b42393><div class="icon ts" data-v-b5b42393></div><div class="label" data-v-b5b42393>TS</div></div><div class="legend" data-v-b5b42393><div class="icon sts" data-v-b5b42393></div><div class="label" data-v-b5b42393>STS</div></div><div class="legend" data-v-b5b42393><div class="icon ty" data-v-b5b42393></div><div class="label" data-v-b5b42393>TY</div></div><div class="legend" data-v-b5b42393><div class="icon sty" data-v-b5b42393></div><div class="label" data-v-b5b42393>STY</div></div><div class="legend" data-v-b5b42393><div class="icon supper-ty" data-v-b5b42393></div><div class="label" data-v-b5b42393>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b5b42393><div class="legend" data-v-b5b42393><div class="icon history" data-v-b5b42393></div><div class="label" data-v-b5b42393>History</div></div><div class="legend" data-v-b5b42393><div class="icon r7" data-v-b5b42393></div><div class="label" data-v-b5b42393>35kts Radii</div></div><div class="legend" data-v-b5b42393><div class="icon r10" data-v-b5b42393></div><div class="label" data-v-b5b42393>50kts Radii</div></div></div>', 3), ri = { class: "more" };
4115
- function oi(t, e, a, r, i, o) {
4132
+ }, ei = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), ti = { class: "forecast-models" }, ai = ["onClick"], ii = /* @__PURE__ */ it('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-08ecb5a5></div><div class="row" style="padding:2px 10px;" data-v-08ecb5a5><div class="legend" data-v-08ecb5a5><div class="icon td" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>TD</div></div><div class="legend" data-v-08ecb5a5><div class="icon ts" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>TS</div></div><div class="legend" data-v-08ecb5a5><div class="icon sts" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>STS</div></div><div class="legend" data-v-08ecb5a5><div class="icon ty" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>TY</div></div><div class="legend" data-v-08ecb5a5><div class="icon sty" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>STY</div></div><div class="legend" data-v-08ecb5a5><div class="icon supper-ty" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-08ecb5a5><div class="legend" data-v-08ecb5a5><div class="icon history" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>History</div></div><div class="legend" data-v-08ecb5a5><div class="icon r7" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>35kts Radii</div></div><div class="legend" data-v-08ecb5a5><div class="icon r10" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>50kts Radii</div></div></div>', 3), ri = { class: "more" };
4133
+ function oi(a, e, t, r, i, o) {
4116
4134
  var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
4117
4135
  return Me((L(), x("div", Oa, [
4118
4136
  l("div", ja, [
@@ -4126,9 +4144,9 @@ function oi(t, e, a, r, i, o) {
4126
4144
  ]),
4127
4145
  l("div", Ua, " 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((_) => !_.disabled)[0]) == null ? void 0 : y.date))), 1)
4128
4146
  ]),
4129
- l("div", Ga, [
4147
+ l("div", Za, [
4130
4148
  l("div", Ha, [
4131
- l("div", Za, [
4149
+ l("div", Ga, [
4132
4150
  l("div", Ja, [
4133
4151
  Xa,
4134
4152
  l("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
@@ -4151,7 +4169,7 @@ function oi(t, e, a, r, i, o) {
4151
4169
  _.disabled ? "" : "active",
4152
4170
  D > 0 && D < ((B = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : B.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
4153
4171
  ]),
4154
- onClick: (Z) => o.handleForecastToggle(_)
4172
+ onClick: (J) => o.handleForecastToggle(_)
4155
4173
  }, [
4156
4174
  l("span", {
4157
4175
  class: M(_.model)
@@ -4171,10 +4189,10 @@ function oi(t, e, a, r, i, o) {
4171
4189
  ])
4172
4190
  ])
4173
4191
  ], 512)), [
4174
- [$e, i.showTropicals && !t.$attrs.hideTropicalsLegend]
4192
+ [$e, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4175
4193
  ]);
4176
4194
  }
4177
- const Ye = /* @__PURE__ */ T(Wa, [["render", oi], ["__scopeId", "data-v-b5b42393"]]);
4195
+ const Ye = /* @__PURE__ */ T(Wa, [["render", oi], ["__scopeId", "data-v-08ecb5a5"]]);
4178
4196
  const si = {
4179
4197
  name: "IdmPrecip3h",
4180
4198
  props: {
@@ -4211,15 +4229,15 @@ const si = {
4211
4229
  watch: {
4212
4230
  "factor.version": {
4213
4231
  handler() {
4214
- var t;
4215
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4232
+ var a;
4233
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4216
4234
  },
4217
4235
  deep: !0
4218
4236
  },
4219
4237
  toggleVersion: {
4220
4238
  handler() {
4221
- var t, e;
4222
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4239
+ var a, e;
4240
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4223
4241
  },
4224
4242
  immediate: !0
4225
4243
  }
@@ -4231,9 +4249,9 @@ const si = {
4231
4249
  this.handleRender();
4232
4250
  }, 500);
4233
4251
  else if (this.factor) {
4234
- const t = (/* @__PURE__ */ new Date()).valueOf();
4235
- let e = 0, a = 0;
4236
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[precip3h] add elapsed: ", a, ", total: ", e += a);
4252
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4253
+ let e = 0, t = 0;
4254
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[precip3h] add elapsed: ", t, ", total: ", e += t);
4237
4255
  }
4238
4256
  },
4239
4257
  handleClear() {
@@ -4242,7 +4260,7 @@ const si = {
4242
4260
  handleSetup() {
4243
4261
  if (!this.context) {
4244
4262
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4245
- const t = [
4263
+ const a = [
4246
4264
  [0, "rgba(59, 126, 162, 0)"],
4247
4265
  [14 / 255, "rgba(84,170,230, 0)"],
4248
4266
  //1.4mm
@@ -4262,21 +4280,21 @@ const si = {
4262
4280
  //30mm
4263
4281
  [1, "rgba(197,5,58,0.8)"]
4264
4282
  ];
4265
- this.rampColor = this.webgl.setup(this.context, t);
4266
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4267
- this.program = e, this.aPositionBuffer = a;
4283
+ this.rampColor = this.webgl.setup(this.context, a);
4284
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4285
+ this.program = e, this.aPositionBuffer = t;
4268
4286
  }
4269
4287
  },
4270
4288
  async handleDraw() {
4271
4289
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4272
4290
  this.etime = this.factor.etime;
4273
- const t = await this.webgl.loadImg(this.factor.raw);
4274
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4291
+ const a = await this.webgl.loadImg(this.factor.raw);
4292
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4275
4293
  }
4276
4294
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4277
4295
  }
4278
4296
  }
4279
- }, ce = (t) => (G("data-v-dec867b8"), t = t(), H(), t), ni = { key: 0 }, li = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), ci = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), hi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), di = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), pi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), mi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), ui = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), yi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), fi = [
4297
+ }, ce = (a) => (H("data-v-dec867b8"), a = a(), G(), a), ni = { key: 0 }, li = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), ci = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), hi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), di = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), pi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), mi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), ui = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), yi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), fi = [
4280
4298
  li,
4281
4299
  ci,
4282
4300
  hi,
@@ -4286,12 +4304,12 @@ const si = {
4286
4304
  ui,
4287
4305
  yi
4288
4306
  ];
4289
- function gi(t, e, a, r, i, o) {
4307
+ function gi(a, e, t, r, i, o) {
4290
4308
  var n;
4291
- return (n = a.factor) != null && n.active ? (L(), x("div", ni, [
4309
+ return (n = t.factor) != null && n.active ? (L(), x("div", ni, [
4292
4310
  l("div", {
4293
4311
  class: "legend-bars flex-center",
4294
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4312
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4295
4313
  }, fi, 4)
4296
4314
  ])) : $("", !0);
4297
4315
  }
@@ -4331,15 +4349,15 @@ const vi = {
4331
4349
  watch: {
4332
4350
  "factor.version": {
4333
4351
  handler() {
4334
- var t;
4335
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4352
+ var a;
4353
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4336
4354
  },
4337
4355
  deep: !0
4338
4356
  },
4339
4357
  toggleVersion: {
4340
4358
  handler() {
4341
- var t, e;
4342
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4359
+ var a, e;
4360
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4343
4361
  },
4344
4362
  immediate: !0
4345
4363
  }
@@ -4351,9 +4369,9 @@ const vi = {
4351
4369
  this.handleRender();
4352
4370
  }, 500);
4353
4371
  else if (this.factor) {
4354
- const t = (/* @__PURE__ */ new Date()).valueOf();
4355
- let e = 0, a = 0;
4356
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[visibility] add elapsed: ", a, ", total: ", e += a);
4372
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4373
+ let e = 0, t = 0;
4374
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[visibility] add elapsed: ", t, ", total: ", e += t);
4357
4375
  }
4358
4376
  },
4359
4377
  handleClear() {
@@ -4362,7 +4380,7 @@ const vi = {
4362
4380
  handleSetup() {
4363
4381
  if (!this.context) {
4364
4382
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4365
- const t = [
4383
+ const a = [
4366
4384
  [0, "rgba(189,50,160,0.8)"],
4367
4385
  [8 / 255, "rgba(208,56,56,0.8)"],
4368
4386
  //0.8km
@@ -4376,21 +4394,21 @@ const vi = {
4376
4394
  //16km
4377
4395
  [1, "rgba(144,144,144,0)"]
4378
4396
  ];
4379
- this.rampColor = this.webgl.setup(this.context, t);
4380
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4381
- this.program = e, this.aPositionBuffer = a;
4397
+ this.rampColor = this.webgl.setup(this.context, a);
4398
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4399
+ this.program = e, this.aPositionBuffer = t;
4382
4400
  }
4383
4401
  },
4384
4402
  async handleDraw() {
4385
4403
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4386
4404
  this.etime = this.factor.etime;
4387
- const t = await this.webgl.loadImg(this.factor.raw);
4388
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4405
+ const a = await this.webgl.loadImg(this.factor.raw);
4406
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4389
4407
  }
4390
4408
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4391
4409
  }
4392
4410
  }
4393
- }, xe = (t) => (G("data-v-952dee5c"), t = t(), H(), t), _i = { key: 0 }, wi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "nm", -1)), Li = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), xi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ci = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Si = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "3", -1)), ki = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "9", -1)), zi = [
4411
+ }, xe = (a) => (H("data-v-952dee5c"), a = a(), G(), a), _i = { key: 0 }, wi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "nm", -1)), Li = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), xi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ci = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Si = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "3", -1)), ki = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "9", -1)), zi = [
4394
4412
  wi,
4395
4413
  Li,
4396
4414
  xi,
@@ -4398,12 +4416,12 @@ const vi = {
4398
4416
  Si,
4399
4417
  ki
4400
4418
  ];
4401
- function Pi(t, e, a, r, i, o) {
4419
+ function Pi(a, e, t, r, i, o) {
4402
4420
  var n;
4403
- return (n = a.factor) != null && n.active ? (L(), x("div", _i, [
4421
+ return (n = t.factor) != null && n.active ? (L(), x("div", _i, [
4404
4422
  l("div", {
4405
4423
  class: "legend-bars flex-center",
4406
- style: F([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
4424
+ style: F([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4407
4425
  }, zi, 4)
4408
4426
  ])) : $("", !0);
4409
4427
  }
@@ -4444,15 +4462,15 @@ const Ei = {
4444
4462
  watch: {
4445
4463
  "factor.version": {
4446
4464
  handler() {
4447
- var t;
4448
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4465
+ var a;
4466
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4449
4467
  },
4450
4468
  deep: !0
4451
4469
  },
4452
4470
  toggleVersion: {
4453
4471
  handler() {
4454
- var t, e;
4455
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4472
+ var a, e;
4473
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4456
4474
  },
4457
4475
  immediate: !0
4458
4476
  }
@@ -4464,9 +4482,9 @@ const Ei = {
4464
4482
  this.handleRender();
4465
4483
  }, 500);
4466
4484
  else if (this.factor) {
4467
- const t = (/* @__PURE__ */ new Date()).valueOf();
4468
- let e = 0, a = 0;
4469
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[water-temp] add elapsed: ", a, ", total: ", e += a);
4485
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4486
+ let e = 0, t = 0;
4487
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[water-temp] add elapsed: ", t, ", total: ", e += t);
4470
4488
  }
4471
4489
  },
4472
4490
  handleClear() {
@@ -4475,7 +4493,7 @@ const Ei = {
4475
4493
  handleSetup() {
4476
4494
  if (!this.context) {
4477
4495
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4478
- const t = [
4496
+ const a = [
4479
4497
  [0, "rgba(95, 143, 197)"],
4480
4498
  // -10°C
4481
4499
  [46 / 255, "rgba(95, 143, 197)"],
@@ -4496,21 +4514,21 @@ const Ei = {
4496
4514
  [1, "rgb(138, 43, 10)"]
4497
4515
  //
4498
4516
  ];
4499
- this.rampColor = this.webgl.setup(this.context, t);
4500
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4501
- this.program = e, this.aPositionBuffer = a;
4517
+ this.rampColor = this.webgl.setup(this.context, a);
4518
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4519
+ this.program = e, this.aPositionBuffer = t;
4502
4520
  }
4503
4521
  },
4504
4522
  async handleDraw() {
4505
4523
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4506
4524
  this.etime = this.factor.etime;
4507
- const t = await this.webgl.loadImg(this.factor.raw);
4508
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4525
+ const a = await this.webgl.loadImg(this.factor.raw);
4526
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4509
4527
  }
4510
4528
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4511
4529
  }
4512
4530
  }
4513
- }, Ce = (t) => (G("data-v-67e5094b"), t = t(), H(), t), Ii = { key: 0 }, Ri = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "°C", -1)), Di = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Ai = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "10", -1)), Mi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "20", -1)), $i = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "30", -1)), Bi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "40", -1)), Ni = [
4531
+ }, Ce = (a) => (H("data-v-67e5094b"), a = a(), G(), a), Ii = { key: 0 }, Ri = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "°C", -1)), Di = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Ai = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "10", -1)), Mi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "20", -1)), $i = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "30", -1)), Bi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "40", -1)), Ni = [
4514
4532
  Ri,
4515
4533
  Di,
4516
4534
  Ai,
@@ -4518,12 +4536,12 @@ const Ei = {
4518
4536
  $i,
4519
4537
  Bi
4520
4538
  ];
4521
- function Wi(t, e, a, r, i, o) {
4539
+ function Wi(a, e, t, r, i, o) {
4522
4540
  var n;
4523
- return (n = a.factor) != null && n.active ? (L(), x("div", Ii, [
4541
+ return (n = t.factor) != null && n.active ? (L(), x("div", Ii, [
4524
4542
  l("div", {
4525
4543
  class: "legend-bars flex-center",
4526
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4544
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4527
4545
  }, Ni, 4)
4528
4546
  ])) : $("", !0);
4529
4547
  }
@@ -4564,15 +4582,15 @@ const ji = {
4564
4582
  watch: {
4565
4583
  "factor.version": {
4566
4584
  handler() {
4567
- var t;
4568
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4585
+ var a;
4586
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4569
4587
  },
4570
4588
  deep: !0
4571
4589
  },
4572
4590
  toggleVersion: {
4573
4591
  handler() {
4574
- var t, e;
4575
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4592
+ var a, e;
4593
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4576
4594
  },
4577
4595
  immediate: !0
4578
4596
  }
@@ -4584,9 +4602,9 @@ const ji = {
4584
4602
  this.handleRender();
4585
4603
  }, 500);
4586
4604
  else if (this.factor) {
4587
- const t = (/* @__PURE__ */ new Date()).valueOf();
4588
- let e = 0, a = 0;
4589
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[water-temp] add elapsed: ", a, ", total: ", e += a);
4605
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4606
+ let e = 0, t = 0;
4607
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[water-temp] add elapsed: ", t, ", total: ", e += t);
4590
4608
  }
4591
4609
  },
4592
4610
  handleClear() {
@@ -4595,7 +4613,7 @@ const ji = {
4595
4613
  handleSetup() {
4596
4614
  if (!this.context) {
4597
4615
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4598
- const t = [
4616
+ const a = [
4599
4617
  [0, "rgb(149, 137, 211)"],
4600
4618
  [100 / 255, "rgb(149, 137, 211)"],
4601
4619
  // -20°C
@@ -4619,36 +4637,36 @@ const ji = {
4619
4637
  // 40
4620
4638
  [1, "rgb(138, 43, 10)"]
4621
4639
  ];
4622
- this.rampColor = this.webgl.setup(this.context, t);
4623
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4624
- this.program = e, this.aPositionBuffer = a;
4640
+ this.rampColor = this.webgl.setup(this.context, a);
4641
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4642
+ this.program = e, this.aPositionBuffer = t;
4625
4643
  }
4626
4644
  },
4627
4645
  async handleDraw() {
4628
4646
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4629
4647
  this.etime = this.factor.etime;
4630
- const t = await this.webgl.loadImg(this.factor.raw);
4631
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4648
+ const a = await this.webgl.loadImg(this.factor.raw);
4649
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4632
4650
  }
4633
4651
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4634
4652
  }
4635
4653
  }
4636
- }, he = (t) => (G("data-v-389ea886"), t = t(), H(), t), Fi = { key: 0 }, Vi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ui = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), Gi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), Hi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), Zi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), Ji = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), Xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), Yi = [
4654
+ }, he = (a) => (H("data-v-389ea886"), a = a(), G(), a), Fi = { key: 0 }, Vi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ui = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), Zi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), Hi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), Gi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), Ji = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), Xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), Yi = [
4637
4655
  Vi,
4638
4656
  Ui,
4639
- Gi,
4640
- Hi,
4641
4657
  Zi,
4658
+ Hi,
4659
+ Gi,
4642
4660
  Ji,
4643
4661
  Xi,
4644
4662
  qi
4645
4663
  ];
4646
- function Qi(t, e, a, r, i, o) {
4664
+ function Qi(a, e, t, r, i, o) {
4647
4665
  var n;
4648
- return (n = a.factor) != null && n.active ? (L(), x("div", Fi, [
4666
+ return (n = t.factor) != null && n.active ? (L(), x("div", Fi, [
4649
4667
  l("div", {
4650
4668
  class: "legend-bars flex-center",
4651
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4669
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4652
4670
  }, Yi, 4)
4653
4671
  ])) : $("", !0);
4654
4672
  }
@@ -4689,15 +4707,15 @@ const er = {
4689
4707
  watch: {
4690
4708
  "factor.version": {
4691
4709
  handler() {
4692
- var t;
4693
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4710
+ var a;
4711
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4694
4712
  },
4695
4713
  deep: !0
4696
4714
  },
4697
4715
  toggleVersion: {
4698
4716
  handler() {
4699
- var t, e;
4700
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4717
+ var a, e;
4718
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4701
4719
  },
4702
4720
  immediate: !0
4703
4721
  }
@@ -4709,9 +4727,9 @@ const er = {
4709
4727
  this.handleRender();
4710
4728
  }, 500);
4711
4729
  else if (this.factor) {
4712
- const t = (/* @__PURE__ */ new Date()).valueOf();
4713
- let e = 0, a = 0;
4714
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[water-temp] add elapsed: ", a, ", total: ", e += a);
4730
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4731
+ let e = 0, t = 0;
4732
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[water-temp] add elapsed: ", t, ", total: ", e += t);
4715
4733
  }
4716
4734
  },
4717
4735
  handleClear() {
@@ -4720,7 +4738,7 @@ const er = {
4720
4738
  handleSetup() {
4721
4739
  if (!this.context) {
4722
4740
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4723
- const t = [
4741
+ const a = [
4724
4742
  [0, "rgba(76, 165, 228, 0)"],
4725
4743
  [50 / 255, "rgba(76, 165, 228, 0)"],
4726
4744
  // 0m
@@ -4735,21 +4753,21 @@ const er = {
4735
4753
  [1, "rgb(180, 209, 216)"]
4736
4754
  // 2m
4737
4755
  ];
4738
- this.rampColor = this.webgl.setup(this.context, t);
4739
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4740
- this.program = e, this.aPositionBuffer = a;
4756
+ this.rampColor = this.webgl.setup(this.context, a);
4757
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4758
+ this.program = e, this.aPositionBuffer = t;
4741
4759
  }
4742
4760
  },
4743
4761
  async handleDraw() {
4744
4762
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4745
4763
  this.etime = this.factor.etime;
4746
- const t = await this.webgl.loadImg(this.factor.raw);
4747
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4764
+ const a = await this.webgl.loadImg(this.factor.raw);
4765
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4748
4766
  }
4749
4767
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4750
4768
  }
4751
4769
  }
4752
- }, Se = (t) => (G("data-v-db805141"), t = t(), H(), t), tr = { key: 0 }, ar = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "m", -1)), ir = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), rr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0.5", -1)), or = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1", -1)), sr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), nr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "2", -1)), lr = [
4770
+ }, Se = (a) => (H("data-v-db805141"), a = a(), G(), a), tr = { key: 0 }, ar = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "m", -1)), ir = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), rr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0.5", -1)), or = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1", -1)), sr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), nr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "2", -1)), lr = [
4753
4771
  ar,
4754
4772
  ir,
4755
4773
  rr,
@@ -4757,12 +4775,12 @@ const er = {
4757
4775
  sr,
4758
4776
  nr
4759
4777
  ];
4760
- function cr(t, e, a, r, i, o) {
4778
+ function cr(a, e, t, r, i, o) {
4761
4779
  var n;
4762
- return (n = a.factor) != null && n.active ? (L(), x("div", tr, [
4780
+ return (n = t.factor) != null && n.active ? (L(), x("div", tr, [
4763
4781
  l("div", {
4764
4782
  class: "legend-bars flex-center",
4765
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4783
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4766
4784
  }, lr, 4)
4767
4785
  ])) : $("", !0);
4768
4786
  }
@@ -4808,56 +4826,56 @@ const dr = {
4808
4826
  },
4809
4827
  computed: {
4810
4828
  computeTime() {
4811
- return function(t) {
4812
- return t ? `${te(t).utc().format("MMM-DD,HHmm[Z]")}` : "-";
4829
+ return function(a) {
4830
+ return a ? `${Z(a).utc().format("MMM-DD,HHmm[Z]")}` : "-";
4813
4831
  };
4814
4832
  },
4815
4833
  computeLat() {
4816
- return function(t, e = 4) {
4817
- return j.lat2pretty(t, e).pretty;
4834
+ return function(a, e = 4) {
4835
+ return j.lat2pretty(a, e).pretty;
4818
4836
  };
4819
4837
  },
4820
4838
  computeLng() {
4821
- return function(t, e = 4) {
4822
- return j.lng2pretty(t, e).pretty;
4839
+ return function(a, e = 4) {
4840
+ return j.lng2pretty(a, e).pretty;
4823
4841
  };
4824
4842
  },
4825
4843
  roundPrecision() {
4826
- return function(t, e = 4) {
4827
- return isNaN(t) ? "-" : j.roundPrecision(t, e);
4844
+ return function(a, e = 4) {
4845
+ return isNaN(a) ? "-" : j.roundPrecision(a, e);
4828
4846
  };
4829
4847
  }
4830
4848
  },
4831
4849
  methods: {
4832
4850
  handleBind() {
4833
- var t, e;
4834
- this.show ? (t = this.map) == null || t.on("click", this.handleClick) : ((e = this.map) == null || e.off("click", this.handleClick), this.showMeteo = !1);
4851
+ var a, e;
4852
+ this.show ? (a = this.map) == null || a.on("click", this.handleClick) : ((e = this.map) == null || e.off("click", this.handleClick), this.showMeteo = !1);
4835
4853
  },
4836
- handleClick(t) {
4837
- t.originalEvent.stopPropagation();
4838
- const e = t.originalEvent.target.className;
4839
- e.indexOf("close") > -1 ? this.showMeteo = !1 : e === "more" ? this.$emit("more", this.meteo) : this.$emit("point", t.lngLat);
4854
+ handleClick(a) {
4855
+ a.originalEvent.stopPropagation();
4856
+ const e = a.originalEvent.target.className;
4857
+ e.indexOf("close") > -1 ? this.showMeteo = !1 : e === "more" ? this.$emit("more", this.meteo) : this.$emit("point", a.lngLat);
4840
4858
  },
4841
4859
  handleRender() {
4842
- var t;
4860
+ var a;
4843
4861
  if (this.meteo) {
4844
4862
  const e = document.getElementById("point-meteo");
4845
- this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ne.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4863
+ this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ne.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4846
4864
  }
4847
4865
  }
4848
4866
  }
4849
- }, X = (t) => (G("data-v-ef7fa87d"), t = t(), H(), t), pr = {
4867
+ }, q = (a) => (H("data-v-ef7fa87d"), a = a(), G(), a), pr = {
4850
4868
  id: "point-meteo",
4851
4869
  class: "point-meteo"
4852
- }, mr = { class: "meteo-box" }, ur = { class: "header-box" }, yr = { class: "main" }, fr = { class: "sub" }, gr = { class: "main-box" }, br = { class: "flex-space" }, vr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind", -1)), _r = { class: "flex-space" }, wr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Lr = { class: "flex-space" }, xr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Cr = { class: "flex-space" }, Sr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), kr = { class: "flex-space" }, zr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Current", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Er = { class: "flex-space" }, Ir = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Rr = { class: "flex-space" }, Dr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Ar = { class: "flex-space" }, Mr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), $r = {
4870
+ }, mr = { class: "meteo-box" }, ur = { class: "header-box" }, yr = { class: "main" }, fr = { class: "sub" }, gr = { class: "main-box" }, br = { class: "flex-space" }, vr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Wind", -1)), _r = { class: "flex-space" }, wr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Lr = { class: "flex-space" }, xr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Cr = { class: "flex-space" }, Sr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), kr = { class: "flex-space" }, zr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Current", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Er = { class: "flex-space" }, Ir = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Rr = { class: "flex-space" }, Dr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Ar = { class: "flex-space" }, Mr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), $r = {
4853
4871
  key: 0,
4854
4872
  class: "flex-space",
4855
4873
  style: { "justify-content": "flex-end" }
4856
- }, Br = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Nr = [
4874
+ }, Br = /* @__PURE__ */ q(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Nr = [
4857
4875
  Br
4858
4876
  ];
4859
- function Wr(t, e, a, r, i, o) {
4860
- var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, Z, de, pe, me, ue, ye, fe, ge, ae, J, q, be, Y, E, V, ve, Q, _e, ie, re, oe, ke, ze, Pe, Te, Ee;
4877
+ function Wr(a, e, t, r, i, o) {
4878
+ var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, J, de, pe, me, ue, ye, fe, ge, ae, X, Y, be, Q, E, V, ve, K, _e, ie, re, oe, ke, ze, Pe, Te, Ee;
4861
4879
  return Me((L(), x("div", pr, [
4862
4880
  l("div", mr, [
4863
4881
  l("div", ur, [
@@ -4865,48 +4883,48 @@ function Wr(t, e, a, r, i, o) {
4865
4883
  class: "iconfont close",
4866
4884
  onClick: e[0] || (e[0] = (Ne) => i.showMeteo = !1)
4867
4885
  }, ""),
4868
- l("div", yr, S(o.computeLat((n = a.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = a.meteo) == null ? void 0 : s.lng)), 1),
4869
- l("div", fr, S(o.computeTime((c = a.meteo) == null ? void 0 : c.utc)), 1)
4886
+ l("div", yr, S(o.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = t.meteo) == null ? void 0 : s.lng)), 1),
4887
+ l("div", fr, S(o.computeTime((c = t.meteo) == null ? void 0 : c.utc)), 1)
4870
4888
  ]),
4871
4889
  l("div", gr, [
4872
4890
  l("div", br, [
4873
4891
  vr,
4874
- l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = a.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
4892
+ l("span", null, S(((d = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.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)
4875
4893
  ]),
4876
4894
  l("div", _r, [
4877
4895
  wr,
4878
- l("span", null, S(((w = (g = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((W = (B = (A = a.meteo) == null ? void 0 : A.wave) == null ? void 0 : B.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4896
+ l("span", null, S(((w = (g = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (_ = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((W = (B = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : B.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4879
4897
  ]),
4880
4898
  l("div", Lr, [
4881
4899
  xr,
4882
- l("span", null, S(((de = (Z = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : Z.swell) == null ? void 0 : de.direction) || "-") + "/" + S(o.roundPrecision((ue = (me = (pe = a.meteo) == null ? void 0 : pe.wave) == null ? void 0 : me.swell) == null ? void 0 : ue.height, 1)) + "[m]/" + S(o.roundPrecision((ge = (fe = (ye = a.meteo) == null ? void 0 : ye.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.period, 1)) + "[s]", 1)
4900
+ l("span", null, S(((de = (J = (O = t.meteo) == null ? void 0 : O.wave) == null ? void 0 : J.swell) == null ? void 0 : de.direction) || "-") + "/" + S(o.roundPrecision((ue = (me = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : me.swell) == null ? void 0 : ue.height, 1)) + "[m]/" + S(o.roundPrecision((ge = (fe = (ye = t.meteo) == null ? void 0 : ye.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.period, 1)) + "[s]", 1)
4883
4901
  ]),
4884
4902
  l("div", Cr, [
4885
4903
  Sr,
4886
- l("span", null, S(((q = (J = (ae = a.meteo) == null ? void 0 : ae.wave) == null ? void 0 : J.sig) == null ? void 0 : q.direction) || "-") + "/" + S(o.roundPrecision((E = (Y = (be = a.meteo) == null ? void 0 : be.wave) == null ? void 0 : Y.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((Q = (ve = (V = a.meteo) == null ? void 0 : V.wave) == null ? void 0 : ve.sig) == null ? void 0 : Q.period, 1)) + "[s]", 1)
4904
+ l("span", null, S(((Y = (X = (ae = t.meteo) == null ? void 0 : ae.wave) == null ? void 0 : X.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((E = (Q = (be = t.meteo) == null ? void 0 : be.wave) == null ? void 0 : Q.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((K = (ve = (V = t.meteo) == null ? void 0 : V.wave) == null ? void 0 : ve.sig) == null ? void 0 : K.period, 1)) + "[s]", 1)
4887
4905
  ]),
4888
4906
  l("div", kr, [
4889
4907
  zr,
4890
- l("span", null, S(((ie = (_e = a.meteo) == null ? void 0 : _e.current) == null ? void 0 : ie.direction) || "-") + "/" + S(o.roundPrecision((oe = (re = a.meteo) == null ? void 0 : re.current) == null ? void 0 : oe.kts, 2)) + "[kts]", 1)
4908
+ l("span", null, S(((ie = (_e = t.meteo) == null ? void 0 : _e.current) == null ? void 0 : ie.direction) || "-") + "/" + S(o.roundPrecision((oe = (re = t.meteo) == null ? void 0 : re.current) == null ? void 0 : oe.kts, 2)) + "[kts]", 1)
4891
4909
  ]),
4892
4910
  l("div", Pr, [
4893
4911
  Tr,
4894
- l("span", null, S(o.roundPrecision((ze = (ke = a.meteo) == null ? void 0 : ke.precip) == null ? void 0 : ze.inter6h, 2)) + "[mm]", 1)
4912
+ l("span", null, S(o.roundPrecision((ze = (ke = t.meteo) == null ? void 0 : ke.precip) == null ? void 0 : ze.inter6h, 2)) + "[mm]", 1)
4895
4913
  ]),
4896
4914
  l("div", Er, [
4897
4915
  Ir,
4898
- l("span", null, S(o.roundPrecision(((Pe = a.meteo) == null ? void 0 : Pe.visibility) / 1852, 0)) + "[nm]", 1)
4916
+ l("span", null, S(o.roundPrecision(((Pe = t.meteo) == null ? void 0 : Pe.visibility) / 1852, 0)) + "[nm]", 1)
4899
4917
  ]),
4900
4918
  l("div", Rr, [
4901
4919
  Dr,
4902
- l("span", null, S(o.roundPrecision((Te = a.meteo) == null ? void 0 : Te.temp, 0)) + "[°C]", 1)
4920
+ l("span", null, S(o.roundPrecision((Te = t.meteo) == null ? void 0 : Te.temp, 0)) + "[°C]", 1)
4903
4921
  ]),
4904
4922
  l("div", Ar, [
4905
4923
  Mr,
4906
- l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
4924
+ l("span", null, S(o.roundPrecision((Ee = t.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
4907
4925
  ])
4908
4926
  ]),
4909
- t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", $r, Nr)) : $("", !0)
4927
+ a.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", $r, Nr)) : $("", !0)
4910
4928
  ])
4911
4929
  ], 512)), [
4912
4930
  [$e, i.showMeteo]
@@ -5002,7 +5020,7 @@ const Or = /* @__PURE__ */ T(dr, [["render", Wr], ["__scopeId", "data-v-ef7fa87d
5002
5020
  }
5003
5021
  }
5004
5022
  };
5005
- function Fr(t, e, a, r, i, o) {
5023
+ function Fr(a, e, t, r, i, o) {
5006
5024
  return L(), x("div");
5007
5025
  }
5008
5026
  const Vr = /* @__PURE__ */ T(jr, [["render", Fr]]), Ur = {
@@ -5125,10 +5143,10 @@ const Vr = /* @__PURE__ */ T(jr, [["render", Fr]]), Ur = {
5125
5143
  }
5126
5144
  }
5127
5145
  };
5128
- function Gr(t, e, a, r, i, o) {
5146
+ function Zr(a, e, t, r, i, o) {
5129
5147
  return L(), x("div");
5130
5148
  }
5131
- const Hr = /* @__PURE__ */ T(Ur, [["render", Gr]]), Zr = {
5149
+ const Hr = /* @__PURE__ */ T(Ur, [["render", Zr]]), Gr = {
5132
5150
  name: "IdmEcaZone",
5133
5151
  props: {
5134
5152
  map: {
@@ -5157,8 +5175,8 @@ const Hr = /* @__PURE__ */ T(Ur, [["render", Gr]]), Zr = {
5157
5175
  },
5158
5176
  methods: {
5159
5177
  handleRender() {
5160
- var t;
5161
- this.map ? (this.handleClear(), this.zone && (this.map.getSource(this.source) ? (t = this.map) == null || t.getSource(this.source).setData(this.zone) : (this.map.addSource(this.source, {
5178
+ var a;
5179
+ this.map ? (this.handleClear(), this.zone && (this.map.getSource(this.source) ? (a = this.map) == null || a.getSource(this.source).setData(this.zone) : (this.map.addSource(this.source, {
5162
5180
  type: "geojson",
5163
5181
  data: this.zone
5164
5182
  }), this.map.addLayer({
@@ -5216,10 +5234,10 @@ const Hr = /* @__PURE__ */ T(Ur, [["render", Gr]]), Zr = {
5216
5234
  }
5217
5235
  }
5218
5236
  };
5219
- function Jr(t, e, a, r, i, o) {
5237
+ function Jr(a, e, t, r, i, o) {
5220
5238
  return L(), x("div");
5221
5239
  }
5222
- const Xr = /* @__PURE__ */ T(Zr, [["render", Jr]]);
5240
+ const Xr = /* @__PURE__ */ T(Gr, [["render", Jr]]);
5223
5241
  const qr = {
5224
5242
  name: "IdmAlertZone",
5225
5243
  props: {
@@ -5248,23 +5266,23 @@ const qr = {
5248
5266
  watch: {
5249
5267
  zone: {
5250
5268
  handler() {
5251
- var t, e;
5252
- this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick));
5269
+ var a, e;
5270
+ this.zone ? (this.handleRender(), (a = this.map) == null || a.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick));
5253
5271
  }
5254
5272
  }
5255
5273
  },
5256
5274
  methods: {
5257
- handleClick(t) {
5275
+ handleClick(a) {
5258
5276
  var r;
5259
- const e = t.features[0], a = (r = this.zone) == null ? void 0 : r.features.filter((i) => {
5277
+ const e = a.features[0], t = (r = this.zone) == null ? void 0 : r.features.filter((i) => {
5260
5278
  var o;
5261
5279
  return i.properties.id === ((o = e == null ? void 0 : e.properties) == null ? void 0 : o.id);
5262
5280
  })[0];
5263
- a && (this.showZone = !0, this.form = { ...a.properties });
5281
+ t && (this.showZone = !0, this.form = { ...t.properties });
5264
5282
  },
5265
5283
  handleRender() {
5266
- var t;
5267
- this.map ? (this.handleClear(), this.zone && (this.map.getSource(this.source) ? (t = this.map) == null || t.getSource(this.source).setData(this.zone) : (this.map.addSource(this.source, {
5284
+ var a;
5285
+ this.map ? (this.handleClear(), this.zone && (this.map.getSource(this.source) ? (a = this.map) == null || a.getSource(this.source).setData(this.zone) : (this.map.addSource(this.source, {
5268
5286
  type: "geojson",
5269
5287
  data: this.zone
5270
5288
  }), this.map.addLayer({
@@ -5347,7 +5365,7 @@ const qr = {
5347
5365
  }
5348
5366
  }
5349
5367
  }, Yr = { id: "zone-info" }, Qr = ["innerHTML"];
5350
- function Kr(t, e, a, r, i, o) {
5368
+ function Kr(a, e, t, r, i, o) {
5351
5369
  var n;
5352
5370
  return Me((L(), x("div", Yr, [
5353
5371
  l("div", {
@@ -5388,43 +5406,43 @@ const to = {
5388
5406
  },
5389
5407
  computed: {
5390
5408
  computeLat() {
5391
- return function(t) {
5392
- return j.lat2pretty(t, 4).pretty;
5409
+ return function(a) {
5410
+ return j.lat2pretty(a, 4).pretty;
5393
5411
  };
5394
5412
  },
5395
5413
  computeLng() {
5396
- return function(t) {
5397
- return j.lng2pretty(t, 4).pretty;
5414
+ return function(a) {
5415
+ return j.lng2pretty(a, 4).pretty;
5398
5416
  };
5399
5417
  }
5400
5418
  },
5401
5419
  watch: {
5402
5420
  port: {
5403
5421
  handler() {
5404
- var t, e;
5405
- this.port ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
5422
+ var a, e;
5423
+ this.port ? (this.handleRender(), (a = this.map) == null || a.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
5406
5424
  }
5407
5425
  }
5408
5426
  },
5409
5427
  methods: {
5410
- handleClick(t) {
5428
+ handleClick(a) {
5411
5429
  var r;
5412
- const e = t.features[0], a = (r = this.port) == null ? void 0 : r.features.filter((i) => {
5430
+ const e = a.features[0], t = (r = this.port) == null ? void 0 : r.features.filter((i) => {
5413
5431
  var o;
5414
5432
  return i.properties.id === ((o = e == null ? void 0 : e.properties) == null ? void 0 : o.id);
5415
5433
  })[0];
5416
- if (a) {
5417
- this.showPort = !0, this.form = { ...a.properties }, this.form.lng = a.geometry.coordinates[0], this.form.lat = a.geometry.coordinates[1];
5434
+ if (t) {
5435
+ this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
5418
5436
  const i = document.getElementById("port-info");
5419
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5437
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new ne.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5420
5438
  }
5421
5439
  },
5422
5440
  handleEmit() {
5423
5441
  this.$emit("port", this.form);
5424
5442
  },
5425
5443
  handleRender() {
5426
- var t;
5427
- this.map ? this.port && (this.map.getSource(this.source) ? (t = this.map) == null || t.getSource(this.source).setData(this.port) : (this.map.addSource(this.source, {
5444
+ var a;
5445
+ this.map ? this.port && (this.map.getSource(this.source) ? (a = this.map) == null || a.getSource(this.source).setData(this.port) : (this.map.addSource(this.source, {
5428
5446
  type: "geojson",
5429
5447
  data: this.port
5430
5448
  }), this.map.addLayer({
@@ -5455,11 +5473,11 @@ const to = {
5455
5473
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5456
5474
  }
5457
5475
  }
5458
- }, Be = (t) => (G("data-v-4ab013cc"), t = t(), H(), t), ao = { id: "port-info" }, io = { class: "port-box" }, ro = { class: "flex-start" }, oo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), so = { class: "flex-start" }, no = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), lo = { class: "flex-start" }, co = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), ho = {
5476
+ }, Be = (a) => (H("data-v-4ab013cc"), a = a(), G(), a), ao = { id: "port-info" }, io = { class: "port-box" }, ro = { class: "flex-start" }, oo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), so = { class: "flex-start" }, no = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), lo = { class: "flex-start" }, co = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), ho = {
5459
5477
  class: "flex-start",
5460
5478
  style: { "align-items": "flex-start" }
5461
5479
  }, po = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
5462
- function mo(t, e, a, r, i, o) {
5480
+ function mo(a, e, t, r, i, o) {
5463
5481
  return Me((L(), x("div", ao, [
5464
5482
  l("div", {
5465
5483
  class: "close iconfont",
@@ -5559,7 +5577,7 @@ const uo = /* @__PURE__ */ T(to, [["render", mo], ["__scopeId", "data-v-4ab013cc
5559
5577
  }
5560
5578
  }
5561
5579
  };
5562
- function fo(t, e, a, r, i, o) {
5580
+ function fo(a, e, t, r, i, o) {
5563
5581
  return L(), x("div");
5564
5582
  }
5565
5583
  const go = /* @__PURE__ */ T(yo, [["render", fo]]), bo = {
@@ -5727,7 +5745,7 @@ const go = /* @__PURE__ */ T(yo, [["render", fo]]), bo = {
5727
5745
  }
5728
5746
  }
5729
5747
  };
5730
- function vo(t, e, a, r, i, o) {
5748
+ function vo(a, e, t, r, i, o) {
5731
5749
  return L(), x("div");
5732
5750
  }
5733
5751
  const _o = /* @__PURE__ */ T(bo, [["render", vo]]), wo = {
@@ -5818,7 +5836,7 @@ const _o = /* @__PURE__ */ T(bo, [["render", vo]]), wo = {
5818
5836
  }
5819
5837
  }
5820
5838
  };
5821
- function Lo(t, e, a, r, i, o) {
5839
+ function Lo(a, e, t, r, i, o) {
5822
5840
  return L(), x("div");
5823
5841
  }
5824
5842
  const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
@@ -5850,8 +5868,8 @@ const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
5850
5868
  },
5851
5869
  methods: {
5852
5870
  handleRender() {
5853
- this.map ? (this.handleClear(), this.area && (this.area.features.forEach((t) => {
5854
- t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => j.convertToMonotonicLng2(e));
5871
+ this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
5872
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => j.convertToMonotonicLng2(e));
5855
5873
  }), this.map.addSource(this.source, {
5856
5874
  type: "geojson",
5857
5875
  data: this.area
@@ -5911,7 +5929,7 @@ const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
5911
5929
  }
5912
5930
  }
5913
5931
  };
5914
- function So(t, e, a, r, i, o) {
5932
+ function So(a, e, t, r, i, o) {
5915
5933
  return L(), x("div");
5916
5934
  }
5917
5935
  const ko = /* @__PURE__ */ T(Co, [["render", So]]), zo = {
@@ -5963,7 +5981,7 @@ const ko = /* @__PURE__ */ T(Co, [["render", So]]), zo = {
5963
5981
  }
5964
5982
  }
5965
5983
  };
5966
- function Po(t, e, a, r, i, o) {
5984
+ function Po(a, e, t, r, i, o) {
5967
5985
  return L(), x("div");
5968
5986
  }
5969
5987
  const To = /* @__PURE__ */ T(zo, [["render", Po]]);
@@ -6006,37 +6024,37 @@ const Eo = {
6006
6024
  },
6007
6025
  map: {
6008
6026
  handler() {
6009
- var t;
6010
- this.map && ((t = this.map) == null || t.on("mousemove", this.handleMouseMove));
6027
+ var a;
6028
+ this.map && ((a = this.map) == null || a.on("mousemove", this.handleMouseMove));
6011
6029
  },
6012
6030
  immediate: !0
6013
6031
  },
6014
6032
  toggleVersion: {
6015
6033
  handler() {
6016
- var t, e, a;
6017
- this.right = (((t = document.getElementsByClassName("legend-bars")[0]) == null ? void 0 : t.clientWidth) || -10) + (((e = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : e.clientWidth) || 0) + (((a = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : a.clientWidth) || 0) + 20;
6034
+ var a, e, t;
6035
+ this.right = (((a = document.getElementsByClassName("legend-bars")[0]) == null ? void 0 : a.clientWidth) || -10) + (((e = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : e.clientWidth) || 0) + (((t = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : t.clientWidth) || 0) + 20;
6018
6036
  },
6019
6037
  immediate: !0
6020
6038
  }
6021
6039
  },
6022
6040
  methods: {
6023
6041
  handleBind() {
6024
- var t, e;
6025
- this.show ? ((t = this.map) == null || t.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6042
+ var a, e;
6043
+ this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6026
6044
  },
6027
- handleMouseMove(t) {
6028
- const e = t.lngLat, a = j.lng2pretty(e.lng, 2), r = j.lat2pretty(e.lat, 2);
6029
- this.lngLat = { lng: a, lat: r };
6045
+ handleMouseMove(a) {
6046
+ const e = a.lngLat, t = j.lng2pretty(e.lng, 2), r = j.lat2pretty(e.lat, 2);
6047
+ this.lngLat = { lng: t, lat: r };
6030
6048
  },
6031
6049
  handleComputeLatLngs() {
6032
6050
  var r;
6033
- const t = (r = this.map) == null ? void 0 : r.getZoom();
6034
- console.log(t);
6051
+ const a = (r = this.map) == null ? void 0 : r.getZoom();
6052
+ console.log(a);
6035
6053
  let e = 30;
6036
- t > 4 ? e = 10 : t > 3 && (e = 15);
6037
- const a = [];
6054
+ a > 4 ? e = 10 : a > 3 && (e = 15);
6055
+ const t = [];
6038
6056
  for (let i = -60; i < 90; i += e)
6039
- a.push({
6057
+ t.push({
6040
6058
  type: "Feature",
6041
6059
  geometry: {
6042
6060
  type: "LineString",
@@ -6047,7 +6065,7 @@ const Eo = {
6047
6065
  }
6048
6066
  });
6049
6067
  for (let i = -180; i < 180; i += e)
6050
- a.push({
6068
+ t.push({
6051
6069
  type: "Feature",
6052
6070
  geometry: {
6053
6071
  type: "LineString",
@@ -6059,7 +6077,7 @@ const Eo = {
6059
6077
  });
6060
6078
  for (let i = 180; i > -180; i -= e)
6061
6079
  for (let o = -60; o < 90; o += e)
6062
- a.push({
6080
+ t.push({
6063
6081
  type: "Feature",
6064
6082
  geometry: {
6065
6083
  type: "Point",
@@ -6069,21 +6087,21 @@ const Eo = {
6069
6087
  val: `${o > 0 ? o + " N" : o === 0 ? o : o * -1 + " S"}, ${i > 0 ? i + " E" : i * -1 + " W"}`
6070
6088
  }
6071
6089
  });
6072
- return a;
6090
+ return t;
6073
6091
  },
6074
6092
  handleZoomEnd() {
6075
6093
  var e;
6076
- const t = this.handleComputeLatLngs();
6077
- (e = this.map) == null || e.getSource(this.source).setData(C.featureCollection(t));
6094
+ const a = this.handleComputeLatLngs();
6095
+ (e = this.map) == null || e.getSource(this.source).setData(C.featureCollection(a));
6078
6096
  },
6079
6097
  handleRender() {
6080
6098
  if (this.map) {
6081
- const t = this.handleComputeLatLngs();
6099
+ const a = this.handleComputeLatLngs();
6082
6100
  this.map.addSource(this.source, {
6083
6101
  type: "geojson",
6084
6102
  data: {
6085
6103
  type: "FeatureCollection",
6086
- features: t
6104
+ features: a
6087
6105
  }
6088
6106
  }), this.map.addLayer({
6089
6107
  id: this.layer,
@@ -6118,16 +6136,16 @@ const Eo = {
6118
6136
  }
6119
6137
  },
6120
6138
  handleClear() {
6121
- var t, e, a, r, i, o;
6122
- (t = this.map) != null && t.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (a = this.map) != null && a.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
6139
+ var a, e, t, r, i, o;
6140
+ (a = this.map) != null && a.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (t = this.map) != null && t.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
6123
6141
  }
6124
6142
  }
6125
- }, Io = (t) => (G("data-v-7367f59b"), t = t(), H(), t), Ro = /* @__PURE__ */ Io(() => /* @__PURE__ */ l("span", null, ", ", -1));
6126
- function Do(t, e, a, r, i, o) {
6143
+ }, Io = (a) => (H("data-v-7367f59b"), a = a(), G(), a), Ro = /* @__PURE__ */ Io(() => /* @__PURE__ */ l("span", null, ", ", -1));
6144
+ function Do(a, e, t, r, i, o) {
6127
6145
  return i.lngLat ? (L(), x("div", {
6128
6146
  key: 0,
6129
6147
  class: "lat-lng-tip",
6130
- style: F({ right: i.right + "px", bottom: a.bottom })
6148
+ style: F({ right: i.right + "px", bottom: t.bottom })
6131
6149
  }, [
6132
6150
  l("span", null, S(i.lngLat.lat.pretty), 1),
6133
6151
  Ro,
@@ -6175,9 +6193,9 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6175
6193
  },
6176
6194
  methods: {
6177
6195
  handleBind() {
6178
- var t, e, a, r, i, o, n, s, c, h;
6196
+ var a, e, t, r, i, o, n, s, c, h;
6179
6197
  if (this.show)
6180
- (t = this.map) == null || t.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (a = this.map) == null || a.on("dblclick", this.handleDblClick), (r = this.map) == null || r.on("click", this.handleClick), (i = this.map) == null || i.on("contextmenu", this.handleContextmenu), this.map && (this.map.getCanvas().style.cursor = "crosshair");
6198
+ (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");
6181
6199
  else {
6182
6200
  (o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (n = this.map) == null || n.off("mousemove", this.handleMove), (s = this.map) == null || s.off("dblclick", this.handleDblClick), (c = this.map) == null || c.off("click", this.handleClick), (h = this.map) == null || h.off("contextmenu", this.handleContextmenu);
6183
6201
  for (const d of this.geojson)
@@ -6185,22 +6203,22 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6185
6203
  this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
6186
6204
  }
6187
6205
  },
6188
- handleKeydown(t) {
6189
- if (t.key === "Shift") {
6206
+ handleKeydown(a) {
6207
+ if (a.key === "Shift") {
6190
6208
  this.navigation = this.navigation === "RL" ? "GC" : "RL";
6191
- const a = this.geojson.at(-1).features.filter((r) => r.geometry.type === "Point");
6192
- a.length && (a.at(-1).properties.mode = this.navigation);
6209
+ const t = this.geojson.at(-1).features.filter((r) => r.geometry.type === "Point");
6210
+ t.length && (t.at(-1).properties.mode = this.navigation);
6193
6211
  }
6194
6212
  },
6195
- handleDrag(t) {
6196
- var a, r, i, o, n, s, c, h, d, p;
6197
- const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
6213
+ handleDrag(a) {
6214
+ var t, r, i, o, n, s, c, h, d, p;
6215
+ const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6198
6216
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6199
6217
  const f = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
6200
6218
  this.pointMarkers[f.id].filter((u) => {
6201
6219
  var v;
6202
6220
  return ((v = u._element) == null ? void 0 : v.id) === e;
6203
- })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6221
+ })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6204
6222
  let b;
6205
6223
  f.features.forEach((u, v) => {
6206
6224
  if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
@@ -6212,45 +6230,45 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6212
6230
  this.handleTmpPointUpdate(
6213
6231
  f,
6214
6232
  y[b - 1],
6215
- { lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
6233
+ { lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = a.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
6216
6234
  b === y.length - 1 ? void 0 : y[b + 1]
6217
6235
  );
6218
6236
  }
6219
6237
  },
6220
- handleDragEnd(t) {
6221
- var a, r, i, o, n, s, c, h, d, p;
6222
- const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
6238
+ handleDragEnd(a) {
6239
+ var t, r, i, o, n, s, c, h, d, p;
6240
+ const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6223
6241
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6224
6242
  const f = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
6225
6243
  this.pointMarkers[f.id].filter((y) => {
6226
6244
  var u;
6227
6245
  return ((u = y._element) == null ? void 0 : u.id) === e;
6228
- })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6246
+ })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6229
6247
  const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
6230
- b.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6248
+ b.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = a.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6231
6249
  }
6232
6250
  },
6233
- handleContextmenu(t) {
6234
- var a, r, i, o;
6235
- t.preventDefault(), (a = this.contextmenu) == null || a.remove();
6236
- const e = (o = (i = (r = t.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
6251
+ handleContextmenu(a) {
6252
+ var t, r, i, o;
6253
+ a.preventDefault(), (t = this.contextmenu) == null || t.remove();
6254
+ const e = (o = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
6237
6255
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6238
6256
  const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
6239
6257
  if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6240
6258
  const h = document.createElement("div");
6241
- h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ne.Marker(h).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
6259
+ h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ne.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6242
6260
  }
6243
6261
  }
6244
6262
  },
6245
- handleClick(t) {
6246
- var a, r, i, o, n;
6247
- (a = this.contextmenu) == null || a.remove();
6248
- const e = t.originalEvent.target.className;
6263
+ handleClick(a) {
6264
+ var t, r, i, o, n;
6265
+ (t = this.contextmenu) == null || t.remove();
6266
+ const e = a.originalEvent.target.className;
6249
6267
  if (e === "marker-close") {
6250
- const s = (i = (r = t.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, c = this.geojson.filter((h) => h.id === s)[0];
6268
+ const s = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, c = this.geojson.filter((h) => h.id === s)[0];
6251
6269
  c && this.handleClear(c, !0), this.geojson = this.geojson.filter((h) => h.id !== s);
6252
6270
  } else if (e === "del-point") {
6253
- const s = (n = (o = t.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : n.split("-"), c = this.geojson.filter((h) => h.id === s[0])[0];
6271
+ const s = (n = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : n.split("-"), c = this.geojson.filter((h) => h.id === s[0])[0];
6254
6272
  c.features = c.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== s[1]), this.handlePointUpdate(c);
6255
6273
  } else if (e !== "marker-label") {
6256
6274
  let s = this.geojson.at(-1);
@@ -6258,7 +6276,7 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6258
6276
  const c = C.feature(
6259
6277
  {
6260
6278
  type: "Point",
6261
- coordinates: [t.lngLat.lng, t.lngLat.lat]
6279
+ coordinates: [a.lngLat.lng, a.lngLat.lat]
6262
6280
  },
6263
6281
  {
6264
6282
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
@@ -6268,39 +6286,39 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6268
6286
  s.features.push(c), this.handlePointUpdate(s);
6269
6287
  }
6270
6288
  },
6271
- handlePointUpdate(t) {
6272
- const e = t.features;
6289
+ handlePointUpdate(a) {
6290
+ const e = a.features;
6273
6291
  if (e.length > 1) {
6274
- let a = 0;
6292
+ let t = 0;
6275
6293
  const r = [];
6276
6294
  for (let i = 1; i < e.length; i++) {
6277
- const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = ee.calculateDistance(c, h, s.mode === "RL", 2), p = ee.calculateBearing(c, h, s.mode === "RL", 2);
6278
- a = j.roundPrecision(a + d, 2);
6295
+ const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = te.calculateDistance(c, h, s.mode === "RL", 2), p = te.calculateBearing(c, h, s.mode === "RL", 2);
6296
+ t = j.roundPrecision(t + d, 2);
6279
6297
  let f;
6280
- s.mode === "RL" ? f = j.convertToMonotonicLng([c, h]) : f = j.convertToMonotonicLng(ee.interpolateCoordinates(c, h, 200));
6298
+ s.mode === "RL" ? f = j.convertToMonotonicLng([c, h]) : f = j.convertToMonotonicLng(te.interpolateCoordinates(c, h, 200));
6281
6299
  const m = C.lineString(f.map((b) => [b.lng, b.lat]));
6282
- m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
6300
+ m.properties.dist = d, m.properties.bearing = p, m.properties.total = t, r.push(m);
6283
6301
  }
6284
- e.push(...r), t.total = a;
6302
+ e.push(...r), a.total = t;
6285
6303
  }
6286
- return this.handleRender(t), t;
6304
+ return this.handleRender(a), a;
6287
6305
  },
6288
- handleTmpPointUpdate(t, e, a, r) {
6306
+ handleTmpPointUpdate(a, e, t, r) {
6289
6307
  const i = C.featureCollection([]);
6290
6308
  let o, n;
6291
6309
  if (e) {
6292
- const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: a.lng, lat: a.lat };
6293
- o = ee.calculateDistance(h, d, c.mode === "RL", 2), n = ee.calculateBearing(h, d, c.mode === "RL", 2);
6310
+ const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
6311
+ o = te.calculateDistance(h, d, c.mode === "RL", 2), n = te.calculateBearing(h, d, c.mode === "RL", 2);
6294
6312
  let p;
6295
- c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(ee.interpolateCoordinates(h, d, 200));
6313
+ c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(te.interpolateCoordinates(h, d, 200));
6296
6314
  const f = C.lineString(p.map((m) => [m.lng, m.lat]));
6297
6315
  f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
6298
6316
  }
6299
6317
  if (r) {
6300
- const c = a.properties, h = a, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6301
- o = ee.calculateDistance(h, d, c.mode === "RL", 2), n = ee.calculateBearing(h, d, c.mode === "RL", 2);
6318
+ const c = t.properties, h = t, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6319
+ o = te.calculateDistance(h, d, c.mode === "RL", 2), n = te.calculateBearing(h, d, c.mode === "RL", 2);
6302
6320
  let p;
6303
- c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(ee.interpolateCoordinates(h, d, 200));
6321
+ c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(te.interpolateCoordinates(h, d, 200));
6304
6322
  const f = C.lineString(p.map((m) => [m.lng, m.lat]));
6305
6323
  f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
6306
6324
  }
@@ -6342,36 +6360,36 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6342
6360
  }
6343
6361
  });
6344
6362
  let s;
6345
- if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${j.roundPrecision((t.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
6346
- this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([a.lng, a.lat]);
6363
+ if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${j.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
6364
+ this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([t.lng, t.lat]);
6347
6365
  else {
6348
6366
  const c = document.createElement("div");
6349
- c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new ne.Marker(c).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
6367
+ c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new ne.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6350
6368
  }
6351
6369
  },
6352
- handleMove(t) {
6370
+ handleMove(a) {
6353
6371
  this.map.getCanvas().style.cursor = "crosshair";
6354
6372
  let e = this.geojson.at(-1);
6355
6373
  e || (e = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
6356
- const a = e.features.filter((r) => r.geometry.type === "Point");
6357
- a != null && a.length && this.handleTmpPointUpdate(e, a.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
6374
+ const t = e.features.filter((r) => r.geometry.type === "Point");
6375
+ t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
6358
6376
  },
6359
- handleDblClick(t) {
6360
- t.preventDefault();
6377
+ handleDblClick(a) {
6378
+ a.preventDefault();
6361
6379
  let e = this.geojson.at(-1);
6362
6380
  e.closed = !0, this.handleRender(e), e = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
6363
6381
  },
6364
- handleRender(t) {
6382
+ handleRender(a) {
6365
6383
  var e;
6366
- if ((e = t == null ? void 0 : t.features) != null && e.length) {
6367
- const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
6368
- this.map.getSource(a) ? this.map.getSource(a).setData(t) : this.map.addSource(a, {
6384
+ if ((e = a == null ? void 0 : a.features) != null && e.length) {
6385
+ const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
6386
+ this.map.getSource(t) ? this.map.getSource(t).setData(a) : this.map.addSource(t, {
6369
6387
  type: "geojson",
6370
- data: t
6371
- }), this.handleClear(t, !1), this.map.addLayer({
6388
+ data: a
6389
+ }), this.handleClear(a, !1), this.map.addLayer({
6372
6390
  id: r,
6373
6391
  type: "line",
6374
- source: a,
6392
+ source: t,
6375
6393
  filter: ["==", "$type", "LineString"],
6376
6394
  layout: {
6377
6395
  "line-cap": "round",
@@ -6384,7 +6402,7 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6384
6402
  }), this.map.addLayer({
6385
6403
  id: i,
6386
6404
  type: "symbol",
6387
- source: a,
6405
+ source: t,
6388
6406
  filter: ["==", "$type", "LineString"],
6389
6407
  layout: {
6390
6408
  "symbol-placement": "line-center",
@@ -6400,29 +6418,29 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6400
6418
  "text-halo-blur": 0
6401
6419
  }
6402
6420
  });
6403
- const o = t.features.filter((n) => n.geometry.type === "Point");
6421
+ const o = a.features.filter((n) => n.geometry.type === "Point");
6404
6422
  for (const n of o) {
6405
6423
  const s = document.createElement("div");
6406
- s.id = `${t.id}-${n.properties.id}`, s.className = `${t.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6424
+ s.id = `${a.id}-${n.properties.id}`, s.className = `${a.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6407
6425
  const c = new ne.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6408
- c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(c) : this.pointMarkers[t.id] = [c];
6426
+ c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
6409
6427
  }
6410
- if (t.closed) {
6411
- const n = o.at(-1), c = t.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6412
- h.className = "point-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[t.id] = new ne.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6428
+ if (a.closed) {
6429
+ const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6430
+ h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new ne.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6413
6431
  }
6414
6432
  }
6415
6433
  },
6416
- handleClear(t, e = !0) {
6434
+ handleClear(a, e = !0) {
6417
6435
  var o, n, s, c, h, d, p, f, m;
6418
- const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
6419
- (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[t.id]) == null || h.remove(), this.closeMarkers[t.id] = void 0, (d = this.pointMarkers[t.id]) == null || d.forEach((b) => {
6436
+ const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
6437
+ (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[a.id]) == null || h.remove(), this.closeMarkers[a.id] = void 0, (d = this.pointMarkers[a.id]) == null || d.forEach((b) => {
6420
6438
  b == null || b.remove();
6421
- }), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6439
+ }), 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);
6422
6440
  }
6423
6441
  }
6424
6442
  };
6425
- function Mo(t, e, a, r, i, o) {
6443
+ function Mo(a, e, t, r, i, o) {
6426
6444
  return L(), x("div");
6427
6445
  }
6428
6446
  const $o = /* @__PURE__ */ T(Ao, [["render", Mo]]);
@@ -6471,23 +6489,23 @@ const Bo = {
6471
6489
  },
6472
6490
  toggleVersion: {
6473
6491
  handler() {
6474
- var t, e;
6475
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
6492
+ var a, e;
6493
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
6476
6494
  },
6477
6495
  immediate: !0
6478
6496
  }
6479
6497
  },
6480
6498
  methods: {}
6481
- }, Ke = (t) => (G("data-v-ab627b83"), t = t(), H(), t), No = { key: 0 }, Wo = { class: "bar-item" }, Oo = /* @__PURE__ */ Ke(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), jo = [
6499
+ }, Ke = (a) => (H("data-v-ab627b83"), a = a(), G(), a), No = { key: 0 }, Wo = { class: "bar-item" }, Oo = /* @__PURE__ */ Ke(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), jo = [
6482
6500
  Oo
6483
6501
  ], Fo = /* @__PURE__ */ Ke(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Vo = [
6484
6502
  Fo
6485
6503
  ];
6486
- function Uo(t, e, a, r, i, o) {
6487
- return a.enabled && a.permission & i.helper.LEVEL.Supper ? (L(), x("div", No, [
6504
+ function Uo(a, e, t, r, i, o) {
6505
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (L(), x("div", No, [
6488
6506
  l("div", {
6489
6507
  class: "menu-bar-box",
6490
- style: F({ position: "absolute", right: i.right + "px", bottom: a.bottom })
6508
+ style: F({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6491
6509
  }, [
6492
6510
  l("div", Wo, [
6493
6511
  l("div", {
@@ -6502,7 +6520,7 @@ function Uo(t, e, a, r, i, o) {
6502
6520
  ], 4)
6503
6521
  ])) : $("", !0);
6504
6522
  }
6505
- const Go = /* @__PURE__ */ T(Bo, [["render", Uo], ["__scopeId", "data-v-ab627b83"]]);
6523
+ const Zo = /* @__PURE__ */ T(Bo, [["render", Uo], ["__scopeId", "data-v-ab627b83"]]);
6506
6524
  const Ho = {
6507
6525
  name: "IdmGLV2",
6508
6526
  components: {
@@ -6535,7 +6553,7 @@ const Ho = {
6535
6553
  IdmLatLng: Qe,
6536
6554
  IdmMeasure: $o,
6537
6555
  IdmPoint: Or,
6538
- IdmENC: Go
6556
+ IdmENC: Zo
6539
6557
  },
6540
6558
  props: {
6541
6559
  map: {
@@ -6579,13 +6597,13 @@ const Ho = {
6579
6597
  enc: "",
6580
6598
  // enc: 'i4',
6581
6599
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
6582
- helper: new Zt()
6600
+ helper: new Gt()
6583
6601
  };
6584
6602
  },
6585
6603
  watch: {
6586
6604
  ts: {
6587
- handler(t, e) {
6588
- t && e && te(t).utc().format("yyyy-MM-DD HH") !== te(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
6605
+ handler(a, e) {
6606
+ a && e && Z(a).utc().format("yyyy-MM-DD HH") !== Z(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
6589
6607
  this.handleDateChange({ tropicals: !1 });
6590
6608
  });
6591
6609
  },
@@ -6598,17 +6616,17 @@ const Ho = {
6598
6616
  immediate: !0
6599
6617
  },
6600
6618
  enc: {
6601
- handler(t, e) {
6602
- var a, r, i, o, n, s, c, h;
6603
- t ? ((r = (a = this.map) == null ? void 0 : a.getLayer(t)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((s = (n = this.map) == null ? void 0 : n.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (h = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || h.setLayoutProperty("visibility", "none"));
6619
+ handler(a, e) {
6620
+ var t, r, i, o, n, s, c, h;
6621
+ 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")) : ((s = (n = this.map) == null ? void 0 : n.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (h = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || h.setLayoutProperty("visibility", "none"));
6604
6622
  }
6605
6623
  },
6606
6624
  activeWeatherLayers: {
6607
6625
  handler() {
6608
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v;
6626
+ var a, e, t, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v;
6609
6627
  if (!this.map)
6610
6628
  return !1;
6611
- this.activeWeatherLayers.length > 0 ? ((e = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (a = this.map) == null ? void 0 : a.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((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"));
6629
+ 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) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((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"));
6612
6630
  },
6613
6631
  immediate: !0
6614
6632
  }
@@ -6654,10 +6672,10 @@ const Ho = {
6654
6672
  // },
6655
6673
  },
6656
6674
  methods: {
6657
- async fetchWeatherLayers(t = { tropicals: !1 }) {
6675
+ async fetchWeatherLayers(a = { tropicals: !1 }) {
6658
6676
  var i, o, n, s, c, h, d, p;
6659
6677
  const e = (/* @__PURE__ */ new Date()).valueOf();
6660
- let a = 0, r = 0;
6678
+ let t = 0, r = 0;
6661
6679
  if (this.map) {
6662
6680
  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}`;
6663
6681
  if (this.handleRampColorState(), this.particleFactor) {
@@ -6669,13 +6687,13 @@ const Ho = {
6669
6687
  }
6670
6688
  if (this.weatherWeight > 0) {
6671
6689
  let y = this.weatherWeight, u;
6672
- if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
6690
+ if (a.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
6673
6691
  const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${b}&t=${this.ts}`, {
6674
6692
  headers: {
6675
6693
  Authorization: this.token || this.defaultMeteoToken
6676
6694
  }
6677
6695
  });
6678
- if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
6696
+ if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
6679
6697
  const g = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6680
6698
  for (const _ in g)
6681
6699
  _ === "ice-edge" && (g[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
@@ -6691,11 +6709,11 @@ const Ho = {
6691
6709
  );
6692
6710
  const k = await Promise.all(w);
6693
6711
  this.weatherLayers = {}, k.map((_) => {
6694
- var B, W, O, Z;
6712
+ var B, W, O, J;
6695
6713
  const D = ((B = _ == null ? void 0 : _.data) == null ? void 0 : B.data) || (_ == null ? void 0 : _.data), A = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6696
6714
  A && D && (this.weatherLayers[A] = {
6697
6715
  raw: D,
6698
- type: ((Z = _ == null ? void 0 : _.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
6716
+ type: ((J = _ == null ? void 0 : _.config) == null ? void 0 : J.responseType) === "blob" ? "image" : "json",
6699
6717
  etime: this.ts
6700
6718
  });
6701
6719
  }), g.tropicals && se.get(g.tropicals, {
@@ -6716,7 +6734,7 @@ const Ho = {
6716
6734
  };
6717
6735
  });
6718
6736
  }
6719
- if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", r, ", total: ", a += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
6737
+ 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"]) {
6720
6738
  const g = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
6721
6739
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
6722
6740
  type: "json",
@@ -6741,21 +6759,21 @@ const Ho = {
6741
6759
  }
6742
6760
  this.toggleVersion = Math.random();
6743
6761
  },
6744
- async fetchOtherLayers(t = { all: !1, dayNight: !1, enc: !1 }) {
6745
- var e, a, r, i;
6762
+ async fetchOtherLayers(a = { all: !1, dayNight: !1, enc: !1 }) {
6763
+ var e, t, r, i;
6746
6764
  if (this.map) {
6747
6765
  let o = this.otherWeight;
6748
6766
  if (o) {
6749
6767
  let n = !1;
6750
6768
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
6751
- if (t.all) {
6769
+ if (a.all) {
6752
6770
  const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6753
6771
  headers: {
6754
6772
  Authorization: this.token || this.defaultMeteoToken
6755
6773
  }
6756
6774
  });
6757
6775
  if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 0) {
6758
- const c = (a = s == null ? void 0 : s.data) == null ? void 0 : a.data, h = [];
6776
+ const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
6759
6777
  for (const p in c)
6760
6778
  h.push(
6761
6779
  se.get(c[p], {
@@ -6772,7 +6790,7 @@ const Ho = {
6772
6790
  this.otherLayers[m] = f;
6773
6791
  });
6774
6792
  }
6775
- } else if (t.dayNight && o & 1024) {
6793
+ } else if (a.dayNight && o & 1024) {
6776
6794
  const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6777
6795
  headers: {
6778
6796
  Authorization: this.token || this.defaultMeteoToken
@@ -6804,8 +6822,8 @@ const Ho = {
6804
6822
  }
6805
6823
  },
6806
6824
  handleRampColorState() {
6807
- var t;
6808
- if (this.showRampColor = !1, this.showWindParticle = !1, this.showCurrentParticle = !1, (t = this.particleFactor) != null && t.particle)
6825
+ var a;
6826
+ if (this.showRampColor = !1, this.showWindParticle = !1, this.showCurrentParticle = !1, (a = this.particleFactor) != null && a.particle)
6809
6827
  this.showRampColor = !0, this.showWindParticle = this.particleFactor.key === "wind", this.showCurrentParticle = this.particleFactor.key === "current", this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json");
6810
6828
  else
6811
6829
  for (const e of this.activeWeatherLayers)
@@ -6813,10 +6831,10 @@ const Ho = {
6813
6831
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
6814
6832
  },
6815
6833
  handleRampColorInitial() {
6816
- var t, e, a, r, i, o, n, s, c, h, d, p;
6817
- this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
6834
+ var a, e, t, r, i, o, n, s, c, h, d, p;
6835
+ this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
6818
6836
  type: "canvas",
6819
- canvas: (a = this.viewport) == null ? void 0 : a.rampColorCanvas,
6837
+ canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
6820
6838
  animate: !0,
6821
6839
  coordinates: this.viewport.getBoundLngLat()
6822
6840
  }), this.viewport.map.getLayer((r = this.viewport) == null ? void 0 : r.rampColorLayer) || this.viewport.map.addLayer(
@@ -6848,8 +6866,8 @@ const Ho = {
6848
6866
  },
6849
6867
  handleDragEndWithZoom4Json() {
6850
6868
  var h, d, p, f;
6851
- const t = (/* @__PURE__ */ new Date()).valueOf();
6852
- let e = 0, a = 0;
6869
+ const a = (/* @__PURE__ */ new Date()).valueOf();
6870
+ let e = 0, t = 0;
6853
6871
  const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = Ie(r._sw.lng), n = Ie(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
6854
6872
  for (const m in this.weatherLayers)
6855
6873
  if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
@@ -6880,7 +6898,7 @@ const Ho = {
6880
6898
  }
6881
6899
  });
6882
6900
  }
6883
- if (a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("direction elapsed: ", a, ", total: ", e += a), m === "swell") {
6901
+ if (t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("direction elapsed: ", t, ", total: ", e += t), m === "swell") {
6884
6902
  const u = this.weatherLayers[m].height;
6885
6903
  if (u) {
6886
6904
  if (!u.data) {
@@ -6900,7 +6918,7 @@ const Ho = {
6900
6918
  const v = this.handleBboxClip(u.data, r);
6901
6919
  b = b.concat(v);
6902
6920
  }
6903
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
6921
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("height elapsed: ", t, ", total: ", e += t);
6904
6922
  }
6905
6923
  }
6906
6924
  if (m === "current") {
@@ -6920,7 +6938,7 @@ const Ho = {
6920
6938
  u.data = C.featureCollection(g);
6921
6939
  }
6922
6940
  const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
6923
- b = b.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
6941
+ b = b.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
6924
6942
  }
6925
6943
  }
6926
6944
  } else if (m === "wind") {
@@ -6946,7 +6964,7 @@ const Ho = {
6946
6964
  }
6947
6965
  });
6948
6966
  }
6949
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
6967
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
6950
6968
  } else if (m === "sig-wave-height") {
6951
6969
  if (this.weatherLayers[m].data)
6952
6970
  b = this.weatherLayers[m].data;
@@ -6975,7 +6993,7 @@ const Ho = {
6975
6993
  b = b.concat(u);
6976
6994
  }
6977
6995
  }
6978
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
6996
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
6979
6997
  } else if (m === "prmsl") {
6980
6998
  if (this.weatherLayers[m].data)
6981
6999
  b = this.weatherLayers[m].data;
@@ -7004,7 +7022,7 @@ const Ho = {
7004
7022
  b = b.concat(u);
7005
7023
  }
7006
7024
  }
7007
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
7025
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
7008
7026
  } else if (m === "arctic" || m === "iceberg") {
7009
7027
  if (this.weatherLayers[m].data)
7010
7028
  b = this.weatherLayers[m].data;
@@ -7024,179 +7042,179 @@ const Ho = {
7024
7042
  b = b.concat(u);
7025
7043
  }
7026
7044
  }
7027
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e);
7045
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e);
7028
7046
  }
7029
- console.log(m, " elapsed: ", a, ", total: ", e += a), b.length && (this.weatherLayers[m].data = C.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7047
+ 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;
7030
7048
  }
7031
7049
  },
7032
7050
  handleDragEndWithZoom4Image() {
7033
- for (const t in this.weatherLayers)
7034
- this.weatherLayers[t].active && this.weatherLayers[t].type === "image" && (this.weatherLayers[t].active = !0, this.weatherLayers[t].version = Math.random() + 1);
7051
+ for (const a in this.weatherLayers)
7052
+ this.weatherLayers[a].active && this.weatherLayers[a].type === "image" && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1);
7035
7053
  },
7036
- handleBboxClip(t, e) {
7037
- const a = [], r = Ie(e._sw.lng), i = Ie(e._ne.lng);
7038
- return t.features.forEach((o) => {
7054
+ handleBboxClip(a, e) {
7055
+ const t = [], r = Ie(e._sw.lng), i = Ie(e._ne.lng);
7056
+ return a.features.forEach((o) => {
7039
7057
  if (o.geometry.type !== "Point")
7040
7058
  if (r > i) {
7041
7059
  let n = [r, e._sw.lat, 180, e._ne.lat], s = C.bboxClip(o, n);
7042
- s.geometry.coordinates.length && a.push(s), n = [-180, e._sw.lat, i, e._ne.lat], s = C.bboxClip(o, n), s.geometry.coordinates.length && a.push(s);
7060
+ s.geometry.coordinates.length && t.push(s), n = [-180, e._sw.lat, i, e._ne.lat], s = C.bboxClip(o, n), s.geometry.coordinates.length && t.push(s);
7043
7061
  } else {
7044
7062
  const n = [r, e._sw.lat, i, e._ne.lat], s = C.bboxClip(o, n);
7045
- s.geometry.coordinates.length && a.push(s);
7063
+ s.geometry.coordinates.length && t.push(s);
7046
7064
  }
7047
7065
  else
7048
- a.push(o);
7049
- }), a;
7066
+ t.push(o);
7067
+ }), t;
7050
7068
  },
7051
7069
  handleWeatherLayerToggle() {
7052
- var t;
7070
+ var a;
7053
7071
  for (const e in this.weatherLayers)
7054
7072
  this.weatherLayers[e].active = !1, this.weatherLayers[e].version = Math.random() + 1;
7055
7073
  for (const e of this.activeWeatherLayers) {
7056
- let a = e.key;
7057
- a.indexOf("swell") > -1 ? a = "swell" : a.indexOf("current") > -1 && (a = "current"), this.weatherLayers[a] && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1, ((t = this.particleFactor) == null ? void 0 : t.key) === a && this.weatherLayers[`${a}-particle`] && (this.weatherLayers[`${a}-particle`].active = this.particleFactor.particle));
7074
+ let t = e.key;
7075
+ t.indexOf("swell") > -1 ? t = "swell" : t.indexOf("current") > -1 && (t = "current"), this.weatherLayers[t] && (this.weatherLayers[t].active = !0, this.weatherLayers[t].version = Math.random() + 1, ((a = this.particleFactor) == null ? void 0 : a.key) === t && this.weatherLayers[`${t}-particle`] && (this.weatherLayers[`${t}-particle`].active = this.particleFactor.particle));
7058
7076
  }
7059
7077
  this.handleBeforeLayerToggle();
7060
7078
  },
7061
7079
  handleBeforeLayerToggle() {
7062
- var t, e, a, r, i, o, n, s, c, h, d, p, f;
7063
- (t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (d = this.otherLayers) != null && d["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7080
+ var a, e, t, r, i, o, n, s, c, h, d, p, f;
7081
+ (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"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (d = this.otherLayers) != null && d["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7064
7082
  },
7065
- handleDateChange(t = { tropicals: !1 }) {
7066
- this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
7083
+ handleDateChange(a = { tropicals: !1 }) {
7084
+ this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
7067
7085
  },
7068
- handleWeatherLayerChange(t, e, a) {
7086
+ handleWeatherLayerChange(a, e, t) {
7069
7087
  if (!this.map)
7070
7088
  setTimeout(() => {
7071
- this.handleWeatherLayerChange(t, e, a);
7089
+ this.handleWeatherLayerChange(a, e, t);
7072
7090
  }, 500);
7073
7091
  else {
7074
7092
  this.activeWeatherLayers = e;
7075
7093
  const r = this.activeWeatherLayers.some((n) => ["wind", "current"].includes(n.key)), i = this.activeWeatherLayers.some((n) => ["png", "jpg"].includes(n.type));
7076
7094
  r && !i ? (this.particleFactor = this.activeWeatherLayers.find((n) => ["wind", "current"].includes(n.key)), this.particleFactor.particle = !0) : i && this.particleFactor && (this.particleFactor.particle = !1);
7077
7095
  const o = e == null ? void 0 : e.reduce((n, s) => n + (n & (s == null ? void 0 : s.weight) ? 0 : s == null ? void 0 : s.weight), 0);
7078
- this.weatherWeight !== o || this.source !== a ? (this.source = a, this.weatherWeight = o, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
7096
+ this.weatherWeight !== o || this.source !== t ? (this.source = t, this.weatherWeight = o, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
7079
7097
  }
7080
7098
  },
7081
- handleOtherLayerChange(t) {
7099
+ handleOtherLayerChange(a) {
7082
7100
  if (!this.map)
7083
7101
  setTimeout(() => {
7084
- this.handleOtherLayerChange(t);
7102
+ this.handleOtherLayerChange(a);
7085
7103
  }, 500);
7086
7104
  else {
7087
- const e = t == null ? void 0 : t.reduce((a, r) => a + (r == null ? void 0 : r.weight), 0);
7088
- t.find((a) => a.key === "enc") ? this.enc = "i4" : this.enc = "", this.otherWeight != e && (this.otherWeight = e, this.fetchOtherLayers({ all: !0 }));
7105
+ const e = a == null ? void 0 : a.reduce((t, r) => t + (r == null ? void 0 : r.weight), 0);
7106
+ a.find((t) => t.key === "enc") ? this.enc = "i4" : this.enc = "", this.otherWeight != e && (this.otherWeight = e, this.fetchOtherLayers({ all: !0 }));
7089
7107
  }
7090
7108
  },
7091
- async handlePointChange(t) {
7092
- const e = this.ts ? te(this.ts) : te(), a = {
7093
- lat: t.lat,
7094
- lng: t.lng,
7109
+ async handlePointChange(a) {
7110
+ const e = this.ts ? Z(this.ts) : Z(), t = {
7111
+ lat: a.lat,
7112
+ lng: a.lng,
7095
7113
  ts: e.utc().format(),
7096
7114
  wt: !0,
7097
7115
  src: this.source
7098
7116
  }, r = await se.get(`${this.gateway}/api/arc/meteo/query`, {
7099
- params: a,
7117
+ params: t,
7100
7118
  headers: {
7101
7119
  Authorization: this.token || this.defaultMeteoToken
7102
7120
  }
7103
7121
  });
7104
7122
  (r == null ? void 0 : r.status) === 200 && (this.meteo = {
7105
7123
  ...r == null ? void 0 : r.data,
7106
- ...t
7124
+ ...a
7107
7125
  });
7108
7126
  },
7109
- handle3dToggle(t) {
7110
- var e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
7111
- t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.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)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.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)) && ((k = this.map) == null || k.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7127
+ handle3dToggle(a) {
7128
+ var e, t, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
7129
+ 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)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.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)) && ((k = this.map) == null || k.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7112
7130
  },
7113
- handleParticle(t) {
7114
- this.particleFactor = t, this.fetchWeatherLayers({ tropicals: !1 });
7131
+ handleParticle(a) {
7132
+ this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
7115
7133
  }
7116
7134
  }
7117
- }, Zo = {
7135
+ }, Go = {
7118
7136
  key: 0,
7119
7137
  className: "map-gl-home"
7120
7138
  };
7121
- function Jo(t, e, a, r, i, o) {
7122
- var ae, J, q, be, Y, E, V, ve, Q, _e, ie, re, oe, ke, ze, Pe, Te, Ee, Ne, Fe, Ve, Ue, Ge, He, Ze, Je;
7123
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), b = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), g = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), Z = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ye = z("IdmLatLng"), fe = z("IdmMeasure"), ge = z("IdmPoint");
7124
- return a.map ? (L(), x("div", Zo, [
7139
+ function Jo(a, e, t, r, i, o) {
7140
+ var ae, X, Y, be, Q, E, V, ve, K, _e, ie, re, oe, ke, ze, Pe, Te, Ee, Ne, Fe, Ve, Ue, Ze, He, Ge, Je;
7141
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), b = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), g = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), J = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ye = z("IdmLatLng"), fe = z("IdmMeasure"), ge = z("IdmPoint");
7142
+ return t.map ? (L(), x("div", Go, [
7125
7143
  P(n, I({
7126
7144
  ref: "layer",
7127
- map: a.map,
7145
+ map: t.map,
7128
7146
  "toggle-version": i.toggleVersion,
7129
7147
  "map-projection": i.mapProjection
7130
- }, t.$attrs, {
7148
+ }, a.$attrs, {
7131
7149
  onWeather: o.handleWeatherLayerChange,
7132
7150
  onOther: o.handleOtherLayerChange,
7133
- onCoordinate: e[0] || (e[0] = (K) => i.showCoord = K),
7134
- onMeasure: e[1] || (e[1] = (K) => i.showMeasure = K),
7135
- onPoint: e[2] || (e[2] = (K) => i.showPoint = K),
7151
+ onCoordinate: e[0] || (e[0] = (ee) => i.showCoord = ee),
7152
+ onMeasure: e[1] || (e[1] = (ee) => i.showMeasure = ee),
7153
+ onPoint: e[2] || (e[2] = (ee) => i.showPoint = ee),
7136
7154
  on3d: o.handle3dToggle,
7137
- onToggleVersion: e[3] || (e[3] = (K) => i.toggleVersion = K)
7155
+ onToggleVersion: e[3] || (e[3] = (ee) => i.toggleVersion = ee)
7138
7156
  }), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
7139
7157
  P(s, I({
7140
- map: a.map,
7141
- token: a.token,
7158
+ map: t.map,
7159
+ token: t.token,
7142
7160
  enabled: (ae = i.otherLayers) == null ? void 0 : ae.enc,
7143
7161
  "toggle-version": i.toggleVersion
7144
- }, t.$attrs, {
7145
- onEnc: e[4] || (e[4] = (K) => i.enc = K)
7162
+ }, a.$attrs, {
7163
+ onEnc: e[4] || (e[4] = (ee) => i.enc = ee)
7146
7164
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7147
7165
  P(c, I({
7148
- map: a.map,
7149
- "sig-wave": (J = i.weatherLayers) == null ? void 0 : J["sig-wave-height"],
7150
- "before-layer": a.beforeLayer
7151
- }, t.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7166
+ map: t.map,
7167
+ "sig-wave": (X = i.weatherLayers) == null ? void 0 : X["sig-wave-height"],
7168
+ "before-layer": t.beforeLayer
7169
+ }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7152
7170
  P(h, I({
7153
- map: a.map,
7154
- swell: (q = i.weatherLayers) == null ? void 0 : q.swell,
7155
- "before-layer": a.beforeLayer
7156
- }, t.$attrs), null, 16, ["map", "swell", "before-layer"]),
7171
+ map: t.map,
7172
+ swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
7173
+ "before-layer": t.beforeLayer
7174
+ }, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
7157
7175
  P(d, I({
7158
- map: a.map,
7176
+ map: t.map,
7159
7177
  prmsl: (be = i.weatherLayers) == null ? void 0 : be.prmsl,
7160
- "before-layer": a.beforeLayer,
7178
+ "before-layer": t.beforeLayer,
7161
7179
  "active-weather-layers": i.activeWeatherLayers
7162
- }, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7180
+ }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7163
7181
  P(p, I({
7164
- map: a.map,
7165
- iceberg: (Y = i.weatherLayers) == null ? void 0 : Y.iceberg,
7166
- "before-layer": a.beforeLayer
7167
- }, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7182
+ map: t.map,
7183
+ iceberg: (Q = i.weatherLayers) == null ? void 0 : Q.iceberg,
7184
+ "before-layer": t.beforeLayer
7185
+ }, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7168
7186
  P(f, I({
7169
- map: a.map,
7170
- date: a.ts,
7187
+ map: t.map,
7188
+ date: t.ts,
7171
7189
  tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
7172
- "before-layer": a.beforeLayer
7173
- }, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7190
+ "before-layer": t.beforeLayer
7191
+ }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7174
7192
  P(m, I({
7175
- map: a.map,
7193
+ map: t.map,
7176
7194
  "map-projection": i.mapProjection,
7177
7195
  current: (V = i.weatherLayers) == null ? void 0 : V.current,
7178
- "before-layer": a.beforeLayer,
7196
+ "before-layer": t.beforeLayer,
7179
7197
  "show-particle": i.showCurrentParticle,
7180
7198
  "margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
7181
7199
  "toggle-version": i.toggleVersion,
7182
7200
  "weather-layers": i.weatherLayers
7183
- }, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7201
+ }, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7184
7202
  P(b, I({
7185
7203
  viewport: i.viewport,
7186
7204
  factor: (ve = i.weatherLayers) == null ? void 0 : ve["current-particle"],
7187
- "before-layer": a.beforeLayer,
7205
+ "before-layer": t.beforeLayer,
7188
7206
  "toggle-version": i.toggleVersion
7189
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7207
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7190
7208
  P(y, I({
7191
7209
  ref: "windBarb",
7192
- map: a.map,
7210
+ map: t.map,
7193
7211
  "map-projection": i.mapProjection,
7194
- wind: (Q = i.weatherLayers) == null ? void 0 : Q.wind,
7212
+ wind: (K = i.weatherLayers) == null ? void 0 : K.wind,
7195
7213
  current: (_e = i.weatherLayers) == null ? void 0 : _e.current,
7196
- "before-layer": a.beforeLayer,
7214
+ "before-layer": t.beforeLayer,
7197
7215
  "margin-bottom": i.showRampColor ? "56px" : "30px",
7198
7216
  "show-particle": i.showWindParticle
7199
- }, t.$attrs, {
7217
+ }, a.$attrs, {
7200
7218
  "toggle-version": i.toggleVersion,
7201
7219
  "weather-layers": i.weatherLayers,
7202
7220
  onParticle: o.handleParticle
@@ -7204,114 +7222,114 @@ function Jo(t, e, a, r, i, o) {
7204
7222
  P(u, I({
7205
7223
  viewport: i.viewport,
7206
7224
  factor: (ie = i.weatherLayers) == null ? void 0 : ie["wind-particle"],
7207
- "before-layer": a.beforeLayer,
7225
+ "before-layer": t.beforeLayer,
7208
7226
  "toggle-version": i.toggleVersion
7209
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7227
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7210
7228
  P(v, I({
7211
7229
  viewport: i.viewport,
7212
7230
  factor: (re = i.weatherLayers) == null ? void 0 : re.precip3h,
7213
- "before-layer": a.beforeLayer,
7231
+ "before-layer": t.beforeLayer,
7214
7232
  "toggle-version": i.toggleVersion
7215
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7233
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7216
7234
  P(g, I({
7217
7235
  viewport: i.viewport,
7218
7236
  factor: (oe = i.weatherLayers) == null ? void 0 : oe.visibility,
7219
- "before-layer": a.beforeLayer,
7237
+ "before-layer": t.beforeLayer,
7220
7238
  "toggle-version": i.toggleVersion
7221
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7239
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7222
7240
  P(w, I({
7223
7241
  viewport: i.viewport,
7224
7242
  factor: (ke = i.weatherLayers) == null ? void 0 : ke["water-temp"],
7225
- "before-layer": a.beforeLayer,
7243
+ "before-layer": t.beforeLayer,
7226
7244
  "toggle-version": i.toggleVersion
7227
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7245
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7228
7246
  P(k, I({
7229
7247
  viewport: i.viewport,
7230
7248
  factor: (ze = i.weatherLayers) == null ? void 0 : ze.temp,
7231
- "before-layer": a.beforeLayer,
7249
+ "before-layer": t.beforeLayer,
7232
7250
  "toggle-version": i.toggleVersion
7233
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7251
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7234
7252
  P(_, I({
7235
7253
  viewport: i.viewport,
7236
7254
  factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.arctic,
7237
- "before-layer": a.beforeLayer,
7255
+ "before-layer": t.beforeLayer,
7238
7256
  "toggle-version": i.toggleVersion
7239
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7257
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7240
7258
  P(D, I({
7241
- map: a.map,
7259
+ map: t.map,
7242
7260
  zone: (Te = i.otherLayers) == null ? void 0 : Te["war-zones"],
7243
- "before-layer": a.beforeLayer
7244
- }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7261
+ "before-layer": t.beforeLayer
7262
+ }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7245
7263
  P(A, I({
7246
- map: a.map,
7264
+ map: t.map,
7247
7265
  area: (Ee = i.otherLayers) == null ? void 0 : Ee["gmdss-areas"],
7248
- "before-layer": a.beforeLayer
7249
- }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7266
+ "before-layer": t.beforeLayer
7267
+ }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7250
7268
  P(B, I({
7251
- map: a.map,
7269
+ map: t.map,
7252
7270
  zone: (Ne = i.otherLayers) == null ? void 0 : Ne["eca-zones"],
7253
- "before-layer": a.beforeLayer
7254
- }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7271
+ "before-layer": t.beforeLayer
7272
+ }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7255
7273
  P(W, I({
7256
- map: a.map,
7274
+ map: t.map,
7257
7275
  zone: (Fe = i.otherLayers) == null ? void 0 : Fe["alert-zones"],
7258
- "before-layer": a.beforeLayer
7259
- }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7276
+ "before-layer": t.beforeLayer
7277
+ }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7260
7278
  P(O, I({
7261
- map: a.map,
7279
+ map: t.map,
7262
7280
  port: (Ve = i.otherLayers) == null ? void 0 : Ve.ports,
7263
- "before-layer": a.beforeLayer
7264
- }, t.$attrs), null, 16, ["map", "port", "before-layer"]),
7265
- P(Z, I({
7266
- map: a.map,
7281
+ "before-layer": t.beforeLayer
7282
+ }, a.$attrs), null, 16, ["map", "port", "before-layer"]),
7283
+ P(J, I({
7284
+ map: t.map,
7267
7285
  line: (Ue = i.otherLayers) == null ? void 0 : Ue["load-lines"],
7268
- "before-layer": a.beforeLayer
7269
- }, t.$attrs), null, 16, ["map", "line", "before-layer"]),
7286
+ "before-layer": t.beforeLayer
7287
+ }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7270
7288
  P(de, I({
7271
- map: a.map,
7272
- zone: (Ge = i.otherLayers) == null ? void 0 : Ge["time-zones"],
7273
- "before-layer": a.beforeLayer
7274
- }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7289
+ map: t.map,
7290
+ zone: (Ze = i.otherLayers) == null ? void 0 : Ze["time-zones"],
7291
+ "before-layer": t.beforeLayer
7292
+ }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7275
7293
  P(pe, I({
7276
- map: a.map,
7294
+ map: t.map,
7277
7295
  area: (He = i.otherLayers) == null ? void 0 : He["voluntary-reporting-area"],
7278
- "before-layer": a.beforeLayer
7279
- }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7296
+ "before-layer": t.beforeLayer
7297
+ }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7280
7298
  P(me, I({
7281
- map: a.map,
7282
- area: (Ze = i.otherLayers) == null ? void 0 : Ze["special-area"],
7283
- "before-layer": a.beforeLayer
7284
- }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7299
+ map: t.map,
7300
+ area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
7301
+ "before-layer": t.beforeLayer
7302
+ }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7285
7303
  P(ue, I({
7286
- map: a.map,
7304
+ map: t.map,
7287
7305
  area: (Je = i.otherLayers) == null ? void 0 : Je["day-night"]
7288
- }, t.$attrs), null, 16, ["map", "area"]),
7306
+ }, a.$attrs), null, 16, ["map", "area"]),
7289
7307
  P(ye, I({
7290
- map: a.map,
7308
+ map: t.map,
7291
7309
  show: i.showCoord,
7292
7310
  "toggle-version": i.toggleVersion
7293
- }, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
7311
+ }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
7294
7312
  P(fe, I({
7295
- map: a.map,
7313
+ map: t.map,
7296
7314
  show: i.showMeasure
7297
- }, t.$attrs), null, 16, ["map", "show"]),
7315
+ }, a.$attrs), null, 16, ["map", "show"]),
7298
7316
  P(ge, I({
7299
- map: a.map,
7317
+ map: t.map,
7300
7318
  show: i.showPoint,
7301
7319
  meteo: i.meteo
7302
- }, t.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7320
+ }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7303
7321
  ])) : $("", !0);
7304
7322
  }
7305
7323
  const Xo = /* @__PURE__ */ T(Ho, [["render", Jo]]), rs = {
7306
- install(t) {
7307
- t.component("MapboxGL", Xo), t.component("TropicalGL", Ye), t.component("LatLngGL", Qe);
7324
+ install(a) {
7325
+ a.component("MapboxGL", Xo), a.component("TropicalGL", Ye), a.component("LatLngGL", Qe);
7308
7326
  }
7309
7327
  };
7310
7328
  export {
7311
7329
  Qe as LatLngGL,
7312
7330
  Xo as MapboxGL,
7313
7331
  rs as MapboxGLPlugin,
7314
- Zt as MapboxHelper,
7332
+ Gt as MapboxHelper,
7315
7333
  U as ParticleSchema,
7316
7334
  Ye as TropicalGL,
7317
7335
  Oe as Viewport,