@idmwx/idmui-gl3 4.4.1 → 4.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,20 +1,486 @@
1
- var Fe = Object.defineProperty;
2
- var $e = (a, e, t) => e in a ? Fe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var I = (a, e, t) => ($e(a, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { LayerHelper as Pe, CompanyHelper as Ce, convertToStandardLng as we } from "@idmwx/idmwx-base";
5
- import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ve, createTextVNode as Oe, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ue, vShow as ke, mergeProps as E } from "vue";
1
+ var $e = Object.defineProperty;
2
+ var Ve = (a, e, t) => e in a ? $e(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var I = (a, e, t) => (Ve(a, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as j, Fragment as xe, renderList as ke, toDisplayString as k, createVNode as P, withCtx as Ue, createTextVNode as Ne, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ze, vShow as ze, mergeProps as E } from "vue";
6
5
  import * as C from "@turf/turf";
7
- import Ze from "@mapbox/sphericalmercator";
6
+ import He from "@mapbox/sphericalmercator";
8
7
  import Z from "moment";
9
8
  import Q from "mapbox-gl";
10
- import { TropicalHelper as Ne, LngLatHelper as F, LaneHelper as Y } from "@idm-plugin/geo";
9
+ import { TropicalHelper as We, LngLatHelper as D, LaneHelper as q } from "@idm-plugin/geo";
11
10
  import ie from "axios";
11
+ var Ge = Object.defineProperty, Je = (a, e, t) => e in a ? Ge(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, fe = (a, e, t) => (Je(a, typeof e != "symbol" ? e + "" : e, t), t);
12
+ class _e {
13
+ }
14
+ fe(_e, "LEVEL", {
15
+ Basic: 1,
16
+ Prime: 2,
17
+ Supper: 1024
18
+ });
19
+ class Ce {
20
+ }
21
+ fe(Ce, "WEATHER_LAYERS", [
22
+ {
23
+ weight: 1,
24
+ name: "Wind",
25
+ key: "wind",
26
+ h5: !0,
27
+ enabled: !0,
28
+ type: "json",
29
+ particle: !0
30
+ },
31
+ {
32
+ weight: 524288,
33
+ name: "Wind Particle",
34
+ key: "wind-particle",
35
+ peer: {
36
+ weight: 1,
37
+ key: "wind"
38
+ },
39
+ enabled: !0,
40
+ hide: !0,
41
+ type: "jpg"
42
+ },
43
+ {
44
+ weight: 16,
45
+ name: "Sig Waves",
46
+ key: "sig-wave-height",
47
+ h5: !0,
48
+ enabled: !0,
49
+ type: "json"
50
+ },
51
+ {
52
+ weight: 4194304,
53
+ name: "Sig Waves (JPG)",
54
+ key: "sig-wave",
55
+ peer: {
56
+ weight: 16,
57
+ key: "sig-wave"
58
+ },
59
+ enabled: !0,
60
+ hide: !0,
61
+ type: "jpg"
62
+ },
63
+ {
64
+ weight: 8388608,
65
+ name: "Sig Waves (Contour)",
66
+ key: "sig-wave-height-contour",
67
+ peer: {
68
+ weight: 16,
69
+ key: "sig-wave-contour"
70
+ },
71
+ enabled: !0,
72
+ hide: !0,
73
+ type: "json"
74
+ },
75
+ {
76
+ weight: 96,
77
+ name: "Current",
78
+ key: "current",
79
+ vendor: "cmems",
80
+ merge: !0,
81
+ h5: !0,
82
+ enabled: !0,
83
+ type: "json"
84
+ },
85
+ {
86
+ weight: 1048576,
87
+ name: "Current Particle",
88
+ key: "current-particle",
89
+ vendor: "cmems",
90
+ peer: {
91
+ weight: 96,
92
+ key: "current"
93
+ },
94
+ enabled: !0,
95
+ hide: !0,
96
+ type: "jpg"
97
+ },
98
+ {
99
+ weight: 256,
100
+ name: "Tropicals",
101
+ key: "tropicals",
102
+ h5: !0,
103
+ enabled: !0,
104
+ type: "json"
105
+ },
106
+ {
107
+ weight: 4096,
108
+ name: "Pressure",
109
+ h5: !0,
110
+ key: "prmsl",
111
+ enabled: !0,
112
+ type: "json"
113
+ },
114
+ {
115
+ weight: 8192,
116
+ name: "Visibility",
117
+ vendor: "gfs",
118
+ key: "visibility",
119
+ h5: !0,
120
+ enabled: !0,
121
+ type: "jpg"
122
+ },
123
+ {
124
+ weight: 262144,
125
+ name: "Precip Acc",
126
+ key: "precip3h",
127
+ h5: !0,
128
+ enabled: !0,
129
+ type: "jpg"
130
+ },
131
+ {
132
+ weight: 6,
133
+ name: "Swell",
134
+ key: "swell",
135
+ merge: !0,
136
+ h5: !0,
137
+ enabled: !0,
138
+ type: "json"
139
+ },
140
+ {
141
+ weight: 2,
142
+ name: "Swell Height",
143
+ key: "swell-height",
144
+ partly: !0,
145
+ enabled: !0,
146
+ type: "json"
147
+ },
148
+ {
149
+ weight: 4,
150
+ name: "Swell Direction",
151
+ key: "swell-direction",
152
+ partly: !0,
153
+ enabled: !0,
154
+ type: "json"
155
+ },
156
+ {
157
+ weight: 32,
158
+ name: "Current Direction",
159
+ key: "current-direction",
160
+ vendor: "cmems",
161
+ partly: !0,
162
+ enabled: !0,
163
+ type: "json"
164
+ },
165
+ {
166
+ weight: 64,
167
+ name: "Current Speed",
168
+ key: "current-speed",
169
+ vendor: "cmems",
170
+ partly: !0,
171
+ enabled: !0,
172
+ type: "json"
173
+ },
174
+ {
175
+ weight: 512,
176
+ name: "Pressure Contour",
177
+ key: "prmsl-contour",
178
+ partly: !0,
179
+ enabled: !0,
180
+ hide: !0,
181
+ type: "json"
182
+ },
183
+ {
184
+ weight: 1024,
185
+ name: "Pressure Value",
186
+ key: "prmsl-value",
187
+ partly: !0,
188
+ enabled: !0,
189
+ hide: !0,
190
+ type: "json"
191
+ },
192
+ {
193
+ weight: 2048,
194
+ name: "Pressure Front",
195
+ key: "prmsl-front",
196
+ partly: !0,
197
+ enabled: !0,
198
+ hide: !0,
199
+ type: "json"
200
+ },
201
+ {
202
+ weight: 16384,
203
+ name: "Iceberg",
204
+ key: "iceberg",
205
+ vendor: "cmems",
206
+ hide: !0,
207
+ enabled: !1,
208
+ type: "json"
209
+ },
210
+ {
211
+ weight: 32768,
212
+ name: "Struct Ice",
213
+ key: "struct-ice",
214
+ vendor: "cmems",
215
+ enabled: !1,
216
+ hide: !0,
217
+ type: "json"
218
+ },
219
+ {
220
+ weight: 65536,
221
+ name: "Ice Edge",
222
+ key: "arctic",
223
+ vendor: "cmems",
224
+ h5: !0,
225
+ enabled: !0,
226
+ type: "jpg"
227
+ },
228
+ {
229
+ weight: 131072,
230
+ name: "Sea Surf. Temp.",
231
+ key: "water-temp",
232
+ vendor: "cmems",
233
+ h5: !0,
234
+ enabled: !0,
235
+ type: "jpg"
236
+ },
237
+ {
238
+ weight: 2097152,
239
+ name: "Temp.",
240
+ key: "temp",
241
+ h5: !0,
242
+ enabled: !0,
243
+ type: "jpg"
244
+ }
245
+ ]), // 其它图层
246
+ fe(Ce, "OTHER_LAYERS", [
247
+ {
248
+ weight: 1,
249
+ name: "War Zones",
250
+ key: "war-zones",
251
+ h5: !0,
252
+ enabled: !0,
253
+ type: "json"
254
+ },
255
+ {
256
+ weight: 2,
257
+ name: "GMDSS Areas",
258
+ key: "gmdss-areas",
259
+ h5: !0,
260
+ enabled: !0,
261
+ type: "json"
262
+ },
263
+ {
264
+ weight: 4,
265
+ name: "ECA Zones",
266
+ key: "eca-zones",
267
+ h5: !0,
268
+ enabled: !0,
269
+ type: "json"
270
+ },
271
+ {
272
+ weight: 8,
273
+ name: "Load Lines",
274
+ key: "load-lines",
275
+ h5: !0,
276
+ enabled: !0,
277
+ type: "json"
278
+ },
279
+ {
280
+ weight: 16,
281
+ name: "HRA",
282
+ key: "high-risk-area",
283
+ enabled: !1,
284
+ type: "json"
285
+ },
286
+ {
287
+ weight: 32,
288
+ name: "Pirates",
289
+ key: "pirates",
290
+ enabled: !1,
291
+ type: "json"
292
+ },
293
+ {
294
+ weight: 4096,
295
+ name: "Alert Zones",
296
+ key: "alert-zones",
297
+ h5: !0,
298
+ enabled: !0,
299
+ type: "json"
300
+ },
301
+ {
302
+ weight: 64,
303
+ name: "Ports",
304
+ key: "ports",
305
+ h5: !0,
306
+ enabled: !0,
307
+ type: "json"
308
+ },
309
+ {
310
+ weight: 128,
311
+ name: "Time Zones",
312
+ key: "time-zones",
313
+ h5: !0,
314
+ enabled: !0,
315
+ type: "json"
316
+ },
317
+ {
318
+ weight: 256,
319
+ name: "VRA",
320
+ key: "voluntary-reporting-area",
321
+ h5: !0,
322
+ enabled: !0,
323
+ type: "json"
324
+ },
325
+ {
326
+ weight: 512,
327
+ name: "Special Areas",
328
+ key: "special-area",
329
+ h5: !0,
330
+ enabled: !0,
331
+ type: "json"
332
+ },
333
+ {
334
+ weight: 1024,
335
+ name: "Day/Night",
336
+ key: "day-night",
337
+ h5: !0,
338
+ enabled: !0,
339
+ type: "json"
340
+ },
341
+ {
342
+ weight: 2048,
343
+ name: "ENC",
344
+ key: "enc",
345
+ h5: !0,
346
+ enabled: !0,
347
+ type: "origin"
348
+ },
349
+ {
350
+ weight: 8192,
351
+ name: "World-12nm",
352
+ key: "world12nm",
353
+ h5: !1,
354
+ enabled: !0,
355
+ type: "origin"
356
+ }
357
+ ]);
358
+ class Te {
359
+ }
360
+ fe(Te, "WEATHER_TAG", [
361
+ {
362
+ weight: 4,
363
+ // 2^2
364
+ name: "Adverse Weather Dangerous",
365
+ // 恶劣天气级别, 危险的
366
+ key: "DANGEROUS",
367
+ positive: !0
368
+ },
369
+ {
370
+ weight: 2,
371
+ // 2^1
372
+ name: "Adverse Weather Severe",
373
+ // 恶劣天气级别, 糟糕的
374
+ key: "SEVERE",
375
+ positive: !0
376
+ },
377
+ {
378
+ weight: 1,
379
+ // 2^0
380
+ name: "Adverse Weather Heavy",
381
+ // 恶劣天气级别, 严重的
382
+ key: "HEAVY",
383
+ positive: !0
384
+ }
385
+ ]), // 航行相关标签, 2^11 <= weight <= 2^20
386
+ fe(Te, "SAILING_TAG", [
387
+ {
388
+ weight: 2048,
389
+ // 2^11
390
+ name: "Deviation",
391
+ // 偏航
392
+ key: "deviation",
393
+ positive: !0
394
+ },
395
+ {
396
+ weight: 4096,
397
+ // 2^12
398
+ name: "Stoppage",
399
+ // 停航
400
+ key: "stoppage",
401
+ positive: !0
402
+ },
403
+ {
404
+ weight: 8192,
405
+ // 2^13
406
+ name: "Deceleration",
407
+ // 减速
408
+ key: "deceleration",
409
+ positive: !0
410
+ },
411
+ {
412
+ weight: 16384,
413
+ // 2^14
414
+ name: "No Lane",
415
+ // 无航线
416
+ key: "noLane",
417
+ positive: !0
418
+ },
419
+ {
420
+ weight: 32768,
421
+ // 2^15
422
+ name: "No Noon",
423
+ // 没有船报
424
+ key: "noNoon",
425
+ positive: !0
426
+ }
427
+ ]), // 其他标签, 2^21 <= weight <= 2^31
428
+ fe(Te, "OTHER_TAG", [
429
+ {
430
+ weight: 2097152,
431
+ // 2^21
432
+ name: "No CP",
433
+ // 没有cp
434
+ key: "noCp",
435
+ positive: !0
436
+ },
437
+ {
438
+ weight: 4194304,
439
+ // 2^22
440
+ name: "Send Rpt",
441
+ // 已发送 route report
442
+ key: "sendRpt",
443
+ positive: !1
444
+ },
445
+ {
446
+ weight: 8388608,
447
+ // 2^23
448
+ name: "Send Bps",
449
+ // 已发送 Bps
450
+ key: "sendBps",
451
+ positive: !1
452
+ },
453
+ {
454
+ weight: 16777216,
455
+ // 2^24
456
+ name: "Send Pvar",
457
+ // 已发送PvarK
458
+ key: "sendPvar",
459
+ positive: !1
460
+ },
461
+ {
462
+ weight: 33554432,
463
+ // 2^25
464
+ name: "Checked",
465
+ // 已经check的航次
466
+ key: "checked",
467
+ positive: !1
468
+ },
469
+ {
470
+ weight: 67108864,
471
+ // 2^26
472
+ name: "Send PWFR",
473
+ // 已经check的航次
474
+ key: "sendPwfr",
475
+ positive: !1
476
+ }
477
+ ]);
12
478
  const T = (a, e) => {
13
479
  const t = a.__vccOpts || a;
14
480
  for (const [r, i] of e)
15
481
  t[r] = i;
16
482
  return t;
17
- }, He = {
483
+ }, Xe = {
18
484
  name: "IdmGlLayer",
19
485
  props: {
20
486
  map: {
@@ -48,8 +514,8 @@ const T = (a, e) => {
48
514
  autoActive: !0,
49
515
  otherLayers: [],
50
516
  layers: {
51
- weather: [...Pe.WEATHER_LAYERS],
52
- other: [...Pe.OTHER_LAYERS.filter((a) => a.key !== "world12nm")]
517
+ weather: [...Ce.WEATHER_LAYERS],
518
+ other: [...Ce.OTHER_LAYERS.filter((a) => a.key !== "world12nm")]
53
519
  },
54
520
  weatherLayersCache: "weatherLayersCache",
55
521
  autoActiveCache: "autoActiveCache",
@@ -141,20 +607,20 @@ const T = (a, e) => {
141
607
  this.source = a, this.handleConfirm();
142
608
  }
143
609
  }
144
- }, Ge = { class: "idm-gl3-layer" }, Je = { class: "bar-item layer-bars" }, Xe = { class: "bar-item tool-bars" }, qe = ["onClick"], Ye = { class: "weather-layers" }, Qe = {
610
+ }, Ye = { class: "idm-gl3-layer" }, qe = { class: "bar-item layer-bars" }, Qe = { class: "bar-item tool-bars" }, Ke = ["onClick"], et = { class: "weather-layers" }, tt = {
145
611
  class: "layers-title",
146
612
  style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
147
- }, Ke = { style: { "font-size": "12px" } }, et = { class: "layers-body" }, tt = ["onClick"], at = { class: "other-layers" }, it = { class: "layers-body" }, rt = ["onClick"], ot = { class: "source-layers" }, st = { class: "layers-body model-box" };
148
- function nt(a, e, t, r, i, o) {
613
+ }, at = { style: { "font-size": "12px" } }, it = { class: "layers-body" }, rt = ["onClick"], ot = { class: "other-layers" }, st = { class: "layers-body" }, nt = ["onClick"], lt = { class: "source-layers" }, ct = { class: "layers-body model-box" };
614
+ function ht(a, e, t, r, i, o) {
149
615
  const n = z("ElScrollbar");
150
- return x(), _("div", Ge, [
616
+ return x(), _("div", Ye, [
151
617
  l("div", {
152
618
  class: "menu-bar-box",
153
619
  style: $({ top: t.top + 10 + "px", right: i.right + "px" })
154
620
  }, [
155
- l("div", Je, [
621
+ l("div", qe, [
156
622
  l("div", {
157
- class: M(t.layerToggle ? "menu-icon active" : "menu-icon"),
623
+ class: j(t.layerToggle ? "menu-icon active" : "menu-icon"),
158
624
  onClick: e[0] || (e[0] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
159
625
  }, e[8] || (e[8] = [
160
626
  l("span", { class: "iconfont" }, "", -1)
@@ -165,27 +631,27 @@ function nt(a, e, t, r, i, o) {
165
631
  class: "menu-bar-box",
166
632
  style: $({ top: t.top + 160 + "px", right: i.right + "px" })
167
633
  }, [
168
- l("div", Xe, [
634
+ l("div", Qe, [
169
635
  l("div", {
170
- class: M(i.showMeasure ? "menu-icon active" : "menu-icon"),
636
+ class: j(i.showMeasure ? "menu-icon active" : "menu-icon"),
171
637
  onClick: e[1] || (e[1] = (...s) => o.handleMeasureToggle && o.handleMeasureToggle(...s))
172
638
  }, e[9] || (e[9] = [
173
639
  l("span", { class: "iconfont" }, "", -1)
174
640
  ]), 2),
175
641
  l("div", {
176
- class: M(i.showPoint ? "menu-icon active" : "menu-icon"),
642
+ class: j(i.showPoint ? "menu-icon active" : "menu-icon"),
177
643
  onClick: e[2] || (e[2] = (...s) => o.handlePointToggle && o.handlePointToggle(...s))
178
644
  }, e[10] || (e[10] = [
179
645
  l("span", { class: "iconfont" }, "", -1)
180
646
  ]), 2),
181
647
  l("div", {
182
- class: M(i.showCoord ? "menu-icon active" : "menu-icon"),
648
+ class: j(i.showCoord ? "menu-icon active" : "menu-icon"),
183
649
  onClick: e[3] || (e[3] = (...s) => o.handleCoordToggle && o.handleCoordToggle(...s))
184
650
  }, e[11] || (e[11] = [
185
651
  l("span", { class: "iconfont" }, "", -1)
186
652
  ]), 2),
187
653
  l("div", {
188
- class: M(i.show3d ? "menu-icon active" : "menu-icon"),
654
+ class: j(i.show3d ? "menu-icon active" : "menu-icon"),
189
655
  onClick: e[4] || (e[4] = (...s) => o.handle3DToggle && o.handle3DToggle(...s))
190
656
  }, e[12] || (e[12] = [
191
657
  l("span", { class: "iconfont" }, "", -1)
@@ -196,14 +662,14 @@ function nt(a, e, t, r, i, o) {
196
662
  class: "active-layers",
197
663
  style: $({ right: i.right + "px", bottom: "100px" })
198
664
  }, [
199
- (x(!0), _(xe, null, _e(i.weatherLayers, (s) => (x(), _("div", {
665
+ (x(!0), _(xe, null, ke(i.weatherLayers, (s) => (x(), _("div", {
200
666
  key: s.key,
201
- class: M(o.computeLayerClass(s, i.activeWeatherLayers)),
667
+ class: j(o.computeLayerClass(s, i.activeWeatherLayers)),
202
668
  onClick: (c) => o.handleActiveWeatherLayerPick(s)
203
669
  }, [
204
670
  e[13] || (e[13] = l("div", { class: "checkbox" }, null, -1)),
205
- l("span", null, S(s.name), 1)
206
- ], 10, qe))), 128))
671
+ l("span", null, k(s.name), 1)
672
+ ], 10, Ke))), 128))
207
673
  ], 4),
208
674
  l("div", {
209
675
  class: "available-layers flex-center",
@@ -217,54 +683,54 @@ function nt(a, e, t, r, i, o) {
217
683
  l("i", { class: "iconfont" }, "", -1)
218
684
  ]), 4),
219
685
  l("div", {
220
- class: M(["list-box", t.layerToggle ? "right-bar" : ""])
686
+ class: j(["list-box", t.layerToggle ? "right-bar" : ""])
221
687
  }, [
222
688
  P(n, { style: { flex: "1" } }, {
223
- default: Ve(() => [
224
- l("div", Ye, [
225
- l("div", Qe, [
689
+ default: Ue(() => [
690
+ l("div", et, [
691
+ l("div", tt, [
226
692
  l("div", null, [
227
- e[15] || (e[15] = Oe(" Weather Layers ")),
228
- l("span", Ke, "(" + S(i.weatherLayers.length) + "/12)", 1)
693
+ e[15] || (e[15] = Ne(" Weather Layers ")),
694
+ l("span", at, "(" + k(i.weatherLayers.length) + "/12)", 1)
229
695
  ])
230
696
  ]),
231
- l("div", et, [
232
- (x(!0), _(xe, null, _e(i.layers.weather, (s) => (x(), _(xe, {
697
+ l("div", it, [
698
+ (x(!0), _(xe, null, ke(i.layers.weather, (s) => (x(), _(xe, {
233
699
  key: s.key
234
700
  }, [
235
701
  s.hide ? B("", !0) : (x(), _("div", {
236
702
  key: 0,
237
- class: M(o.computeLayerClass(s, i.weatherLayers)),
703
+ class: j(o.computeLayerClass(s, i.weatherLayers)),
238
704
  onClick: (c) => o.handleWeatherLayerPick(s)
239
705
  }, [
240
706
  e[16] || (e[16] = l("div", { class: "checkbox" }, null, -1)),
241
- l("span", null, S(s.name), 1)
242
- ], 10, tt))
707
+ l("span", null, k(s.name), 1)
708
+ ], 10, rt))
243
709
  ], 64))), 128))
244
710
  ])
245
711
  ]),
246
- l("div", at, [
712
+ l("div", ot, [
247
713
  e[18] || (e[18] = l("div", { class: "layers-title" }, "Other Layers", -1)),
248
- l("div", it, [
249
- (x(!0), _(xe, null, _e(i.layers.other, (s) => (x(), _("div", {
714
+ l("div", st, [
715
+ (x(!0), _(xe, null, ke(i.layers.other, (s) => (x(), _("div", {
250
716
  key: s.key,
251
- class: M(o.computeLayerClass(s, i.otherLayers)),
717
+ class: j(o.computeLayerClass(s, i.otherLayers)),
252
718
  onClick: (c) => o.handleOtherLayerPick(s)
253
719
  }, [
254
720
  e[17] || (e[17] = l("div", { class: "checkbox" }, null, -1)),
255
- l("span", null, S(s.name), 1)
256
- ], 10, rt))), 128))
721
+ l("span", null, k(s.name), 1)
722
+ ], 10, nt))), 128))
257
723
  ])
258
724
  ]),
259
- l("div", ot, [
725
+ l("div", lt, [
260
726
  e[19] || (e[19] = l("span", { class: "layers-title" }, "Forecast Model", -1)),
261
- l("div", st, [
727
+ l("div", ct, [
262
728
  l("span", {
263
- class: M(i.source === "GFS" ? "text active" : "text"),
729
+ class: j(i.source === "GFS" ? "text active" : "text"),
264
730
  onClick: e[6] || (e[6] = (s) => o.handleSourceToggle("GFS"))
265
731
  }, "GFS", 2),
266
732
  l("span", {
267
- class: M(i.source === "CMEMS" ? "text active" : "text"),
733
+ class: j(i.source === "CMEMS" ? "text active" : "text"),
268
734
  onClick: e[7] || (e[7] = (s) => o.handleSourceToggle("CMEMS"))
269
735
  }, "ECMWF", 2)
270
736
  ])
@@ -276,8 +742,8 @@ function nt(a, e, t, r, i, o) {
276
742
  ], 4)
277
743
  ]);
278
744
  }
279
- const lt = /* @__PURE__ */ T(He, [["render", nt]]);
280
- const ct = {
745
+ const pt = /* @__PURE__ */ T(Xe, [["render", ht]]);
746
+ const dt = {
281
747
  name: "IdmWindBarb",
282
748
  props: {
283
749
  map: {
@@ -378,22 +844,22 @@ const ct = {
378
844
  else {
379
845
  this.map.addSource(this.source, { type: "geojson", data: s });
380
846
  for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
381
- const h = (this.barbs ?? [])[c] || 0, d = (this.barbs ?? [])[c + 1] || 0, p = h < 10 ? `00${h}kts` : h < 100 ? `0${h}kts` : `${h}kts`;
847
+ const h = (this.barbs ?? [])[c] || 0, p = (this.barbs ?? [])[c + 1] || 0, d = h < 10 ? `00${h}kts` : h < 100 ? `0${h}kts` : `${h}kts`;
382
848
  this.map.addLayer(
383
849
  {
384
- id: p,
850
+ id: d,
385
851
  type: "symbol",
386
852
  filter: [
387
853
  "all",
388
854
  // @ts-ignore
389
855
  [">=", "spd", h],
390
856
  // @ts-ignore
391
- ["<", "spd", d]
857
+ ["<", "spd", p]
392
858
  ],
393
859
  source: this.source,
394
860
  layout: {
395
861
  "symbol-placement": "point",
396
- "icon-image": p,
862
+ "icon-image": d,
397
863
  // mapbox sprite
398
864
  "icon-size": 0.14,
399
865
  "icon-offset": [0, -20],
@@ -436,22 +902,22 @@ const ct = {
436
902
  this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
437
903
  }
438
904
  }
439
- }, ht = { key: 0 }, dt = {
905
+ }, mt = { key: 0 }, ut = {
440
906
  key: 0,
441
907
  class: "iconfont active"
442
- }, pt = {
908
+ }, yt = {
443
909
  key: 1,
444
910
  class: "iconfont"
445
- }, mt = {
911
+ }, ft = {
446
912
  key: 0,
447
913
  class: "iconfont active"
448
- }, ut = {
914
+ }, gt = {
449
915
  key: 1,
450
916
  class: "iconfont"
451
917
  };
452
- function yt(a, e, t, r, i, o) {
918
+ function bt(a, e, t, r, i, o) {
453
919
  var n;
454
- return (n = t.wind) != null && n.active ? (x(), _("div", ht, [
920
+ return (n = t.wind) != null && n.active ? (x(), _("div", mt, [
455
921
  l("div", {
456
922
  class: "flex-center tool-bars",
457
923
  style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
@@ -461,9 +927,9 @@ function yt(a, e, t, r, i, o) {
461
927
  class: "flex-start",
462
928
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
463
929
  }, [
464
- t.showParticle ? (x(), _("i", dt, "")) : (x(), _("i", pt, "")),
930
+ t.showParticle ? (x(), _("i", ut, "")) : (x(), _("i", yt, "")),
465
931
  l("span", {
466
- class: M(t.showParticle ? "active" : "")
932
+ class: j(t.showParticle ? "active" : "")
467
933
  }, "Wind Particles", 2)
468
934
  ])) : B("", !0),
469
935
  t.showParticle ? (x(), _("div", {
@@ -472,16 +938,16 @@ function yt(a, e, t, r, i, o) {
472
938
  style: { "margin-left": "16px" },
473
939
  onClick: e[1] || (e[1] = (s) => i.showFeather = !i.showFeather)
474
940
  }, [
475
- i.showFeather ? (x(), _("i", mt, "")) : (x(), _("i", ut, "")),
941
+ i.showFeather ? (x(), _("i", ft, "")) : (x(), _("i", gt, "")),
476
942
  l("span", {
477
- class: M(i.showFeather ? "active" : "")
943
+ class: j(i.showFeather ? "active" : "")
478
944
  }, "Wind Feather", 2)
479
945
  ])) : B("", !0)
480
946
  ], 4)
481
947
  ])) : B("", !0);
482
948
  }
483
- const ft = /* @__PURE__ */ T(ct, [["render", yt], ["__scopeId", "data-v-8af725eb"]]);
484
- class Te {
949
+ const vt = /* @__PURE__ */ T(dt, [["render", bt], ["__scopeId", "data-v-8af725eb"]]);
950
+ class Re {
485
951
  constructor(e) {
486
952
  I(this, "map");
487
953
  I(this, "mercator");
@@ -492,7 +958,7 @@ class Te {
492
958
  I(this, "rampColorCanvas");
493
959
  I(this, "particleCanvas");
494
960
  I(this, "ratio");
495
- this.map = e, this.mercator = new Ze(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
961
+ this.map = e, this.mercator = new He(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
496
962
  }
497
963
  /**
498
964
  * 转换为[-180, 180]的经度,且包含转换次数
@@ -526,8 +992,8 @@ class Te {
526
992
  * @param [lb.x, lb.y, rt.x, rt.y]
527
993
  */
528
994
  getBoundPixel() {
529
- 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, g] = this.mercator.px([s, i[1]], t), u = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
530
- return [p, g, h + u, d];
995
+ 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, p] = this.mercator.px([o, r[1]], t), [d, g] = this.mercator.px([s, i[1]], t), u = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
996
+ return [d, g, h + u, p];
531
997
  }
532
998
  /**
533
999
  * [视窗边界像素宽度]
@@ -542,13 +1008,13 @@ class Te {
542
1008
  * @param zoom
543
1009
  */
544
1010
  getWorldCopy(e, t) {
545
- const r = 2 ** t, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
546
- for (let d = s; d <= o; d++)
547
- for (let p = i; p <= n; p++)
548
- c.push([p, d]);
549
- return c.map((d) => {
550
- const p = 2 ** t * 256;
551
- return [d[0] * p, d[1] * p, p];
1011
+ const r = 2 ** t, [i, o, n, s] = e.map((p) => ~~(p / (r * 256))), c = [];
1012
+ for (let p = s; p <= o; p++)
1013
+ for (let d = i; d <= n; d++)
1014
+ c.push([d, p]);
1015
+ return c.map((p) => {
1016
+ const d = 2 ** t * 256;
1017
+ return [p[0] * d, p[1] * d, d];
552
1018
  });
553
1019
  }
554
1020
  resize() {
@@ -651,8 +1117,8 @@ class ye {
651
1117
  const s = n.getContext("2d");
652
1118
  if (s && e) {
653
1119
  const c = s == null ? void 0 : s.createLinearGradient(0, 0, 256, 0);
654
- return t.forEach(([h, d]) => {
655
- c.addColorStop(h, d);
1120
+ return t.forEach(([h, p]) => {
1121
+ c.addColorStop(h, p);
656
1122
  }), s.fillStyle = c, s.fillRect(0, 0, 256, 1), {
657
1123
  canvas: n,
658
1124
  texture: this.createTexture(
@@ -669,11 +1135,11 @@ class ye {
669
1135
  }
670
1136
  setupParticle(e, t = 1e3) {
671
1137
  const r = Math.ceil(Math.sqrt(t)), i = r * r, o = new Uint8Array(i * 4);
672
- for (let d = 0; d < o.length; d++)
673
- o[d] = Math.floor(Math.random() * 256);
1138
+ for (let p = 0; p < o.length; p++)
1139
+ o[p] = Math.floor(Math.random() * 256);
674
1140
  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);
675
- for (let d = 0; d < i; d++)
676
- c[d] = d;
1141
+ for (let p = 0; p < i; p++)
1142
+ c[p] = p;
677
1143
  const h = this.createDataBuffer(e, "array", c);
678
1144
  return { resolution: r, total: i, texture0: n, texture1: s, indexBuffer: h };
679
1145
  }
@@ -690,26 +1156,26 @@ class ye {
690
1156
  return {};
691
1157
  }
692
1158
  bindParticle(e, t, r, i, o, n) {
693
- 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();
694
- return { particle: s, screen: c, update: h, quadBuffer: d, frameBuffer: p };
1159
+ const s = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
1160
+ return { particle: s, screen: c, update: h, quadBuffer: p, frameBuffer: d };
695
1161
  }
696
1162
  draw(e, t, r, i, o, n, s) {
697
1163
  var c, h;
698
1164
  if (t && r) {
699
1165
  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);
700
1166
  try {
701
- const d = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), g = t.getUniformLocation(r, "u_color");
702
- 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(g, 1), s != null && s.uvRange && (s != null && s.sRange)) {
1167
+ const p = t.getUniformLocation(r, "u_resolution"), d = t.getUniformLocation(r, "u_image"), g = t.getUniformLocation(r, "u_color");
1168
+ if (t.useProgram(r), t.uniform2f(p, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(d, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(g, 1), s != null && s.uvRange && (s != null && s.sRange)) {
703
1169
  const m = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
704
1170
  t.uniform2f(m, s.uvRange[0], s.uvRange[1]), t.uniform2f(v, s.sRange[0], s.sRange[1]);
705
1171
  }
706
1172
  const u = e.getBoundPixel(), y = e.map.getZoom() + 1, f = e.getWorldCopy(u, y);
707
1173
  for (const m of f) {
708
- const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, L, D, A] = [v, w + v, b, w + b], O = new Float32Array([k, D, L, D, k, A, k, A, L, D, L, A]);
709
- t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, O, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
1174
+ const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, L = m[2] * e.ratio, [S, w, A, M] = [v, L + v, b, L + b], N = new Float32Array([S, A, w, A, S, M, S, M, w, A, w, M]);
1175
+ t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, N, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
710
1176
  }
711
- } catch (d) {
712
- console.log(`render failed...${d}`);
1177
+ } catch (p) {
1178
+ console.log(`render failed...${p}`);
713
1179
  }
714
1180
  }
715
1181
  }
@@ -754,10 +1220,10 @@ class ye {
754
1220
  });
755
1221
  }
756
1222
  }
757
- class N {
1223
+ class W {
758
1224
  }
759
1225
  // 顶点渲染
760
- I(N, "vertexSchema", `
1226
+ I(W, "vertexSchema", `
761
1227
  //canvas 坐标系上的坐标 (x, y)
762
1228
  attribute vec2 a_position; //像素坐标
763
1229
  attribute vec2 a_texCoord; //纹理坐标
@@ -772,7 +1238,7 @@ I(N, "vertexSchema", `
772
1238
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
773
1239
  v_texCoord = a_texCoord;
774
1240
  }`), // 类如风、流等u v双变量片元渲染
775
- I(N, "uvFragmentSchema", `
1241
+ I(W, "uvFragmentSchema", `
776
1242
  precision mediump float;
777
1243
  uniform sampler2D u_image;
778
1244
  uniform vec2 u_range_u_v;
@@ -791,7 +1257,7 @@ I(N, "uvFragmentSchema", `
791
1257
 
792
1258
  gl_FragColor = color;
793
1259
  }`), // 类如浪、气压等单变量片元渲染
794
- I(N, "fragmentSchema", `
1260
+ I(W, "fragmentSchema", `
795
1261
  precision mediump float;
796
1262
  uniform sampler2D u_image; // 灰度
797
1263
  uniform sampler2D u_color; // 色值映射
@@ -951,7 +1417,7 @@ I(U, "vertexSchema", `
951
1417
  fract(pos * 255.0),
952
1418
  floor(pos * 255.0) / 255.0);
953
1419
  }`);
954
- class gt {
1420
+ class wt {
955
1421
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
956
1422
  I(this, "token");
957
1423
  I(this, "mapboxCustomer");
@@ -2555,14 +3021,14 @@ class gt {
2555
3021
  };
2556
3022
  }
2557
3023
  }
2558
- const bt = {
3024
+ const Lt = {
2559
3025
  name: "IdmWindParticle",
2560
3026
  props: {
2561
3027
  factor: {
2562
3028
  type: Object
2563
3029
  },
2564
3030
  viewport: {
2565
- type: Te
3031
+ type: Re
2566
3032
  },
2567
3033
  bottom: {
2568
3034
  type: String,
@@ -2669,7 +3135,7 @@ const bt = {
2669
3135
  [1, "rgb(91, 136, 161)"]
2670
3136
  ];
2671
3137
  this.rampColor = this.webgl.setup(this.context, a);
2672
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3138
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
2673
3139
  this.program = e, this.aPositionBuffer = t;
2674
3140
  }
2675
3141
  this.handleParticleSetup();
@@ -2717,10 +3183,10 @@ const bt = {
2717
3183
  });
2718
3184
  }
2719
3185
  }
2720
- }, vt = { key: 0 };
2721
- function Lt(a, e, t, r, i, o) {
3186
+ }, xt = { key: 0 };
3187
+ function _t(a, e, t, r, i, o) {
2722
3188
  var n;
2723
- return (n = t.factor) != null && n.active ? (x(), _("div", vt, [
3189
+ return (n = t.factor) != null && n.active ? (x(), _("div", xt, [
2724
3190
  l("div", {
2725
3191
  class: "legend-bars flex-center",
2726
3192
  style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -2736,8 +3202,8 @@ function Lt(a, e, t, r, i, o) {
2736
3202
  ]), 4)
2737
3203
  ])) : B("", !0);
2738
3204
  }
2739
- const wt = /* @__PURE__ */ T(bt, [["render", Lt], ["__scopeId", "data-v-a3cc30c6"]]);
2740
- const xt = {
3205
+ const Ct = /* @__PURE__ */ T(Lt, [["render", _t], ["__scopeId", "data-v-a3cc30c6"]]);
3206
+ const kt = {
2741
3207
  name: "IdmCurrent",
2742
3208
  props: {
2743
3209
  map: {
@@ -2897,22 +3363,22 @@ const xt = {
2897
3363
  this.map.getLayer(this.speedLayer) && this.map.removeLayer(this.speedLayer), this.map.getLayer(this.speedLabelLayer) && this.map.removeLayer(this.speedLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
2898
3364
  }
2899
3365
  }
2900
- }, _t = { key: 0 }, Ct = {
3366
+ }, St = { key: 0 }, zt = {
2901
3367
  key: 0,
2902
3368
  class: "iconfont active"
2903
- }, St = {
3369
+ }, Pt = {
2904
3370
  key: 1,
2905
3371
  class: "iconfont"
2906
- }, kt = {
3372
+ }, Tt = {
2907
3373
  key: 0,
2908
3374
  class: "iconfont active"
2909
- }, zt = {
3375
+ }, Rt = {
2910
3376
  key: 1,
2911
3377
  class: "iconfont"
2912
3378
  };
2913
- function Pt(a, e, t, r, i, o) {
3379
+ function Et(a, e, t, r, i, o) {
2914
3380
  var n;
2915
- return (n = t.current) != null && n.active ? (x(), _("div", _t, [
3381
+ return (n = t.current) != null && n.active ? (x(), _("div", St, [
2916
3382
  l("div", {
2917
3383
  class: "flex-center tool-bars",
2918
3384
  style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
@@ -2922,9 +3388,9 @@ function Pt(a, e, t, r, i, o) {
2922
3388
  class: "flex-start",
2923
3389
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
2924
3390
  }, [
2925
- t.showParticle ? (x(), _("i", Ct, "")) : (x(), _("i", St, "")),
3391
+ t.showParticle ? (x(), _("i", zt, "")) : (x(), _("i", Pt, "")),
2926
3392
  l("span", {
2927
- class: M(t.showParticle ? "active" : "")
3393
+ class: j(t.showParticle ? "active" : "")
2928
3394
  }, "Current Particles", 2)
2929
3395
  ])) : B("", !0),
2930
3396
  t.showParticle ? (x(), _("div", {
@@ -2933,23 +3399,23 @@ function Pt(a, e, t, r, i, o) {
2933
3399
  style: { "margin-left": "16px" },
2934
3400
  onClick: e[1] || (e[1] = (s) => i.showJson = !i.showJson)
2935
3401
  }, [
2936
- i.showJson ? (x(), _("i", kt, "")) : (x(), _("i", zt, "")),
3402
+ i.showJson ? (x(), _("i", Tt, "")) : (x(), _("i", Rt, "")),
2937
3403
  l("span", {
2938
- class: M(i.showJson ? "active" : "")
3404
+ class: j(i.showJson ? "active" : "")
2939
3405
  }, "Current", 2)
2940
3406
  ])) : B("", !0)
2941
3407
  ], 4)
2942
3408
  ])) : B("", !0);
2943
3409
  }
2944
- const Tt = /* @__PURE__ */ T(xt, [["render", Pt], ["__scopeId", "data-v-83a51e73"]]);
2945
- const Rt = {
3410
+ const It = /* @__PURE__ */ T(kt, [["render", Et], ["__scopeId", "data-v-83a51e73"]]);
3411
+ const At = {
2946
3412
  name: "IdmCurrentParticle",
2947
3413
  props: {
2948
3414
  factor: {
2949
3415
  type: Object
2950
3416
  },
2951
3417
  viewport: {
2952
- type: Te
3418
+ type: Re
2953
3419
  },
2954
3420
  bottom: {
2955
3421
  type: String,
@@ -3047,7 +3513,7 @@ const Rt = {
3047
3513
  [1, "rgb(195,194,194)"]
3048
3514
  ];
3049
3515
  this.rampColor = this.webgl.setup(this.context, a);
3050
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3516
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
3051
3517
  this.program = e, this.aPositionBuffer = t;
3052
3518
  }
3053
3519
  this.handleParticleSetup();
@@ -3099,10 +3565,10 @@ const Rt = {
3099
3565
  });
3100
3566
  }
3101
3567
  }
3102
- }, Et = { key: 0 };
3103
- function It(a, e, t, r, i, o) {
3568
+ }, Dt = { key: 0 };
3569
+ function Mt(a, e, t, r, i, o) {
3104
3570
  var n;
3105
- return (n = t.factor) != null && n.active ? (x(), _("div", Et, [
3571
+ return (n = t.factor) != null && n.active ? (x(), _("div", Dt, [
3106
3572
  l("div", {
3107
3573
  class: "legend-bars flex-center",
3108
3574
  style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -3117,7 +3583,7 @@ function It(a, e, t, r, i, o) {
3117
3583
  ]), 4)
3118
3584
  ])) : B("", !0);
3119
3585
  }
3120
- const Dt = /* @__PURE__ */ T(Rt, [["render", It], ["__scopeId", "data-v-13f659b1"]]), At = {
3586
+ const jt = /* @__PURE__ */ T(At, [["render", Mt], ["__scopeId", "data-v-13f659b1"]]), Bt = {
3121
3587
  name: "IdmSigWave",
3122
3588
  props: {
3123
3589
  map: {
@@ -3228,10 +3694,10 @@ const Dt = /* @__PURE__ */ T(Rt, [["render", It], ["__scopeId", "data-v-13f659b1
3228
3694
  }
3229
3695
  }
3230
3696
  };
3231
- function Mt(a, e, t, r, i, o) {
3697
+ function Nt(a, e, t, r, i, o) {
3232
3698
  return x(), _("div");
3233
3699
  }
3234
- const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Ot = {
3700
+ const Wt = /* @__PURE__ */ T(Bt, [["render", Nt]]), Ot = {
3235
3701
  name: "IdmSwell",
3236
3702
  props: {
3237
3703
  map: {
@@ -3369,10 +3835,10 @@ const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Ot = {
3369
3835
  }
3370
3836
  }
3371
3837
  };
3372
- function Nt(a, e, t, r, i, o) {
3838
+ function Ft(a, e, t, r, i, o) {
3373
3839
  return x(), _("div");
3374
3840
  }
3375
- const jt = /* @__PURE__ */ T(Ot, [["render", Nt]]), Wt = {
3841
+ const $t = /* @__PURE__ */ T(Ot, [["render", Ft]]), Vt = {
3376
3842
  name: "IdmPrmsl",
3377
3843
  props: {
3378
3844
  map: {
@@ -3497,10 +3963,10 @@ const jt = /* @__PURE__ */ T(Ot, [["render", Nt]]), Wt = {
3497
3963
  }
3498
3964
  }
3499
3965
  };
3500
- function Ft(a, e, t, r, i, o) {
3966
+ function Ut(a, e, t, r, i, o) {
3501
3967
  return x(), _("div");
3502
3968
  }
3503
- const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]), Vt = {
3969
+ const Zt = /* @__PURE__ */ T(Vt, [["render", Ut]]), Ht = {
3504
3970
  name: "IdmIceberg",
3505
3971
  props: {
3506
3972
  map: {
@@ -3557,11 +4023,11 @@ const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]), Vt = {
3557
4023
  }
3558
4024
  }
3559
4025
  };
3560
- function Ut(a, e, t, r, i, o) {
4026
+ function Gt(a, e, t, r, i, o) {
3561
4027
  return x(), _("div");
3562
4028
  }
3563
- const Zt = /* @__PURE__ */ T(Vt, [["render", Ut]]);
3564
- const Ht = {
4029
+ const Jt = /* @__PURE__ */ T(Ht, [["render", Gt]]);
4030
+ const Xt = {
3565
4031
  name: "IdmTropicals",
3566
4032
  props: {
3567
4033
  map: {
@@ -3581,7 +4047,7 @@ const Ht = {
3581
4047
  emits: ["tropical", "tropicalProbability"],
3582
4048
  data() {
3583
4049
  return {
3584
- helper: Ce,
4050
+ helper: _e,
3585
4051
  source: "tropicals-source",
3586
4052
  clusterSource: "tropicals-cluster-source",
3587
4053
  historyLayer: "tropicals-history-layer",
@@ -3653,24 +4119,24 @@ const Ht = {
3653
4119
  }), t.forEach((o) => {
3654
4120
  var h;
3655
4121
  let n = 0, s;
3656
- const c = a.filter((d) => {
3657
- var p, g;
3658
- return ((g = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : g.split("-")[0]) === o;
4122
+ const c = a.filter((p) => {
4123
+ var d, g;
4124
+ return ((g = (d = p.properties) == null ? void 0 : d.category) == null ? void 0 : g.split("-")[0]) === o;
3659
4125
  });
3660
- (h = c.filter((d) => {
3661
- var p, g;
3662
- return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((g = d.properties) == null ? void 0 : g.type) === "forecast";
3663
- })[0]) == null || h.properties.model, c.forEach((d, p) => {
4126
+ (h = c.filter((p) => {
4127
+ var d, g;
4128
+ return ((d = p.geometry) == null ? void 0 : d.type) === "LineString" && ((g = p.properties) == null ? void 0 : g.type) === "forecast";
4129
+ })[0]) == null || h.properties.model, c.forEach((p, d) => {
3664
4130
  var g, u, y, f, m, v;
3665
- ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((u = d.properties) == null ? void 0 : u.type) === "history" && (n = p, s = s === void 0 ? p : s), ((y = d.geometry) == null ? void 0 : y.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = p), ((m = d.geometry) == null ? void 0 : m.type) === "LineString" && ((v = d.properties) == null || v.type);
3666
- }), c.map((d, p) => {
4131
+ ((g = p.geometry) == null ? void 0 : g.type) === "Point" && ((u = p.properties) == null ? void 0 : u.type) === "history" && (n = d, s = s === void 0 ? d : s), ((y = p.geometry) == null ? void 0 : y.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = d), ((m = p.geometry) == null ? void 0 : m.type) === "LineString" && ((v = p.properties) == null || v.type);
4132
+ }), c.map((p, d) => {
3667
4133
  var g, u, y, f, m, v, b;
3668
- if (((g = d.geometry) == null ? void 0 : g.type) === "LineString" && ((u = d.properties) == null || u.type), ((y = d.geometry) == null ? void 0 : y.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && (d.properties.name = o, d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = d.geometry) == null ? void 0 : m.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3669
- d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3670
- const w = Z((b = d.properties) == null ? void 0 : b.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
3671
- d.properties.showHistoryLabel = w || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
4134
+ if (((g = p.geometry) == null ? void 0 : g.type) === "LineString" && ((u = p.properties) == null || u.type), ((y = p.geometry) == null ? void 0 : y.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && (p.properties.name = o, p.properties.format = Z(p.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = p.geometry) == null ? void 0 : m.type) === "Point" && ((v = p.properties) == null ? void 0 : v.type) === "history") {
4135
+ p.properties.format = Z(p.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
4136
+ const L = Z((b = p.properties) == null ? void 0 : b.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
4137
+ p.properties.showHistoryLabel = L || d === n, p.properties.showNameLabel = d === n, p.properties.name = o;
3672
4138
  }
3673
- return d;
4139
+ return p;
3674
4140
  });
3675
4141
  }), this.handleInit();
3676
4142
  },
@@ -3931,10 +4397,10 @@ const Ht = {
3931
4397
  }), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y));
3932
4398
  }
3933
4399
  this.handleDrawCircle();
3934
- const d = Ne.interpolate(this.tropicals, 1);
3935
- this.interpolateData = JSON.parse(JSON.stringify(d));
3936
- const p = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
3937
- console.log(p), this.handleDateChange();
4400
+ const p = We.interpolate(this.tropicals, 1);
4401
+ this.interpolateData = JSON.parse(JSON.stringify(p));
4402
+ const d = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
4403
+ console.log(d), this.handleDateChange();
3938
4404
  }
3939
4405
  },
3940
4406
  handleClear() {
@@ -3942,10 +4408,10 @@ const Ht = {
3942
4408
  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));
3943
4409
  },
3944
4410
  handleDateChange() {
3945
- var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, re, oe, se, ne, le, ce, he, K;
4411
+ var a, e, t, r, i, o, n, s, c, h, p, d, g, u, y, f, m, v, b, L, S, w, A, M, N, O, F, H, re, oe, se, ne, le, ce, he, K;
3946
4412
  if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3947
- const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((R) => R.properties.date === G.format() && !R.properties.disabled), de = this.handleComputePolygons(J), X = C.featureCollection([...J]);
3948
- de.forEach((R) => {
4413
+ const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((R) => R.properties.date === G.format() && !R.properties.disabled), pe = this.handleComputePolygons(J), X = C.featureCollection([...J]);
4414
+ pe.forEach((R) => {
3949
4415
  X.features.push(R);
3950
4416
  }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(X) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3951
4417
  type: "geojson",
@@ -3964,8 +4430,8 @@ const Ht = {
3964
4430
  for (const R of J)
3965
4431
  if (!R.properties.disabled) {
3966
4432
  let V = "#f44336";
3967
- ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = R.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((p = (d = R.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? V = "#f2f202" : ((f = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? V = "#ff9100" : ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? V = "#f44336" : ((A = (D = R.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((j = (O = R.properties) == null ? void 0 : O.wind) == null ? void 0 : j.spd) < 51 ? V = "#f903d0" : ((H = (W = R.properties) == null ? void 0 : W.wind) == null ? void 0 : H.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
3968
- const pe = `<svg t="1719918955501"
4433
+ ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = R.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((d = (p = R.properties) == null ? void 0 : p.wind) == null ? void 0 : d.spd) >= 17.2 && ((u = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? V = "#f2f202" : ((f = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? V = "#ff9100" : ((L = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : L.spd) >= 32.7 && ((w = (S = R.properties) == null ? void 0 : S.wind) == null ? void 0 : w.spd) < 41.5 ? V = "#f44336" : ((M = (A = R.properties) == null ? void 0 : A.wind) == null ? void 0 : M.spd) >= 41.5 && ((O = (N = R.properties) == null ? void 0 : N.wind) == null ? void 0 : O.spd) < 51 ? V = "#f903d0" : ((H = (F = R.properties) == null ? void 0 : F.wind) == null ? void 0 : H.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
4434
+ const de = `<svg t="1719918955501"
3969
4435
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3970
4436
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
3971
4437
  <path
@@ -3979,9 +4445,9 @@ const Ht = {
3979
4445
  <path
3980
4446
  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"
3981
4447
  fill="#ffffff" p-id="18386"></path>
3982
- </svg>`, q = document.createElement("div");
3983
- q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${pe}</div>`;
3984
- const me = new Q.Marker(q).setLngLat(R.geometry.coordinates).addTo(this.map);
4448
+ </svg>`, Y = document.createElement("div");
4449
+ Y.className = "hurricane-hourly-marker", Y.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${de}</div>`;
4450
+ const me = new Q.Marker(Y).setLngLat(R.geometry.coordinates).addTo(this.map);
3985
4451
  if (this.interpolateMarkers.push(me), (re = R.properties) != null && re.showCircle) {
3986
4452
  const ee = { radius: 100, coordinates: R.geometry.coordinates }, te = { radius: 200, coordinates: R.geometry.coordinates }, ae = { radius: 500, coordinates: R.geometry.coordinates };
3987
4453
  (oe = this.circleSourceData) == null || oe.features.push(
@@ -3998,7 +4464,7 @@ const Ht = {
3998
4464
  (he = this.map) != null && he.getSource(this.interpolateSource) && ((K = this.map) == null || K.getSource(this.interpolateSource).setData(this.empty));
3999
4465
  },
4000
4466
  handleClick(a) {
4001
- var o, n, s, c, h, d, p, g;
4467
+ var o, n, s, c, h, p, d, g;
4002
4468
  const e = a.features[0], t = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
4003
4469
  (u) => {
4004
4470
  var y;
@@ -4018,8 +4484,8 @@ const Ht = {
4018
4484
  this.activeTropicals = {
4019
4485
  name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
4020
4486
  forecasts: t.map((u) => u.properties),
4021
- history: (d = r[0]) == null ? void 0 : d.properties,
4022
- showCircle: (g = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : g.showCircle
4487
+ history: (p = r[0]) == null ? void 0 : p.properties,
4488
+ showCircle: (g = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : g.showCircle
4023
4489
  }, this.showTropicals = !0;
4024
4490
  const i = document.getElementById("active-tropical");
4025
4491
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -4107,86 +4573,86 @@ const Ht = {
4107
4573
  return C.lineToPolygon(i, { properties: t });
4108
4574
  }
4109
4575
  }
4110
- }, Gt = {
4576
+ }, Yt = {
4111
4577
  id: "active-tropical",
4112
4578
  class: "active-tropical"
4113
- }, Jt = { class: "header-box" }, Xt = { class: "main" }, qt = { key: 0 }, Yt = { class: "sub" }, Qt = {
4579
+ }, qt = { class: "header-box" }, Qt = { class: "main" }, Kt = { key: 0 }, ea = { class: "sub" }, ta = {
4114
4580
  id: "meteoBox",
4115
4581
  class: "main-box"
4116
- }, Kt = { class: "content" }, ea = { class: "row" }, ta = {
4582
+ }, aa = { class: "content" }, ia = { class: "row" }, ra = {
4117
4583
  class: "col col-left",
4118
4584
  style: { "justify-content": "flex-start" }
4119
- }, aa = {
4585
+ }, oa = {
4120
4586
  class: "col col-right",
4121
4587
  style: { "justify-content": "flex-start" }
4122
- }, ia = { class: "row" }, ra = {
4588
+ }, sa = { class: "row" }, na = {
4123
4589
  class: "col col-24",
4124
4590
  style: { "justify-content": "flex-start" }
4125
- }, oa = { class: "forecast-models" }, sa = ["onClick"], na = { class: "more" };
4126
- function la(a, e, t, r, i, o) {
4127
- var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
4128
- return Se((x(), _("div", Gt, [
4129
- l("div", Jt, [
4591
+ }, la = { class: "forecast-models" }, ca = ["onClick"], ha = { class: "more" };
4592
+ function pa(a, e, t, r, i, o) {
4593
+ var n, s, c, h, p, d, g, u, y, f, m, v, b, L, S;
4594
+ return Se((x(), _("div", Yt, [
4595
+ l("div", qt, [
4130
4596
  l("div", {
4131
4597
  class: "iconfont close-btn",
4132
- onClick: e[0] || (e[0] = (L) => i.showTropicals = !1)
4598
+ onClick: e[0] || (e[0] = (w) => i.showTropicals = !1)
4133
4599
  }, ""),
4134
- l("div", Xt, [
4135
- (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (x(), _("span", qt, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : B("", !0),
4136
- Oe(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4600
+ l("div", Qt, [
4601
+ (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (x(), _("span", Kt, k((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : B("", !0),
4602
+ Ne(k((p = i.activeTropicals) == null ? void 0 : p.name), 1)
4137
4603
  ]),
4138
- l("div", Yt, " Last update: " + S(o.computeTime(((g = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((L) => !L.disabled)[0]) == null ? void 0 : f.date))), 1)
4604
+ l("div", ea, " Last update: " + k(o.computeTime(((g = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((w) => !w.disabled)[0]) == null ? void 0 : f.date))), 1)
4139
4605
  ]),
4140
- l("div", Qt, [
4141
- l("div", Kt, [
4142
- l("div", ea, [
4143
- l("div", ta, [
4606
+ l("div", ta, [
4607
+ l("div", aa, [
4608
+ l("div", ia, [
4609
+ l("div", ra, [
4144
4610
  e[2] || (e[2] = l("label", null, "Wind speed : ", -1)),
4145
- l("span", null, S(((v = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
4611
+ l("span", null, k(((v = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
4146
4612
  ]),
4147
- l("div", aa, [
4613
+ l("div", oa, [
4148
4614
  e[3] || (e[3] = l("label", null, "Pressure : ", -1)),
4149
- l("span", null, S(((w = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
4615
+ l("span", null, k(((L = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : L.pressure) || "-") + "[hPa]", 1)
4150
4616
  ])
4151
4617
  ]),
4152
- l("div", ia, [
4153
- l("div", ra, [
4618
+ l("div", sa, [
4619
+ l("div", na, [
4154
4620
  e[4] || (e[4] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4155
- l("div", oa, [
4156
- (x(!0), _(xe, null, _e((k = i.activeTropicals) == null ? void 0 : k.forecasts, (L, D) => {
4157
- var A, O, j, W;
4621
+ l("div", la, [
4622
+ (x(!0), _(xe, null, ke((S = i.activeTropicals) == null ? void 0 : S.forecasts, (w, A) => {
4623
+ var M, N, O, F;
4158
4624
  return x(), _("div", {
4159
- key: D,
4160
- class: M([
4625
+ key: A,
4626
+ class: j([
4161
4627
  "model",
4162
- L.disabled ? "" : "active",
4163
- D > 0 && D < ((O = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : O.length) - 1 && ((W = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
4628
+ w.disabled ? "" : "active",
4629
+ A > 0 && A < ((N = (M = i.activeTropicals) == null ? void 0 : M.forecasts) == null ? void 0 : N.length) - 1 && ((F = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : F.length) > 2 ? "center-child" : ""
4164
4630
  ]),
4165
- onClick: (H) => o.handleForecastToggle(L)
4631
+ onClick: (H) => o.handleForecastToggle(w)
4166
4632
  }, [
4167
4633
  l("span", {
4168
- class: M(L.model)
4169
- }, S(L.model), 3)
4170
- ], 10, sa);
4634
+ class: j(w.model)
4635
+ }, k(w.model), 3)
4636
+ ], 10, ca);
4171
4637
  }), 128))
4172
4638
  ])
4173
4639
  ])
4174
4640
  ]),
4175
- e[5] || (e[5] = Ue('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b521de47></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon td" data-v-b521de47></div><div class="label" data-v-b521de47>TD</div></div><div class="legend" data-v-b521de47><div class="icon ts" data-v-b521de47></div><div class="label" data-v-b521de47>TS</div></div><div class="legend" data-v-b521de47><div class="icon sts" data-v-b521de47></div><div class="label" data-v-b521de47>STS</div></div><div class="legend" data-v-b521de47><div class="icon ty" data-v-b521de47></div><div class="label" data-v-b521de47>TY</div></div><div class="legend" data-v-b521de47><div class="icon sty" data-v-b521de47></div><div class="label" data-v-b521de47>STY</div></div><div class="legend" data-v-b521de47><div class="icon supper-ty" data-v-b521de47></div><div class="label" data-v-b521de47>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon history" data-v-b521de47></div><div class="label" data-v-b521de47>History</div></div><div class="legend" data-v-b521de47><div class="icon r7" data-v-b521de47></div><div class="label" data-v-b521de47>35kts Radii</div></div><div class="legend" data-v-b521de47><div class="icon r10" data-v-b521de47></div><div class="label" data-v-b521de47>50kts Radii</div></div></div>', 3))
4641
+ e[5] || (e[5] = Ze('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-35ea0576></div><div class="row" style="padding:2px 10px;" data-v-35ea0576><div class="legend" data-v-35ea0576><div class="icon td" data-v-35ea0576></div><div class="label" data-v-35ea0576>TD</div></div><div class="legend" data-v-35ea0576><div class="icon ts" data-v-35ea0576></div><div class="label" data-v-35ea0576>TS</div></div><div class="legend" data-v-35ea0576><div class="icon sts" data-v-35ea0576></div><div class="label" data-v-35ea0576>STS</div></div><div class="legend" data-v-35ea0576><div class="icon ty" data-v-35ea0576></div><div class="label" data-v-35ea0576>TY</div></div><div class="legend" data-v-35ea0576><div class="icon sty" data-v-35ea0576></div><div class="label" data-v-35ea0576>STY</div></div><div class="legend" data-v-35ea0576><div class="icon supper-ty" data-v-35ea0576></div><div class="label" data-v-35ea0576>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-35ea0576><div class="legend" data-v-35ea0576><div class="icon history" data-v-35ea0576></div><div class="label" data-v-35ea0576>History</div></div><div class="legend" data-v-35ea0576><div class="icon r7" data-v-35ea0576></div><div class="label" data-v-35ea0576>35kts Radii</div></div><div class="legend" data-v-35ea0576><div class="icon r10" data-v-35ea0576></div><div class="label" data-v-35ea0576>50kts Radii</div></div></div>', 3))
4176
4642
  ]),
4177
- l("div", na, [
4643
+ l("div", ha, [
4178
4644
  l("div", {
4179
4645
  class: "button",
4180
- onClick: e[1] || (e[1] = (L) => o.handleStrikeProbability(i.activeTropicals))
4646
+ onClick: e[1] || (e[1] = (w) => o.handleStrikeProbability(i.activeTropicals))
4181
4647
  }, "Strike Probability >>")
4182
4648
  ])
4183
4649
  ])
4184
4650
  ], 512)), [
4185
- [ke, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4651
+ [ze, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4186
4652
  ]);
4187
4653
  }
4188
- const je = /* @__PURE__ */ T(Ht, [["render", la], ["__scopeId", "data-v-b521de47"]]);
4189
- const ca = {
4654
+ const Oe = /* @__PURE__ */ T(Xt, [["render", pa], ["__scopeId", "data-v-35ea0576"]]);
4655
+ const da = {
4190
4656
  name: "IdmPrecip3h",
4191
4657
  props: {
4192
4658
  factor: {
@@ -4274,7 +4740,7 @@ const ca = {
4274
4740
  [1, "rgba(197,5,58,0.8)"]
4275
4741
  ];
4276
4742
  this.rampColor = this.webgl.setup(this.context, a);
4277
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4743
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4278
4744
  this.program = e, this.aPositionBuffer = t;
4279
4745
  }
4280
4746
  },
@@ -4287,10 +4753,10 @@ const ca = {
4287
4753
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4288
4754
  }
4289
4755
  }
4290
- }, ha = { key: 0 };
4291
- function da(a, e, t, r, i, o) {
4756
+ }, ma = { key: 0 };
4757
+ function ua(a, e, t, r, i, o) {
4292
4758
  var n;
4293
- return (n = t.factor) != null && n.active ? (x(), _("div", ha, [
4759
+ return (n = t.factor) != null && n.active ? (x(), _("div", ma, [
4294
4760
  l("div", {
4295
4761
  class: "legend-bars flex-center",
4296
4762
  style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4306,8 +4772,8 @@ function da(a, e, t, r, i, o) {
4306
4772
  ]), 4)
4307
4773
  ])) : B("", !0);
4308
4774
  }
4309
- const pa = /* @__PURE__ */ T(ca, [["render", da], ["__scopeId", "data-v-39b1d5ab"]]);
4310
- const ma = {
4775
+ const ya = /* @__PURE__ */ T(da, [["render", ua], ["__scopeId", "data-v-39b1d5ab"]]);
4776
+ const fa = {
4311
4777
  name: "IdmVisibility",
4312
4778
  props: {
4313
4779
  factor: {
@@ -4388,7 +4854,7 @@ const ma = {
4388
4854
  [1, "rgba(144,144,144,0)"]
4389
4855
  ];
4390
4856
  this.rampColor = this.webgl.setup(this.context, a);
4391
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4857
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4392
4858
  this.program = e, this.aPositionBuffer = t;
4393
4859
  }
4394
4860
  },
@@ -4401,10 +4867,10 @@ const ma = {
4401
4867
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4402
4868
  }
4403
4869
  }
4404
- }, ua = { key: 0 };
4405
- function ya(a, e, t, r, i, o) {
4870
+ }, ga = { key: 0 };
4871
+ function ba(a, e, t, r, i, o) {
4406
4872
  var n;
4407
- return (n = t.factor) != null && n.active ? (x(), _("div", ua, [
4873
+ return (n = t.factor) != null && n.active ? (x(), _("div", ga, [
4408
4874
  l("div", {
4409
4875
  class: "legend-bars flex-center",
4410
4876
  style: $([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
@@ -4418,8 +4884,8 @@ function ya(a, e, t, r, i, o) {
4418
4884
  ]), 4)
4419
4885
  ])) : B("", !0);
4420
4886
  }
4421
- const fa = /* @__PURE__ */ T(ma, [["render", ya], ["__scopeId", "data-v-b05a7795"]]);
4422
- const ga = {
4887
+ const va = /* @__PURE__ */ T(fa, [["render", ba], ["__scopeId", "data-v-b05a7795"]]);
4888
+ const wa = {
4423
4889
  name: "IdmWaterTemp",
4424
4890
  props: {
4425
4891
  factor: {
@@ -4508,7 +4974,7 @@ const ga = {
4508
4974
  //
4509
4975
  ];
4510
4976
  this.rampColor = this.webgl.setup(this.context, a);
4511
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4977
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4512
4978
  this.program = e, this.aPositionBuffer = t;
4513
4979
  }
4514
4980
  },
@@ -4521,10 +4987,10 @@ const ga = {
4521
4987
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4522
4988
  }
4523
4989
  }
4524
- }, ba = { key: 0 };
4525
- function va(a, e, t, r, i, o) {
4990
+ }, La = { key: 0 };
4991
+ function xa(a, e, t, r, i, o) {
4526
4992
  var n;
4527
- return (n = t.factor) != null && n.active ? (x(), _("div", ba, [
4993
+ return (n = t.factor) != null && n.active ? (x(), _("div", La, [
4528
4994
  l("div", {
4529
4995
  class: "legend-bars flex-center",
4530
4996
  style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4538,8 +5004,8 @@ function va(a, e, t, r, i, o) {
4538
5004
  ]), 4)
4539
5005
  ])) : B("", !0);
4540
5006
  }
4541
- const La = /* @__PURE__ */ T(ga, [["render", va], ["__scopeId", "data-v-7653aa0c"]]);
4542
- const wa = {
5007
+ const _a = /* @__PURE__ */ T(wa, [["render", xa], ["__scopeId", "data-v-7653aa0c"]]);
5008
+ const Ca = {
4543
5009
  name: "IdmTemp",
4544
5010
  props: {
4545
5011
  factor: {
@@ -4631,7 +5097,7 @@ const wa = {
4631
5097
  [1, "rgb(138, 43, 10)"]
4632
5098
  ];
4633
5099
  this.rampColor = this.webgl.setup(this.context, a);
4634
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
5100
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4635
5101
  this.program = e, this.aPositionBuffer = t;
4636
5102
  }
4637
5103
  },
@@ -4644,10 +5110,10 @@ const wa = {
4644
5110
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4645
5111
  }
4646
5112
  }
4647
- }, xa = { key: 0 };
4648
- function _a(a, e, t, r, i, o) {
5113
+ }, ka = { key: 0 };
5114
+ function Sa(a, e, t, r, i, o) {
4649
5115
  var n;
4650
- return (n = t.factor) != null && n.active ? (x(), _("div", xa, [
5116
+ return (n = t.factor) != null && n.active ? (x(), _("div", ka, [
4651
5117
  l("div", {
4652
5118
  class: "legend-bars flex-center",
4653
5119
  style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4663,8 +5129,8 @@ function _a(a, e, t, r, i, o) {
4663
5129
  ]), 4)
4664
5130
  ])) : B("", !0);
4665
5131
  }
4666
- const Ca = /* @__PURE__ */ T(wa, [["render", _a], ["__scopeId", "data-v-33206ed4"]]);
4667
- const Sa = {
5132
+ const za = /* @__PURE__ */ T(Ca, [["render", Sa], ["__scopeId", "data-v-33206ed4"]]);
5133
+ const Pa = {
4668
5134
  name: "IdmArctic",
4669
5135
  props: {
4670
5136
  factor: {
@@ -4747,7 +5213,7 @@ const Sa = {
4747
5213
  // 2m
4748
5214
  ];
4749
5215
  this.rampColor = this.webgl.setup(this.context, a);
4750
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
5216
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4751
5217
  this.program = e, this.aPositionBuffer = t;
4752
5218
  }
4753
5219
  },
@@ -4760,10 +5226,10 @@ const Sa = {
4760
5226
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4761
5227
  }
4762
5228
  }
4763
- }, ka = { key: 0 };
4764
- function za(a, e, t, r, i, o) {
5229
+ }, Ta = { key: 0 };
5230
+ function Ra(a, e, t, r, i, o) {
4765
5231
  var n;
4766
- return (n = t.factor) != null && n.active ? (x(), _("div", ka, [
5232
+ return (n = t.factor) != null && n.active ? (x(), _("div", Ta, [
4767
5233
  l("div", {
4768
5234
  class: "legend-bars flex-center",
4769
5235
  style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4777,8 +5243,8 @@ function za(a, e, t, r, i, o) {
4777
5243
  ]), 4)
4778
5244
  ])) : B("", !0);
4779
5245
  }
4780
- const Pa = /* @__PURE__ */ T(Sa, [["render", za], ["__scopeId", "data-v-76e7bf8f"]]);
4781
- const Ta = {
5246
+ const Ea = /* @__PURE__ */ T(Pa, [["render", Ra], ["__scopeId", "data-v-76e7bf8f"]]);
5247
+ const Ia = {
4782
5248
  name: "IdmPoint",
4783
5249
  emits: ["point", "more"],
4784
5250
  props: {
@@ -4800,7 +5266,7 @@ const Ta = {
4800
5266
  return {
4801
5267
  showMeteo: !1,
4802
5268
  meteoMarker: void 0,
4803
- helper: Ce
5269
+ helper: _e
4804
5270
  };
4805
5271
  },
4806
5272
  watch: {
@@ -4833,17 +5299,17 @@ const Ta = {
4833
5299
  },
4834
5300
  computeLat() {
4835
5301
  return function(a, e = 4) {
4836
- return F.lat2pretty(a, e).pretty;
5302
+ return D.lat2pretty(a, e).pretty;
4837
5303
  };
4838
5304
  },
4839
5305
  computeLng() {
4840
5306
  return function(a, e = 4) {
4841
- return F.lng2pretty(a, e).pretty;
5307
+ return D.lng2pretty(a, e).pretty;
4842
5308
  };
4843
5309
  },
4844
5310
  roundPrecision() {
4845
5311
  return function(a, e = 4) {
4846
- return isNaN(a) ? "-" : F.roundPrecision(a, e);
5312
+ return isNaN(a) ? "-" : D.roundPrecision(a, e);
4847
5313
  };
4848
5314
  }
4849
5315
  },
@@ -4865,67 +5331,67 @@ const Ta = {
4865
5331
  }
4866
5332
  }
4867
5333
  }
4868
- }, Ra = {
5334
+ }, Aa = {
4869
5335
  id: "point-meteo",
4870
5336
  class: "point-meteo"
4871
- }, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Oa = { class: "flex-space" }, Na = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Va = { class: "flex-space" }, Ua = { class: "flex-space" };
4872
- function Za(a, e, t, r, i, o) {
4873
- var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, re, oe, se, ne, le, ce, he, K, G, J, de, X, R, V, pe, q, me, ee, te, ae, fe, ge, be, ve, Le;
4874
- return Se((x(), _("div", Ra, [
4875
- l("div", Ea, [
4876
- l("div", Ia, [
5337
+ }, Da = { class: "meteo-box" }, Ma = { class: "header-box" }, ja = { class: "main" }, Ba = { class: "sub" }, Na = { class: "main-box" }, Wa = { class: "flex-space" }, Oa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Va = { class: "flex-space" }, Ua = { class: "flex-space" }, Za = { class: "flex-space" }, Ha = { class: "flex-space" }, Ga = { class: "flex-space" };
5338
+ function Ja(a, e, t, r, i, o) {
5339
+ var n, s, c, h, p, d, g, u, y, f, m, v, b, L, S, w, A, M, N, O, F, H, re, oe, se, ne, le, ce, he, K, G, J, pe, X, R, V, de, Y, me, ee, te, ae, ge, be, ve, we, Le;
5340
+ return Se((x(), _("div", Aa, [
5341
+ l("div", Da, [
5342
+ l("div", Ma, [
4877
5343
  l("div", {
4878
5344
  class: "iconfont close",
4879
- onClick: e[0] || (e[0] = (ze) => i.showMeteo = !1)
5345
+ onClick: e[0] || (e[0] = (Pe) => i.showMeteo = !1)
4880
5346
  }, ""),
4881
- l("div", Da, S(o.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = t.meteo) == null ? void 0 : s.lng)), 1),
4882
- l("div", Aa, S(o.computeTime((c = t.meteo) == null ? void 0 : c.utc)), 1)
5347
+ l("div", ja, k(o.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + k(o.computeLng((s = t.meteo) == null ? void 0 : s.lng)), 1),
5348
+ l("div", Ba, k(o.computeTime((c = t.meteo) == null ? void 0 : c.utc)), 1)
4883
5349
  ]),
4884
- l("div", Ma, [
4885
- l("div", Ba, [
5350
+ l("div", Na, [
5351
+ l("div", Wa, [
4886
5352
  e[1] || (e[1] = l("label", null, "Wind", -1)),
4887
- l("span", null, S(((d = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((g = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
5353
+ l("span", null, k(((p = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : p.direction) || "-") + "/" + k(o.roundPrecision((g = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + k((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + k(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
4888
5354
  ]),
4889
5355
  l("div", Oa, [
4890
5356
  e[2] || (e[2] = l("label", null, "Wind.Wave", -1)),
4891
- l("span", null, S(((w = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (L = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : L.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((j = (O = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : O.wd) == null ? void 0 : j.period, 1)) + "[s]", 1)
5357
+ l("span", null, k(((L = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : L.direction) || "-") + "/" + k(o.roundPrecision((A = (w = (S = t.meteo) == null ? void 0 : S.wave) == null ? void 0 : w.wd) == null ? void 0 : A.height, 1)) + "[m]/" + k(o.roundPrecision((O = (N = (M = t.meteo) == null ? void 0 : M.wave) == null ? void 0 : N.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
4892
5358
  ]),
4893
- l("div", Na, [
5359
+ l("div", Fa, [
4894
5360
  e[3] || (e[3] = l("label", null, "Swell", -1)),
4895
- l("span", null, S(((re = (H = (W = t.meteo) == null ? void 0 : W.wave) == null ? void 0 : H.swell) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((ne = (se = (oe = t.meteo) == null ? void 0 : oe.wave) == null ? void 0 : se.swell) == null ? void 0 : ne.height, 1)) + "[m]/" + S(o.roundPrecision((he = (ce = (le = t.meteo) == null ? void 0 : le.wave) == null ? void 0 : ce.swell) == null ? void 0 : he.period, 1)) + "[s]", 1)
5361
+ l("span", null, k(((re = (H = (F = t.meteo) == null ? void 0 : F.wave) == null ? void 0 : H.swell) == null ? void 0 : re.direction) || "-") + "/" + k(o.roundPrecision((ne = (se = (oe = t.meteo) == null ? void 0 : oe.wave) == null ? void 0 : se.swell) == null ? void 0 : ne.height, 1)) + "[m]/" + k(o.roundPrecision((he = (ce = (le = t.meteo) == null ? void 0 : le.wave) == null ? void 0 : ce.swell) == null ? void 0 : he.period, 1)) + "[s]", 1)
4896
5362
  ]),
4897
- l("div", ja, [
5363
+ l("div", $a, [
4898
5364
  e[4] || (e[4] = l("label", null, "Sig.Wave", -1)),
4899
- l("span", null, S(((J = (G = (K = t.meteo) == null ? void 0 : K.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((R = (X = (de = t.meteo) == null ? void 0 : de.wave) == null ? void 0 : X.sig) == null ? void 0 : R.height, 1)) + "[m]/" + S(o.roundPrecision((q = (pe = (V = t.meteo) == null ? void 0 : V.wave) == null ? void 0 : pe.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
5365
+ l("span", null, k(((J = (G = (K = t.meteo) == null ? void 0 : K.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + k(o.roundPrecision((R = (X = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : X.sig) == null ? void 0 : R.height, 1)) + "[m]/" + k(o.roundPrecision((Y = (de = (V = t.meteo) == null ? void 0 : V.wave) == null ? void 0 : de.sig) == null ? void 0 : Y.period, 1)) + "[s]", 1)
4900
5366
  ]),
4901
- l("div", Wa, [
5367
+ l("div", Va, [
4902
5368
  e[5] || (e[5] = l("label", null, "Current", -1)),
4903
- l("span", null, S(((ee = (me = t.meteo) == null ? void 0 : me.current) == null ? void 0 : ee.direction) || "-") + "/" + S(o.roundPrecision((ae = (te = t.meteo) == null ? void 0 : te.current) == null ? void 0 : ae.kts, 2)) + "[kts]", 1)
5369
+ l("span", null, k(((ee = (me = t.meteo) == null ? void 0 : me.current) == null ? void 0 : ee.direction) || "-") + "/" + k(o.roundPrecision((ae = (te = t.meteo) == null ? void 0 : te.current) == null ? void 0 : ae.kts, 2)) + "[kts]", 1)
4904
5370
  ]),
4905
- l("div", Fa, [
5371
+ l("div", Ua, [
4906
5372
  e[6] || (e[6] = l("label", null, "Precip", -1)),
4907
- l("span", null, S(o.roundPrecision((ge = (fe = t.meteo) == null ? void 0 : fe.precip) == null ? void 0 : ge.inter6h, 2)) + "[mm]", 1)
5373
+ l("span", null, k(o.roundPrecision((be = (ge = t.meteo) == null ? void 0 : ge.precip) == null ? void 0 : be.inter6h, 2)) + "[mm]", 1)
4908
5374
  ]),
4909
- l("div", $a, [
5375
+ l("div", Za, [
4910
5376
  e[7] || (e[7] = l("label", null, "Visibility", -1)),
4911
- l("span", null, S(o.roundPrecision(((be = t.meteo) == null ? void 0 : be.visibility) / 1852, 0)) + "[nm]", 1)
5377
+ l("span", null, k(o.roundPrecision(((ve = t.meteo) == null ? void 0 : ve.visibility) / 1852, 0)) + "[nm]", 1)
4912
5378
  ]),
4913
- l("div", Va, [
5379
+ l("div", Ha, [
4914
5380
  e[8] || (e[8] = l("label", null, "Temp", -1)),
4915
- l("span", null, S(o.roundPrecision((ve = t.meteo) == null ? void 0 : ve.temp, 0)) + "[°C]", 1)
5381
+ l("span", null, k(o.roundPrecision((we = t.meteo) == null ? void 0 : we.temp, 0)) + "[°C]", 1)
4916
5382
  ]),
4917
- l("div", Ua, [
5383
+ l("div", Ga, [
4918
5384
  e[9] || (e[9] = l("label", null, "Water Temp", -1)),
4919
- l("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.waterTemp, 2)) + "[°C]", 1)
5385
+ l("span", null, k(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.waterTemp, 2)) + "[°C]", 1)
4920
5386
  ])
4921
5387
  ]),
4922
5388
  B("", !0)
4923
5389
  ])
4924
5390
  ], 512)), [
4925
- [ke, i.showMeteo]
5391
+ [ze, i.showMeteo]
4926
5392
  ]);
4927
5393
  }
4928
- const Ha = /* @__PURE__ */ T(Ta, [["render", Za], ["__scopeId", "data-v-d5a13fce"]]), Ga = {
5394
+ const Xa = /* @__PURE__ */ T(Ia, [["render", Ja], ["__scopeId", "data-v-d13117a4"]]), Ya = {
4929
5395
  name: "IdmWarZone",
4930
5396
  props: {
4931
5397
  map: {
@@ -5015,10 +5481,10 @@ const Ha = /* @__PURE__ */ T(Ta, [["render", Za], ["__scopeId", "data-v-d5a13fce
5015
5481
  }
5016
5482
  }
5017
5483
  };
5018
- function Ja(a, e, t, r, i, o) {
5484
+ function qa(a, e, t, r, i, o) {
5019
5485
  return x(), _("div");
5020
5486
  }
5021
- const Xa = /* @__PURE__ */ T(Ga, [["render", Ja]]), qa = {
5487
+ const Qa = /* @__PURE__ */ T(Ya, [["render", qa]]), Ka = {
5022
5488
  name: "IdmGmdssArea",
5023
5489
  props: {
5024
5490
  map: {
@@ -5138,10 +5604,10 @@ const Xa = /* @__PURE__ */ T(Ga, [["render", Ja]]), qa = {
5138
5604
  }
5139
5605
  }
5140
5606
  };
5141
- function Ya(a, e, t, r, i, o) {
5607
+ function ei(a, e, t, r, i, o) {
5142
5608
  return x(), _("div");
5143
5609
  }
5144
- const Qa = /* @__PURE__ */ T(qa, [["render", Ya]]), Ka = {
5610
+ const ti = /* @__PURE__ */ T(Ka, [["render", ei]]), ai = {
5145
5611
  name: "IdmEcaZone",
5146
5612
  props: {
5147
5613
  map: {
@@ -5229,11 +5695,11 @@ const Qa = /* @__PURE__ */ T(qa, [["render", Ya]]), Ka = {
5229
5695
  }
5230
5696
  }
5231
5697
  };
5232
- function ei(a, e, t, r, i, o) {
5698
+ function ii(a, e, t, r, i, o) {
5233
5699
  return x(), _("div");
5234
5700
  }
5235
- const ti = /* @__PURE__ */ T(Ka, [["render", ei]]);
5236
- const ai = {
5701
+ const ri = /* @__PURE__ */ T(ai, [["render", ii]]);
5702
+ const oi = {
5237
5703
  name: "IdmAlertZone",
5238
5704
  props: {
5239
5705
  map: {
@@ -5363,10 +5829,10 @@ const ai = {
5363
5829
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5364
5830
  }
5365
5831
  }
5366
- }, ii = { id: "idm-gl3-zone-info" }, ri = ["innerHTML"];
5367
- function oi(a, e, t, r, i, o) {
5832
+ }, si = { id: "idm-gl3-zone-info" }, ni = ["innerHTML"];
5833
+ function li(a, e, t, r, i, o) {
5368
5834
  var n;
5369
- return Se((x(), _("div", ii, [
5835
+ return Se((x(), _("div", si, [
5370
5836
  l("div", {
5371
5837
  class: "iconfont close",
5372
5838
  onClick: e[0] || (e[0] = (s) => i.showZone = !1)
@@ -5374,13 +5840,13 @@ function oi(a, e, t, r, i, o) {
5374
5840
  l("div", {
5375
5841
  class: "rich-context",
5376
5842
  innerHTML: (n = i.form) == null ? void 0 : n.name
5377
- }, null, 8, ri)
5843
+ }, null, 8, ni)
5378
5844
  ], 512)), [
5379
- [ke, i.showZone]
5845
+ [ze, i.showZone]
5380
5846
  ]);
5381
5847
  }
5382
- const si = /* @__PURE__ */ T(ai, [["render", oi]]);
5383
- const ni = {
5848
+ const ci = /* @__PURE__ */ T(oi, [["render", li]]);
5849
+ const hi = {
5384
5850
  name: "IdmPort",
5385
5851
  props: {
5386
5852
  map: {
@@ -5406,12 +5872,12 @@ const ni = {
5406
5872
  computed: {
5407
5873
  computeLat() {
5408
5874
  return function(a) {
5409
- return F.lat2pretty(a, 4).pretty;
5875
+ return D.lat2pretty(a, 4).pretty;
5410
5876
  };
5411
5877
  },
5412
5878
  computeLng() {
5413
5879
  return function(a) {
5414
- return F.lng2pretty(a, 4).pretty;
5880
+ return D.lng2pretty(a, 4).pretty;
5415
5881
  };
5416
5882
  }
5417
5883
  },
@@ -5472,41 +5938,41 @@ const ni = {
5472
5938
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5473
5939
  }
5474
5940
  }
5475
- }, li = { id: "port-info" }, ci = { class: "port-box" }, hi = { class: "flex-start" }, di = { class: "flex-start" }, pi = { class: "flex-start" }, mi = {
5941
+ }, pi = { id: "port-info" }, di = { class: "port-box" }, mi = { class: "flex-start" }, ui = { class: "flex-start" }, yi = { class: "flex-start" }, fi = {
5476
5942
  class: "flex-start",
5477
5943
  style: { "align-items": "flex-start" }
5478
5944
  };
5479
- function ui(a, e, t, r, i, o) {
5480
- return Se((x(), _("div", li, [
5945
+ function gi(a, e, t, r, i, o) {
5946
+ return Se((x(), _("div", pi, [
5481
5947
  l("div", {
5482
5948
  class: "close iconfont",
5483
5949
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
5484
5950
  }, ""),
5485
- l("div", ci, [
5486
- l("div", hi, [
5951
+ l("div", di, [
5952
+ l("div", mi, [
5487
5953
  e[2] || (e[2] = l("label", null, "Name : ", -1)),
5488
5954
  l("span", {
5489
5955
  onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
5490
- }, S(i.form.name), 1)
5956
+ }, k(i.form.name), 1)
5491
5957
  ]),
5492
- l("div", di, [
5958
+ l("div", ui, [
5493
5959
  e[3] || (e[3] = l("label", null, "Position : ", -1)),
5494
- l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
5960
+ l("span", null, k(o.computeLat(i.form.lat)) + ", " + k(o.computeLng(i.form.lng)), 1)
5495
5961
  ]),
5496
- l("div", pi, [
5962
+ l("div", yi, [
5497
5963
  e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
5498
- l("span", null, S(i.form.loCode || "-"), 1)
5964
+ l("span", null, k(i.form.loCode || "-"), 1)
5499
5965
  ]),
5500
- l("div", mi, [
5966
+ l("div", fi, [
5501
5967
  e[5] || (e[5] = l("label", null, "Region : ", -1)),
5502
- l("span", null, S(i.form.zoneName || "-"), 1)
5968
+ l("span", null, k(i.form.zoneName || "-"), 1)
5503
5969
  ])
5504
5970
  ])
5505
5971
  ], 512)), [
5506
- [ke, i.showPort]
5972
+ [ze, i.showPort]
5507
5973
  ]);
5508
5974
  }
5509
- const yi = /* @__PURE__ */ T(ni, [["render", ui], ["__scopeId", "data-v-035470f6"]]), fi = {
5975
+ const bi = /* @__PURE__ */ T(hi, [["render", gi], ["__scopeId", "data-v-035470f6"]]), vi = {
5510
5976
  name: "IdmLoadLine",
5511
5977
  props: {
5512
5978
  map: {
@@ -5576,10 +6042,10 @@ const yi = /* @__PURE__ */ T(ni, [["render", ui], ["__scopeId", "data-v-035470f6
5576
6042
  }
5577
6043
  }
5578
6044
  };
5579
- function gi(a, e, t, r, i, o) {
6045
+ function wi(a, e, t, r, i, o) {
5580
6046
  return x(), _("div");
5581
6047
  }
5582
- const bi = /* @__PURE__ */ T(fi, [["render", gi]]), vi = {
6048
+ const Li = /* @__PURE__ */ T(vi, [["render", wi]]), xi = {
5583
6049
  name: "IdmTimezone",
5584
6050
  props: {
5585
6051
  map: {
@@ -5744,10 +6210,10 @@ const bi = /* @__PURE__ */ T(fi, [["render", gi]]), vi = {
5744
6210
  }
5745
6211
  }
5746
6212
  };
5747
- function Li(a, e, t, r, i, o) {
6213
+ function _i(a, e, t, r, i, o) {
5748
6214
  return x(), _("div");
5749
6215
  }
5750
- const wi = /* @__PURE__ */ T(vi, [["render", Li]]), xi = {
6216
+ const Ci = /* @__PURE__ */ T(xi, [["render", _i]]), ki = {
5751
6217
  name: "IdmVoluntaryReportingArea",
5752
6218
  props: {
5753
6219
  map: {
@@ -5835,10 +6301,10 @@ const wi = /* @__PURE__ */ T(vi, [["render", Li]]), xi = {
5835
6301
  }
5836
6302
  }
5837
6303
  };
5838
- function _i(a, e, t, r, i, o) {
6304
+ function Si(a, e, t, r, i, o) {
5839
6305
  return x(), _("div");
5840
6306
  }
5841
- const Ci = /* @__PURE__ */ T(xi, [["render", _i]]), Si = {
6307
+ const zi = /* @__PURE__ */ T(ki, [["render", Si]]), Pi = {
5842
6308
  name: "IdmSpecialArea",
5843
6309
  props: {
5844
6310
  map: {
@@ -5868,7 +6334,7 @@ const Ci = /* @__PURE__ */ T(xi, [["render", _i]]), Si = {
5868
6334
  methods: {
5869
6335
  handleRender() {
5870
6336
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
5871
- a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => F.convertToMonotonicLng2(e));
6337
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => D.convertToMonotonicLng2(e));
5872
6338
  }), this.map.addSource(this.source, {
5873
6339
  type: "geojson",
5874
6340
  data: this.area
@@ -5928,10 +6394,10 @@ const Ci = /* @__PURE__ */ T(xi, [["render", _i]]), Si = {
5928
6394
  }
5929
6395
  }
5930
6396
  };
5931
- function ki(a, e, t, r, i, o) {
6397
+ function Ti(a, e, t, r, i, o) {
5932
6398
  return x(), _("div");
5933
6399
  }
5934
- const zi = /* @__PURE__ */ T(Si, [["render", ki]]), Pi = {
6400
+ const Ri = /* @__PURE__ */ T(Pi, [["render", Ti]]), Ei = {
5935
6401
  name: "IdmTerminator",
5936
6402
  props: {
5937
6403
  map: {
@@ -5980,11 +6446,11 @@ const zi = /* @__PURE__ */ T(Si, [["render", ki]]), Pi = {
5980
6446
  }
5981
6447
  }
5982
6448
  };
5983
- function Ti(a, e, t, r, i, o) {
6449
+ function Ii(a, e, t, r, i, o) {
5984
6450
  return x(), _("div");
5985
6451
  }
5986
- const Ri = /* @__PURE__ */ T(Pi, [["render", Ti]]);
5987
- const Ei = {
6452
+ const Ai = /* @__PURE__ */ T(Ei, [["render", Ii]]);
6453
+ const Di = {
5988
6454
  name: "IdmLatLng",
5989
6455
  props: {
5990
6456
  map: {
@@ -6042,7 +6508,7 @@ const Ei = {
6042
6508
  this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6043
6509
  },
6044
6510
  handleMouseMove(a) {
6045
- const e = a.lngLat, t = F.lng2pretty(e.lng, 2), r = F.lat2pretty(e.lat, 2);
6511
+ const e = a.lngLat, t = D.lng2pretty(e.lng, 2), r = D.lat2pretty(e.lat, 2);
6046
6512
  this.lngLat = { lng: t, lat: r };
6047
6513
  },
6048
6514
  handleComputeLatLngs() {
@@ -6140,18 +6606,18 @@ const Ei = {
6140
6606
  }
6141
6607
  }
6142
6608
  };
6143
- function Ii(a, e, t, r, i, o) {
6609
+ function Mi(a, e, t, r, i, o) {
6144
6610
  return i.lngLat ? (x(), _("div", {
6145
6611
  key: 0,
6146
6612
  class: "lat-lng-tip",
6147
6613
  style: $({ right: i.right + "px", bottom: t.bottom })
6148
6614
  }, [
6149
- l("span", null, S(i.lngLat.lat.pretty), 1),
6615
+ l("span", null, k(i.lngLat.lat.pretty), 1),
6150
6616
  e[0] || (e[0] = l("span", null, ", ", -1)),
6151
- l("span", null, S(i.lngLat.lng.pretty), 1)
6617
+ l("span", null, k(i.lngLat.lng.pretty), 1)
6152
6618
  ], 4)) : B("", !0);
6153
6619
  }
6154
- const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79"]]), Di = {
6620
+ const Fe = /* @__PURE__ */ T(Di, [["render", Mi], ["__scopeId", "data-v-b0d1ad79"]]), ji = {
6155
6621
  name: "IdmMeasure",
6156
6622
  props: {
6157
6623
  map: {
@@ -6197,8 +6663,8 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6197
6663
  (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");
6198
6664
  else {
6199
6665
  (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);
6200
- for (const d of this.geojson)
6201
- this.handleClear(d, !0);
6666
+ for (const p of this.geojson)
6667
+ this.handleClear(p, !0);
6202
6668
  this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
6203
6669
  }
6204
6670
  },
@@ -6210,7 +6676,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6210
6676
  }
6211
6677
  },
6212
6678
  handleDrag(a) {
6213
- var t, r, i, o, n, s, c, h, d, p;
6679
+ var t, r, i, o, n, s, c, h, p, d;
6214
6680
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6215
6681
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6216
6682
  const g = this.geojson.filter((m) => m.id === e.split("-")[0])[0];
@@ -6229,13 +6695,13 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6229
6695
  this.handleTmpPointUpdate(
6230
6696
  g,
6231
6697
  f[y - 1],
6232
- { 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: f[y].properties },
6698
+ { lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (d = (p = a.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: f[y].properties },
6233
6699
  y === f.length - 1 ? void 0 : f[y + 1]
6234
6700
  );
6235
6701
  }
6236
6702
  },
6237
6703
  handleDragEnd(a) {
6238
- var t, r, i, o, n, s, c, h, d, p;
6704
+ var t, r, i, o, n, s, c, h, p, d;
6239
6705
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6240
6706
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6241
6707
  const g = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
@@ -6244,7 +6710,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6244
6710
  return ((m = f._element) == null ? void 0 : m.id) === e;
6245
6711
  })[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]);
6246
6712
  const y = g.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
6247
- y.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], g.features = g.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(g);
6713
+ y.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (d = (p = a.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], g.features = g.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(g);
6248
6714
  }
6249
6715
  },
6250
6716
  handleContextmenu(a) {
@@ -6291,12 +6757,12 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6291
6757
  let t = 0;
6292
6758
  const r = [];
6293
6759
  for (let i = 1; i < e.length; i++) {
6294
- const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = Y.calculateDistance(c, h, s.mode === "RL", 2), p = Y.calculateBearing(c, h, s.mode === "RL", 2);
6295
- t = F.roundPrecision(t + d, 2);
6760
+ const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, p = q.calculateDistance(c, h, s.mode === "RL", 2), d = q.calculateBearing(c, h, s.mode === "RL", 2);
6761
+ t = D.roundPrecision(t + p, 2);
6296
6762
  let g;
6297
- s.mode === "RL" ? g = F.convertToMonotonicLng([c, h]) : g = F.convertToMonotonicLng(Y.interpolateCoordinates(c, h, 200));
6763
+ s.mode === "RL" ? g = D.convertToMonotonicLng([c, h]) : g = D.convertToMonotonicLng(q.interpolateCoordinates(c, h, 200));
6298
6764
  const u = C.lineString(g.map((y) => [y.lng, y.lat]));
6299
- u.properties.dist = d, u.properties.bearing = p, u.properties.total = t, r.push(u);
6765
+ u.properties.dist = p, u.properties.bearing = d, u.properties.total = t, r.push(u);
6300
6766
  }
6301
6767
  e.push(...r), a.total = t;
6302
6768
  }
@@ -6306,19 +6772,19 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6306
6772
  const i = C.featureCollection([]);
6307
6773
  let o, n;
6308
6774
  if (e) {
6309
- const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
6310
- o = Y.calculateDistance(h, d, c.mode === "RL", 2), n = Y.calculateBearing(h, d, c.mode === "RL", 2);
6311
- let p;
6312
- c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Y.interpolateCoordinates(h, d, 200));
6313
- const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6775
+ const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: t.lng, lat: t.lat };
6776
+ o = q.calculateDistance(h, p, c.mode === "RL", 2), n = q.calculateBearing(h, p, c.mode === "RL", 2);
6777
+ let d;
6778
+ c.mode === "RL" ? d = D.convertToMonotonicLng([h, p]) : d = D.convertToMonotonicLng(q.interpolateCoordinates(h, p, 200));
6779
+ const g = C.lineString(d.map((u) => [u.lng, u.lat]));
6314
6780
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6315
6781
  }
6316
6782
  if (r) {
6317
- const c = t.properties, h = t, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6318
- o = Y.calculateDistance(h, d, c.mode === "RL", 2), n = Y.calculateBearing(h, d, c.mode === "RL", 2);
6319
- let p;
6320
- c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Y.interpolateCoordinates(h, d, 200));
6321
- const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6783
+ const c = t.properties, h = t, p = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6784
+ o = q.calculateDistance(h, p, c.mode === "RL", 2), n = q.calculateBearing(h, p, c.mode === "RL", 2);
6785
+ let d;
6786
+ c.mode === "RL" ? d = D.convertToMonotonicLng([h, p]) : d = D.convertToMonotonicLng(q.interpolateCoordinates(h, p, 200));
6787
+ const g = C.lineString(d.map((u) => [u.lng, u.lat]));
6322
6788
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6323
6789
  }
6324
6790
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
@@ -6359,7 +6825,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6359
6825
  }
6360
6826
  });
6361
6827
  let s;
6362
- if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${F.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
6828
+ if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${D.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)
6363
6829
  this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([t.lng, t.lat]);
6364
6830
  else {
6365
6831
  const c = document.createElement("div");
@@ -6425,25 +6891,25 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6425
6891
  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];
6426
6892
  }
6427
6893
  if (a.closed) {
6428
- const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6894
+ const n = o.at(-1), c = a.features.filter((p) => p.geometry.type === "LineString").at(-1), h = document.createElement("div");
6429
6895
  h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new Q.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6430
6896
  }
6431
6897
  }
6432
6898
  },
6433
6899
  handleClear(a, e = !0) {
6434
- var o, n, s, c, h, d, p, g, u;
6900
+ var o, n, s, c, h, p, d, g, u;
6435
6901
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
6436
- (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((y) => {
6902
+ (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, (p = this.pointMarkers[a.id]) == null || p.forEach((y) => {
6437
6903
  y == null || y.remove();
6438
- }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6904
+ }), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6439
6905
  }
6440
6906
  }
6441
6907
  };
6442
- function Ai(a, e, t, r, i, o) {
6908
+ function Bi(a, e, t, r, i, o) {
6443
6909
  return x(), _("div");
6444
6910
  }
6445
- const Mi = /* @__PURE__ */ T(Di, [["render", Ai]]);
6446
- const Bi = {
6911
+ const Ni = /* @__PURE__ */ T(ji, [["render", Bi]]);
6912
+ const Wi = {
6447
6913
  name: "IdmENC",
6448
6914
  props: {
6449
6915
  map: {
@@ -6474,8 +6940,8 @@ const Bi = {
6474
6940
  emits: ["enc"],
6475
6941
  data() {
6476
6942
  return {
6477
- helper: Ce,
6478
- vendor: this.$attrs.permission & Ce.LEVEL.Supper ? "hi" : "i4",
6943
+ helper: _e,
6944
+ vendor: this.$attrs.permission & _e.LEVEL.Supper ? "hi" : "i4",
6479
6945
  right: 10
6480
6946
  };
6481
6947
  },
@@ -6495,22 +6961,22 @@ const Bi = {
6495
6961
  }
6496
6962
  },
6497
6963
  methods: {}
6498
- }, Oi = { key: 0 }, Ni = { class: "bar-item" };
6499
- function ji(a, e, t, r, i, o) {
6964
+ }, Oi = { key: 0 }, Fi = { class: "bar-item" };
6965
+ function $i(a, e, t, r, i, o) {
6500
6966
  return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Oi, [
6501
6967
  l("div", {
6502
6968
  class: "menu-bar-box",
6503
6969
  style: $({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6504
6970
  }, [
6505
- l("div", Ni, [
6971
+ l("div", Fi, [
6506
6972
  l("div", {
6507
- class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
6973
+ class: j(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
6508
6974
  onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
6509
6975
  }, e[2] || (e[2] = [
6510
6976
  l("span", { class: "iconfont" }, "HI", -1)
6511
6977
  ]), 2),
6512
6978
  l("div", {
6513
- class: M(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
6979
+ class: j(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
6514
6980
  onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
6515
6981
  }, e[3] || (e[3] = [
6516
6982
  l("span", { class: "iconfont" }, "I4", -1)
@@ -6519,40 +6985,40 @@ function ji(a, e, t, r, i, o) {
6519
6985
  ], 4)
6520
6986
  ])) : B("", !0);
6521
6987
  }
6522
- const Wi = /* @__PURE__ */ T(Bi, [["render", ji], ["__scopeId", "data-v-505264e4"]]);
6523
- const Fi = {
6988
+ const Vi = /* @__PURE__ */ T(Wi, [["render", $i], ["__scopeId", "data-v-cda8e470"]]);
6989
+ const Ui = {
6524
6990
  name: "IdmGLV2",
6525
6991
  components: {
6526
- IdmGlLayer: lt,
6527
- IdmWindBarb: ft,
6528
- IdmWindParticle: wt,
6529
- IdmCurrents: Tt,
6530
- IdmCurrentParticle: Dt,
6531
- IdmSigWave: Bt,
6532
- IdmSwell: jt,
6533
- IdmPrmsl: $t,
6992
+ IdmGlLayer: pt,
6993
+ IdmWindBarb: vt,
6994
+ IdmWindParticle: Ct,
6995
+ IdmCurrents: It,
6996
+ IdmCurrentParticle: jt,
6997
+ IdmSigWave: Wt,
6998
+ IdmSwell: $t,
6999
+ IdmPrmsl: Zt,
6534
7000
  // IdmIceEdge,
6535
- IdmIceberg: Zt,
6536
- IdmTropicals: je,
6537
- IdmPrecip3h: pa,
6538
- IdmVisibility: fa,
6539
- IdmWaterTemp: La,
6540
- IdmTemp: Ca,
6541
- IdmArctic: Pa,
6542
- IdmWarZone: Xa,
6543
- IdmGmdssArea: Qa,
6544
- IdmEcaZone: ti,
6545
- IdmAlertZone: si,
6546
- IdmPort: yi,
6547
- IdmLoadLine: bi,
6548
- IdmTimezone: wi,
6549
- IdmVRA: Ci,
6550
- IdmSpecialArea: zi,
6551
- IdmTerminator: Ri,
6552
- IdmLatLng: We,
6553
- IdmMeasure: Mi,
6554
- IdmPoint: Ha,
6555
- IdmENC: Wi
7001
+ IdmIceberg: Jt,
7002
+ IdmTropicals: Oe,
7003
+ IdmPrecip3h: ya,
7004
+ IdmVisibility: va,
7005
+ IdmWaterTemp: _a,
7006
+ IdmTemp: za,
7007
+ IdmArctic: Ea,
7008
+ IdmWarZone: Qa,
7009
+ IdmGmdssArea: ti,
7010
+ IdmEcaZone: ri,
7011
+ IdmAlertZone: ci,
7012
+ IdmPort: bi,
7013
+ IdmLoadLine: Li,
7014
+ IdmTimezone: Ci,
7015
+ IdmVRA: zi,
7016
+ IdmSpecialArea: Ri,
7017
+ IdmTerminator: Ai,
7018
+ IdmLatLng: Fe,
7019
+ IdmMeasure: Ni,
7020
+ IdmPoint: Xa,
7021
+ IdmENC: Vi
6556
7022
  },
6557
7023
  props: {
6558
7024
  map: {
@@ -6599,7 +7065,7 @@ const Fi = {
6599
7065
  enc: "",
6600
7066
  // enc: 'i4',
6601
7067
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
6602
- helper: new gt()
7068
+ helper: new wt()
6603
7069
  };
6604
7070
  },
6605
7071
  watch: {
@@ -6613,7 +7079,7 @@ const Fi = {
6613
7079
  },
6614
7080
  map: {
6615
7081
  handler() {
6616
- this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Te(this.map), this.handleRampColorInitial());
7082
+ this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Re(this.map), this.handleRampColorInitial());
6617
7083
  },
6618
7084
  immediate: !0
6619
7085
  },
@@ -6625,10 +7091,10 @@ const Fi = {
6625
7091
  },
6626
7092
  activeWeatherLayers: {
6627
7093
  handler() {
6628
- var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v;
7094
+ var a, e, t, r, i, o, n, s, c, h, p, d, g, u, y, f, m, v;
6629
7095
  if (!this.map)
6630
7096
  return !1;
6631
- 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" && ((u = this.map) == null || u.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
7097
+ 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)), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((u = this.map) == null || u.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
6632
7098
  },
6633
7099
  immediate: !0
6634
7100
  }
@@ -6675,13 +7141,13 @@ const Fi = {
6675
7141
  },
6676
7142
  methods: {
6677
7143
  async fetchWeatherLayers(a = { tropicals: !1 }) {
6678
- var i, o, n, s, c, h, d, p;
7144
+ var i, o, n, s, c, h, p, d;
6679
7145
  const e = (/* @__PURE__ */ new Date()).valueOf();
6680
7146
  let t = 0, r = 0;
6681
7147
  if (this.map) {
6682
7148
  const g = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, u = (o = this.map) == null ? void 0 : o.getBounds(), y = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
6683
7149
  if (this.handleRampColorState(), this.particleFactor) {
6684
- const f = Pe.WEATHER_LAYERS.find((m) => {
7150
+ const f = Ce.WEATHER_LAYERS.find((m) => {
6685
7151
  var v;
6686
7152
  return ((v = m.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
6687
7153
  });
@@ -6696,26 +7162,26 @@ const Fi = {
6696
7162
  }
6697
7163
  });
6698
7164
  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) {
6699
- const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6700
- for (const L in b)
6701
- L === "ice-edge" && (b[L] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), L !== "tropicals" && w.push(
6702
- ie.get(b[L], {
7165
+ const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, L = [];
7166
+ for (const w in b)
7167
+ w === "ice-edge" && (b[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" && L.push(
7168
+ ie.get(b[w], {
6703
7169
  headers: {
6704
7170
  Authorization: this.token || this.defaultMeteoToken,
6705
- key: L
7171
+ key: w
6706
7172
  },
6707
- responseType: /\.(jpg|png)$/.test(b[L]) ? "blob" : "json"
6708
- }).catch((D) => {
6709
- console.log(`[${L}] fetch layer error: ${D}`);
7173
+ responseType: /\.(jpg|png)$/.test(b[w]) ? "blob" : "json"
7174
+ }).catch((A) => {
7175
+ console.log(`[${w}] fetch layer error: ${A}`);
6710
7176
  })
6711
7177
  );
6712
- const k = await Promise.all(w);
6713
- this.weatherLayers = {}, k.map((L) => {
6714
- var O, j, W, H;
6715
- const D = ((O = L == null ? void 0 : L.data) == null ? void 0 : O.data) || (L == null ? void 0 : L.data), A = (W = (j = L == null ? void 0 : L.config) == null ? void 0 : j.headers) == null ? void 0 : W.key;
6716
- A && D && (this.weatherLayers[A] = {
6717
- raw: D,
6718
- type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
7178
+ const S = await Promise.all(L);
7179
+ this.weatherLayers = {}, S.map((w) => {
7180
+ var N, O, F, H;
7181
+ const A = ((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7182
+ M && A && (this.weatherLayers[M] = {
7183
+ raw: A,
7184
+ type: ((H = w == null ? void 0 : w.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
6719
7185
  etime: this.ts
6720
7186
  });
6721
7187
  }), b.tropicals && ie.get(b.tropicals, {
@@ -6723,11 +7189,11 @@ const Fi = {
6723
7189
  Authorization: this.token || this.defaultMeteoToken,
6724
7190
  key: "tropicals"
6725
7191
  }
6726
- }).then((L) => {
6727
- var O, j, W;
6728
- const D = Ne.convert2Geojson(((O = L == null ? void 0 : L.data) == null ? void 0 : O.data) || (L == null ? void 0 : L.data)), A = (W = (j = L == null ? void 0 : L.config) == null ? void 0 : j.headers) == null ? void 0 : W.key;
6729
- this.weatherLayers[A] = {
6730
- data: D,
7192
+ }).then((w) => {
7193
+ var N, O, F;
7194
+ const A = We.convert2Geojson(((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data)), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7195
+ this.weatherLayers[M] = {
7196
+ data: A,
6731
7197
  active: !0,
6732
7198
  cached: !1,
6733
7199
  type: "json",
@@ -6737,20 +7203,20 @@ const Fi = {
6737
7203
  });
6738
7204
  }
6739
7205
  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"]) {
6740
- const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
7206
+ const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, L = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
6741
7207
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
6742
7208
  type: "json",
6743
7209
  direction: b,
6744
- height: { raw: w },
7210
+ height: { raw: L },
6745
7211
  etime: this.ts
6746
7212
  };
6747
7213
  }
6748
7214
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
6749
- const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
7215
+ const b = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
6750
7216
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
6751
7217
  type: "json",
6752
7218
  direction: b,
6753
- speed: { raw: w },
7219
+ speed: { raw: L },
6754
7220
  etime: this.ts
6755
7221
  };
6756
7222
  }
@@ -6776,19 +7242,19 @@ const Fi = {
6776
7242
  });
6777
7243
  if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 0) {
6778
7244
  const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
6779
- for (const p in c)
7245
+ for (const d in c)
6780
7246
  h.push(
6781
- ie.get(c[p], {
7247
+ ie.get(c[d], {
6782
7248
  headers: {
6783
7249
  Authorization: this.token || this.defaultMeteoToken,
6784
- key: p
7250
+ key: d
6785
7251
  }
6786
7252
  })
6787
7253
  );
6788
- const d = await Promise.all(h);
6789
- this.otherLayers = { enc: n }, d.map((p) => {
7254
+ const p = await Promise.all(h);
7255
+ this.otherLayers = { enc: n }, p.map((d) => {
6790
7256
  var y, f, m;
6791
- const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
7257
+ const g = ((y = d == null ? void 0 : d.data) == null ? void 0 : y.data) || (d == null ? void 0 : d.data), u = (m = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6792
7258
  this.otherLayers[u] = g;
6793
7259
  });
6794
7260
  }
@@ -6800,18 +7266,18 @@ const Fi = {
6800
7266
  });
6801
7267
  if (((r = s == null ? void 0 : s.data) == null ? void 0 : r.code) === 0) {
6802
7268
  const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
6803
- for (const p in c)
7269
+ for (const d in c)
6804
7270
  h.push(
6805
- ie.get(c[p], {
7271
+ ie.get(c[d], {
6806
7272
  headers: {
6807
7273
  Authorization: this.token || this.defaultMeteoToken,
6808
- key: p
7274
+ key: d
6809
7275
  }
6810
7276
  })
6811
7277
  );
6812
- (await Promise.all(h)).map((p) => {
7278
+ (await Promise.all(h)).map((d) => {
6813
7279
  var y, f, m;
6814
- const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
7280
+ const g = ((y = d == null ? void 0 : d.data) == null ? void 0 : y.data) || (d == null ? void 0 : d.data), u = (m = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6815
7281
  this.otherLayers[u] = g;
6816
7282
  });
6817
7283
  }
@@ -6833,7 +7299,7 @@ const Fi = {
6833
7299
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
6834
7300
  },
6835
7301
  handleRampColorInitial() {
6836
- var a, e, t, r, i, o, n, s, c, h, d, p;
7302
+ var a, e, t, r, i, o, n, s, c, h, p, d;
6837
7303
  this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
6838
7304
  type: "canvas",
6839
7305
  canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
@@ -6857,8 +7323,8 @@ const Fi = {
6857
7323
  }), this.viewport.map.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) || this.viewport.map.addLayer(
6858
7324
  {
6859
7325
  type: "raster",
6860
- id: (d = this.viewport) == null ? void 0 : d.particleLayer,
6861
- source: (p = this.viewport) == null ? void 0 : p.particleSource,
7326
+ id: (p = this.viewport) == null ? void 0 : p.particleLayer,
7327
+ source: (d = this.viewport) == null ? void 0 : d.particleSource,
6862
7328
  layout: {
6863
7329
  visibility: "none"
6864
7330
  }
@@ -6867,36 +7333,36 @@ const Fi = {
6867
7333
  );
6868
7334
  },
6869
7335
  handleDragEndWithZoom4Json() {
6870
- var h, d, p, g;
7336
+ var h, p, d, g;
6871
7337
  const a = (/* @__PURE__ */ new Date()).valueOf();
6872
7338
  let e = 0, t = 0;
6873
- const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = we(r._sw.lng), n = we(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
7339
+ const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = D.convertToStdLng(r._sw.lng), n = D.convertToStdLng(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
6874
7340
  for (const u in this.weatherLayers)
6875
7341
  if (this.weatherLayers[u].active && this.weatherLayers[u].type === "json") {
6876
7342
  this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
6877
7343
  let y = [];
6878
7344
  if (["swell", "current"].includes(u)) {
6879
- const f = ((d = this.weatherLayers[u]) == null ? void 0 : d.direction) || {};
7345
+ const f = ((p = this.weatherLayers[u]) == null ? void 0 : p.direction) || {};
6880
7346
  for (const m in f)
6881
7347
  if (m > s && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6882
7348
  const v = f[m].lng;
6883
- o > n ? v.forEach((b, w) => {
6884
- var k;
7349
+ o > n ? v.forEach((b, L) => {
7350
+ var S;
6885
7351
  if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6886
- const L = C.point([b, m], {
6887
- val: f[m].val[w],
6888
- spd: (k = f[m].spd) == null ? void 0 : k[w]
7352
+ const w = C.point([b, m], {
7353
+ val: f[m].val[L],
7354
+ spd: (S = f[m].spd) == null ? void 0 : S[L]
6889
7355
  });
6890
- y.push(L);
7356
+ y.push(w);
6891
7357
  }
6892
- }) : v.forEach((b, w) => {
6893
- var k;
7358
+ }) : v.forEach((b, L) => {
7359
+ var S;
6894
7360
  if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6895
- const L = C.point([b, m], {
6896
- val: f[m].val[w],
6897
- spd: (k = f[m].spd) == null ? void 0 : k[w]
7361
+ const w = C.point([b, m], {
7362
+ val: f[m].val[L],
7363
+ spd: (S = f[m].spd) == null ? void 0 : S[L]
6898
7364
  });
6899
- y.push(L);
7365
+ y.push(w);
6900
7366
  }
6901
7367
  });
6902
7368
  }
@@ -6905,11 +7371,11 @@ const Fi = {
6905
7371
  if (m) {
6906
7372
  if (!m.data) {
6907
7373
  const v = [];
6908
- for (const b in (p = m.raw) == null ? void 0 : p.LineString) {
6909
- const w = m.raw.LineString[b];
6910
- for (const k of w)
7374
+ for (const b in (d = m.raw) == null ? void 0 : d.LineString) {
7375
+ const L = m.raw.LineString[b];
7376
+ for (const S of L)
6911
7377
  v.push(
6912
- C.lineString(k, {
7378
+ C.lineString(S, {
6913
7379
  val: Number(b)
6914
7380
  })
6915
7381
  );
@@ -6928,12 +7394,12 @@ const Fi = {
6928
7394
  if (m) {
6929
7395
  if (!m.data) {
6930
7396
  const b = [];
6931
- for (const w in (g = m.raw) == null ? void 0 : g.Polygon) {
6932
- const k = m.raw.Polygon[w];
6933
- for (const L of k)
7397
+ for (const L in (g = m.raw) == null ? void 0 : g.Polygon) {
7398
+ const S = m.raw.Polygon[L];
7399
+ for (const w of S)
6934
7400
  b.push(
6935
- C.polygon(L, {
6936
- val: Number(w)
7401
+ C.polygon(w, {
7402
+ val: Number(L)
6937
7403
  })
6938
7404
  );
6939
7405
  }
@@ -6948,21 +7414,21 @@ const Fi = {
6948
7414
  for (const m in f)
6949
7415
  if (m > s && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6950
7416
  const v = f[m].lng;
6951
- o > n ? v.forEach((b, w) => {
7417
+ o > n ? v.forEach((b, L) => {
6952
7418
  if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6953
- const k = C.point([b, m], {
6954
- val: f[m].val[w],
6955
- spd: f[m].spd[w]
7419
+ const S = C.point([b, m], {
7420
+ val: f[m].val[L],
7421
+ spd: f[m].spd[L]
6956
7422
  });
6957
- y.push(k);
7423
+ y.push(S);
6958
7424
  }
6959
- }) : v.forEach((b, w) => {
7425
+ }) : v.forEach((b, L) => {
6960
7426
  if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6961
- const k = C.point([b, m], {
6962
- val: f[m].val[w],
6963
- spd: f[m].spd[w]
7427
+ const S = C.point([b, m], {
7428
+ val: f[m].val[L],
7429
+ spd: f[m].spd[L]
6964
7430
  });
6965
- y.push(k);
7431
+ y.push(S);
6966
7432
  }
6967
7433
  });
6968
7434
  }
@@ -6976,18 +7442,18 @@ const Fi = {
6976
7442
  const m = [];
6977
7443
  for (const v in f.Polygon) {
6978
7444
  const b = f.Polygon[v];
6979
- for (const w of b)
7445
+ for (const L of b)
6980
7446
  m.push(
6981
- C.polygon(w, {
7447
+ C.polygon(L, {
6982
7448
  val: Number(v)
6983
7449
  })
6984
7450
  );
6985
7451
  }
6986
7452
  for (const v in f.Point) {
6987
7453
  const b = f.Point[v];
6988
- for (const w of b)
7454
+ for (const L of b)
6989
7455
  m.push(
6990
- ...C.points(w, {
7456
+ ...C.points(L, {
6991
7457
  val: Number(v)
6992
7458
  }).features
6993
7459
  );
@@ -7005,19 +7471,19 @@ const Fi = {
7005
7471
  const m = [];
7006
7472
  for (const v in f.LineString) {
7007
7473
  const b = f.LineString[v];
7008
- for (const w of b)
7474
+ for (const L of b)
7009
7475
  m.push(
7010
- C.lineString(w, {
7476
+ C.lineString(L, {
7011
7477
  val: Number(v)
7012
7478
  })
7013
7479
  );
7014
7480
  }
7015
7481
  for (const v in f.Point)
7016
- f.Point[v].lng.forEach((b, w) => {
7017
- b = we(b), m.push(
7482
+ f.Point[v].lng.forEach((b, L) => {
7483
+ b = D.convertToStdLng(b), m.push(
7018
7484
  C.point([b, v], {
7019
- val: f.Point[v].val[w],
7020
- type: f.Point[v].type[w]
7485
+ val: f.Point[v].val[L],
7486
+ type: f.Point[v].type[L]
7021
7487
  })
7022
7488
  );
7023
7489
  });
@@ -7034,9 +7500,9 @@ const Fi = {
7034
7500
  const m = [];
7035
7501
  for (const v in f.LineString) {
7036
7502
  const b = f.LineString[v];
7037
- for (const w of b)
7503
+ for (const L of b)
7038
7504
  m.push(
7039
- C.lineString(w, {
7505
+ C.lineString(L, {
7040
7506
  val: Number(v)
7041
7507
  })
7042
7508
  );
@@ -7054,7 +7520,7 @@ const Fi = {
7054
7520
  this.weatherLayers[a].active && this.weatherLayers[a].type === "image" && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1);
7055
7521
  },
7056
7522
  handleBboxClip(a, e) {
7057
- const t = [], r = we(e._sw.lng), i = we(e._ne.lng);
7523
+ const t = [], r = D.convertToStdLng(e._sw.lng), i = D.convertToStdLng(e._ne.lng);
7058
7524
  return a.features.forEach((o) => {
7059
7525
  if (o.geometry.type !== "Point")
7060
7526
  if (r > i) {
@@ -7079,8 +7545,8 @@ const Fi = {
7079
7545
  this.handleBeforeLayerToggle();
7080
7546
  },
7081
7547
  handleBeforeLayerToggle() {
7082
- var a, e, t, r, i, o, n, s, c, h, d, p, g;
7083
- (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"] || (g = this.otherLayers) != null && g["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7548
+ var a, e, t, r, i, o, n, s, c, h, p, d, g;
7549
+ (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 || (p = this.otherLayers) != null && p["voluntary-reporting-area"] || (d = this.otherLayers) != null && d["eca-zones"] || (g = this.otherLayers) != null && g["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7084
7550
  },
7085
7551
  handleDateChange(a = { tropicals: !1 }) {
7086
7552
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -7127,8 +7593,8 @@ const Fi = {
7127
7593
  });
7128
7594
  },
7129
7595
  handle3dToggle(a) {
7130
- var e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
7131
- 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(), (g = this.map) != null && g.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((b = this.map) != null && b.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)));
7596
+ var e, t, r, i, o, n, s, c, h, p, d, g, u, y, f, m, v, b, L, S;
7597
+ 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)) && ((p = this.map) == null || p.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(), (g = this.map) != null && g.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((S = this.map) == null || S.moveLayer((L = this.viewport) == null ? void 0 : L.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7132
7598
  },
7133
7599
  handleParticle(a) {
7134
7600
  this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
@@ -7137,14 +7603,14 @@ const Fi = {
7137
7603
  this.$emit("toggleVersion", Math.random());
7138
7604
  }
7139
7605
  }
7140
- }, $i = {
7606
+ }, Zi = {
7141
7607
  key: 0,
7142
7608
  className: "map-gl-home"
7143
7609
  };
7144
- function Vi(a, e, t, r, i, o) {
7145
- var K, G, J, de, X, R, V, pe, q, me, ee, te, ae, fe, ge, be, ve, Le, ze, Re, Ee, Ie, De, Ae, Me, Be;
7146
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), O = z("IdmEcaZone"), j = z("IdmAlertZone"), W = z("IdmPort"), H = z("IdmLoadLine"), re = z("IdmTimezone"), oe = z("IdmVRA"), se = z("IdmSpecialArea"), ne = z("IdmTerminator"), le = z("IdmLatLng"), ce = z("IdmMeasure"), he = z("IdmPoint");
7147
- return t.map ? (x(), _("div", $i, [
7610
+ function Hi(a, e, t, r, i, o) {
7611
+ var K, G, J, pe, X, R, V, de, Y, me, ee, te, ae, ge, be, ve, we, Le, Pe, Ee, Ie, Ae, De, Me, je, Be;
7612
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), p = z("IdmPrmsl"), d = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), L = z("IdmWaterTemp"), S = z("IdmTemp"), w = z("IdmArctic"), A = z("IdmWarZone"), M = z("IdmGmdssArea"), N = z("IdmEcaZone"), O = z("IdmAlertZone"), F = z("IdmPort"), H = z("IdmLoadLine"), re = z("IdmTimezone"), oe = z("IdmVRA"), se = z("IdmSpecialArea"), ne = z("IdmTerminator"), le = z("IdmLatLng"), ce = z("IdmMeasure"), he = z("IdmPoint");
7613
+ return t.map ? (x(), _("div", Zi, [
7148
7614
  P(n, E({
7149
7615
  ref: "layer",
7150
7616
  map: t.map,
@@ -7177,13 +7643,13 @@ function Vi(a, e, t, r, i, o) {
7177
7643
  swell: (J = i.weatherLayers) == null ? void 0 : J.swell,
7178
7644
  "before-layer": t.beforeLayer
7179
7645
  }, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
7180
- P(d, E({
7646
+ P(p, E({
7181
7647
  map: t.map,
7182
- prmsl: (de = i.weatherLayers) == null ? void 0 : de.prmsl,
7648
+ prmsl: (pe = i.weatherLayers) == null ? void 0 : pe.prmsl,
7183
7649
  "before-layer": t.beforeLayer,
7184
7650
  "active-weather-layers": i.activeWeatherLayers
7185
7651
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7186
- P(p, E({
7652
+ P(d, E({
7187
7653
  map: t.map,
7188
7654
  iceberg: (X = i.weatherLayers) == null ? void 0 : X.iceberg,
7189
7655
  "before-layer": t.beforeLayer
@@ -7206,7 +7672,7 @@ function Vi(a, e, t, r, i, o) {
7206
7672
  }, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7207
7673
  P(y, E({
7208
7674
  viewport: i.viewport,
7209
- factor: (pe = i.weatherLayers) == null ? void 0 : pe["current-particle"],
7675
+ factor: (de = i.weatherLayers) == null ? void 0 : de["current-particle"],
7210
7676
  "before-layer": t.beforeLayer,
7211
7677
  "toggle-version": t.toggleVersion
7212
7678
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
@@ -7214,7 +7680,7 @@ function Vi(a, e, t, r, i, o) {
7214
7680
  ref: "windBarb",
7215
7681
  map: t.map,
7216
7682
  "map-projection": i.mapProjection,
7217
- wind: (q = i.weatherLayers) == null ? void 0 : q.wind,
7683
+ wind: (Y = i.weatherLayers) == null ? void 0 : Y.wind,
7218
7684
  current: (me = i.weatherLayers) == null ? void 0 : me.current,
7219
7685
  "before-layer": t.beforeLayer,
7220
7686
  "margin-bottom": i.showRampColor ? "56px" : "30px",
@@ -7242,52 +7708,52 @@ function Vi(a, e, t, r, i, o) {
7242
7708
  "before-layer": t.beforeLayer,
7243
7709
  "toggle-version": t.toggleVersion
7244
7710
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7245
- P(w, E({
7711
+ P(L, E({
7246
7712
  viewport: i.viewport,
7247
- factor: (fe = i.weatherLayers) == null ? void 0 : fe["water-temp"],
7713
+ factor: (ge = i.weatherLayers) == null ? void 0 : ge["water-temp"],
7248
7714
  "before-layer": t.beforeLayer,
7249
7715
  "toggle-version": t.toggleVersion
7250
7716
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7251
- P(k, E({
7717
+ P(S, E({
7252
7718
  viewport: i.viewport,
7253
- factor: (ge = i.weatherLayers) == null ? void 0 : ge.temp,
7719
+ factor: (be = i.weatherLayers) == null ? void 0 : be.temp,
7254
7720
  "before-layer": t.beforeLayer,
7255
7721
  "toggle-version": t.toggleVersion
7256
7722
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7257
- P(L, E({
7723
+ P(w, E({
7258
7724
  viewport: i.viewport,
7259
- factor: (be = i.weatherLayers) == null ? void 0 : be.arctic,
7725
+ factor: (ve = i.weatherLayers) == null ? void 0 : ve.arctic,
7260
7726
  "before-layer": t.beforeLayer,
7261
7727
  "toggle-version": t.toggleVersion
7262
7728
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7263
- P(D, E({
7729
+ P(A, E({
7264
7730
  map: t.map,
7265
- zone: (ve = i.otherLayers) == null ? void 0 : ve["war-zones"],
7731
+ zone: (we = i.otherLayers) == null ? void 0 : we["war-zones"],
7266
7732
  "before-layer": t.beforeLayer
7267
7733
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7268
- P(A, E({
7734
+ P(M, E({
7269
7735
  map: t.map,
7270
7736
  area: (Le = i.otherLayers) == null ? void 0 : Le["gmdss-areas"],
7271
7737
  "before-layer": t.beforeLayer
7272
7738
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7273
- P(O, E({
7739
+ P(N, E({
7274
7740
  map: t.map,
7275
- zone: (ze = i.otherLayers) == null ? void 0 : ze["eca-zones"],
7741
+ zone: (Pe = i.otherLayers) == null ? void 0 : Pe["eca-zones"],
7276
7742
  "before-layer": t.beforeLayer
7277
7743
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7278
- P(j, E({
7744
+ P(O, E({
7279
7745
  map: t.map,
7280
- zone: (Re = i.otherLayers) == null ? void 0 : Re["alert-zones"],
7746
+ zone: (Ee = i.otherLayers) == null ? void 0 : Ee["alert-zones"],
7281
7747
  "before-layer": t.beforeLayer
7282
7748
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7283
- P(W, E({
7749
+ P(F, E({
7284
7750
  map: t.map,
7285
- port: (Ee = i.otherLayers) == null ? void 0 : Ee.ports,
7751
+ port: (Ie = i.otherLayers) == null ? void 0 : Ie.ports,
7286
7752
  "before-layer": t.beforeLayer
7287
7753
  }, a.$attrs), null, 16, ["map", "port", "before-layer"]),
7288
7754
  P(H, E({
7289
7755
  map: t.map,
7290
- line: (Ie = i.otherLayers) == null ? void 0 : Ie["load-lines"],
7756
+ line: (Ae = i.otherLayers) == null ? void 0 : Ae["load-lines"],
7291
7757
  "before-layer": t.beforeLayer
7292
7758
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7293
7759
  P(re, E({
@@ -7297,12 +7763,12 @@ function Vi(a, e, t, r, i, o) {
7297
7763
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7298
7764
  P(oe, E({
7299
7765
  map: t.map,
7300
- area: (Ae = i.otherLayers) == null ? void 0 : Ae["voluntary-reporting-area"],
7766
+ area: (Me = i.otherLayers) == null ? void 0 : Me["voluntary-reporting-area"],
7301
7767
  "before-layer": t.beforeLayer
7302
7768
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7303
7769
  P(se, E({
7304
7770
  map: t.map,
7305
- area: (Me = i.otherLayers) == null ? void 0 : Me["special-area"],
7771
+ area: (je = i.otherLayers) == null ? void 0 : je["special-area"],
7306
7772
  "before-layer": t.beforeLayer
7307
7773
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7308
7774
  P(ne, E({
@@ -7325,19 +7791,19 @@ function Vi(a, e, t, r, i, o) {
7325
7791
  }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7326
7792
  ])) : B("", !0);
7327
7793
  }
7328
- const Ui = /* @__PURE__ */ T(Fi, [["render", Vi]]), Ki = {
7794
+ const Gi = /* @__PURE__ */ T(Ui, [["render", Hi]]), tr = {
7329
7795
  install(a) {
7330
- a.component("MapboxGL", Ui), a.component("TropicalGL", je), a.component("LatLngGL", We);
7796
+ a.component("MapboxGL", Gi), a.component("TropicalGL", Oe), a.component("LatLngGL", Fe);
7331
7797
  }
7332
7798
  };
7333
7799
  export {
7334
- We as LatLngGL,
7335
- Ui as MapboxGL,
7336
- Ki as MapboxGLPlugin,
7337
- gt as MapboxHelper,
7800
+ Fe as LatLngGL,
7801
+ Gi as MapboxGL,
7802
+ tr as MapboxGLPlugin,
7803
+ wt as MapboxHelper,
7338
7804
  U as ParticleSchema,
7339
- je as TropicalGL,
7340
- Te as Viewport,
7805
+ Oe as TropicalGL,
7806
+ Re as Viewport,
7341
7807
  ye as WebGL,
7342
- N as WebGLSchema
7808
+ W as WebGLSchema
7343
7809
  };